/* Koari floating assistant, sleek theme: dark matte glass, iridescent accents, gold highlights */
#koari-fab{position:fixed;right:22px;bottom:22px;width:64px;height:64px;border-radius:50%;padding:0;cursor:pointer;z-index:9998;overflow:visible;border:0;background:transparent;transition:transform .25s ease}
#koari-fab:hover{transform:scale(1.07)}
#koari-fab img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;border:2px solid transparent;background:linear-gradient(#0d1015,#0d1015) padding-box,linear-gradient(135deg,#e9b8f5,#a5b4fc,#9be7d8,#c9a227) border-box;box-shadow:0 12px 36px rgba(0,0,0,.5)}
#koari-fab .koari-dot{position:absolute;right:3px;bottom:3px;width:13px;height:13px;border-radius:50%;background:#2fae6e;border:2px solid #0d1015}
#koari-panel{position:fixed;right:22px;bottom:100px;width:min(384px,calc(100vw - 32px));height:min(560px,calc(100dvh - 140px));display:none;flex-direction:column;z-index:9999;border-radius:20px;overflow:hidden;background:rgba(11,13,18,.94);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid transparent;background-clip:padding-box;box-shadow:0 30px 80px rgba(0,0,0,.6);color:#eef1f6}
#koari-panel::before{content:"";position:absolute;inset:0;border-radius:20px;padding:1px;background:linear-gradient(135deg,rgba(233,184,245,.8),rgba(165,180,252,.9),rgba(155,231,216,.8),rgba(201,162,39,.7));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
#koari-panel.open{display:flex}
.koari-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(120deg,#274b7a,#16294a 70%);color:#f2f4f7;border-bottom:1px solid rgba(201,162,39,.35)}
.koari-head img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid rgba(201,162,39,.6)}
.koari-head .koari-name{font-weight:700;font-size:15px;letter-spacing:.01em}
.koari-head .koari-sub{font-size:11px;color:#c3cede}
.koari-head button{margin-left:auto;background:none;border:0;color:#c3cede;font-size:20px;cursor:pointer;line-height:1;padding:6px}
.koari-head button:hover{color:#fff}
.koari-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.koari-msg{max-width:85%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5}
.koari-msg.bot{background:rgba(255,255,255,.07);border:1px solid rgba(47,212,196,.22);align-self:flex-start;border-bottom-left-radius:4px;color:#eef1f6;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.koari-msg.user{background:linear-gradient(120deg,#c9a227,#e9c86a);color:#0d1117;align-self:flex-end;border-bottom-right-radius:4px;font-weight:500}
.koari-msg a{color:#e9c86a;text-decoration:underline;font-weight:600}
.koari-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px}
.koari-chips button{background:rgba(255,255,255,.06);border:1px solid rgba(47,212,196,.25);color:#eef1f6;font-size:12px;padding:7px 12px;border-radius:999px;cursor:pointer;transition:all .2s}
.koari-chips button:hover{border-color:#c9a227;background:linear-gradient(120deg,rgba(201,162,39,.12),rgba(165,180,252,.14))}
.koari-input{display:flex;gap:8px;padding:12px 14px;border-top:1px solid rgba(238,241,246,.12)}
.koari-input input{flex:1;background:rgba(255,255,255,.06);border:1px solid rgba(47,212,196,.25);border-radius:12px;color:#eef1f6;font-size:14px;padding:10px 12px;outline:none}
.koari-input input:focus{border-color:#2fd4c4}
.koari-input input::placeholder{color:#6e7787}
.koari-input button{background:linear-gradient(120deg,#c9a227,#e9c86a);border:0;border-radius:12px;color:#0d1117;font-weight:700;font-size:14px;padding:10px 16px;cursor:pointer}
.koari-note{padding:8px 16px 12px;font-size:10.5px;color:#8b95a5}
@media (max-width:480px){#koari-fab{right:14px;bottom:14px;width:56px;height:56px}#koari-panel{right:12px;bottom:82px}}

/* v2 (2026-10-26): the top menu scrolls away with the page; nothing fixed blocks the screen */
.topbar{position:static !important}
.frail{position:static !important}
