/* Design tokens. Light is the default; dark applies via the OS setting or
   a manual data-theme="dark" on <html> (set by js/theme.js). */
:root {
  color-scheme: light;
  --bg: #f4f5f8; --surface: #ffffff; --surface-2: #eceef4; --border: #d6dae4;
  --text: #171a21; --muted: #586072;
  --accent: #3d4fd1; --accent-ink: #ffffff; --accent-soft: #e5e8fb;
  --live: #14774f; --live-soft: #dcf2e6;
  --paused: #7a4f00; --paused-soft: #fdeec8; --paused-strong: #f2b53a;
  --danger: #b42318; --danger-soft: #fde3e0;
  --bubble-in: #eceef4; --bubble-out: #dde2fa; --bubble-bot: #e3f1ea;
  --shadow: 0 1px 2px rgba(20, 24, 40, .08), 0 6px 18px rgba(20, 24, 40, .06);
  --radius: 14px; --radius-sm: 10px; --gutter: 16px; --tap: 44px;
  --top-h: 56px; --nav-h: 62px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Naskh Arabic", "Geeza Pro", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1116; --surface: #171b22; --surface-2: #212733; --border: #2c3341;
    --text: #e8eaf0; --muted: #9aa3b4;
    --accent: #8f9bff; --accent-ink: #0e1116; --accent-soft: #252b4f;
    --live: #55c993; --live-soft: #15332a;
    --paused: #f3bd55; --paused-soft: #3a2c0c; --paused-strong: #f3bd55;
    --danger: #ff8f84; --danger-soft: #3d1b19;
    --bubble-in: #222936; --bubble-out: #2a3166; --bubble-bot: #1b3a2f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116; --surface: #171b22; --surface-2: #212733; --border: #2c3341;
  --text: #e8eaf0; --muted: #9aa3b4;
  --accent: #8f9bff; --accent-ink: #0e1116; --accent-soft: #252b4f;
  --live: #55c993; --live-soft: #15332a;
  --paused: #f3bd55; --paused-soft: #3a2c0c; --paused-strong: #f3bd55;
  --danger: #ff8f84; --danger-soft: #3d1b19;
  --bubble-in: #222936; --bubble-out: #2a3166; --bubble-bot: #1b3a2f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
}
