/* Design tokens: the only place a raw colour or a spacing value is written.
 *
 * Everything else refers to these names. The console is dark today and a light
 * theme is not planned for now, but a token layer means adding one is a single
 * block rather than a sweep through every stylesheet — see §15 of
 * docs/UI_CONCEPT_v2.md. Contrast of every text colour against its background
 * is at least 4.5:1.
 */

:root {
  /* surfaces */
  --bg: #14161a;
  --bg-raised: #1b1e24;
  --bg-sunken: #101216;
  --border: #2a2f37;
  --border-strong: #3a414c;

  /* text */
  --fg: #e6e8ec;
  --fg-muted: #9aa3af;
  --fg-faint: #6b7280;

  /* semantics: state is colour plus a word, never colour alone */
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --info: #60a5fa;
  --accent: #7aa2f7;

  /* typography: identifiers and numbers are monospace on purpose —
     `deepseek-v3` and `deepseek-v3.1` have to differ at a glance */
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  --fs-sm: 12px;
  --fs-base: 14px;
  --fs-lg: 16px;

  /* spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --radius: 6px;
}

/* Numeric cells: fixed-width digits so columns of money line up. */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Identifiers: model ids, refs, env var names. */
.mono {
  font-family: var(--font-mono);
}

.muted { color: var(--fg-muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
