:root {
  color-scheme: light dark;
  --bg: #fafaf8;
  --fg: #1c1c1a;
  --muted: #8a8a84;
  --line: #e4e4de;
  --accent: #d6001c;
  --ok: #1a9c4a;
  --warn: #c98a00;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --fg: #ececE6; --muted: #7d7d77; --line: #2a2a27; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 18px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column;
}
body > header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 1.2rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg);
}
h1 { font-size: 1rem; margin: 0; letter-spacing: .02em; }
nav { display: flex; gap: .3rem; }
nav button {
  font: inherit; font-size: .9rem; border: 1px solid var(--line); background: none; color: inherit;
  padding: .15rem .7rem; border-radius: 999px; cursor: pointer;
}
nav button[aria-current="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.status { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.status[data-state="live"]::before { background: var(--accent); animation: pulse 1.6s infinite; }
.status[data-state="warn"]::before { background: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }
.download { margin-left: auto; font-size: .85rem; color: var(--muted); }
main { flex: 1; overflow-y: auto; padding: 1rem 1.2rem 4rem; max-width: 60rem; width: 100%; margin: 0 auto; }
.turn {
  --spk: var(--muted);
  border-left: 3px solid var(--spk);
  padding: .1rem 0 .1rem .9rem; margin: 0 0 1rem;
}
.turn header { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .1rem; }
.turn time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; }
.who {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--spk);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.who:hover { text-decoration: underline; }
.turn p { margin: 0; }
.turn span.new { animation: fadein .6s ease-out; }
@keyframes fadein { from { opacity: 0; } }
.empty { color: var(--muted); font-style: italic; }
.jump {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  font: inherit; font-size: .9rem; padding: .4rem 1rem; border-radius: 999px; border: 0;
  background: var(--fg); color: var(--bg); cursor: pointer; box-shadow: 0 2px 10px #0003;
}
.kamer {
  padding: .45rem 1.2rem; font-size: .9rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ok) 10%, var(--bg));
}
.kamer[data-state="suspended"] { background: color-mix(in srgb, var(--warn) 18%, var(--bg)); }
.kamer::before { content: "🏛 "; }
.turn.suspended { opacity: .6; }
.tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--warn);
  border: 1px solid currentColor; border-radius: 3px; padding: 0 .3rem;
}
.turn.ad { opacity: .5; border-left-style: dashed; }
.caption {
  font-size: .78rem; color: var(--muted); margin: -.4rem 0 .5rem .9rem; letter-spacing: .02em;
}
.caption::before { content: "▭ "; }
.badge {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  background: var(--warn); color: #fff; border-radius: 3px; padding: .1rem .45rem;
}
