.chat-toggle{position:fixed;right:20px;bottom:20px;z-index:50;box-shadow:0 4px 16px #163f3526}.chat-panel{position:fixed;right:20px;bottom:80px;width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 105px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;z-index:51;box-shadow:0 8px 35px #163f352b}.chat-panel[hidden]{display:none}.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-heading h2{font-size:20px;margin:0}.chat-heading button{font-size:12px;padding:8px}.chat-notice,.chat-status{font-size:12px;line-height:1.5;color:var(--muted)}.chat-messages{max-height:32dvh;overflow:auto}.chat-message{padding:12px;background:#f1f5eb;border-radius:8px;margin-bottom:10px;font-size:14px}.chat-message p{white-space:pre-wrap;margin:6px 0;overflow-wrap:anywhere}.chat-source{display:block;text-decoration:underline;margin-top:8px;font-size:13px}.chat-panel textarea{width:100%;resize:vertical}.chat-panel label{font-size:14px}.chat-escalate{margin-top:12px}.chat-panel .quiet{font-size:12px}@media(max-width:650px){.chat-panel{right:16px;bottom:76px;padding:16px}.chat-toggle{right:16px;bottom:16px}}