/*
 * tokens.css — the SINGLE source of the console's design tokens.
 *
 * Every colour, space, type step and radius the design system uses is a CSS
 * custom property declared here, on :root. Custom properties inherit through
 * the shadow boundary, so every <pbd-*> component reads these same tokens from
 * its shadow styles with var(--pbd-...). A theme change is this one file; a
 * component never hard-codes a colour. This file is the ONLY place a literal
 * colour value (a hex) appears — the token guard test proves it.
 */
:root {
  color-scheme: light dark;

  /* --- colour --- */
  --pbd-color-bg: #0f1419;
  --pbd-color-surface: #161c24;
  --pbd-color-surface-2: #1d2530;
  --pbd-color-border: #2b343f;
  --pbd-color-text: #e6edf3;
  --pbd-color-muted: #8b98a5;
  --pbd-color-accent: #4c9f70;
  --pbd-color-accent-ink: #0f1419;
  --pbd-color-danger: #d4604f;
  --pbd-color-warn: #c9a227;
  --pbd-color-model: #7a6ff0;

  /* --- space (a 4px step scale) --- */
  --pbd-space-1: 4px;
  --pbd-space-2: 8px;
  --pbd-space-3: 12px;
  --pbd-space-4: 16px;
  --pbd-space-5: 24px;
  --pbd-space-6: 32px;

  /* --- type --- */
  --pbd-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pbd-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  --pbd-text-xs: 12px;
  --pbd-text-sm: 13px;
  --pbd-text-md: 15px;
  --pbd-text-lg: 19px;
  --pbd-text-xl: 25px;

  /* --- radius --- */
  --pbd-radius-sm: 4px;
  --pbd-radius: 8px;
  --pbd-radius-lg: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --pbd-color-bg: #f4f6f8;
    --pbd-color-surface: #ffffff;
    --pbd-color-surface-2: #eef1f4;
    --pbd-color-border: #d4dae0;
    --pbd-color-text: #1a2029;
    --pbd-color-muted: #5a6672;
    --pbd-color-accent: #2f8055;
    --pbd-color-accent-ink: #ffffff;
    --pbd-color-danger: #b23b2c;
    --pbd-color-warn: #8a6d12;
    --pbd-color-model: #5a4fd0;
  }
}
