/* Shared Atlas materials and type roles, including secondary screens and dialogs. */
body.atlas-unified{
 --font-display:'Playfair Display',Georgia,serif;
 --atlas-accent:#7745a0;--gold:#7745a0;--orange:#b887dc;--orange-hover:#c69ce5;
 --ink:var(--reference-ink,#321d48);--muted:var(--reference-muted,#655074);
 --atlas-ink:var(--ink);--berry:var(--ink);--editorial-ink:var(--ink);
 --atlas-rule:#b499cb66;--line:#b499cb66;
 --action-glass:linear-gradient(135deg,#ffffffe0,#eee0f7c9);
 --primary-glass:linear-gradient(135deg,#f6eafff0,#d1afe9e0);
 --action-edge:#ffffffdc;--action-shadow:inset 0 1px #fff9,0 4px 12px #64478014;
 --disclosure-fill:#ffffff66;--disclosure-open:#eee0f7ad;--disclosure-edge:#b499cb66;
 --control-fill:#ffffffb8;--chip-fill:#e8daf2b8;
 font:400 14px/1.5 'PT Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body.atlas-unified :is(.view,dialog){min-width:0;overflow-wrap:anywhere}
body.atlas-unified :is(button,input,select,textarea){box-sizing:border-box}
body.atlas-unified :is(.view,dialog) :where(p,li,label,legend,button,a){font-family:var(--today-font-body);font-size:14px;line-height:1.5}
body.atlas-unified :is(.view,dialog) :where(h2,h3,h4){font-family:var(--today-font-heading);font-size:16px;line-height:1.35}
body.atlas-unified :is(.view,dialog) :where(small,.eyebrow,.atlas-muted){font-size:12px;line-height:1.45}
body.atlas-unified :is(.view,dialog) :where(input,textarea,select){max-width:100%;min-width:0;font:400 16px/1.4 var(--today-font-body)}
body.atlas-unified :is(.view,dialog) :where(input:not([type=checkbox]):not([type=radio]),textarea,select){padding:11px 12px;border:1px solid #ffffffdc;border-radius:13px;background:var(--control-fill);color:var(--ink)}
body.atlas-unified :is(.view,dialog) :where(input[type=checkbox],input[type=radio]){accent-color:var(--atlas-accent)}
body.atlas-unified :is(button,a,summary):focus-visible{outline:2px solid #8759ab!important;outline-offset:3px}
body.atlas-unified :is(.primary-button,.soft-button,.text-button){font:600 14px/1.4 var(--today-font-body);min-height:44px;white-space:normal;overflow-wrap:anywhere}
body.atlas-unified :is(.primary-button,.soft-button){border-radius:14px}
body.atlas-unified:has(#today.active){--home-heading:16px;--home-body:14px;--home-meta:12px}

/* Secondary screens use the same shell and headings as Chart, Pair and My Atlas. */
body.atlas-unified :is(#transits,#birth,#start,#access,#help).active{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:0;background:none;color:var(--reference-ink)}
body.atlas-unified :is(#transits,#birth,#start,#access,#help)>*{min-width:0}
body.atlas-unified :is(#transits,#start,#access,#help)>.section-heading{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;gap:16px;margin:0;padding:0 6px;border:0;background:none!important;box-shadow:none;min-height:0;overflow:visible}
body.atlas-unified :is(#transits,#start,#access,#help) .atlas-heading-copy{min-width:0;flex:1 1 300px}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(h1,.section-heading h2){margin:0 0 10px;color:var(--reference-ink);font:600 28px/1.15 var(--today-font-heading);letter-spacing:-.02em;overflow-wrap:anywhere}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(h3,.atlas-panel h2,.access-intro h2,.access-plans h2){margin:0 0 10px;color:var(--reference-ink);font:600 16px/1.35 var(--today-font-heading)}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(p,li,label,.lead){font:400 14px/1.55 var(--today-font-body);letter-spacing:0;color:var(--reference-ink)}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(.atlas-muted,small,.eyebrow,.form-note,.form-status){font:400 12px/1.45 var(--today-font-body);letter-spacing:0;color:var(--reference-muted)}
body.atlas-unified :is(#transits,#access)>.illustrated-heading>.atlas-scene-image{display:none}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(.atlas-panel,.intro-card,.method-card,.timeline-card,.period-card,.access-intro,.access-plans>article,.access-conditions,.access-details,.route-card){min-width:0;padding:20px;border:1px solid #ffffffe6!important;border-radius:var(--reference-radius)!important;background:var(--reference-glass)!important;color:var(--reference-ink)!important;box-shadow:inset 0 1px #fff8,0 7px 22px #76539412!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(.tarot-frame,.intro-card,.method-card)::before,body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(.tarot-frame,.intro-card,.method-card)::after{display:none}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) details>summary{box-sizing:border-box;position:relative;min-width:0;min-height:44px;padding:11px 46px 11px 12px!important;border:1px solid #ffffffb8!important;border-radius:13px!important;background:#ffffff55!important;color:var(--reference-ink)!important;box-shadow:none!important;font:600 14px/1.45 var(--today-font-body)}
body.atlas-unified :is(#transits,#birth,#start,#access,#help) details>summary::after{right:12px;border-radius:50%;border-color:#ac8abf55;color:var(--reference-ink)!important}
body.atlas-unified #transits .forecast-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 300px;gap:10px;width:100%;max-width:390px;align-self:end}
body.atlas-unified #transits .date-chip{display:grid;gap:5px;min-width:0;margin:0;padding:10px 12px;border:1px solid #ffffffdf;border-radius:15px;background:var(--reference-glass);font:400 12px/1.4 var(--today-font-body);color:var(--reference-muted)}
body.atlas-unified #transits .date-chip input{width:100%;min-width:0;max-width:100%;margin:0;padding:9px 7px;border:1px solid #fff;border-radius:10px;background:#ffffff8c;color:var(--reference-ink);font-size:16px}
body.atlas-unified #transits .progression-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start}
body.atlas-unified #transits .timeline-head{display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center;justify-content:space-between;padding:0 0 14px;margin:0;border-bottom:1px solid #b499cb44}
body.atlas-unified #transits .timeline-head>span{font:600 16px/1.35 var(--today-font-heading)}
body.atlas-unified #transits .timeline-head>strong{font:600 12px/1.4 var(--today-font-body);color:var(--reference-muted)}
body.atlas-unified #transits .timeline{min-height:150px;margin:16px 0;gap:8px;padding:0}
body.atlas-unified #transits .timeline-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:124px;padding:10px 8px!important;border:1px solid #ffffffd9!important;border-radius:16px!important;background:#ffffff66!important;box-shadow:none!important;color:var(--reference-ink)!important}
body.atlas-unified #transits .timeline-point>span{width:58px;height:58px}
body.atlas-unified #transits .timeline-point small{font:400 12px/1.4 var(--today-font-body);text-align:center;color:var(--reference-ink)}
body.atlas-unified #transits .timeline-action::after{position:static;transform:none;flex:none;width:20px;height:20px;margin-top:0!important;border-radius:50%;font-size:16px}
body.atlas-unified #transits .timeline-action small::after{display:none}
body.atlas-unified #transits :is(.progression-summary,.date-finder,.progression-insight){min-width:0;padding:14px;border:1px solid #ffffffb8;border-radius:16px;background:#ffffff59;box-shadow:none;color:var(--reference-ink)}
body.atlas-unified #transits .date-finder{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:16px}
body.atlas-unified #transits .date-finder>*{min-width:0;margin:0}
body.atlas-unified #transits :is(.date-finder label,.date-finder select){width:100%;min-width:0}
body.atlas-unified #transits .period-icon{width:66px;height:66px;margin:0 0 10px}
body.atlas-unified #transits .atlas-details{margin-top:14px;padding:0;border:0;background:none}
body.atlas-unified #birth .birth-form{gap:14px}
body.atlas-unified #birth .birth-form input{width:100%;min-width:0;padding:12px;border:1px solid #fff;border-radius:13px;background:var(--control-fill);font:400 16px/1.4 var(--today-font-body);color:var(--reference-ink)}
body.atlas-unified #birth .method-card{min-height:0}
body.atlas-unified #access .access-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.atlas-unified #access .access-plans .access-price{font:600 26px/1.2 var(--today-font-heading);color:var(--reference-ink)}
body.atlas-unified #access .access-featured{outline:2px solid #c39de27a;outline-offset:-3px}
body.atlas-unified #help .help-grid{gap:14px}

/* Explanation windows share a quiet glass header and the same compact reading type. */
body.atlas-unified :is(.planet-dialog,.payment-dialog,.location-dialog,.access-checkout){box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - var(--atlas-safe-top,0px) - var(--atlas-safe-bottom,0px) - 24px);inset:var(--atlas-safe-top,0px) var(--atlas-safe-right,0px) var(--atlas-safe-bottom,0px) var(--atlas-safe-left,0px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;touch-action:auto;border:1px solid #ffffffe6!important;border-radius:22px!important;background:linear-gradient(140deg,#fdf9fff2,#eee1f7ed)!important;color:var(--reference-ink)!important;box-shadow:0 16px 60px #54347130!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.atlas-unified dialog::backdrop{background:#35214645;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
body.atlas-unified .planet-dialog-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:10px 14px 10px 20px;border-bottom:1px solid #ffffffdb;background:#f5eaf9ed!important;box-shadow:0 3px 10px #7653940a;color:var(--reference-ink)!important;font:400 12px/1.4 var(--today-font-body);backdrop-filter:blur(12px)}
body.atlas-unified .planet-dialog-heading>span{min-width:0;font:inherit}
body.atlas-unified :is(.planet-dialog-heading button,.dialog-close,.checkout-close){display:grid;place-items:center;flex:0 0 44px;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;margin:0 0 0 auto;padding:0!important;border:1px solid #fff!important;border-radius:50%!important;background:#ffffff9c!important;color:var(--reference-ink)!important;box-shadow:inset 0 1px #fff!important;font:400 28px/1 var(--today-font-body)}
body.atlas-unified .planet-dialog-content{min-width:0;padding:20px}
body.atlas-unified .planet-dialog-content>h3{margin:0 0 12px;font:600 20px/1.3 var(--today-font-heading)!important;color:var(--reference-ink);overflow-wrap:anywhere}
body.atlas-unified :is(.planet-dialog-meta,.planet-dialog-note,.planet-dialog-retro){font:400 12px/1.5 var(--today-font-body)!important;color:var(--reference-muted)!important}
body.atlas-unified :is(.location-dialog-card,.payment-dialog-card,.access-checkout>form){min-width:0;max-width:100%;margin:0;padding:22px;border:0;border-radius:inherit;background:none!important;box-shadow:none!important;color:var(--reference-ink)}
body.atlas-unified :is(.location-dialog-card,.payment-dialog-card)::before,body.atlas-unified :is(.location-dialog-card,.payment-dialog-card)::after{display:none}
body.atlas-unified :is(.location-dialog-card h3,.payment-dialog-card h3,.access-checkout h2){padding-right:34px;font:600 22px/1.3 var(--today-font-heading)!important;color:var(--reference-ink)}
body.atlas-unified :is(.location-dialog-card p,.payment-dialog-card p,.access-checkout p,.terms-check){font:400 14px/1.5 var(--today-font-body);color:var(--reference-ink)}
body.atlas-unified :is(.payment-dialog-card,.access-checkout>form){position:relative;padding-top:68px}
body.atlas-unified :is(.dialog-close,.checkout-close){position:absolute;right:14px;top:14px}
body.atlas-unified .location-dialog-card label{font:400 12px/1.4 var(--today-font-body);letter-spacing:0;color:var(--reference-muted)}
body.atlas-unified .location-dialog-card select{padding:12px;border:1px solid #fff;border-radius:13px;background:var(--control-fill);color:var(--reference-ink);font:400 16px/1.4 var(--today-font-body)}
body.atlas-unified .package-grid{gap:8px}
body.atlas-unified .package-card{min-width:0;padding:16px 12px;border-radius:16px}

/* The same reading component appears in answers, the natal portrait and both dialogs. */
body.atlas-unified :is(.reading-answer,.reading-panel,.reading-panel-body,.reading-toolbar,.reading-panel-title){box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere}
body.atlas-unified .reading-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0;padding:0 0 14px;border-bottom:1px solid #b499cb33;font:400 12px/1.4 var(--today-font-body);color:var(--reference-muted)}
body.atlas-unified .reading-toolbar .reading-toggle{display:inline-grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;column-gap:10px;flex:0 1 auto;min-width:0;max-width:100%;min-height:44px;margin:0 0 0 auto;padding:10px 12px!important;border:1px solid #ffffffd9!important;border-radius:13px!important;background:#ffffff73!important;box-shadow:none!important;color:var(--reference-ink)!important;font:600 12px/1.4 var(--today-font-body)!important;text-align:left;white-space:normal}
body.atlas-unified .reading-toolbar .reading-toggle::after{position:static;grid-column:2;grid-row:1;box-sizing:border-box;transform:none;width:24px;height:24px;border:1px solid #b499cb66;border-radius:50%;background:#fff5;color:var(--reference-ink)!important;font:400 18px/1 var(--today-font-body)}
body.atlas-unified .reading-panel{min-width:0;margin:10px 0;padding:16px!important;border:1px solid #ffffffc9!important;border-radius:18px!important;background:#ffffff69!important;box-shadow:none!important;color:var(--reference-ink)!important}
body.atlas-unified .reading-panel.reading-lead{border-left:2px solid #c5a4e5!important;background:linear-gradient(120deg,#e8d8f47a,#ffffff80)!important}
body.atlas-unified .reading-panel-head{display:flex;align-items:center;gap:9px;margin:0 0 12px;min-width:0}
body.atlas-unified .reading-panel>.reading-panel-head{padding:0;border:0}
body.atlas-unified details.reading-panel>summary.reading-panel-head{position:relative;display:flex;min-width:0;min-height:44px;margin:0;padding:8px 38px 8px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--reference-ink)!important;font:600 14px/1.4 var(--today-font-body)}
body.atlas-unified details.reading-panel>summary.reading-panel-head::after{right:0;box-sizing:border-box;width:24px;height:24px;border:1px solid #b499cb66!important;border-radius:50%!important;background:#ffffff55!important;color:var(--reference-ink)!important;font:400 18px/1 var(--today-font-body)}
body.atlas-unified .reading-number{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid #b499cb55;border-radius:50%;font:400 12px/1 var(--today-font-body);color:var(--reference-muted)}
body.atlas-unified :is(.reading-panel-title,.reading-panel h4){min-width:0;margin:0;font:600 14px/1.4 var(--today-font-body)!important;color:var(--reference-ink)!important}
body.atlas-unified :is(.reading-panel p,#planet-dialog-copy p,#synastry-dialog-copy p,.natal-report-copy .reading-panel p){margin:0 0 12px;font:400 14px/1.6 var(--today-font-body)!important;letter-spacing:0;color:var(--reference-ink)!important;overflow-wrap:anywhere}
body.atlas-unified .reading-panel p:last-child{margin-bottom:0}
body.atlas-unified details.reading-panel[open]>.reading-panel-body{padding-top:12px}
body.atlas-unified .chart-interaction-list .chart-insight-button{min-width:0;max-width:100%;padding:12px;border:1px solid #ffffffb8!important;border-radius:13px!important;background:#ffffff66!important;color:var(--reference-ink)!important;box-shadow:none!important;font:400 14px/1.5 var(--today-font-body);text-align:left}

/* Percentages summarise all calculated aspects in each sphere, with details on tap. */
#synastry .pair-scores-heading{margin:20px 0 12px;font:600 16px/1.35 var(--today-font-heading)!important}
#synastry .pair-topic-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#synastry .pair-score-card{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-content:start;min-height:174px;padding:14px;border-radius:18px!important}
#synastry .pair-score-card>.reference-round-icon{grid-column:1;grid-row:1;width:32px;height:32px}
#synastry .pair-score-card>.reference-round-icon svg{width:23px;height:23px}
#synastry .pair-score-card h3{grid-column:2;align-self:center;min-width:0;font:600 14px/1.3 var(--today-font-body)!important;overflow-wrap:anywhere}
#synastry .pair-score-card>.pair-score-value{grid-column:1/-1;font:600 28px/1.15 var(--today-font-heading)!important;color:var(--reference-ink)!important}
#synastry .pair-score-card>.pair-score-meter{grid-column:1/-1;width:100%;height:7px;border:1px solid #ffffffd9;border-radius:999px;background:#fff7;overflow:hidden;appearance:none}
#synastry .pair-score-meter::-webkit-progress-bar{background:#fff7}
#synastry .pair-score-meter::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,#a76cce,#dbc1f0)}
#synastry .pair-score-meter::-moz-progress-bar{border-radius:999px;background:linear-gradient(90deg,#a76cce,#dbc1f0)}
#synastry .pair-score-card>.pair-score-source,#synastry .pair-score-card>.pair-score-link{grid-column:1/-1;font:400 12px/1.4 var(--today-font-body)!important;color:var(--reference-muted)!important;overflow-wrap:anywhere}
#synastry .pair-score-card>.pair-score-link{margin-top:auto;text-decoration:underline;text-underline-offset:3px}
#synastry .pair-score-method{margin-top:14px}
#synastry .pair-score-method>summary{position:relative;min-height:44px;padding:11px 44px 11px 12px!important;border:1px solid #ffffffa6!important;border-radius:13px!important;background:#ffffff4d!important;color:var(--reference-ink)!important;font:600 12px/1.4 var(--today-font-body)}
#synastry .pair-score-method p{font:400 12px/1.55 var(--today-font-body);color:var(--reference-muted);overflow-wrap:anywhere}

@media(max-width:760px){
 body.atlas-unified :is(#transits,#birth,#start,#access,#help).active{gap:12px}
 body.atlas-unified :is(#transits,#birth,#start,#access,#help) :is(.atlas-panel,.intro-card,.method-card,.timeline-card,.period-card,.access-intro,.access-plans>article,.access-conditions,.access-details,.route-card){padding:16px}
 body.atlas-unified #transits .forecast-controls{max-width:none;flex-basis:100%}
 body.atlas-unified #transits .progression-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 body.atlas-unified #access .access-plans{grid-template-columns:minmax(0,1fr)}
 body.atlas-unified .planet-dialog-content{padding:16px}
 body.atlas-unified :is(.location-dialog-card,.payment-dialog-card,.access-checkout>form){padding:18px}
 body.atlas-unified :is(.payment-dialog-card,.access-checkout>form){padding-top:68px}
 body.atlas-unified .package-grid{grid-template-columns:minmax(0,1fr)}
 #synastry .pair-topic-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #synastry .pair-score-card{display:grid;grid-template-columns:minmax(0,1fr);min-height:208px;padding:12px;gap:8px}
 #synastry .pair-score-card h3{grid-column:1;min-height:36px;overflow-wrap:normal}
}
@media(prefers-reduced-motion:reduce){body.atlas-unified *{scroll-behavior:auto!important}}
html.tg-dark body.atlas-unified{
 --reference-ink:#f4e9fc;--reference-muted:#dac9e8;
 --reference-glass:linear-gradient(118deg,#3d2c51d9,#50365dba);
 --control-fill:#4b365ee8;--chip-fill:#4a345c;
 --action-glass:linear-gradient(135deg,#674d78e8,#4b355ced);
 --primary-glass:linear-gradient(135deg,#87639cee,#604779ee);
 --action-edge:#c2a2d573;--disclosure-fill:#4b355cb8;--disclosure-open:#614775c9;
}
html.tg-dark body.atlas-unified :is(.planet-dialog,.payment-dialog,.location-dialog,.access-checkout){background:linear-gradient(140deg,#3a294ef2,#4c345ced)!important}
html.tg-dark body.atlas-unified .planet-dialog-heading{background:#4b355ceb!important}
html.tg-dark body.atlas-unified :is(.planet-dialog-heading button,.dialog-close,.checkout-close,.reading-panel,.reading-toolbar .reading-toggle){background:#684d7c66!important;border-color:#d2b5e655!important}
html.tg-dark body.atlas-unified .reading-panel.reading-lead{background:linear-gradient(120deg,#68487988,#50385d99)!important}
html.tg-dark body.atlas-unified #transits :is(.date-chip input,.timeline-action,.progression-summary,.date-finder,.progression-insight){background:#4f3865a8!important;border-color:#c9a7de55!important;color:var(--reference-ink)!important}
@media(max-width:355px){body.atlas-unified #transits .forecast-controls{grid-template-columns:minmax(0,1fr)}}
