.assistant-launcher{position:fixed;right:22px;bottom:22px;z-index:45;display:flex;align-items:center;gap:9px;min-height:48px;padding:12px 16px;border:0;border-radius:24px;background:#202d62;color:white;box-shadow:0 4px 18px #17234025;cursor:pointer;font:600 13px Arial,"Microsoft YaHei",sans-serif}
.assistant-launcher svg{width:22px;height:22px;flex-shrink:0}
.assistant-panel{position:fixed;inset:auto 22px 82px auto;margin:0;width:390px;max-width:calc(100vw - 28px);height:540px;max-height:calc(100dvh - 110px);padding:0;border:1px solid #dce1e8;border-radius:10px;background:#fff;color:#172340;box-shadow:0 10px 45px #17234026;z-index:50;overflow:hidden}
.assistant-panel[open]{display:flex;flex-direction:column}
.assistant-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 18px 14px;background:#202d62;color:white;flex-shrink:0}
.assistant-header strong{font-size:15px;line-height:1.4;display:block}
.assistant-header small{display:block;font-size:11px;color:#d1daeb;margin-top:5px}
.assistant-close{width:38px;height:38px;border:0;background:transparent;color:white;font-size:27px;line-height:1;cursor:pointer;flex-shrink:0}
.assistant-messages{flex:1;min-height:0;overflow-y:auto;padding:18px;scroll-behavior:smooth;overscroll-behavior:contain}
.assistant-message{max-width:94%;margin-bottom:14px;padding:12px 14px;border-radius:8px;background:#f2f5fa;overflow-wrap:anywhere}
.assistant-message p{font-size:13px;line-height:1.85;margin:0;color:#34415a;white-space:pre-wrap}
.assistant-message-visitor{margin-left:auto;background:#202d62}
.assistant-message-visitor p{color:white}
.assistant-source-links{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:10px}
.assistant-source-links a{font-size:12px;color:#202d62;text-decoration:underline;font-weight:600}
.assistant-suggestions{padding:0 16px 12px;display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}
.assistant-suggestions button{border:1px solid #dce1e8;border-radius:16px;background:white;padding:7px 10px;font-size:11px;color:#202d62;cursor:pointer;min-height:34px}
.assistant-composer{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #dce1e8;flex-shrink:0}
.assistant-composer input{flex:1;width:0;min-width:0;border:1px solid #dce1e8;border-radius:5px;min-height:42px;padding:9px 10px;font-size:14px;line-height:1.4;background:white;color:#172340}
.assistant-composer button{border:0;border-radius:5px;background:#dc1929;color:white;padding:10px 13px;font-size:12px;font-weight:600;cursor:pointer}
.assistant-composer button:disabled{opacity:.6;cursor:wait}
.assistant-note{font-size:10px;line-height:1.6;padding:0 16px 12px;color:#626c7d;margin:0;flex-shrink:0}
.assistant-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){.assistant-launcher{bottom:calc(80px + env(safe-area-inset-bottom,0px));right:max(14px,env(safe-area-inset-right,0px));width:48px;padding:13px;border-radius:50%}.assistant-launcher span{display:none}.assistant-launcher[aria-expanded=true]{visibility:hidden}.assistant-panel{right:14px;bottom:calc(138px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 160px)}body:has(.mobile-tabs.is-keyboard-open) .assistant-launcher{display:none}}
@media(max-width:560px){.assistant-panel{right:12px;left:12px;width:auto;max-width:none;height:480px;bottom:calc(84px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 116px)}.assistant-composer input{font-size:16px}.assistant-message p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.assistant-messages{scroll-behavior:auto}}
