/* Nyx design tokens (redesign, docs/DESIGN_TODO.md): the single source of colours, radii,
   spacing, shadows and fonts. Loaded before nyx.css on every page; nyx.css maps its older
   names onto these. One theme only: the night.
   Meaning of the colours, never decorative:
   accent  identity, main action, OK, gain, active tab
   info    network, latency, whales
   warn    vigilance, SIMULATION, limit reached
   danger  risk, rug, stop loss, loss, kill-switch
   violet  trailing, insiders, enrichment */

:root {
  --ground-950: #0a171c;
  --ground-900: #0f252c;
  --ground-800: #173944;
  --panel: rgba(18, 44, 52, 0.58);
  --panel-closed: rgba(18, 44, 52, 0.22);
  --panel-border: rgba(120, 220, 210, 0.14);
  --hairline: rgba(120, 220, 210, 0.08);
  --bar-glass: rgba(7, 19, 23, 0.78);
  --knob-core: #0e2329;
  --track: rgba(255, 255, 255, 0.09);
  --dot-grid: rgba(140, 230, 215, 0.09);

  --ink: #ddefef;
  --ink-soft: #b6d3d4;
  --ink-muted: #9dbfc0;
  --ink-faint: #86a9ab;

  --accent: #3fe0c5;
  --accent-hover: #6bebd5;
  --accent-ink: #062a24;
  --accent-soft: rgba(63, 224, 197, 0.12);
  --info: #5ab8ff;
  --warn: #f4c15d;
  --warn-soft: rgba(244, 193, 93, 0.14);
  --danger: #ff6fb1;
  --danger-ink: #ff8fc0;
  --danger-soft: rgba(255, 111, 177, 0.12);
  --violet: #b79bff;
  --neutral-tag: #8fa6a8;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 32px;

  --shadow-panel: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.45);
  --blur-panel: 16px;
  --blur-card: 18px;

  --font-sans: Manrope, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-display: Michroma, Manrope, sans-serif;

  /* Type scale (§2): hero, title, panel title, body, label, section; values in mono. */
  --text-hero: 700 44px/1.1 var(--font-sans);
  --text-title: 700 28px/1.2 var(--font-sans);
  --text-panel-title: 600 13px/1.3 var(--font-sans);
  --text-body: 400 13px/1.55 var(--font-sans);
  --text-label: 500 11px/1.3 var(--font-sans);
  --text-section: 700 11px/1.3 var(--font-sans);
  --tracking-section: 0.18em;
  --tracking-wordmark: 0.32em;
  --value-lg: 24px;
  --value-md: 13px;
  --value-sm: 11px;

  /* Motion (§5): modules, cascades, pulses; all stopped under prefers-reduced-motion. */
  --dur-module: 0.4s;
  --dur-cascade: 55ms;
  --dur-pulse: 2.2s;

  color-scheme: dark;
}
