.chat-launch{position:fixed;right:26px;bottom:24px;z-index:28;width:68px;height:68px;border-radius:50%;border:3px solid #fff;background:linear-gradient(135deg,#2858ef,#477cff);color:#fff;font-size:25px;box-shadow:0 16px 40px rgba(45,91,255,.4)}.chat-label{position:fixed;right:105px;bottom:38px;z-index:27;background:#08221f;color:#fff;border-radius:999px;padding:10px 16px;font-size:12px;font-weight:850;box-shadow:0 12px 30px #0005}.chatbox{display:none;position:fixed;right:25px;bottom:104px;width:min(390px,calc(100vw - 30px));height:540px;z-index:29;background:#f7faf9;color:#102423;border-radius:20px;overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.42)}.chatbox.open{display:flex;flex-direction:column}.chat-head{background:#0a2032;color:#fff;padding:17px;display:flex;justify-content:space-between}.chat-head small{display:block;color:#71dfb2}.chat-messages{padding:18px;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.bubble{padding:12px 14px;border-radius:13px;background:#fff;border:1px solid #dce6e1;font-size:13px;line-height:1.45;max-width:88%;white-space:pre-wrap}.bubble.user{align-self:flex-end;background:#2858ef;color:#fff;border-color:#2858ef}.bubble.assistant{align-self:flex-start}.bubble.pending{color:#60736d;font-style:italic}.chat-status{padding:0 16px 8px;min-height:18px;color:#667b74;font-size:11px}.chat-status.error{color:#a33b31}.chat-voice-hint{padding:0 16px 8px;color:#557068;font-size:11px}.chat-input{display:flex;gap:8px;border-top:1px solid #dce6e1;padding:12px}.chat-input input{flex:1;min-width:0;border:1px solid #cbd8d2;border-radius:999px;padding:11px 14px}.chat-input button{border:0;border-radius:50%;width:43px;flex:0 0 43px;background:#3f70ff;color:#fff}.chat-input button:disabled{opacity:.55;cursor:wait}.chat-input .voice-btn{background:#e7f0ff;color:#1749c9;font-size:19px}.chat-input .voice-btn.listening{background:#d73b4a;color:#fff;animation:pulseVoice 1.1s infinite}@keyframes pulseVoice{50%{transform:scale(1.08);box-shadow:0 0 0 7px #d73b4a22}}
.chatbox .close{background:none;border:0;color:inherit;font-size:24px;padding:0;width:28px}.chatbox input{margin:0;font:13px system-ui}.chatbox button{padding:0;font-family:inherit;cursor:pointer}.chatbox{max-height:calc(100dvh - 125px)}@media(max-width:600px){.chat-label{display:none}}
.chatbox{width:min(350px,calc(100vw - 30px));height:430px;max-height:calc(100dvh - 125px)}.chat-head{padding:12px 15px;align-items:center}.chat-head-actions{display:flex;align-items:center;gap:10px}.chatbox .chat-read{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#1749c9;border:0}.chat-read svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}.chat-read[aria-pressed="true"]{background:#75dac2}.chat-messages{padding:14px}.chat-voice-hint{padding-bottom:5px}.chat-input{padding:10px}.chatbox .chat-input input{padding:9px 12px}

.chatbox{position:fixed;z-index:1201;right:25px;bottom:104px;width:min(390px,calc(100vw - 30px));height:540px;max-height:calc(100dvh - 125px)}.chat-launch{z-index:1202}.chat-label{z-index:1200}.chat-head,.chat-input,.chat-voice-hint,.chat-status{flex-shrink:0}.chat-messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1}.chatbox.open{display:flex;flex-direction:column}@media(max-height:450px){.chatbox{bottom:80px;max-height:calc(100dvh - 100px)}}
