/* 方案三 · 青绿山水：新增入口与中枢组件（手机与电脑共用），以及手机端（≤620px）排版。
   电脑端（≥621px）排版见 shanshui-desktop.css。 */
.ss-nav, .ss-topnav, .ss-topactions, .ss-crumb, .ss-side, .ss-records-head { display: none; }
.ss-hub[hidden], .ss-hub section[hidden], .ss-today[hidden], .ss-newcomer[hidden], .ss-ownday[hidden],
.ss-continue-slot[hidden], .ss-checkin[hidden], .ss-login-card[hidden], .ss-today [hidden], .ss-hub [hidden] { display: none !important; }
body.shanshui {
  --ss-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --ss-sans: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --ss-wood: #2e6b45; --ss-fire: #b8432f; --ss-earth: #7a4a28; --ss-metal: #8a6610; --ss-water: #2b4f86;
}
.ss-icon svg, .ss-hub svg, .ss-home-inspiration svg, .ss-topactions svg, .ss-home-question svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 共用按钮 ---------- */
body.shanshui :is(.ss-btn-primary, .ss-btn-soft, .ss-btn-line, .ss-btn-gold) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 8px; font: 600 14px/1.4 var(--ss-sans); text-decoration: none; cursor: pointer; box-sizing: border-box;
}
body.shanshui .ss-btn-primary { color: #fffdf8; background: #1f5c57; border: 1px solid #1f5c57; }
body.shanshui .ss-btn-primary:hover { background: #174843; color: #fffdf8; }
body.shanshui .ss-btn-soft { color: #174843; background: #e3eeea; border: 1px solid #c5dad3; }
body.shanshui .ss-btn-line { color: #1a2421; background: #fffdf8; border: 1px solid #e6e1d5; }
body.shanshui .ss-btn-gold { color: #7a5a1c; background: #f4ebd7; border: 1px solid #b38b3e; }
body.shanshui .ss-btn-gold.is-done { color: #4a5652; background: #fffdf8; border-color: #e6e1d5; }
body.shanshui .ss-text-btn { min-height: 44px; padding: 0; border: 0; background: none; color: #1f5c57; font: 600 14px/1.4 var(--ss-sans); cursor: pointer; }
body.shanshui .ss-tag-gold { padding: 2px 10px; border-radius: 999px; background: #f4ebd7; color: #7a5a1c; font-size: 12px; font-weight: 600; line-height: 22px; }
body.shanshui .ss-tag-jade { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 999px; background: #e3eeea; color: #174843; font-style: normal; font-weight: 600; line-height: 20px; }
body.shanshui .ss-pill-gold { align-self: flex-start; padding: 2px 12px; border: 1px solid rgba(216,182,106,.5); border-radius: 999px; color: #d8b66a; font-size: 12px; line-height: 22px; }
body.shanshui .ss-avatar, body.shanshui .ss-avatar-sm { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; font-family: var(--ss-serif); font-weight: 700; text-decoration: none; }
body.shanshui .ss-avatar { width: 44px; height: 44px; background: #173b37; color: #d8b66a; font-size: 18px; }
body.shanshui .ss-avatar-sm { width: 28px; height: 28px; background: #e3eeea; color: #1f5c57; font-size: 14px; }

/* ---------- 今日：日期抬头 ---------- */
body.shanshui .ss-date { display: block; }
body.shanshui .ss-date .ss-ganzhi { margin: 0 0 4px; color: #4a5652; font-size: 12px; letter-spacing: .12em; }
body.shanshui.home-refresh .ss-date h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; max-width: none; margin: 0; color: #1a2421; font: 700 26px/1.4 var(--ss-serif); letter-spacing: 0; }
body.shanshui .ss-date .ss-date-lunar { color: #4a5652; font: 500 14px/1.4 var(--ss-serif); }

/* ---------- 今日卡（已建命主） ---------- */
body.shanshui .ss-today { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; border-radius: 16px; background: #173b37; color: #f1ede3; box-sizing: border-box; }
body.shanshui .ss-today-main { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
body.shanshui .ss-today-kicker { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 12px; color: #b9c2be; }
body.shanshui .ss-today-gods { color: #d8b66a; }
body.shanshui .ss-today-title { margin: 0; color: #f1ede3; font: 700 24px/1.45 var(--ss-serif); letter-spacing: 2px; }
body.shanshui .ss-today-summary { margin: 0; color: #b9c2be; font-size: 14px; line-height: 1.75; }
body.shanshui .ss-today-hints { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid rgba(241,237,227,.14); font-size: 14px; }
body.shanshui .ss-today-hints b { margin-right: 10px; color: #d8b66a; }
body.shanshui .ss-today-hints b.is-caution { color: #eba393; }
body.shanshui .ss-today-wear { flex: 1 1 200px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0 0; border-top: 1px solid rgba(241,237,227,.18); border-radius: 0; background: transparent; }
body.shanshui .ss-wear-label { font-size: 12px; color: #b9c2be; }
body.shanshui .ss-wear-colors { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }
body.shanshui .ss-swatch { display: inline-flex; align-items: center; gap: 6px; }
body.shanshui .ss-swatch i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(241,237,227,.3); }
body.shanshui .ss-wear-actions { display: flex; gap: 8px; margin-left: auto; }
body.shanshui .ss-wear-actions button { min-height: 44px; padding: 0 12px; border: 1px solid rgba(216,182,106,.5); border-radius: 8px; background: transparent; color: #d8b66a; font: 600 14px/1.4 var(--ss-sans); cursor: pointer; }
body.shanshui .ss-today-state { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; width: 100%; }
body.shanshui .ss-today-state-copy { flex: 1 1 220px; margin: 0; font-size: 14px; line-height: 1.7; color: #d6e3dc; }
body.shanshui .ss-today-state-action { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(216,182,106,.5); border-radius: 8px; color: #d8b66a; font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- 新用户：起一卦卡 + 专属今日 ---------- */
body.shanshui .ss-newcomer { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 16px; background: #173b37; color: #f1ede3; }
body.shanshui .ss-newcomer h2 { margin: 0; color: #f1ede3; font: 700 26px/1.4 var(--ss-serif); letter-spacing: 2px; }
body.shanshui .ss-newcomer p { margin: 0; color: #b9c2be; font-size: 14px; line-height: 1.7; }
body.shanshui .ss-newcomer-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
body.shanshui .ss-newcomer-form input#ssNewcomerQuestion { flex: 1 1 260px; min-height: 48px !important; padding: 0 14px; border: 1px solid rgba(241,237,227,.22) !important; border-radius: 8px !important; background: rgba(241,237,227,.06) !important; color: #f1ede3 !important; font: 400 16px/1.5 var(--ss-sans); box-sizing: border-box; }
body.shanshui .ss-newcomer-form input#ssNewcomerQuestion::placeholder { color: #b9c2be !important; }
body.shanshui .ss-newcomer-form button { flex: 1 0 auto; min-height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: #d8b66a; color: #10201e; font: 700 16px/1.4 var(--ss-sans); cursor: pointer; }
body.shanshui .ss-ownday { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 20px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; }
body.shanshui .ss-ownday > div { flex: 1 1 260px; }
body.shanshui .ss-ownday h2 { margin: 0 0 6px; color: #1a2421; font: 700 18px/1.5 var(--ss-serif); }
body.shanshui .ss-ownday p { margin: 0; color: #4a5652; font-size: 14px; line-height: 1.75; }
body.shanshui .ss-ownday .ss-btn-soft { flex: 1 0 auto; }

/* ---------- 侧栏卡片 ---------- */
body.shanshui :is(.ss-home-question, .ss-checkin, .ss-login-card, .ss-card) { box-sizing: border-box; padding: 20px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; color: #1a2421; }
body.shanshui :is(.ss-home-question, .ss-checkin, .ss-login-card, .ss-card, .ss-home-inspiration, .ss-hub) h2 { margin: 0; color: #1a2421; font: 600 18px/1.5 var(--ss-serif); }
body.shanshui .ss-home-question { display: flex; flex-direction: column; gap: 12px; }
body.shanshui .ss-home-ask { position: relative; }
body.shanshui .ss-home-ask textarea#ssHomeQuestionInput { display: block; width: 100%; min-height: 48px !important; height: 48px; padding: 12px 52px 12px 14px !important; border: 1px solid #e6e1d5 !important; border-radius: 8px !important; background: #f4f1ea !important; color: #1a2421 !important; font: 400 16px/1.5 var(--ss-sans); resize: none; box-sizing: border-box; overflow: hidden; }
body.shanshui .ss-icon-submit { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: #1f5c57; color: #fffdf8; cursor: pointer; }
body.shanshui .ss-home-ask-actions { display: flex; gap: 8px; }
body.shanshui .ss-home-ask-actions > a { flex: 1; }
body.shanshui .ss-home-ask-note { margin: 0; color: #4a5652; font-size: 12px; line-height: 1.7; }
body.shanshui .ss-continue-slot { display: block; }
body.shanshui .ss-continue { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; color: #1a2421; text-decoration: none; }
body.shanshui .ss-checkin { display: flex; flex-direction: column; gap: 12px; }
body.shanshui .ss-checkin header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.shanshui .ss-checkin-streak { color: #7a5a1c; font-size: 12px; }
body.shanshui .ss-checkin-dots { display: flex; gap: 6px; }
body.shanshui .ss-checkin-dots:empty { display: none; }
body.shanshui .ss-checkin-dots i { width: 24px; height: 24px; border-radius: 50%; background: #eae5da; box-sizing: border-box; }
body.shanshui .ss-checkin-dots i.is-done { background: #b38b3e; }
body.shanshui .ss-checkin-dots i.is-next { background: transparent; border: 2px dashed #b38b3e; }
body.shanshui .ss-login-card { display: flex; flex-direction: column; gap: 12px; }
body.shanshui .ss-login-card p { margin: 0; color: #4a5652; font-size: 14px; line-height: 1.7; }
body.shanshui .ss-login-card div { display: flex; gap: 8px; }
body.shanshui .ss-login-card div > a { flex: 1; }

/* ---------- 灵感 ---------- */
body.shanshui .ss-home-inspiration { display: block; }
body.shanshui .ss-home-inspiration header, body.shanshui .ss-hub header.ss-card-head, body.shanshui .ss-recent header, body.shanshui .ss-recommend header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.shanshui .ss-home-inspiration header { margin-bottom: 10px; }
body.shanshui :is(.ss-home-inspiration, .ss-recent) header > a { display: flex; align-items: center; min-height: 44px; color: #1f5c57; font-size: 14px; font-weight: 600; text-decoration: none; }
body.shanshui .ss-home-inspiration > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.shanshui .ss-home-inspiration > div a { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 60px; padding: 12px; border: 1px solid #e6e1d5; border-radius: 12px; background: #fffdf8; color: #1a2421; font-size: 14px; font-weight: 600; text-decoration: none; box-sizing: border-box; }
body.shanshui .ss-home-inspiration > div svg { color: #1f5c57; }

/* ---------- 中枢：问事 / 命盘 ---------- */
body.shanshui .ss-hub { box-sizing: border-box; color: #1a2421; font-family: var(--ss-sans); }
body.shanshui .ss-hub-cols { display: flex; flex-direction: column; gap: 16px; }
body.shanshui .ss-hub-main, body.shanshui .ss-hub-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.shanshui .ss-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
body.shanshui .ss-page-head h1 { margin: 0; color: #1a2421; font: 700 24px/1.4 var(--ss-serif); }
body.shanshui .ss-page-lead { margin: 6px 0 0; color: #4a5652; font-size: 14px; line-height: 1.7; }
body.shanshui .ss-head-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: #1a2421; }
body.shanshui .ss-question-field { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.shanshui .ss-question-field > label { color: #1a2421; font-size: 14px; font-weight: 600; }
body.shanshui .ss-question-field textarea#ssQuestion { display: block; width: 100%; min-height: 96px !important; padding: 12px 14px !important; border: 1px solid #e6e1d5 !important; border-radius: 8px !important; background: #fffdf8 !important; color: #1a2421 !important; font: 400 16px/1.6 var(--ss-sans); resize: vertical; box-sizing: border-box; }
body.shanshui .ss-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 14px; }
body.shanshui .ss-link-profile { display: flex; align-items: center; gap: 6px; color: #4a5652; }
body.shanshui .ss-hub .ss-link-profile select#ssAskProfile { min-height: 36px !important; padding: 0 28px 0 8px; border: 0 !important; background-color: transparent !important; color: #1a2421 !important; font: 600 14px/1.4 var(--ss-sans) !important; }
body.shanshui #ssCount { color: #646e6a; font-size: 12px; }
body.shanshui #ssCount.is-over { color: #b8432f; }
body.shanshui #ssAskForm { display: flex; flex-direction: column; gap: 16px; }
body.shanshui #ssAskForm > .ss-hint:empty { display: none; }
body.shanshui .ss-recommend header { margin-bottom: 10px; }
body.shanshui .ss-recommend header small { font-size: 12px; color: #4a5652; }
body.shanshui .ss-recommend header { text-align: left; }
body.shanshui .ss-recommend fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
body.shanshui .ss-recommend label { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #e6e1d5; border-radius: 12px; background: #fffdf8; cursor: pointer; }
body.shanshui .ss-recommend label:has(input:checked) { border-color: #1f5c57; background: #e3eeea; }
body.shanshui .ss-recommend input { width: 20px; height: 20px; min-width: 20px; min-height: 20px !important; margin: 2px 0 0; accent-color: #1f5c57; }
body.shanshui .ss-recommend label > span { display: grid; gap: 6px; min-width: 0; }
body.shanshui .ss-recommend b { color: #1a2421; font-size: 16px; font-weight: 700; }
body.shanshui .ss-recommend em { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: transparent; color: #1f5c57; font: 600 12px/20px var(--ss-sans); vertical-align: 1px; }
body.shanshui .ss-recommend em[hidden] { display: none; }
body.shanshui .ss-recommend label > span > span { color: #4a5652; font-size: 14px; line-height: 1.6; }
body.shanshui .ss-recommend small, body.shanshui .ss-quota, body.shanshui .ss-hint { color: #646e6a; font-size: 12px; line-height: 1.7; }
body.shanshui .ss-ask-submit { display: flex; flex-direction: column; gap: 6px; }
body.shanshui .ss-ask-submit .ss-quota { margin: 0; text-align: center; }
body.shanshui .ss-primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid #1f5c57; border-radius: 8px; background: #1f5c57; color: #fffdf8; font: 600 16px/1.5 var(--ss-sans); cursor: pointer; box-shadow: none; box-sizing: border-box; }
body.shanshui .ss-primary:hover { background: #174843; }
body.shanshui .ss-other h2 { margin-bottom: 8px; color: #4a5652 !important; font: 600 14px/1.5 var(--ss-sans) !important; }
body.shanshui .ss-other > div { display: flex; flex-wrap: wrap; gap: 8px; }
body.shanshui .ss-other a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #1a2421; font-size: 14px; text-decoration: none; box-sizing: border-box; }
body.shanshui .ss-other svg { color: #1f5c57; }
body.shanshui .ss-recent { display: flex; flex-direction: column; gap: 4px; }
body.shanshui .ss-recent > div { display: flex; flex-direction: column; }
body.shanshui .ss-empty { margin: 4px 0 0; padding: 16px; border: 1px dashed #c5dad3; border-radius: 12px; color: #646e6a; font-size: 14px; line-height: 1.7; }
body.shanshui .ss-record { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-top: 1px solid #eae5da; color: #1a2421; text-decoration: none; overflow-wrap: anywhere; }
body.shanshui .ss-record-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.shanshui .ss-record-copy b, body.shanshui .ss-continue b { font-size: 15px; font-weight: 600; line-height: 1.5; }
body.shanshui .ss-record-copy small { color: #4a5652; font-size: 12px; }
body.shanshui .ss-chevron { color: #4a5652; font-size: 20px; }
body.shanshui .ss-kind-mark { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #e3eeea; color: #1f5c57; font: 700 16px/1 var(--ss-serif); }
body.shanshui .ss-kind-mark:is(.is-yaogua) { background: #f7e3dd; color: #8f3322; }
body.shanshui .ss-kind-mark:is(.is-dream, .is-xiangshu) { background: #f4ebd7; color: #7a5a1c; }

/* 命盘 */
body.shanshui .ss-charts .ss-page-head { flex-wrap: wrap; }
body.shanshui .ss-profiles { display: flex; flex-wrap: wrap; gap: 8px; }
body.shanshui .ss-profiles > * { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border: 1px solid #e6e1d5; border-radius: 999px; background: #fffdf8; color: #1a2421; font: 500 14px/1.4 var(--ss-sans); text-decoration: none; cursor: pointer; box-sizing: border-box; }
body.shanshui .ss-profiles > button[aria-pressed='true'] { border-color: #1f5c57; background: #1f5c57; color: #fffdf8; font-weight: 700; }
body.shanshui .ss-profiles > button[aria-pressed='true'] .ss-avatar-sm { background: #fffdf8; color: #1f5c57; }
body.shanshui .ss-profiles > .ss-profile-add { padding: 0 14px; border-style: dashed; border-color: #c5dad3; color: #1f5c57; font-weight: 600; }
body.shanshui .ss-chart-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
body.shanshui .ss-chart-basis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0; color: #4a5652; font-size: 12px; }
body.shanshui .ss-chart-basis a { display: inline-flex; align-items: center; min-height: 32px; color: #1f5c57; font-size: 14px; font-weight: 600; text-decoration: none; }
body.shanshui .ss-chart-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #eae5da; }
body.shanshui .ss-chart-tabs button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #4a5652; font: 600 16px/1.4 var(--ss-sans); cursor: pointer; }
body.shanshui .ss-chart-tabs button[aria-pressed='true'] { background: #1f5c57; color: #fffdf8; }
body.shanshui .ss-card-head { margin-bottom: 14px; }
body.shanshui .ss-card-head small { color: #4a5652; font-size: 12px; }
body.shanshui .ss-pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; }
body.shanshui .ss-pillar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border: 1px solid transparent; border-radius: 12px; }
body.shanshui .ss-pillar.is-day { border-color: #e6e1d5; background: #f4f1ea; }
body.shanshui .ss-pillar small, body.shanshui .ss-shen { color: #4a5652; font-size: 12px; }
body.shanshui .ss-pillar.is-day > .ss-shen:first-of-type { color: #7a5a1c; font-weight: 700; }
body.shanshui .ss-glyph { font: 700 32px/1.25 var(--ss-serif); }
body.shanshui .ss-wx-pair { font-size: 12px; }
body.shanshui .ss-wx.is-wood { color: var(--ss-wood); } body.shanshui .ss-wx.is-fire { color: var(--ss-fire); }
body.shanshui .ss-wx.is-earth { color: var(--ss-earth); } body.shanshui .ss-wx.is-metal { color: var(--ss-metal); }
body.shanshui .ss-wx.is-water { color: var(--ss-water); } body.shanshui .ss-wx.is-none { color: #646e6a; }
body.shanshui .ss-wx-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eae5da; }
body.shanshui .ss-wx-label { margin: 0 0 8px; font-size: 14px; } body.shanshui .ss-wx-label span { color: #4a5652; font-size: 12px; }
body.shanshui .ss-wx-bar { display: flex; gap: 2px; height: 10px; overflow: hidden; border-radius: 999px; }
body.shanshui .ss-wx-bar span { flex-basis: 0; }
body.shanshui .ss-wx-bar .is-wood { background: var(--ss-wood); } body.shanshui .ss-wx-bar .is-fire { background: var(--ss-fire); }
body.shanshui .ss-wx-bar .is-earth { background: var(--ss-earth); } body.shanshui .ss-wx-bar .is-metal { background: var(--ss-metal); }
body.shanshui .ss-wx-bar .is-water { background: var(--ss-water); }
body.shanshui .ss-wx-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 700; }
body.shanshui .ss-dayun-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 4px; margin: 0; padding: 0 0 4px; overflow-x: auto; list-style: none; text-align: center; }
body.shanshui .ss-dayun { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1.5px solid transparent; border-radius: 10px; }
body.shanshui .ss-dayun.is-current { border-color: #1f5c57; background: #e3eeea; }
body.shanshui .ss-dayun.is-current small, body.shanshui .ss-dayun.is-current .ss-shen { color: #174843; font-weight: 700; }
body.shanshui .ss-dayun small { color: #4a5652; font-size: 12px; white-space: nowrap; }
body.shanshui .ss-glyph-row { font: 700 22px/1.4 var(--ss-serif); }
body.shanshui .ss-annual { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eae5da; font-size: 14px; }
body.shanshui .ss-annual p { margin: 0; } body.shanshui .ss-annual-gz { color: #b8432f; }
body.shanshui .ss-open-full { margin-top: 0; }
body.shanshui .ss-deep nav { display: flex; flex-direction: column; margin-top: 4px; }
body.shanshui .ss-deep nav > * { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0; border: 0; border-bottom: 1px solid #eae5da; background: transparent; color: #1a2421; font: 400 15px/1.5 var(--ss-sans); text-decoration: none; cursor: pointer; }
body.shanshui .ss-deep nav > :last-child { border-bottom: 0; }
body.shanshui .ss-deep nav span { color: #4a5652; font-size: 20px; }
body.shanshui .ss-chart-ask form { display: flex; gap: 8px; margin: 12px 0 6px; }
body.shanshui .ss-chart-ask input#ssChartQuestion { flex: 1; min-width: 0; min-height: 48px !important; padding: 0 14px; border: 1px solid #e6e1d5 !important; border-radius: 8px !important; background: #f4f1ea !important; color: #1a2421 !important; font: 400 16px/1.5 var(--ss-sans); box-sizing: border-box; }
body.shanshui .ss-chart-ask button { display: grid; place-items: center; width: 48px; min-height: 48px; border: 0; border-radius: 8px; background: #1f5c57; color: #fffdf8; cursor: pointer; }
body.shanshui .ss-chart-ask .ss-quota { margin: 0; }
body.shanshui .ss-chart-card { padding: 24px 20px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; text-align: center; }
body.shanshui .ss-chart-card h2 { margin: 0; }
body.shanshui .ss-chart-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: #e3eeea; color: #1f5c57; font: 28px/1 var(--ss-serif); }
body.shanshui .ss-chart-card > p { margin: 10px 0; color: #4a5652; font-size: 14px; line-height: 1.8; }
body.shanshui .ss-chart-card > .ss-primary { margin-top: 16px; }
body.shanshui .ss-text-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; color: #1f5c57; font-size: 14px; text-decoration: none; }
body.shanshui .ss-pair { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; border: 1px solid #e6e1d5; border-radius: 16px; background: #fffdf8; color: #1f5c57; text-decoration: none; }
body.shanshui .ss-pair b { display: block; font: 600 17px/1.5 var(--ss-serif); }
body.shanshui .ss-pair small { display: block; margin-top: 4px; color: #4a5652; font-size: 12px; line-height: 1.7; }

/* 我的 */
html body.shanshui .redemption-value { color: #7a5a1c !important; background: #f4ebd7 !important; }
html body.shanshui .astro-jewel { background: radial-gradient(circle at 33% 28%, #fffdf8 0%, #d3e3dc 28%, #8eafa3 58%, #477b70 79%, #e3eeea 100%); box-shadow: inset -6px -10px 20px #17484326, inset 3px 4px 10px #ffffff99; }
html body.shanshui .astro-jewel i { border-color: #789e91; } html body.shanshui .astro-jewel b { color: #1f5c57; }
html body.shanshui .shanshui-profile-notice { margin: 16px 0; padding: 16px; border: 1px solid #c5dad3; border-radius: 12px; background: #e3eeea; color: #174843; font-size: 14px; line-height: 1.8; }
html body.shanshui .shanshui-profile-notice button { min-height: 44px; padding: 8px 16px; border: 1px solid #1f5c57; border-radius: 8px; background: #1f5c57; color: #fffdf8; font-size: 14px; }

/* =================== 手机（≤620px） =================== */
@media (max-width: 620px) {
  html body.shanshui-mobile { --mobile-shell-height: 64px; --mobile-bottom-inset: calc(64px + var(--mobile-task-height, 0px) + env(safe-area-inset-bottom, 0px)); }
  html body.shanshui-mobile > .mobile-tab-bar, html body.shanshui-mobile .home-mobile-tabs { display: none !important; }
  html body.shanshui-mobile > .mobile-task-strip { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  html body.shanshui-mobile .ss-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 40; min-height: 64px; padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px)); background: #fffdf8; border-top: 1px solid #e6e1d5; }
  .ss-nav a { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; min-height: 52px; color: #4a5652; font: 500 12px/1.4 var(--ss-sans, sans-serif); text-decoration: none; }
  .ss-nav a[aria-current] { color: #1f5c57; font-weight: 700; }
  .ss-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  html.mobile-keyboard-open body.shanshui-mobile .ss-nav { display: none; }
  html body.shanshui-mobile.account-page-body .ss-nav { display: none; }
  html body.shanshui-mobile.mobile-bazi-ready:has(.mobile-bazi-sticky:not([hidden])) .ss-nav { display: none; }

  /* 今日 */
  html body.shanshui-mobile.home-refresh .home-header-actions .site-contact-entry, html body.shanshui-mobile.home-refresh .home-mobile-search { display: none !important; }
  html body.shanshui-mobile.home-refresh .home-hero-copy { padding-top: 6px; min-height: 96px; }
  html body.shanshui-mobile.home-refresh .home-hero-copy > :not(.ss-date) { display: none !important; }
  html body.shanshui-mobile.home-refresh .home-hero-art { width: 88px; height: 88px; top: 2px; }
  html body.shanshui-mobile.home-refresh .ss-date { padding-right: 98px; }
  html body.shanshui-mobile.home-refresh .ss-date h1 { font-size: 24px; flex-direction: column; gap: 2px; }
  html body.shanshui-mobile.home-refresh .home-main { gap: 16px; }
  html body.shanshui-mobile.home-refresh .home-main > :is(.home-rhythm-strip, #homeTools, .recharge-notice, .home-refresh-checkin, .home-highlights, .guest-recent, .home-play-entry) { display: none !important; }
  html body.shanshui-mobile.home-refresh .home-main > .ss-today, html body.shanshui-mobile.home-refresh .home-main > .ss-newcomer { order: 2; }
  html body.shanshui-mobile.home-refresh .home-main > .ss-ownday { order: 3; }
  html body.shanshui-mobile.home-refresh .home-main > .ss-home-aside { display: contents; }
  html body.shanshui-mobile.home-refresh .ss-home-aside > .ss-home-question { order: 4; }
  html body.shanshui-mobile.home-refresh[data-ss-audience='newcomer'] .ss-home-aside > .ss-home-question { display: none; }
  html body.shanshui-mobile.home-refresh .ss-home-aside > :is(.ss-continue-slot, .ss-login-card) { display: none !important; }
  html body.shanshui-mobile.home-refresh .home-main > .ss-home-inspiration { order: 5; }
  html body.shanshui-mobile.home-refresh .ss-home-aside > .ss-checkin { order: 6; }
  html body.shanshui-mobile.home-refresh .home-main > .home-daily-details { order: 7; }
  html body.shanshui-mobile.home-refresh .home-main > .home-footer { order: 8; }
  html body.shanshui-mobile .ss-today { flex-direction: column; gap: 14px; }
  html body.shanshui-mobile :is(.ss-today-main, .ss-today-wear) { flex: none; }
  html body.shanshui-mobile .ss-today-wear { padding: 12px; }
  html body.shanshui-mobile .ss-today-wear .ss-wear-actions button[data-ss-open='scene'] { display: none; }
  html body.shanshui-mobile .ss-checkin { flex-direction: row; flex-wrap: wrap; align-items: center; }
  html body.shanshui-mobile .ss-checkin header { flex: 1 1 100%; justify-content: flex-start; }
  html body.shanshui-mobile .ss-checkin .ss-checkin-dots { flex: 1; }
  html body.shanshui-mobile .ss-checkin .ss-btn-gold { flex: 0 0 auto; }
  html body.shanshui-mobile .ss-home-ask-actions .ss-btn-primary { display: none; }
  html body.shanshui-mobile .ss-home-ask-actions { align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #eae5da; }
  html body.shanshui-mobile .ss-home-ask-actions::before { content: '不想打字？不用填生日，摇六次就能起一卦。'; flex: 1; color: #4a5652; font-size: 12px; line-height: 1.7; }
  html body.shanshui-mobile .ss-home-ask-actions > a { flex: 0 0 auto; }
  html body.shanshui-mobile .ss-home-ask-note { display: none; }
  html body.shanshui-mobile[data-ss-page='ask'] .home-main, html body.shanshui-mobile[data-ss-page='charts'] .home-main { display: none !important; }

  /* 中枢 */
  .ss-hub:not([hidden]) { display: block; width: calc(100% - 32px); max-width: 520px; margin: 8px auto 0; padding-bottom: calc(28px + var(--mobile-bottom-inset)); }
  body.shanshui .ss-charts .ss-page-head { flex-direction: column; align-items: stretch; }
  body.shanshui .ss-ask .ss-page-lead { display: none; }
  body.shanshui .ss-other { margin-top: 20px; }
  body.shanshui .ss-glyph { font-size: 30px; }
  body.shanshui .ss-card { padding: 18px 16px; }
  body.shanshui .ss-dayun-row { grid-auto-columns: minmax(48px, 1fr); }
  body.shanshui .ss-dayun .ss-year { display: none; }
  body.shanshui .ss-glyph-row { display: flex; flex-direction: column; font-size: 22px; line-height: 1.3; }
  body.shanshui .ss-dayun .ss-shen { font-size: 11px; white-space: nowrap; }

  /* 我的 */
  html body.shanshui-mobile .mine-main { display: flex; flex-direction: column; gap: 16px; }
  html body.shanshui-mobile .mine-main > :is(.orchid-page-heading, #accountStatus, #redeem, #profileQuickSwitch, .mine-menu, #recharge) { margin-top: 0 !important; margin-bottom: 0 !important; }
  html body.shanshui-mobile .mine-main > .orchid-page-heading { order: 0; }
  html body.shanshui-mobile .mine-main > #accountStatus { order: 1; }
  html body.shanshui-mobile .mine-main > #redeem { order: 2; }
  html body.shanshui-mobile .mine-main > #profileQuickSwitch { order: 3; }
  html body.shanshui-mobile .mine-main > .mine-menu { order: 4; }
  html body.shanshui-mobile .mine-main > #recharge { order: 5; }
  html body.shanshui-mobile .mine-main > #mineStatus { order: 6; }
  html body.shanshui-mobile .mine-redeem .recharge-notice { margin: 16px 0 0; padding: 12px; background: #fff3dc; color: #7a4e00; border: 1px solid #e5d6b3; border-radius: 8px; }
}
@media (max-width: 360px) {
  .ss-hub:not([hidden]) { width: calc(100% - 24px); }
  .ss-recommend header { align-items: flex-start; flex-direction: column; gap: 4px; }
  html body.shanshui-mobile.home-refresh .ss-date { padding-right: 88px; }
  html body.shanshui-mobile.home-refresh .ss-date h1 { font-size: 22px; }
  html body.shanshui-mobile.home-refresh .home-hero-art { width: 80px; height: 80px; }
  body.shanshui .ss-glyph { font-size: 26px; }
  body.shanshui .ss-newcomer h2 { font-size: 22px; }
}
@media (max-width: 620px) {
  /* 二级页抬头只保留标题：去掉兰紫时期的眉题与引导语 */
  html body.shanshui-mobile .mine-main > .orchid-page-heading :is(p, span), html body.shanshui-mobile .mine-main > .orchid-page-heading .orchid-heading-link,
  html body.shanshui-mobile .records-hero > :is(p, span), html body.shanshui-mobile .account-settings-heading > :is(p, span),
  html body.shanshui-mobile .checkin-heading .checkin-kicker { display: none !important; }
  html body.shanshui-mobile :is(.mine-main > .orchid-page-heading h1, .records-hero h1, .account-settings-heading h1, .checkin-heading h1) { margin: 0 !important; font: 700 24px/1.4 var(--ss-serif) !important; color: #1a2421 !important; }
  html body.shanshui-mobile .records-hero { min-height: 0 !important; padding: 0 !important; margin: 8px 0 12px !important; }
}
.ss-appbar { display: none; }
@media (max-width: 620px) {
  /* 二级页：顶部返回 + 居中标题，不显示底部四栏；页面插画与兰紫装饰圈去掉。 */
  html body.shanshui-mobile.ss-secondary-page > .ss-appbar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 4px; padding-top: env(safe-area-inset-top, 0px); background: #f4f1ea; border-bottom: 1px solid #e6e1d5; }
  .ss-appbar-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: #1a2421; }
  .ss-appbar-back svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ss-appbar-title { flex: 1; margin: 0; color: #1a2421; font: 600 16px/1.4 var(--ss-sans); text-align: center; }
  .ss-appbar-gap { width: 44px; }
  html body.shanshui-mobile.ss-secondary-page > .site-header, html body.shanshui-mobile.ss-secondary-page .ss-nav { display: none !important; }
  html body.shanshui-mobile.ss-secondary-page { --mobile-shell-height: 0px; --mobile-bottom-inset: calc(var(--mobile-task-height, 0px) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
  html body.shanshui-mobile.ss-secondary-page > .mobile-task-strip { bottom: env(safe-area-inset-bottom, 0px); }
  html body.shanshui-mobile.ss-secondary-page :is(.account-settings-back, .records-main > .account-settings-back, .wx-back) { display: none !important; }
  html body.shanshui-mobile::before, html body.shanshui-mobile::after, html body.shanshui-mobile .dream-atmosphere { display: none !important; }
  html body.shanshui-mobile :is(.mystic-tool-art, .hehun-orbit, .astro-jewel) { display: none !important; }
  html body.shanshui-mobile :is(.mystic-tool-intro, .astro-hero) { display: block !important; min-height: 0 !important; margin: 0 0 16px !important; padding: 12px 0 0 !important; text-align: left !important; background: none !important; border: 0 !important; }
  html body.shanshui-mobile :is(.mystic-tool-intro, .astro-hero)::before, html body.shanshui-mobile :is(.mystic-tool-intro, .astro-hero)::after { display: none !important; }
  html body.shanshui-mobile :is(.mystic-tool-intro .eyebrow, .astro-hero .astro-eyebrow) { display: none !important; }
  html body.shanshui-mobile :is(.mystic-tool-intro h1, .mystic-tool-intro h2, .astro-hero h1) { margin: 0 !important; padding: 0 !important; color: #1a2421 !important; font: 700 22px/1.45 var(--ss-serif) !important; letter-spacing: 1px !important; text-align: left !important; }
  html body.shanshui-mobile :is(.mystic-tool-intro p:not(.eyebrow), .mystic-tool-intro .hero-copy, .astro-hero .astro-lead) { margin: 6px 0 0 !important; color: #4a5652 !important; font-size: 14px !important; line-height: 1.7 !important; text-align: left !important; }
  html body.shanshui-mobile .mystic-tool-intro br, html body.shanshui-mobile .astro-hero br { display: none; }
  html body.shanshui-mobile .orchid-stepper { margin-bottom: 12px !important; }
}
.ss-m-profile { display: none; }
@media (max-width: 620px) {
  html body.shanshui-mobile .home-header-actions .ss-m-profile:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 4px; border: 1px solid #e6e1d5; border-radius: 999px; background: #fffdf8; color: #1a2421; font: 600 14px/1 var(--ss-sans); text-decoration: none; white-space: nowrap; }
  html body.shanshui-mobile .home-header-actions .ss-m-profile.is-create { padding: 0 12px; color: #1f5c57; }
  html body.shanshui-mobile .home-header-actions .ss-m-profile b { max-width: 5em; overflow: hidden; text-overflow: ellipsis; }
  html body.shanshui-mobile .home-header-actions .ss-m-profile svg { fill: none; stroke: #4a5652; stroke-width: 2; }
  html body.shanshui-mobile .home-header-actions .ss-m-profile .ss-avatar-sm { width: 30px; height: 30px; }
}

/* 2026-10-27 用户同意去掉首页紫色水晶球、外圈与星点；保留天机阁书法字。 */
html body .home-main .home-hero-art { display: none !important; }
@media (max-width: 620px) {
  html body.shanshui-mobile.home-refresh .ss-date { padding-right: 0; }
  html body.shanshui-mobile.home-refresh .home-hero-copy { min-height: 0; padding-bottom: 2px; }
  html body.shanshui-mobile.home-refresh .ss-date h1 { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
}

/* 开场动画：沿用原动效与书法字，只把兰紫点缀换成宣纸与黛青，去掉紫色光环。 */
html body .home-intro { color: #1a2421; background: #f4f1ea; }
html body .home-intro .home-intro-atmosphere { background: radial-gradient(ellipse at 50% 44%, #c5dad333, transparent 46%), #f4f1ea; }
html body .home-intro :is(.home-intro-orbit, .home-intro-aura, .home-intro-stars) { display: none; }
html body .home-intro .home-intro-grid > i, html body .home-intro .home-intro-grid > span { background: #c5dad333; box-shadow: none; }
html body .home-intro .home-intro-edition { color: #646e6a; }
html body .home-intro .home-intro-edition > i { background: #b8432f; box-shadow: none; }
html body .home-intro .home-intro-edition > small { color: #646e6a; border-color: #e6e1d5; }
html body .home-intro .home-intro-tools button { color: #4a5652; }
html body .home-intro .home-intro-tools button:hover { color: #1f5c57; }
html body .home-intro .home-intro-eyebrow { color: #1f5c57; }
html body .home-intro .home-intro-corners i { border-color: #c5dad3; }
html body .home-intro .home-intro-subtitle { color: #4a5652; }
html body .home-intro .home-intro-status { color: #646e6a; }
html body .home-intro .home-intro-status > span { color: #1f5c57; }
html body .home-intro .home-intro-progress { background: #c5dad366; }
html body .home-intro .home-intro-progress i { background: #1f5c57; box-shadow: none; }
html body .home-intro .home-intro-loading-note { color: #646e6a; }
html body .home-intro :is(button, a):focus-visible { outline-color: #1f5c57; }
html body .home-intro .home-intro-footer { color: #646e6a; }
html body .home-intro .home-intro-atmosphere::before { background: radial-gradient(ellipse at 50% 44%, #c5dad340, transparent 42%), radial-gradient(ellipse at 20% 25%, #e3eeea40, transparent 42%), radial-gradient(ellipse at 85% 75%, #eae5da55, transparent 40%); }
html body .home-intro .home-intro-atmosphere::after { background: radial-gradient(ellipse at center, transparent 22%, #f4f1ea70 78%, #f4f1ea 100%); }

@media (max-width: 380px) {
  body.shanshui .ss-home-inspiration > div a { flex-direction: column; align-items: flex-start; gap: 8px; }
}

body.shanshui .ss-ask .ss-empty { padding: 8px 0; border: 0; border-radius: 0; }

/* 2026-10-28: Shared page surface cleanup (phone and desktop). */
/* Birth editors: keep one card for each editable profile, not another card around it. */
html body.shanshui #inputPanel:has(:is(#baziForm, #ziweiForm).birth-input-simple:not([hidden])) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui :is(#baziForm, #ziweiForm).birth-input-simple > [data-birth-step='3'] {
  box-sizing: border-box;
  padding: 24px !important;
  background: var(--ss-paper) !important;
  border: 1px solid var(--ss-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
html body.shanshui :is(#baziForm, #ziweiForm).birth-input-simple .birth-flow-heading {
  padding-bottom: 8px;
  border-bottom: 0;
}
html body.shanshui :is(#baziForm, #ziweiForm).birth-input-simple .birth-input-row {
  border-bottom: 0;
}
html body.shanshui :is(#baziForm, #ziweiForm).birth-input-simple .birth-advanced-settings {
  border: 0 !important;
  border-top: 1px solid var(--ss-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui :is(#baziForm, #ziweiForm).birth-input-simple .birth-advanced-settings > summary {
  padding-inline: 0;
}
html body.shanshui :is(#baziForm, #ziweiForm).birth-input-simple .birth-advanced-body {
  padding-inline: 0;
}
/* Ziwei's generic input decoration also reaches its native checkboxes. */
html body.shanshui[data-orchid-tool='ziwei'] input[type='checkbox'] {
  box-shadow: none !important;
}
html body.shanshui[data-orchid-tool='ziwei'] #daylightSaving[type='checkbox']:focus-visible {
  outline: 1px solid var(--ss-primary) !important;
  outline-offset: 2px;
}

/* Paired profiles already have separate, labelled cards. */
html body.shanshui[data-orchid-tool='hehun'] #inputSection {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui #hehunForm .hehun-input-row { border-bottom: 0; }
html body.shanshui #hehunForm .hehun-input-advanced {
  border: 0 !important;
  border-top: 1px solid var(--ss-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui #hehunForm .hehun-input-advanced > summary,
html body.shanshui #hehunForm .hehun-input-advanced-body { padding-inline: 0; }
html body.shanshui #hehunForm .submit-area {
  padding: 18px 0 0;
  border: 0 !important;
  border-top: 1px solid var(--ss-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* A brief explanatory empty state does not need a second large panel. */
html body.shanshui .astro-main .astro-empty {
  min-height: 0;
  padding: 24px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui .astro-main .astro-empty h2 { font-size: 22px; }
html body.shanshui .astro-main .astro-empty-trio { margin: 16px 0 0; }
html body.shanshui .astro-main .astro-location-details {
  border: 0 !important;
  border-top: 1px solid var(--ss-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
@media (max-width: 620px) {
  html body.shanshui[data-orchid-tool='bazi'] #inputPanel > .mobile-bazi-intro { display: none !important; }
  html body.shanshui :is(#baziForm, #ziweiForm).birth-input-simple > [data-birth-step='3'] {
    padding: 16px !important;
  }
  html body.shanshui .astro-main .astro-empty { padding: 12px 0 20px; }
}

/* Account, records, check-in and play: one surface per section. */
html body.shanshui-mobile.shanshui .mine-account > .mine-current-profile {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .mine-main .mine-menu-row {
  border: 0 !important;
  border-bottom: 1px solid var(--ss-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .account-settings-main .account-settings-group {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .account-settings-main .account-settings-group > h2 {
  padding-inline: 0;
}
html body.shanshui-mobile.shanshui .account-settings-main .account-settings-row {
  width: 100%;
  margin-left: 0;
  padding-right: 0;
}
html body.shanshui-mobile.shanshui .account-settings-main .account-settings-identity > a {
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .records-main .records-empty {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui :is(.mine-main .mine-menu-row, .mine-main .profile-card, .mine-main .profile-create-card, .records-main .record-card, .play-main .game-tabs button):is(:hover, :focus-within) {
  transform: none !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui :is(.mine-menu-row:hover .mine-menu-icon, .account-settings-row:hover .account-settings-icon, .game-tabs button:hover .mystic-tab-icon) {
  transform: none !important;
}
html body.shanshui-mobile.shanshui .mine-main .mine-menu-row:is(:hover, :focus-visible) {
  background: var(--ss-wash) !important;
}

/* Reward content remains visible; only the nested decorative shells go. */
html body.shanshui-mobile.shanshui .checkin-hero .checkin-grand-prize {
  border: 0 !important;
  border-left: 1px solid rgba(216, 182, 106, .3) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-dot {
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp:not(.is-signed):not(.is-next):not(.is-gift):not(.is-grand) {
  border-color: transparent !important;
  background: transparent !important;
}
html body.shanshui-mobile.shanshui .checkin-main :is(.checkin-goal-summary, .checkin-doll-row) {
  border: 0 !important;
  border-top: 1px solid var(--ss-line) !important;
  border-radius: 0 !important;
  padding-inline: 0;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-full-reward {
  border-radius: 0 !important;
  padding-inline: 0;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-milestone:hover {
  transform: none !important;
}

/* The interactive card is the surface; its surrounding layout needs no box. */
html body.shanshui-mobile.shanshui .play-main .game-panel {
  min-height: 0;
  padding: 8px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .play-main .quiz-workspace {
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .play-main :is(.mystic-tab-icon, .seal-mark, .inspiration-card, .coin-visual) {
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .play-main .game-tabs .mystic-tab-icon {
  border-color: transparent !important;
  background: transparent !important;
}
html body.shanshui-mobile.shanshui .play-main .mystic-tab-icon .mystic-small-icon { filter: none !important; }
html body.shanshui-mobile.shanshui .play-main .mystic-tab-icon .mystic-icon-back { display: none; }
@media (max-width: 620px) {
  html body.shanshui-mobile.shanshui .checkin-hero .checkin-grand-prize {
    border-left: 0 !important;
    border-top: 1px solid rgba(216, 182, 106, .3) !important;
    padding-inline: 0;
  }
}

/* Tool pages: use one surface per section and compact the empty results. */
html body.shanshui-mobile.shanshui[data-orchid-tool="dream"] #dreamForm,
html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] #xiangshuForm,
html body.shanshui-mobile.shanshui.ss-yaogua-mobile[data-orchid-tool="yaogua"] .question-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="dream"] .dream-extra-details {
  border: 0 !important;
  border-top: 1px solid var(--ss-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="dream"] .dream-extra-details > summary {
  min-height: 48px;
  padding: 12px 36px 12px 0;
  flex-direction: row;
  align-items: center;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="dream"] .dream-extra-body {
  padding: 16px 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="dream"] #resultCard:has(#resultEmpty:not([hidden])),
html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] #resultCard:has(#resultEmpty:not([hidden])) {
  min-height: 0;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="dream"] #resultEmpty,
html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] #resultEmpty {
  min-height: 220px;
  padding: 24px 12px;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="dream"] .moon-mark {
  box-shadow: none !important;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] .kind-options label > span {
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] .kind-options b,
html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] .capture-guide .guide-mark {
  display: none;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] .kind-options strong {
  align-self: center;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] #captureGuide {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.shanshui-mobile.shanshui[data-orchid-tool="xiangshu"] #resultEmpty > span {
  width: 44px;
  height: 44px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep consent wording, QR contrast, action states and binding feedback intact. */
html body.shanshui .wx-main .wx-heading-mark {
  display: none;
}

html body.shanshui .wx-main .wx-consent {
  padding: 12px 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

html body.shanshui .wx-main .wx-sync-panel {
  padding: 18px 0 0;
  border-top: 1px solid var(--ss-line);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

html body.shanshui .wx-main .wx-memory-records {
  gap: 0;
}

html body.shanshui .wx-main .wx-memory-record {
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--ss-line);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

/* Chart hub: the content and the action provide the hierarchy; avoid stacked empty cards. */
html body.shanshui .mystic-small-icon { filter: none !important; }
html body.shanshui .mystic-small-icon .mystic-icon-back { display: none; }
html body.shanshui .mystic-empty-object { filter: none !important; }
html body.shanshui .ss-charts .ss-chart-card {
  padding: 24px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  box-shadow: none;
}
html body.shanshui .ss-charts .ss-chart-mark { display: none; }
html body.shanshui .ss-charts .ss-hub-aside > :is(.ss-card, .ss-pair) {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #e6e1d5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html body.shanshui .ss-charts .ss-empty {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
@media (min-width: 621px) {
  html body.shanshui .ss-charts .ss-chart-card > .ss-primary { width: auto; padding-inline: 28px; }
}

/* 2026-10-28: Bazi is the homepage's primary entry on every screen. */
html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-home-bazi {
  box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .9fr);
  align-items: center; gap: 40px; padding: 40px; border: 0; border-radius: 16px;
  background: #173b37; color: #fffdf8; box-shadow: none; order: 2;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-date .ss-ganzhi { margin: 0; font-size: 12px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-date-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: #4a5652; font: 400 14px/1.6 var(--ss-sans); }
html body.shanshui.home-refresh[data-ss-shell] .ss-date .ss-date-lunar { color: #646e6a; font: inherit; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-copy { min-width: 0; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-kicker { margin: 0 0 12px; color: #d8b66a; font: 500 13px/1.7 var(--ss-sans); letter-spacing: .12em; overflow-wrap: anywhere; }
html body.shanshui.home-refresh[data-ss-shell] #ssHomeBaziTitle { margin: 0; color: #fffdf8; font: 700 clamp(30px, 3.2vw, 42px)/1.4 var(--ss-serif); letter-spacing: .04em; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-intro { max-width: 32em; margin: 16px 0 0; color: #d6e3dc; font: 400 15px/1.8 var(--ss-sans); }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-topics { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 20px 0 28px; color: #d6e3dc; font-size: 13px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-topics span + span { margin-left: 14px; padding-left: 14px; border-left: 1px solid #78938b; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-primary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 8px; background: #dfc27d; color: #173b37; font: 700 16px/1.5 var(--ss-sans); text-decoration: none; box-shadow: none; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-primary:hover { background: #ead39a; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-secondary { display: inline-flex; align-items: center; min-height: 44px; color: #d6e3dc; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-home-bazi a:focus-visible { outline: 1px solid #dfc27d !important; outline-offset: 3px !important; box-shadow: none !important; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-preview { min-width: 0; margin: 0; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-preview figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: #d6e3dc; font-size: 14px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-preview-label { color: #b8ccc4; font-size: 12px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars > div { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 4px 20px; border-top: 1px solid #68857b; border-bottom: 1px solid #68857b; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars small { margin-bottom: 6px; color: #c0d1ca; font-size: 12px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars strong { color: #f1ede3; font: 500 36px/1.15 var(--ss-serif); }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars .is-day { background: #214b43; border-color: #d8b66a; }
html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars .is-day strong { color: #dfc27d; }

/* Daily content is a quiet extension of the chart, below the main entry. */
html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-today { order: 3; padding: 22px 0; border: 0; border-bottom: 1px solid #deded4; border-radius: 0; background: transparent; color: #1a2421; box-shadow: none; }
html body.shanshui.home-refresh[data-ss-shell] .ss-today .ss-today-title { color: #1a2421; font-size: 22px; letter-spacing: 0; }
html body.shanshui.home-refresh[data-ss-shell] .ss-today :is(.ss-today-kicker, .ss-today-summary, .ss-wear-label, .ss-today-state-copy) { color: #4a5652; }
html body.shanshui.home-refresh[data-ss-shell] .ss-today :is(.ss-today-gods, .ss-today-hints b, .ss-wear-actions button, .ss-today-state-action) { color: #315d50; }
html body.shanshui.home-refresh[data-ss-shell] .ss-today .ss-today-hints b.is-caution { color: #9c4939; }
html body.shanshui.home-refresh[data-ss-shell] .ss-today :is(.ss-today-hints, .ss-today-wear) { border-color: #deded4; }
html body.shanshui.home-refresh[data-ss-shell] .ss-today .ss-today-wear { padding: 12px 0 0; }
html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-home-inspiration { order: 4; }
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration > div { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration > div a { min-height: 58px; padding: 10px 0; border: 0; border-bottom: 1px solid #deded4; border-radius: 0; background: transparent; box-shadow: none; }
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration > div a:hover { color: #174843; background: #e3eeea66; }

@media (min-width: 901px) {
  html body.shanshui.home-refresh[data-ss-shell] .home-main { grid-template-rows: repeat(6, auto); }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .home-hero { grid-row: 1; margin-bottom: 16px; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-home-bazi { grid-column: 1 / -1; grid-row: 2; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-today { grid-column: 1 / -1; grid-row: 3; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-home-inspiration { grid-column: 1; grid-row: 4; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-home-aside { grid-column: 2; grid-row: 4; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .home-daily-details { grid-row: 5; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .home-footer { grid-row: 6; }
}
@media (max-width: 900px) {
  html body.shanshui.home-refresh[data-ss-shell] .home-main { display: flex; flex-direction: column; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .home-hero { order: 1; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-home-bazi { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-preview { width: 100%; max-width: 420px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars > div { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 4px 14px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars small { width: 100%; margin: 0 0 4px; text-align: center; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-bazi-pillars strong { font-size: 27px; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .ss-home-aside { order: 5; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .home-daily-details { order: 7; }
  html body.shanshui.home-refresh[data-ss-shell] .home-main > .home-footer { order: 8; }
}
@media (max-width: 620px) {
  html body.shanshui-mobile.home-refresh[data-ss-shell] .home-main > .ss-home-bazi { padding: 24px 20px; gap: 22px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-date .ss-ganzhi { display: none; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] #ssHomeBaziTitle { font-size: 28px; letter-spacing: .02em; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-intro { margin-top: 12px; font-size: 14px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-topics { margin: 14px 0 20px; font-size: 12px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-actions { gap: 4px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-primary { width: 100%; padding: 0 16px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-secondary { width: 100%; justify-content: center; font-size: 12px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-preview figcaption { margin-bottom: 10px; font-size: 12px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-pillars { gap: 8px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-bazi-pillars strong { font-size: 23px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-home-inspiration > div { gap: 0 14px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-home-inspiration > div a { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-home-inspiration svg { width: 18px; height: 18px; }
  html body.shanshui-mobile.home-refresh[data-ss-shell] .ss-home-aside > .ss-home-question { order: 5; display: flex; padding: 20px 0 0; border: 0; border-top: 1px solid #deded4; border-radius: 0; background: transparent; }
}

/* 八字追问：单一标题、轻量建议和一个完整输入面。 */
html body.shanshui[data-ss-shell] #followupPanel {
  box-sizing: border-box; width: 100%; max-width: 760px;
  margin: 28px auto 0; padding: 24px 0 0;
  border: 0 !important; border-top: 1px solid #e6e1d5 !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #followupPanel .followup-head {
  align-items: center; gap: 12px; margin: 0 0 16px;
}
html body.shanshui[data-ss-shell] #followupPanel #followupTitle {
  margin: 0; color: #1a2421 !important; font: 600 20px/1.5 var(--ss-sans); letter-spacing: 0;
}
html body.shanshui[data-ss-shell] #followupPanel .followup-intro {
  margin: 4px 0 0; color: #64716b; font: 400 13px/1.7 var(--ss-sans);
}
html body.shanshui[data-ss-shell] #followupPanel .followup-chat-shell {
  margin: 0; padding: 0; border: 0; background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #followupSuggestions {
  margin: 0 0 12px; padding: 0; gap: 0;
}
html body.shanshui[data-ss-shell] #followupSuggestions .tianji-followup-suggestions-heading { display: none; }
html body.shanshui[data-ss-shell] #followupSuggestions .tianji-followup-suggestions-choices { gap: 8px; }
html body.shanshui[data-ss-shell] #followupSuggestions button.tianji-followup-suggestion {
  min-height: 40px; padding: 8px 14px; border: 1px solid #dce6df !important;
  border-radius: 8px !important; background: #f0f5f0 !important; color: #285d52 !important;
  font: 500 13px/1.5 var(--ss-sans); box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #followupSuggestions button.tianji-followup-suggestion:hover {
  border-color: #a8c4b7 !important; background: #e6efe8 !important;
}
html body.shanshui[data-ss-shell] #followupPanel #followupForm { margin: 0; padding: 0; border: 0; }
html body.shanshui[data-ss-shell] #followupPanel .followup-input-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html body.shanshui[data-ss-shell] #followupPanel .followup-composer {
  box-sizing: border-box; border: 1px solid #cddbd2 !important; border-radius: 12px !important;
  background: #fffdf8 !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #followupPanel .followup-composer:has(#followupInput:focus) {
  border-color: transparent !important; outline: 1px solid #287367 !important; outline-offset: 2px;
}
html body.shanshui[data-ss-shell] #followupPanel #followupInput {
  box-sizing: border-box; width: 100%; min-height: 84px; max-height: 240px;
  margin: 0; padding: 14px 16px 8px; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; color: #1a2421 !important;
  font: 400 16px/1.65 var(--ss-sans); outline: none !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #followupPanel #followupInput::placeholder { color: #7b8580 !important; }
html body.shanshui[data-ss-shell] #followupForm .followup-form-foot {
  gap: 8px 12px; margin: 0; padding: 0 12px 12px 16px;
}
html body.shanshui[data-ss-shell] #followupForm .followup-form-foot > span { color: #7b8580; font-size: 11px; }
html body.shanshui[data-ss-shell] #followupForm .followup-actions button {
  min-width: 88px; min-height: 40px; padding: 8px 14px; border-radius: 8px !important;
  font: 600 13px/1.5 var(--ss-sans); letter-spacing: 0; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #followupPanel :is(button, #btnClearFollowup):focus-visible {
  outline: 1px solid #287367 !important; outline-offset: 2px; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #followupPanel #followupStatus { padding-top: 10px; }
@media (max-width: 620px) {
  html body.shanshui[data-ss-shell] #followupPanel { margin-top: 20px; padding-top: 20px; }
  html body.shanshui[data-ss-shell] #followupPanel #followupTitle { font-size: 18px; }
  html body.shanshui[data-ss-shell] #followupSuggestions button.tianji-followup-suggestion { min-height: 44px; padding-inline: 12px; }
  html body.shanshui[data-ss-shell] #followupForm .followup-actions button { min-height: 44px; }
}

/* Quiet AI reminder below the question and follow-up composers on every screen. */
html body.shanshui[data-ss-shell] p.ai-input-disclaimer {
  display: block; width: 100%; box-sizing: border-box;
  margin: 10px 0 0; padding: 0;
  color: #8a8a8a; font: 400 12px/1.6 var(--ss-sans);
  letter-spacing: 0; text-align: center; white-space: normal;
  overflow-wrap: anywhere;
}

/* Consistent follow-up surface across relationship, Ziwei, dream and Liuyao. */
html body.shanshui[data-ss-shell] :is(#hehunFollowupPanel, #ziweiFollowupPanel, #dreamFollowupPanel, #yaoguaFollowupPanel) {
  box-sizing: border-box; width: 100%; max-width: 760px; min-width: 0;
  margin: 28px auto 0; padding: 24px 0 0;
  border: 0 !important; border-top: 1px solid #e6e1d5 !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-head, .yaogua-followup-head) {
  align-items: center; gap: 12px; margin: 0 0 16px;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-head, .yaogua-followup-head) > div { min-width: 0; }
html body.shanshui[data-ss-shell] :is(.reading-followup-head, .yaogua-followup-head) h3 {
  margin: 0; color: #1a2421 !important; font: 600 20px/1.5 var(--ss-sans); letter-spacing: 0;
}
html body.shanshui[data-ss-shell] .ss-followup-intro { margin: 4px 0 0; color: #64716b; font: 400 13px/1.7 var(--ss-sans); }
html body.shanshui[data-ss-shell] :is(.reading-followup, .yaogua-followup-panel) [data-tianji-followup-suggestions] { margin: 0 0 12px; padding: 0; gap: 0; }
html body.shanshui[data-ss-shell] [data-tianji-followup-suggestions] .tianji-followup-suggestions-heading { display: none; }
html body.shanshui[data-ss-shell] [data-tianji-followup-suggestions] .tianji-followup-suggestions-choices { gap: 8px; }
html body.shanshui[data-ss-shell] [data-tianji-followup-suggestions] button.tianji-followup-suggestion {
  min-height: 40px; padding: 8px 14px; border: 1px solid #dce6df !important;
  border-radius: 8px !important; background: #f0f5f0 !important; color: #285d52 !important;
  font: 500 13px/1.5 var(--ss-sans); box-shadow: none !important; transform: none;
}
html body.shanshui[data-ss-shell] [data-tianji-followup-suggestions] button.tianji-followup-suggestion:hover {
  border-color: #a8c4b7 !important; background: #e6efe8 !important;
}
html body.shanshui[data-ss-shell] :is(#hehunFollowupPanel, #ziweiFollowupPanel, #dreamFollowupPanel, #yaoguaFollowupPanel) form {
  margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] :is(.reading-followup, .yaogua-followup-panel) .ss-followup-input-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html body.shanshui[data-ss-shell] .ss-followup-composer {
  box-sizing: border-box; min-width: 0; border: 1px solid #cddbd2 !important;
  border-radius: 12px !important; background: #fffdf8 !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] .ss-followup-composer:has(textarea:focus) {
  border-color: transparent !important; outline: 1px solid #287367 !important; outline-offset: 2px;
}
html body.shanshui[data-ss-shell] :is(#hehunFollowupInput, #ziweiFollowupInput, #dreamFollowupInput, #yaoguaFollowupInput) {
  box-sizing: border-box; display: block; width: 100%; min-height: 84px; max-height: 240px;
  field-sizing: content; resize: none; margin: 0; padding: 14px 16px 8px;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #1a2421 !important;
  font: 400 16px/1.65 var(--ss-sans); outline: none !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] .ss-followup-composer textarea::placeholder { color: #7b8580 !important; }
html body.shanshui[data-ss-shell] :is(.reading-followup-form-foot, .yaogua-followup-form-foot) {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between;
  gap: 8px 12px; margin: 0; padding: 0 12px 12px 16px;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-form-foot, .yaogua-followup-form-foot) > span {
  color: #7b8580; font: 400 11px/1.5 var(--ss-sans); white-space: nowrap; font-variant-numeric: tabular-nums;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-actions, .yaogua-followup-actions) {
  display: flex; flex: 0 1 auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-actions, .yaogua-followup-actions) button {
  width: auto; min-width: 88px; min-height: 40px; margin: 0; padding: 8px 14px;
  border-radius: 8px !important; font: 600 13px/1.5 var(--ss-sans); letter-spacing: 0;
  white-space: nowrap; box-shadow: none !important; transform: none !important;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-send, #yaoguaFollowupSend) { background: #1f5c57 !important; border-color: #1f5c57 !important; color: #fffdf8 !important; }
html body.shanshui[data-ss-shell] :is(.reading-followup-stop, #yaoguaFollowupStop) { background: #f0f5f0 !important; border-color: #cddbd2 !important; color: #285d52 !important; }
html body.shanshui[data-ss-shell] :is(.reading-followup-clear, #yaoguaFollowupClear) { min-height: 40px; padding: 8px 0 8px 8px; color: #64716b; font: 500 12px/1.5 var(--ss-sans); white-space: nowrap; }
html body.shanshui[data-ss-shell] :is(.reading-followup, .yaogua-followup-panel, [data-tianji-followup-suggestions]) button:focus-visible {
  outline: 1px solid #287367 !important; outline-offset: 2px; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-status, .yaogua-followup-status) { min-height: 0; margin: 0; padding-top: 10px; font-size: 12px; }
html body.shanshui[data-ss-shell] :is(.reading-followup-status, .yaogua-followup-status, .reading-followup-messages, .yaogua-followup-messages):empty { display: none; }
/* Long answers stay in the reading flow, with no nested bubble around paragraphs. */
html body.shanshui[data-ss-shell] :is(.reading-followup-messages, .yaogua-followup-messages) { gap: 20px; margin: 0 0 20px; }
html body.shanshui[data-ss-shell] :is(.reading-followup-message.assistant, .yaogua-followup-message.assistant) {
  box-sizing: border-box; width: 100%; max-width: none; padding: 0; align-items: stretch;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] .yaogua-followup-message.assistant .yaogua-followup-message-body {
  box-sizing: border-box; min-width: 0; width: 100%; padding: 0; border: 0 !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-message, .yaogua-followup-message) { min-width: 0; overflow-wrap: anywhere; }
html body.shanshui[data-ss-shell] :is(.reading-followup-message.user, .yaogua-followup-message.user .yaogua-followup-message-body) {
  border: 0 !important; border-radius: 10px !important; background: #f0f5f0 !important; color: #1a2421 !important;
}
html body.shanshui[data-ss-shell] :is(.reading-followup-message-label, .yaogua-followup-message-label) { color: #64716b; letter-spacing: 0; }
html body.shanshui[data-ss-shell] :is(.reading-followup-message-body, .yaogua-followup-message-body) { font: 400 15px/1.85 var(--ss-sans); }
html body.shanshui[data-ss-shell] .hehun-followup-foot { gap: 8px 16px; }
@media (max-width: 620px) {
  html body.shanshui[data-ss-shell] :is(#hehunFollowupPanel, #ziweiFollowupPanel, #dreamFollowupPanel, #yaoguaFollowupPanel) { margin-top: 20px; padding-top: 20px; }
  html body.shanshui[data-ss-shell] :is(.reading-followup-head, .yaogua-followup-head) h3 { font-size: 18px; }
  html body.shanshui[data-ss-shell] [data-tianji-followup-suggestions] button.tianji-followup-suggestion { min-height: 44px; padding-inline: 12px; }
  html body.shanshui[data-ss-shell] :is(.reading-followup-actions, .yaogua-followup-actions) button,
  html body.shanshui[data-ss-shell] :is(.reading-followup-clear, #yaoguaFollowupClear) { min-height: 44px; }
}
/* Remaining presentation outliers: coin, quiz progress, and face-reading tools. */
html body.shanshui[data-ss-shell] .play-main .coin-workspace {
  min-height: 0; padding: 24px 16px; border: 0 !important; border-radius: 12px !important;
  background: #f0f5f0 !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] .play-main #coinVisual {
  width: 96px; height: 96px; margin: 0 0 18px; border: 1px solid #b7cfc2 !important;
  border-radius: 50% !important; outline: none !important; background: #e4eee6 !important;
  color: #285d52 !important; box-shadow: none !important; font-size: 36px;
}
html body.shanshui[data-ss-shell] .play-main .coin-workspace h3 { margin-bottom: 8px; font-size: 20px; }
html body.shanshui[data-ss-shell] .play-main #quizProgress { background: #e6ede5 !important; accent-color: #287367; }
html body.shanshui[data-ss-shell] .play-main #quizProgress::-webkit-progress-bar { background: #e6ede5 !important; }
html body.shanshui[data-ss-shell] .play-main #quizProgress::-webkit-progress-value { background: #287367 !important; }
html body.shanshui[data-ss-shell] .play-main #quizProgress::-moz-progress-bar { background: #287367 !important; }
html body.shanshui[data-ss-shell][data-orchid-tool="xiangshu"] #resultCard .result-tools {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
}
html body.shanshui[data-ss-shell][data-orchid-tool="xiangshu"] #resultCard .result-tools button {
  min-height: 40px; padding: 8px 12px; border-radius: 8px !important;
  font: 500 13px/1.5 var(--ss-sans); box-shadow: none !important;
}
@media (max-width: 620px) {
  html body.shanshui[data-ss-shell] .play-main #coinVisual { width: 80px; height: 80px; font-size: 30px; }
  html body.shanshui[data-ss-shell] .play-main .coin-workspace { padding: 20px 14px; }
  html body.shanshui[data-ss-shell][data-orchid-tool="xiangshu"] #resultCard .result-tools button { min-height: 44px; }
}

/* 搜索框聚焦时只保留外焦点线，避免与原边框叠成双圈。 */
html body.shanshui-mobile.shanshui :is(
  .records-search, .home-search-field, .profile-search, .dialog-search
):has(input:focus-visible) {
  border-color: transparent !important;
}

/* Homepage exploration: six balanced entries with equal visual weight. */
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > header {
  margin-bottom: 18px;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > header h2 {
  margin: 0; color: #263e38; font: 600 23px/1.4 var(--ss-serif); letter-spacing: .04em;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > div {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > div > a {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; min-width: 0; min-height: 168px; padding: 18px 12px;
  color: #253e37; border: 0 !important; border-radius: 12px; background: #fbfaf7;
  box-shadow: none !important; text-decoration: none; text-align: center; transform: none;
  transition: background-color 160ms ease, color 160ms ease;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-art {
  display: block; flex: 0 0 auto; width: 64px; height: 64px; color: #2f6b60;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-art svg {
  display: block; width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-copy {
  display: flex; flex-direction: column; gap: 5px; min-width: 0; align-items: center;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-copy strong {
  color: inherit; font: 600 21px/1.4 var(--ss-serif); letter-spacing: .025em;
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-copy small {
  display: block; color: #5c6c63; font: 400 13px/1.65 var(--ss-sans); overflow-wrap: anywhere;
}
@media (hover: hover) {
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > div > a:hover {
    color: #174e43; background: #e6eee7;
  }
}
html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > div > a:focus-visible {
  outline: 1px solid #2f6b60; outline-offset: 2px; background: #e6eee7;
}
@media (max-width: 620px) {
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > header { margin-bottom: 12px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > header h2 { font-size: 22px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > div > a { min-height: 156px; padding: 14px 10px; gap: 9px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-art { width: 56px; height: 56px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-copy strong { font-size: 20px; }
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] .ss-explore-copy small { font-size: 13px; line-height: 1.6; }
    }
@media (prefers-reduced-motion: reduce) {
  html body.shanshui.home-refresh[data-ss-shell] .ss-home-inspiration[data-explore-refresh="20261028-six"] > div > a { transition: none; }
}

/* Records joins the Home tabs without replacing the document or account state. */
html body.shanshui.home-refresh[data-ss-page='records'] > .home-main { display: none !important; }
.ss-records-view[hidden], .ss-records-view [hidden] { display: none !important; }
html body.shanshui .ss-records-view .ss-records-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
html body.shanshui .ss-records-view .ss-records-back { flex: 0 0 auto; padding: 10px 0; color: #1f5c57; font: 500 14px/1.5 var(--ss-sans); text-decoration: none; }
html body.shanshui .ss-records-view .ss-records-error { max-width: 720px; margin: 32px auto; padding: 0 20px; color: #4a5652; }
html body.shanshui .ss-records-view .ss-records-error a { margin-left: 16px; color: #1f5c57; }
@media (max-width: 620px) {
  html body.shanshui-mobile .ss-records-view .records-main { width: calc(100% - 32px); padding: 16px 0 28px; }
  html body.shanshui-mobile .ss-records-view .ss-records-head { margin: 0 0 16px; }
  html body.shanshui-mobile .ss-records-view .ss-records-head h1 { margin: 0; color: #1a2421; font: 700 24px/1.4 var(--ss-serif); }
  html body.shanshui-mobile .ss-records-view .records-controls { margin-top: 0; }
}

@media (min-width: 621px) {
  html body.shanshui .ss-records-view .ss-records-back { display: none; }
}

/* Unified element colours on structured charts, including the dark home preview. */
html body.shanshui {
  --wood-ink: #28624c; --wood-fill: #4b8a68; --wood-wash: #e5eee7; --ss-wood: var(--wood-ink);
  --fire-ink: #a24542; --fire-fill: #c9695e; --fire-wash: #f6e6e2; --ss-fire: var(--fire-ink);
  --earth-ink: #6c5034; --earth-fill: #8a684d; --earth-wash: #ede6dc; --ss-earth: var(--earth-ink);
  --metal-ink: #8f6000; --metal-fill: #b87900; --metal-wash: #f6edcf; --ss-metal: var(--metal-ink);
  --water-ink: #356b84; --water-fill: #5a8ba9; --water-wash: #e3edf3; --ss-water: var(--water-ink);
}
html body.shanshui [data-wuxing="木"] { --wx-ink: var(--wood-ink); --wx-wash: var(--wood-wash); }
html body.shanshui .ss-wx-bar .is-wood { background: var(--wood-fill); }
html body.shanshui [data-wuxing="火"] { --wx-ink: var(--fire-ink); --wx-wash: var(--fire-wash); }
html body.shanshui .ss-wx-bar .is-fire { background: var(--fire-fill); }
html body.shanshui [data-wuxing="土"] { --wx-ink: var(--earth-ink); --wx-wash: var(--earth-wash); }
html body.shanshui .ss-wx-bar .is-earth { background: var(--earth-fill); }
html body.shanshui [data-wuxing="金"] { --wx-ink: var(--metal-ink); --wx-wash: var(--metal-wash); }
html body.shanshui .ss-wx-bar .is-metal { background: var(--metal-fill); }
html body.shanshui [data-wuxing="水"] { --wx-ink: var(--water-ink); --wx-wash: var(--water-wash); }
html body.shanshui .ss-wx-bar .is-water { background: var(--water-fill); }
html body.shanshui :is([data-wuxing], [data-wuxing] > .wx-char, [data-wuxing] > .wx-element) { color: var(--wx-ink) !important; }
html body.shanshui .wx-inline { font: inherit; letter-spacing: inherit; }
html body.shanshui .ss-day-master { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--wx-wash); font-size: 13px; font-weight: 600; }
html body.shanshui .ss-bazi-preview {
  --wood-ink: #93d5ad; --fire-ink: #ffaaa0; --earth-ink: #dfb28d; --metal-ink: #f4d36f; --water-ink: #9cc8f2;
}
html body.shanshui .ss-element-key { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: 13px; line-height: 1.6; }
html body.shanshui .ss-element-key span { display: inline-flex; align-items: center; gap: 5px; }
html body.shanshui .ss-element-key span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* My account is an in-document Home view; standalone routes remain available. */
html body.shanshui.home-refresh[data-ss-page='mine'] > .home-main { display:none !important; }
html body.shanshui .ss-mine-view[hidden], html body.shanshui .ss-mine-view [hidden] { display:none !important; }
.ss-mine-view {
 --mine-canvas:#f4f1ea; --mine-paper:#fffdf8; --mine-paper-solid:#fffdf8; --mine-ink:#1a2421;
 --mine-muted:#64716b; --mine-line:#e6e1d5; --mine-line-strong:#cddbd2; --mine-purple:#287367;
 --mine-purple-deep:#174843; --mine-lavender:#e3eeea; --mine-mint:#e7f6f1; --mine-jade:#367463;
 --mine-blue:#eaf3fb; --mine-gold:#fff4dc; --mine-rose:#f9ebf0;
}
html body.shanshui .ss-mine-error { max-width:720px; margin:32px auto; padding:0 20px; color:#4a5652; }
html body.shanshui .ss-mine-error a { margin-left:16px; color:#1f5c57; }
@media(max-width:620px) {
 html body.shanshui-mobile .ss-mine-view .mine-main { padding-top:16px !important; }
 html body.shanshui-mobile .ss-mine-view .orchid-page-heading { display:flex; justify-content:space-between; align-items:center; margin:0 0 16px; }
 html body.shanshui-mobile .ss-mine-view .orchid-page-heading :is(p,span) { display:none; }
 html body.shanshui-mobile .ss-mine-view #ssMineTitle { margin:0; font:700 24px/1.4 var(--ss-serif); color:#1a2421; }
 html body.shanshui-mobile .ss-mine-view .orchid-heading-link { color:#1f5c57; font-size:14px; }
}

/* Final public-tool pass: calm surfaces, readable options and consistent targets. */
html body.shanshui[data-ss-shell] .home-daily-guest {
  padding: 24px 0; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] .home-daily-guest > span { color: var(--ss-primary); }
html body.shanshui[data-ss-shell] .home-daily-guest .home-secondary {
  color: var(--ss-primary) !important; background: transparent !important;
  border-color: var(--ss-outline) !important; border-radius: 8px !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] .ss-icon-submit { min-width: 44px; min-height: 44px; border-radius: 8px; }

/* Each person's heading separates the two forms; no second tinted card. */
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-card {
  min-width: 0; padding: 8px 0 20px; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-card legend strong { font-size: 22px; }
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-row { padding-block: 14px; }
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-label { font-size: 13px; }
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-value [data-location-requirement] { font-size: 12px; }
html body.shanshui[data-ss-shell] #hehunForm :is(.hehun-input-trigger, .hehun-input-person input) {
  background: var(--ss-paper) !important; border-radius: 8px !important; font-size: 14px;
}
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-segment,
html body.shanshui[data-ss-shell] :is(#baziForm, #ziweiForm).birth-input-simple :is(.seg, .segment) {
  gap: 4px; padding: 0; background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-segment button,
html body.shanshui[data-ss-shell] :is(#baziForm, #ziweiForm).birth-input-simple :is(.seg, .segment) button {
  min-height: 40px; padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 1.4;
}
html body.shanshui[data-ss-shell] #hehunForm .hehun-input-segment button:not([aria-pressed='true']),
html body.shanshui[data-ss-shell] :is(#baziForm, #ziweiForm).birth-input-simple :is(.seg, .segment) button:not(.active) {
  color: var(--ss-muted) !important; background: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] #hehunForm :is(.hehun-input-advanced > summary, .hehun-input-saved > summary) {
  min-height: 44px; box-sizing: border-box; font-size: 13px;
}
html body.shanshui[data-ss-shell] .hehun-input-picker {
  background: var(--ss-paper) !important; color: var(--ss-ink);
  border-color: var(--ss-line) !important; box-shadow: none !important; border-radius: 16px;
}
html body.shanshui[data-ss-shell] :is(.hehun-input-picker-trail button, .hehun-input-picker-foot button) {
  min-height: 40px; font-size: 13px; border-radius: 8px; color: var(--ss-muted);
  background: transparent; box-shadow: none;
}
html body.shanshui[data-ss-shell] .hehun-input-choice {
  color: var(--ss-ink); background: var(--ss-paper); border-color: var(--ss-line); font-size: 13px;
}
html body.shanshui[data-ss-shell] :is(.hehun-input-choice[aria-pressed='true'], .hehun-input-picker-trail button[aria-current]) {
  color: var(--ss-paper); background: var(--ss-primary); border-color: var(--ss-primary); box-shadow: none;
}
html body.shanshui[data-ss-shell] .hehun-input-choice:hover:not([aria-pressed='true']) {
  color: var(--ss-primary); background: var(--ss-wash); border-color: var(--ss-outline);
}
html body.shanshui[data-ss-shell] .hehun-input-picker-foot { border-color: var(--ss-line); }
html body.shanshui[data-ss-shell] :is(.hehun-input-picker-search, #ziweiForm .picker-trigger, #ziweiForm #name) {
  background: var(--ss-paper) !important;
}
html body.shanshui[data-ss-shell] :is(.calendar-picker-tab, .picker-tab, .location-step) > span {
  color: inherit !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important;
}
html body.shanshui[data-ss-shell] .calendar-picker-option > i { background: var(--ss-primary) !important; }
html body.shanshui[data-ss-shell] .calendar-picker-option:not([aria-selected='true']):not(.is-selected):not(.selected) {
  background: var(--ss-paper) !important; border-color: transparent !important; box-shadow: none !important;
}

html body.shanshui[data-ss-shell] :is(#baziForm, #ziweiForm).birth-input-simple #genderSeg button { min-height: 40px; }

/* Quiet status and secondary actions keep meaning without another nested card. */
html body.shanshui[data-ss-shell] .records-status[data-state='warning'] {
  color: #805f23 !important; background: #f7f0df !important; border-color: #dccda8 !important;
}
html body.shanshui[data-ss-shell] .payment-order > span[data-status='paid'] { border-color: var(--ss-outline) !important; }
html body.shanshui[data-ss-shell] .mine-section-heading > div > p { color: var(--ss-primary) !important; }
html body.shanshui[data-ss-shell] :is(.account-danger-settings b, #accountDelete) { color: #8a3f32 !important; }
html body.shanshui[data-ss-shell] #coinReactions button[aria-pressed='true'] {
  color: var(--ss-paper) !important; background: var(--ss-primary) !important; border-color: var(--ss-primary) !important;
}
html body.shanshui[data-ss-shell] :is(.wx-code-panel, .wx-sync-panel, .wx-memory-record) {
  border: 0 !important; border-top: 1px solid var(--ss-line) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; padding-inline: 0;
}
html body.shanshui[data-ss-shell] :is(.wx-text-button, .wx-unlink, .footer-policy-btn) {
  min-height: 40px; padding-block: 8px; border-radius: 8px; font-size: 13px;
}

@media (max-width: 760px) {
  html body.shanshui[data-ss-shell] #hehunForm .hehun-input-card + .hehun-input-card {
    padding-top: 24px; border-top: 1px solid var(--ss-line) !important;
  }
  html body.shanshui[data-ss-shell] #hehunForm .hehun-input-row { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 620px) {
  html body.shanshui[data-ss-shell] #hehunForm .hehun-input-segment button,
  html body.shanshui[data-ss-shell] :is(#baziForm, #ziweiForm).birth-input-simple :is(.seg, .segment) button {
    min-height: 44px; padding-inline: 10px; font-size: 12px;
  }
  html body.shanshui[data-ss-shell] :is(.hehun-input-picker-trail button, .hehun-input-picker-foot button, .wx-text-button, .wx-unlink, .footer-policy-btn) { min-height: 44px; }
  html body.shanshui[data-ss-shell] #hehunForm .hehun-input-trigger { font-size: 14px; }
  html body.shanshui[data-ss-shell] #hehunForm .hehun-input-person input { font-size: 16px; }
  html body.shanshui[data-ss-shell] #ziweiForm.birth-input-simple #genderSeg button { min-height: 44px !important; }
}

/* Account and check-in polish. Append to the shared shanshui layer.
   Scoped presentation only: keep form state, reward text and focus rules. */

html body.shanshui-mobile.shanshui .checkin-main .checkin-progress {
  background: var(--ss-line) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-progress > span {
  background: var(--ss-primary) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp {
  min-width: 0;
  border-radius: 10px;
  box-shadow: none !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-gift:not(.is-signed):not(.is-next):not(.is-grand) {
  border-color: var(--ss-line) !important;
  background: transparent !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-signed {
  border: 1px solid var(--ss-outline) !important;
  background: var(--ss-wash) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-signed b {
  color: var(--ss-primary) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-next {
  border: 1px solid var(--ss-primary) !important;
  background: var(--ss-paper) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-next :is(b, small) {
  color: var(--ss-primary) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-grand {
  border: 1px solid var(--ss-gold-light) !important;
  background: #f6efdf !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-grand :is(b, small),
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp.is-gift small,
html body.shanshui-mobile.shanshui .checkin-main .checkin-milestone-reward {
  color: var(--ss-gold-text) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-milestone.is-claimed {
  border-color: var(--ss-outline) !important;
  background: var(--ss-wash) !important;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-milestone.is-claimed .checkin-milestone-mark {
  color: var(--ss-primary) !important;
  background: var(--ss-paper) !important;
}
html body.shanshui-mobile.shanshui .checkin-main :is(.checkin-feedback button, .checkin-doll-claim) {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-doll-claim {
  color: var(--ss-primary) !important;
  border: 1px solid var(--ss-outline) !important;
  background: var(--ss-paper) !important;
}
html body.shanshui-mobile.shanshui .checkin-main :is(.checkin-stamp > span, .checkin-stamp small, .checkin-milestone h3, .checkin-milestone-state) {
  font-size: 11px;
  line-height: 1.6;
}
html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-milestones {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  html body.shanshui-mobile.shanshui .checkin-main :is(
    .checkin-kicker, .checkin-eyebrow, .checkin-eyebrow time,
    .checkin-daily-action > span, .checkin-prize-kicker, .checkin-prize-note,
    .checkin-wallet-stats span, .checkin-section-heading div > p:not(.checkin-kicker),
    .checkin-progress-number > span, .checkin-journey-footer,
    .checkin-journey-footer p, .checkin-section-note, .checkin-goal-summary p,
    .checkin-goal-summary > span:last-child, .checkin-doll-status,
    .checkin-claim-hint, .checkin-history time, .checkin-full-reward span
  ) {
    font-size: 11px;
    line-height: 1.6;
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp {
    min-height: 80px;
    padding: 8px 3px;
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-milestones {
    gap: 8px;
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-milestone {
    padding: 14px 4px;
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-feedback {
    flex-wrap: wrap;
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-doll-action {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  html body.shanshui-mobile.shanshui .checkin-main .checkin-stamp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html body.shanshui-mobile.shanshui .checkin-main .checkin-milestones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The register/login link row is not a segmented control. */
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-auth-tabs.account-mode-switch {
  gap: 4px;
  padding: 4px 0 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-mode-switch::before,
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-mode-switch::after {
  content: none !important;
}
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-mode-switch > button {
  min-height: 44px;
  padding: 8px;
  border: 0 !important;
  color: var(--ss-primary) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
}

/* Identity tabs keep their selected button, without painting a full-width bar. */
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-channel-tabs {
  gap: 8px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-channel-tabs > button {
  min-width: 64px;
  min-height: 44px;
  padding: 8px 14px;
}
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-channel-tabs > button:is(.active, [aria-selected='true']) {
  color: var(--ss-paper) !important;
  background: var(--ss-primary) !important;
}

/* Keep the policy disclosure and its focus outline, with no nested surface. */
html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog :is(.account-page-policy, .account-page-policy > summary, .account-page-policy > div) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Tablet login stays in one scrollable column, including long register forms. */
@media (min-width: 621px) and (max-width: 980px) {
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-dialog-surface {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: max(64px, calc(env(safe-area-inset-top) + 48px)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)) !important;
    overflow-y: auto;
    scroll-padding-block: 24px;
  }
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .ss-auth-aside {
    display: none !important;
  }
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-dialog-surface > .mystic-login-content {
    flex: 0 0 auto;
    width: min(480px, 100%);
    padding: 28px 32px;
    margin: auto 0 0 !important;
  }
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-dialog-surface > .login-page-footer {
    position: static;
    flex: 0 0 auto;
    width: min(480px, 100%);
    margin: 24px auto auto;
    padding: 0;
  }
}

/* Keep the desktop split, but place policy links after the form in its column. */
@media (min-width: 981px) {
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-dialog-surface {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    grid-template-rows: minmax(min-content, 1fr) auto;
    min-height: 0;
  }
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .ss-auth-aside {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-inline: clamp(32px, 4vw, 56px);
  }
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-dialog-surface > .mystic-login-content {
    grid-column: 2;
    grid-row: 1;
    margin: 48px 0 24px !important;
  }
  html[data-account-page='standalone'][data-account-ui='card'] body.shanshui-mobile.shanshui #accountDialog .account-dialog-surface > .login-page-footer {
    position: static;
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    width: min(420px, calc(100% - 48px));
    margin: 0 0 max(24px, env(safe-area-inset-bottom));
    padding: 0;
  }
}
