.chat-panel{width:420px;height:min(700px,calc(100dvh - 120px));max-height:calc(100dvh - 120px);transform-origin:bottom right;animation:none}
.chat-panel[inert]{pointer-events:none}
.chat-panel[data-state=opening],.chat-panel[data-state=closing]{will-change:transform,opacity}
.chat-launcher[inert]{pointer-events:none}
.chat-header,.chat-suggestions,.chat-quick-actions,.chat-input,.chat-disclaimer{flex-shrink:0}
.chat-header h2{font-size:17px}
.chat-header p{font-size:12px}
.chat-header #reset-chat{margin-left:auto}
.chat-header #close-chat{margin-left:0}
.chat-messages{min-height:0;max-height:none;scroll-behavior:smooth}
.chat-message{white-space:pre-line;line-height:1.7}
.assistant-message{margin-right:4px}
.chat-message-actions{display:grid;gap:8px;margin-top:12px;white-space:normal}
.chat-message-actions button{margin:0;width:100%;min-height:42px;text-align:left;line-height:1.5;padding:10px 12px;font-size:14px}
.chat-message-actions button:hover{background:var(--brand-soft);border-color:#8fa6bd}
.chat-message-actions button:focus-visible,.chat-suggestions button:focus-visible{outline-offset:2px}
.chat-suggestions{padding-bottom:10px;border-top:1px solid #edf0f3;padding-top:10px}
.chat-suggestions button{font-size:13px;min-height:36px}
.chat-disclaimer{font-size:12px;padding:8px 14px 10px;line-height:1.5}
.chat-input{margin-bottom:0}
.chat-input input:not([type=checkbox]){font-size:16px;min-width:0}
.chat-quick-actions button{min-height:42px}
@media(max-width:760px){
  .chat-panel{right:12px;bottom:12px;width:min(390px,calc(100% - 24px));height:min(680px,calc(100dvh - 98px));max-height:calc(100dvh - 98px)}
  .chat-messages{min-height:0;max-height:none;padding:15px 12px 8px}
  .chat-message{font-size:15px;padding:12px}
  .chat-header{gap:8px;padding:12px}
  .chat-header .assistant-avatar{width:32px;height:32px}
  .chat-header .icon-button{width:32px;height:32px;padding:7px}
  .chat-suggestions{padding:9px 12px}
  .chat-quick-actions{padding:0 12px 8px}
  .chat-suggestions button{font-size:12px;padding:6px 9px}
}
@media(max-height:560px){
  .chat-panel{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);bottom:12px}
  .chat-suggestions,.chat-quick-actions{display:none}
  .chat-disclaimer{font-size:11px;padding-block:5px}
}
@media(prefers-reduced-motion:reduce){.chat-messages{scroll-behavior:auto}}
