/* 由 100x-starter/packages/ui/scripts/export-plain-css.mjs 从 theme.css 生成，勿手改。 */

/* 开关：<html data-radius="square|round"> 方／圆（缺省方）；data-visual="native" 主色黑；.dark 深色。 */

:root {
  --x-radius-full: 9999px;
  --x-background: #ffffff;
  --x-foreground: #202020;
  --x-text-secondary: #404040;
  --x-card: #ffffff;
  --x-card-foreground: #202020;
  --x-popover: #ffffff;
  --x-popover-foreground: #202020;
  --x-primary: #1a71f0;
  --x-primary-foreground: #ffffff;
  --x-primary-hover: #0564e2;
  --x-secondary: #f5f5f5;
  --x-secondary-foreground: #202020;
  --x-muted: #f5f5f5;
  --x-muted-foreground: #626262;
  --x-accent: #f5f5f5;
  --x-accent-foreground: #202020;
  --x-destructive: oklch(0.577 0.245 27.325);
  --x-destructive-foreground: #ffffff;
  --x-scrim: #00000080;
  --x-scrim-soft: rgb(0 0 0 / 0.1);
  --x-border: #e5e5e5;
  --x-border-strong: #b8b8b8;
  --x-rule-soft: #eeeeee;
  --x-input: #c6c6c6;
  --x-ring: var(--x-brand-signal);
  --x-link: #0f69e7;
  /* 品牌强调色：字标上标「×」与 STARTER 用。100x 取信号蓝，原生取前景色（I-27）。 */
  --x-brand-signal: #2b7fff;
  --x-selected-soft: #edf4ff;
  --x-pending: #bd5005;
  --x-pending-soft: #feeee3;
  --x-money: #0c8734;
  --x-chart-1: #2b7fff;
  --x-chart-2: #1a5dcc;
  --x-chart-3: #4c96f7;
  --x-chart-4: #b8b8b8;
  --x-chart-5: #626262;
  --x-font-sans-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-heading-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-mono-token: "JetBrains Mono Variable", "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --x-font-lockup-token: Unbounded, "Inter Variable", sans-serif;
  --x-shadow-control: none;
  --x-shadow-card: none;
  --x-shadow-overlay: 0 12px 32px rgb(0 0 0 / 0.12), 0 3px 8px rgb(0 0 0 / 0.06);
  --x-glow-cta: none;
  --x-sidebar: #f5f5f5;
  --x-sidebar-foreground: #202020;
  --x-sidebar-primary: #1a71f0;
  --x-sidebar-primary-foreground: #ffffff;
  --x-sidebar-accent: #ebebeb;
  --x-sidebar-accent-foreground: #202020;
  --x-sidebar-border: #e5e5e5;
  --x-sidebar-ring: var(--x-brand-signal);
  --x-scrollbar-track: transparent;
  --x-scrollbar-thumb: #62626259;
  --x-scrollbar-thumb-hover: #62626299;
  --x-scrollbar-thumb-active: #626262d9;
}

