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

/* 开关：<html data-radius="square|round"> 方／圆（缺省方）；data-visual="native" 主色黑；data-blue="bright|deep" 深蓝亮／沉（缺省亮）；data-density="comfortable|compact" 舒展／紧凑（缺省舒展）；.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: #2b7fff;
  --x-primary-foreground: #ffffff;
  --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: rgb(0 0 0 / 0.5);
  --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: #2b7fff;
  /* 深蓝两档由 data-blue 开关决定（2026-09-23 柯震东：两种蓝都保留，开工时选） */
  --x-link: var(--x-blue-text);
  /* 品牌强调色：字标上标「×」与 STARTER 用。100x 取信号蓝，原生取前景色（I-27）。 */
  --x-brand-signal: var(--x-primary);
  --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";
  --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-ease-ui: cubic-bezier(0.16, 1, 0.3, 1);
  --x-ease-focus: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-morph: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-ambient: ease-in-out;
  --x-dur-micro: 170ms;
  --x-dur-focus: 260ms;
  --x-dur-view: 230ms;
  --x-dur-morph: 300ms;
  --x-dur-ambient: 2000ms;
  --x-sidebar: #f5f5f5;
  --x-sidebar-foreground: #202020;
  --x-sidebar-primary: #2b7fff;
  --x-sidebar-primary-foreground: #ffffff;
  --x-sidebar-accent: #ebebeb;
  --x-sidebar-accent-foreground: #202020;
  --x-sidebar-border: #e5e5e5;
  --x-sidebar-ring: #2b7fff;
  --x-scrollbar-track: transparent;
  --x-scrollbar-thumb: color-mix(in oklab, var(--x-muted-foreground) 35%, transparent);
  --x-scrollbar-thumb-hover: color-mix(in oklab, var(--x-muted-foreground) 60%, transparent);
  --x-scrollbar-thumb-active: color-mix(in oklab, var(--x-muted-foreground) 85%, transparent);
}

.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: #5b93ff;
  --x-primary-foreground: #171716;
  --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: #ffffff;
  --x-scrim: rgb(0 0 0 / 0.5);
  --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: #5b93ff;
  --x-link: #5b93ff;
  --x-brand-signal: var(--x-primary);
  --x-selected-soft: #10233f;
  --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";
  --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-ease-ui: cubic-bezier(0.16, 1, 0.3, 1);
  --x-ease-focus: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-morph: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-ambient: ease-in-out;
  --x-dur-micro: 170ms;
  --x-dur-focus: 260ms;
  --x-dur-view: 230ms;
  --x-dur-morph: 300ms;
  --x-dur-ambient: 2000ms;
  --x-sidebar: #070708;
  --x-sidebar-foreground: #f2f2f0;
  --x-sidebar-primary: #5b93ff;
  --x-sidebar-primary-foreground: #171716;
  --x-sidebar-accent: #131314;
  --x-sidebar-accent-foreground: #f2f2f0;
  --x-sidebar-border: #202021;
  --x-sidebar-ring: #5b93ff;
  --x-scrollbar-track: transparent;
  --x-scrollbar-thumb: color-mix(in oklab, var(--x-muted-foreground) 30%, transparent);
  --x-scrollbar-thumb-hover: color-mix(in oklab, var(--x-muted-foreground) 55%, transparent);
  --x-scrollbar-thumb-active: color-mix(in oklab, var(--x-muted-foreground) 80%, transparent);
}

: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-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.922 0 0);
  --x-ring: oklch(0.708 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.708 0 0);
  /* 新增令牌的原生值：颜色沿用既有变量，其余回到基线观感 */
  --x-text-secondary: oklch(0.145 0 0);
  --x-border-strong: oklch(0.922 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: var(--x-accent);
  --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: "Geist Variable", sans-serif;
  --x-font-heading-token: "Geist Variable", sans-serif;
  --x-font-mono-token: ui-monospace, monospace;
  --x-font-lockup-token: "Geist Variable";
  --x-shadow-control: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --x-shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --x-shadow-overlay: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --x-glow-cta: none;
  --x-ease-ui: ease;
  --x-ease-focus: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-morph: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-ambient: ease-in-out;
  --x-dur-micro: 150ms;
  --x-dur-focus: 240ms;
  --x-dur-view: 200ms;
  --x-dur-morph: 200ms;
  --x-dur-ambient: 2000ms;
  --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-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(1 0 0 / 10%);
  --x-input: oklch(1 0 0 / 15%);
  --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.488 0.243 264.376);
  --x-sidebar-primary-foreground: oklch(0.985 0 0);
  --x-sidebar-accent: oklch(0.269 0 0);
  --x-sidebar-accent-foreground: oklch(0.985 0 0);
  --x-sidebar-border: oklch(1 0 0 / 10%);
  --x-sidebar-ring: oklch(0.556 0 0);
  /* 新增令牌的原生值 */
  --x-text-secondary: oklch(0.985 0 0);
  --x-border-strong: oklch(1 0 0 / 15%);
  --x-rule-soft: oklch(1 0 0 / 10%);
  --x-link: var(--x-primary);
  /* 原生深色下随前景反白，保证字标可读。 */
  --x-brand-signal: var(--x-foreground);
  --x-selected-soft: var(--x-accent);
  --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: "Geist Variable", sans-serif;
  --x-font-heading-token: "Geist Variable", sans-serif;
  --x-font-mono-token: ui-monospace, monospace;
  --x-font-lockup-token: "Geist Variable";
  --x-shadow-control: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --x-shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --x-shadow-overlay: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --x-glow-cta: none;
  --x-ease-ui: ease;
  --x-ease-focus: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-morph: cubic-bezier(0.4, 0, 0.2, 1);
  --x-ease-ambient: ease-in-out;
  --x-dur-micro: 150ms;
  --x-dur-focus: 240ms;
  --x-dur-view: 200ms;
  --x-dur-morph: 200ms;
  --x-dur-ambient: 2000ms;
  --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);
}

: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: 0.375rem;
  --x-radius-pill-token: calc(var(--x-radius) * 6);
}

:root:not([data-blue]),
:root[data-blue="bright"] {
  --x-blue-text: #1466e8;
}

:root[data-blue="deep"] {
  --x-blue-text: #1a5dcc;
}

:root:not([data-density]),
:root[data-density="comfortable"] {
  --x-density-text-body: 15px;
  --x-density-text-nav: 13.5px;
  --x-density-nav-py: 8px;
  --x-density-nav-px: 10px;
  --x-density-nav-gap: 10px;
  --x-density-topbar-h: 60px;
  --x-density-sidebar-w: 200px;
}

:root[data-density="compact"] {
  --x-density-text-body: 13px;
  --x-density-text-nav: 12px;
  --x-density-nav-py: 4px;
  --x-density-nav-px: 8px;
  --x-density-nav-gap: 8px;
  --x-density-topbar-h: 66px;
  --x-density-sidebar-w: 210px;
}

: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) * 0.6);
  --x-radius-md: calc(var(--x-radius) * 0.8);
  --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);
}
