/* Scoped native Bazi presentation; uses the existing product palette. */
.bazi-report { color: #e9edf6; margin: 6px 0 28px; }
.bazi-report-header { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; margin-bottom: 22px; }
.bazi-report-eyebrow { margin: 0 0 12px; color: #a7b7d1; font-size: 11px; font-weight: 600; letter-spacing: .15em; }
.bazi-report h3 { font-size: clamp(24px, 2.5vw, 35px); line-height: 1.4; margin: 0 0 12px; color: #f4f6fc; letter-spacing: -.025em; }
.bazi-report-lead { color: #b8c4d6; font-size: 14px; line-height: 1.9; margin: 0; max-width: 720px; }
.bazi-report-tag { flex: none; border: 1px solid #34493f; border-radius: 99px; padding: 7px 11px; color: #b4d7c5; font-size: 11px; background: #18251f; }
.bazi-pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 24px 0 30px; }
.bazi-pillar { background: linear-gradient(145deg, #192334, #121a27); border: 1px solid #2b394d; border-radius: 14px; padding: 17px 12px; text-align: center; }
.bazi-pillar[data-pillar="day"] { border-color: #7387ac; background: linear-gradient(145deg, #25334a, #172235); }
.bazi-pillar > span { color: #aab9cd; font-size: 12px; }
.bazi-pillar > strong { display: flex; gap: 12px; justify-content: center; margin: 13px 0 10px; font-weight: 500; font-size: clamp(25px, 3vw, 36px); line-height: 1.3; }
.bazi-pillar i { font-style: normal; color: #b9c9e4; }
.bazi-pillar small { color: #b5c3d6; font-size: 12px; }
.bazi-report-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 14px; }
.bazi-report-section-heading > span { font-size: 11px; letter-spacing: .12em; color: #b7c5dc; font-weight: 600; flex: none; }
.bazi-report-section-heading p { font-size: 12px; color: #99abc4; margin: 0; }
.bazi-structure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.bazi-structure-card { background: #141e2d; border: 1px solid #2d3a4e; border-radius: 16px; padding: 20px; min-width: 0; }
.bazi-strength-card { grid-column: 1 / -1; background: #1d211f; border-color: #4a4a3c; }
.bazi-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 18px; }
.bazi-card-number { color: #879ab7; font-size: 12px; letter-spacing: .12em; }
.bazi-status { color: #b8cee8; border: 1px solid #384c68; border-radius: 99px; padding: 4px 8px; font-size: 10px; }
.bazi-status-method { color: #c9bce3; border-color: #514561; }
.bazi-status-reference { color: #e0d1a6; border-color: #6a6249; }
.bazi-structure-card h4 { font-size: 16px; font-weight: 550; color: #eef2f9; margin: 0 0 14px; }
.bazi-structure-card p { font-size: 13px; line-height: 1.9; color: #b5c3d7; margin: 0 0 14px; }
.bazi-structure-card .bazi-card-value { color: #eff4ff; font-size: 18px; line-height: 1.6; font-weight: 550; }
.bazi-structure-card .bazi-reference-notice { color: #ddd2b9; }
.bazi-command-line, .bazi-score-line { border-top: 1px solid #344154; padding-top: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: #aebed3; margin: 16px 0 0; }
.bazi-command-line strong, .bazi-score-line strong { font-weight: 500; color: #e3ebf7; }
.bazi-score-line { border-color: #474b40; max-width: 360px; }
.bazi-root-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bazi-root-chips span { background: #202c40; border: 1px solid #344359; color: #c5d5e9; padding: 5px 9px; font-size: 11px; border-radius: 6px; }
.bazi-evidence { border-top: 1px solid #344154; margin-top: 18px; }
.bazi-strength-card .bazi-evidence { border-color: #474b40; }
.bazi-evidence summary { cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 0 0; min-height: 44px; color: #c4d3ea; font-size: 12px; list-style: none; }
.bazi-evidence summary::-webkit-details-marker { display: none; }
.bazi-evidence[open] summary > span { transform: rotate(45deg); }
.bazi-evidence-body { margin-top: 17px; }
.bazi-evidence-body ul { color: #bac8dc; padding-left: 18px; font-size: 12px; line-height: 1.9; }
.bazi-evidence-body .bazi-method { font-size: 11px; color: #99acc8; overflow-wrap: anywhere; }
.bazi-source-refs { list-style: none; padding: 12px 0 0 !important; border-top: 1px solid #334054; }
.bazi-source-refs li { display: grid; gap: 3px; margin: 0 0 9px; }
.bazi-source-refs code { color: #91a7c5; font-size: 10px; overflow-wrap: anywhere; white-space: normal; }
.bazi-ledger-wrap { overflow-x: auto; max-width: 100%; }
.bazi-ledger { width: 100%; border-collapse: collapse; min-width: 360px; font-size: 11px; text-align: left; }
.bazi-ledger caption { text-align: left; color: #c7d2e0; margin: 12px 0; }
.bazi-ledger th, .bazi-ledger td { border-bottom: 1px solid #414638; padding: 9px 7px; color: #c5cfbf; }
.bazi-ledger th { font-weight: 500; color: #e2dfcf; }
.bazi-report-boundary { margin-top: 18px; border-left: 2px solid #5d7494; padding: 4px 0 4px 15px; }
.bazi-report-boundary > strong { font-size: 12px; color: #d0dbee; }
.bazi-report-boundary p { font-size: 12px; line-height: 1.9; color: #a2b3cb; margin: 7px 0 0; }
.bazi-native-raw { margin: 22px 0; border-top: 1px solid #2d3b50; padding-top: 8px; }
.bazi-native-raw > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: #bacce5; font-size: 12px; }
.advanced-reading-intro { color: #aebed3; font-size: 13px; line-height: 1.8; margin: 12px 0 20px; }
.bazi-report-unavailable { background: #17202e; padding: 24px; border-radius: 14px; }
@media (max-width: 680px) {
 .bazi-report-header { display: block; }
 .bazi-report-tag { display: inline-block; margin-top: 15px; }
 .bazi-pillars { gap: 7px; margin: 21px 0 25px; }
 .bazi-pillar { padding: 14px 7px; border-radius: 11px; }
 .bazi-pillar > strong { flex-direction: column; gap: 5px; margin: 10px 0; }
 .bazi-report-section-heading { display: block; }
 .bazi-report-section-heading p { margin-top: 7px; }
 .bazi-structure-grid { grid-template-columns: minmax(0,1fr); }
 .bazi-strength-card { grid-column: auto; }
 .bazi-structure-card { padding: 18px; }
}

.bazi-report-birth { color: #95a9c4; font-size: 11px; line-height: 1.8; margin: 10px 0 0; }
/* Structural readings preserve independent school methods and evidence. */
.reading-profile{margin:1.8rem 0;padding:1.2rem 1.4rem;border:1px solid rgba(175,197,235,.2);border-left:3px solid #9ab9dd;border-radius:12px;background:rgba(111,145,190,.05)}
.reading-profile h4{margin:0 0 .7rem}.reading-profile p{line-height:1.8;font-size:.9rem;color:#c6d2e4}
.reading-key-facts{padding-left:1.15rem;line-height:1.9;font-size:.88rem;color:#c6d2e4}
.bazi-evidence-body li{margin:.6rem 0;overflow-wrap:anywhere}.bazi-source-refs code{display:inline-block;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.birth-time-scenarios{margin:2rem 0;padding:1.5rem;border:1px solid #445b79;border-radius:18px;background:#101923;color:#d5e0ef}.birth-time-scenarios h3{font-size:1.5rem}.birth-time-scenarios p{line-height:1.8}.scenario-inputs{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:1rem;align-items:end}.scenario-inputs label{display:grid;gap:.5rem;font-size:.85rem}.scenario-inputs input,.scenario-inputs select{width:100%;min-width:0;padding:.7rem;background:#182534;color:#e5edfa;border:1px solid #526379;border-radius:8px}.scenario-progress{color:#c7dcff}.scenario-clocks{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.scenario-clocks>span{background:#22344b;padding:.55rem .8rem;border-radius:8px;font-size:.85rem}.scenario-clocks small{display:block;margin-top:.3rem}.scenario-cards{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.scenario-system{min-width:0;padding:1.2rem;background:#192637;border:1px solid #344b66;border-radius:12px;overflow-wrap:anywhere}.scenario-system h4{margin:0 0 .8rem;font-size:1.1rem}.scenario-system h4 span{display:block;margin-top:.5rem;font-size:.85rem;color:#a9c4eb}.scenario-system ul{padding-left:1.1rem;font-size:.87rem;line-height:1.9}.scenario-groups{font-size:.85rem;color:#b9cee9}.scenario-table-wrap{overflow:auto;max-height:480px}.scenario-table-wrap table{border-collapse:collapse;font-size:.8rem;min-width:520px}.scenario-table-wrap td,.scenario-table-wrap th{padding:.7rem;border:1px solid #4a5d75;text-align:left;vertical-align:top;min-width:140px}.scenario-changed{background:#344c3e}.scenario-unavailable{background:#4d3840}.scenario-download{margin-top:1rem}@media(max-width:680px){.birth-time-scenarios{padding:1rem}.scenario-inputs,.scenario-cards{grid-template-columns:1fr}.scenario-table-wrap{max-width:100%}}
.scenario-table-wrap tbody th{position:sticky;left:0;background:#1b2b3d;z-index:1}.scenario-table-wrap thead th{background:#22344b}