.dark, [data-theme="dark"] {
  --x-background: #070708;
  --x-foreground: #f2f2f0;
  --x-text-secondary: #cfcfcd;
  --x-card: #0c0c0d;
  --x-card-foreground: #f2f2f0;
  --x-popover: #0c0c0d;
  --x-popover-foreground: #f2f2f0;
  --x-primary: #1a71f0;
  --x-primary-foreground: #ffffff;
  --x-primary-hover: #0564e2;
  --x-secondary: #131314;
  --x-secondary-foreground: #f2f2f0;
  --x-muted: #131314;
  --x-muted-foreground: #b2b2b0;
  --x-accent: #131314;
  --x-accent-foreground: #f2f2f0;
  --x-destructive: oklch(0.704 0.191 22.216);
  --x-destructive-foreground: #171716;
  --x-scrim: #00000080;
  --x-scrim-soft: rgb(0 0 0 / 0.1);
  --x-border: #202021;
  --x-border-strong: #404040;
  --x-rule-soft: #1a1a1b;
  --x-input: #30302f;
  --x-ring: var(--x-brand-signal);
  --x-link: #8bb8ff;
  --x-brand-signal: #2b7fff;
  --x-selected-soft: #142643;
  --x-pending: #f97316;
  --x-pending-soft: #342419;
  --x-money: #34d399;
  --x-chart-1: #5b93ff;
  --x-chart-2: #7ba6ff;
  --x-chart-3: #3b3b3a;
  --x-chart-4: #8f8f8c;
  --x-chart-5: #cfcfcd;
  --x-font-sans-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-heading-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-mono-token: "JetBrains Mono Variable", "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --x-font-lockup-token: Unbounded, "Inter Variable", sans-serif;
  --x-shadow-control: none;
  --x-shadow-card: none;
  --x-shadow-overlay: 0 12px 32px rgb(0 0 0 / 0.12), 0 3px 8px rgb(0 0 0 / 0.06);
  --x-glow-cta: 0 0 10px rgb(43 127 255 / 0.45);
  --x-sidebar: #070708;
  --x-sidebar-foreground: #f2f2f0;
  --x-sidebar-primary: #1a71f0;
  --x-sidebar-primary-foreground: #ffffff;
  --x-sidebar-accent: #131314;
  --x-sidebar-accent-foreground: #f2f2f0;
  --x-sidebar-border: #202021;
  --x-sidebar-ring: var(--x-brand-signal);
  --x-scrollbar-track: transparent;
  --x-scrollbar-thumb: #b2b2b04d;
  --x-scrollbar-thumb-hover: #b2b2b08c;
  --x-scrollbar-thumb-active: #b2b2b0cc;
}

:root[data-visual="native"] {
  --x-background: oklch(1 0 0);
  --x-foreground: oklch(0.145 0 0);
  --x-card: oklch(1 0 0);
  --x-card-foreground: oklch(0.145 0 0);
  --x-popover: oklch(1 0 0);
  --x-popover-foreground: oklch(0.145 0 0);
  --x-primary: oklch(0.205 0 0);
  --x-primary-foreground: oklch(0.985 0 0);
  --x-primary-hover: oklch(0.269 0 0);
  --x-secondary: oklch(0.97 0 0);
  --x-secondary-foreground: oklch(0.205 0 0);
  --x-muted: oklch(0.97 0 0);
  --x-muted-foreground: oklch(0.556 0 0);
  --x-accent: oklch(0.97 0 0);
  --x-accent-foreground: oklch(0.205 0 0);
  --x-destructive: oklch(0.577 0.245 27.325);
  --x-destructive-foreground: oklch(1 0 0);
  --x-scrim: rgb(0 0 0 / 0.5);
  --x-scrim-soft: rgb(0 0 0 / 0.1);
  --x-border: oklch(0.922 0 0);
  --x-input: oklch(0.827 0 0);
  --x-ring: oklch(0.64 0 0);
  --x-chart-1: oklch(0.87 0 0);
  --x-chart-2: oklch(0.556 0 0);
  --x-chart-3: oklch(0.439 0 0);
  --x-chart-4: oklch(0.371 0 0);
  --x-chart-5: oklch(0.269 0 0);
  --x-sidebar: oklch(0.985 0 0);
  --x-sidebar-foreground: oklch(0.145 0 0);
  --x-sidebar-primary: oklch(0.205 0 0);
  --x-sidebar-primary-foreground: oklch(0.985 0 0);
  --x-sidebar-accent: oklch(0.97 0 0);
  --x-sidebar-accent-foreground: oklch(0.205 0 0);
  --x-sidebar-border: oklch(0.922 0 0);
  --x-sidebar-ring: oklch(0.64 0 0);
  /* 新增令牌的原生值：颜色沿用既有变量，其余回到基线观感 */
  --x-text-secondary: oklch(0.145 0 0);
  --x-border-strong: oklch(0.783 0 0);
  --x-rule-soft: oklch(0.922 0 0);
  --x-link: var(--x-primary);
  /* 品牌强调色：原生下字标与前景同色（浅色即黑），不随 100x 信号蓝（I-27）。 */
  --x-brand-signal: var(--x-foreground);
  --x-selected-soft: oklch(0.97 0 0);
  --x-pending: oklch(0.565 0.157 45.8);
  --x-pending-soft: oklch(0.959 0.023 57);
  --x-money: oklch(0.49 0.141 142.5);
  --x-font-sans-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-heading-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-mono-token: "JetBrains Mono Variable", "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --x-font-lockup-token: Unbounded, "Inter Variable", sans-serif;
  --x-shadow-control: none;
  --x-shadow-card: none;
  --x-shadow-overlay: 0 12px 32px rgb(0 0 0 / 0.12), 0 3px 8px rgb(0 0 0 / 0.06);
  --x-glow-cta: none;
  --x-scrollbar-track: transparent;
  --x-scrollbar-thumb: var(--x-border);
  --x-scrollbar-thumb-hover: color-mix(in oklab, var(--x-muted-foreground) 45%, transparent);
  --x-scrollbar-thumb-active: color-mix(in oklab, var(--x-muted-foreground) 70%, transparent);
}

