/* Values copied from docs/design/chartable-ds/tokens.json (synced 2026-10-02); do not edit by hand. */
/* Kit components never use dark:; all theming uses variables, so the OS-preference fallback works without this variant. */
@custom-variant dark (&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *));

:root {
  --background: #f4f6f5;
  --foreground: #15242c;
  --card: #ffffff;
  --card-foreground: var(--foreground);
  --popover: #ffffff;
  --popover-foreground: var(--foreground);
  --muted: #eaefed;
  --muted-foreground: #56656d;
  --border: #dde4e2;
  --input: #82918f;
  --ring: #0e7c86;
  --primary: #0e7c86;
  --primary-foreground: #ffffff;
  --primary-strong: #0a626d;
  --secondary: #e3f0ef;
  --secondary-foreground: #0a535c;
  --accent: var(--secondary);
  --accent-foreground: var(--secondary-foreground);
  --destructive: #b03d3d;
  --destructive-foreground: #ffffff;
  --signal: #f2b233;
  --signal-foreground: #15242c;
  --status-pass: #177a43;
  --status-pass-tint: #e2f2e8;
  --status-conditional: #2462a6;
  --status-conditional-tint: #e3edf8;
  --status-review: #8a5214;
  --status-review-tint: #f8ecdc;
  --status-reject: #a8353a;
  --status-reject-tint: #f8e4e4;
  --chart-1: #0e7c86;
  --chart-2: #c98a12;
  --chart-3: #2462a6;
  --chart-4: #5c6c75;
  --chart-5: #8a3b6b;
  --sidebar: var(--card);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-accent: var(--secondary);
  --sidebar-border: var(--border);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent-foreground: var(--secondary-foreground);
  --sidebar-ring: var(--ring);
  --font-sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-wordmark: "Chartable Wordmark", "IBM Plex Sans", system-ui, sans-serif;
  --radius: 8px;
  --cx-shadow-sm: 0 1px 2px rgba(21, 36, 44, 0.06);
  --cx-shadow-md: 0 1px 2px rgba(21, 36, 44, 0.05), 0 10px 30px -12px rgba(21, 36, 44, 0.14);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --control-sm: 28px;
  --control-md: 36px;
  --control-lg: 44px;
  --container: 1200px;
  --gutter: 24px;
  --sidebar-width: 240px;
  color-scheme: light;
}

@media (max-width: 639px) {
  :root { --gutter: 16px; }
}

