/* Shared by the Web app and the SEO/GEO frontend. Keep the two copies identical.
   Theme colours live here; component adapters consume these semantic values. */
:root {
  color-scheme: dark;
  --cosmo-font-ui: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --cosmo-font-brand: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --cosmo-brand-color: #f1d5a7;
  --cosmo-font-interface: var(--cosmo-font-ui);
  --cosmo-font-display: Georgia, "Songti SC", "STSong", "Noto Serif SC", serif;
  --cosmo-text-xs: 12px;
  --cosmo-text-label: 13px;
  --cosmo-text-sm: 14px;
  --cosmo-text-body: 16px;
  --cosmo-title-page: clamp(32px, 4vw, 48px);
  --cosmo-title-section: 24px;
  --cosmo-title-workspace: 32px;
  --cosmo-control-height: 44px;
  --cosmo-control-compact: 36px;
  --cosmo-control-padding: 10px 20px;
  --cosmo-radius-control: 12px;
  --cosmo-radius-card: 20px;
  --cosmo-radius-dialog: 24px;
  --cosmo-space-xs: 8px;
  --cosmo-space-sm: 12px;
  --cosmo-space-md: 16px;
  --cosmo-space-lg: 24px;
  --cosmo-space-xl: 32px;
  --cosmo-bg: #120d1b;
  --cosmo-surface: #211a2e;
  --cosmo-surface-raised: #2b2239;
  --cosmo-field: #171321;
  --cosmo-text: #f3edf5;
  --cosmo-muted: #bdb3c8;
  --cosmo-accent: #dfb0c3;
  --cosmo-accent-hover: #edc5d5;
  --cosmo-on-accent: #2b1d2f;
  --cosmo-link: #e8c5e8;
  --cosmo-gold: #ecd4a0;
  --cosmo-border: #bda4cf40;
  --cosmo-border-strong: #bda4cf88;
  --cosmo-selected: #bda4cf20;
  --cosmo-focus: #dfb0c3;
  --cosmo-error: #f3a8b6;
}
[data-cosmo-theme="bazi"], .jade-workspace, .bazi-app, .bazi-dialog,
.web-miniapp-dialog.is-bazi,
body:has(.mobile-ask-shell[data-signal-view="home"] .constellation-home[data-reading-mode="bazi"]),
body:has(#web-astro-info[data-active-tab="bazi"]) {
  --cosmo-font-interface: var(--cosmo-font-display);
  --cosmo-font-display: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --cosmo-bg: #06272a;
  --cosmo-surface: #103235;
  --cosmo-surface-raised: #194347;
  --cosmo-field: #0b292d;
  --cosmo-text: #f1e5cb;
  --cosmo-muted: #b5c5bf;
  --cosmo-accent: #dfc38a;
  --cosmo-accent-hover: #f0d7a5;
  --cosmo-on-accent: #123438;
  --cosmo-link: #ecd4a0;
  --cosmo-gold: #ecd4a0;
  --cosmo-border: #c6a56a40;
  --cosmo-border-strong: #c6a56a88;
  --cosmo-selected: #c6a56a20;
  --cosmo-focus: #dfc38a;
  --cosmo-error: #f0c783;
}