:root[data-visual="native"].dark, :root[data-visual="native"][data-theme="dark"] {
  --x-background: oklch(0.145 0 0);
  --x-foreground: oklch(0.985 0 0);
  --x-card: oklch(0.205 0 0);
  --x-card-foreground: oklch(0.985 0 0);
  --x-popover: oklch(0.205 0 0);
  --x-popover-foreground: oklch(0.985 0 0);
  --x-primary: oklch(0.922 0 0);
  --x-primary-foreground: oklch(0.205 0 0);
  --x-primary-hover: oklch(0.87 0 0);
  --x-secondary: oklch(0.269 0 0);
  --x-secondary-foreground: oklch(0.985 0 0);
  --x-muted: oklch(0.269 0 0);
  --x-muted-foreground: oklch(0.708 0 0);
  --x-accent: oklch(0.269 0 0);
  --x-accent-foreground: oklch(0.985 0 0);
  --x-destructive: oklch(0.704 0.191 22.216);
  --x-destructive-foreground: oklch(0.985 0 0);
  --x-scrim: rgb(0 0 0 / 0.5);
  --x-scrim-soft: rgb(0 0 0 / 0.1);
  --x-border: oklch(0.302 0 0);
  --x-input: oklch(0.348 0 0);
  --x-ring: oklch(0.556 0 0);
  --x-chart-1: oklch(0.87 0 0);
  --x-chart-2: oklch(0.556 0 0);
  --x-chart-3: oklch(0.439 0 0);
  --x-chart-4: oklch(0.371 0 0);
  --x-chart-5: oklch(0.269 0 0);
  --x-sidebar: oklch(0.205 0 0);
  --x-sidebar-foreground: oklch(0.985 0 0);
  --x-sidebar-primary: oklch(0.922 0 0);
  --x-sidebar-primary-foreground: oklch(0.205 0 0);
  --x-sidebar-accent: oklch(0.269 0 0);
  --x-sidebar-accent-foreground: oklch(0.985 0 0);
  --x-sidebar-border: oklch(0.302 0 0);
  --x-sidebar-ring: oklch(0.556 0 0);
  /* 新增令牌的原生值 */
  --x-text-secondary: oklch(0.985 0 0);
  --x-border-strong: oklch(0.392 0 0);
  --x-rule-soft: oklch(0.302 0 0);
  --x-link: var(--x-primary);
  /* 原生深色下随前景反白，保证字标可读。 */
  --x-brand-signal: var(--x-foreground);
  --x-selected-soft: oklch(0.269 0 0);
  --x-pending: oklch(0.705 0.187 47.6);
  --x-pending-soft: oklch(0.276 0.031 55.5);
  --x-money: oklch(0.771 0.149 161.4);
  --x-font-sans-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-heading-token:
    "Inter Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --x-font-mono-token: "JetBrains Mono Variable", "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --x-font-lockup-token: Unbounded, "Inter Variable", sans-serif;
  --x-shadow-control: none;
  --x-shadow-card: none;
  --x-shadow-overlay: 0 12px 32px rgb(0 0 0 / 0.12), 0 3px 8px rgb(0 0 0 / 0.06);
  --x-glow-cta: none;
  --x-scrollbar-track: transparent;
  --x-scrollbar-thumb: color-mix(in oklab, var(--x-foreground) 15%, transparent);
  --x-scrollbar-thumb-hover: color-mix(in oklab, var(--x-foreground) 30%, transparent);
  --x-scrollbar-thumb-active: color-mix(in oklab, var(--x-foreground) 45%, transparent);
}

