.svelex-chat { --chat-surface:#101625; --chat-border:#43587e; color:var(--text); }
.chat-sr { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.chat-launcher { position:fixed; z-index:12; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; width:75px; min-height:93px; padding:4px 4px 5px; color:#edf4ff; border:1px solid #617bbc; border-radius:29px; background:#0d1428; box-shadow:0 8px 26px #030611dd,0 0 24px #365ad445; cursor:grab; touch-action:none; user-select:none; }
.chat-launcher:hover, .chat-launcher[aria-expanded="true"] { border-color:#85c7ff; background:#162244; }
.chat-launcher.dragging { cursor:grabbing; }
.chat-portrait { display:block; position:relative; width:65px; height:63px; overflow:hidden; border-radius:23px 23px 20px 20px; background:#111c37; }
.chat-portrait img { position:absolute; max-width:none; width:294px; height:196px; left:-173px; top:-48px; pointer-events:none; }
.chat-launcher-label { font-size:.79rem; font-weight:740; }
.chat-panel { position:fixed; z-index:13; display:flex; flex-direction:column; width:min(370px,calc(100vw - 32px)); height:min(454px,calc(100dvh - 24px)); overflow:hidden; background:var(--chat-surface); border:1px solid var(--chat-border); border-radius:18px; box-shadow:0 18px 64px #02030cba; }
.chat-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 14px; background:linear-gradient(110deg,#1c2d57,#1c1a38); border-bottom:1px solid #3b4d75; }
.chat-head h2 { font-size:1.1rem; letter-spacing:0; }
.chat-head p { margin-top:3px; color:#c8d5f0; font-size:.79rem; }
.chat-close { flex:0 0 38px; height:38px; border:1px solid #546b99; border-radius:9px; color:var(--text); background:#151d34; font-size:1.4rem; line-height:1; }
.chat-body { flex:1 1 auto; min-height:0; overflow:auto; padding:14px; scrollbar-color:#5975aa #121827; }
.chat-privacy { margin:0 0 10px; color:#c8d5f0; font-size:.76rem; }
.chat-privacy a { color:#a6d7ff; }
.chat-log { display:grid; gap:10px; }
.chat-message { width:fit-content; max-width:94%; border:1px solid #3b4b6c; border-radius:12px; padding:8px 11px; font-size:.91rem; overflow-wrap:anywhere; }
.chat-message p { color:#f2f6ff; }
.chat-message.bot { background:#182239; }
.chat-message.user { justify-self:end; background:#1e3b6e; border-color:#526fad; }
.chat-sources { list-style:none; padding:0; margin-top:6px; }
.chat-sources a { color:#a6d7ff; display:inline-block; font-size:.82rem; padding-block:3px; }
.chat-suggestions { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.chat-suggestions button, .chat-reset { border:1px solid #475d85; border-radius:8px; padding:5px 8px; color:#cce3ff; background:#18243e; font-size:.78rem; }
.chat-suggestions button:hover, .chat-reset:hover { background:#263d64; }
.chat-form { flex:0 0 auto; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; padding:9px 12px; border-top:1px solid #334263; }
.chat-form input { min-width:0; background:#0b1120; border:1px solid #536a98; color:#fff; padding:7px 9px; border-radius:8px; font-size:.95rem; }
.chat-form .button { min-height:40px; border-radius:8px; padding:7px 11px; font-size:.9rem; }
.chat-form button:disabled { opacity:.65; cursor:wait; }
.chat-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:5px 10px; padding:0 12px 10px; }
.chat-footer a { color:#cce3ff; font-size:.8rem; }
@media (max-width:600px) {
  .chat-panel { width:min(370px,calc(100vw - 32px)); }
  .chat-form input { font-size:16px; }
}
@media (max-height:410px) {
  .chat-footer { padding-bottom:4px; }
  .chat-head { padding-block:6px; }
  .chat-suggestions { display:none; }
}
@media print { .svelex-chat { display:none !important; } }

