[hidden] { display: none !important; }
.top-event-reminder, #palaceActionChecklist, .chart-side-note { display: none !important; }
.input-panel .ziwei-proof-strip, .input-panel .side-brand ~ .boundary-note:not(#chartStatus), .input-panel .section-divider { display: none; }
.ziwei-reading { padding: 0 0 24px; scroll-margin-top: 90px; min-width: 0; }
.reading-tabs { display: flex; border-bottom: 1px solid #c5cdcb; gap: 24px; margin-bottom: 24px; }
.reading-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: #4c5754; padding: 14px 2px; font: inherit; cursor: pointer; min-height: 48px; border-radius: 0; }
.reading-tabs button[aria-selected=true] { color: #892d25; border-bottom-color: #892d25; font-weight: 700; }
.reading-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reading-heading h2 { font-size: 26px; line-height: 1.4; margin: 4px 0 10px; letter-spacing: 0; }
.reading-eyebrow { font-size: 14px; color: #26645a; margin: 0; }
.reading-meta { font-size: 14px; line-height: 1.7; color: #52605c; overflow-wrap: anywhere; }
.reading-selects { display: flex; gap: 18px; flex-wrap: wrap; margin: 24px 0; padding: 16px 0; border-block: 1px solid #dae0de; }
.reading-selects label { display: grid; gap: 8px; flex: 1 1 190px; font-size: 14px; min-width: 0; color: #52605c; }
.reading-selects select { width: 100%; min-width: 0; min-height: 44px; background: #fff; color: #172b25; border: 1px solid #a6b8b1; border-radius: 4px; padding: 8px; font: inherit; }
.reading-topic-choice { flex: 1 1 100%; border-top: 1px solid #dae0de; padding-top: 14px; }
.reading-topic-choice-label { display: block; color: #20352b; font-weight: 700; line-height: 1.5; }
.reading-topic-choice p { margin: 4px 0 10px; color: #52645a; font-size: 13px; line-height: 1.7; }
.reading-topic-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.reading-topic-chip, .reading-focus-open, .reading-timeline-open { min-height: 40px; padding: 7px 12px; border: 1px solid #a6b8b1; border-radius: 4px; background: #fff; color: #245449; font: inherit; line-height: 1.45; cursor: pointer; }
.reading-topic-chip:hover, .reading-focus-open:hover, .reading-timeline-open:hover { background: #edf4f0; }
.reading-topic-chip[aria-pressed=true] { border-color: #8b3029; background: #f8eeea; color: #722923; font-weight: 700; }
.reading-topic-chip:focus-visible, .reading-focus-open:focus-visible, .reading-timeline-open:focus-visible { outline: 2px solid #256b5d; outline-offset: 3px; }
.customer-reading { font-family: system-ui, sans-serif; font-size: 18px; line-height: 2; color: #172b25; margin: 24px 0; letter-spacing: 0; overflow-wrap: anywhere; }
.customer-reading { white-space: pre-line; }
.reading-boundary { font-size: 14px; line-height: 1.7; color: #56605c; border-top: 1px solid #dae0de; padding-top: 18px; }
#copyReading { border: 1px solid #a6b8b1; background: #fff; border-radius: 4px; color: #245449; min-height: 44px; padding: 8px 12px; white-space: nowrap; cursor: pointer; }
.reading-tabs button:focus-visible, #copyReading:focus-visible { outline: 2px solid #256b5d; outline-offset: 4px; }
#ziweiChartPanel { min-width: 0; }
.display-panel { min-width: 0; }
.tool-ziwei .main-layout { align-items: start; }
.tool-ziwei .input-panel { position: static; }
.tool-ziwei .side-brand h1 { font-size: 30px; letter-spacing: 0; }
.tool-ziwei .ziwei-visual-card { margin-top: 36px; }
.tool-ziwei .primary-chart { background:#fff; border:1px solid #aab9b2; border-radius:4px; padding:12px; }
.tool-ziwei .primary-chart > .panel-title { color:#173d32; }
.tool-ziwei .chart-wrapper { overflow-x:auto; width:100%; }
.tool-ziwei #chartGrid { min-width:640px; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(4,170px); gap:4px; }
.tool-ziwei #chartGrid .palace-cell { background:#f8fbf9; border:1px solid #8da298; border-radius:2px; padding:10px; font-size:14px; overflow:hidden; }
.tool-ziwei #chartGrid .palace-cell.selected { outline:2px solid #933326; outline-offset:-2px; }
.tool-ziwei #chartGrid .palace-name { position:static; font-size:17px; line-height:1.4; color:#183e31; }
.tool-ziwei #chartGrid .palace-branch { position:static; font-size:14px; color:#815c1f; line-height:1.5; }
.tool-ziwei #chartGrid .palace-stars { position:static; font-size:14px; line-height:1.55; color:#263f36; margin-top:5px; }
.tool-ziwei #chartGrid .main-star { color:#973a2a; font-size:15px; }
.tool-ziwei #chartGrid .palace-subject, .tool-ziwei #chartGrid .chain-badge { display:none; }
.tool-ziwei #chartGrid .palace-dynamic-tags { position:static; display:flex; flex-wrap:wrap; font-size:12px; gap:4px; margin-top:6px; }
.tool-ziwei #chartGrid .palace-dynamic-tag { color:#385749; font-size:12px; }
.tool-ziwei #chartGrid .palace-score-badge { position:absolute; bottom:5px; right:5px; font-size:12px; }
.tool-ziwei #chartGrid .center-merged { background:#fff; color:#253c33; overflow:auto; min-height:0; padding:10px; }
.tool-ziwei .center-merged .center-section { font-size:14px; line-height:1.7; }
.tool-ziwei .center-merged .center-section .val { color:#253c33; font-size:14px; }
.tool-ziwei .center-merged .center-foot { font-size:14px; flex-wrap:wrap; }
.tool-ziwei .ziwei-flow-details { overflow:auto; margin-top:20px; }
.tool-ziwei .ziwei-flow-details .flow-board { min-width:640px; padding:12px; background:#fff; border:1px solid #aab9b2; }
.tool-ziwei .ziwei-flow-details .flow-row { display:grid; grid-template-columns:42px repeat(12,minmax(0,1fr)); gap:4px; margin-bottom:8px; }
.tool-ziwei .ziwei-flow-details .flow-chip { font-size:14px; min-width:0; height:auto; }
.tool-ziwei .mobile-sticky { position: static; width: auto; margin: 20px 16px; box-shadow: none; }
@media(max-width: 700px) {
  .reading-heading h2 { font-size: 23px; }
  .customer-reading { font-size: 17px; line-height: 1.95; }
  .reading-selects { gap: 14px; }
  .reading-selects label { flex-basis: 100%; }
  .reading-tabs { margin-bottom: 18px; }
  #chartTab { min-width: 44px; }
}

.reading-focus { margin: 8px 0 24px; padding-top: 18px; border-top: 1px solid #cbd7d0; }
.reading-focus-heading { display: grid; gap: 4px; margin-bottom: 14px; }
.reading-focus-heading h3 { margin: 0; color: #20352b; font-size: 20px; line-height: 1.45; }
.reading-focus-heading p { margin: 0; color: #52645a; font-size: 14px; line-height: 1.75; }
.reading-focus-list { display: grid; gap: 12px; }
.reading-focus-item { padding: 16px 18px; border: 1px solid #cbd7d0; border-radius: 6px; background: #f7faf8; }
.reading-focus-item h4 { margin: 0 0 8px; color: #722923; font-size: 17px; line-height: 1.5; }
.reading-focus-item p { margin: 0; }
.reading-focus-item .reading-focus-window { margin-top: 10px; color: #52645a; font-size: 13px; line-height: 1.7; }
.reading-focus-item .reading-focus-text { color: #20352b; line-height: 1.85; }
.reading-focus-item .reading-focus-check { margin-top: 8px; padding-top: 8px; border-top: 1px solid #dbe5df; color: #52645a; font-size: 14px; line-height: 1.7; }
.reading-focus-open { margin-top: 12px; font-size: 14px; }
.reading-full-timeline { margin: 4px 0 24px; border-top: 1px dashed #cbd7d0; border-bottom: 1px dashed #cbd7d0; }
.reading-full-timeline summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #25604e; font-weight: 700; }
.reading-timeline-intro { margin: 0 0 14px; color: #52645a; font-size: 14px; line-height: 1.75; }
.reading-timeline-list { display: grid; gap: 12px; margin: 0 0 18px; }
.reading-timeline-card { position: relative; padding: 16px 18px 18px; border: 1px solid #cbd7d0; border-radius: 6px; background: #f7faf8; }
.reading-timeline-card h4 { margin: 0 0 14px; padding-right: 42px; color: #722923; font-size: 17px; line-height: 1.5; }
.reading-timeline-index { position: absolute; top: 16px; right: 18px; color: #8b3029; font-size: 12px; letter-spacing: 0; }
.reading-timeline-rows { display: grid; gap: 12px; }
.reading-timeline-row { padding-top: 12px; border-top: 1px solid #dbe5df; }
.reading-timeline-row:first-child { padding-top: 0; border-top: 0; }
.reading-timeline-row strong { color: #20352b; line-height: 1.5; }
.reading-timeline-row p { margin: 5px 0 8px; color: #31483d; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.reading-timeline-open { font-size: 13px; min-height: 38px; }
.reading-timeline-raw { border-top: 1px solid #dbe5df; padding-top: 8px; }
.reading-timeline-raw summary { min-height: 40px; display: flex; align-items: center; color: #52645a; cursor: pointer; font-size: 14px; }
.reading-timeline-raw .customer-reading { margin-top: 10px; }
.reading-review-guide { margin: 22px 0 10px; padding: 18px; border: 1px solid #cbd7d0; border-left: 4px solid #8b3029; background: #fbfaf7; }
.reading-review-guide h3 { margin: 0 0 8px; color: #20352b; font-size: 18px; line-height: 1.5; }
.reading-review-guide p, .reading-review-guide li { color: #52645a; font-size: 14px; line-height: 1.8; }
.reading-review-guide ol { margin: 10px 0 14px; padding-left: 22px; }
.reading-review-guide a { color: #722923; font-weight: 700; text-underline-offset: 3px; }
@media(max-width:700px) {
  .reading-focus { margin-top: 4px; padding-top: 14px; }
  .reading-focus-item { padding: 14px; }
  .reading-focus-heading h3 { font-size: 18px; }
  .reading-focus-item .reading-focus-text { line-height: 1.8; }
  .reading-timeline-card { padding: 14px; }
  .reading-timeline-index { top: 14px; right: 14px; }
}

@media (max-width:680px) {
  .tool-ziwei .brand { min-height:44px; display:flex; align-items:center; }
  .tool-ziwei .sr-review-inline a { min-height:44px; display:inline-flex; align-items:center; }
  .tool-ziwei .sr-review-option { min-height:44px; display:flex; align-items:center; }
  .tool-ziwei .footer-contact a { min-height:44px; height:44px; display:flex; align-items:center; }
}