html:root {
  /* 动效：KIT tokens.css 的 duration、easing，由 sync-kit-tokens.mjs 写值。视觉档只换颜色，所以不落四个视觉块 */
  --x-dur-exit: 120ms;
  --x-dur-fast: 170ms;
  --x-dur-base: 230ms;
  --x-dur-slow: 300ms;
  --x-dur-focus: 260ms;
  --x-dur-ambient: 2000ms;
  --x-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --x-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-in: cubic-bezier(0.42, 0, 1, 1);
  /* 线宽：KIT tokens.css stroke 的 hairline，sync-kit-tokens.mjs 写值，checkbox.css 的边读 */
  --x-hairline: 1px;
  /* 滚动条尺寸：KIT tokens.css size 的 scrollbar-*，sync-kit-tokens.mjs 写值，scrollbars.css 读。方角档也不变 */
  --x-scrollbar-size: 10px;
  --x-scrollbar-inset: 3px;
  --x-scrollbar-radius: 999px;
  /* 外壳尺寸：KIT tokens.css size 的 topbar-h、sidebar-w、sidebar-collapsed-w，sync-kit-tokens.mjs 写值 */
  --x-topbar-h: 48px;
  --x-sidebar-w: 180px;
  --x-sidebar-collapsed-w: 48px;
  /* 表头高：KIT tokens.css size 的 head-h，sync-kit-tokens.mjs 写值。表头（table.tsx）和 head-band 都读它，改表头高只改这里 */
  --x-head-h: 38px;
  /* STARTER 自己的：呼吸动画的曲线，KIT 没有这一档 */
  --x-ease-ambient: ease-in-out;
  /* 旧名，只留作别名，新代码写上面 KIT 的名字 */
  --x-dur-micro: var(--x-dur-fast);
  --x-dur-view: var(--x-dur-base);
  --x-dur-morph: var(--x-dur-slow);
  --x-ease-ui: var(--x-ease-out);
  --x-ease-focus: var(--x-ease-in-out);
  --x-ease-morph: var(--x-ease-in-out);
  --x-dur-radius-morph: var(--x-dur-slow);
  --x-ease-radius-morph: var(--x-ease-out);
}

:root:not([data-radius]),
:root[data-radius="square"] {
  --x-radius: 0px;
  --x-radius-pill-token: 0px;
}

:root[data-radius="round"] {
  /* 2026-09-23 柯震东定：圆档 6px（原 0.625rem），与 100x-api、100x-library 的小圆角一致 */
  --x-radius: 6px;
  --x-radius-pill-token: 999px;
}

:root {
  --x-radius-pill: var(--x-radius-pill-token);
  --x-radius-2xs: calc(var(--x-radius) * 0.5);
  --x-radius-3xs: calc(var(--x-radius) * 0.4);
  --x-radius-4xs: calc(var(--x-radius) * 0.3);
  --x-radius-sm: calc(var(--x-radius) * 2 / 3);
  --x-radius-md: var(--x-radius);
  --x-radius-lg: var(--x-radius);
  --x-radius-xl: calc(var(--x-radius) * 1.4);
  --x-radius-2xl: calc(var(--x-radius) * 1.8);
  --x-radius-3xl: calc(var(--x-radius) * 2.2);
  --x-radius-4xl: calc(var(--x-radius) * 2.6);
}
