/* ═════════════════════════════════════════════════════════════════════
   SPECTRA /// SHARED — Design tokens
   The single source of truth for the entire suite. Products do NOT
   override these; they layer identity tokens on top (see per-product
   *-tokens.css files).
   ═════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Suite-wide brand identity (never overridden by products) ──── */
  --brand-pink:  #ff2a6d;
  --brand-green: #00ff9d;
  --brand-blue:  #00d2ff;

  /* ── Surfaces (dark, canonical) ────────────────────────────────── */
  --bg:            #0b0e11;
  --bg-2:          #10141a;
  --bg-3:          #161b22;
  --bg-4:          #1c222b;
  --card-bg:       rgba(255, 255, 255, 0.02);
  --card-bg-solid: #0f1319;

  /* ── Borders ───────────────────────────────────────────────────── */
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.05);
  --border-hi: rgba(255, 255, 255, 0.14);

  /* ── Foreground — five steps, do not add a sixth ───────────────── */
  --fg:        #e0e6ed;
  --fg-bright: #ffffff;
  --fg-dim:    #8892b0;
  --fg-mute:   #5b6472;
  --fg-faint:  #3a4150;

  /* ── Chrome accent — the neutral cyan, used by every product ───── */
  --accent:       #22d3ee;
  --accent-dim:   #0891b2;
  --accent-soft:  rgba(34, 211, 238, 0.08);
  --accent-line:  rgba(34, 211, 238, 0.35);
  --accent-glow:  rgba(34, 211, 238, 0.20);

  /* ── Semantic — status, alerts, health ─────────────────────────── */
  --red:        #f87171;
  --red-soft:   rgba(248, 113, 113, 0.10);
  --green:      #34d399;
  --green-soft: rgba(52, 211, 153, 0.10);
  --amber:      #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.10);
  --purple:     #a78bfa;
  --purple-soft:rgba(167, 139, 250, 0.10);
  --blue:       #60a5fa;
  --blue-soft:  rgba(96, 165, 250, 0.10);
  --orange:     #fb923c;
  --orange-soft:rgba(251, 146, 60, 0.10);
  --mint:       #6ee7b7;
  --mint-soft:  rgba(110, 231, 183, 0.10);
  --pink:       #f472b6;
  --pink-soft:  rgba(244, 114, 182, 0.10);

  /* ── Chart categorical — fixed order, never reorder ────────────── */
  --cat-1:  #22d3ee;
  --cat-2:  #a78bfa;
  --cat-3:  #34d399;
  --cat-4:  #fbbf24;
  --cat-5:  #60a5fa;
  --cat-6:  #fb923c;
  --cat-7:  #f472b6;
  --cat-8:  #6ee7b7;
  --cat-9:  #c4b5fd;
  --cat-10: #f87171;

  /* ── Terminal (always dark) ────────────────────────────────────── */
  --terminal-bg:     #050608;
  --terminal-fg:     #c9d1d9;
  --terminal-dim:    #6b7280;
  --terminal-prompt: #22d3ee;
  --terminal-path:   #fbbf24;

  /* ── Fonts ─────────────────────────────────────────────────────── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ── Radii — five steps ────────────────────────────────────────── */
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   10px;
  --r-xl:   14px;
  --r-pill: 999px;

  /* ── Shadows ───────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.65);

  /* ── Motion ────────────────────────────────────────────────────── */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Shell dimensions — identical across every product ─────────── */
  --shell-sidebar-w:         252px;
  --shell-sidebar-collapsed: 68px;
  --shell-topbar-h:          56px;
  --shell-status-strip-h:    30px;
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME — only surface + foreground tokens change.
   Identity colors are never inverted.
   ═══════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:            #f8f9fa;
  --bg-2:          #ffffff;
  --bg-3:          #f1f3f5;
  --bg-4:          #e9ecef;
  --card-bg:       rgba(0, 0, 0, 0.015);
  --card-bg-solid: #ffffff;

  --border:    rgba(0, 0, 0, 0.08);
  --border-2:  rgba(0, 0, 0, 0.05);
  --border-hi: rgba(0, 0, 0, 0.14);

  --fg:        #333333;
  --fg-bright: #1a1a1a;
  --fg-dim:    #5a6270;
  --fg-mute:   #8a92a0;
  --fg-faint:  #b0b6c0;

  --accent:       #0891b2;
  --accent-dim:   #0e7490;
  --accent-soft:  rgba(8, 145, 178, 0.08);
  --accent-line:  rgba(8, 145, 178, 0.35);
  --accent-glow:  rgba(8, 145, 178, 0.15);

  --red:        #dc2626;
  --red-soft:   rgba(220, 38, 38, 0.08);
  --green:      #16a34a;
  --green-soft: rgba(22, 163, 74, 0.08);
  --amber:      #d97706;
  --amber-soft: rgba(217, 119, 6, 0.08);
  --purple:     #7c3aed;
  --purple-soft:rgba(124, 58, 237, 0.08);
  --blue:       #2563eb;
  --blue-soft:  rgba(37, 99, 235, 0.08);
  --orange:     #ea580c;
  --orange-soft:rgba(234, 88, 12, 0.08);
  --mint:       #059669;
  --mint-soft:  rgba(5, 150, 105, 0.08);
  --pink:       #db2777;
  --pink-soft:  rgba(219, 39, 119, 0.08);
}