.chat-toggle{position:fixed;right:20px;bottom:20px;z-index:20;border-radius:999px;padding:14px 22px;box-shadow:0 6px 20px rgba(24,43,42,.25)}
.chat-toggle[hidden],.chat-panel[hidden]{display:none}
.chat-panel{position:fixed;right:20px;bottom:20px;z-index:21;width:360px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:#fff;border:1px solid #dbe1d6;border-radius:16px;box-shadow:0 12px 40px rgba(24,43,42,.25);overflow:hidden}
.chat-head{display:flex;align-items:center;justify-content:space-between;background:#183e37;color:#fff;padding:12px 16px}
.chat-close{background:transparent;color:#fff;font-size:22px;line-height:1;padding:2px 8px}
.chat-close:hover{background:rgba(255,255,255,.15)}
.chat-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#f7f6f2}
.chat-msg{max-width:85%;padding:10px 13px;border-radius:12px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-user{align-self:flex-end;background:#184c3d;color:#fff}
.chat-bot{align-self:flex-start;background:#fff;border:1px solid #e1e5dc}
.chat-pending{color:#64796c;font-style:italic}
.chat-error{align-self:flex-start;background:#fbeaea;border:1px solid #e5b9b9;color:#7a1f1f}
.chat-meta{align-self:flex-start;max-width:100%;padding:0 4px;font-size:11px;color:#64796c}
.chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e1e5dc}
.chat-form input{padding:10px;font-size:14px}
.chat-form button{padding:10px 16px}
.chat-note{margin:0;padding:0 12px 10px;font-size:11px;line-height:1.4;color:#64796c}
@media(max-width:480px){.chat-panel{right:12px;bottom:12px;height:calc(100vh - 24px)}}
