:root { --bg:#0f1115; --card:#171a21; --fg:#e8eaf0; --muted:#9aa3b2; --accent:#4f7cff; --user:#243b6b; --bot:#1f2a24; --err:#5a1f1f; }
* { box-sizing: border-box; } body { margin:0; background:var(--bg); color:var(--fg); font: 16px/1.5 system-ui, "Segoe UI", Arial, sans-serif; }
main { max-width: 820px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 16px; }
header { display:flex; justify-content:space-between; align-items:center; } h1 { font-size: 22px; margin: 0; }
#status { padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--muted); font-size: 14px; }
#status[data-s="listening"] { color:#7ee787; } #status[data-s="speaking"] { color:#79c0ff; } #status[data-s="offline"], #status[data-s="error"] { color:#ff7b72; }
.controls { background: var(--card); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); } input, select, textarea { width:100%; background:#0f1115; color:var(--fg); border:1px solid #2a2f3a; border-radius:8px; padding:8px; font: inherit; }
button { background: var(--accent); color: white; border: 0; border-radius: 10px; padding: 12px; font-size: 16px; cursor: pointer; } .hidden { display: none; }
#log { background: var(--card); border-radius: 12px; padding: 16px; min-height: 240px; max-height: 50vh; overflow-y: auto; display: grid; gap: 8px; align-content: start; }
.line { padding: 8px 12px; border-radius: 10px; max-width: 85%; white-space: pre-wrap; } .line.user { background: var(--user); justify-self: start; } .line.assistant { background: var(--bot); justify-self: end; } .line.error { background: var(--err); }
footer { color: var(--muted); font-size: 13px; text-align: center; } footer a { color: var(--muted); }
