.sc-launch{position:fixed;right:20px;bottom:20px;z-index:90;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--sky));color:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgba(12,107,239,.45);transition:transform .2s var(--ease)}
.sc-launch:hover{transform:scale(1.07)}
.sc-launch svg{width:28px;height:28px}
.sc-panel{position:fixed;right:20px;bottom:96px;z-index:91;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 124px));display:flex;flex-direction:column;background:var(--navy);border:1px solid var(--line-d);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.5);overflow:hidden}
.sc-panel[hidden]{display:none}
.sc-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--navy-2);border-bottom:1px solid var(--line-d);color:#fff;font-weight:700}
.sc-head small{display:block;font-weight:400;font-size:.75rem;color:#9AA3C4}
.sc-close{width:32px;height:32px;border-radius:8px;font-size:1.1rem;color:#C9CFE0}
.sc-close:hover{background:rgba(255,255,255,.08)}
.sc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;font-size:.95rem;line-height:1.5}
.sc-msg{max-width:86%;padding:10px 13px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.sc-msg.bot{align-self:flex-start;background:rgba(255,255,255,.08);color:#E4E8F5;border-bottom-left-radius:4px}
.sc-msg.me{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:4px}
.sc-msg.err{color:#FFC9C9}
.sc-msg a{color:var(--sky);text-decoration:underline}
.sc-dots span{display:inline-block;width:6px;height:6px;margin:0 2px;border-radius:50%;background:#9AA3C4;animation:sc-b 1s infinite}
.sc-dots span:nth-child(2){animation-delay:.15s}.sc-dots span:nth-child(3){animation-delay:.3s}
@keyframes sc-b{0%,60%,100%{opacity:.3}30%{opacity:1}}
.sc-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line-d);background:var(--navy-2)}
.sc-form input{flex:1;min-width:0;padding:11px 13px;border-radius:10px;border:1px solid var(--line-d);background:var(--night);color:#fff;font:inherit;font-size:16px}
.sc-form input::placeholder{color:#7C85A8}
.sc-form button{padding:0 16px;border-radius:10px;background:var(--blue);color:#fff;font-weight:700}
.sc-form button:disabled{opacity:.5;cursor:default}
.sc-note{padding:0 12px 10px;background:var(--navy-2);font-size:.7rem;color:#7C85A8;text-align:center}
@media (max-width:480px){.sc-panel{right:8px;bottom:84px;width:calc(100vw - 16px)}.sc-launch{right:14px;bottom:14px}}
@media (prefers-reduced-motion:reduce){.sc-launch,.sc-dots span{transition:none;animation:none}}
