:root {
  --bg: #f6f5f1; --card: #ffffff; --ink: #1d1d1b; --muted: #6b6a66;
  --accent: #0f6b5c; --accent-ink: #ffffff; --line: #e4e2dc; --err: #b3261e;
  --bubble-a: #eef6f4; --bubble-u: #f1f0ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --card: #1e1e1c; --ink: #f1efe9; --muted: #a3a19b;
    --accent: #4fb7a3; --accent-ink: #0d1a17; --line: #33322f; --err: #f2b8b5;
    --bubble-a: #1f2d2a; --bubble-u: #292826;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, "Segoe UI", Arial, sans-serif; padding: 16px;
}
.card {
  width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 24px;
}
h1 { margin: 0 0 4px; font-size: 1.6rem; }
.sub { margin: 0 0 20px; color: var(--muted); }
.status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pill { padding: 4px 12px; border-radius: 999px; background: var(--bubble-u); font-size: .9rem; }
.pill.speaking { background: var(--accent); color: var(--accent-ink); }
.timer { color: var(--muted); font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 12px; margin-bottom: 16px; }
.btn {
  flex: 1; padding: 14px 18px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lines { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.b { padding: 8px 12px; border-radius: 12px; max-width: 88%; white-space: pre-wrap; }
.b.a { background: var(--bubble-a); align-self: flex-start; }
.b.u { background: var(--bubble-u); align-self: flex-end; }
.err { color: var(--err); }
.fine { margin: 20px 0 0; font-size: .82rem; color: var(--muted); }
.turnstile { margin-bottom: 12px; min-height: 0; }
