/* 方案三 · 青绿山水：手机与电脑共用的配色层。在原有主题之后加载。
   保留按组件精确覆盖：旧页面含 ID 选择器与 !important 颜色。只换颜色、圆角与触控尺寸，
   不改可见性、定位、图片或盘面数据；布局分别在 shanshui-app.css（手机）与
   shanshui-desktop.css（电脑）中处理。 */

html body.shanshui-mobile {
  --ss-paper: #fffdf8;
  --ss-canvas: #f4f1ea;
  --ss-line: #e6e1d5;
  --ss-ink: #1a2421;
  --ss-muted: #4a5652;
  --ss-hint: #646e6a;
  --ss-primary: #1f5c57;
  --ss-pressed: #174843;
  --ss-wash: #e3eeea;
  --ss-outline: #c5dad3;
  --ss-night: #10201e;
  --ss-night-raised: #173b37;
  --ss-moon: #f1ede3;
  --ss-gold: #b38b3e;
  --ss-gold-text: #7a5a1c;
  --ss-gold-light: #d8b66a;
  --canvas: var(--ss-canvas) !important;
  --canvas-soft: var(--ss-canvas) !important;
  --bg: var(--ss-canvas) !important;
  --bg0: var(--ss-canvas) !important;
  --bg1: var(--ss-paper) !important;
  --bg2: var(--ss-wash) !important;
  --paper: var(--ss-paper) !important;
  --paper-solid: var(--ss-paper) !important;
  --paper-strong: var(--ss-paper) !important;
  --paper-subtle: var(--ss-canvas) !important;
  --paper-muted: var(--ss-wash) !important;
  --card: var(--ss-paper) !important;
  --card-deep: var(--ss-wash) !important;
  --ink: var(--ss-ink) !important;
  --ink-soft: var(--ss-muted) !important;
  --dim: var(--ss-hint) !important;
  --faint: var(--ss-hint) !important;
  --orchid: var(--ss-primary) !important;
  --orchid-deep: var(--ss-pressed) !important;
  --orchid-wash: var(--ss-wash) !important;
  /* Legacy --gold names denote the primary UI accent, not reward gold. */
  --gold: var(--ss-primary) !important;
  --gold-bright: var(--ss-primary) !important;
  --gold-deep: var(--ss-pressed) !important;
  --gold-fill: var(--ss-primary) !important;
  --gold-wash: var(--ss-wash) !important;
  --line: var(--ss-line) !important;
  --line-strong: var(--ss-outline) !important;
  --surface-panel: var(--ss-paper) !important;
  --surface-control: var(--ss-canvas) !important;
  --surface-muted: var(--ss-canvas) !important;
  --surface-raised: var(--ss-wash) !important;
  --surface-gold: #f6efdf !important;
  --surface-jade: var(--ss-wash) !important;
  --surface-card-gradient: var(--ss-paper) !important;
  --page-background: var(--ss-canvas) !important;
  --primary-start: var(--ss-primary) !important;
  --primary-end: var(--ss-primary) !important;
  --primary-text: var(--ss-paper) !important;
  --action-start: var(--ss-primary) !important;
  --action-end: var(--ss-primary) !important;
  --action-text: var(--ss-paper) !important;
  --shadow: none !important;
  --shadow-card: none !important;
  --shadow-float: none !important;
  --tool-shadow: none !important;
  --tool-lilac: var(--ss-wash) !important;
  --tool-wash: var(--ss-wash) !important;
  --tool-line: var(--ss-line) !important;
  --tool-rose-wash: #f4e8e3 !important;
  --mystic-tool-surface: var(--ss-paper) !important;
  --mystic-tool-inset: var(--ss-canvas) !important;
  --mystic-tool-line: var(--ss-line) !important;
  --mystic-tool-muted: var(--ss-hint) !important;
  --ai-answer-body: var(--ss-muted) !important;
  --ai-answer-heading: var(--ss-ink) !important;
  --backdrop: #10201e66 !important;
  --mine-canvas: var(--ss-canvas) !important;
  --mine-paper: var(--ss-paper) !important;
  --mine-paper-solid: var(--ss-paper) !important;
  --mine-ink: var(--ss-ink) !important;
  --mine-muted: var(--ss-hint) !important;
  --mine-line: var(--ss-line) !important;
  --mine-line-strong: var(--ss-outline) !important;
  --mine-purple: var(--ss-primary) !important;
  --mine-purple-deep: var(--ss-pressed) !important;
  --mine-lavender: var(--ss-wash) !important;
  --mine-mint: var(--ss-wash) !important;
  --mine-jade: var(--ss-primary) !important;
  --mine-gold: #f6efdf !important;
  --ma-surface: var(--ss-paper) !important;
  --ma-soft: var(--ss-canvas) !important;
  --ma-panel: var(--ss-paper) !important;
  --ma-raised: var(--ss-wash) !important;
  --ma-control: var(--ss-canvas) !important;
  --ma-faint: var(--ss-hint) !important;
  --ma-gold: var(--ss-primary) !important;
  --ma-muted: var(--ss-hint) !important;
  --ma-ink: var(--ss-ink) !important;
  --ma-ink-soft: var(--ss-muted) !important;
  --ma-line: var(--ss-line) !important;
  --ma-line-strong: var(--ss-outline) !important;
  --ma-shadow: none !important;
  --ma-hover: var(--ss-wash) !important;
  --ma-head: var(--ss-paper) !important;
  color: var(--ss-ink) !important;
  background: var(--ss-canvas) !important;
  font-size: 14px;
  color-scheme: light;
}
html body.shanshui-mobile ::selection { color: var(--ss-ink); background: var(--ss-outline); }

