/* 全站日夜主题 · day = 生长本纸白 · night = 原暗色（默认，无需覆盖）
 *
 * 锁定约定（见 .cursor/rules/site-day-theme.mdc）：
 * - 白天整站内容白底 + 深墨字
 * - 九宫格白天 = 白蓝玻璃（棋盘 + 点进 overlay 同色）
 */

.site-theme-bar {
  position: fixed;
  top: max(env(safe-area-inset-top, 0px), 0.75rem);
  right: max(env(safe-area-inset-right, 0px), 0.65rem);
  z-index: 10049;
  pointer-events: none;
}

.site-theme-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  appearance: none;
  border: 1px solid rgba(160, 140, 255, 0.4);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: rgba(235, 230, 255, 0.92);
  background: rgba(12, 10, 28, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-theme-toggle:hover {
  border-color: rgba(186, 160, 255, 0.65);
  color: #fff;
}

.site-theme-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* —— 白天：生长本纸白 —— */
html.theme-day,
body.theme-day {
  color-scheme: light;
}

body.theme-day {
  /* 白页层次：对齐 themeTokens（--site-*） */
  --day-paper: var(--site-bg, var(--nb-paper, #f7f6f3));
  --day-card: var(--site-card, #ffffff);
  --day-muted: var(--site-muted, #efede8);
  --day-muted-2: #e6e4de;
  --day-ink: var(--site-ink, var(--nb-ink, #37352f));
  --day-ink-soft: var(--site-ink-soft, var(--nb-ink-soft, rgba(55, 53, 47, 0.72)));
  --day-ink-mute: var(--site-ink-mute, rgba(55, 53, 47, 0.58));
  --day-line: var(--site-line, var(--nb-line, rgba(55, 53, 47, 0.12)));
  --day-line-strong: rgba(55, 53, 47, 0.18);
  --day-accent: var(--site-accent, var(--nb-accent, #1a3c5e));

  background: var(--day-paper) !important;
  background-image: none !important;
  color: var(--day-ink);
  --text-primary: var(--site-ink);
  --text-secondary: var(--site-ink-soft);
  --text-tertiary: var(--site-ink-mute);
  --glass-border: var(--site-line);
  --glass-shine: rgba(255, 255, 255, 0.85);
  --glass-gradient: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 246, 243, 0.98) 55%,
    rgba(239, 237, 232, 0.96) 100%
  );
  --glass-gradient-strong: linear-gradient(
    145deg,
    #ffffff 0%,
    #f7f6f3 100%
  );
  --btn-primary-top: #1f4a6e;
  --btn-primary-mid: #1a3c5e;
  --btn-primary-bottom: #15324f;
  --accent: #1a3c5e;

  /* 生长路径 / helix：白天改成灰阶卡片，去掉夜色霓虹底 */
  --growth-glass: linear-gradient(145deg, #ffffff 0%, #efede8 100%);
  --growth-label: rgba(55, 53, 47, 0.58);
  --growth-border: rgba(55, 53, 47, 0.14);
  --growth-green: #2f6b52;
  --growth-green-soft: rgba(47, 107, 82, 0.42);
  --growth-green-glow: rgba(47, 107, 82, 0.12);
  --growth-deep: #efede8;
  --growth-mid: #ffffff;
  --helix-deep: #efede8;
  --helix-mid: #ffffff;
  --helix-label: rgba(55, 53, 47, 0.72);
  --helix-border: rgba(55, 53, 47, 0.14);
  --helix-cyan: #1a6b8a;
  --helix-cyan-soft: rgba(26, 107, 138, 0.45);
  --helix-cyan-glow: rgba(26, 107, 138, 0.12);

  /* 白天材质：纸面 elevation，不是夜色 blur/glow */
  --day-elev-1:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(15, 23, 42, 0.05);
  --day-elev-2:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.08);
  --day-elev-fold:
    0 8px 28px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.04);
  --glass-blur: 0px;
}

body.theme-day::before,
body.theme-day::after {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
}

body.theme-day.me-body,
body.theme-day.growth-book-body,
body.theme-day.stories-body,
body.theme-day.flow-notes-page {
  background: var(--day-paper, var(--site-bg, #f7f6f3)) !important;
  background-image: none !important;
  color: var(--day-ink, var(--site-ink, #37352f));
}

body.theme-day.is-dashboard .dashboard-bg {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.theme-day .panel,
body.theme-day .shell-glass-tile {
  color: var(--day-ink);
  background: var(--day-card);
  border-color: var(--day-line);
  box-shadow: var(--day-elev-1);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 人体主视觉：白天也保留深色舞台（解剖图为透明底，白底会透出水印/发灰） */
body.theme-day .body-figure-stage.panel {
  background: linear-gradient(165deg, #0c1428 0%, #08101c 100%) !important;
  border-color: rgba(100, 170, 230, 0.28) !important;
  color: #e8f0fa !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 28px rgba(15, 39, 64, 0.12) !important;
}

body.theme-day .body-figure-stage__title,
body.theme-day .body-figure-stage__lead,
body.theme-day .body-figure-legend__item,
body.theme-day .body-figure-stage__chip,
body.theme-day .body-figure-hotspot__label {
  color: #e8f0fa !important;
}

body.theme-day .body-figure-stage__lead,
body.theme-day .body-figure-legend__item {
  opacity: 0.88;
}

body.theme-day .body-figure-stage__viewport {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(80, 180, 255, 0.16), transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(40, 100, 200, 0.1), transparent 55%),
    #060c18;
}

/* —— 白天 · 身体页：白卡深墨字（人体深色舞台除外） —— */
body.theme-day.body-page-body,
body.theme-day .body-page,
body.theme-day .body-dashboard,
body.theme-day .body-dashboard__aside,
body.theme-day .body-dashboard__inputs,
body.theme-day .body-page-main {
  color: #0f2740;
}

body.theme-day .body-page__subtitle,
body.theme-day .body-page__empty,
body.theme-day .body-page__cycle,
body.theme-day .body-page__date-text,
body.theme-day .body-page__date-nav,
body.theme-day .body-page__date-nav a,
body.theme-day .body-meta,
body.theme-day .body-meta a {
  color: #0f2740 !important;
}

body.theme-day .body-execution-flow__eyebrow,
body.theme-day .body-execution-flow__title,
body.theme-day .body-execution-flow__lead,
body.theme-day .body-execution-flow__chain,
body.theme-day .body-execution-flow__chain li,
body.theme-day .body-panel,
body.theme-day .body-panel__eyebrow,
body.theme-day .body-panel__title,
body.theme-day .body-panel__lead,
body.theme-day .body-panel__empty,
body.theme-day .body-priority-banner__eyebrow,
body.theme-day .body-priority-banner__headline,
body.theme-day .body-priority-banner__lead,
body.theme-day .body-cycle-fold__summary,
body.theme-day .body-cycle__eyebrow,
body.theme-day .body-cycle__title,
body.theme-day .body-cycle__lead,
body.theme-day .body-cycle__deferred-note,
body.theme-day .body-region-detail__eyebrow,
body.theme-day .body-region-detail__title,
body.theme-day .body-region-detail__note,
body.theme-day .body-region-detail__empty,
body.theme-day .body-sleep__score,
body.theme-day .body-sleep__week,
body.theme-day .body-sleep__hint,
body.theme-day .body-sleep__readout-empty,
body.theme-day .body-sleep__import-hint,
body.theme-day .body-sleep__legend,
body.theme-day .body-sleep__tri,
body.theme-day .body-functional__mode,
body.theme-day .body-functional__score,
body.theme-day .body-functional__headline,
body.theme-day .body-functional__lead,
body.theme-day .body-functional__bullets,
body.theme-day .body-functional__bullets li,
body.theme-day .body-functional__plan,
body.theme-day .body-functional__empty,
body.theme-day .body-functional__chip,
body.theme-day .body-liuyue-goals,
body.theme-day .body-liuyue-goals__eyebrow,
body.theme-day .body-liuyue-goals__title,
body.theme-day .body-liuyue-goals__tag-label,
body.theme-day .body-liuyue-goals__tag,
body.theme-day .body-liuyue-goals__week-label,
body.theme-day .body-liuyue-goals__week-goal,
body.theme-day .body-liuyue-goals__week-sessions,
body.theme-day .body-liuyue-goals__today-label,
body.theme-day .body-liuyue-goals__today-text,
body.theme-day .body-liuyue-goals__today-week,
body.theme-day .body-accum__streak-label,
body.theme-day .body-accum__month,
body.theme-day .body-shichen__slot,
body.theme-day .body-shichen__time,
body.theme-day .body-shichen__mode,
body.theme-day .body-shichen__regions,
body.theme-day .body-shichen__reason,
body.theme-day .body-shichen__current,
body.theme-day .body-shichen__primary,
body.theme-day .cell-vitality__eyebrow,
body.theme-day .cell-vitality__meter-label,
body.theme-day .cell-vitality__meter-value,
body.theme-day .cell-vitality__summary,
body.theme-day .cell-vitality__bridge,
body.theme-day .cell-vitality__logistics,
body.theme-day .cell-vitality-teaser,
body.theme-day .cell-vitality-teaser__score,
body.theme-day .cell-vitality-teaser__dual {
  color: #0f2740 !important;
}

body.theme-day .body-execution-flow__eyebrow,
body.theme-day .body-panel__eyebrow,
body.theme-day .body-priority-banner__eyebrow,
body.theme-day .body-cycle__eyebrow,
body.theme-day .body-region-detail__eyebrow,
body.theme-day .body-liuyue-goals__eyebrow,
body.theme-day .body-execution-flow__lead,
body.theme-day .body-panel__lead,
body.theme-day .body-priority-banner__lead,
body.theme-day .body-sleep__hint,
body.theme-day .body-functional__lead {
  color: #15324f !important;
  opacity: 1;
}

body.theme-day .body-panel__step {
  color: #fff !important;
  background: linear-gradient(180deg, #1f4a6e 0%, #15324f 100%) !important;
  border-color: transparent !important;
}

body.theme-day .body-execution-flow__chain li,
body.theme-day .body-functional__chip {
  background: #eef5fc !important;
  border-color: rgba(26, 90, 150, 0.22) !important;
  color: #0f2740 !important;
}

body.theme-day .body-shichen__row {
  background: #f0f6fc !important;
  color: #0f2740 !important;
}

body.theme-day .body-shichen__row--current,
body.theme-day .body-shichen__row--primary {
  background: #e4eef8 !important;
  outline-color: rgba(26, 90, 150, 0.35) !important;
}

body.theme-day .body-shichen__time,
body.theme-day .body-shichen__mode,
body.theme-day .body-shichen__regions,
body.theme-day .body-shichen__reason,
body.theme-day .body-shichen__current,
body.theme-day .body-shichen__primary {
  color: #15324f !important;
}

body.theme-day .body-region-detail--smooth .body-region-detail__status {
  color: #1f6b4a !important;
}

body.theme-day .body-region-detail--active .body-region-detail__status {
  color: #8a5a12 !important;
}

body.theme-day .body-region-detail--emerging .body-region-detail__status {
  color: #4c2f6e !important;
}

body.theme-day .body-region-detail--queued .body-region-detail__status {
  color: #15324f !important;
}

body.theme-day .body-region-detail--slow .body-region-detail__status {
  color: #8b3a3a !important;
}

body.theme-day .body-sleep__signal--improving,
body.theme-day .body-sleep__delta--up,
body.theme-day .body-sleep__import-status {
  color: #1f6b4a !important;
}

body.theme-day .body-sleep__signal--declining,
body.theme-day .body-sleep__delta--down {
  color: #8b3a3a !important;
}

body.theme-day .body-sleep__tri {
  background: #ffffff !important;
  border-color: rgba(26, 90, 150, 0.22) !important;
  color: #0f2740 !important;
}

body.theme-day .body-sleep__tri:has(input:checked) {
  background: #eef5fc !important;
  border-color: rgba(26, 90, 150, 0.4) !important;
}

body.theme-day .body-accum {
  background: #f4f0fa !important;
  border-color: rgba(76, 47, 110, 0.18) !important;
}

body.theme-day .body-accum__ring-num {
  background: #ffffff !important;
  color: #3b2460 !important;
}

body.theme-day .body-accum__streak-label {
  color: #4c2f6e !important;
}

body.theme-day .body-liuyue-goals__tag--focus {
  color: #1f6b4a !important;
  background: rgba(47, 107, 82, 0.1) !important;
  border-color: rgba(47, 107, 82, 0.28) !important;
}

body.theme-day .body-liuyue-goals__tag--avoid {
  color: #8b3a3a !important;
  background: rgba(139, 58, 58, 0.08) !important;
  border-color: rgba(139, 58, 58, 0.28) !important;
}

body.theme-day .body-liuyue-goals__week {
  background: #ffffff !important;
  border-color: rgba(26, 90, 150, 0.14) !important;
}

body.theme-day .body-liuyue-goals__week.is-current {
  background: #eef5fc !important;
  border-color: rgba(26, 90, 150, 0.32) !important;
}

body.theme-day .body-liuyue-goals__week-label,
body.theme-day .body-liuyue-goals__week-goal,
body.theme-day .body-liuyue-goals__today-label,
body.theme-day .body-liuyue-goals__today-text {
  color: #0f2740 !important;
}

body.theme-day .body-accum__month,
body.theme-day .body-accum__month-label,
body.theme-day .body-accum__month-val,
body.theme-day .body-accum__hint,
body.theme-day .body-accum__stat,
body.theme-day .body-accum__stat-label,
body.theme-day .body-accum__stat-val {
  color: #3b2460 !important;
}

body.theme-day .body-sleep__form label,
body.theme-day .body-sleep__group,
body.theme-day .body-cycle label,
body.theme-day .body-cycle input,
body.theme-day .body-cycle select,
body.theme-day .body-sleep__form input,
body.theme-day .body-sleep__form select,
body.theme-day .body-sleep__form textarea {
  color: #0f2740 !important;
}

body.theme-day .body-cycle input,
body.theme-day .body-cycle select,
body.theme-day .body-sleep__form input:not([type='checkbox']):not([type='radio']),
body.theme-day .body-sleep__form select,
body.theme-day .body-sleep__form textarea {
  background: #ffffff !important;
  border-color: rgba(26, 90, 150, 0.28) !important;
}

body.theme-day .body-functional__gates {
  background: #efede8 !important;
  color: #0f2740 !important;
}

body.theme-day .growth-line-strip-host--body .growth-line-strip,
body.theme-day .body-page .growth-line-strip {
  background: #ffffff !important;
  border-color: rgba(26, 90, 150, 0.18) !important;
  color: #0f2740 !important;
}

body.theme-day .growth-line-strip-host--body .growth-line-strip__eyebrow,
body.theme-day .growth-line-strip-host--body .growth-line-strip__count,
body.theme-day .growth-line-strip-host--body .growth-line-strip__meaning,
body.theme-day .growth-line-strip-host--body .growth-line-strip__when,
body.theme-day .growth-line-strip-host--body .growth-line-strip__kind,
body.theme-day .growth-line-strip-host--body .growth-line-strip__text,
body.theme-day .growth-line-strip-host--body .growth-line-strip__empty,
body.theme-day .body-page .growth-line-strip__eyebrow,
body.theme-day .body-page .growth-line-strip__count,
body.theme-day .body-page .growth-line-strip__meaning,
body.theme-day .body-page .growth-line-strip__when,
body.theme-day .body-page .growth-line-strip__kind,
body.theme-day .body-page .growth-line-strip__text,
body.theme-day .body-page .growth-line-strip__empty {
  color: #0f2740 !important;
}

body.theme-day .growth-line-strip-host--body .growth-line-strip__link,
body.theme-day .body-page .growth-line-strip__link,
body.theme-day .body-growth-exhibit__link {
  color: #1a3c5e !important;
  border-bottom-color: rgba(26, 60, 94, 0.35) !important;
}

body.theme-day .body-growth-exhibit__title,
body.theme-day .body-growth-exhibit__lead,
body.theme-day .body-growth-exhibit__when,
body.theme-day .body-growth-exhibit__kind,
body.theme-day .body-growth-exhibit__text,
body.theme-day .body-growth-exhibit__empty {
  color: #0f2740 !important;
}

body.theme-day .body-cycle-fold__summary {
  color: #15324f !important;
}

body.theme-day .body-priority-banner--body-first,
body.theme-day .body-priority-banner {
  color: #0f2740 !important;
}

body.theme-day .body-save-feedback {
  color: #3b2460 !important;
  background: #f4f0fa !important;
  border-color: rgba(76, 47, 110, 0.22) !important;
}

body.theme-day .site-nav__link {
  color: rgba(55, 53, 47, 0.78);
}

body.theme-day .site-nav__link.is-active,
body.theme-day .site-nav__link--primary.is-active {
  color: var(--day-ink);
}

body.theme-day .me-footer__note,
body.theme-day .me-footer__privacy a {
  color: var(--day-ink-mute);
}

body.theme-day .me-footer__privacy a:hover {
  color: var(--day-ink);
}

body.theme-day .site-locale-switch {
  border-color: rgba(26, 60, 94, 0.28);
  box-shadow: -4px 0 18px rgba(15, 23, 42, 0.08);
}

body.theme-day .site-locale-bar__link {
  color: rgba(55, 53, 47, 0.72);
  background: rgba(255, 255, 255, 0.92);
}

body.theme-day .site-locale-bar__link.is-active {
  color: #fff;
  background: var(--day-accent);
}

body.theme-day .site-theme-toggle {
  color: var(--day-ink);
  background: #ffffff;
  border-color: rgba(26, 60, 94, 0.22);
  box-shadow: var(--day-elev-1);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .site-theme-toggle:hover {
  border-color: rgba(26, 60, 94, 0.4);
  color: var(--day-accent);
}

body.theme-day .app-dock {
  --app-dock-fg: rgba(55, 53, 47, 0.85);
  background: #ffffff !important;
  border-right-color: rgba(26, 90, 150, 0.14);
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .app-dock::before {
  display: none;
}

body.theme-day .app-dock.is-collapsed::after {
  background: linear-gradient(
    180deg,
    rgba(100, 170, 230, 0.32) 0%,
    rgba(160, 210, 245, 0.2) 50%,
    rgba(100, 170, 230, 0.32) 100%
  );
  border-right-color: rgba(100, 170, 230, 0.45);
}

body.theme-day .app-dock__expand {
  border-color: rgba(100, 170, 230, 0.45);
  border-left-color: rgba(140, 200, 245, 0.75);
  background: linear-gradient(
    160deg,
    #e8f2fc 0%,
    #d4e8f8 100%
  );
  color: #15324f;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .app-dock__expand:hover {
  background: linear-gradient(
    160deg,
    #f2f8fd 0%,
    #dceef9 100%
  );
  color: #0f2740;
  border-color: rgba(100, 170, 230, 0.6);
  box-shadow: 3px 0 16px rgba(15, 23, 42, 0.1);
}

body.theme-day .app-dock__zh,
body.theme-day .app-dock__en,
body.theme-day .app-dock__item {
  color: #0f2740 !important;
}

body.theme-day .app-dock__en {
  color: #15324f !important;
}

body.theme-day .app-dock__freq,
body.theme-day .app-dock__freq-zh,
body.theme-day .app-dock__meter-label {
  color: #1a5a8a !important;
  opacity: 1;
}

body.theme-day .app-dock__meter-score {
  color: #1f6b4a !important;
}

body.theme-day .app-dock__guide {
  color: #4c2f6e !important;
}

body.theme-day .app-dock__minimize {
  color: #15324f !important;
  border-color: var(--day-line);
  background: var(--day-muted);
}

body.theme-day .btn--secondary {
  color: var(--day-ink);
  border-color: rgba(55, 53, 47, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

/* 首页 Hero / Why：白天深墨字 + 主按钮（勿用半透明 mute） */
body.theme-day .hero__title,
body.theme-day .why__body p,
body.theme-day .why__body p.why__closing,
body.theme-day #why-body-1,
body.theme-day #why-body-2,
body.theme-day #why-body-3 {
  color: #0f2740 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #0f2740 !important;
}

body.theme-day .hero__tagline,
body.theme-day .why__closing,
body.theme-day #why-closing {
  color: #15324f !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #15324f !important;
}

body.theme-day .why__eyebrow,
body.theme-day .why__eyebrow .ui-locale-zh-only,
body.theme-day .why__eyebrow .ui-locale-en-only {
  color: #3b2460 !important;
  opacity: 1 !important;
}

body.theme-day .btn--primary,
body.theme-day .btn#start-btn,
body.theme-day .btn#why-continue-btn {
  background: linear-gradient(180deg, #1f4a6e 0%, #1a3c5e 48%, #15324f 100%) !important;
  color: #ffffff !important;
  border-color: rgba(15, 39, 64, 0.22) !important;
  box-shadow: 0 2px 12px rgba(15, 39, 64, 0.22) !important;
}

body.theme-day .btn--primary:hover,
body.theme-day .btn#start-btn:hover,
body.theme-day .btn#why-continue-btn:hover {
  background: linear-gradient(180deg, #275a82 0%, #1f4a6e 48%, #1a3c5e 100%) !important;
  box-shadow: 0 4px 16px rgba(15, 39, 64, 0.28) !important;
}

/* onboarding 全屏页时藏侧栏，避免压住 Why 文案 */
body:has(#why.is-visible) .app-dock,
body:has(#profile-setup.is-visible) .app-dock {
  display: none !important;
}

body:has(#why.is-visible),
body:has(#profile-setup.is-visible) {
  padding-left: 0 !important;
}

/* —— 白天 · 月历：白卡 + 深墨字（覆盖夜色蓝玻璃） —— */
body.theme-day.is-dashboard .panel--month.panel--dashboard-glass,
body.theme-day.is-dashboard .panel--month,
body.theme-day.is-dashboard .panel--month.is-season-spring,
body.theme-day.is-dashboard .panel--month.is-season-summer,
body.theme-day.is-dashboard .panel--month.is-season-autumn,
body.theme-day.is-dashboard .panel--month.is-season-winter {
  background: var(--day-card) !important;
  border-color: var(--day-line) !important;
  box-shadow: var(--day-elev-2) !important;
  color: var(--day-ink);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day.is-dashboard .panel--month::before {
  opacity: 0;
  background: none;
}

body.theme-day .dashboard-top {
  /* 白天也保留原来的蓝色渐变条 */
  background: linear-gradient(
    125deg,
    #0c2d6b 0%,
    #1e3a8a 28%,
    #3730a3 52%,
    #0084ff 100%
  ) !important;
  box-shadow: 0 8px 28px rgba(0, 60, 140, 0.28) !important;
}

body.theme-day .rhythm-hero__title,
body.theme-day .rhythm-hero__card-title {
  color: var(--day-ink) !important;
}

body.theme-day .rhythm-hero__lead,
body.theme-day .rhythm-hero__card-desc,
body.theme-day .rhythm-task-strip__guide {
  color: var(--day-ink-soft) !important;
}

body.theme-day .rhythm-task-strip {
  background: var(--day-muted);
  border-color: var(--day-line);
  box-shadow: var(--day-elev-1);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .rhythm-task-strip__item,
body.theme-day .rhythm-task-strip__label {
  color: var(--day-ink);
}

body.theme-day .rhythm-task-strip__item {
  background: var(--day-card);
  border-color: var(--day-line);
}

body.theme-day .rhythm-task-strip__item:hover {
  background: rgba(26, 60, 94, 0.08);
  border-color: rgba(26, 60, 94, 0.28);
  color: var(--day-ink);
}

body.theme-day .rhythm-task-strip__item.is-done {
  border-color: rgba(47, 107, 82, 0.35);
  color: #2f6b52;
}

body.theme-day .rhythm-task-strip__check {
  border-color: rgba(55, 53, 47, 0.28);
}

body.theme-day .rhythm-hero__card-title,
body.theme-day .rhythm-hero__card-desc {
  color: inherit;
}

body.theme-day .rhythm-hero__pillar-body.shell-glass-tile,
body.theme-day .liuyue-pillar__body,
body.theme-day .liuyue-pillar__stem,
body.theme-day .liuyue-pillar__branch {
  color: var(--day-ink);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: var(--day-elev-1);
}

body.theme-day .rhythm-hero__card:hover .liuyue-pillar__body,
body.theme-day .rhythm-hero__card:focus-visible .liuyue-pillar__body {
  box-shadow: var(--day-elev-2);
}

/* 时间折叠恢复原蓝条：隐藏「今日主光」状态条（不再跟五行变色） */
.ambient-status-strip {
  display: none !important;
}

body.theme-day .month-nav__btn {
  color: var(--day-ink);
  background: var(--day-muted);
  border-color: var(--day-line);
}

body.theme-day .month-nav__btn:hover {
  background: var(--day-muted-2);
  border-color: var(--day-line-strong);
}

body.theme-day .month-nav__title-zh,
body.theme-day .month-nav__title,
body.theme-day .month-nav a,
body.theme-day .month-nav__title-row a,
body.theme-day .month-nav__season-tag {
  color: var(--day-ink) !important;
}

body.theme-day .month-nav__title-en {
  color: var(--day-ink-mute) !important;
}

body.theme-day .month-grid__head,
body.theme-day .month-grid__head-zh,
body.theme-day .month-grid__head-en {
  color: var(--day-ink-mute) !important;
  opacity: 1;
}

body.theme-day .month-cell {
  color: var(--day-ink);
}

body.theme-day .month-cell__day {
  color: var(--day-ink);
  font-weight: 600;
}

body.theme-day .month-cell:hover:not(.month-cell--selected) {
  background: rgba(55, 53, 47, 0.05);
  border-color: rgba(55, 53, 47, 0.1);
}

body.theme-day .month-cell__sub {
  color: rgba(55, 53, 47, 0.72);
  opacity: 1;
}

body.theme-day .month-cell__ganzhi {
  color: rgba(55, 53, 47, 0.58);
  opacity: 1;
}

body.theme-day .month-grid__head {
  color: rgba(55, 53, 47, 0.62) !important;
  font-weight: 600;
}

body.theme-day .month-cell--selected {
  background: rgba(26, 60, 94, 0.1);
  border-color: rgba(26, 60, 94, 0.35);
  color: var(--day-ink);
}

body.theme-day .calendar-boot-hint {
  color: var(--day-ink-soft) !important;
}

body.theme-day.is-dashboard .calendar-mode__btn,
body.theme-day.is-dashboard .calendar-mode__btn--link,
body.theme-day.is-dashboard .calendar-mode__btn--primary,
body.theme-day.is-dashboard .calendar-mode__btn--primary.calendar-mode__btn--heart {
  color: var(--day-ink-soft) !important;
  background: var(--day-muted) !important;
  border: 1px solid var(--day-line) !important;
  box-shadow: none !important;
}

body.theme-day.is-dashboard .calendar-mode__btn.is-active,
body.theme-day.is-dashboard .calendar-mode__btn--primary.is-active {
  color: #fff !important;
  background: var(--day-accent) !important;
  border-color: transparent !important;
}

body.theme-day.is-dashboard .calendar-mode__btn--link:hover,
body.theme-day.is-dashboard .calendar-mode__btn--primary:hover {
  color: var(--day-ink) !important;
  background: var(--day-muted-2) !important;
}

body.theme-day.is-dashboard .dashboard-footer .btn--secondary {
  color: var(--day-ink);
  background: var(--day-card);
  border-color: var(--day-line);
}

body.theme-day .month-legend,
body.theme-day .liuyue-l1,
body.theme-day .notion-companion-host {
  color: var(--day-ink);
}

body.theme-day .dashboard-footer__link {
  color: var(--day-ink-soft);
}

body.theme-day .rhythm-hero__glyph.liuyue-pillar__stem,
body.theme-day .app-dock__icon.liuyue-pillar__stem {
  color: var(--day-ink) !important;
  text-shadow: none;
}

body.theme-day .notion-companion,
body.theme-day .notion-companion-host {
  color: var(--day-ink);
}

body.theme-day .notion-companion__eyebrow,
body.theme-day .notion-companion__lead {
  color: var(--day-ink-soft) !important;
}

body.theme-day .notion-companion__title {
  color: var(--day-ink) !important;
}

body.theme-day .notion-companion__link {
  color: var(--day-accent) !important;
}

/* 流月 L1 / 配套区残留夜色字 */
body.theme-day .liuyue-l1,
body.theme-day .liuyue-l1 p,
body.theme-day .liuyue-l1 span:not([class*='wx--']) {
  color: var(--day-ink);
}

body.theme-day .liuyue-l1 a,
body.theme-day .notion-companion__link {
  color: var(--day-accent) !important;
}

/* —— 白天 · 核心页：文字加深 + 板块改白/浅灰 —— */
body.theme-day .me-dashboard,
body.theme-day .me-dashboard .panel {
  color: var(--day-ink);
}

body.theme-day .me-dashboard__panel-title,
body.theme-day .me-quadrant__zone-label,
body.theme-day .me-behavior-trend__title,
body.theme-day .me-dash-wx__bars-title,
body.theme-day .me-helix-meta__grid dt,
body.theme-day .me-singularity__eyebrow,
body.theme-day .me-income-chart__eyebrow,
body.theme-day .growth-path__eyebrow,
body.theme-day .me-dashboard__fold-summary,
body.theme-day .me-dashboard__fold-summary--longterm {
  color: var(--day-ink-mute) !important;
}

body.theme-day .me-dash-wx__score {
  color: var(--day-ink);
  font-weight: 400;
}

body.theme-day .me-dash-wx__score span {
  opacity: 1;
  color: var(--day-ink);
}

body.theme-day .me-dash-wx__tier,
body.theme-day .me-dash-wx__yong,
body.theme-day .me-dash-bar__val,
body.theme-day .me-dash-wx__layer-legend,
body.theme-day .me-dash-wx__layer-legend-detail,
body.theme-day .me-dash-wx__layer-notes,
body.theme-day .me-dash-wx__liuri-day-hint,
body.theme-day .me-helix-meta__kui-gang,
body.theme-day .me-helix-meta__pillar-activation,
body.theme-day .me-helix-meta__pillar-arc-hint,
body.theme-day .me-helix-meta__env-impact,
body.theme-day .me-helix-meta__tst,
body.theme-day .me-helix-meta__grid dd,
body.theme-day .me-structure__lead,
body.theme-day .me-structure__hint,
body.theme-day .me-behavior-trend__lead,
body.theme-day .me-behavior-trend__hint,
body.theme-day .me-guide,
body.theme-day .me-rhythm-pathway__tagline,
body.theme-day .me-rhythm-pathway__step-sub,
body.theme-day .me-rhythm-pathway__step-desc,
body.theme-day .me-heart-status__tone,
body.theme-day .me-heart-status__pct,
body.theme-day .me-heart-status__context,
body.theme-day .me-singularity__lead,
body.theme-day .me-singularity__hub,
body.theme-day .me-income-chart__lead,
body.theme-day .me-income-chart__hint,
body.theme-day .me-helix-crumb__link,
body.theme-day .me-helix-crumb__sep,
body.theme-day .me-helix-crumb__current {
  color: var(--day-ink-soft) !important;
}

body.theme-day .me-structure__title,
body.theme-day .me-heart-status__heart,
body.theme-day .me-singularity__title,
body.theme-day .me-income-chart__title,
body.theme-day .me-rhythm-pathway__step-title,
body.theme-day .growth-path__title {
  color: var(--day-ink) !important;
}

body.theme-day .me-dash-wx__behavior {
  background: var(--day-muted);
  color: var(--day-ink);
}

body.theme-day .me-dash-wx__behavior--up {
  color: #2f6b52;
}

body.theme-day .me-dash-wx__behavior--down {
  color: #9a5b2e;
}

body.theme-day .me-dash-wx__layer-swatch--natal {
  background: rgba(55, 53, 47, 0.18);
  border-color: rgba(55, 53, 47, 0.12);
}

body.theme-day .me-structure__dm {
  color: #8a5a2b !important;
}

body.theme-day .me-behavior-trend__cta,
body.theme-day .me-rhythm-pathway__step-cta,
body.theme-day .growth-path__link {
  color: var(--day-accent) !important;
}

/* 折叠区 / 侧栏嵌套：浅灰替代夜色玻璃 */
body.theme-day .me-dashboard__fold,
body.theme-day .me-dashboard__fold--longterm,
body.theme-day #me-zone4-fold.me-dashboard__fold--longterm {
  background: var(--day-muted);
  border-color: var(--day-line);
}

body.theme-day .me-helix-meta--sidebar,
body.theme-day .me-structure {
  background: var(--day-muted);
  border-color: var(--day-line);
  box-shadow: var(--day-elev-1);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .me-heart-status,
body.theme-day .me-heart-status--leap,
body.theme-day .me-heart-status--steady,
body.theme-day .me-heart-status--accumulate,
body.theme-day .me-heart-status--low {
  background: var(--day-card);
  border-color: var(--day-line-strong);
  color: var(--day-ink);
}

body.theme-day .me-heart-status--leap {
  background: #f6f1ec;
  border-color: rgba(180, 110, 70, 0.28);
}

body.theme-day .me-heart-status__singularity {
  color: #8a5a2b !important;
}

body.theme-day .me-heart-status__singularity-chip {
  background: rgba(180, 110, 70, 0.08);
  border-color: rgba(180, 110, 70, 0.22);
}

body.theme-day .me-rhythm-pathway {
  background: var(--day-muted);
  border-color: var(--day-line);
  color: var(--day-ink);
}

body.theme-day .me-rhythm-pathway__step {
  background: var(--day-card);
  border-color: var(--day-line);
}

body.theme-day .me-singularity {
  background: var(--day-card);
  border-color: var(--day-line);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.05);
}

body.theme-day .me-guide {
  background: var(--day-muted);
  border-color: var(--day-line);
}

body.theme-day .growth-path,
body.theme-day .body-growth-exhibit {
  background: var(--day-card);
  border-color: var(--day-line);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.05);
  color: var(--day-ink);
}

body.theme-day .me-income-chart {
  background: var(--day-muted);
  border-color: var(--day-line);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(15, 23, 42, 0.05);
  color: var(--day-ink);
}

body.theme-day .me-income-chart__expand,
body.theme-day .me-income-chart__back {
  color: var(--day-accent);
  border-color: rgba(26, 60, 94, 0.28);
  background: var(--day-card);
}

body.theme-day .me-helix-stage--3d {
  background: radial-gradient(
    ellipse 85% 70% at 50% 36%,
    rgba(210, 218, 228, 0.55),
    var(--day-muted) 55%,
    var(--day-muted-2)
  );
  border-color: var(--day-line);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 0 36px rgba(55, 53, 47, 0.03);
}

body.theme-day .me-zone4-signal {
  background: rgba(180, 70, 70, 0.1);
  color: #8b3a3a !important;
}

body.theme-day .me-zone4-signal__zh,
body.theme-day .me-zone4-signal__en,
body.theme-day .me-zone4-fold-hint {
  color: #8b3a3a !important;
}

body.theme-day .fem-rhythm-panel,
body.theme-day .fem-rhythm-panel--pink,
body.theme-day .fem-rhythm-panel--purple,
body.theme-day .me-cycle-bridge-banner {
  background: var(--day-muted) !important;
  border-color: var(--day-line) !important;
  color: var(--day-ink);
}

body.theme-day .fem-rhythm-panel--pink [class$='__eyebrow'],
body.theme-day .fem-rhythm-panel--purple [class$='__eyebrow'],
body.theme-day .fem-rhythm-panel--pink [class$='__lead'],
body.theme-day .fem-rhythm-panel--pink [class$='__title'],
body.theme-day .fem-rhythm-panel--purple [class$='__lead'],
body.theme-day .fem-rhythm-panel--purple [class$='__title'] {
  color: var(--day-ink) !important;
}

body.theme-day .me-dna,
body.theme-day .me-dna__canvas-wrap,
body.theme-day .me-trend-chip,
body.theme-day .me-heart-bridge,
body.theme-day .me-grounding-bar,
body.theme-day .me-dna-detail__rhythm,
body.theme-day .me-helix-hover-preview {
  background: var(--day-muted);
  border-color: var(--day-line);
  color: var(--day-ink);
}

body.theme-day .me-dna__sub,
body.theme-day .me-header__natal,
body.theme-day .me-heart-bridge__eyebrow,
body.theme-day .me-heart-bridge__bridge,
body.theme-day .me-grounding-bar__label {
  color: var(--day-ink-soft) !important;
}

body.theme-day .me-heart-bridge__heart,
body.theme-day .me-trend-chip,
body.theme-day .me-helix-hover-preview__title,
body.theme-day .me-helix-hover-preview__channels p {
  color: var(--day-ink) !important;
}

body.theme-day .me-trend-chip:hover {
  background: var(--day-muted-2);
  border-color: var(--day-line-strong);
}

body.theme-day .me-helix-duo__singularity .me-singularity {
  background: var(--day-card);
  border-color: var(--day-line-strong);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(15, 23, 42, 0.06);
}

body.theme-day .me-singularity__key-btn {
  background: var(--day-muted);
  border-color: var(--day-line);
  color: var(--day-ink);
}

body.theme-day .me-singularity__key-btn:hover {
  background: var(--day-muted-2);
  border-color: var(--day-line-strong);
}

body.theme-day .me-singularity__key-type {
  background: rgba(26, 60, 94, 0.1);
  color: var(--day-accent);
}

body.theme-day .me-singularity__primary {
  background: var(--day-muted);
  border-color: rgba(180, 110, 70, 0.28);
}

/* 嵌套白卡：长期区 / singularity 内的强调块不再用纯黑 */
body.theme-day .me-singularity__primary-title,
body.theme-day .me-singularity__key-title {
  color: var(--day-ink) !important;
}

/* 页头 / 五行条 / 甲戌年带 / DNA 详情 / 收入读数 */
body.theme-day .me-header__title {
  color: var(--day-ink) !important;
}

body.theme-day .me-header__eyebrow,
body.theme-day .me-header__lead,
body.theme-day .me-header__back,
body.theme-day .me-header__natal {
  color: var(--day-ink-soft) !important;
}

body.theme-day .me-dash-wx__environment,
body.theme-day .me-dash-bar__label,
body.theme-day .me-dash-bar__el,
body.theme-day .me-dash-bar__val-final,
body.theme-day .me-dash-bar__val-potential,
body.theme-day .me-dash-bar__val-potential-up,
body.theme-day .me-dash-bar__phase--up {
  color: var(--day-ink) !important;
}

body.theme-day .me-dash-bar__phase--wang {
  color: #8a5a12 !important;
  background: rgba(210, 150, 40, 0.18);
}

body.theme-day .me-dash-bar__phase--xiang {
  color: #1a5a8a !important;
  background: rgba(80, 140, 210, 0.14);
}

body.theme-day .me-dash-bar__phase--xiu {
  color: var(--day-ink-soft) !important;
  background: rgba(55, 53, 47, 0.06);
}

body.theme-day .me-dash-bar__phase--qiu {
  color: #5a3a7a !important;
  background: rgba(140, 90, 180, 0.12);
}

body.theme-day .me-dash-bar__phase--si {
  color: var(--day-ink-mute) !important;
  background: rgba(55, 53, 47, 0.08);
}

body.theme-day .me-dash-bar__track,
body.theme-day .me-dash-bar__track--stack {
  background: rgba(55, 53, 47, 0.1);
  border-color: rgba(55, 53, 47, 0.08);
}

body.theme-day .me-dash-wx__liuri-day {
  background: var(--day-muted);
  border-color: var(--day-line);
  color: var(--day-ink-soft);
}

body.theme-day .me-jiaxu-strip,
body.theme-day .me-dna__detail,
body.theme-day .me-income-chart__readout,
body.theme-day .me-pillar-brief__card,
body.theme-day .me-singularity__month-pillar,
body.theme-day .me-replenish-entry,
body.theme-day .me-replenish-entry--unlocked,
body.theme-day .me-replenish-entry--locked,
body.theme-day .me-replenish-entry__meta {
  background: var(--day-muted) !important;
  border-color: var(--day-line) !important;
  color: var(--day-ink);
}

body.theme-day .me-jiaxu-year {
  background: var(--day-card);
  border-color: var(--day-line);
  color: var(--day-ink);
}

body.theme-day .me-jiaxu-year--key {
  background: #f3ebe2;
  border-color: rgba(180, 110, 50, 0.35);
  color: var(--day-ink);
}

body.theme-day .me-jiaxu-strip__title,
body.theme-day .me-jiaxu-year__gz,
body.theme-day .me-jiaxu-year__y,
body.theme-day .me-dna-detail__eyebrow,
body.theme-day .me-dna-detail__grid dt,
body.theme-day .me-income-chart__readout-list,
body.theme-day .me-income-chart__readout-note,
body.theme-day .me-pillar-brief__lead,
body.theme-day .me-pillar-brief__empty,
body.theme-day .me-pillar-brief__climate,
body.theme-day .me-pillar-brief__line,
body.theme-day .me-pillar-brief__boundary,
body.theme-day .me-pillar-brief__layer,
body.theme-day .me-pillar-brief__gods,
body.theme-day .me-replenish-entry__label,
body.theme-day .me-replenish-entry__focus,
body.theme-day .me-replenish-entry__section-title,
body.theme-day .me-replenish-entry__cta,
body.theme-day .me-replenish-entry__meta dt {
  color: var(--day-ink-soft) !important;
}

body.theme-day .me-dna-detail__title,
body.theme-day .me-dna-detail__grid dd,
body.theme-day .me-pillar-brief__title,
body.theme-day .me-pillar-brief__sub,
body.theme-day .me-pillar-brief__headline,
body.theme-day .me-pillar-brief__card-title,
body.theme-day .me-pillar-brief__personal,
body.theme-day .me-pillar-brief__sum-list,
body.theme-day .me-replenish-entry__headline,
body.theme-day .me-replenish-entry__score,
body.theme-day .me-replenish-entry__teaser,
body.theme-day .me-replenish-entry__priorities li,
body.theme-day .me-replenish-entry__priorities strong {
  color: var(--day-ink) !important;
}

body.theme-day .me-pillar-brief__sum-link,
body.theme-day .me-pillar-brief__more {
  color: var(--day-accent) !important;
}

body.theme-day .me-quadrant-actions__btn {
  background: var(--day-card);
  border-color: var(--day-line-strong);
  color: var(--day-ink);
}

body.theme-day .me-quadrant-actions__btn:hover {
  background: var(--day-muted);
  border-color: rgba(26, 60, 94, 0.35);
}

body.theme-day .me-quadrant-actions__btn--primary {
  background: var(--day-accent);
  border-color: transparent;
  color: #fff;
}

body.theme-day .me-helix-annotation-chip {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--day-line);
  color: var(--day-ink);
}

body.theme-day .me-helix-annotation-chip--live {
  color: #2f6b52;
  border-color: rgba(47, 107, 82, 0.35);
}

body.theme-day .me-helix-annotation-chip__soon {
  color: var(--day-ink-mute);
}

body.theme-day .growth-path {
  background: var(--day-muted);
  border-color: var(--day-line);
}

/* 站点页头 + 仍写死淡蓝的次级文案 */
body.theme-day .site-header__title,
body.theme-day .site-header__title .ui-locale-zh-only,
body.theme-day .site-header__title .ui-locale-en-only {
  color: var(--day-ink) !important;
}

body.theme-day .site-header__eyebrow,
body.theme-day .site-header__eyebrow .ui-locale-zh-only,
body.theme-day .site-header__eyebrow .ui-locale-en-only,
body.theme-day .me-natal-line,
body.theme-day .me-dash-wx__water-callout,
body.theme-day .me-dash-wx__water-callout strong,
body.theme-day .me-behavior-trend__score,
body.theme-day .me-behavior-trend__score strong,
body.theme-day .me-behavior-trend__chart-label,
body.theme-day .me-behavior-trend__chart-meta,
body.theme-day .me-structure__stats dt,
body.theme-day .me-structure__stats dd,
body.theme-day .life-helix-3d__hint {
  color: var(--day-ink-soft) !important;
}

body.theme-day .life-helix-3d__hint {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--day-line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

body.theme-day .me-structure__stats dd,
body.theme-day .me-behavior-trend__score {
  color: var(--day-ink) !important;
}

body.theme-day .me-dash-meta dt,
body.theme-day .me-mini-tst,
body.theme-day .me-profile-refine-hint,
body.theme-day .me-helix-sub,
body.theme-day .me-singularity__primary-sub,
body.theme-day .me-singularity__primary-hub,
body.theme-day .me-singularity__near,
body.theme-day .me-singularity__year-board-title,
body.theme-day .me-singularity__year-board-lead {
  color: var(--day-ink-soft) !important;
}

body.theme-day .me-dash-meta dd {
  color: var(--day-ink) !important;
}

body.theme-day .helix-energy-theater {
  background: var(--day-muted) !important;
  background-image: none !important;
  border-color: var(--day-line);
  color: var(--day-ink);
}

body.theme-day .helix-energy-theater__caption,
body.theme-day .helix-energy-theater__meter-label,
body.theme-day .helix-energy-theater__year,
body.theme-day .helix-energy-theater__internal {
  color: var(--day-ink-soft) !important;
}

body.theme-day .helix-energy-theater__meter-track {
  background: rgba(55, 53, 47, 0.12);
}

/* —— 白天 · 九宫格：白蓝玻璃（沿用原模板变量，只换色） —— */
body.theme-day .day-drawer-board {
  --board-line: rgba(26, 90, 150, 0.16);
  --board-light-a: rgba(255, 255, 255, 0.98);
  --board-light-b: rgba(240, 248, 255, 0.94);
  --board-light-c: rgba(220, 238, 252, 0.88);
  --board-dark-a: rgba(236, 245, 255, 0.96);
  --board-dark-b: rgba(214, 232, 248, 0.95);
  --board-accent: rgba(26, 107, 168, 0.55);
  --board-metal-hi: rgba(80, 160, 220, 0.35);
  --board-text-dark: #15324f;
  --board-text-dark-muted: rgba(21, 50, 79, 0.7);
  --board-text-light: #15324f;
  --board-text-light-muted: rgba(21, 50, 79, 0.68);
  --board-frame-top: rgba(100, 170, 230, 0.45);
  --board-frame-edge: rgba(26, 90, 150, 0.2);
  --helix-label: #15324f;
  --helix-cyan: #1a6b8a;
  --helix-cyan-soft: #1a6b8a;
  --helix-cyan-glow: rgba(26, 107, 168, 0.16);
  --helix-border: rgba(26, 90, 150, 0.18);
  --helix-mid: #eef5fc;
  --helix-deep: #e0ebf6;
  --helix-gradient-label: linear-gradient(
    135deg,
    rgba(26, 107, 168, 0.14) 0%,
    rgba(26, 60, 94, 0.1) 100%
  );
}

body.theme-day .day-drawer__panel,
body.theme-day .day-drawer.is-open .day-drawer__panel,
body.theme-day .day-drawer.is-open .day-drawer__panel--board {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 246, 243, 0.98) 100%
  ) !important;
  border-color: rgba(26, 90, 150, 0.14);
  box-shadow:
    var(--day-elev-fold),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #15324f;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .day-drawer__backdrop {
  background: rgba(230, 236, 244, 0.72);
}

body.theme-day .day-drawer-board-stage__back {
  background: rgba(26, 90, 150, 0.08);
  color: #15324f;
}

body.theme-day .day-drawer-board-stage__back:hover {
  background: rgba(26, 90, 150, 0.14);
  color: #0f2740;
}

body.theme-day .day-drawer-board__frame {
  border-color: rgba(26, 90, 150, 0.2);
  background: radial-gradient(
    ellipse 85% 70% at 50% 36%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(236, 245, 255, 0.94) 42%,
    rgba(214, 230, 246, 0.96) 100%
  ) !important;
  /* 九宫锁定白蓝玻璃：用纸面 elevation，不吃夜色强 blur */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    0 0 0 1px rgba(100, 170, 230, 0.18),
    var(--day-elev-fold),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 32px rgba(100, 170, 230, 0.08) !important;
}

body.theme-day .day-drawer-board__frame::before {
  background: linear-gradient(
    135deg,
    rgba(80, 170, 255, 0.14) 0%,
    transparent 40%,
    transparent 60%,
    rgba(26, 90, 150, 0.08) 100%
  );
}

/* 亮格：更通透的白玻璃 */
body.theme-day .day-board-cell[data-board-row="0"][data-board-col="0"]::before,
body.theme-day .day-board-cell[data-board-row="0"][data-board-col="2"]::before,
body.theme-day .day-board-cell[data-board-row="1"][data-board-col="1"]::before,
body.theme-day .day-board-cell[data-board-row="2"][data-board-col="0"]::before,
body.theme-day .day-board-cell[data-board-row="2"][data-board-col="2"]::before,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="0"][data-board-col="0"]::before,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="0"][data-board-col="2"]::before,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="1"][data-board-col="1"]::before,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="2"][data-board-col="0"]::before,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="2"][data-board-col="2"]::before {
  background: linear-gradient(
    122deg,
    rgba(255, 255, 255, 0.55) 0%,
    transparent 36%,
    rgba(120, 180, 230, 0.14) 58%,
    rgba(80, 150, 210, 0.1) 72%,
    transparent 100%
  );
}

body.theme-day .day-board-cell[data-board-row="0"][data-board-col="0"]::after,
body.theme-day .day-board-cell[data-board-row="0"][data-board-col="2"]::after,
body.theme-day .day-board-cell[data-board-row="1"][data-board-col="1"]::after,
body.theme-day .day-board-cell[data-board-row="2"][data-board-col="0"]::after,
body.theme-day .day-board-cell[data-board-row="2"][data-board-col="2"]::after,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="0"][data-board-col="0"]::after,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="0"][data-board-col="2"]::after,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="1"][data-board-col="1"]::after,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="2"][data-board-col="0"]::after,
body.theme-day .day-drawer-board--female .day-board-cell[data-board-row="2"][data-board-col="2"]::after {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 8px rgba(26, 90, 150, 0.06),
    inset 0 0 16px rgba(100, 170, 230, 0.08);
}

/* 暗格：浅蓝灰玻璃（不再用夜色钢蓝） */
body.theme-day .day-board-cell[data-board-row="0"][data-board-col="1"],
body.theme-day .day-board-cell[data-board-row="1"][data-board-col="0"],
body.theme-day .day-board-cell[data-board-row="1"][data-board-col="2"],
body.theme-day .day-board-cell[data-board-row="2"][data-board-col="1"] {
  background: linear-gradient(
    148deg,
    rgba(248, 251, 255, 0.98) 0%,
    rgba(232, 242, 252, 0.95) 42%,
    rgba(214, 228, 244, 0.96) 100%
  ) !important;
  backdrop-filter: blur(var(--board-glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--board-glass-blur)) saturate(1.2);
}

body.theme-day .day-board-cell[data-board-row="0"][data-board-col="1"]::after,
body.theme-day .day-board-cell[data-board-row="1"][data-board-col="0"]::after,
body.theme-day .day-board-cell[data-board-row="1"][data-board-col="2"]::after,
body.theme-day .day-board-cell[data-board-row="2"][data-board-col="1"]::after {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -3px 10px rgba(26, 90, 150, 0.06),
    inset 0 0 0 1px rgba(26, 90, 150, 0.1);
}

/* 中宫 / hero：略饱和的蓝玻璃 */
body.theme-day .day-board-cell--hero,
body.theme-day .day-board-cell--center,
body.theme-day .day-drawer-board--female .day-board-cell--hero,
body.theme-day .day-drawer-board--female .day-board-cell--center {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(210, 232, 252, 0.9) 45%,
    rgba(186, 216, 242, 0.92) 100%
  ) !important;
  box-shadow:
    inset 0 0 28px rgba(80, 160, 220, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.theme-day .day-board-cell--hero::after,
body.theme-day .day-board-cell--center::after,
body.theme-day .day-drawer-board--female .day-board-cell--hero::after,
body.theme-day .day-drawer-board--female .day-board-cell--center::after {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 20px rgba(80, 160, 220, 0.12),
    inset 0 -2px 6px rgba(26, 90, 150, 0.06);
}

/* 字色：深蓝墨，覆盖夜色浅字 / chip */
body.theme-day .day-drawer-board .day-board-cell,
body.theme-day .day-drawer-board .day-board-cell__label,
body.theme-day .day-drawer-board .day-board-cell__label-en,
body.theme-day .day-drawer-board .day-board-cell__palace-label,
body.theme-day .day-drawer-board .day-board-cell__action,
body.theme-day .day-drawer-board .day-board-cell__hero-one-label,
body.theme-day .day-drawer-board .day-board-cell__action--hero-one,
body.theme-day .day-drawer-board .day-board-cell__hero-tap,
body.theme-day .day-drawer-board .day-decision-hero__title,
body.theme-day .day-drawer-board .day-board-tile__text {
  color: #0f2740 !important;
}

body.theme-day .day-drawer-board .day-board-cell__label {
  font-weight: 700;
}

body.theme-day .day-drawer-board .day-board-cell__label-en {
  color: rgba(15, 39, 64, 0.62) !important;
  opacity: 1 !important;
}

body.theme-day .day-drawer-board .day-board-cell__hint,
body.theme-day .day-drawer-board .day-board-cell__empty,
body.theme-day .day-drawer-board .day-board-cell__snippet,
body.theme-day .day-drawer-board .day-board-cell__teaser,
body.theme-day .day-drawer-board .day-decision-hero__item,
body.theme-day .day-drawer-board .day-decision-hero__eyebrow,
body.theme-day .day-drawer-board .day-decision-hero__foot,
body.theme-day .day-drawer-board .day-board-cell__preview {
  color: rgba(15, 39, 64, 0.78) !important;
}

/* 格线玻璃边：白高光 + 淡蓝描边，增强质感 */
body.theme-day .day-board-cell {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    inset 0 0 0 1.5px rgba(26, 90, 150, 0.08);
}

body.theme-day .day-drawer-board .day-board-cell__coord,
body.theme-day .day-drawer-board .day-decision-hero__score,
body.theme-day .day-drawer-board .day-decision-hero__climate,
body.theme-day .day-drawer-board .day-decision-hero__badge {
  color: #15324f !important;
  border-color: rgba(26, 90, 150, 0.28) !important;
  border-top-color: rgba(255, 255, 255, 0.7) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(220, 236, 250, 0.9) 100%
  ) !important;
}

body.theme-day .day-drawer-board .day-board-chip,
body.theme-day .day-drawer-board .day-board-chip--score,
body.theme-day .day-drawer-board .day-board-chip--yi,
body.theme-day .day-drawer-board .day-board-chip--ji,
body.theme-day .day-drawer-board .day-board-chip--accent {
  color: #15324f !important;
  border-color: rgba(26, 90, 150, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.75) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(226, 238, 250, 0.9) 100%
  ) !important;
}

body.theme-day .day-drawer-board .day-board-chip--yi {
  color: #1f6b4a !important;
}

body.theme-day .day-drawer-board .day-board-chip--ji {
  color: #8a4a2a !important;
}

body.theme-day .day-drawer-board .day-decision-hero__assist-tag,
body.theme-day .day-drawer-board .day-decision-hero__link {
  color: #1a6b8a !important;
}

body.theme-day .day-drawer-board .day-decision-hero.panel {
  border-color: rgba(26, 90, 150, 0.2) !important;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(220, 236, 250, 0.85) 100%
  ) !important;
  color: #15324f !important;
}

body.theme-day .day-board-cell--hero .day-board-cell__coord {
  color: #15324f !important;
  border-color: rgba(26, 90, 150, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(210, 230, 248, 0.92) 100%
  ) !important;
}

/* —— 白天 · 九宫格点进去的 overlay（白蓝玻璃，与棋盘同色） ——
 * 注意：终态覆盖在 styles.css 文件末尾（压过夜色 overlay !important）。
 * 此处保留一份，方便对照；改色请两处一起改，或只改末尾那份。 */
body.theme-day .day-drawer-board__overlay {
  border-color: rgba(26, 90, 150, 0.22) !important;
  border-top-color: rgba(100, 170, 230, 0.35) !important;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 28%,
      rgba(180, 220, 255, 0.35) 0%,
      transparent 55%
    ),
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(240, 247, 255, 0.98) 42%,
      rgba(226, 238, 250, 0.99) 100%
    ) !important;
  box-shadow:
    0 24px 56px rgba(26, 60, 94, 0.14),
    0 0 0 1px rgba(100, 170, 230, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -4px 12px rgba(26, 90, 150, 0.04) !important;
  color: #0f2740 !important;
}

body.theme-day .day-drawer-board__overlay-header {
  border-bottom-color: rgba(26, 90, 150, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

body.theme-day .day-drawer-board__overlay-back,
body.theme-day .day-drawer-board__overlay-close {
  border-color: rgba(26, 90, 150, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #0f2740;
}

body.theme-day .day-drawer-board__overlay-title,
body.theme-day .day-drawer-board__overlay-header * {
  color: #0f2740 !important;
}

body.theme-day .day-drawer-board__overlay-footer {
  border-top-color: rgba(26, 90, 150, 0.14);
  background: linear-gradient(180deg, transparent 0%, rgba(200, 224, 245, 0.25) 100%);
}

body.theme-day .day-drawer-board__overlay-next {
  color: rgba(15, 39, 64, 0.72) !important;
}

body.theme-day .day-board-overlay-cta--primary {
  border-color: transparent;
  background: linear-gradient(180deg, #1f4a6e 0%, #1a3c5e 48%, #15324f 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(26, 60, 94, 0.28);
}

body.theme-day .day-board-overlay-cta--ghost {
  border-color: rgba(26, 90, 150, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #0f2740 !important;
}

body.theme-day .day-drawer-board__overlay-body,
body.theme-day .day-drawer-board__overlay-body .day-board-cell__content {
  color: #0f2740 !important;
}

body.theme-day .day-drawer-board__overlay-body .day-decision-hero.panel,
body.theme-day .day-drawer-board__overlay-body .panel--behavior-wrap,
body.theme-day .day-drawer-board__overlay-body .panel--journal,
body.theme-day .day-drawer-board__overlay-body .panel--almanac,
body.theme-day .day-drawer-board__overlay-body .panel--key-path,
body.theme-day .day-drawer-board__overlay-body .panel--contact--compact,
body.theme-day .day-drawer-board__overlay-body .fem-rhythm-panel,
body.theme-day .day-drawer-board__overlay-body .cycle-prep-control,
body.theme-day .day-drawer-board__overlay-body .panel,
body.theme-day .day-drawer-board__overlay-body .season-care-banner {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(26, 90, 150, 0.16) !important;
  box-shadow:
    0 1px 2px rgba(26, 60, 94, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  color: #0f2740 !important;
}

body.theme-day .day-drawer-board__overlay-body .panel__title,
body.theme-day .day-drawer-board__overlay-body .day-decision-hero__title,
body.theme-day .day-drawer-board__overlay-body .almanac__date-main,
body.theme-day .day-drawer-board__overlay-body .behavior__title,
body.theme-day .day-drawer-board__overlay-body .contact__lead,
body.theme-day .day-drawer-board__overlay-body .key-path__title,
body.theme-day .day-drawer-board__overlay-body .season-care-banner__body,
body.theme-day .day-drawer-board__overlay-body h2,
body.theme-day .day-drawer-board__overlay-body h3,
body.theme-day .day-drawer-board__overlay-body strong {
  color: #0f2740 !important;
}

body.theme-day .day-drawer-board__overlay-body .day-decision-hero__item,
body.theme-day .day-drawer-board__overlay-body .panel__hint,
body.theme-day .day-drawer-board__overlay-body .almanac__meta,
body.theme-day .day-drawer-board__overlay-body .almanac__date-sub,
body.theme-day .day-drawer-board__overlay-body .almanac__date-lunar,
body.theme-day .day-drawer-board__overlay-body .almanac__ganzhi,
body.theme-day .day-drawer-board__overlay-body .almanac__wx-health-meta,
body.theme-day .day-drawer-board__overlay-body .almanac__rhythm-meta,
body.theme-day .day-drawer-board__overlay-body .decision-capture__note,
body.theme-day .day-drawer-board__overlay-body .journal-input,
body.theme-day .day-drawer-board__overlay-body p,
body.theme-day .day-drawer-board__overlay-body li,
body.theme-day .day-drawer-board__overlay-body label,
body.theme-day .day-drawer-board__overlay-body .season-care-banner__eyebrow,
body.theme-day .day-drawer-board__overlay-body .season-care-banner__detail,
body.theme-day .day-drawer-board__overlay-body .element-lifestyle__corr,
body.theme-day .day-drawer-board__overlay-body .element-lifestyle__list,
body.theme-day .day-drawer-board__overlay-body span,
body.theme-day .day-drawer-board__overlay-body a {
  color: rgba(15, 39, 64, 0.82) !important;
}

body.theme-day .day-drawer-board__overlay-body .ask-jade-btn--inline {
  color: #1a6b8a !important;
}

body.theme-day .day-drawer-board__overlay-body .btn--primary,
body.theme-day .day-drawer-board__overlay-body .btn.btn--primary {
  color: #fff !important;
}

body.theme-day .day-drawer-board__overlay-body .day-decision-hero__season,
body.theme-day .day-drawer-board__overlay-body .element-lifestyle {
  border-top-color: rgba(26, 90, 150, 0.14);
}

body.theme-day .day-drawer-board__overlay-body .journal-input,
body.theme-day .day-drawer-board__overlay-body textarea,
body.theme-day .day-drawer-board__overlay-body input {
  background: #ffffff !important;
  border-color: rgba(26, 90, 150, 0.18) !important;
  color: #0f2740 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* 生长本：白天保持纸本（已有 growthBook.css）；夜晚回暗色壳 */
body.theme-night.growth-book-body {
  background: #030818 !important;
  background-image: none !important;
  color: var(--text-primary);
}

body.theme-night.growth-book-body::before,
body.theme-night.growth-book-body::after {
  content: none !important;
  display: none !important;
}

body.theme-night .growth-book-shell {
  background: transparent;
}

body.theme-night .growth-book-shell__footer .me-footer__note,
body.theme-night .growth-book-shell__footer .me-footer__privacy a {
  color: rgba(226, 232, 240, 0.62);
}

body.theme-night .growth-book__seed-strip {
  background: rgba(8, 12, 22, 0.72);
  border-color: rgba(186, 160, 255, 0.18);
}

body.theme-night .growth-book__notebook {
  background: rgba(8, 12, 22, 0.78);
  border-color: rgba(186, 160, 255, 0.16);
  color: var(--text-primary);
}

body.theme-night .growth-book__page-head,
body.theme-night .growth-book__editor {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .growth-book__title,
body.theme-night .growth-book__history-title,
body.theme-night .growth-book__text {
  color: var(--text-primary);
}

body.theme-night .growth-book__eyebrow,
body.theme-night .growth-book__status,
body.theme-night .growth-book__empty,
body.theme-night .growth-book__toolbar-hint {
  color: var(--text-secondary);
}

body.theme-night .growth-book__input {
  color: var(--text-primary);
  background: rgba(3, 8, 24, 0.45);
}

body.theme-night .growth-book__input::placeholder {
  color: rgba(245, 245, 247, 0.38);
}

body.theme-night .growth-book__journal {
  background: rgba(3, 8, 24, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-night .growth-book__item {
  background: rgba(12, 16, 28, 0.9);
  border-color: rgba(186, 160, 255, 0.14);
}

body.theme-night .growth-book__block-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

body.theme-night .growth-book--paper .btn--primary {
  background: linear-gradient(180deg, var(--btn-primary-top), var(--btn-primary-bottom));
  border-color: transparent;
}

body.theme-night .growth-seed--paper .growth-seed__title,
body.theme-night .growth-seed--paper .growth-seed__line {
  color: var(--text-primary);
}

body.theme-night .growth-seed--paper .growth-seed__eyebrow,
body.theme-night .growth-seed--paper .growth-seed__line {
  color: var(--text-secondary);
}

body.theme-night .growth-book__seed-host .growth-seed--paper .growth-seed__stage-svg {
  background: rgba(6, 26, 20, 0.55);
  border-color: rgba(61, 255, 154, 0.18);
}

/* —— 白天 · 笔记（流月笔记 / stories）白底深墨 —— */
body.theme-day .flow-notes-bg {
  opacity: 0 !important;
  pointer-events: none !important;
  background: none !important;
}

body.theme-day .flow-notes-bg::before,
body.theme-day .flow-notes-bg::after {
  content: none !important;
  display: none !important;
}

body.theme-day .flow-notes-page .site-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(55, 53, 47, 0.1) !important;
  box-shadow: 0 1px 0 rgba(55, 53, 47, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .flow-notes-page .site-nav__link {
  color: rgba(15, 39, 64, 0.72) !important;
}

body.theme-day .flow-notes-page .site-nav__link.is-active {
  background: rgba(210, 232, 252, 0.85) !important;
  color: #0f2740 !important;
  box-shadow: none !important;
}

body.theme-day .flow-notes-page .site-nav__link:hover:not(.is-active) {
  background: rgba(236, 245, 255, 0.9) !important;
  color: #0f2740 !important;
}

/* 白天 · editorial / Notion 文档感：无卡片壳，纸面列表 */
body.theme-day .flow-notes-hero {
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(55, 53, 47, 0.12) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.theme-day .flow-notes-hero__eyebrow {
  color: rgba(55, 53, 47, 0.5) !important;
}

body.theme-day .flow-notes-hero__title,
body.theme-day .flow-note-card__title {
  color: #37352f !important;
}

body.theme-day .flow-notes-section__title {
  color: rgba(55, 53, 47, 0.48) !important;
}

body.theme-day .flow-notes-hero__lead,
body.theme-day .flow-notes-hero__lead strong,
body.theme-day .flow-notes-section__hint,
body.theme-day .flow-note-card__meta,
body.theme-day .flow-note-card__excerpt,
body.theme-day .flow-notes-empty,
body.theme-day .flow-notes-admin,
body.theme-day .flow-notes-admin summary,
body.theme-day .flow-notes-admin code,
body.theme-day .flow-notes-foot p {
  color: rgba(55, 53, 47, 0.72) !important;
}

body.theme-day .flow-note-card__badge {
  background: none !important;
  color: rgba(55, 53, 47, 0.5) !important;
}

body.theme-day .flow-notes-btn {
  border-color: rgba(55, 53, 47, 0.16) !important;
  color: #37352f !important;
  border-radius: 8px !important;
}

body.theme-day .flow-notes-btn--primary {
  background: #37352f !important;
  border-color: transparent !important;
  color: #f7f6f3 !important;
}

body.theme-day .flow-notes-btn--primary:hover {
  background: #2c2a26 !important;
}

body.theme-day .flow-notes-btn--ghost {
  background: transparent !important;
}

body.theme-day .flow-notes-btn--ghost:hover {
  background: rgba(55, 53, 47, 0.05) !important;
  border-color: rgba(55, 53, 47, 0.22) !important;
}

body.theme-day .flow-notes-cards {
  border-top-color: rgba(55, 53, 47, 0.1) !important;
}

body.theme-day .flow-note-card {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(55, 53, 47, 0.1) !important;
  color: #37352f !important;
  box-shadow: none !important;
}

body.theme-day .flow-note-card:hover {
  background: rgba(55, 53, 47, 0.03) !important;
  border-bottom-color: rgba(55, 53, 47, 0.16) !important;
}

body.theme-day .flow-note-card__arrow {
  display: none !important;
}

body.theme-day .flow-notes-empty,
body.theme-day .flow-notes-admin {
  background: rgba(55, 53, 47, 0.03) !important;
  border-color: rgba(55, 53, 47, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.theme-day .flow-notes-foot {
  border-top-color: rgba(55, 53, 47, 0.1) !important;
}

body.theme-day .stories-page.stories-article {
  color: #37352f;
}

body.theme-day .stories-article__block p,
body.theme-day .stories-article__block li {
  color: rgba(55, 53, 47, 0.88) !important;
}

/* stories 文章页（非 index 壳） */
body.theme-day .stories-body {
  background: var(--day-paper, #f7f6f3) !important;
  color: var(--day-ink, #37352f) !important;
}

body.theme-day .stories-header__eyebrow,
body.theme-day .stories-header__lead,
body.theme-day .stories-header__meta,
body.theme-day .stories-section__note,
body.theme-day .stories-list a span,
body.theme-day .stories-list__xun-alt,
body.theme-day .stories-article__foot,
body.theme-day .blog-card__excerpt {
  color: rgba(15, 39, 64, 0.72) !important;
}

body.theme-day .stories-header h1,
body.theme-day .stories-article h1,
body.theme-day .stories-section h2,
body.theme-day .stories-article__block h2,
body.theme-day .stories-list a,
body.theme-day .stories-list a strong,
body.theme-day .stories-nav a,
body.theme-day .stories-cta__links a,
body.theme-day .stories-list__xun-alt a {
  color: #0f2740 !important;
}

/* —— 白天 · 付费 / 定制 / go-landing：白底 + 深蓝/深紫墨字 —— */
body.theme-day .go-landing,
body.theme-day .join-page,
body.theme-day .custom-page {
  color: #0f2740;
}

body.theme-day .go-landing__eyebrow,
body.theme-day .go-landing__level,
body.theme-day .go-landing__shortlink,
body.theme-day .go-landing__foot {
  color: #3b2460 !important;
}

body.theme-day .go-landing__tone,
body.theme-day .go-landing__title,
body.theme-day .go-landing__tips,
body.theme-day .go-landing__tips li {
  color: #0f2740 !important;
}

body.theme-day .go-landing__shortlink code {
  color: #3b2460 !important;
}

body.theme-day .go-landing__btn {
  border-color: rgba(26, 90, 150, 0.22) !important;
  color: #0f2740 !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.theme-day .go-landing__btn--primary {
  background: linear-gradient(180deg, #1f4a6e 0%, #15324f 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}

body.theme-day .join-hero__lead,
body.theme-day .join-hero__resonant,
body.theme-day .join-section__phase,
body.theme-day .join-section__lead,
body.theme-day .join-section__title,
body.theme-day .join-scope__summary-title,
body.theme-day .join-scope__summary-hint,
body.theme-day .join-audience__label,
body.theme-day .join-audience__list,
body.theme-day .join-audience__list li,
body.theme-day .join-audience__disclaimer,
body.theme-day .join-claim__title,
body.theme-day .join-claim__lead,
body.theme-day .join-claim__fallback,
body.theme-day .join-code-form__label,
body.theme-day .join-tab-panel__lead,
body.theme-day .join-pay__steps,
body.theme-day .join-pay__steps li,
body.theme-day .join-pay-group__title,
body.theme-day .join-pay-group__lead,
body.theme-day .join-checkout__eyebrow,
body.theme-day .join-checkout__title,
body.theme-day .join-checkout__value,
body.theme-day .join-checkout__summary,
body.theme-day .join-checkout__brand,
body.theme-day .join-checkout__fee-note,
body.theme-day .join-checkout__channel-note,
body.theme-day .join-checkout__archive-title,
body.theme-day .join-checkout__archive-list,
body.theme-day .join-checkout__archive-list li,
body.theme-day .join-checkout__archive-scope,
body.theme-day .join-checkout__archive-note,
body.theme-day .join-checkout__perks,
body.theme-day .join-checkout__perks li,
body.theme-day .join-checkout__excludes,
body.theme-day .join-checkout__excludes li,
body.theme-day .join-checkout__includes > summary,
body.theme-day .join-merchant-qr__cap,
body.theme-day .join-merchant-qr__placeholder,
body.theme-day .join-wechat__cap,
body.theme-day .join-wechat__offers,
body.theme-day .join-wechat__offers li,
body.theme-day .join-wechat__id,
body.theme-day .join-wechat__note,
body.theme-day .join-wechat__boundary,
body.theme-day .join-wechat__more {
  color: #0f2740 !important;
}

body.theme-day .join-audience__label,
body.theme-day .join-checkout__eyebrow,
body.theme-day .join-hero__resonant,
body.theme-day .join-wechat__more {
  color: #4c2f6e !important;
  opacity: 1 !important;
}

body.theme-day .join-scope__summary-hint,
body.theme-day .join-checkout__price-alt,
body.theme-day .join-checkout__price-period,
body.theme-day .join-hero__price span,
body.theme-day .custom-panel__price span {
  opacity: 1 !important;
  color: #15324f !important;
}

body.theme-day .join-hero__price,
body.theme-day .join-checkout__price-main,
body.theme-day .join-checkout__price-main--secondary,
body.theme-day .join-checkout__price-period,
body.theme-day .join-checkout__price-alt {
  color: #3b2460 !important;
}

body.theme-day .join-audience__list--not,
body.theme-day .join-audience__disclaimer,
body.theme-day .join-checkout__excludes,
body.theme-day .join-checkout__channel-note,
body.theme-day .join-checkout__fee-note,
body.theme-day .join-checkout__archive-note,
body.theme-day .join-claim__fallback,
body.theme-day .join-wechat__note {
  color: #15324f !important;
}

body.theme-day .join-section,
body.theme-day .join-section--scope,
body.theme-day .join-claim,
body.theme-day .join-checkout__includes {
  border-color: rgba(26, 90, 150, 0.16) !important;
}

body.theme-day .join-checkout,
body.theme-day .join-pay-group,
body.theme-day .join-merchant-qr,
body.theme-day .custom-panel,
body.theme-day .custom-inline-contact {
  background: #ffffff !important;
  border-color: rgba(26, 90, 150, 0.18) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px rgba(15, 23, 42, 0.05);
  color: #0f2740 !important;
}

body.theme-day .join-checkout__brand,
body.theme-day .join-checkout__archive {
  background: #f0f6fc !important;
  border-color: rgba(26, 90, 150, 0.16) !important;
  color: #0f2740 !important;
}

body.theme-day .join-checkout__not-included,
body.theme-day .join-wechat__boundary {
  background: #f7f1ea !important;
  border-color: rgba(180, 110, 70, 0.28) !important;
  color: #8a5a2b !important;
}

body.theme-day .join-pay-tabs__btn {
  background: #ffffff !important;
  border-color: rgba(76, 47, 110, 0.22) !important;
  color: #3b2460 !important;
}

body.theme-day .join-pay-tabs__btn.is-active {
  background: linear-gradient(160deg, #eef5fc 0%, #f4f0fa 100%) !important;
  border-color: rgba(26, 90, 150, 0.35) !important;
  color: #0f2740 !important;
}

body.theme-day .join-code-form__input,
body.theme-day .join-claim select,
body.theme-day .join-claim textarea,
body.theme-day .join-claim input:not([type='checkbox']):not([type='radio']):not([type='hidden']) {
  background: #ffffff !important;
  border-color: rgba(26, 90, 150, 0.28) !important;
  color: #0f2740 !important;
}

body.theme-day .join-code-form__input:focus {
  outline-color: rgba(26, 90, 150, 0.45) !important;
}

body.theme-day .join-code-form__status--ok {
  color: #1f6b4a !important;
}

body.theme-day .join-code-form__status--warn {
  color: #8a5a12 !important;
}

body.theme-day .join-code-form__status--err,
body.theme-day .join-error__text {
  color: #8b3a3a !important;
}

body.theme-day a.contact-mail,
body.theme-day a.contact-mail strong {
  color: #1a3c5e !important;
}

body.theme-day a.contact-mail:hover,
body.theme-day a.contact-mail:focus-visible {
  color: #0f2740 !important;
}

body.theme-day .custom-panel__title,
body.theme-day .custom-panel__text,
body.theme-day .custom-panel__list,
body.theme-day .custom-panel__list li,
body.theme-day .custom-panel__steps,
body.theme-day .custom-panel__steps li,
body.theme-day .custom-inline-contact__line {
  color: #0f2740 !important;
}

body.theme-day .custom-panel__sub,
body.theme-day .custom-fit__label,
body.theme-day .custom-panel__price {
  color: #4c2f6e !important;
}

body.theme-day .custom-panel__text--muted {
  color: rgba(15, 39, 64, 0.72) !important;
}

body.theme-day .custom-panel__list--not,
body.theme-day .custom-fit__col--not .custom-fit__label {
  color: #8a4a2a !important;
}

/* 核心页：原淡紫强调 → 深紫可读 */
body.theme-day .me-dashboard__fold-summary--longterm {
  color: #4c2f6e !important;
}

body.theme-day .me-quadrant__zone-label {
  color: #15324f !important;
}

body.theme-day .me-dash-bar__phase--qiu {
  color: #4c2f6e !important;
  background: rgba(76, 47, 110, 0.1);
}

/* —— 白天材质策略（全站）：壳层纸面 elevation · 输入面不透明 · 弹层轻阴影 —— */
body.theme-day .journal-input,
body.theme-day .decision-input,
body.theme-day textarea.journal-input,
body.theme-day input.journal-input,
body.theme-day .decision-capture__select,
body.theme-day .profile-setup input,
body.theme-day .profile-setup select,
body.theme-day .profile-setup textarea,
body.theme-day .join-claim input,
body.theme-day .join-claim textarea,
body.theme-day .body-dashboard input,
body.theme-day .body-dashboard select,
body.theme-day .body-dashboard textarea {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

body.theme-day .unlock-modal__inner,
body.theme-day .profile-setup__inner,
body.theme-day .liuyue-fold__dialog {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: var(--day-line) !important;
  box-shadow: var(--day-elev-fold) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--day-ink);
}

body.theme-day .me-quadrant-trend,
body.theme-day .me-dashboard .panel,
body.theme-day .body-panel,
body.theme-day .stories-article,
body.theme-day .flow-notes-hero,
body.theme-day .join-card,
body.theme-day .custom-panel,
body.theme-day .growth-book--paper .growth-seed--paper {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-day .me-quadrant-trend {
  background: var(--day-card) !important;
  border-color: var(--day-line) !important;
  box-shadow: var(--day-elev-1) !important;
  color: var(--day-ink);
}

body.theme-day .me-quadrant-trend__title {
  color: var(--day-ink-mute) !important;
}

body.theme-day .site-locale-bar,
body.theme-day .flow-notes-page .site-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--day-elev-1);
}

@media (max-width: 720px) {
  .site-theme-bar {
    top: auto;
    bottom: max(env(safe-area-inset-bottom, 0px), 4.5rem);
    right: max(env(safe-area-inset-right, 0px), 0.65rem);
  }
}
