/* Independent reconstruction measured against the live chart UI. */
.ws-star-select{display:flex;flex-direction:column;align-items:center;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:1}.ws-star-detail h4{font-size:12px;margin:16px 0 8px}
.ws-scroll-row{touch-action:pan-x;cursor:grab}.ws-scroll-row.is-dragging{cursor:grabbing;user-select:none}.ws-scope-date{font-size:10px;color:var(--tx-3);line-height:1.7;margin:8px 0 0}.ws-seal[data-layer=yearly]{outline:1px solid #3978c5}.ws-seal[data-layer=monthly]{outline:1px solid #9770b5}.ws-seal[data-layer=daily]{outline:1px solid #bc8540}.ws-seal[data-layer=hourly]{outline:1px solid #398878}
:root{--ws-blue:#1c73ec;--ws-red:#a83228;--ws-gold:#8a7248;--ws-control:#fafaf9;--ws-ink:var(--tx,#1a1a18);--ws-border:#d7d6d2}
.ws-site-head{position:absolute;top:0;left:0;right:0;z-index:35;padding:24px 32px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}
.ws-site-head>*{pointer-events:auto}.ws-brand{padding:0;line-height:1;font-family:Inter,"Helvetica Neue",sans-serif;font-weight:900;font-size:clamp(26px,3vw,42px);letter-spacing:-.02em}
.ws-account .account-bar{padding:0;background:transparent;font-size:13px;min-height:28px}.ws-account .avatar-mini{width:24px;height:24px}.ws-account-note{display:block;font-size:11px;padding:8px;color:var(--tx-3)}
.ws-cast{max-width:1080px;width:100%;min-height:calc(100vh - 100px);margin:auto;padding:104px 32px 48px;display:grid;grid-template-columns:minmax(0,1fr) 480px;gap:72px;align-items:center}
.ws-cast-copy{min-width:0}.ws-eyebrow{font-size:13px;letter-spacing:.3em;text-transform:uppercase;color:var(--ws-gold);margin:0 0 16px}
.ws-cast h1{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;font-size:clamp(38px,6vw,66px);font-weight:800;letter-spacing:.01em;line-height:1.08;margin:0 0 12px;white-space:nowrap;color:#1d1b18}
.ws-cast-copy>p:not(.ws-eyebrow){font-size:14px;color:#7a7260;margin:8px 0 0;letter-spacing:.05em}.ws-cast-copy>hr{width:96px;height:1px;background:#ddd6c9;margin:24px 0 0;border:0}
.ws-form{min-width:0;padding:28px;border:1px solid #deddd9;border-radius:24px;background:var(--bg);box-shadow:0 14px 38px #2b262017,0 2px 8px #2b26200c}
.ws-form h2{font-family:"Songti SC",STSong,serif;text-align:center;color:#75603a;font-size:18px;font-weight:500;letter-spacing:.22em;margin:0 0 18px}.ws-progress{display:flex;gap:6px;margin:0 0 24px}.ws-progress i{height:3px;flex:1;border-radius:3px;background:#eae6dc}.ws-progress i.done{background:#a48a58}
.ws-form .ws-label{display:block;font-size:13px;font-weight:400;line-height:1.5;color:#686454;margin:0 0 8px}.ws-control{display:block;width:100%;height:48px;padding:0 14px;border:1px solid #d0cfca;border-radius:14px;background:var(--ws-control);color:var(--ws-ink);font-size:14px;line-height:1.5;box-shadow:none;min-width:0;appearance:auto}
.ws-control:focus-visible,.ws-search:focus-visible{outline:2px solid #d4a84366;outline-offset:1px;border-color:#b69d60}.ws-control::placeholder{color:#9b9b94}.ws-control:disabled{opacity:.45}
.ws-date-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 10px;font-size:13px;color:#686454}.ws-segment{display:inline-flex;background:#eeeeed;border-radius:11px;padding:3px;gap:0;flex:none}
.ws-segment button{padding:8px 14px;border-radius:9px;font-size:13px;color:var(--tx-2);white-space:nowrap}.ws-segment button[aria-pressed=true]{background:var(--bg);color:var(--tx);font-weight:600;box-shadow:0 1px 4px #00000010}
.ws-date-grid{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:8px}.ws-date-grid .ws-control{padding:0 12px}.ws-time-label{margin:18px 0 8px!important}
.ws-timebox{padding:12px;border:1px solid #dfddd7;border-radius:15px;background:#f8f7f4}.ws-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ws-time-grid .ws-control{height:45px}
.ws-readout{display:flex;gap:14px;align-items:center;margin-top:12px;color:#686454;min-height:66px;font-size:13px;white-space:nowrap}.ws-readout b{font-weight:600;letter-spacing:.08em;color:#75603a}.ws-readout small{font-size:12px;margin-left:5px}.ws-dial{width:64px;height:64px;flex:none;color:#d1a444}.ws-dial text{fill:#75603a;font-family:inherit;font-size:18px;font-weight:600}.ws-dial-rotor{transform-origin:36px 36px;transition:transform .6s cubic-bezier(.3,.72,0,1)}.ws-dial-char{animation:ws-dial-swap .35s cubic-bezier(.3,.72,0,1) both}@keyframes ws-dial-swap{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ws-check{display:flex;gap:6px;align-items:center;font-size:12.5px;color:#7a7260;margin:10px 0 20px;cursor:pointer;white-space:normal}.ws-check input{flex:none;width:13px;height:13px;margin:0;accent-color:#9a804c}
.ws-lunar-note{font-size:11px;margin:8px 0;color:#a26a43;display:flex;gap:8px;flex-wrap:wrap}.ws-lunar-note span{display:block}
.ws-place-wrap{position:relative;margin-bottom:18px}.ws-place-button{display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:13px;color:#96968f;scroll-margin:120px 0 320px}.ws-place-button span{font-size:14px;margin-left:8px}
.ws-gender{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 24px}.ws-gender button{height:46px;border:1px solid #d0cfca;background:var(--ws-control);border-radius:14px;color:#958670;font-size:14px}.ws-gender button.male[aria-pressed=true]{background:#eef3ff;border-color:#7e9dff;color:#2766f5}.ws-gender button.female[aria-pressed=true]{background:#fff1f5;border-color:#f19ab5;color:#dc365d}
.ws-submit{width:100%;min-height:52px;padding:12px 18px;border-radius:999px;background:#171715;color:#fff;font-weight:650;font-size:14px;letter-spacing:.05em}.ws-submit:hover{background:#30302c}.ws-submit:active{transform:scale(.99)}.ws-error:empty{display:none}.ws-error{color:#b23c2d;font-size:13px;margin:0 0 12px}.ws-local-note{font-size:10px;color:var(--tx-3);text-align:center;margin:12px 0 -10px}
.ws-recent{margin-top:36px}.ws-recent-head{display:flex;gap:8px;align-items:baseline;margin-bottom:10px}.ws-recent-head b{font-family:"Songti SC",STSong,serif;letter-spacing:.24em;color:#75603a;font-size:14px;font-weight:600}.ws-recent-head small{font-size:12px;color:#99978f}.ws-recent-head span{margin-left:auto;font-size:12px;color:#aaa79e}.ws-record{position:relative;display:flex;align-items:center;border-bottom:1px solid #8a724828;min-height:54px}.ws-record>button:first-child{display:block;text-align:left;width:100%;padding:10px 16px 10px 4px;min-width:0}.ws-record b{font-size:14px;font-weight:400;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-record small{font-size:12px;color:#8d8b83;display:block;margin-top:3px}.ws-record i{position:absolute;right:8px;top:17px;color:#c7b99b;font-style:normal}.ws-record-delete{display:none;position:absolute;right:0;width:28px;height:32px;font-size:18px;color:#97958c}.ws-record:hover .ws-record-delete,.ws-record:focus-within .ws-record-delete{display:block}.ws-record:hover i,.ws-record:focus-within i{display:none}.ws-record:hover{background:#8a72480a}.ws-clear-records{display:block;margin:15px 0 0 auto;font-size:12px;color:#949187;padding:3px 0}
.ws-place-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--bg);border:1px solid #deddd8;box-shadow:0 12px 32px #0002;border-radius:16px;z-index:55;padding:10px}.ws-search{width:100%;height:40px;border:1px solid #bbb9b2;border-radius:9px;padding:0 10px;font-size:13px;background:var(--bg);color:var(--tx)}.ws-quick{display:flex;flex-wrap:wrap;gap:5px;padding:10px 0;border-bottom:1px solid var(--line)}.ws-quick button{font-size:12px;padding:6px 10px;border:1px solid #d7d6d1;border-radius:12px}.ws-quick button:hover{background:var(--bg-1)}.ws-place-columns{display:grid;grid-template-columns:1fr 1fr;max-height:260px;overflow:hidden;padding-top:8px}.ws-place-columns>div{overflow:auto;min-width:0}.ws-place-columns small{display:block;color:#aaa69d;font-size:12px;padding:4px 8px}.ws-place-columns button{display:block;text-align:left;font-size:13px;min-height:34px;padding:7px 8px;width:100%;border-radius:6px}.ws-place-columns button[aria-selected=true],.ws-place-columns button:hover{background:#f0ede5;color:#75603a}.ws-place-columns p{font-size:12px;margin:14px 8px}.ws-place-matches{max-height:260px;overflow:auto}.ws-place-matches button{display:flex;justify-content:space-between;gap:10px;padding:10px 4px;width:100%;text-align:left;border-bottom:1px solid var(--line)}.ws-place-matches b{font-size:13px;font-weight:500}.ws-place-matches small{color:var(--tx-3);font-size:11px}.ws-clear-place{font-size:11px;color:#949187;padding:8px 2px 0}.ws-muted{color:var(--tx-3)}
.ws-footer{margin-top:50px;padding:22px 24px 18px;font-size:11px;color:#92918b;text-align:center}.ws-footer>div{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;align-items:center}.ws-footer button{padding:0;font-size:11px}.ws-footer p{font-size:10px;margin:14px 0 0}
/* Chart workspace uses its own layout instead of cascading over the old demo board. */
body:has(.ws-chart){overflow:hidden}.ws-chart{height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--tx)}
.ws-topbar{height:48px;min-height:48px;display:flex;align-items:center;gap:16px;padding:5px 22px;border-bottom:1px solid var(--line);z-index:25;background:var(--bg)}.ws-topbar .ws-account{margin-left:auto}.ws-topbar .ws-chart-delete{margin-left:auto}.ws-topbar .ws-chart-delete+.ws-account{margin-left:8px}.ws-back{font-size:12px;color:#84817a;padding:5px 14px 5px 0;border-right:1px solid var(--line);white-space:nowrap}.ws-view-tabs{display:flex;align-items:center;gap:2px;background:#f6f5f3;border-radius:9px;padding:3px;overflow:auto;min-width:0}.ws-view-tabs button{white-space:nowrap;border-radius:7px;padding:6px 12px;font-size:12px;color:#929089}.ws-view-tabs button small{font-size:11px}.ws-view-tabs button[aria-selected=true]{background:var(--bg);color:var(--tx);font-weight:600;box-shadow:0 1px 4px #0001}
.ws-workspace{display:grid;grid-template-columns:var(--ws-left,clamp(340px,46vw,520px)) 6px minmax(0,1fr);height:calc(100dvh - 48px);min-height:0;flex:1;transition:grid-template-columns .3s cubic-bezier(.16,1,.3,1)}.ws-left{min-width:0;overflow-y:auto;overflow-x:hidden;padding:21px 20px 24px;scrollbar-width:thin}.ws-right{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}.ws-body{min-height:0;flex:1;overflow:auto;padding:14px 16px 32px;scrollbar-width:thin}.ws-resizer{position:relative;border-right:1px solid var(--line);cursor:col-resize;background:var(--bg)}.ws-resizer i{position:absolute;top:42%;left:0;width:3px;height:32px;background:#cbc9c2;border-radius:3px;opacity:0}.ws-resizer:hover i,.ws-resizer:focus i{opacity:1}.ws-dragging{user-select:none;cursor:col-resize}.ws-dragging .ws-workspace{transition:none}.ws-chart.is-expanded .ws-workspace{grid-template-columns:0 0 minmax(0,1fr)}.ws-chart.is-expanded .ws-left{padding:0;overflow:hidden;visibility:hidden}.ws-chart.is-expanded .ws-resizer{visibility:hidden}
.ws-board-shell{position:relative;width:100%;max-width:520px;margin:0 auto 16px}.ws-board{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));aspect-ratio:5/7;gap:0;border:1px solid #c7c6c2;border-radius:0;overflow:visible;background:var(--bg);container-type:inline-size}
.ws-palace{position:relative;border:1px solid #deddd9;margin:-.5px;min-width:0;min-height:0;padding:18px 5px 4px;background:var(--bg);outline:none;cursor:pointer;transition:box-shadow .15s,background .15s}.ws-palace:hover{background:#fafaf8}.ws-palace.is-ming{box-shadow:none}.ws-palace.is-focused{box-shadow:inset 0 0 0 1.5px #777b86}.ws-palace.is-flow{box-shadow:inset 0 0 0 1.5px #4e956d}.ws-palace:focus-visible{outline:2px solid #1c73ec;outline-offset:-3px}
.ws-stars{display:flex;align-items:flex-start;justify-content:flex-start;gap:1px;max-width:100%;overflow:hidden;height:calc(100% - 43px)}.ws-star{display:inline-flex;align-items:center;flex-direction:column;gap:0;flex:none;min-width:10px;padding:0;line-height:1;font-size:10px;font-weight:500;color:#1a1a18;border:0;background:transparent;border-radius:0}.ws-star-name{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;line-height:1;letter-spacing:0}.ws-star-char{display:block;font-style:normal;line-height:1;white-space:nowrap}.ws-star.major{color:#a83228;font-weight:700;font-size:13px;min-width:13px}.ws-star.lucky{color:#6e3da5;font-weight:600;font-size:11.5px;min-width:11.5px}.ws-star.sha{color:#1a56a8;font-weight:600;font-size:11.5px;min-width:11.5px}.ws-star.minor{color:#1a1a18;font-weight:500;font-size:10px;min-width:10px}.ws-star small{display:block;flex:none;min-height:9px;margin-top:1px;font-size:8px;font-weight:700;line-height:1;letter-spacing:0;color:#1a1a18}.ws-star.selected{box-shadow:inset 2px 0 0 0 #bf8a26;background:rgba(191,138,38,.06)}.ws-more-stars{align-self:flex-start;font-size:8.5px;font-weight:600;padding:2px 4px;color:#6e6e66}
.ws-seal{display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:10px;font-weight:800;font-style:normal;width:14px;height:15px;border-radius:3px;color:#fff;margin-top:2px;box-shadow:inset 0 -1px 0 #0003}.ws-seal.lu{background:#2d7a4a}.ws-seal.quan{background:#1a56a8}.ws-seal.ke{background:#8a7018}.ws-seal.ji{background:#a83228}.ws-seal.flow{opacity:.75;width:12px;height:12px;font-size:8px}
.ws-palace-foot{position:absolute;left:5px;right:5px;bottom:5px;display:flex;justify-content:space-between;align-items:flex-end;gap:2px}.ws-gods{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:1px;font-size:8.5px;font-weight:500;line-height:1.2;color:#6e6e66}.ws-gods small{color:#6e6e66;font-size:8.5px}.ws-palace-meta{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1;gap:1px}.ws-palace-meta>small{font-size:9px;font-family:ui-monospace,monospace;font-weight:400;color:#6e6e66}.ws-palace-meta>span{font-size:11px;font-family:ui-monospace,monospace;font-weight:700;color:#1a1a18;letter-spacing:.04em}.ws-palace-meta>b{font-size:12px;font-weight:700;color:#a83228;letter-spacing:.04em;white-space:nowrap}.ws-role{font-size:11px;font-weight:700;opacity:.9}.ws-palace.is-ming .ws-palace-meta>b,.ws-palace.is-shen .ws-palace-meta>b{background:#a8322824;border:1px solid #a8322859;border-radius:0;padding:1px 6px}.ws-palace-meta>em{font-size:8px;color:#6e6e66;font-style:normal}
.ws-center{grid-column:2/4;grid-row:2/4;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;gap:7px;padding:10px 12px;background:var(--bg);border:1px solid #deddd9;margin:-.5px;color:#55554c;font-size:10px;line-height:1.3;overflow:hidden}.ws-center-brand{font-family:Georgia,"Times New Roman",serif;letter-spacing:.3em;color:#0d0d0b;font-size:16px;font-weight:400;margin-bottom:4px}.ws-center>strong{font-size:13px;font-weight:600;color:#0d0d0b}.ws-pillars{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px dashed #ddd9d0;padding-top:8px;margin-top:8px;width:100%;text-align:center}.ws-pillars>div+div{border-left:1px solid var(--line)}.ws-pillars small{font-size:9px;color:#8d8c82}.ws-pillars>div>div{display:flex;justify-content:center;gap:6px;margin-top:4px}.ws-pillars span{display:flex;flex-direction:column;line-height:1.15;font-size:11px;color:#1b68a5}.ws-pillars span:nth-child(2){color:#509970}.ws-pillars span:nth-child(3){color:#a44231}.ws-pillars i{font-style:normal;font-weight:500;color:#a16d28}.ws-pillars b{font-weight:600}
.ws-masters{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:3px 8px;padding-top:8px;color:#96958b;font-size:9px;text-align:center}.ws-masters b{font-size:10px;color:#2868ba;font-weight:500}.ws-birth-lines{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;font-size:8px;line-height:1.4;gap:2px;margin:0}.ws-birth-lines dt{color:#919086}.ws-birth-lines dd{margin:0;text-align:right;font-family:ui-monospace,monospace;font-size:8px;white-space:nowrap;letter-spacing:-.02em}.ws-current-decade{width:100%;font-size:9px;background:#f4f4f3;border:1px solid #d8d7d2;border-radius:7px;padding:5px 2px}.ws-current-decade b{font-weight:600;color:#2a2a26}.ws-seal-legend{font-size:8px;color:#9d9b93;margin:2px 0 0;display:flex;gap:5px}.ws-seal-legend i{font-style:normal}.ws-seal-legend .lu{color:#2d7a4a}.ws-seal-legend .quan{color:#1a56a8}.ws-seal-legend .ke{color:#8a7018}.ws-seal-legend .ji{color:#a83228}.ws-center>small{font-size:7.5px;color:#a4a298}
.ws-triangle{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:visible;opacity:.68}.ws-triangle polyline,.ws-triangle line{stroke:#858a9a;stroke-width:.25;stroke-dasharray:1.2 .7;fill:none}.ws-triangle circle{fill:#858a9a}
.ws-board-shell{position:relative;width:100%;max-width:520px;margin:0 auto 16px;padding:0;overflow:visible}.ws-board{position:relative;z-index:1}.ws-directions{position:absolute;inset:0;pointer-events:none;z-index:0;font-size:10px;font-weight:600;line-height:1;color:#6e6e66}.ws-directions span{position:absolute;white-space:nowrap}.ws-directions span:nth-child(1){top:-14px;left:37.5%;transform:translateX(-50%)}.ws-directions span:nth-child(2){top:-14px;left:62.5%;transform:translateX(-50%)}.ws-directions span:nth-child(3){right:-14px;top:12.5%;writing-mode:vertical-rl;transform:translateY(-50%)}.ws-directions span:nth-child(4){right:-14px;top:37.5%;writing-mode:vertical-rl;transform:translateY(-50%)}.ws-directions span:nth-child(5){right:-14px;top:62.5%;writing-mode:vertical-rl;transform:translateY(-50%)}.ws-directions span:nth-child(6){right:-14px;top:87.5%;writing-mode:vertical-rl;transform:translateY(-50%)}.ws-directions span:nth-child(7){bottom:-14px;left:62.5%;transform:translateX(-50%)}.ws-directions span:nth-child(8){bottom:-14px;left:37.5%;transform:translateX(-50%)}.ws-directions span:nth-child(9){left:-14px;top:87.5%;writing-mode:vertical-rl;transform:translateY(-50%)}.ws-directions span:nth-child(10){left:-14px;top:62.5%;writing-mode:vertical-rl;transform:translateY(-50%)}.ws-directions span:nth-child(11){left:-14px;top:37.5%;writing-mode:vertical-rl;transform:translateY(-50%)}.ws-directions span:nth-child(12){left:-14px;top:12.5%;writing-mode:vertical-rl;transform:translateY(-50%)}
.ws-time-rows{margin:20px 0 0;border:1px solid var(--line);border-radius:14px;padding:12px 12px 8px;box-shadow:0 2px 8px #00000006}.ws-time-rows section+section{margin-top:12px}.ws-row-title{display:flex;gap:8px;align-items:baseline;margin-bottom:6px;line-height:1.4}.ws-row-title>b{font-size:10px;color:#4d9b65}.ws-row-title>span{font-size:9px;color:#aaa79e}.ws-row-title.blue>b{color:#2477d9}.ws-scroll-row{display:flex;overflow:auto;gap:5px;padding:2px 0 4px;scrollbar-width:thin}.ws-time-chip{flex:0 0 64px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:7px 3px;border:1px solid #e6e5e1;border-radius:9px;text-align:center;min-height:67px;line-height:1.2}.ws-time-chip small{font-size:10px;color:#929088}.ws-time-chip b{font-size:11px;font-weight:600}.ws-time-chip em{font-size:9px;font-style:normal;color:#aaa69e}.ws-time-chip.active-green{background:#eff8f1;border-color:#88ba97}.ws-time-chip.active-blue{background:#edf5ff;border-color:#6da8f1}.ws-scroll-row.compact{gap:5px}.ws-scroll-row.compact button{flex:0 0 auto;min-width:36px;font-size:10px;padding:6px;border:1px solid #e5e3df;border-radius:7px}.ws-scroll-row.compact button[aria-pressed=true]{background:#edf4ff;border-color:#77a9e3;color:#2167c3}.ws-board-note{font-size:9px;color:#b2afa6;margin:14px 0}.ws-board-note span{margin-left:9px}.ws-board-note .major{color:#bd574b}.ws-board-note .lucky{color:#426aaa}.ws-recast{display:block;width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:12px;color:var(--tx-2)}
.ws-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px}.ws-panel-tools{display:flex;gap:8px}.ws-panel-tools>button,.ws-download-wrap>button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;font-size:20px;color:#838078}.ws-download-wrap{position:relative}.ws-download-wrap>button{font-size:0}.ws-download-glyph{font-size:21px;display:block;line-height:1}.ws-download-menu{position:absolute;top:40px;right:0;z-index:50;background:var(--bg);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;padding:5px;min-width:170px}.ws-download-menu button{display:block;text-align:left;font-size:12px;padding:10px;width:100%;border-radius:7px}.ws-download-menu button:hover{background:var(--bg-1)}
.ws-topic-tabs{display:flex;flex-wrap:wrap;gap:3px;padding:4px;margin:0 16px;border-radius:12px;background:#f1f1f0;flex:none}.ws-topic-tabs button{flex:0 0 auto;min-height:32px;padding:6px 12px;color:#8f8e87;border-radius:8px;font-size:12px;line-height:1.4}.ws-topic-tabs button[aria-pressed=true]{background:var(--bg);color:var(--tx);font-weight:650;box-shadow:0 1px 4px #0001}
.ws-overview-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.ws-overview-stars{font-size:12px;font-weight:600;letter-spacing:.04em;color:#2873ce}.ws-overview-empty{font-size:11.5px;color:#86868b}.ws-overview h1{font-size:27px;line-height:1.16;letter-spacing:-.022em;margin:0;font-weight:600}.ws-overview-sub{font-size:13.5px;line-height:1.62;color:#6e6e73;margin:10px 0 0}.ws-radar{max-width:440px;margin:12px auto 16px;position:relative}.ws-radar svg{display:block;width:100%;height:auto;max-height:390px}.ws-radar-grid{fill:none;stroke:#e4e5e7;stroke-width:.7}.ws-radar-shape{fill:#2a78d630;stroke:#2a78d6;stroke-width:1.4}.ws-radar-label{font-size:15px;fill:var(--tx);font-weight:650}.ws-radar-star{font-size:11.5px;fill:#aaa69d}.ws-radar g[role=button]{cursor:pointer}.ws-radar g[role=button]:hover text{fill:#2a78d6}.ws-radar p{font-size:10px;line-height:1.6;color:#a7a49a;text-align:center;margin:10px 0 0}.ws-overview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 20px}.ws-overview-cards>div{border:1px solid var(--line);border-radius:14px;padding:14px 12px}.ws-overview-cards h3{font-size:12px;margin:0 0 10px;color:#2873ce;font-weight:600}.ws-overview-cards p{font-size:12px;line-height:1.65;color:#77736a;margin:0}.ws-source-status{padding:10px 0;color:#6566b5;font-size:11px;border-bottom:1px solid var(--line);display:flex;gap:10px;justify-content:space-between}.ws-source-status span{font-size:10px;color:#a6a297}.ws-reading{font-size:14px;line-height:1.9;color:var(--tx-2)}.ws-reading h2{font-size:20px;margin:24px 0 18px;padding-bottom:12px;border-bottom:1px solid var(--line);color:var(--tx)}.ws-reading p{margin:0 0 16px}.ws-reading strong{color:var(--tx);font-weight:650}.ws-reading h3{font-size:15px;margin:30px 0 12px;color:var(--tx)}.ws-reading blockquote{margin:0 0 20px;padding:12px 16px;border-left:3px solid var(--tx);background:#f8f8f6;color:var(--tx);font-family:"Songti SC",STSong,serif;font-size:18px}.ws-reading details{border-bottom:1px solid var(--line);padding:14px 0}.ws-reading summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--tx)}.ws-reading summary span{font-size:10px;color:#aaa69c}.ws-reading details[open] summary span{font-size:0}.ws-reading details[open] summary span:after{content:'收起';font-size:10px}.ws-reading details p{margin:12px 0 0;font-size:12px}
.ws-star-detail{position:absolute;z-index:55;left:30px;top:70px;max-width:310px;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--bg);box-shadow:var(--shadow)}.ws-star-detail>button{float:right;font-size:20px;color:var(--tx-3);padding:0 0 4px 15px}.ws-star-detail h3{margin:0 0 6px;font-size:19px}.ws-star-detail p{font-size:12px;margin:6px 0}.ws-star-detail small{font-size:11px;color:var(--tx-3)}
.ws-chat{height:100%;display:flex;flex-direction:column;justify-content:flex-end;min-height:320px}.ws-chat-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px}.ws-chat-empty>span{font-size:36px;color:#99968d}.ws-chat-empty h2{font-size:19px;margin:14px 0 8px}.ws-chat-empty p{font-size:12px;line-height:1.8;color:var(--tx-3);max-width:300px}.ws-chat-suggestions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}.ws-chat-suggestions button{border:1px solid var(--line);border-radius:10px;padding:7px 10px;font-size:11px}.ws-chat form{position:relative}.ws-chat textarea{width:100%;min-height:92px;resize:vertical;border:1px solid #dddcd5;border-radius:16px;background:var(--bg);color:var(--tx);padding:14px 48px 14px 14px;font:inherit;font-size:13px;outline:none}.ws-chat-send{position:absolute;bottom:12px;right:12px;width:30px;height:30px;background:var(--tx);color:var(--bg);border-radius:50%;font-size:21px}.ws-chat>small{text-align:center;color:var(--tx-3);font-size:10px;margin-top:8px}
.ws-dialog-shade{position:fixed;inset:0;background:#0004;display:grid;place-items:center;z-index:100;padding:20px}.ws-confirm{max-width:380px;padding:24px;border-radius:18px;background:var(--bg);box-shadow:var(--shadow)}.ws-confirm h2{font-size:18px;margin:0 0 12px}.ws-confirm p{font-size:13px;color:var(--tx-3)}.ws-confirm>div{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.ws-confirm button{font-size:12px;background:var(--bg-1);border-radius:8px;padding:8px 12px}.ws-confirm button:last-child{background:#a83228;color:white}.ws-mobile-nav{display:none}
.ws-cast-pair{max-width:1240px;grid-template-columns:300px minmax(0,1fr);gap:48px}.ws-pair-form{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ws-pair-form .ws-error,.ws-pair-form .ws-submit,.ws-pair-form .ws-local-note{grid-column:1/-1}.ws-pair-form .ws-readout{white-space:normal;gap:8px}.ws-pair-form .ws-readout small{display:block;margin:4px 0}.ws-pair-form .ws-dial{width:45px;height:45px}.ws-pair-form .ws-person{min-width:0}.ws-pair-form .ws-person h2{font-size:13px}.ws-pair-result{padding:120px 30px 60px;max-width:1120px;margin:auto}.ws-pair-result>div{display:grid;grid-template-columns:1fr 1fr;gap:28px}.ws-pair-result h1{font-size:34px}.ws-pair-result h2{font-size:17px}.ws-pair-result .ws-mini{max-width:440px}.ws-pair-result>.ws-recast{max-width:200px;margin-top:20px}
@keyframes ws-star-pulse{from{background:#cdbd9444}to{background:transparent}}
@media(max-width:1099px) and (min-width:768px){.ws-cast{padding:104px 32px 44px;grid-template-columns:minmax(0,1fr) minmax(360px,43%);gap:44px;align-items:center}.ws-cast h1{font-size:clamp(38px,5.7vw,60px)}.ws-form{padding:24px}.ws-readout{gap:8px;font-size:11px}.ws-readout small{font-size:10px}.ws-dial{width:54px;height:54px}.ws-cast-pair{grid-template-columns:1fr;max-width:850px}.ws-cast-pair .ws-cast-copy{display:none}.ws-topbar{gap:8px;padding:5px 14px}.ws-view-tabs button{padding:6px 10px}.ws-left{padding:21px 20px 24px}.ws-topic-tabs button{padding:6px 10px}.ws-center{gap:6px;padding:8px 10px}.ws-center-brand{font-size:14px}.ws-center>strong{font-size:11px}.ws-pillars{gap:6px;margin-top:4px;padding-top:7px}.ws-pillars>div>div{gap:5px}.ws-radar svg{max-height:370px}}
@media(max-width:767px){.ws-site-head{padding:22px 18px}.ws-account .account-bar{font-size:11px;gap:4px}.ws-account .account-menu{right:0;max-width:calc(100vw - 36px)}.ws-cast{display:flex;flex-direction:column;gap:30px;padding:110px 16px 34px;min-height:0;max-width:520px;align-items:stretch}.ws-cast-copy{text-align:center}.ws-cast-copy h1{font-size:38px;white-space:normal}.ws-cast-copy>hr{margin:20px auto 0}.ws-eyebrow{font-size:11px;letter-spacing:.26em}.ws-form{padding:22px 20px;border-radius:20px}.ws-form h2{font-size:17px}.ws-readout{font-size:12px;gap:10px}.ws-readout small{display:inline-block;font-size:10px;margin-left:3px}.ws-dial{width:54px;height:54px}.ws-recent{text-align:left;margin-top:24px}.ws-recent-head span{font-size:10px}.ws-record-delete{display:block}.ws-record i{display:none}.ws-local-note{font-size:9px}.ws-topbar{padding:5px 12px;height:48px;gap:8px;flex-wrap:wrap}.ws-topbar .ws-account{display:none}.ws-back{padding-right:8px}.ws-view-tabs{flex:1}.ws-view-tabs button{font-size:10px;padding:6px 8px}.ws-view-tabs button small{display:none}.ws-workspace{display:block;height:calc(100dvh - 84px);overflow:hidden}.ws-left{height:100%;padding:20px 19px 30px;overflow:auto}.ws-right{display:none;height:100%}.ws-workspace.show-analysis .ws-left{display:none}.ws-workspace.show-analysis .ws-right{display:flex}.ws-resizer{display:none}.ws-mobile-nav{display:flex;flex:none;border-bottom:1px solid var(--line);padding:3px 16px;height:36px;gap:12px}.ws-mobile-nav button{flex:1;font-size:12px;color:var(--tx-3);border-radius:7px}.ws-mobile-nav button[aria-pressed=true]{background:var(--bg-1);color:var(--tx);font-weight:600}.ws-board{max-width:500px;margin:auto}.ws-stars{gap:0}.ws-center{padding:7px 8px;gap:5px;font-size:9px}.ws-center-brand{font-size:13px;margin-bottom:2px}.ws-center>strong{font-size:10px}.ws-pillars{gap:6px;padding-top:6px;margin-top:4px}.ws-pillars span{font-size:10px}.ws-pillars small{font-size:8px}.ws-masters{font-size:8px;padding-top:3px;gap:2px 4px}.ws-masters b{font-size:9px}.ws-birth-lines,.ws-birth-lines dd{font-size:7px}.ws-current-decade{font-size:8px;padding:4px 2px}.ws-seal-legend{font-size:7px;gap:4px}.ws-center>small{font-size:7px}.ws-palace{padding-top:15px}.ws-palace-meta>b{font-size:10px}.ws-gods small{font-size:7px}.ws-gods small:first-child{font-size:7px}.ws-seal{width:12px;height:13px;font-size:9px}.ws-star-detail{left:18px;right:18px;top:100px;max-width:unset}.ws-panel-head{padding:12px}.ws-topic-tabs{margin:0 12px}.ws-topic-tabs button{font-size:11px;padding:6px 9px;min-height:30px}.ws-body{padding:14px 12px 28px}.ws-overview h1{font-size:22px}.ws-radar svg{max-height:340px}.ws-overview-cards{gap:6px}.ws-overview-cards>div{padding:12px 8px}.ws-overview-cards h3{font-size:11px}.ws-overview-cards p{font-size:11px}.ws-source-status{flex-wrap:wrap;gap:3px}.ws-chat textarea{font-size:16px}.ws-footer{margin-top:24px;font-size:10px;padding:20px 12px}.ws-footer button{font-size:10px}.ws-cast-pair .ws-cast-copy{display:block}.ws-pair-form{display:block}.ws-pair-form .ws-person+.ws-person{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.ws-pair-form .ws-submit{margin-top:12px}.ws-pair-result{padding:100px 18px 30px}.ws-pair-result>div{grid-template-columns:1fr}.ws-place-menu{position:relative;top:auto;margin-top:8px}.ws-place-columns{max-height:240px}}
:root[data-theme=dark] .ws-form,:root[data-theme=dark] .ws-control,:root[data-theme=dark] .ws-timebox{background:var(--bg-1);color:var(--tx);border-color:var(--line)}
:root[data-theme=dark] .ws-cast h1,:root[data-theme=dark] .ws-center>strong,:root[data-theme=dark] .ws-center-brand{color:var(--tx)}
:root[data-theme=dark] .ws-topbar,:root[data-theme=dark] .ws-palace,:root[data-theme=dark] .ws-center{background:var(--bg)}
@media print{body:has(.ws-chart){overflow:visible}.ws-topbar,.ws-right,.ws-resizer,.ws-mobile-nav,.ws-time-rows,.ws-recast,.ws-board-note{display:none!important}.ws-chart,.ws-workspace,.ws-left{display:block!important;height:auto!important;overflow:visible!important}.ws-left{padding:20px!important}.ws-board-shell{max-width:520px!important}.ws-board{break-inside:avoid}#modal-root,#toast{display:none}}
@media(prefers-reduced-motion:reduce){.ws-workspace,.ws-palace,.ws-star{transition:none;animation:none}}
.ws-board{--ws-type-scale:1}.ws-board[data-font=large]{--ws-type-scale:1.2}.ws-board[data-font=extra]{--ws-type-scale:1.4}
.ws-star{font-size:calc(10px * var(--ws-type-scale))}.ws-star.major{font-size:calc(13px * var(--ws-type-scale));min-width:calc(13px * var(--ws-type-scale))}.ws-star.lucky,.ws-star.sha{font-size:calc(11.5px * var(--ws-type-scale));min-width:calc(11.5px * var(--ws-type-scale))}.ws-star.minor{font-size:calc(10px * var(--ws-type-scale))}.ws-star small{font-size:calc(8px * var(--ws-type-scale))}
.ws-palace-meta>b{font-size:calc(12px * var(--ws-type-scale))}.ws-palace-meta>span{font-size:calc(10px * var(--ws-type-scale))}.ws-palace-meta>small,.ws-gods small{font-size:calc(8px * var(--ws-type-scale))}.ws-center>strong{font-size:calc(12px * var(--ws-type-scale))}.ws-pillars span{font-size:calc(12px * var(--ws-type-scale))}.ws-masters b{font-size:calc(10px * var(--ws-type-scale))}.ws-birth-lines,.ws-birth-lines dd{font-size:calc(8px * var(--ws-type-scale))}
.ws-palace.is-stars-expanded .ws-stars{flex-wrap:wrap;align-content:flex-start;row-gap:8px;overflow:auto;scrollbar-width:thin}.ws-palace.is-stars-expanded .ws-star{align-self:flex-start}
@media(max-width:767px){.ws-center>strong,.ws-pillars span{font-size:calc(10px * var(--ws-type-scale))}.ws-palace-meta>b{font-size:calc(10px * var(--ws-type-scale))}.ws-birth-lines,.ws-birth-lines dd{font-size:calc(7px * var(--ws-type-scale))}}

.ws-reading-lens{font-size:13px;line-height:1.9;color:var(--tx-2);margin:0 0 12px}.ws-reading-lens strong{display:block;color:var(--tx);font-weight:600;margin-bottom:2px}.ws-reading-points{margin:10px 0 18px;padding-left:18px;display:grid;gap:9px}.ws-reading-points li{font-size:13px;line-height:1.85;color:var(--tx-2)}

.ws-overview-alias{font-size:11.5px;font-weight:500;color:#6e6e73;padding:2px 9px;border-radius:999px;border:1px solid rgba(0,0,0,.1);line-height:1.6}
.ws-overview-gist{margin:12px 0 10px;font-size:27px;line-height:1.16;font-weight:600;letter-spacing:-.022em;color:var(--tx-1,#1d1d1f)}
.ws-overview-lead{margin:0 0 14px;font-size:14px;line-height:1.68;color:#3a3a38}

/* 宫位不折叠星曜：格子装不下时按密度缩字号，而不是用 +N 藏起来 */
.ws-stars{flex-wrap:wrap;align-content:flex-start;overflow-y:auto;overflow-x:hidden;gap:0;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain}
.ws-stars::-webkit-scrollbar{display:none}
.ws-stars.is-dense .ws-star.major{font-size:11.5px;min-width:11.5px}
.ws-stars.is-dense .ws-star.lucky,.ws-stars.is-dense .ws-star.sha{font-size:10px;min-width:10px}
.ws-stars.is-dense .ws-star.minor{font-size:9px;min-width:9px}
.ws-stars.is-dense .ws-star small{font-size:7px;min-height:8px}
.ws-stars.is-dense-x .ws-star.major{font-size:9.5px;min-width:9.5px}
.ws-stars.is-dense-x .ws-star.lucky,.ws-stars.is-dense-x .ws-star.sha{font-size:8.5px;min-width:8.5px}
.ws-stars.is-dense-x .ws-star.minor{font-size:7.5px;min-width:7.5px}
.ws-stars.is-dense-x .ws-star small{font-size:6.5px;min-height:7px}
.ws-stars.is-dense-x{gap:0}

/* 窄屏标签放大，取自原站同一断点的字号 */
@media(max-width:560px){.ws-radar-label{font-size:18.5px}.ws-radar-star{font-size:14px}}

/* 十三维长文（服务端生成，异步回填；骨架先渲染，永不空白） */
.ws-longform{margin:26px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.ws-longform-status{font-size:11.5px;color:#a6a297;margin:0}
.ws-longform-head{margin:0 0 18px}
.ws-longform-head h2{font-size:19px;line-height:1.3;margin:0 0 6px;color:var(--tx);font-weight:650;letter-spacing:-.01em}
.ws-longform-title{font-size:17px;margin:0 0 16px;color:var(--tx);font-weight:650}
.ws-radar-dot{fill:#2a78d6;stroke:none}
.ws-longform-section{margin:0 0 20px}
.ws-longform-section h3{font-size:13px;margin:0 0 8px;color:#2873ce;font-weight:600;letter-spacing:.02em}
.ws-longform-section p{font-size:13.5px;line-height:1.88;color:var(--tx-2);margin:0;white-space:pre-wrap}
.ws-longform-fallback{font-size:13.5px;line-height:1.88;color:var(--tx-2);margin:0;white-space:pre-wrap}
.ws-longform-refs{margin:18px 0 0;padding-left:18px;display:grid;gap:6px}
.ws-longform-refs li{font-size:11.5px;line-height:1.7;color:#a6a297}
.ws-longform-note{font-size:10.5px;line-height:1.7;color:#b3afa4;margin:16px 0 0}
.ws-longform-gate{font-size:13px;line-height:1.8;color:var(--tx-2);margin:0 0 12px}
.ws-longform-login{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 16px;border-radius:9px;background:var(--tx);color:#fff;font-size:12px;font-weight:600}
.ws-longform-failed{font-size:12.5px;line-height:1.8;color:#b4453c;margin:0}
.ws-longform-scope{font-size:10.5px;line-height:1.7;color:#a6a297;margin:0 0 14px}
.ws-longform-placeholder{font-size:13px;line-height:1.8;color:var(--tx-2);margin:0 0 10px}
.ws-chart-delete{border:1px solid #d8d8d4;background:#fff;color:#8a4b31;border-radius:6px;padding:5px 10px;font-size:12.5px;line-height:1;cursor:pointer;white-space:nowrap}
.ws-chart-delete:hover{border-color:#c08a6a;background:#fdf6f1}
.ws-recent-list{display:grid;gap:2px;max-height:264px;overflow:auto}
@media (max-width:560px){.ws-chart-delete{font-size:12px;padding:4px 8px}.ws-recent-list{max-height:220px}}
