:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0d1720;
  color: #eaf3f5;
  --card: #13232e;
  --border: #344a58;
  --muted: #b4c5cd;
  --accent: #8be0cc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 2rem, 42rem); margin: clamp(1.15rem, 5vw, 3.5rem) auto; }
header, .split, .actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
header, .split { justify-content: space-between; }
header { margin-bottom: 1rem; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: clamp(1.55rem, 5vw, 2.25rem); line-height: 1.15; }
h2 { font-size: 1.16rem; }
h3 { font-size: 1rem; margin-top: 1.15rem; }
.panel { padding: clamp(1rem, 4vw, 1.5rem); background: var(--card); border: 1px solid var(--border); border-radius: .9rem; }
.panel + .panel { margin-top: .85rem; }
form { margin-top: 1rem; display: grid; gap: .65rem; }
label, .quiet, dt, details p { color: var(--muted); }
.quiet, dt { font-size: .9rem; }
input, button { min-height: 2.8rem; border-radius: .55rem; font: inherit; }
input { min-width: 0; width: 100%; padding: .55rem .75rem; color: inherit; background: #0b1821; border: 1px solid var(--border); }
button { padding: .55rem .85rem; border: 1px solid transparent; background: var(--accent); color: #102822; font-weight: 650; cursor: pointer; }
button.secondary { background: transparent; color: inherit; border-color: var(--border); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #f5c77c; outline-offset: 3px; }
.actions, #play { margin-top: .85rem; }
#state { padding: .35rem .65rem; border: 1px solid var(--border); border-radius: .45rem; }
#state[data-state="connected"], .speaking { color: var(--accent); }
#state[data-state="reconnecting"], .notice { color: #f5c77c; }
#people { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
#people li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; border-bottom: 1px solid var(--border); padding: .35rem 0; overflow-wrap: anywhere; }
.notice { margin-top: .85rem; line-height: 1.4; }
dl { margin-top: .9rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .6rem; }
dl div { background: #0d1c25; padding: .65rem; border-radius: .45rem; }
dd { font-variant-numeric: tabular-nums; margin: .2rem 0 0; }
details { margin-top: 1rem; }
summary { min-height: 2.75rem; cursor: pointer; }
details p { line-height: 1.55; }
