/* Canonical theme and rhythm tokens. Components must consume these, not redefine root colors. */
:root {
  color-scheme: light;
  --bg: #f2f3ee;
  --bg-gradient: radial-gradient(ellipse at top left, #fcfcf8, transparent 65%), var(--bg);
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --surface-warm: #f8faf9;
  --surface-cool: #f1f6f4;
  --soft: #eaf0eb;
  --toolbar-surface: #fbfcf9;
  --filter-surface: #f7f9f5;
  --note-surface: #f1f5f0;
  --line: #d5ded8;
  --line-strong: #a7bdb3;
  --hairline: rgba(255, 255, 255, 0.9);
  --scrollbar-thumb: rgba(57, 92, 84, 0.42);
  --scrollbar-thumb-hover: rgba(15, 118, 110, 0.68);
  --text: #14211d;
  --text-secondary: #2d4841;
  --muted: #526761;
  --accent: #0f766e;
  --accent-strong: #075b57;
  --accent-warm: #9a6b0a;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --focus-ring: rgba(15, 118, 110, 0.4);
  --rank: #9a6b0a;
  --seal: #c73842;
  --good: #087f5b;
  --bad: #b4444e;
  --trend-primary: #9a6b0a;
  --power-num: #9a6b0a;
  --shadow-sm: 0 1px 3px rgba(23, 35, 31, 0.07);
  --shadow: 0 5px 16px rgba(23, 35, 31, 0.085), 0 1px 3px rgba(23, 35, 31, 0.035);
  --shadow-lg: 0 13px 32px rgba(23, 35, 31, 0.105), 0 3px 8px rgba(23, 35, 31, 0.045);
  --shadow-float: 0 18px 44px rgba(23, 35, 31, 0.11), 0 4px 10px rgba(23, 35, 31, 0.04);
  --card-radius: 10px;
  --card-padding-y: 8px;
  --card-padding-x: 12px;
  --card-row-height: 60px;
  --ink: var(--text);
  --metric-surface: #ffffff;
  --metric-border: #d4e5df;
  --metric-label: #55786e;
  --metric-value: #243f36;
  --detail-surface: #f5f7f6;
  --detail-line: #e1e7e4;
  --detail-highlight: rgba(255, 255, 255, .75);
  --detail-hover: #edf2ef;
  --detail-hover-line: #c6d3cc;
  --detail-caption: #526761;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --type-caption: 12px;
  --type-body: 14px;
  --type-heading: 20px;
  --motion-fast: 120ms;
  --motion-standard: 180ms;
  --motion-slow: 240ms;
  --layer-toolbar: 20;
  --layer-popover: 40;
  --layer-dialog: 60;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1110;
  --bg-gradient: radial-gradient(1100px 700px at 18% -12%, #16211e 0%, #0d1110 56%);
  --panel: rgba(25, 32, 30, 0.97);
  --panel-solid: #19201e;
  --surface-warm: #1f2825;
  --surface-cool: #131917;
  --soft: #25302c;
  --toolbar-surface: #171d1c;
  --filter-surface: #1b2321;
  --note-surface: rgba(99, 197, 185, 0.05);
  --line: rgba(224, 238, 233, 0.14);
  --line-strong: rgba(224, 238, 233, 0.26);
  --hairline: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: rgba(145, 162, 156, 0.34);
  --scrollbar-thumb-hover: rgba(99, 197, 185, 0.62);
  --text: #eff4f2;
  --text-secondary: #c2cec9;
  --muted: #91a29c;
  --accent: #63c5b9;
  --accent-strong: #8bd9d0;
  --accent-warm: #e0b45d;
  --accent-soft: rgba(99, 197, 185, 0.12);
  --focus-ring: rgba(99, 197, 185, 0.3);
  --rank: #e0b45d;
  --seal: #ed6858;
  --good: #62c997;
  --bad: #ed7466;
  --trend-primary: #e0b45d;
  --power-num: #e0b45d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.65);
  --metric-surface: #1b2b25;
  --metric-border: #354b41;
  --metric-label: #9cbbad;
  --metric-value: #e0eee6;
  --detail-surface: #202725;
  --detail-line: #303936;
  --detail-highlight: rgba(255, 255, 255, .025);
  --detail-hover: #27312c;
  --detail-hover-line: #455249;
  --detail-caption: #8c9992;
}