/* Keep original calligraphy, crystal, halo, star points and illustration art. */
html body.shanshui-mobile :is(.site-header, .mobile-tab-bar, .home-mobile-tabs, .mobile-bazi-sticky) {
  color: var(--ss-ink) !important;
  background: var(--ss-paper) !important;
  border-color: var(--ss-line) !important;
  box-shadow: none !important;
}
html body.shanshui-mobile :is(.site-nav-panel, .personal-center-menu, .mobile-explore-sheet, .home-search-panel) {
  color: var(--ss-ink) !important;
  background: var(--ss-paper) !important;
  border-color: var(--ss-line) !important;
  box-shadow: none !important;
}
html body.shanshui-mobile :is(.mobile-tab, .home-mobile-tabs a, .site-nav-link) { color: var(--ss-hint) !important; }
html body.shanshui-mobile :is(.mobile-tab, .home-mobile-tabs a, .site-nav-link):is([aria-current='page'], [aria-expanded='true']) { color: var(--ss-primary) !important; }
html body.shanshui-mobile .mobile-tab:is([aria-current='page'], [aria-expanded='true']) .mobile-tab-icon {
  color: var(--ss-primary) !important; background: var(--ss-wash) !important;
  border-color: var(--ss-outline) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.personal-center-toggle, .home-header-search, .home-mobile-search, .site-contact-entry, .site-nav-toggle, .mobile-explore-close) {
  color: var(--ss-primary) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.mobile-task-strip a, .home-search-footer, .home-search-result:hover) {
  color: var(--ss-primary) !important; background: var(--ss-wash) !important; border-color: var(--ss-outline) !important;
}

