/* SINH TỪ tokens.json – không sửa tay */
:root {
  --font-ui: "Segoe UI", "Segoe UI Web", Roboto, Arial, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --line: #E0E0E0;
  --line-strong: #707070;
  --ink: #242424;
  --ink-soft: #616161;
  --primary: #0F6CBD;
  --primary-hover: #115EA3;
  --on-primary: #FFFFFF;
  --primary-soft: #EBF3FC;
  --focus: #0F6CBD;
  --nav-bg: #FFFFFF;
  --nav-ink: #242424;
  --nav-active: #EBF3FC;
  --nav-accent: #0F6CBD;
  --ok: #107C10;
  --ok-soft: #F1FAF1;
  --crit: #C50F1F;
  --crit-soft: #FDF3F4;
  --warn: #BC4B09;
  --warn-soft: #FFF9F5;
  --purple: #5C2E91;
  --purple-soft: #F7F4FB;
  --off: #616161;
  --off-soft: #F0F0F0;
  --info: #0F6CBD;
  --info-soft: #EBF3FC;
  --code-bg: #1E1E1E;
  --code-ink: #D4D4D4;
  --type-screen-title-size: 18px;
  --type-screen-title-line: 1.3;
  --type-screen-title-weight: 600;
  --type-section-title-size: 14px;
  --type-section-title-line: 1.4;
  --type-section-title-weight: 600;
  --type-kpi-figure-size: 20px;
  --type-kpi-figure-line: 1.2;
  --type-kpi-figure-weight: 600;
  --type-body-size: 13px;
  --type-body-line: 1.45;
  --type-body-weight: 400;
  --type-body-sm-size: 12px;
  --type-body-sm-line: 1.4;
  --type-body-sm-weight: 400;
  --type-label-size: 12px;
  --type-label-line: 1.4;
  --type-label-weight: 600;
  --type-button-size: 13px;
  --type-button-line: 1.2;
  --type-button-weight: 600;
  --type-chip-size: 11px;
  --type-chip-line: 1.4;
  --type-chip-weight: 600;
  --type-caption-size: 11px;
  --type-caption-line: 1.4;
  --type-caption-weight: 600;
  --type-code-size: 12px;
  --type-code-line: 1.5;
  --type-code-weight: 400;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --radius-chip: 4px;
  --radius-control: 4px;
  --radius-card: 6px;
  --radius-step: 4px;
  --radius-pill: 999px;
  --size-nav: 200px;
  --size-nav-collapsed: 48px;
  --size-header: 44px;
  --size-control: 30px;
  --size-control-sm: 26px;
  --size-drawer: 480px;
  --size-login: 400px;
  --size-detail-panel: 320px;
  --size-commandbar: 40px;
  --size-stepper: 34px;
  --size-grid-row: 32px;
  --size-grid-header: 30px;
  --size-list-row: 40px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.12);
  --shadow-popover: 0 4px 16px rgba(0,0,0,.14);
  --shadow-drawer: -4px 0 24px rgba(0,0,0,.14);
  --motion-fast: 150ms;
}
[data-mantine-color-scheme="dark"] {
  --bg: #1F1F1F;
  --surface: #292929;
  --surface-2: #2E2E2E;
  --line: #3D3D3D;
  --line-strong: #959595;
  --ink: #F0F0F0;
  --ink-soft: #ADADAD;
  --primary: #479EF5;
  --primary-hover: #62ABF5;
  --on-primary: #0A0A0A;
  --primary-soft: #0F2C48;
  --focus: #62ABF5;
  --nav-bg: #292929;
  --nav-ink: #F0F0F0;
  --nav-active: #0F2C48;
  --nav-accent: #479EF5;
  --ok: #54B054;
  --ok-soft: #0D2E0D;
  --crit: #F1707B;
  --crit-soft: #3B1418;
  --warn: #F7A46B;
  --warn-soft: #3A2210;
  --purple: #C4B5FD;
  --purple-soft: #2A1F4D;
  --off: #ADADAD;
  --off-soft: #333333;
  --info: #62ABF5;
  --info-soft: #0F2C48;
  --code-bg: #141414;
  --code-ink: #D4D4D4;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4);
  --shadow-popover: 0 4px 16px rgba(0,0,0,.5);
  --shadow-drawer: -4px 0 24px rgba(0,0,0,.55);
}
@media (prefers-reduced-motion: reduce) { :root { --motion-fast: 0ms; } }
