/* Approved plum/lavender editorial system. Shared by the chart app and reading room. */
:root{color-scheme:light;--bg:#f5ecfb;--panel:#fcf8ff;--surface:#fcf8ff;--raised:#eee0f5;--text:#281d2e;--ink:#281d2e;--muted:#65566d;--gold:#86580d;--line:#d3bddf;--focus:#71367b;--plum:#552859;--plum-dark:#421d48;--header-gold:#f4d57c;--serif:'Noto Serif CJK TC','Noto Serif TC','Songti TC','PMingLiU',serif}
html{scroll-behavior:auto;scroll-padding-top:28px}body{background:var(--bg);color:var(--text);font-size:17px;line-height:1.8}h1,h2,h3,h4{color:var(--plum);text-wrap:pretty}h1,h2,.report-card h3,.chart-center h3{font-family:var(--serif)}a,button,input,select,summary{touch-action:manipulation}button,a,summary{transition:background-color .18s,color .18s,border-color .18s}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}input,select{color-scheme:light}button:disabled{opacity:.5;cursor:not-allowed}
body>header{width:100%;max-width:none;margin:0;padding:22px max(24px,calc((100vw - 1120px)/2));background:var(--plum);color:#fff;border:0;gap:24px;min-height:100px}.brand,.brand-name b,body>header .brand b{color:var(--header-gold)}.brand img{width:48px;height:48px}.brand-name b{font-size:27px;letter-spacing:3px}.brand-name small,.brand small,body>header .brand small{color:#f3e8f7;letter-spacing:2px}.header-nav,body>header nav{color:#fff;font-size:16px}.header-nav a,body>header nav a{min-height:44px;display:inline-flex;align-items:center}.header-nav a:hover,body>header nav a:hover{color:var(--header-gold)}body>header a:focus-visible{outline-color:var(--header-gold)}.header-profile{display:flex;align-items:center;gap:18px;margin-left:auto;font-size:17px}.header-profile a{color:var(--header-gold);padding:8px 0 8px 18px;border-left:1px solid #aa86b3;min-height:44px}.has-chart .header-nav{display:none}main{max-width:1120px;width:calc(100% - 48px);margin:auto}footer{color:var(--muted);border-color:var(--line)}
.intro{display:block;padding:64px 0 38px;max-width:820px}.intro h1{font-size:clamp(36px,5vw,54px);line-height:1.5;letter-spacing:1px}.intro h1 em{color:var(--plum);font-style:normal}.intro h1 br{display:none}.intro .lead{font-size:20px;max-width:720px;margin:20px 0 28px;color:var(--muted)}.eyebrow{color:var(--gold);margin-bottom:16px}.hero-note{font-size:16px}.hero-cta,.primary,.button{background:var(--plum);color:#fff;border-color:var(--plum);min-height:50px;border-radius:8px}.hero-cta:hover,.primary:hover,.button:hover{background:var(--plum-dark);transform:none}.journey{margin-bottom:32px;padding:20px 0}.journey li{padding-left:48px}.journey li>span{color:var(--gold)}.journey small{color:var(--muted)}.has-chart .intro,.has-chart .journey{display:none}
.input-panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;margin:24px 0}.input-panel>summary{padding:20px 24px;gap:20px}.input-panel summary small{color:var(--gold)}.input-panel summary b{color:var(--plum)}.input-summary{color:var(--muted)}.edit-label{color:var(--plum)}.form-card{background:transparent}.form-intro h2{color:var(--plum)}.form-intro p,label{color:var(--muted)}.form-card input,.form-card select,#profile-name,#profile-select,.year-controls input{color:var(--text);background:#fff;border:1px solid #b49bc2;border-radius:6px;min-height:48px;font-size:17px}.form-card input:focus,.form-card select:focus{border-color:var(--plum)}.secondary{color:var(--plum);border-color:var(--line);min-height:44px}.profile-panel{background:transparent;border-color:var(--line)}.profile-panel summary{color:var(--plum);min-height:48px}.profile-manager,.profile-editor{background:transparent}.profile-buttons button,.profile-heading button,#clear{background:var(--panel);color:var(--plum);border:1px solid var(--line);min-height:44px}#profile-save{background:var(--plum);color:#fff}#error,#report-error{color:#a12242;font-size:16px}.profile-panel p{color:var(--muted)}
.chart-dashboard{background:transparent;padding:0;margin:24px 0 18px;border:0;border-radius:0}.chart-dashboard .result-heading{padding:0;margin-bottom:12px;align-items:center}.chart-dashboard .result-heading h2{font:500 22px/1.5 var(--serif);margin:0}.chart-dashboard .result-heading .section-label{display:none}.chart-dashboard .edit-report{color:var(--plum);font-size:16px;min-height:44px;display:inline-flex;align-items:center}.birth-dashboard{border:1px solid var(--line);border-radius:8px;background:var(--panel)}.birth-dashboard>summary{padding:12px 18px;min-height:48px;color:var(--plum)}.birth-dashboard[open]>.bento-board{padding:20px}.chart-dashboard #meta{color:var(--text)}.bento-board,.birth-record,.stats{min-width:0}.birth-celebration-heading,.birth-keepsakes,.chart-stat,.bento-card,.birth-keepsake{background:var(--panel);border-color:var(--line);color:var(--text)}.birth-keepsake strong,.birth-keepsake span{color:var(--text)}.birth-keepsake svg{stroke:var(--plum)}.birth-calculation-note{color:var(--muted)}
.reading-units{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:var(--plum);border:0;border-radius:0;margin:20px calc((min(1120px,100vw - 48px) - 100vw)/2) 0;padding:0 max(24px,calc((100vw - 1120px)/2));}.reading-units a{background:transparent;color:#fff;border:0;border-bottom:4px solid transparent;border-radius:0;font-size:20px;text-align:center;justify-content:center;padding:13px 8px;min-height:58px}.reading-units a[aria-current]{color:var(--header-gold);border-bottom-color:var(--header-gold)}.reading-units a:hover{background:#65366a}.reading-units a:focus-visible{outline-color:var(--header-gold);outline-offset:-5px}
.natal-chart-section{margin:30px 0 40px}.natal-chart-heading{align-items:center}.natal-chart-heading h2{font-size:clamp(28px,4vw,40px);font-weight:600;margin:0}.natal-chart-heading button{display:block;background:transparent;color:var(--plum);border-color:var(--line);min-height:44px;font-size:16px}.chart-help{font-size:16px;color:var(--muted);line-height:1.8}.traditional-chart{background:var(--line);border-color:var(--line);gap:1px;padding:1px;border-radius:10px;grid-template-rows:repeat(4,minmax(150px,auto))}.chart-cell{background:var(--bg);padding:14px 12px;border:2px solid transparent;border-radius:0;color:var(--text)}.chart-cell:hover{background:var(--raised)}.chart-cell.selected{border-color:#bb8528;background:#fff4e3}.chart-cell-heading strong{color:var(--plum);font-size:20px;font-family:var(--serif)}.chart-cell-heading>span{color:var(--muted)}.chart-markers b{color:var(--plum);border-color:#b299bc}.chart-major{font-family:var(--serif);font-size:22px;font-weight:600;color:#211326}.chart-hua{color:#704807;background:#fff5d9;border-color:#b78c3d;font:500 14px/1.5 system-ui,sans-serif}.chart-minor-stars{display:none;color:var(--muted)}.show-all-stars .chart-minor-stars{display:flex}.chart-more-stars{display:block;color:var(--muted);font-size:14px}.show-all-stars .chart-more-stars{display:none}.chart-decade{font-size:14px;color:var(--muted);padding-top:10px}.chart-center{background:#efe3f5;padding:20px}.chart-center h3{font-size:34px;color:var(--gold)}.chart-center p,.chart-center dl{font-size:16px;color:var(--text)}.chart-center dt,.chart-center .chart-center-note{color:var(--muted);font-size:14px}.chart-selection{padding:20px;background:var(--panel);border-color:var(--line)}.chart-selection h3{color:var(--plum)}.chart-selection a{color:var(--plum);border-color:var(--line);min-height:44px}.chart-selection p{font-size:16px}.chart-cell.evidence-primary{box-shadow:inset 0 0 0 3px #88488e}.chart-cell.evidence-reference{outline-color:#88488e}.chart-evidence-marker{color:#6d3275}.chart-evidence{background:var(--raised);border-color:var(--line);padding:18px}.chart-evidence h3{color:var(--plum)}.chart-evidence p{color:var(--muted)}.chart-evidence button,.evidence-actions a,.palace-reading-links a{color:var(--plum);background:var(--panel);border-color:var(--line)}
#personal-report{margin-top:32px}.unit-heading h2{font-size:36px;color:var(--plum)}.unit-heading>p{color:var(--muted);font-size:18px}.section-label{color:var(--gold)}.report-summary{margin:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.report-summary>summary{padding:14px 0;min-height:48px;color:var(--plum);font-size:17px}.report-overview{background:transparent;border:0;padding:8px 0;margin:0}.report-overview:before{display:none}.report-overview p{font-size:20px;color:var(--text)}.topic-dashboard{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 24px}.topic-card,.topic-card:last-child{grid-column:auto;background:var(--panel);border-color:var(--line);border-radius:8px;padding:18px}.topic-card>strong{font-size:17px}.topic-card-top b{color:var(--plum)}.topic-card-link,.topic-card-top small{color:var(--muted)}.report-jump{background:var(--bg);border-color:var(--line);top:0}.report-jump a{color:var(--plum);font-size:17px;min-height:48px}.report-jump a span{color:var(--gold)}.report-card{display:grid;grid-template-columns:56px minmax(0,1fr) auto;column-gap:18px;row-gap:16px;padding:36px 0;border-color:var(--line);scroll-margin-top:72px}.report-card-label{display:contents}.report-card-label>span{grid-column:1;grid-row:1;font:italic 34px/1.5 var(--serif);color:var(--gold)}.report-card-label h3{grid-column:2;grid-row:1;font:600 29px/1.5 var(--serif);margin:0;color:var(--plum)}.report-card h4{grid-column:2 / 4;font:500 20px/1.7 system-ui,sans-serif;margin:0;color:var(--plum)}.report-card>.reading-chart-action{grid-column:3;grid-row:1;align-self:start;justify-self:end;margin:0;min-height:44px;padding:8px 0 8px 12px;background:transparent;border:0;border-radius:0;color:var(--plum);font-size:16px;text-decoration:underline;text-underline-offset:5px}.report-card>p{grid-column:2 / 4;font-size:18px;line-height:1.95;margin:0;max-width:900px;color:var(--text)}.report-card>.report-action{padding:20px 24px;background:var(--raised);border-left:3px solid #b48635;border-radius:8px;margin-top:4px;color:var(--plum);font-weight:500}
#flow,#palace-explorer{border-color:var(--line)}.report-toolbar{background:var(--panel);border-color:var(--line)}.year-controls button{color:var(--plum);background:var(--raised);border-color:var(--line);min-height:44px;min-width:44px}.annual-reading{max-width:900px}.annual-reading h3,.annual-reading h4{color:var(--plum)}.annual-reading p{color:var(--text);font-size:18px;line-height:1.95}.year-comparison,.comparison-card,.flow-block,.flow-item,.age,.detail,.learning-note,.star-reference{background:var(--panel);color:var(--text);border-color:var(--line)}.flow-block h3,.learning-note h4,.detail h3,.star-reference h3{color:var(--plum)}.flow-block p,.detail p,.learning-note p,.star-reference p{color:var(--text)}.age,.tag{color:var(--muted);background:var(--raised);border-color:var(--line)}.palace{background:var(--panel);color:var(--plum);border-color:var(--line);min-height:56px}.palace.selected{background:var(--plum);color:#fff;border-color:var(--plum)}.palace.selected small{color:#eee0f5}.palace small{color:var(--muted)}.reading-library,.methods{background:var(--panel);border-color:var(--line)}.reading-library summary,.methods summary{color:var(--plum);min-height:48px}.reading-library input{background:#fff;color:var(--text);border-color:var(--line)}.star-reference small{color:var(--muted)}.ad-placement{border-color:var(--line)}.sports-banner{background:#eee5f3;border-color:var(--line);color:var(--plum)}.sports-copy h2,.sports-kicker,.sports-copy p,.sports-cta{color:var(--plum)}
/* Reading room: same palette and typography; all original article content retained. */
.article-head{max-width:900px}.article-head h1{font-family:var(--serif);color:var(--plum)}.article-head .intro{display:block;padding:0;color:var(--muted);font-size:21px}.crumbs,.contents ol,.index-group>p{color:var(--muted)}.contents{border-color:#aa7d24}.contents h2,.prose h2,.prose h3,.related h2,.index-group h2,.topic h3{font-family:var(--serif);color:var(--plum)}.topic{background:var(--panel);border-color:var(--line);border-radius:8px}.topic p{color:var(--muted)}.topic>span,.topic b{color:var(--gold)}.chart-cta{background:var(--raised);border-color:#ad8130;border-radius:8px}.chart-cta p{color:var(--text)}.answer{border-color:var(--line)}.index-jump a,.contents a,.combination-links a,footer>a{min-height:44px;display:inline-flex;align-items:center}.index-jump{color:var(--plum)}.related{border-color:var(--line)}
@media(max-width:800px){.topic-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.report-card{grid-template-columns:44px minmax(0,1fr);column-gap:12px}.report-card-label h3{font-size:26px}.report-card>.reading-chart-action{grid-column:2;grid-row:2;justify-self:start;padding:4px 0}.report-card h4,.report-card>p{grid-column:1 / 3}.header-profile{font-size:15px;gap:12px}.header-profile a{padding-left:12px}}
@media(max-width:600px){body>header{padding:18px 16px;gap:14px;flex-wrap:wrap;min-height:88px}.brand img{width:38px;height:38px}.brand-name b,body>header .brand b{font-size:23px;letter-spacing:2px}.brand-name small,body>header .brand small{font-size:11px;letter-spacing:1.8px}.header-nav,body>header nav{gap:14px;font-size:15px}.header-profile{width:100%;justify-content:space-between;border-top:1px solid #89618f;padding-top:8px;gap:8px}.header-profile a{border:0;padding:4px 0}main{width:calc(100% - 32px);margin:0 16px}.intro{padding:36px 0 26px}.intro h1{font-size:35px;line-height:1.5}.intro .lead{font-size:18px;line-height:1.85}.journey{gap:12px;padding:16px 0}.journey li{padding:0;border:0}.journey li>span{position:static;display:block;font-size:22px}.journey b{font-size:15px}.journey small{display:none}.input-panel{margin:20px 0;border-radius:8px}.input-panel>summary{padding:16px;gap:12px}.form-card{padding:20px 16px}.form-intro h2{font-size:26px}.form-intro p{font-size:17px}.form-card input,.form-card select{font-size:17px}.chart-dashboard{margin:18px 0}.chart-dashboard .result-heading h2{font-size:20px}.birth-dashboard[open]>.bento-board{padding:12px}.reading-units{margin:18px -16px 0;padding:0 16px}.reading-units a{font-size:19px;min-height:54px;padding:10px 4px}.natal-chart-section{margin:24px 0 32px}.natal-chart-heading{gap:12px}.natal-chart-heading h2{font-size:29px}.natal-chart-heading button{max-width:108px;font-size:15px;padding:8px}.chart-help{font-size:15px;line-height:1.8}.traditional-chart{grid-template-rows:repeat(4,minmax(150px,auto));border-radius:7px}.chart-cell{padding:8px 4px}.chart-cell-heading strong{font-size:16px}.chart-cell-heading>span{font-size:14px}.chart-major,.chart-star{font-size:16px;line-height:1.55}.chart-hua{font-size:14px}.chart-markers b,.chart-more-stars,.chart-decade{font-size:14px}.chart-center{padding:14px 8px}.chart-center h3{font-size:27px}.chart-center dl,.chart-center p{font-size:15px}.chart-center dt,.chart-center .chart-center-note{font-size:14px}.chart-selection{padding:16px}.chart-selection p{font-size:16px}.chart-evidence{padding:16px}.unit-heading h2{font-size:31px}.unit-heading>p{font-size:17px}.report-summary{margin:20px 0}.report-overview p{font-size:18px}.topic-dashboard{grid-template-columns:1fr}.topic-card{padding:16px}.report-jump a{font-size:16px}.report-card{padding:28px 0;row-gap:14px;grid-template-columns:40px minmax(0,1fr);gap:14px 10px}.report-card-label>span{font-size:30px}.report-card-label h3{font-size:25px}.report-card h4{font-size:20px;line-height:1.7}.report-card>p{font-size:18px;line-height:1.95}.report-card>.report-action{padding:18px 16px}.report-toolbar{padding:16px 12px}.year-controls{flex-wrap:wrap}.year-controls input{max-width:100px}.annual-reading p{font-size:18px}.article-head{padding:30px 0}.article-head h1{font-size:33px}.article-head .intro{font-size:19px}.prose h2{font-size:26px}.topic p{font-size:18px}body>footer{width:calc(100% - 32px);margin-left:16px;margin-right:16px}.sports-banner{padding:18px}.sports-copy h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Secondary birth keepsakes keep their actual calendar/clock/cake, in the shared light surface. */
.chart-dashboard #meta.birth-record{background:var(--panel);border-color:var(--line);box-shadow:none;color:var(--text)}.birth-celebration-heading{color:var(--gold);background:transparent}.birth-celebration-heading h3{color:var(--plum)}.birth-celebration-heading small,.birthday-cake figcaption>span{color:var(--muted)}.birth-festive-flourish{display:none}.birth-celebration-heading:before,.birth-celebration-heading:after{background:var(--line)}.birth-record .clock-object figcaption strong,.birthday-cake figcaption strong{color:var(--plum)}.birth-context,.birth-context>div+div{border-color:var(--line)}.birth-record strong>span:not(.birth-hour){color:var(--muted)}.birth-keepsake{background:var(--raised);box-shadow:none;border-color:var(--line)}.destiny-link,.bento-sub-link{color:var(--plum);border-color:var(--line)}.destiny-link:hover,.bento-sub-link:hover{color:var(--gold)}#profile-status,.profile-panel>summary span{color:var(--muted)}#profile-save:hover{background:var(--plum-dark)}.profile-panel>summary:focus-visible,#profile-save:focus-visible{outline-color:var(--focus)}
/* Result mode gives priority to the chart; editing and keepsakes remain one action away. */
.has-chart .input-panel:not([open]){display:none}.has-chart .chart-dashboard .result-heading{display:none}.has-chart .chart-dashboard{margin:14px 0}.has-chart .birth-dashboard{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}.has-chart .birth-dashboard>summary{padding:8px 0;font-size:16px}.destiny-lead{background:var(--raised);border-color:var(--line);box-shadow:none}.destiny-copy h3{color:var(--plum)}.stats .branch-seal{color:var(--plum);border-color:var(--line)}.palace-article-link a{color:var(--plum)}.year-comparison{background:var(--panel)}
@media(max-width:600px){.has-chart>header{flex-wrap:nowrap;gap:10px}.has-chart .brand-name b{font-size:21px;letter-spacing:1px}.has-chart .brand img{width:32px;height:32px}.has-chart .brand-name small{font-size:10px;letter-spacing:1px}.has-chart .header-profile{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;width:auto;margin-left:auto;border:0;padding:0;gap:0;max-width:135px;font-size:13px;line-height:1.5}.has-chart #header-profile-label{max-width:135px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.has-chart .header-profile a{min-height:44px;padding:4px 0;font-size:15px}.has-chart .chart-dashboard{margin:8px 0}.chart-decade span:first-child{display:none}.show-all-stars .chart-decade span:first-child{display:block}}
.chart-basic{display:grid;grid-template-columns:auto minmax(0,1fr);text-align:left;gap:10px 18px;align-items:baseline;border-top:1px solid var(--line);padding-top:18px}.chart-center .chart-basic dt{margin:0}.chart-center .chart-basic dd{margin:0}.chart-additional{width:100%;font-size:14px}.chart-additional summary{min-height:44px;padding:10px 0;color:var(--plum);cursor:pointer}.chart-additional dl{margin:0}.chart-center{justify-content:center}@media(max-width:600px){.chart-basic{display:block;text-align:center;padding-top:10px;margin-top:10px!important}.chart-center .chart-basic dt{margin-top:8px}.chart-additional summary{font-size:14px;padding:8px 0}}
.has-chart .reading-units{margin-top:0}.has-chart .chart-dashboard{margin:8px 0 0}.has-chart .birth-dashboard>summary{padding:6px 0}.chart-markers:empty{display:none}.chart-markers{min-height:0}.chart-decade span:first-child{display:none}.show-all-stars .chart-decade span:first-child{display:block}.chart-center h3{font-size:40px}.chart-selection{display:block;padding:0;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}.chart-selection>summary{padding:12px 0;min-height:48px;color:var(--plum);font-size:16px;cursor:pointer}.chart-selection[open]{padding-bottom:18px}.chart-selection>div{margin:12px 0}.chart-selection>a{margin-top:8px}.chart-selection .palace-reading-links{margin:16px 0 8px}.chart-selection>summary::marker{color:var(--gold)}@media(max-width:600px){.chart-center h3{font-size:27px}.chart-cell{padding-top:6px;padding-bottom:6px}.chart-selection{padding:0}.chart-selection>summary{font-size:15px}}
/* Compact editorial rhythm: preserve full content, remove inherited dashboard whitespace. */
.has-chart main{padding-top:0}.has-chart .chart-section{margin-top:0;padding-top:0}.has-chart #filled{padding-top:0}.natal-chart-section{margin-top:20px;margin-bottom:24px}.chart-help{margin:12px 0 16px}.unit-heading{margin-bottom:16px}.unit-heading h2{margin:6px 0 10px}#personal-report{margin-top:24px}.report-summary{margin:16px 0}.report-summary>summary{padding:8px 0}.report-jump{margin:16px 0}.report-card{padding:24px 0}
.has-chart .workspace{padding-top:0}.chart-help{max-width:65ch}.unit-heading .section-label{margin-bottom:6px}.unit-heading>p{margin:10px 0}.report-jump{padding:0}.report-card{row-gap:12px}
.chart-help>summary{min-height:44px;padding:7px 0;cursor:pointer;color:var(--muted)}.chart-help>p{margin:4px 0 12px}.header-profile{min-width:0}#header-profile-label{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.chart-center .chart-basic{line-height:1.45}.chart-center .chart-basic dt{margin-top:6px}.chart-center .chart-basic dd{line-height:1.5}.chart-center{padding:10px 6px}.chart-help{margin:8px 0 12px}}
/* Reference-sized editorial hierarchy; mobile keeps the independently verified scale. */
@media(min-width:801px){.brand img{width:56px;height:56px}.brand-name b{font-size:32px;font-weight:600}.header-profile{font-size:20px}.chart-major{font-size:26px}.chart-cell-heading strong{font-size:23px}.unit-heading h2{font-size:40px;font-weight:650}.report-card-label h3{font-size:34px;font-weight:650}.report-card-label>span{font-size:40px}.report-card>p{font-size:19px}.chart-center h3{font-size:44px}}
.chart-decade .chart-age-range{display:inline-block!important;white-space:nowrap}.form-actions .primary>span{font-family:system-ui,sans-serif;font-size:22px}
/* Paint the full-bleed nav without viewport-unit layout overflow at scrollbar widths. */
.reading-units{margin-left:0;margin-right:0;padding-left:0;padding-right:0;box-shadow:0 0 0 100vmax var(--plum);clip-path:inset(0 -100vmax)}
/* Mobile-only entry simplification. Desktop retains the original v59 layout. */
@media(max-width:600px){
.intro .lead,.intro .hero-cta,.intro .hero-note,.journey,.form-intro{display:none}
body:not(.has-chart) #input-panel>summary{display:none}
.form-card{grid-template-columns:minmax(0,1fr)}
body:not(.has-chart) .intro{padding-bottom:0}
body:not(.has-chart) .workspace{padding-top:0}
body:not(.has-chart) .input-panel{margin-top:16px}
}

/* Restore the original keepsake/bento presentation and show it after every chart. */
.birth-dashboard .bento-board{--bg:#08111f;--panel:#101f31;--raised:#172a40;--line:#304156;--gold:#e2bd70;--muted:#b5c2d2;--text:#f3f5f8;--focus:#ffe3a4;color:var(--text)}
.birth-dashboard .birth-celebration-heading{background:transparent;color:#e7c889}
.birth-dashboard .birth-keepsakes{background:transparent;border-color:#c6a76e55}
.birth-dashboard .birth-keepsake{background:linear-gradient(125deg,#34425388,#182b3d88);border-color:#b89a5f66}
.birth-dashboard .birth-keepsake strong{color:#f2e6cc}.birth-dashboard .birth-keepsake span{color:#c8bda4}.birth-dashboard .birth-keepsake svg{stroke:#ddbe7f}
.birth-dashboard .chart-stat{background:#0a1727;border-color:#35485c;color:var(--text)}
.birth-dashboard .destiny-lead{background:radial-gradient(ellipse at 85% 15%,#66543333,transparent 60%),linear-gradient(145deg,#263647,#122235);border-color:#a18a5b}
.birth-dashboard .destiny-copy h3{color:#f0d59b}.birth-dashboard .stats .branch-seal{color:#d4e5e9;border-color:#637d88}
.birth-dashboard #meta.birth-record{border:1px solid #8a744b;border-top:2px solid #ddbd7d;background:radial-gradient(ellipse at 50% -10%,#3a4551 0%,#1c3043 38%,#102031 78%);box-shadow:inset 0 0 0 6px #d6b97508,inset 0 0 65px #d3a75208}
.birth-dashboard .birth-celebration-heading h3{color:#f0dcae}.birth-dashboard .birth-celebration-heading small{color:#c6b48f}.birth-dashboard .birth-celebration-heading:before,.birth-dashboard .birth-celebration-heading:after{background:linear-gradient(90deg,transparent,#b79961)}
.birth-dashboard .birth-festive-flourish{display:block}.birth-dashboard .birth-record .clock-object figcaption strong{color:#f2d99f}.birth-dashboard .birthday-cake figcaption strong{color:#f3dba6}.birth-dashboard .birthday-cake figcaption>span{color:#c8bda4}
.birth-dashboard .birth-keepsake{box-shadow:inset 0 1px #edcf9333}.birth-dashboard .destiny-link{color:#f0d59b;border-color:#7c7259}.birth-dashboard .bento-sub-link{color:#bbd4df}.birth-dashboard .destiny-link:hover,.birth-dashboard .bento-sub-link:hover{color:#fff4d7}

/* User-supplied desktop/mobile advertisements: preserve full artwork and tracking. */
.sports-image-banner{display:block;min-height:0;padding:0;border:0;border-radius:0;background:transparent;width:100%}.sports-image-banner:after{display:none}.sports-image-banner picture,.sports-image-banner img{display:block;width:100%;height:auto}.sports-image-banner img{object-fit:contain;aspect-ratio:2048/314}.sports-image-banner:focus-visible{outline:3px solid var(--focus);outline-offset:4px}@media(max-width:700px){.sports-image-banner img{aspect-ratio:696/482}}
/* Selected design's editorial chapter signature: italic gold number and fine slash. */
.report-card{grid-template-columns:90px minmax(0,1fr) auto;column-gap:18px}.report-card-label>span{position:relative;display:block;align-self:start;padding-right:28px;line-height:1.3}.report-card-label>span:after{content:"";position:absolute;right:8px;top:1px;height:1.45em;border-right:1px solid currentColor;transform:rotate(25deg);transform-origin:center}
@media(max-width:800px){.report-card{grid-template-columns:68px minmax(0,1fr);column-gap:12px}}
@media(max-width:600px){.report-card{grid-template-columns:60px minmax(0,1fr);column-gap:10px}.report-card-label>span{font-size:30px;padding-right:22px}.report-card-label>span:after{right:5px}}

/* Approved reference: gold-star takeaway and a real, keyboard-native reading disclosure. */
.report-card>.report-action{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border:0;border-radius:9px;background:#ecdef3;color:var(--text);font-weight:500}.report-key-icon{color:#c29337;font-size:27px;line-height:1.5;flex:none}.report-action strong{color:var(--gold);font-weight:650}.report-continuation{grid-column:2 / 4;min-width:0;margin-top:12px}.report-continuation>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:24px;min-height:64px;padding:14px 20px;border-radius:9px;background:var(--plum);color:#fff;text-align:center;font-size:21px;font-weight:600;line-height:1.5;cursor:pointer}.report-continuation>summary::-webkit-details-marker{display:none}.report-continuation>summary:hover{background:var(--plum-dark)}.report-continue-arrow{color:var(--header-gold);font-size:30px;font-weight:400}.report-read-less,.report-continuation[open] .report-read-more{display:none}.report-continuation[open] .report-read-less{display:inline}.report-continuation[open] .report-continue-arrow{transform:rotate(-90deg)}.report-continuation-body p{font-size:19px;line-height:1.95;margin:20px 0 0;color:var(--text);max-width:900px}@media(max-width:800px){.report-continuation{grid-column:1 / 3}}@media(max-width:600px){.report-card>.report-action{padding:14px 16px;gap:8px}.report-continuation>summary{font-size:19px;gap:16px;padding:14px 12px;min-height:64px}.report-continuation-body p{font-size:18px}.report-key-icon{font-size:24px}}
/* Alternating earthly-branch sequence around all twelve palaces; selection/evidence remain explicit. */
.chart-cell:not(.selected){background:#f7effb}.chart-cell:not(.selected):is([data-chart-branch="0"],[data-chart-branch="2"],[data-chart-branch="4"],[data-chart-branch="6"],[data-chart-branch="8"],[data-chart-branch="10"]){background:#e4d0ee}.chart-cell:not(.selected):hover{background:#d9bee7}.chart-cell.selected{background:#fff4e3;border-color:#bb8528}

/* Native disclosure keeps its accessible expanded state; the decorative chevron follows it. */
.reading-library .library-chevron{display:inline-block;width:10px;height:10px;margin:0 4px 3px 10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}.reading-library[open] .library-chevron{transform:rotate(225deg);margin-bottom:-2px}
.reading-library>summary>span:last-child{display:flex;align-items:center;gap:10px;max-width:190px}.reading-library .library-chevron{flex-shrink:0;margin-left:0}@media(max-width:600px){.reading-library>summary>span:last-child{max-width:150px}}
/* The disclosure now contains the chart, so only its help paragraph is narrow. */
#natal-chart-help{max-width:none;width:100%}#natal-chart-help>p{max-width:65ch}
/* Natal pattern evidence: keeps the approved plum/lavender hierarchy. */
.pattern-report{margin:0 0 26px;border:1px solid #d5bedb;border-radius:14px;background:#faf5fc;color:#352039}
.pattern-report>summary{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;cursor:pointer;list-style:none}
.pattern-report>summary::-webkit-details-marker{display:none}.pattern-report>summary b{font-size:20px;color:#552859}.pattern-report>summary small{display:block;font-size:14px;color:#68516c;margin-top:3px}
.pattern-chevron{border-right:2px solid #69446e;border-bottom:2px solid #69446e;width:9px;height:9px;transform:rotate(45deg);margin:0 4px 6px;transition:transform 180ms}
.pattern-report[open]>summary .pattern-chevron{transform:rotate(225deg);margin-top:6px}.pattern-report-body{padding:0 20px 20px}.pattern-report-body>p{font-size:16px}
.pattern-report-body h3{font-size:21px}.pattern-report h4{font-size:17px;margin:18px 0 8px}.pattern-report a{color:#552859;text-decoration:underline;text-underline-offset:3px}
.pattern-item{border-top:1px solid #ddcce2;margin:0}.pattern-item>summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;padding:14px 4px;min-height:50px;cursor:pointer}.pattern-item>summary strong{font-size:19px;color:#552859}.pattern-item>summary small{font-size:13px;color:#6a526f}.pattern-item-body{padding:0 4px 20px}.pattern-item-body p,.pattern-item-body li{font-size:16px;line-height:1.8}.pattern-definition{margin-top:0}
.pattern-actions{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;margin:18px 0}.pattern-actions button{min-height:44px;padding:10px 16px;background:#552859;color:#fff;border:1px solid #552859;border-radius:8px;font-size:16px}.pattern-actions a{display:inline-flex;align-items:center;min-height:44px}.pattern-actions button[aria-pressed=true]{box-shadow:0 0 0 3px #c4a567}
.pattern-definition-notes>summary,.pattern-configurations>summary,.pattern-pending>summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:600}.pattern-configurations,.pattern-pending{border-top:1px solid #ddcce2;margin-top:18px;padding-top:6px}.pattern-cautions{border-left:3px solid #b59556;padding-left:16px}.pattern-error{border:1px solid #c8ab80;padding:14px;border-radius:8px}.pattern-item,.pattern-report{scroll-margin-top:110px}
.pattern-kind{display:inline-block;background:#efe2f3;color:#552859;font-size:14px;padding:5px 10px;border-radius:6px}.pattern-sources{border-top:1px solid #d5bedb;margin-top:30px;padding-top:22px}.pattern-sources a{overflow-wrap:anywhere}.pattern-index-groups{margin-top:26px}.pattern-index-groups .index-group{scroll-margin-top:90px}
@media(max-width:600px){.pattern-report>summary{padding:14px}.pattern-report-body{padding:0 14px 16px}.pattern-report>summary b{font-size:18px}.pattern-item>summary{display:block}.pattern-item>summary small{display:block;margin-top:4px}.pattern-actions{display:block}.pattern-actions button{display:block;margin-bottom:8px}.pattern-actions a{line-height:1.6}.pattern-report-body h3{font-size:20px}.pattern-item,.pattern-report{scroll-margin-top:90px}}
@media(prefers-reduced-motion:reduce){.pattern-chevron{transition:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.pattern-judgement{background:#f5edf7;border-left:3px solid #b59556;padding:1px 16px 10px;margin:18px 0}.pattern-judgement h4{color:#552859}.pattern-judgement[data-judgement="broken"]{border-left-color:#8e4565}.pattern-judgement .muted{font-size:14px;overflow-wrap:anywhere}
