/* The public shell is HTML. These rules only size content placeholders and the
   single records filter tree; no account state or complete page is concealed. */
html { background: #f4f1ea; }
body.shanshui .ss-first-home { box-sizing: border-box; padding: 28px; border-radius: 16px; background: #173b37; color: #f1ede3; }
body.shanshui .ss-first-home h2 { margin: 8px 0 16px; color: inherit; font: 700 28px/1.5 var(--ss-serif); }
body.shanshui .ss-first-home > p { color: #d6e3dc; font-size: 14px; line-height: 1.7; }
body.shanshui .ss-first-home .ss-first-eyebrow { margin: 0; color: #d8b66a; font-size: 12px; }
body.shanshui .ss-first-lines { display: grid; gap: 12px; margin: 24px 0; }
body.shanshui .ss-first-lines i { display: block; width: 88%; height: 12px; border-radius: 4px; background: #e3eeea; }
body.shanshui .ss-first-lines i:nth-child(2) { width: 72%; }
body.shanshui .ss-first-lines i:last-child { width: 56%; }
body.shanshui .ss-first-home .ss-first-lines i { background: rgba(241,237,227,.12); }
body.shanshui .ss-first-aside { display: flex; flex-direction: column; gap: 16px; }
body.shanshui .ss-first-aside h2, body.shanshui .ss-first-columns h2 { margin: 0 0 12px; color: #1a2421; font: 700 20px/1.5 var(--ss-serif); }
body.shanshui .ss-first-aside p, body.shanshui .ss-first-columns p { margin: 0 0 16px; color: #4a5652; font-size: 14px; line-height: 1.7; }
.ss-first-hub, .ss-first-route { display: none; }
.ss-first-target { position: absolute; width: 0; height: 0; overflow: hidden; }
body.shanshui .ss-first-hub:has(.ss-first-target:target) { display: block; box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
body.shanshui .ss-first-hub:has(#ask:target) .ss-first-ask,
body.shanshui .ss-first-hub:has(#charts:target) .ss-first-charts { display: block; }
body.shanshui:has(.ss-first-hub #ask:target) .home-main,
body.shanshui:has(.ss-first-hub #charts:target) .home-main { display: none !important; }
body.shanshui:has(.ss-first-hub .ss-first-target:target) :is(.ss-topnav, .ss-nav) [data-ss-tab='today'] { color: #4a5652; font-weight: 500; box-shadow: none; }
body.shanshui:has(.ss-first-hub #ask:target) :is(.ss-topnav, .ss-nav) [data-ss-tab='ask'],
body.shanshui:has(.ss-first-hub #charts:target) :is(.ss-topnav, .ss-nav) [data-ss-tab='charts'] { color: #1f5c57; font-weight: 700; }
body.shanshui .ss-first-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: 24px; }
body.shanshui .ss-first-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
body.shanshui .ss-first-pillars i { height: 152px; border-radius: 8px; background: #e3eeea; }
@media (min-width: 621px) {
  html body.shanshui.home-refresh .home-main > .ss-first-home { grid-column: 1; grid-row: 2 / 4; }
  html body.shanshui.home-refresh .home-main > .ss-first-aside { grid-column: 2; grid-row: 2 / 6; }
  html body.shanshui .records-main > .records-controls[data-ss-static-records] { display: contents; }
  html body.shanshui .records-controls[data-ss-static-records] > .records-search { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; width: min(360px, 100%); margin: 0 0 24px; border-radius: 999px !important; }
  html body.shanshui .records-controls[data-ss-static-records] > .ss-records-side { grid-column: 1; grid-row: 2 / 8; align-self: start; display: flex; flex-direction: column; gap: 16px; }
}
@media (min-width: 621px) and (max-width: 900px) {
  html body.shanshui.home-refresh .home-main > .ss-first-home { order: 2; }
  html body.shanshui.home-refresh .home-main > .ss-first-aside { order: 4; }
  html body.shanshui .records-controls[data-ss-static-records] > .records-search { grid-column: 1 !important; grid-row: auto !important; order: 1; justify-self: stretch; width: 100%; }
  html body.shanshui .records-controls[data-ss-static-records] > .ss-records-side { grid-column: 1 !important; grid-row: auto !important; order: 2; margin-bottom: 16px; }
}
@media (max-width: 900px) {
  body.shanshui .ss-first-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  html body.shanshui.home-refresh .home-main > .ss-first-home { order: 2; }
  html body.shanshui.home-refresh .home-main > .ss-first-aside { order: 4; }
  body.shanshui .ss-first-home { padding: 22px 20px; }
  body.shanshui .ss-first-home h2 { font-size: 26px; }
  body.shanshui .ss-first-hub:has(.ss-first-target:target) { padding: 24px 20px 96px; }
  html body.shanshui .records-controls[data-ss-static-records] > .ss-records-side { display: contents; }
}

/* WeChat assistant uses its own legacy palette. Keep this override scoped to
   its existing wx-* controls and dialogs, including keyboard focus. */
html body.shanshui :is(.wx-card, .wx-dialog) { background: var(--ss-paper); color: var(--ss-ink); border-color: var(--ss-line); }
html body.shanshui :is(.wx-back, .wx-heading p, .wx-eyebrow, .wx-text-link, .wx-text-button, .wx-code-row code) { color: var(--ss-primary); }
html body.shanshui :is(.wx-heading-mark, .wx-profile-name > span, .wx-notice) { background: var(--ss-wash); color: var(--ss-primary); }
html body.shanshui :is(.wx-heading span:not(.wx-heading-mark), .wx-lead, .wx-consent, .wx-qr-panel p, .wx-code-panel > p:first-child, .wx-sync-panel > p, .wx-empty p, .wx-dialog > p) { color: var(--ss-muted); }
html body.shanshui :is(.wx-profile-name small, .wx-profile-details dt, .wx-muted, .wx-footer-note, .wx-unlink, .wx-memory-record small) { color: var(--ss-hint); }
html body.shanshui :is(.wx-profile-details dd, .wx-memory-record p) { color: var(--ss-ink); }
html body.shanshui :is(.wx-consent, .wx-code-panel, .wx-sync-panel, .wx-memory-record) { background: var(--ss-canvas); }
html body.shanshui .wx-consent input { accent-color: var(--ss-primary); }
html body.shanshui .wx-button { background: var(--ss-primary); color: var(--ss-paper); border-color: var(--ss-primary); box-shadow: none; }
html body.shanshui .wx-button:is(:hover, :active):not(:disabled) { background: var(--ss-pressed); border-color: var(--ss-pressed); }
html body.shanshui .wx-secondary { background: var(--ss-wash); color: var(--ss-pressed); border-color: var(--ss-outline); }
html body.shanshui .wx-qr-panel { background: var(--ss-paper); border-color: var(--ss-line); }
html body.shanshui .wx-badge { background: var(--ss-wash); color: var(--ss-primary); }
html body.shanshui #wx-status:not([data-tone='error']):not([data-tone='success']) { color: var(--ss-muted); }
html body.shanshui #wx-status[data-tone='success'] { color: var(--ss-primary); }
html body.shanshui :is(.wx-main, .wx-dialog) :focus-visible { outline: 1px solid var(--ss-primary) !important; outline-offset: 2px !important; box-shadow: none !important; }
html body.shanshui .wx-dialog::backdrop { background: rgba(16, 32, 30, .28); }
@media (forced-colors: active) {
  html body.shanshui :is(.wx-main, .wx-dialog) :focus-visible { outline-color: Highlight !important; }
}