/* Opaque paper cards and restrained surfaces. No layout/hidden overrides. */
html body.shanshui-mobile :is(
  .paper-card, .hehun-panel, .glass, .astro-card, .astro-sign-card,
  .mine-account, .mine-card, .mine-menu-row, .mine-current-profile,
  .profile-create-card, .profile-switch-group, .account-settings-identity,
  .account-settings-group, .records-controls, .record-card, .records-empty,
  .payment-product, .checkin-card, .checkin-overview, .checkin-milestone,
  .game-panel, .saved-card, .share-state-card, .shared-report,
  .member-entry-grid, .home-daily-details, .home-refresh-checkin .home-play-link,
  .mobile-bazi-review, .vision-entry-card, .vision-submit-actions,
  .app-dialog-surface, .account-dialog-surface, .account-settings-dialog-surface,
  .history-drawer, .consent-surface, .profile-detail-surface, .daily-share-surface,
  .payment-dialog-card, .payment-confirm-dialog, .payment-confirm-surface,
  .astro-consent, .mystic-login-content
) {
  color: var(--ss-ink) !important;
  background: var(--ss-paper) !important;
  border-color: var(--ss-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
html body.shanshui-mobile :is(.hero, .hehun-hero, .orchid-input-intro, .ziwei-entry-head, .astro-hero) {
  color: var(--ss-ink) !important; background: transparent !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(
  .birth-confirm-card, .vision-review-summary, .capture-guide, .consent-box,
  .dream-extra-details, .dream-extra-body, .profile-card, .profile-primary-card,
  .position-card, .relation-card, .result-summary, .chart-person, .highlight-item,
  .location-block, .submit-area, .reality-check li, .gua-summary,
  .reading-plan, .reading-followup, .ai-reading-text, .followup-panel,
  .orchid-reading-index, .yaogua-followup-form, .quiz-workspace,
  .coin-workspace, .challenge-workspace, .account-mode-hint, .account-policy-note,
  .account-page-policy, .profile-detail-lead, .payment-confirm-summary,
  .account-profile-row, .account-quota-card, .account-invite-card,
  .account-profiles-card, .payment-status, .mine-gate
) {
  color: var(--ss-ink) !important; background: var(--ss-canvas) !important;
  border-color: var(--ss-line) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.mine-account-head, .profile-detail-head, .account-settings-identity) {
  background: var(--ss-paper) !important; border-color: var(--ss-line) !important;
}
html body.shanshui-mobile :is(.panel-heading, .card-heading, .section-heading, .birth-advanced-settings, .astro-location-details, .astro-reading-body) { border-color: var(--ss-line) !important; }
html body.shanshui-mobile :is(.hero h1, .hehun-hero h1, .orchid-input-intro h2, .ziwei-entry-head h1, .home-hero h1, .mobile-bazi-intro h2, .mobile-bazi-review h3, .mobile-bazi-nav, .app-dialog-head h3, .member-entry-copy strong, .home-tools-heading h2) {
  color: var(--ss-ink) !important; text-shadow: none !important;
}
html body.shanshui-mobile :is(.hero-copy, .home-hero-copy > p:not(.home-hero-kicker), .mobile-bazi-intro p, .astro-lead, .account-login-lead, .reading, .markdown, .result-text, .ai-reading-text, .reading-followup-message-body, .followup-message-body, .yaogua-followup-message-body, .astro-reading-body) {
  color: var(--ss-muted) !important; font-size: 14px; line-height: 1.8;
}
html body.shanshui-mobile :is(.reading, .markdown, .result-text, .ai-reading-text, .astro-reading-body) :is(h2, h3, h4, strong) { color: var(--ss-ink) !important; border-color: var(--ss-line) !important; }
html body.shanshui-mobile :is(.reading, .markdown, .result-text, .ai-reading-text) blockquote { background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; color: var(--ss-muted) !important; }
html body.shanshui-mobile :is(.eyebrow, .step, .card-kicker, .panel-title, .home-hero-kicker, .mobile-bazi-nav a, .picker-trigger-arrow, .account-input-icon, .account-password-toggle, .account-text-btn, .account-policy-link, .account-page-policy summary b) { color: var(--ss-primary) !important; }
html body.shanshui-mobile :is(.helper, .hint, .birthplace-hint, .home-tools-heading p, .mobile-bazi-status, .astro-hint, .astro-optional, .astro-field small, .astro-input-note, .astro-method p, .astro-source, .astro-birth-summary, .mystic-login-signature, .account-hint, .dialog-lead, .login-page-footer, .account-page-policy p, .account-page-policy summary > span:last-child) {
  color: var(--ss-hint) !important; font-size: 12px !important; line-height: 1.7;
}

/* Native-sized input text prevents iOS focus zoom. Preserve checkbox geometry. */
html body.shanshui-mobile :is(input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']):not([type='file']), select, textarea, .picker-trigger) {
  color: var(--ss-ink) !important; background: var(--ss-canvas) !important;
  border-color: var(--ss-outline) !important; border-radius: 8px !important;
  box-shadow: none !important; font-size: 16px !important; min-height: 44px;
  caret-color: var(--ss-primary); accent-color: var(--ss-primary);
}
html body.shanshui-mobile :is(input, textarea)::placeholder { color: var(--ss-hint) !important; opacity: 1; }
html body.shanshui-mobile :is(input, select, textarea) { accent-color: var(--ss-primary); }
html body.shanshui-mobile :is(.account-field > span, .account-field > label, .birth-input-label, .mobile-bazi-field-label, .astro-field, .question-field > label) { color: var(--ss-muted) !important; font-size: 14px !important; }
html body.shanshui-mobile :is(.home-search-field, .records-search, .profile-search, .dialog-search, .followup-composer) {
  color: var(--ss-ink) !important; background: var(--ss-canvas) !important; border-color: var(--ss-outline) !important; box-shadow: none !important;
}
/* Composite search fields have one surface and one focus outline on the wrapper.
   Match the generic input rule's specificity so it cannot paint a second surface. */
html body.shanshui-mobile :is(.home-search-field, .records-search, .profile-search, .dialog-search) input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']):not([type='file']) { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body.shanshui-mobile :is(.seg, .segment, .mode-tabs, .seg-options, .picker-tabs, .time-mode-seg, .calendar-picker-tabs, .location-path, .account-auth-tabs, .account-channel-tabs, .account-login-methods) {
  color: var(--ss-muted) !important; background: var(--ss-wash) !important;
  border-color: var(--ss-outline) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.seg button, .segment button, .mode-tabs button, .picker-tab, .calendar-picker-tab, .location-step, .account-auth-tabs > button, .account-channel-tabs > button, .account-login-methods > button, .record-type-filters button) {
  color: var(--ss-muted) !important; border-radius: 8px !important; min-height: 44px;
  background: transparent !important; box-shadow: none !important; font-size: 14px;
}
html body.shanshui-mobile :is(
  .seg button.active, .segment button.active, .mode-tabs button.active,
  .time-mode-seg button.active, .picker-tab.active, .calendar-picker-tab.active,
  .location-step.active, .account-auth-tabs > button.active,
  .account-channel-tabs > button.active, .account-login-methods > button.active, .calendar-picker-option.selected,
  .calendar-picker-option.is-selected, .time-option.is-selected, .location-option.is-selected,
  .record-type-filters button[aria-pressed='true'], .game-tabs button[aria-selected='true']
) {
  color: var(--ss-paper) !important; background: var(--ss-primary) !important;
  border-color: var(--ss-primary) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.game-tabs button[aria-selected='true'], .calendar-picker-option.selected, .calendar-picker-option.is-selected, .time-option.is-selected, .location-option.is-selected) :is(span, b, small) { color: inherit !important; }
html body.shanshui-mobile :is(.emotion-grid label > span, .focus-options label > span, .kind-options label > span, .focus-options button, .relationship-modes span, .quiz-option) {
  color: var(--ss-muted) !important; background: var(--ss-paper) !important;
  border-color: var(--ss-line) !important; border-radius: 8px; min-height: 44px;
}
html body.shanshui-mobile :is(.focus-options button.active, .focus-options input:checked + span, .emotion-grid input:checked + span, .seg-options input:checked + span, .kind-options input:checked + span, .relationship-modes input:checked + span, .quiz-option:has(input:checked)) {
  color: var(--ss-primary) !important; background: var(--ss-wash) !important;
  border-color: var(--ss-primary) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.calendar-picker-option, .time-option, .location-option, .orchid-stepper button, .astro-location-details summary, .astro-method summary, .orchid-reading-index summary, .astro-city-results button) { min-height: 44px; }
html body.shanshui-mobile .orchid-stepper button[aria-current='step'] { color: var(--ss-primary) !important; background: var(--ss-wash) !important; }
html body.shanshui-mobile .orchid-stepper button[aria-current='step'] b { color: var(--ss-paper) !important; background: var(--ss-primary) !important; border-color: var(--ss-primary) !important; }
html body.shanshui-mobile .orchid-stepper button { font-size: 12px !important; }

html body.shanshui-mobile :is(
  .primary-btn, .primary-button, .btn-primary, .primary-action, .submit-btn,
  .ai-generate-button, .reading-followup-send, .dialog-primary-btn, .birth-flow-next,
  .wardrobe-primary, .daily-share-primary, .home-primary, .astro-primary,
  .mine-primary-link, .mine-gate button, .profile-detail-primary,
  .profile-card-actions .profile-switch, .account-settings-primary,
  .payment-confirm-submit, .checkin-primary, .account-recharge-link,
  .share-button.primary, #btnPaipan,
  .mine-recharge .payment-product.is-recommended .payment-product-actions button:first-child
) {
  color: var(--ss-paper) !important; background: var(--ss-primary) !important;
  border-color: var(--ss-primary) !important; border-radius: 8px !important;
  min-height: 44px; box-shadow: none !important; text-shadow: none !important;
  font-size: 14px;
}
html body.shanshui-mobile :is(.primary-btn, .primary-button, .btn-primary, .primary-action, .submit-btn, .dialog-primary-btn, .birth-flow-next, .home-primary, .astro-primary, .mine-primary-link, .account-settings-primary, .payment-confirm-submit, .checkin-primary, #btnPaipan):is(:hover, :active):not(:disabled) {
  background: var(--ss-pressed) !important; border-color: var(--ss-pressed) !important;
  box-shadow: none !important; filter: none;
}
html body.shanshui-mobile :is(.primary-btn, .primary-button, .primary-action, .dialog-primary-btn, .astro-primary, .payment-confirm-submit, #btnPaipan):disabled {
  color: #fffdf8 !important; background: #718b81 !important; border-color: #718b81 !important;
}
html body.shanshui-mobile :is(
  .secondary-btn, .secondary-button, .ghost-btn, .ai-secondary-button,
  .astro-quiet, .orchid-reading-index button, .reading-followup-suggestions button,
  .daily-share-secondary, .daily-share-close, .orchid-heading-link,
  .account-settings-back, .account-page-home, .mine-account-actions a,
  .mine-account-actions button, .mine-heading-actions > a, .profile-primary-open,
  .payment-order-query, .profile-detail-back, .profile-detail-actions button,
  .account-logout, .record-primary, .records-empty > a, .records-empty button,
  .records-retry, .payment-product-actions button, .recharge-notice-action
) {
  color: var(--ss-primary) !important; background: var(--ss-wash) !important;
  border-color: var(--ss-outline) !important; border-radius: 8px !important;
  min-height: 44px; box-shadow: none !important;
}
html body.shanshui-mobile :is(.text-button, .home-text-action, .mobile-bazi-status.is-ready) { color: var(--ss-primary) !important; }

/* Mobile birth entry keeps the existing single editable form and read-only recap. */
html body.shanshui-mobile.mobile-bazi-ready #inputPanel {
  background: transparent !important; border-radius: 0 !important; box-shadow: none !important;
}
html body.shanshui-mobile #baziForm.birth-input-simple > [data-birth-step='3'] {
  background: var(--ss-paper) !important; border-color: var(--ss-line) !important;
  border-radius: 16px !important; box-shadow: none !important;
}
html body.shanshui-mobile #baziForm :is(#genderSeg, #calSeg, #timeModeSeg) { background: transparent !important; }
html body.shanshui-mobile #baziForm :is(#genderSeg, #calSeg, #timeModeSeg) button:not(.active) { color: var(--ss-primary) !important; background: var(--ss-wash) !important; }
html body.shanshui-mobile #baziForm .mobile-bazi-review .birth-confirm-card { background: transparent !important; }
html body.shanshui-mobile #baziForm .mobile-bazi-review .birth-confirm-card span { color: var(--ss-hint) !important; }
html body.shanshui-mobile #baziForm .mobile-bazi-review .birth-confirm-card b { color: var(--ss-ink) !important; }
html body.shanshui-mobile #baziForm .mobile-bazi-review .birth-confirm-card .is-missing b { color: var(--ss-hint) !important; }
html body.shanshui-mobile :is(.birth-advanced-settings > summary, .profile-card legend > span) { color: var(--ss-primary) !important; }
html body.shanshui-mobile .profile-card legend > span { background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; }
html body.shanshui-mobile .profile-card[data-person='right'] { background: #f5efe4 !important; }
html body.shanshui-mobile .profile-card[data-person='right'] legend > span { background: #f0e5cc !important; color: var(--ss-gold-text) !important; }
html body.shanshui-mobile :is(.dropzone, .image-dropzone) { background: var(--ss-canvas) !important; border-color: var(--ss-outline) !important; border-radius: 16px !important; box-shadow: none !important; }
html body.shanshui-mobile :is(.dropzone:hover, .image-dropzone.is-dragging) { background: var(--ss-wash) !important; border-color: var(--ss-primary) !important; }
html body.shanshui-mobile :is(.upload-icon, .vision-upload-card .dz-icon, .picker-trigger-mark, .vision-step-mark, .kind-options b) { color: var(--ss-primary) !important; background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; box-shadow: none !important; }
html body.shanshui-mobile :is(.birthplace-hint, .birth-input-empty .birth-input-date-value, .mobile-bazi-field-label small, .mobile-bazi-required) { color: var(--ss-hint) !important; }

/* Chart surfaces change; five-element and aspect semantic colors stay intact. */
html body.shanshui-mobile #chartPanel > :is(.meta-row, .shensha-block, .wx-block, .rule-evidence-block, .dayun-block, .calculation-basis) {
  color: var(--ss-muted) !important; background: var(--ss-canvas) !important; border-color: var(--ss-line) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.pillar-card, .pillar-card .pc-hidden-layer, .shensha-column, .dayun-chip, .dayun-year-card, .annual-reading-fact, .vision-field-card, .vision-dayun-row, .palace, .palace-details, .orchid-palace-detail) {
  background: var(--ss-paper) !important; border-color: var(--ss-line) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.pillar-card.day, .shensha-column.day, .dayun-chip.current, .dayun-chip.selected, .dayun-year-card.current, .palace.is-expanded, .profile-card.is-default, .payment-product.is-recommended, .record-card.is-primary) {
  background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.astrolabe, .chart-center, .center-emblem, .dayun-detail, .annual-reading-preview) { background: var(--ss-canvas) !important; border-color: var(--ss-line) !important; box-shadow: none !important; }
html body.shanshui-mobile :is(.reading-followup-message, .followup-message-body, .yaogua-followup-message-body) { background: var(--ss-paper) !important; border-color: var(--ss-line) !important; box-shadow: none !important; }
html body.shanshui-mobile :is(.reading-followup-message.user, .followup-message.user .followup-message-body, .yaogua-followup-message.user .yaogua-followup-message-body) { background: var(--ss-wash) !important; }

/* A dark ritual is limited to the real coin stage, never the surrounding form. */
html body.shanshui-mobile[data-orchid-tool='yaogua'] .ritual-stage {
  color: var(--ss-moon) !important; background: var(--ss-night) !important;
  border-color: var(--ss-night-raised) !important; border-radius: 16px !important; box-shadow: none !important;
}
html body.shanshui-mobile[data-orchid-tool='yaogua'] .ritual-stage :is(.coin-label, .ritual-hint, .coin-hint, .stage-caption, .yao-position, .yao-kind, p) { color: var(--ss-moon) !important; font-size: 12px; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .coin[data-face] + .coin-label { color: var(--ss-gold-light) !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] :is(.yao-mark::before, .yao-mark::after) { background: var(--ss-primary) !important; box-shadow: none !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .yao-mark.empty::before { background: transparent !important; border-color: var(--ss-outline) !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .yao-row.is-changing :is(.yao-mark::before, .yao-mark::after) { background: var(--ss-gold) !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .yao-row.is-new { background: var(--ss-wash) !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .ritual-stage :is(.yao-mark::before, .yao-mark::after) { background: var(--ss-moon) !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .ritual-stage .yao-mark.empty::before { background: transparent !important; border-color: #6f8c80 !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .ritual-stage .yao-row.is-changing :is(.yao-mark::before, .yao-mark::after) { background: var(--ss-gold-light) !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .ritual-stage .yao-row.is-changing .yao-kind { color: var(--ss-gold-light) !important; }
html body.shanshui-mobile[data-orchid-tool='yaogua'] .ritual-stage .yao-row.is-new { background: var(--ss-night-raised) !important; }
html body.shanshui-mobile .progress-track { background: var(--ss-wash) !important; }
html body.shanshui-mobile .progress-track span { background: var(--ss-primary) !important; }

/* Account symbols and rewards use flat jade / muted gold, retaining real states. */
html body.shanshui-mobile :is(.mine-account-avatar, .account-settings-avatar, .mine-current-mark, .profile-create-mark, .profile-orbit-mark, .profile-card-mark, .mine-menu-icon, .account-settings-icon, .records-empty-mark, .payment-confirm-mark, .checkin-next-icon, .checkin-goal-mark, .checkin-milestone-mark, .share-state-mark, .profile-default-badge, .profile-detail-badge, .home-tool-symbol) {
  color: var(--ss-primary) !important; background: var(--ss-wash) !important;
  border-color: var(--ss-outline) !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.home-tool-new, .home-play-mark, .home-play-action, .home-refresh-checkin .home-play-heading small, .checkin-goal-mark, .checkin-milestone-mark) {
  color: var(--ss-gold-text) !important; background: #f6efdf !important; border-color: #e6d8ba !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.home-checkin-dismiss, .home-play-description, .record-meta) { color: var(--ss-hint) !important; }
html body.shanshui-mobile :is(.record-kind, .game-facts span, .astro-tag) { color: var(--ss-primary) !important; background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; box-shadow: none !important; font-size: 12px; }
html body.shanshui-mobile .payment-product-badge { color: var(--ss-paper) !important; background: var(--ss-primary) !important; }
html body.shanshui-mobile :is(.service-status-banner, .recharge-notice, .calculation-warning, .result-status.is-warning, .dayun-current.is-uncertain, .vision-field-card.is-low, .vision-dayun-row.is-low, .payment-fallback) {
  color: #7a4e00 !important; background: #fff3dc !important; border-color: #e6d8ba !important; box-shadow: none !important;
}
html body.shanshui-mobile :is(.recharge-notice-copy strong, .recharge-notice-copy b, .service-status-banner span) { color: #7a4e00 !important; }
html body.shanshui-mobile :is(.result-status.is-complete, .ai-reading-status.is-complete, .result-status.is-success, .records-status, .payment-status[data-kind='success'], .checkin-feedback[data-kind='success']) { color: var(--ss-primary) !important; background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; }
html body.shanshui-mobile :is(.records-status[data-state='error'], .payment-status[data-kind='error'], .checkin-feedback[data-kind='error']) { color: #8a3f32 !important; background: #f8e7df !important; }

html body.shanshui-mobile .game-tabs button:not([aria-selected='true']) { color: var(--ss-primary) !important; background: var(--ss-paper) !important; border-color: var(--ss-line) !important; box-shadow: none !important; }
html body.shanshui-mobile .game-tabs button:not([aria-selected='true']) > span { color: var(--ss-primary) !important; }
html body.shanshui-mobile .game-tabs b { font-size: 14px !important; }
html body.shanshui-mobile .game-tabs small { font-size: 12px !important; }
html body.shanshui-mobile .inspiration-card:not(.answer-card):not(.relation-card) { color: var(--ss-moon) !important; background: var(--ss-night) !important; border-color: var(--ss-night-raised) !important; box-shadow: none !important; }
html body.shanshui-mobile .inspiration-card:not(.answer-card):not(.relation-card) :is(.card-top, .card-bottom, .card-number, .card-body, .sealed-card p, .card-action b, .seal-mark) { color: var(--ss-moon) !important; border-color: #36534a !important; }
html body.shanshui-mobile .inspiration-card .card-action { border-left-width: 1px; }
html body.shanshui-mobile .inspiration-card:not(.answer-card):not(.relation-card) .card-action { background: var(--ss-night-raised) !important; border-color: var(--ss-gold-light) !important; }
html body.shanshui-mobile .challenge-steps span[data-done='true'] { color: var(--ss-paper) !important; background: var(--ss-primary) !important; border-color: var(--ss-primary) !important; }
html body.shanshui-mobile .challenge-steps span[aria-current='step'] { color: var(--ss-primary) !important; background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; }
html body.shanshui-mobile .play-status { color: var(--ss-moon) !important; background: var(--ss-night) !important; border-color: var(--ss-night-raised) !important; box-shadow: none !important; }
html body.shanshui-mobile :is(.astro-sign-card small, .astro-sign-card .astro-sign-copy, .astro-sign-card > p, .astro-aspect-item, .astro-aspect-item small, .astro-house-list span, .astro-empty-trio small, .astro-empty .astro-method-note) { font-size: 12px !important; }
html body.shanshui-mobile :is(.astro-reading > p, .astro-empty > p:not(.astro-eyebrow), .astro-consent p, .astro-check) { font-size: 14px; }
html body.shanshui-mobile :is(.astro-empty-orbit i, .astro-empty-orbit b, .astro-empty-orbit em) { background: var(--ss-paper) !important; }

/* Standalone login's outer surface is a scrolling viewport, not another card. */
html[data-account-page='standalone'][data-account-ui='card'] body.tianji-mystic.tianji-orchid.shanshui-mobile .account-dialog[data-view] .account-dialog-surface {
  background: transparent !important; border-color: transparent !important; border-radius: 0 !important; box-shadow: none !important;
}
html[data-account-page='standalone'][data-account-ui='card'] body.tianji-mystic.tianji-orchid.shanshui-mobile .account-dialog .app-dialog-mask {
  background: var(--ss-canvas) !important;
}
html[data-account-page='standalone'][data-account-ui='card'] body.tianji-mystic.tianji-orchid.shanshui-mobile .mystic-login-content { border-color: var(--ss-line) !important; }
html[data-account-page='standalone'] body.shanshui-mobile .account-page-close { color: var(--ss-primary) !important; background: var(--ss-paper) !important; box-shadow: none !important; }
html[data-account-page='standalone'] body.shanshui-mobile .account-dialog :is(#btnAccountResetPassword, #btnAccountBackToLogin) { color: var(--ss-primary) !important; background: transparent !important; box-shadow: none !important; }
html[data-account-page='standalone'] body.shanshui-mobile .account-dialog:has(#accountPasswordLoginRow:not([hidden])) #btnAccountRequestCode { color: var(--ss-primary) !important; background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; box-shadow: none !important; }
html body.shanshui-mobile .account-dialog .app-dialog-mask { background-color: #10201e66; }
html body.shanshui-mobile :is(.payment-confirm-dialog, .account-settings-dialog, .payment-dialog, .profile-detail-dialog, .astro-consent)::backdrop { background: #10201e66; }

/* The shared one-pixel keyboard focus remains the only focus ring. */
html body.shanshui-mobile :where(a, button, input, select, textarea, summary, [role='button'], [tabindex]):focus-visible { outline-color: var(--ss-primary) !important; }
html body.shanshui-mobile :is(.kind-options, .focus-options, .seg-options, .emotion-grid, .relationship-modes) input:focus-visible + span { outline-color: var(--ss-primary) !important; }


/* 合盘录入分段控件（原为兰紫渐变）。 */
html body.shanshui-mobile #hehunForm .hehun-input-segment { background: var(--ss-wash) !important; }
html body.shanshui-mobile #hehunForm .hehun-input-segment button { color: var(--ss-muted) !important; }
html body.shanshui-mobile #hehunForm .hehun-input-segment button[aria-pressed='true'] { color: var(--ss-paper) !important; background: var(--ss-primary) !important; box-shadow: none !important; }
html body.shanshui-mobile #hehunForm .hehun-input-trigger { color: var(--ss-ink) !important; background: var(--ss-canvas) !important; border-color: var(--ss-outline) !important; }

/* 审计补齐：首页今日详情、兑换、签到、微信助手、星盘、登录页残留的兰紫色。 */
html body.shanshui-mobile.tianji-mystic .home-daily-details .daily-fortune-card,
html body.shanshui-mobile .daily-fortune-card { --purple: var(--ss-primary); --deep: var(--ss-pressed); --blue: var(--ss-primary); }
html body.shanshui-mobile :is(#dailyFortuneDate, #dailyFortuneQuote, #dailyFortuneStyleLabel, .home-daily-details summary, #dailySceneConsentLink) { color: var(--ss-primary) !important; }
html body.shanshui-mobile #dailySceneVisual { background: var(--ss-wash) !important; border-color: var(--ss-outline) !important; box-shadow: none !important; }
html body.shanshui-mobile #btnShareDailyFortune { color: var(--ss-paper) !important; background: var(--ss-primary) !important; border-color: var(--ss-primary) !important; box-shadow: none !important; }
html body.shanshui-mobile .daily-fortune-card :is(p, b, legend, span, i) { --tw-purple: var(--ss-primary); }
html body.shanshui-mobile #redemptionSubmit { color: var(--ss-paper) !important; background: var(--ss-primary) !important; border-color: var(--ss-primary) !important; box-shadow: none !important; }
html body.shanshui-mobile :is(#redeemTitle, #redeem label) { color: var(--ss-ink) !important; }
html body.shanshui-mobile :is(#redemptionBalance, #redemptionNote) { color: var(--ss-hint) !important; }
html body.shanshui-mobile :is(.checkin-grand-prize, .checkin-feedback, .checkin-stamp.is-gift.is-grand) { border-color: var(--ss-outline) !important; }
html body.shanshui-mobile .wx-back, html body.shanshui-mobile .wx-text-button { color: var(--ss-primary) !important; }
html body.shanshui-mobile .wx-heading-mark { color: var(--ss-primary) !important; background: var(--ss-wash) !important; }
html body.shanshui-mobile :is(.wx-footer-note, .wechat-assistant-main p, .wechat-assistant-main span:not([class])) { color: var(--ss-hint); }
html body.shanshui-mobile .footer-policy-btn.site-contact-entry { color: var(--ss-primary) !important; background: var(--ss-wash) !important; }
html body.shanshui-mobile .astro-empty { background: var(--ss-paper) !important; }
html body.shanshui-mobile .astro-empty-orbit span { color: var(--ss-primary) !important; }
html body.shanshui-mobile .astro-empty-orbit::after { background: radial-gradient(circle, #e3eeea99, transparent) !important; }
html body.shanshui-mobile .astro-wheel .wheel-sign { fill: #1f5c57 !important; }
html body.shanshui-mobile .astro-wheel .wheel-planet { fill: #1a2421 !important; }
html body.shanshui-mobile .astro-wheel .wheel-house { fill: #646e6a !important; }
html body.shanshui-mobile .astro-wheel :is(.wheel-angle, .wheel-center) { fill: #174843 !important; }
html body.shanshui-mobile .astro-wheel :is(circle, line, path)[stroke^='#'] { stroke: #c5dad3; }
html body.shanshui-mobile .astro-consent::backdrop { background: #10201e66; }
html body.shanshui-mobile :is(.login-aurora, .login-orbit, .login-sparks) { display: none !important; }
html body.shanshui-mobile :is(.mystic-login-brand, .mystic-login-wordmark) { color: var(--ss-primary) !important; }

/* 签到：仪式感深色主卡，泥金只给奖励。 */
html body.shanshui-mobile .checkin-hero { color: var(--ss-moon) !important; background: var(--ss-night-raised) !important; border-color: var(--ss-night-raised) !important; box-shadow: none !important; }
html body.shanshui-mobile .checkin-hero :is(h2, .checkin-hero-description, .checkin-hero-description strong) { color: var(--ss-moon) !important; }
html body.shanshui-mobile .checkin-hero :is(.checkin-eyebrow, #checkinDailyNote) { color: #b9c2be !important; }
html body.shanshui-mobile .checkin-hero .checkin-dot { background: var(--ss-gold-light) !important; }
html body.shanshui-mobile .checkin-hero .checkin-hero-description strong { color: var(--ss-gold-light) !important; }
html body.shanshui-mobile .checkin-hero :is(#checkinSubmit, #checkinLogin) { color: var(--ss-night) !important; background: var(--ss-gold-light) !important; border-color: var(--ss-gold-light) !important; font-weight: 700; }
html body.shanshui-mobile .checkin-hero #checkinSubmit:disabled { color: var(--ss-night) !important; background: #b9a46f !important; border-color: #b9a46f !important; }
html body.shanshui-mobile .checkin-grand-prize { color: var(--ss-moon) !important; background: rgba(241, 237, 227, .06) !important; border-color: rgba(216, 182, 106, .35) !important; box-shadow: none !important; }
html body.shanshui-mobile .checkin-grand-prize :is(.checkin-prize-kicker, .checkin-prize-note, .checkin-grand-number span) { color: #b9c2be !important; }
html body.shanshui-mobile .checkin-grand-prize :is(.checkin-grand-number strong, .checkin-grand-doll) { color: var(--ss-gold-light) !important; }
html body.shanshui-mobile .checkin-gift-art svg { filter: hue-rotate(128deg) saturate(.75) brightness(1.05) !important; }
html body.shanshui-mobile .checkin-gift-spark { color: var(--ss-gold-light) !important; }
html body.shanshui-mobile .checkin-stamp.is-gift small { color: var(--ss-gold-text) !important; }

/* 六爻完整排盘依据（纳甲表）与进行中指示。 */
html body.shanshui-mobile .traditional-evidence { color: var(--ss-ink) !important; background: var(--ss-paper) !important; border-color: var(--ss-line) !important; }
html body.shanshui-mobile .traditional-evidence :is(summary > span, .traditional-calendar-note, .traditional-line-detail, .traditional-evidence-note, .traditional-auxiliary dt, .traditional-lines thead th, .traditional-lines caption, .traditional-temporal-row td) { color: var(--ss-hint) !important; }
html body.shanshui-mobile .traditional-evidence :is(.traditional-palace, .traditional-hidden-spirit) { color: var(--ss-primary) !important; }
html body.shanshui-mobile .traditional-evidence :is(.traditional-lines, .traditional-lines td, .traditional-lines strong, .traditional-calendar, .traditional-auxiliary dd) { color: var(--ss-ink); }
html body.shanshui-mobile .traditional-lines tr.is-moving, html body.shanshui-mobile .traditional-auxiliary > div { background: var(--ss-canvas) !important; }
html body.shanshui-mobile .traditional-lines :is(th, td) { border-color: var(--ss-line) !important; }
html body.shanshui-mobile .traditional-evidence > summary:focus-visible { outline-color: var(--ss-primary) !important; }
html body.shanshui-mobile.tianji-mystic.orchid-tool-page .mystic-work-indicator { border-color: #1f5c5726 !important; border-top-color: var(--ss-primary) !important; border-right-color: var(--ss-outline) !important; }
html body.shanshui-mobile .wx-main :is(.wx-heading p, .wx-eyebrow) { color: var(--ss-primary) !important; }
html body.shanshui-mobile .wx-main :is(.wx-heading span, .wx-lead) { color: var(--ss-muted) !important; }
html body.shanshui-mobile .wx-main .wx-card { background: var(--ss-paper) !important; border-color: var(--ss-line) !important; box-shadow: none !important; }
