/* 由 scripts/build-design-system.mjs 从 design-system/tokens.json 生成，别手改。 */
:root, [data-theme="dark"] {
  --bg: #0d0b09;
  --side: #090706;
  --card: #181613;
  --raise: #1f1c1a;
  --inset: #110f0d;
  --hover: #23211f;
  --line: rgba(255, 255, 255, 0.075);
  --line2: rgba(255, 255, 255, 0.125);
  --edge: rgba(255, 255, 255, 0);
  --head: #f8f4f1;
  --text: #ede9e4;
  --muted: #b6b0a8;
  --dim: #a19a92;
  --accent: #f37021;
  --accent-p3: oklch(69.2% 0.181 46.2);
  --accent-text: #f29456;
  --on-accent: #472511;
  --soft: rgba(243, 112, 33, 0.12);
  --accent-line: rgba(243, 112, 33, 0.45);
  --focus: #f37021;
  --good: #5fd38d;
  --good-wash: rgba(95, 211, 141, 0.14);
  --warn: #f2b84b;
  --warn-wash: rgba(242, 184, 75, 0.14);
  --bad: #ff5c7a;
  --bad-wash: rgba(255, 92, 122, 0.14);
  --band: rgba(255, 255, 255, 0.08);
  --spark: #a19a92;
  --chart-track: #282521;
  --chart-muted: #4c4741;
  --chart-2: #199b86;
  --chart-2-wash: rgba(25, 155, 134, 0.16);
  --chart-2-text: #429e8c;
  --chart-3: #9970c4;
  --chart-3-wash: rgba(153, 112, 196, 0.16);
  --chart-3-text: #a383c7;
  --chart-4: #bf873a;
  --chart-4-wash: rgba(191, 135, 58, 0.16);
  --chart-4-text: #bf873a;
  --chart-5: #5094dd;
  --chart-5-wash: rgba(80, 148, 221, 0.16);
  --chart-5-text: #6196d0;
  --glow: rgba(243, 112, 33, 0.1);
  --glass-tinted: rgba(24, 22, 19, 0.68);
  --glass-clear: rgba(24, 22, 19, 0.4);
  --glass-edge: rgba(255, 255, 255, 0.1);
  --glass-hi: rgba(255, 255, 255, 0.08);
  --glass-ring: rgba(0, 0, 0, 0.5);
  --hi: rgba(255, 255, 255, 0.05);
  --scrim: rgba(0, 0, 0, 0.4);
  --shadow-glass: 0 8px 24px rgba(0, 0, 0, 0.42);
  --shadow-menu: 0 14px 34px rgba(0, 0, 0, 0.55);
  --shadow-bar: 0 -6px 26px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] {
  --bg: #f3f0ed;
  --side: #efece9;
  --card: #ffffff;
  --raise: #ffffff;
  --inset: #fbf8f4;
  --hover: #f6f3ef;
  --line: rgba(41, 32, 21, 0.1);
  --line2: rgba(41, 32, 21, 0.16);
  --edge: rgba(41, 32, 21, 0);
  --head: #17120b;
  --text: #2c241a;
  --muted: #594c3d;
  --dim: #6f6253;
  --accent-text: #ad4e0b;
  --soft: rgba(243, 112, 33, 0.1);
  --focus: #ad4e0b;
  --good: #1a7040;
  --good-wash: rgba(26, 112, 64, 0.1);
  --warn: #8a5700;
  --warn-wash: rgba(138, 87, 0, 0.1);
  --bad: #c4253f;
  --bad-wash: rgba(196, 37, 63, 0.08);
  --band: rgba(41, 32, 21, 0.08);
  --spark: #9d9080;
  --chart-track: #ede8e3;
  --chart-muted: #cbc3b9;
  --chart-2: #108e7a;
  --chart-2-wash: rgba(16, 142, 122, 0.12);
  --chart-2-text: #017766;
  --chart-3: #7b52a4;
  --chart-3-wash: rgba(123, 82, 164, 0.12);
  --chart-3-text: #7b52a4;
  --chart-4: #b0792a;
  --chart-4-wash: rgba(176, 121, 42, 0.12);
  --chart-4-text: #915e09;
  --chart-5: #296eb4;
  --chart-5-wash: rgba(41, 110, 180, 0.12);
  --chart-5-text: #2c6caf;
  --glow: rgba(243, 112, 33, 0.14);
  --glass-tinted: rgba(255, 255, 255, 0.72);
  --glass-clear: rgba(255, 255, 255, 0.45);
  --glass-edge: rgba(41, 32, 21, 0.08);
  --glass-hi: rgba(255, 255, 255, 0.85);
  --glass-ring: rgba(0, 0, 0, 0);
  --hi: rgba(255, 255, 255, 0.9);
  --scrim: rgba(41, 32, 21, 0.18);
  --shadow-glass: 0 8px 24px rgba(40, 33, 22, 0.13);
  --shadow-menu: 0 16px 34px rgba(40, 33, 22, 0.14);
  --shadow-bar: 0 -6px 26px rgba(40, 33, 22, 0.13);
}
:root {
  --theme-base: #857f78;
  --theme-accent: #f37021;
  --theme-contrast: 50;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --glass-blur: 20px;
  --glass-saturate: 170%;
  --glass-max: 3;
  --layout-sidebar: 232px;
  --layout-max: 1200px;
  --layout-cols: 12;
  --layout-breakpoint: 900px;
  --layout-home-kpis: 4;
  --layout-home-cards: 5;
  --font-sans: 'Plus Jakarta Sans Variable', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.d-t-display { font-family: var(--font-sans); font-size: 44px; line-height: 44px; font-weight: 750; letter-spacing: -0.035em; }
.d-t-title { font-family: var(--font-sans); font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.025em; }
.d-t-metric { font-family: var(--font-sans); font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.d-t-summary { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.d-t-heading { font-family: var(--font-sans); font-size: 18px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }
.d-t-card-title { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 700; }
.d-t-body { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; }
.d-t-row { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 600; }
.d-t-small { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 400; }
.d-t-section { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.08em; }
.d-t-eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; }
.d-t-caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
.d-t-mono { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
.d-t-mono-tag { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; }
.d-t-keycap { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; }
@font-face { font-family: 'Plus Jakarta Sans Variable'; src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
