/* ===========================================================================
   Hardened AI - site chat widget
   ===========================================================================
   This lives in a real stylesheet, not injected from JavaScript, because the
   public site sends Content-Security-Policy: style-src 'self' with no
   'unsafe-inline'. A <style> element built in script is discarded by the
   browser - which is what left the widget rendering as unstyled text at the
   bottom of every page.
   =========================================================================== */
.hac-btn{position:fixed;right:20px;bottom:20px;z-index:900;display:flex;align-items:center;gap:9px;background:var(--emerald,#12805A);color:#fff;border:0;border-radius:999px;padding:13px 20px;font-family:inherit;font-size:.92rem;font-weight:700;cursor:pointer;box-shadow:0 6px 20px rgba(6,42,30,.28);transition:transform .15s,box-shadow .15s}
.hac-btn:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(6,42,30,.34)}
.hac-btn.hide{display:none}
.hac-panel{position:fixed;right:20px;bottom:20px;z-index:901;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 40px);background:#fff;border-radius:14px;display:none;flex-direction:column;overflow:hidden;box-shadow:0 18px 50px rgba(6,42,30,.32)}
.hac-panel.on{display:flex}
.hac-head{background:var(--forest,#0E3D2C);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:11px;flex-shrink:0}
.hac-head .m{width:32px;height:32px;border-radius:7px;background:var(--emerald,#12805A);display:flex;align-items:center;justify-content:center;font-weight:800;flex-shrink:0}
.hac-head .t{flex:1;line-height:1.2;min-width:0}
.hac-head .t b{display:block;font-size:.94rem}
.hac-head .t span{font-size:.7rem;color:var(--mint,#3FE0A6);font-weight:600}
.hac-x{background:rgba(255,255,255,.14);border:0;color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:1rem;line-height:1;flex-shrink:0}
.hac-x:hover{background:rgba(255,255,255,.26)}
.hac-body{flex:1;overflow-y:auto;padding:16px;background:var(--canvas,#EBEFF2)}
.hac-body::-webkit-scrollbar{width:8px}
.hac-body::-webkit-scrollbar-thumb{background:#CFD8D4;border-radius:8px}
.hac-m{margin-bottom:12px;display:flex}
.hac-m .b{padding:10px 13px;border-radius:11px;font-size:.89rem;line-height:1.5;max-width:86%;box-shadow:0 1px 2px rgba(6,42,30,.09);overflow-wrap:break-word}
.hac-ai .b{background:#fff;color:var(--ink,#1C2B26);border-bottom-left-radius:4px}
.hac-me{justify-content:flex-end}
.hac-me .b{background:var(--forest,#0E3D2C);color:#EAF3EF;border-bottom-right-radius:4px}
.hac-m p{margin:0 0 .6em}
.hac-m p:last-child{margin:0}
.hac-m a{color:var(--emerald,#12805A);font-weight:600}
.hac-dots{display:inline-flex;gap:4px}
.hac-dots i{width:6px;height:6px;border-radius:50%;background:#8A9A94;animation:hacb 1.3s infinite}
.hac-dots i:nth-child(2){animation-delay:.18s}
.hac-dots i:nth-child(3){animation-delay:.36s}
@keyframes hacb{0%,60%,100%{opacity:.25}
30%{opacity:1}
}
.hac-sug{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.hac-sug button{background:#fff;border:1px solid var(--divider,#DCE2E0);border-radius:999px;padding:6px 12px;font-size:.79rem;color:var(--ink-2,#5B6B65);cursor:pointer;font-family:inherit;font-weight:600}
.hac-sug button:hover{border-color:var(--emerald,#12805A);color:var(--emerald,#12805A)}
.hac-foot{border-top:1px solid var(--divider,#DCE2E0);padding:11px 12px;background:#fff;flex-shrink:0}
.hac-row{display:flex;gap:8px;align-items:flex-end}
.hac-in{flex:1;border:1px solid var(--divider,#DCE2E0);border-radius:9px;background:var(--hover,#F1F4F3);resize:none;outline:0;font-family:inherit;font-size:.89rem;padding:9px 11px;max-height:96px;line-height:1.45}
.hac-in:focus{border-color:var(--emerald,#12805A);background:#fff;box-shadow:0 0 0 3px rgba(18,128,90,.13)}
.hac-send{background:var(--emerald,#12805A);color:#fff;border:0;border-radius:9px;width:38px;height:38px;cursor:pointer;flex-shrink:0;font-size:.95rem}
.hac-send:disabled{background:#B8C4C0;cursor:not-allowed}
.hac-note{font-size:.68rem;color:var(--ink-3,#8A9A94);margin-top:7px;text-align:center}
.hac-f label{display:block;font-size:.78rem;font-weight:700;color:var(--deep,#062A1E);margin:0 0 5px}
.hac-f input,.hac-f textarea{width:100%;padding:9px 11px;font-family:inherit;font-size:.88rem;border:1px solid var(--divider,#DCE2E0);border-radius:8px;background:var(--hover,#F1F4F3);margin-bottom:11px;outline:0;color:var(--ink,#1C2B26)}
.hac-f input:focus,.hac-f textarea:focus{border-color:var(--emerald,#12805A);background:#fff;box-shadow:0 0 0 3px rgba(18,128,90,.13)}
.hac-f textarea{resize:vertical;min-height:88px}
.hac-f button{width:100%;background:var(--emerald,#12805A);color:#fff;border:0;border-radius:8px;padding:11px;font-family:inherit;font-weight:700;font-size:.9rem;cursor:pointer}
.hac-f button:hover{background:var(--emerald-h,#0E6B4B)}
@media (max-width:480px){.hac-panel{right:8px;left:8px;bottom:8px;width:auto;height:calc(100vh - 16px)}
.hac-btn{right:14px;bottom:14px}
}
@media print{.hac-btn,.hac-panel{display:none !important}
}

.hac-note-pad{padding:4px 0}
