/* Chinook color system — extracted verbatim from prototypes/console.html.
   Dark is the primary theme; a light theme is provided as an override scope. */
:root {
  /* --- base surfaces (warm charcoal, primary) --- */
  --bg: #121110;
  --panel: #1a1918;
  --panel-2: #211f1d;
  --panel-3: #2a2825;
  --border: #322f2b;
  --border-soft: #211f1d;

  /* --- text (warm off-white → warm grey) --- */
  --text: #ece8e4;
  --text-dim: #a39d95;
  --text-faint: #6c665e;

  /* --- accent (Chinook orange → pink) --- */
  --accent: #ff9d5c;
  --accent-hover: #ffb07a;
  --accent-dim: rgba(255, 157, 92, 0.14);
  --accent-ink: #1a1008;
  --brand-gradient: linear-gradient(135deg, #ff9d5c, #ff6b9d);
  --accent-pink: #ff6b9d;

  /* --- branch / environment semantics --- */
  --master: #6ba585;
  --staging: #7d9dc9;
  --feature: #a595c8;
  --fix: #cf9285;

  /* --- status semantics --- */
  --good: #3fb950;
  --warn: #d29922;
  --crit: #ff7b72;

  /* --- severity scale --- */
  --sev-high: #e5484d;
  --sev-medium: #e08c00;
  --sev-low: #3f8f4f;

  /* --- semantic aliases --- */
  --surface-app: var(--bg);
  --surface-panel: var(--panel);
  --surface-raised: var(--panel-2);
  --surface-active: var(--panel-3);
  --text-body: var(--text);
  --text-muted: var(--text-dim);
  --text-subtle: var(--text-faint);
  --border-default: var(--border);
  --border-subtle: var(--border-soft);
  --focus-ring: var(--accent-dim);
}

:root {
  --syn-comment: var(--text-faint);
  --syn-keyword: #e0885f;
  --syn-string: #8fb27a;
  --syn-number: #c9a26d;
  --syn-type: #a595c8;
  --syn-function: #7d9dc9;
  --syn-literal: #cf9285;
}

:root[data-theme="light"] {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-2: #f1f4f8;
  --panel-3: #e8edf3;
  --border: #dce2ea;
  --border-soft: #e8edf3;
  --text: #18202b;
  --text-dim: #5a6675;
  --text-faint: #8b98a8;
  --accent: #e8752b;
  --accent-hover: #d0641f;
  --accent-dim: rgba(232, 117, 43, 0.12);
  --master: #4a8a63;
  --staging: #5878a8;
  --feature: #8271ab;
  --fix: #b26a5c;
  --good: #1a7f37;
  --warn: #9a6700;
  --crit: #cf3f38;
}
