/* Design tokens: dark premium control room. Single source for colour, type, space, radius, motion.
   No raw values elsewhere in the UI. Dark is the default everywhere (presentations must look the same on any machine);
   a light theme exists only when the owner switches it (data-theme="light"). */
:root {
  color-scheme: dark;

  /* surfaces: five steps of elevation on a cool neutral */
  --bg-0: #060a10;
  --bg-1: #0a1018;
  --bg-2: #0f1722;
  --bg-3: #152030;
  --bg-4: #1c2a3e;
  --line: #1b2839;
  --line-strong: #2a3b52;

  /* text */
  --text: #eaf0f7;
  --text-2: #a9b6c8;
  --text-3: #72839b;

  /* brand: Nare blue as the one confident accent, warm orange only for emphasis */
  --accent: #3aaeff;
  --accent-2: #1a8fe0;
  --accent-ink: #03202f;
  --accent-soft: rgba(58, 174, 255, 0.14);
  --warm: #ff9b50;
  --warm-soft: rgba(255, 155, 80, 0.14);

  /* semantic */
  --ok: #3fdc9a;       --ok-soft: rgba(63, 220, 154, 0.13);
  --warn: #ffc25c;     --warn-soft: rgba(255, 194, 92, 0.13);
  --bad: #ff6f6f;      --bad-soft: rgba(255, 111, 111, 0.13);
  --info: #62c3ff;     --info-soft: rgba(98, 195, 255, 0.13);
  --idle: #8a9bb2;     --idle-soft: rgba(138, 155, 178, 0.13);
  --violet: #8b6cf0;   --violet-soft: rgba(139, 108, 240, 0.22);

  /* type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  --fs-2xl: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-hero: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);

  /* space (4px base) and shape */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  /* depth and motion */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  --rail: 248px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-0: #eef2f7; --bg-1: #f6f8fb; --bg-2: #ffffff; --bg-3: #f0f4f9; --bg-4: #e6ecf4;
    --line: #dde5ef; --line-strong: #c6d2e1;
    --text: #0f1b2b; --text-2: #4a5b72; --text-3: #75869c;
    --accent: #0b7ec2; --accent-2: #0a6aa6; --accent-ink: #ffffff; --accent-soft: rgba(11, 126, 194, 0.12);
    --warm: #d9701f; --warm-soft: rgba(217, 112, 31, 0.12);
    --ok: #12804a; --ok-soft: rgba(18, 128, 74, 0.12);
    --warn: #9a5b00; --warn-soft: rgba(154, 91, 0, 0.12);
    --bad: #c0372b; --bad-soft: rgba(192, 55, 43, 0.12);
    --info: #0b7ec2; --info-soft: rgba(11, 126, 194, 0.12);
    --idle: #5a6b7b; --idle-soft: rgba(90, 107, 123, 0.12);
    --shadow-1: 0 1px 2px rgba(16, 32, 48, 0.06), 0 6px 18px rgba(16, 32, 48, 0.06);
    --shadow-2: 0 2px 4px rgba(16, 32, 48, 0.08), 0 18px 40px rgba(16, 32, 48, 0.12);
  }