.dark, [data-theme="dark"] {
  --background: #0e171c;
  --foreground: #e7edef;
  --card: #16242c;
  --card-foreground: var(--foreground);
  --popover: #1b2b34;
  --popover-foreground: var(--foreground);
  --muted: #1d2e37;
  --muted-foreground: #9aabb3;
  --border: #243740;
  --input: #5b7480;
  --ring: #3ab5be;
  --primary: #3ab5be;
  --primary-foreground: #0b1418;
  --primary-strong: #6fd3da;
  --secondary: #12333a;
  --secondary-foreground: #a8e3e7;
  --accent: var(--secondary);
  --accent-foreground: var(--secondary-foreground);
  --destructive: #ec7b7b;
  --destructive-foreground: #1a0c0c;
  --signal: #f2b233;
  --signal-foreground: #15242c;
  --status-pass: #5cc98f;
  --status-pass-tint: #123426;
  --status-conditional: #7fb3ee;
  --status-conditional-tint: #142a42;
  --status-review: #e6ac5f;
  --status-review-tint: #3a2a14;
  --status-reject: #f08a8a;
  --status-reject-tint: #3d1a1c;
  --chart-1: #3ab5be;
  --chart-2: #e3a93a;
  --chart-3: #7fb3ee;
  --chart-4: #93a4ac;
  --chart-5: #d48ab6;
  --sidebar: var(--card);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-accent: var(--secondary);
  --sidebar-border: var(--border);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent-foreground: var(--secondary-foreground);
  --sidebar-ring: var(--ring);
  --cx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --cx-shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light) {
    --background: #0e171c;
    --foreground: #e7edef;
    --card: #16242c;
    --card-foreground: var(--foreground);
    --popover: #1b2b34;
    --popover-foreground: var(--foreground);
    --muted: #1d2e37;
    --muted-foreground: #9aabb3;
    --border: #243740;
    --input: #5b7480;
    --ring: #3ab5be;
    --primary: #3ab5be;
    --primary-foreground: #0b1418;
    --primary-strong: #6fd3da;
    --secondary: #12333a;
    --secondary-foreground: #a8e3e7;
    --accent: var(--secondary);
    --accent-foreground: var(--secondary-foreground);
    --destructive: #ec7b7b;
    --destructive-foreground: #1a0c0c;
    --signal: #f2b233;
    --signal-foreground: #15242c;
    --status-pass: #5cc98f;
    --status-pass-tint: #123426;
    --status-conditional: #7fb3ee;
    --status-conditional-tint: #142a42;
    --status-review: #e6ac5f;
    --status-review-tint: #3a2a14;
    --status-reject: #f08a8a;
    --status-reject-tint: #3d1a1c;
    --chart-1: #3ab5be;
    --chart-2: #e3a93a;
    --chart-3: #7fb3ee;
    --chart-4: #93a4ac;
    --chart-5: #d48ab6;
    --sidebar: var(--card);
    --sidebar-foreground: var(--foreground);
    --sidebar-primary: var(--primary);
    --sidebar-accent: var(--secondary);
    --sidebar-border: var(--border);
    --sidebar-primary-foreground: var(--primary-foreground);
    --sidebar-accent-foreground: var(--secondary-foreground);
    --sidebar-ring: var(--ring);
    --cx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --cx-shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary-strong: var(--primary-strong);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-signal: var(--signal);
  --color-signal-foreground: var(--signal-foreground);
  --color-status-pass: var(--status-pass);
  --color-status-pass-tint: var(--status-pass-tint);
  --color-status-conditional: var(--status-conditional);
  --color-status-conditional-tint: var(--status-conditional-tint);
  --color-status-review: var(--status-review);
  --color-status-review-tint: var(--status-review-tint);
  --color-status-reject: var(--status-reject);
  --color-status-reject-tint: var(--status-reject-tint);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-ring: var(--sidebar-ring);
  --font-sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-wordmark: "Chartable Wordmark", "IBM Plex Sans", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 12px;
  --shadow-xs: none;
  --shadow-sm: var(--cx-shadow-sm);
  --shadow-md: var(--cx-shadow-md);
  --shadow-lg: var(--cx-shadow-md);
  --spacing-control-sm: 28px;
  --spacing-control-md: 36px;
  --spacing-control-lg: 44px;
  --spacing-gutter: var(--gutter);
  --spacing-sidebar: 240px;
  --container-page: 1200px;
  --text-hero: 40px;
  --text-hero--line-height: 44px;
  --text-hero--font-weight: 600;
  --text-hero--letter-spacing: -0.01em;
  --text-stat: 28px;
  --text-stat--line-height: 32px;
  --text-stat--font-weight: 600;
  --text-wordmark: 22px;
  --text-wordmark--line-height: 28px;
  --text-wordmark--font-weight: 600;
  --text-h1: 24px;
  --text-h1--line-height: 32px;
  --text-h1--font-weight: 600;
  --text-h2: 20px;
  --text-h2--line-height: 28px;
  --text-h2--font-weight: 600;
  --text-h3: 16px;
  --text-h3--line-height: 24px;
  --text-h3--font-weight: 600;
  --text-body: 14px;
  --text-body--line-height: 22px;
  --text-body--font-weight: 400;
  --text-body-strong: 14px;
  --text-body-strong--line-height: 22px;
  --text-body-strong--font-weight: 500;
  --text-small: 13px;
  --text-small--line-height: 20px;
  --text-small--font-weight: 400;
  --text-caption: 12px;
  --text-caption--line-height: 16px;
  --text-caption--font-weight: 500;
  --text-code: 13px;
  --text-code--line-height: 20px;
  --text-code--font-weight: 400;
  /* DS spacing → Tailwind units: space-1=1, 2=2, 3=3, 4=4, 5=6, 6=8, 7=12, 8=16. */
}

@layer base {
  * { border-color: var(--border); }
  /* Keep the root font size at the browser default (16px): Tailwind spacing and the control heights are rem-based. */
  html { background: var(--background); color: var(--foreground); font-family: var(--font-sans); }
  body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 22px;
    -webkit-font-smoothing: antialiased;
  }
  :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
  code, kbd, samp, pre { font-family: var(--font-mono); font-size: 13px; line-height: 20px; }
  table { font-variant-numeric: tabular-nums; }
  a { color: var(--primary); }
  a:hover { color: var(--primary-strong); }
}
