.chart-studio{max-width:1180px;margin:auto;color:#23352e;overflow-wrap:anywhere}.cs-header{display:flex;justify-content:space-between;align-items:start;gap:24px;margin:12px 0 26px}.cs-header h1{font-size:clamp(27px,4vw,44px);line-height:1.2;margin:12px 0}.cs-header p{line-height:1.8;color:#506557}.cs-modes{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap}.cs-modes button,.cs-steps button{font:inherit;color:#284733;min-height:44px;background:#fff;border:1px solid #b5c4af;border-radius:9px;padding:10px 20px;cursor:pointer}.cs-modes button[aria-pressed=true],.cs-steps [aria-current]{background:#244d37;color:#fff;border-color:#244d37}.cs-form,.cs-lesson,.cs-report{border:1px solid #ccd8c5;background:#fff;border-radius:18px;padding:clamp(18px,3vw,32px)}.cs-professional{border:1px solid #aebdaa;background:#fff;border-radius:4px;padding:18px}.cs-professional>h2{font-size:21px;margin:0 0 10px}.cs-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}.chart-studio label{display:flex;flex-direction:column;gap:8px;font-weight:600;line-height:1.5;min-width:0}.chart-studio input,.chart-studio select,.chart-studio textarea{font:inherit;border:1px solid #a8bca5;border-radius:9px;padding:11px;background:#fcfef9;color:#223b2a;width:100%;box-sizing:border-box;min-height:46px}.chart-studio textarea{min-height:100px;line-height:1.7;resize:vertical}.cs-label{margin:22px 0}.cs-check{flex-direction:row!important;align-items:center}.cs-check input{width:20px;min-height:20px}.cs-settings,.cs-sources,.cs-privacy{border-top:1px solid #c9d4c3;padding:18px 0;margin-top:24px}.chart-studio summary{cursor:pointer;font-weight:600;line-height:1.7;min-height:40px}.chart-studio p,.chart-studio li{line-height:1.85}.cs-record{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;margin:14px 0}.cs-steps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:20px 0}.cs-steps button{padding:12px 6px;font-size:12px}.cs-steps button b{display:block;font-size:18px;margin-bottom:8px}.cs-steps button:disabled{color:#6b7568;background:#edf1e9;cursor:not-allowed}.cs-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0}.cs-feedback{background:#eff5df;border-radius:10px;padding:12px;font-weight:600;line-height:1.6}.cs-feedback small{display:block;font-weight:400;margin-top:8px}.cs-explain,.cs-detail{border:1px solid #b8cbb0;border-left:4px solid #608b4a;background:#f5f9ef;padding:22px;border-radius:9px;margin:22px 0}.cs-detail h3{margin-top:0}.cs-meta{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px 14px;font-size:12px;line-height:1.7;margin:12px 0 20px}.cs-meta dt{color:#586752}.cs-meta dd{margin:0}.cs-warnings{border:1px solid #c38b32;background:#fff6df;padding:14px 18px;border-radius:8px;margin:15px 0}.cs-warnings h3{font-size:16px;margin:0 0 8px}.cs-warnings ul{margin:0;padding-left:20px;font-size:13px}.cs-chart-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#eef2e9;border-block:1px solid #b9c7b2;padding:12px;font-size:13px}.cs-chart-caption label{display:flex;flex-direction:row;align-items:center;font-size:12px}.cs-chart-caption input{width:95px;padding:7px;min-height:38px}.cs-matrix-scroll{overflow-x:auto;overscroll-behavior-inline:contain}.cs-pillar-table{border-collapse:collapse;width:100%;table-layout:fixed;background:#fff}.cs-pillar-table caption{text-align:left;padding:12px;font-size:12px;color:#53664c}.cs-pillar-table th,.cs-pillar-table td{border:1px solid #c3ccc0;padding:12px 7px;text-align:center;vertical-align:middle;font-size:13px}.cs-pillar-table thead th{background:#3f5142;color:#fff}.cs-pillar-table thead th:first-child{width:68px}.cs-pillar-table tbody tr:nth-child(even){background:#edf0e9}.cs-pillar-table tbody th{font-weight:500;color:#3b4f3c;background:#e6ebe1}.cs-pillar-table th button{background:transparent;color:inherit;font:inherit;border:0;min-height:44px;padding:8px;cursor:pointer}.cs-big{display:block;font-size:46px;line-height:1.25;font-weight:600}.cs-pillar-table small{display:block;font-size:12px;line-height:1.65;margin-top:5px}.cs-hidden-stem{margin:7px 0}.cs-hidden-stem>b{font-size:22px}.cs-daymaster{box-shadow:inset 0 0 0 2px #5a8050;background:#eff6e4}.element-木{color:#21713c}.element-火{color:#b63229}.element-土{color:#845116}.element-金{color:#986516}.element-水{color:#285294}.cs-caption{font-size:12px;color:#52624c;line-height:1.75}.cs-terms{background:#f3f5f0;padding:14px;border:1px solid #d3dccb}.cs-terms h3{font-size:14px;margin:0 0 8px}.cs-terms p{font-size:12px;margin:5px 0}.cs-scope-note{font-size:12px;border-left:3px solid #a3b894;padding-left:12px;color:#586d4e}.cs-agency{border:1px solid #bdd1aa;background:#f2f8e9;border-radius:14px;padding:24px;margin:28px 0}.cs-agency textarea{background:#fff}.cs-question{font-size:15px;padding:15px;background:#eff3e9;border-radius:9px}.cs-report h3{margin-top:30px}.cs-report p{max-width:84ch}.chart-studio a{color:#285f3c;text-decoration:underline}.chart-studio button,.chart-studio select{touch-action:manipulation}.chart-studio button:focus-visible,.chart-studio input:focus-visible,.chart-studio select:focus-visible,.chart-studio textarea:focus-visible,.chart-studio summary:focus-visible,.cs-matrix-scroll:focus-visible,.cs-ziwei-scroll:focus-visible,.cs-detail:focus-visible{outline:3px solid #be781f;outline-offset:3px}#csStatus{color:#8b351c;font-weight:600}.cs-is-pro .cs-header{margin:6px 0 10px;align-items:center}.cs-is-pro .cs-header h1{font-size:23px;margin:0}.cs-is-pro .cs-header .cast-overline,.cs-is-pro .cs-header p{display:none}.cs-is-pro .cs-modes{margin:10px 0}.cs-is-pro .cs-record{margin:8px 0}
/* Ziwei: true twelve-palace perimeter, center dossier, original styling. */
.cs-ziwei-scroll{overflow-x:auto;overscroll-behavior-inline:contain}.cs-ziwei-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(160px,auto));border-top:1px solid #899b89;border-left:1px solid #899b89;background:#fff}.cs-palace{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;min-height:160px;padding:9px;border:0;border-right:1px solid #899b89;border-bottom:1px solid #899b89;border-radius:0;background:#fff;text-align:left;color:#283829;font:inherit;cursor:pointer;position:relative}.cs-palace:hover,.cs-palace[aria-expanded=true]{background:#f1f5e8}.cs-palace.cs-life{box-shadow:inset 0 0 0 2px #758f64}.cs-palace.cs-body .cs-palace-base em{border:1px solid #a54936;color:#913b2d}.cs-star-group{display:flex;gap:7px;flex-wrap:wrap;margin:2px 0}.cs-star{display:inline-flex;flex-direction:column;align-items:center;font-size:14px;line-height:1.25}.cs-star>b{font-weight:500}.major-stars{color:#a82f31}.minor-stars{color:#245591}.adjective-stars{color:#566150;font-size:11px}.cs-star small{font-size:10px;line-height:1.2;margin-top:3px;color:#66735e}.cs-star em{font-size:10px;line-height:1.2;background:#9e4039;color:#fff;border-radius:3px;font-style:normal;padding:2px 3px;margin-top:3px}.cs-fine-stars{margin:5px 0}.cs-fine-stars .cs-star{font-size:11px}.cs-compact-count{display:none;font-size:10px;color:#687463;margin:6px 0}.cs-palace-limits{margin-top:auto;padding-top:10px;color:#586551;font-size:11px}.cs-palace-base{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:14px;margin-top:6px}.cs-palace-base b{color:#a33431;font-weight:600}.cs-palace-base small{font-size:12px}.cs-palace-base em{font-size:10px;font-style:normal;padding:1px 3px}.cs-ziwei-center{grid-area:2 / 2 / 4 / 4;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;border-right:1px solid #899b89;border-bottom:1px solid #899b89;background:#f8faf4}.cs-ziwei-center>b{font-size:25px;letter-spacing:1px}.cs-ziwei-center p{font-size:13px;line-height:1.7;margin:10px 0}.cs-ziwei-center small{font-size:11px;color:#64715d;line-height:1.6}.cs-cycle-strip{display:flex;overflow-x:auto;border:1px solid #b7c6af;background:#eff3e9;overscroll-behavior-inline:contain}.cs-cycle-strip button{flex:0 0 95px;min-height:65px;padding:10px 7px;border:0;border-right:1px solid #bccab4;background:transparent;color:#354c35;font:inherit;cursor:pointer}.cs-cycle-strip b,.cs-cycle-strip span{display:block;font-size:12px;line-height:1.8}.cs-detail .cs-star-group{gap:12px}.cs-detail .cs-star{font-size:18px}.cs-detail .cs-star small{font-size:12px}
/* Qimen: Luoshu south-up 3 × 3 with fixed palace numbers. */
.cs-four-mini{display:flex;gap:0;border-bottom:1px solid #bcc9b5;width:max-content;max-width:100%;margin:12px 0}.cs-four-mini span{display:flex;flex-direction:column;text-align:center;border-right:1px solid #c1ceb9;padding:7px 18px}.cs-four-mini small{font-size:11px;color:#63755a}.cs-four-mini b{font-size:22px;letter-spacing:3px;line-height:1.7}.cs-qimen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #92a38a;border-left:1px solid #92a38a;max-width:850px;margin:auto}.cs-q-palace{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:14px;min-height:230px;background:#fff;border:0;border-right:1px solid #92a38a;border-bottom:1px solid #92a38a;font:inherit;color:#263d2c;cursor:pointer}.cs-q-palace:hover,.cs-q-palace[aria-expanded=true]{background:#f1f6e8}.cs-q-top{display:flex;justify-content:space-between;align-items:start;gap:6px;font-size:16px;min-height:26px}.cs-q-top em{font-style:normal;font-size:10px;display:inline-block;padding:3px;background:#edf0b8;border-radius:7px;margin-left:3px;color:#394b21}.cs-q-star{display:flex;gap:8px;align-items:center;margin-top:12px}.cs-q-star>b{font-size:25px;font-weight:500}.cs-q-star small,.cs-q-sky small{font-size:10px;vertical-align:top;margin-left:2px}.cs-q-sky{display:flex;justify-content:flex-end;gap:8px;font-size:25px;margin:6px 0}.cs-q-door{font-size:28px;text-align:center;margin:4px 0 10px;font-weight:500}.cs-q-bottom{display:flex;justify-content:space-between;align-items:end;margin-top:auto;font-size:20px}.cs-q-bottom small{font-size:10px;display:block;color:#63765a}.cs-q-bottom b{font-size:25px}.cs-q-marker{font-size:10px;color:#7d4c20;min-height:16px;margin-top:8px}.cs-chief-star{box-shadow:inset 0 0 0 2px #5e7c46}.cs-q-summary{border:1px solid #b6c8aa;border-top:0;background:#f2f5ed;padding:12px 16px;max-width:850px;margin:auto;box-sizing:border-box}.cs-q-summary p{font-size:13px;margin:5px 0}.cs-q-summary b{display:inline-block;min-width:45px}
@media(max-width:800px){.cs-header{display:block}.cs-header h1{font-size:29px}.cs-input-grid{grid-template-columns:1fr}.cs-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.cs-professional{padding:12px}.cs-meta{grid-template-columns:75px minmax(0,1fr);gap:6px 9px}.cs-pillar-table th,.cs-pillar-table td{padding:9px 4px;font-size:12px}.cs-pillar-table thead th:first-child{width:42px}.cs-pillar-table th button{padding:5px 2px;font-size:12px}.cs-big{font-size:35px}.cs-pillar-table small{font-size:10px}.cs-hidden-stem>b{font-size:19px}.cs-chart-caption{flex-wrap:wrap}.cs-modes button{flex:1;padding:11px 7px;font-size:13px}.cs-ziwei-grid{grid-template-rows:repeat(4,minmax(115px,auto))}.cs-palace{min-height:115px;padding:6px}.cs-fine-stars{display:none}.cs-compact-count{display:block}.cs-star-group{gap:4px}.cs-palace .cs-star{font-size:12px}.cs-palace .cs-star>b{writing-mode:vertical-rl}.cs-palace .cs-star small{font-size:9px}.cs-palace .cs-star em{font-size:9px}.cs-palace-base{font-size:11px;flex-wrap:wrap}.cs-palace-base small{font-size:10px}.cs-palace-limits{font-size:10px}.cs-ziwei-center{padding:8px}.cs-ziwei-center>b{font-size:17px}.cs-ziwei-center p{font-size:11px;line-height:1.6;margin:7px 0}.cs-ziwei-center small{font-size:9px}.cs-expanded .cs-ziwei-grid{min-width:760px;grid-template-rows:repeat(4,minmax(175px,auto))}.cs-expanded .cs-fine-stars{display:block}.cs-expanded .cs-compact-count{display:none}.cs-expanded .cs-palace .cs-star>b{writing-mode:horizontal-tb}.cs-expanded .cs-palace .cs-star{font-size:13px}.cs-expanded .cs-palace-base{font-size:14px}.cs-q-palace{min-height:165px;padding:9px}.cs-q-top{font-size:13px}.cs-q-top em{font-size:9px;padding:2px}.cs-q-star{gap:4px;margin-top:6px}.cs-q-star>b{font-size:19px}.cs-q-door{font-size:22px}.cs-q-sky{font-size:21px}.cs-q-bottom{font-size:17px}.cs-q-bottom b{font-size:21px}.cs-four-mini span{padding:6px 13px}.cs-four-mini b{font-size:19px}.cs-agency{padding:18px}}
@media(max-width:450px){.cs-form,.cs-lesson,.cs-report{padding:16px;border-radius:12px}.cs-professional{padding:8px}.cs-meta{font-size:11px;grid-template-columns:63px minmax(0,1fr)}.cs-record{font-size:11px}.cs-pillar-table th,.cs-pillar-table td{font-size:10px;padding:8px 2px}.cs-pillar-table thead th:first-child{width:33px}.cs-big{font-size:29px}.cs-pillar-table small{font-size:9px}.cs-hidden-stem>b{font-size:17px}.cs-pillar-table th button{font-size:11px;min-width:31px}.cs-ziwei-grid{grid-template-rows:repeat(4,minmax(107px,auto))}.cs-palace{min-height:107px;padding:5px}.cs-palace .cs-star{font-size:11px}.cs-palace .cs-star-group{gap:3px}.cs-compact-count{font-size:8px}.cs-palace-limits{font-size:9px}.cs-palace-base b{font-size:10px}.cs-ziwei-center>b{font-size:14px}.cs-ziwei-center p{font-size:10px;margin:5px 0}.cs-ziwei-center small{font-size:8px}.cs-q-palace{min-height:145px;padding:7px}.cs-q-star>b{font-size:16px}.cs-q-star{gap:3px}.cs-q-top{font-size:12px}.cs-q-door{font-size:20px}.cs-q-sky{font-size:19px}.cs-q-bottom{font-size:14px}.cs-q-bottom b{font-size:19px}.cs-q-marker{font-size:8px}.cs-q-summary{padding:10px}.cs-q-summary p{font-size:11px}.cs-four-mini span{padding:5px 10px}.cs-four-mini b{font-size:17px}.cs-chart-caption{font-size:12px;padding:10px 7px}.cs-modes{gap:5px}.cs-modes button{font-size:12px;padding:10px 5px}}
@media(prefers-reduced-motion:reduce){.chart-studio *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.cs-track-entry{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px;background:#eff4e5;border:1px solid #c1d0b1;border-radius:12px;margin-bottom:18px}.cs-home-entry{border:1px solid #bccaad;background:#f3f7e9;border-radius:14px;padding:20px;margin:20px 0}.cs-home-entry strong,.cs-home-entry small{display:block}.cs-home-entry div{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.cs-home-entry button{min-height:46px;border:1px solid #a1b68e;background:#fff;border-radius:9px;padding:10px 16px;color:#2c4c31;font:inherit;cursor:pointer}.cs-home-entry small{color:#607054;font-size:12px}@media(max-width:600px){.cs-track-entry{display:block}.cs-track-entry button{margin-top:12px}.cs-home-entry div button{flex:1}}
.cs-palace.cs-related{background:#eef5e6}.cs-palace[aria-expanded=true]{background:#dceacb;box-shadow:inset 0 0 0 2px #55743f}
@media(max-width:450px){.cs-palace .cs-star{font-size:13px}.cs-palace .cs-star small,.cs-palace .cs-star em,.cs-compact-count,.cs-palace-limits{font-size:10px}.cs-palace-base b{font-size:11px}.cs-ziwei-center small{font-size:10px}.cs-q-marker{font-size:10px}}
.cs-year-error{border:1px solid #bf8344;background:#fff3de;padding:12px;color:#7b401b;font-size:13px}.cs-cycle-strip button[aria-pressed=true]{background:#d9e7c7;box-shadow:inset 0 0 0 2px #5c7f3e}.cs-decadal{margin:20px 0}.cs-decadal h3{font-size:17px}.cs-decadal>p{font-size:13px}
