:root {
  --ui-font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --ui-mono: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  --ui-body: 1rem;
  --ui-label: .875rem;
  --ui-small: .8125rem;
  --ui-caption: .75rem;
  --ui-radius: 10px;
  --ui-card-radius: 14px;
  --ui-control-height: 46px;
  /* Interaction targets. 24px is the interface minimum; 44px is the comfortable
     touch target used by primary controls and inline navigation links. */
  --ui-target-min: 24px;
  --ui-target: 44px;
  /* Motion rhythm is shared by every site surface. Site styles must not redeclare
     these; a missing enter easing previously drifted between the two stylesheets. */
  --motion-fast: 120ms;
  --motion-standard: 180ms;
  --motion-surface: 260ms;
  --motion-expand: 300ms;
  --motion-large: 340ms;
  --motion-theme: 520ms;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --motion-ease-enter: cubic-bezier(0.18, 0.72, 0.28, 1);
  --ui-bg: #070b12;
  --ui-surface: #111e2c;
  --ui-text: #eef5fa;
  --ui-muted: #a4b6c5;
  --ui-line: #344956;
  --ui-accent: #2ee9d2;
  --ui-on-accent: #031219;
  --ui-error: #ffaaa4;
  --ui-warning: #f0ce91;
  --ui-success: #9de1cb;
  --ui-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  /* Spacing scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
}
:root[data-theme="light"] {
  --ui-bg: #f3f7f7;
  --ui-surface: #fff;
  --ui-text: #11232c;
  --ui-muted: #4e6570;
  --ui-line: #bbcdd1;
  --ui-accent: #087b69;
  --ui-on-accent: #fff;
  --ui-error: #a42d2d;
  --ui-warning: #795512;
  --ui-success: #12694e;
  --ui-shadow: 0 8px 28px rgba(17, 52, 68, .06);
}
