body {
  background: #f4eddf !important;
  color: #2d261f !important;
}

.result-container { color: #2d261f !important; }

.section-drawer,
.hp-drawer {
  background: rgba(251,246,235,.98) !important;
  color: #2d261f !important;
  border-color: rgba(72,52,31,.12) !important;
}

.section-drawer .drawer-body,
.hp-drawer .hp-drawer-body,
.hp-drawer .drawer-body {
  background: #fbf6eb !important;
  color: #2d261f !important;
}

.section-drawer .drawer-body :is(p, li),
.hp-drawer .drawer-body :is(p, li),
.hp-drawer :is(.hp-bazi-card, .hp-cross-item, .hp-dgs-card, .hp-do-item, .hp-dont-item, .hp-mode-card, .hp-wuxing-card, .hp-xiyong-card, .hp-yearly-card) {
  background: #fbf6eb !important;
  color: #2d261f !important;
  border-color: rgba(72,52,31,.12) !important;
}

.section-drawer .drawer-body :is(.text-dim, .text-muted),
.hp-drawer :is(.hp-dgs-summary, .hp-score-subtitle) {
  color: #655b51 !important;
}

.hp-drawer .hp-pillar-gan,
.hp-drawer .hp-pillar-zhi,
.hp-drawer .hp-xiyong-name,
.hp-drawer .hp-wuxing-name,
.hp-drawer .hp-dgs-name,
.hp-drawer .hp-dgs-gan b,
.hp-drawer .hp-dgs-strength,
.hp-drawer .hp-cross-type,
.hp-drawer .hp-cross-pillars,
.hp-drawer .hp-mode-title,
.hp-drawer .hp-yearly-label {
  color: #2d261f !important;
}

.hp-drawer .hp-pillar-label,
.hp-drawer .hp-xiyong-row,
.hp-drawer .hp-xiyong-complement,
.hp-drawer .hp-wx-count,
.hp-drawer .hp-wuxing-desc,
.hp-drawer .hp-wuxing-score,
.hp-drawer .hp-dgs-gan,
.hp-drawer .hp-dgs-wx,
.hp-drawer .hp-dgs-detail,
.hp-drawer .hp-cross-detail,
.hp-drawer .hp-mode-detail,
.hp-drawer .hp-yearly-advice {
  color: #655b51 !important;
}

.result-header,
.section-dayun,
.section-liunian,
.section-sizhu,
.result-section,
.analysis-section,
.pro-section {
  background: rgba(251,246,235,.94) !important;
  border-color: var(--bd) !important;
  box-shadow: 0 12px 34px rgba(67,46,24,.055) !important;
}

.section-dayun .section-header,
.section-liunian .section-header,
.section-sizhu .section-header {
  border-bottom-color: rgba(72,52,31,.12) !important;
  box-shadow: inset 2px 0 var(--zh-aged-gold);
}

.dayun-col,
.liunian-col,
.pp-col {
  color: #2d261f !important;
  background: #fbf6eb !important;
  border-color: rgba(72,52,31,.12) !important;
}

.dayun-col .dayun-gz,
.liunian-col .liunian-gz,
.pp-col .tian-gan,
.pp-col .di-zhi {
  color: #2d261f !important;
}

.dayun-age,
.dayun-year,
.liunian-year,
.liunian-year-label,
.dayun-ss,
.liunian-ss,
.qiyun-info,
.section-subtitle,
.pp-ss-text,
.cang-ss-text {
  color: #655b51 !important;
}

.dayun-col.past,
.liunian-col.past-year {
  opacity: 1 !important;
  color: #655b51 !important;
  background: #f1eadf !important;
}

.dayun-col.current,
.dayun-col.active,
.liunian-col.current-year,
.liunian-col.active-ln,
.pp-dayun-col.active-dayun,
.pp-liunian-col.active-liunian {
  color: #84362f !important;
  background: #efe0d6 !important;
  border-color: rgba(132,54,47,.24) !important;
}

.dayun-col.current .dayun-gz,
.dayun-col.active .dayun-gz,
.liunian-col.current-year .liunian-gz,
.liunian-col.active-ln .liunian-gz {
  color: #84362f !important;
}

.dayun-col.current .dayun-ss,
.dayun-col.active .dayun-ss,
.liunian-col.current-year .liunian-ss,
.liunian-col.active-ln .liunian-ss,
.pp-dayun-col.active-dayun .pp-ss-text,
.pp-liunian-col.active-liunian .pp-ss-text,
.pp-dayun-col.active-dayun .tian-gan,
.pp-dayun-col.active-dayun .di-zhi,
.pp-liunian-col.active-liunian .tian-gan,
.pp-liunian-col.active-liunian .di-zhi {
  color: #84362f !important;
}

body:has(#zwGrid) .card,
body:has(#zwGrid) .palace,
body:has(#zwGrid) .center-cell,
body:has(#zwGrid) .triad-card,
body:has(#lrOutput) .card,
body:has(#lrOutput) .sp-cell,
body:has(#lrOutput) .sp-center-cell {
  background: rgba(251,246,235,.94) !important;
}

body:has(#zwGrid) #zwGrid .stars .s {
  color: #3d4d43 !important;
}

body:has(#zwGrid) #zwGrid .stars .s[style*="color:#e8d5a3"] { color: #5f4926 !important; }
body:has(#zwGrid) #zwGrid .stars .s[style*="color:#e07050"] { color: #84362f !important; }
body:has(#zwGrid) #zwGrid .stars .s[style*="color:#e8a040"] { color: #765423 !important; }
body:has(#zwGrid) #zwGrid .stars .s[style*="color:#5b9fd4"] { color: #315b78 !important; }
body:has(#zwGrid) #zwGrid .stars .s[style*="color:#6db86d"] { color: #3d6540 !important; }
body:has(#zwGrid) #zwGrid .stars .s .b,
body:has(#zwGrid) #zwGrid .stars [style*="color:#888"],
body:has(#zwGrid) #zwGrid .stars [style*="color:#9098a0"],
body:has(#zwGrid) #zwGrid .stars [style*="color:#6a6570"],
body:has(#zwGrid) #zwGrid .stars [style*="color:#555"] {
  color: #655b51 !important;
}

body:has(#zwGrid) #zwGrid .stars [style*="color:#4CAF50"] { color: #3d6540 !important; }
body:has(#zwGrid) #zwGrid .stars [style*="color:#FF9800"] { color: #765423 !important; }
body:has(#zwGrid) #zwGrid .stars [style*="color:#2196F3"] { color: #315b78 !important; }
body:has(#zwGrid) #zwGrid .stars [style*="color:#F44336"] { color: #84362f !important; }

body:has(#zwGrid) #zwGrid .mid,
body:has(#zwGrid) #zwGrid .bot-l,
body:has(#zwGrid) #zwGrid .bot-r .zs,
body:has(#zwGrid) #zwGrid .center-cell .c-info {
  color: #655b51 !important;
}

body:has(#zwGrid) #zwGrid .mid .row1,
body:has(#zwGrid) #zwGrid .mid .row2,
body:has(#zwGrid) #zwGrid .mid .ln-label,
body:has(#zwGrid) #zwGrid .mid .xx-label,
body:has(#zwGrid) #zwGrid .mid .daxian {
  color: #655b51 !important;
}

body:has(#zwGrid) #zwGrid .bot-r .gz,
body:has(#zwGrid) #zwGrid .pname,
body:has(#zwGrid) #zwGrid .center-cell .c-title,
body:has(#zwGrid) #zwGrid .center-cell [style*="color:var(--gold-l)"] {
  color: #84362f !important;
}

body:has(#lrOutput) #lrOutput .sp-cell .sp-zhi,
body:has(#lrOutput) #lrOutput .sp-center-cell .cp-yj {
  color: #84362f !important;
}

body:has(#lrOutput) #lrOutput .sp-cell .sp-tian {
  color: #3d4d43 !important;
}

body:has(#lrOutput) #lrOutput .sp-cell .sp-god,
body:has(#lrOutput) #lrOutput .sp-cell .sp-dun,
body:has(#lrOutput) #lrOutput .sp-center-cell .cp-label,
body:has(#lrOutput) #lrOutput [style*="color:var(--tx2)"],
body:has(#lrOutput) #lrOutput [style*="color:var(--tx3)"] {
  color: #655b51 !important;
}

body:has(#lrOutput) #lrOutput [style*="background:rgba(28,26,22"],
body:has(#lrOutput) #lrOutput [style*="background:rgba(13,21,37"] {
  background: #fbf6eb !important;
}

body:has(#lrOutput) #lrOutput [style*="color:var(--gold)"],
body:has(#lrOutput) #lrOutput [style*="color:var(--gold-l)"] {
  color: #84362f !important;
}

body:has(#lrOutput) #lrOutput [style*="color:#d4b860"] {
  color: #3d4d43 !important;
}

.dayun-scroll-wrapper,
.liunian-scroll-wrapper,
.dayun-scroll,
.liunian-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .dayun-scroll-wrapper,
  .liunian-scroll-wrapper { overscroll-behavior-inline: contain; }
}

.ai-float-btn,
#aiFloatBtn {
  background: linear-gradient(145deg, #963f38, #6d2925) !important;
  color: #fff8ea !important;
}
