/* Track to Chords: studio palette. Shared token names preserve component contracts. */
:root,
[data-theme="light"] {
  color-scheme: light;
  --font-sans: "Avenir Next", "Segoe UI", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  
  --font-chord: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --canvas: #f5f7fc;
  --canvas-secondary: #eaf0fb;
  --surface: #ffffff;
  --surface-2: #eef2fc;
  --surface-hover: #e4eafa;
  --surface-elevated: #ffffff;

  --ink: #152348;
  --ink-secondary: #495777;
  --ink-tertiary: #62708e;
  --stroke: #dce3f2;
  --stroke-strong: #c6d1e8;

  --accent: #3154d9;
  --accent-hover: #2340b2;
  --accent-on: #ffffff;
  --accent-soft: #e9eeff;
  --accent-rgb: 49, 84, 217;
  --accent-alt: #3751b8;
  
  --accent-strong: #2946b9;

  --chord: var(--accent);
  --lyric: var(--ink);
  
  --now-bg: #eaf0ff;
  --now-bar: var(--accent);
  
  --sheet-size: 17px;

  --player-h: 64px;
  --player-bg: #152348;
  --player-ink: #f5f7fc;
  --player-track: #40557c;

  --wave-start: #3154d9;
  --wave-end: #94a6f1;
  --wave-inactive: #ced8ef;

  --positive: #2f9e5b;
  --positive-soft: #e8f6ee;
  
  --positive-strong: #1f7a45;
  --warning: #a9700f;
  --warning-soft: #fdf3e2;
  --danger: #b3261e;
  --danger-soft: #fdeeec;

  --header-bg: rgba(245, 247, 252, .95);
  --glow-one: rgba(49, 84, 217, .10);
  --glow-two: rgba(47, 158, 91, .06);

  --shadow-sm: 0 1px 2px rgba(21, 35, 72, .05), 0 4px 14px rgba(21, 35, 72, .045);
  --shadow-md: 0 10px 28px rgba(21, 35, 72, .08);
  --shadow-lg: 0 24px 60px rgba(21, 35, 72, .12);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --container: 1200px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --ease: cubic-bezier(.22, .7, .2, 1);
  --motion-fast: 150ms;
  --motion-med: 240ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  
  --canvas: #111a30;
  --canvas-secondary: #152039;
  --surface: #1b2945;
  --surface-2: #21304f;
  --surface-hover: #2a3c5f;
  --surface-elevated: #263858;

  --ink: #eef3ff;
  --ink-secondary: #c0cce5;
  --ink-tertiary: #98a9cd;
  --stroke: #304263;
  --stroke-strong: #485b80;

  --accent: #9db4ff;
  --accent-hover: #b8c8ff;
  
  --accent-on: #14234b;
  --accent-soft: #263a69;
  --accent-rgb: 157, 180, 255;
  --accent-alt: #bccbff;
  
  --accent-strong: var(--accent);

  --now-bg: #263c67;
  --now-bar: var(--accent);

  --player-bg: #0b1326;
  --player-ink: #eef3ff;
  --player-track: #40557c;

  --wave-start: #9db4ff;
  --wave-end: #d0dbff;
  --wave-inactive: #35496e;

  --positive: #5cc98a;
  --positive-soft: #16311f;
  --positive-strong: var(--positive);
  --warning: #e8b25f;
  --warning-soft: #33280f;
  --danger: #ff8b7d;
  --danger-soft: #3a1a16;

  --header-bg: rgba(17, 26, 48, .95);
  --glow-one: rgba(157, 180, 255, .10);
  --glow-two: rgba(92, 201, 138, .05);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}
