.chat{max-height:calc(100dvh - 28px);max-height:min(800px,calc(100dvh - 28px));display:flex;flex-direction:column;overflow:hidden}.chat:not(.open){visibility:hidden;pointer-events:none}.chat-h,.chat-f,.chat-n,.assistant-consent,.assistant-tools{flex-shrink:0}.chat-log{flex:1;min-height:100px;overflow-y:auto;overscroll-behavior:contain}.chat .msg{white-space:pre-wrap;overflow-wrap:anywhere}.chat .msg p{margin:0}.assistant-consent{margin:0 16px 8px;padding:10px 12px;border:1px solid #d6d9d5;border-radius:10px;background:#f4f5f2;color:#52616a;font-size:11px;line-height:1.6}.assistant-consent p{margin:0 0 7px}.assistant-consent label{display:flex;gap:8px;align-items:flex-start;color:#192e3c;font-size:12px;cursor:pointer}.assistant-consent input{margin-top:3px;accent-color:#233e4b;flex:none;width:15px;height:15px}.assistant-consent.needs-consent{border-color:#a27a45;background:#fff9eb}.assistant-tools{display:flex;justify-content:flex-end;padding:3px 18px}.assistant-tools button{font:inherit;font-size:11px;border:0;background:none;color:#64737c;cursor:pointer;padding:5px}.assistant-tools button:hover{text-decoration:underline}.assistant-sources{display:grid;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #d8dedb;font-size:12px}.assistant-sources b{font-weight:500;color:#71818a;font-size:11px}.assistant-sources a{color:#85683c;text-decoration:underline;text-underline-offset:3px;line-height:1.5}.chat .send:disabled{opacity:.5;cursor:wait}.chat .chat-n a{color:inherit;text-decoration:underline}.chat [hidden]{display:none!important}@media(max-width:820px){.chat{width:calc(100% - 20px);left:auto;right:10px;bottom:max(10px,env(safe-area-inset-bottom));max-height:calc(100dvh - 20px - env(safe-area-inset-top));height:min(720px,calc(100dvh - 20px - env(safe-area-inset-top)));border-radius:18px}.chat .chat-log{max-height:none}.chat .chat-f input{font-size:16px}.chat .chat-n{font-size:10px;margin:0;padding:4px 16px 10px}.assistant-consent{font-size:11px;margin:0 12px 6px;padding:8px 10px}.assistant-consent label{font-size:12px}.chat .chat-h{padding:13px 16px}.chat .chat-f{padding:8px 12px}}@media(max-height:560px){.assistant-consent p{font-size:10px;line-height:1.3}.assistant-consent{padding:5px 8px}.chat .chat-n{display:none}.chat .chat-log{min-height:65px}}

/* Accepted guidance stays available without covering the conversation. */
.assistant-consent.is-collapsed{padding:3px 10px;background:transparent;border-color:transparent;margin-bottom:0}
.assistant-consent-summary{border:0;background:transparent;color:#64737c;font:inherit;font-size:11px;cursor:pointer;padding:4px 0;text-align:left}
.assistant-consent-summary:focus-visible{outline:2px solid #927443;outline-offset:3px}
.chat .msg.streaming::after{content:'▍';display:inline;color:#927443;animation:assistant-cursor 1s step-end infinite}
@keyframes assistant-cursor{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.chat .msg.streaming::after{animation:none}}
