:root { --ink: #1b2533; --muted: #5b6676; --line: #d9dee5; --brand: #0b4f8a; --soft: #eef4fa; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #f6f8fa; }
header { background: var(--brand); color: #fff; padding: 16px 24px; }
.brand { font-size: 20px; font-weight: 600; }
.subtitle { font-size: 13px; opacity: 0.85; }
main { max-width: 760px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
h1 { font-size: 20px; margin: 0 0 12px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
button { font: inherit; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; margin-top: 8px; }
button:disabled { opacity: 0.6; cursor: wait; }
button.link { background: none; color: var(--brand); padding: 0; margin: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; }
#messages { list-style: none; padding: 0; margin: 0 0 12px; max-height: 60vh; overflow-y: auto; }
#messages li { margin: 8px 0; padding: 10px 12px; border-radius: 10px; white-space: pre-wrap; max-width: 85%; }
#messages li.you { background: var(--brand); color: #fff; margin-left: auto; }
#messages li.agent { background: var(--soft); }
#composer { display: flex; gap: 8px; align-items: flex-end; }
#composer textarea { flex: 1; resize: vertical; }
.notice { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
