:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #242424; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
.chat { display: flex; flex-direction: column; width: 100%; min-height: 520px; max-height: 680px; border: 1px solid #dedede; border-radius: 12px; overflow: hidden; background: #fff; }
.chat-header { padding: 18px 20px 14px; background: #202020; color: #fff; }
.brand { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; letter-spacing: .02em; }
.chat-header h1 { font-size: 18px; margin: 10px 0 4px; font-weight: 600; }
.chat-header p { font-size: 13px; margin: 0; color: #e3e3e3; line-height: 1.45; }
.messages { flex: 1; min-height: 220px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 88%; padding: 11px 13px; margin: 0; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.assistant { align-self: flex-start; background: #f1f1f1; }
.bubble.customer { align-self: flex-end; background: #294b64; color: #fff; }
.bubble a { color: #154f77; text-decoration: underline; }
.status { min-height: 24px; padding: 2px 18px; color: #555; font-size: 12px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid #e6e6e6; }
.composer label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.composer textarea { flex: 1; min-width: 0; resize: vertical; max-height: 110px; border: 1px solid #bbb; border-radius: 8px; padding: 10px; font: inherit; font-size: 14px; }
.composer textarea:focus-visible, .composer button:focus-visible, a:focus-visible { outline: 3px solid #9abbd3; outline-offset: 2px; }
.composer button { border: 0; border-radius: 8px; background: #294b64; color: #fff; font-weight: 600; padding: 11px 16px; cursor: pointer; }
.composer button:disabled { opacity: .55; cursor: wait; }
.footnote { margin: 0; padding: 0 16px 13px; color: #626262; font-size: 11px; line-height: 1.4; }
.footnote a { color: #154f77; }
@media (max-width: 480px) { .chat { min-height: 540px; border-radius: 0; } .chat-header { padding: 14px 16px; } .messages { padding: 14px; } .bubble { max-width: 94%; } }
