/* Design tokens — Alpha UI v1.0 (report 01, Design canvas). Dark and light are two sets of the same tokens.
   The highlight (accent) color is set at runtime by ui/accent.js: --acc (fill), --acct (text), --onacc (text on fill). */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg0: #161616; --bg1: #1E1E1E; --bg2: #242424; --bg3: #2E2E2E; --bgh: #212121; --bgp: #1B1B1B;
  --field: #101010; --line: #0B0B0B; --edge: #3A3A3A;
  --tx: #E6E6E6; --tx2: #A8A8A8; --tx3: #8E8E8E; --muted: #6A6A6A;
  --sel: #34434D; --seltx: #FFFFFF;
  --tabbg: #1A1A1A; --tabtx: #CFCFCF;
  --hl: rgba(255, 255, 255, .05);
  --s-intro: #9DA35A; --s-verse: #5FA8A0; --s-chorus: #D9836F; --s-bridge: #9C8CC9; --s-tab: #7F92A8; --s-other: #7A7A7A;
  --dev-bg: #2A2A2A; --dev-on: #3C3C3C; --dev-off: #2C2C2C; --dev-disp: #0D0D0D; --dev-tx: #E6E6E6; --dev-tx3: #8E8E8E;
  --dev-btn: #262626; --dev-btntx: #A8A8A8;
  --acc: #FFB000; --acct: #FFB000; --onacc: #141414;
  --logo-str: #8E8E8E; /* logo strings (UI-3) */
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg0: #B4B4B4; --bg1: #CDCDCD; --bg2: #E2E2E2; --bg3: #D9D9D9; --bgh: #D5D5D5; --bgp: #C6C6C6;
  --field: #F0F0F0; --line: #8C8C8C; --edge: #8F8F8F;
  --tx: #141414; --tx2: #363636; --tx3: #4F4F4F; --muted: #6E6E6E;
  --sel: #A9CBDB; --seltx: #0E0E0E;
  --tabbg: #EFEFEF; --tabtx: #222222;
  --hl: rgba(0, 0, 0, .06);
  --s-intro: #D3E07A; --s-verse: #6FE0E3; --s-chorus: #FFA071; --s-bridge: #FF94A6; --s-tab: #A9C3E0; --s-other: #BDBDBD;
  --dev-bg: #C9C9C9; --dev-on: #B3B3B3; --dev-off: #C2C2C2; --dev-disp: #0D0D0D; --dev-tx: #141414; --dev-tx3: #4F4F4F;
  --dev-btn: #DADADA; --dev-btntx: #363636;
  --acc: #FFB000; --acct: #8F5200; --onacc: #141414;
  --logo-str: #6E6E6E; /* logo strings (UI-3) */
}

:root {
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* 4 px spacing scale */
  --sp-1: 4px; --sp-2: 6px; --sp-3: 8px; --sp-4: 12px; --sp-5: 16px; --sp-6: 24px; --sp-7: 32px;
  --transport-h: 40px; --control-h: 24px;
  /* UI-1: one height for the panel heads (library top block, song header, theory head), so their bottom lines meet */
  --panel-head-h: 84px; --lib-head-h: 40px;
  --row-folder: 26px; --row-song: 28px; --lib-edge: 12px;
  --lib-w: 268px; --rail-w: 40px; --theory-w: 300px; --theory-rail-w: 30px;
  --dock-h: 72px; --dock-closed-h: 28px; --dock-tabs-w: 36px; --status-h: 26px;
  --r-ctl: 2px; --r-dlg: 3px;
  --string: var(--tx3); /* strings in rhythm strips, same as graphic tabs (report 08 §4) */
}
