.bazi-workbench{--ink:#233f37;--jade:#1f6859;--sub:#7a857d;--rule:#dce3d9;--paper:#f8f8f1;--gold:#ae8550;--red:#aa5349;color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:18px;overflow:hidden;text-align:left;font:14px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;box-shadow:0 20px 60px #21372c08;margin:14px 0 30px}
.bazi-workbench *{box-sizing:border-box}.bazi-workbench button,.bazi-workbench input,.bazi-workbench textarea,.bazi-workbench select{font:inherit}.bazi-workbench button{cursor:pointer}.bazi-workbench button:focus-visible,.bazi-workbench a:focus-visible,.bazi-workbench input:focus-visible,.bazi-workbench textarea:focus-visible{outline:2px solid var(--jade);outline-offset:3px}.bazi-workbench button:disabled{opacity:.4;cursor:default}.pro-top{padding:26px 30px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--rule);gap:20px}.pro-eyebrow{font-size:10px;letter-spacing:.22em;color:var(--jade);display:flex;gap:13px;align-items:center}.pro-eyebrow:before{content:"";width:23px;height:1px;background:var(--gold)}.pro-top h2{font-family:"Songti SC","Noto Serif SC",serif;font-size:30px;font-weight:500;margin:7px 0 4px;letter-spacing:.13em}.pro-meta{font-size:12px;color:var(--sub);margin:0}.pro-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.pro-button{border:1px solid var(--rule);color:var(--ink);background:#fff9;border-radius:7px;padding:7px 12px;text-decoration:none;white-space:nowrap;font-size:12px!important}.pro-button.primary{background:var(--jade);color:#fff;border-color:var(--jade)}.pro-button[aria-pressed=true]{border-color:var(--jade);background:#e8f0e8}.pro-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px}.pro-main{padding:20px 24px 24px;min-width:0}.pro-sidebar{border-left:1px solid var(--rule);background:#f2f4ed;padding:22px 20px;min-width:0}.pro-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.pro-row-heading h3{font-size:13px;font-weight:600;letter-spacing:.08em;margin:0}.pro-row-heading small{font-size:10px;color:var(--sub)}.pro-legend{display:flex;gap:12px;font-size:10px;color:var(--sub)}.pro-legend span:before{content:"";width:5px;height:5px;background:var(--jade);display:inline-block;border-radius:50%;margin-right:5px}.pro-legend span+span:before{background:var(--gold)}.pro-table-scroll{overflow:auto;border:1px solid var(--rule);border-radius:10px;background:#fff9;scrollbar-width:thin}.pro-table{width:100%;border-collapse:collapse;text-align:center;min-width:650px;table-layout:fixed}.pro-table th:first-child,.pro-table td:first-child{width:58px;position:sticky;left:0;background:#f0f3ec;z-index:2;text-align:center;color:var(--sub);font-size:10px;font-weight:400}.pro-table th{font-size:11px;font-weight:500;padding:10px 4px;border-bottom:1px solid var(--rule)}.pro-table td{border-bottom:1px solid #e8ebe3;padding:7px 3px;font-size:11px;vertical-align:middle}.pro-table th+th,.pro-table td+td{border-left:1px solid #e8ebe3}.pro-table tr:last-child td{border-bottom:0}.pro-table .pro-cycle{background:#edf2e980}.pro-table .pro-day{background:#f5efe17a}.pro-table .pro-gan-row td,.pro-table .pro-zhi-row td{padding:2px 3px;border-bottom:0}.pro-glyph{font-family:"Songti SC","Noto Serif SC",serif;font-size:36px!important;line-height:1.3;border:1px solid transparent;background:none;min-width:48px;padding:3px;border-radius:6px;transition:background .2s,box-shadow .2s}.pro-glyph:hover{background:#e7ede5}.pro-glyph.is-related{background:#e5efe3;box-shadow:inset 0 0 0 1px #73977955}.pro-glyph.is-focus{box-shadow:inset 0 0 0 2px var(--gold);background:#fbf1dc}.pro-hidden-stem{display:inline-flex;flex-direction:column;align-items:center;margin:0 3px;line-height:1.45}.pro-hidden-stem b{font-weight:500;font-size:15px}.pro-hidden-stem small{font-size:9px;color:var(--sub)}.pro-marker{display:block;border:0;color:var(--ink);background:none;font-size:10px!important;padding:1px 3px;margin:auto;text-decoration:underline;text-decoration-color:#bac9bc;text-underline-offset:3px}.pro-void{font-family:"Songti SC",serif;letter-spacing:2px}.pro-coordinates{display:flex;gap:16px;flex-wrap:wrap;padding:11px 1px;color:var(--sub);font-size:11px}.pro-coordinates b{color:var(--ink);font-weight:500;margin-left:6px}.pro-evidence{background:#edf2e9;border:1px solid #d9e2d5;border-radius:9px;padding:11px 14px;margin:0 0 18px;font-size:12px;min-height:48px}.pro-evidence strong{font-weight:600;margin-right:9px}.pro-evidence p{margin:3px 0;color:#627367;font-size:11px}.pro-strip-wrap{margin-top:18px}.pro-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(65px,1fr);overflow-x:auto;gap:5px;padding:2px 1px 8px;scrollbar-width:thin}.pro-period{border:1px solid var(--rule);background:#fff9;padding:8px 5px;border-radius:7px;color:var(--sub);display:flex;flex-direction:column;align-items:center;gap:2px;transition:background .18s,color .18s,border-color .18s}.pro-period b{font-size:19px;font-family:"Songti SC",serif;font-weight:500;color:var(--ink)}.pro-period small,.pro-period span{font-size:10px;white-space:nowrap}.pro-period[aria-pressed=true]{background:var(--jade);border-color:var(--jade);color:#d4e3d7}.pro-period[aria-pressed=true] b{color:#fff}.pro-year-controls{display:flex;align-items:center;gap:4px}.pro-year-controls input{width:65px;background:transparent;border:1px solid var(--rule);border-radius:4px;color:var(--ink);padding:2px 5px;text-align:center}.pro-year-controls button{background:none;border:0;font-size:18px;color:var(--jade)}.pro-date-basis{font-size:10px;color:var(--sub);line-height:1.7;margin:8px 0 0}.pro-month-date{font-size:9px!important}.pro-relations{border-top:1px solid var(--rule);padding-top:17px;margin-top:16px}.pro-relation-chips{display:flex;flex-wrap:wrap;gap:6px}.pro-relation{border:1px solid #d8dfd3;background:#f9faf5;color:#617661;border-radius:20px;padding:4px 9px;font-size:10px!important}.pro-relation.is-active{background:#e5ecdc;border-color:#9eb391;color:var(--ink)}.pro-rule-note{color:var(--sub);font-size:10px;margin:10px 0 0}.pro-tabs{display:flex;gap:16px;border-bottom:1px solid var(--rule);margin-bottom:19px}.pro-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:var(--sub);padding:0 0 10px;font-size:12px}.pro-tabs [aria-selected=true]{color:var(--ink);border-color:var(--jade)}.pro-context-kicker{font-size:10px;letter-spacing:.16em;color:var(--gold);margin:0 0 5px}.pro-sidebar h3{font-family:"Songti SC",serif;font-size:22px;font-weight:500;letter-spacing:.06em;margin:3px 0 10px}.pro-source{padding:12px 0;border-top:1px solid var(--rule)}.pro-source summary{cursor:pointer;font-size:12px;line-height:1.6;font-weight:500;list-style:none}.pro-source summary:after{content:"＋";float:right;color:var(--sub)}.pro-source[open] summary:after{content:"−"}.pro-source-type{font-size:9px;color:var(--jade);background:#e0e9dd;border-radius:3px;padding:2px 4px;margin-right:6px;white-space:nowrap}.pro-source blockquote{margin:10px 0;border-left:2px solid #b7a679;padding:1px 0 1px 10px;font-family:"Songti SC",serif;font-size:13px;line-height:1.9;color:#4f5748}.pro-source p{font-size:11px;color:#6e786b;margin:8px 0}.pro-source p b{font-weight:500;color:var(--ink)}.pro-source a{color:var(--jade);font-size:10px;text-underline-offset:3px}.pro-source-foot{font-size:10px;color:var(--sub);line-height:1.7}.pro-source-status{font-size:11px;color:var(--sub)}.pro-fact-list{padding:0;list-style:none;margin:0 0 16px}.pro-fact-list li{padding:7px 0;border-bottom:1px solid var(--rule);font-size:11px;color:#687669}.pro-fact-list b{display:block;color:var(--ink);font-weight:500;font-size:12px}.pro-notes label{display:block;font-size:11px;color:#526955;margin:13px 0}.pro-notes textarea{display:block;margin-top:7px;border:1px solid #d4dfcf;border-radius:7px;background:#fbfcf7;resize:vertical;width:100%;padding:10px;color:var(--ink);font-size:12px;min-height:100px;line-height:1.75}.pro-notes-status{font-size:10px;color:var(--sub);min-height:18px}.pro-notes-status.error{color:#a54137}.pro-bottom{display:flex;justify-content:space-between;gap:14px;padding:12px 30px;border-top:1px solid var(--rule);font-size:10px;color:var(--sub)}.pro-bottom a{color:var(--jade);text-decoration:none}.pro-updated .pro-cycle .pro-glyph{animation:pro-arrive .28s ease-out}.pro-legacy{margin-top:15px}.pro-legacy>summary{padding:14px;color:#738474;font-size:12px;cursor:pointer}.bazi-workbench.is-reduced *{animation:none!important;transition:none!important}.pro-collapsed .pro-table tr[data-secondary]{display:none}.pro-empty{padding:30px;color:var(--sub);text-align:center}.pro-print-title{display:none}@keyframes pro-arrive{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:1350px){.bazi-workbench{margin-left:-45px;margin-right:-45px}.pro-layout{grid-template-columns:minmax(0,1fr) 330px}.pro-table{min-width:730px}.pro-glyph{font-size:40px!important}.pro-main{padding:24px 28px}.pro-sidebar{padding:26px 24px}}
@media(max-width:1100px){.pro-layout{grid-template-columns:minmax(0,1fr)}.pro-sidebar{border-left:0;border-top:1px solid var(--rule)}.pro-sidebar-body{max-height:500px;overflow:auto}.pro-top{padding:22px}.pro-main{padding:18px}.pro-top h2{font-size:27px}}
@media(max-width:600px){.bazi-workbench{border-radius:12px}.pro-top{padding:18px 15px;display:block}.pro-top h2{font-size:26px}.pro-actions{margin-top:12px}.pro-main{padding:15px 10px}.pro-table{min-width:610px}.pro-table th:first-child,.pro-table td:first-child{width:43px}.pro-glyph{font-size:31px!important;min-width:41px}.pro-legend{display:none}.pro-coordinates{gap:10px}.pro-strip{grid-auto-columns:64px}.pro-bottom{padding:12px 16px;display:block}.pro-bottom a{display:block;margin-top:4px}.pro-sidebar{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){.bazi-workbench *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body>*{display:none!important}body>.pro-print-root{display:block!important}.pro-print-root .bazi-workbench{box-shadow:none;margin:0;border:0}.pro-print-root .pro-actions,.pro-print-root .pro-tabs,.pro-print-root .pro-bottom,.pro-print-root .pro-notes,.pro-print-root .pro-relation-chips{display:none}.pro-print-root .pro-layout{display:block}.pro-print-root .pro-sidebar{border:0}.pro-print-root .pro-table-scroll{overflow:visible}.pro-print-root .pro-table{min-width:0}.pro-print-root .pro-source{break-inside:avoid}.pro-print-root .pro-table tr{break-inside:avoid}}

/* Keep source reading beside the chart without forcing the whole page taller. */
.pro-source blockquote{max-height:260px;overflow:auto;scrollbar-width:thin;padding-right:7px}.pro-sidebar-body{max-height:950px;overflow:auto;scrollbar-width:thin}.pro-tabs{position:relative}.pro-table th:first-child{z-index:3}
