/* First-screen priorities: one compact header, clear action and intact words. */
body.atlas-unified:has(#today.active, .view.active) .topbar{
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;min-height:0;
 padding:calc(8px + max(var(--atlas-safe-top,0px),var(--atlas-fullscreen-top-floor,0px))) 20px 6px!important;
}
body.atlas-unified:has(#today.active, .view.active) .topbar .brand{grid-column:1;grid-row:1;display:flex;align-items:center;gap:7px;min-width:0;max-width:none;margin:0;padding:0!important;font:600 16px/1.3 var(--today-font-heading)!important;letter-spacing:0!important;white-space:nowrap;color:var(--reference-ink)!important}
body.atlas-unified:has(#today.active, .view.active) .topbar .brand-mark{display:grid!important;width:22px;height:28px;margin:0;font:400 24px/1 var(--today-font-heading)!important;color:var(--reference-ink)!important}
body.atlas-unified:has(#today.active, .view.active) .topbar .brand-lockup{min-width:0;max-width:none}
body.atlas-unified:has(#today.active, .view.active) .brand-lockup .brand-name{display:block;max-width:none;white-space:nowrap}
body.atlas-unified:has(#today.active, .view.active) .brand-tagline{display:none!important}
body.atlas-unified:has(#today.active, .view.active) .topbar .language-toggle{position:static;grid-column:3;grid-row:1;width:34px;height:34px;min-height:34px;margin:0;padding:4px!important;font-size:12px!important}
body.atlas-unified:has(#today.active, .view.active) .topbar .credit-badge{grid-column:2!important;grid-row:1!important;align-self:center;max-width:110px;min-width:0;min-height:32px;margin:0;padding:5px 8px!important;font:600 12px/1.25 var(--today-font-body)!important;white-space:normal}
body.atlas-unified:has(#today.active, .view.active) .credit-badge svg{width:16px;height:16px}
body.atlas-unified:has(#today.active, .view.active) .topbar .main-nav{grid-column:1/-1;grid-row:2;min-width:0;margin-top:6px}
body.atlas-unified:has(#today.active, .view.active) .app-shell{padding-top:8px!important}
/* The continuing painted clouds stay; only Today reserves space for a cover. */
body.atlas-unified:not(:has(#today.active))>.atlas-scene-layer{display:none!important}
body.atlas-unified :is(#chart,#synastry,#ask,#cabinet,#places,#birth,#access,#transits,#start,#help) .section-heading,
body.atlas-unified :is(#places) .reference-hero{
 display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:start;gap:8px;min-height:0!important;height:auto;max-height:none;margin:0 0 4px!important;padding:8px 4px!important;border:0!important;background:none!important;box-shadow:none!important;
}
body.atlas-unified :is(#chart,#synastry,#ask,#cabinet,#places,#birth,#access,#transits,#start,#help) .section-heading::before,
body.atlas-unified :is(#chart,#synastry,#ask,#cabinet,#places) .section-heading::after{content:none!important;display:none!important}
body.atlas-unified :is(.reference-hero-copy,.atlas-heading-copy){width:100%!important;max-width:100%;min-width:0}
body.atlas-unified :is(.reference-hero-note,.chart-hero-note,.today-hero-signature,.chart-orbit-note,.chart-orbit-caption){display:none!important}
body.atlas-unified .section-heading .atlas-scene-image{display:none!important}
body.atlas-unified :is(#chart,#synastry,#ask,#cabinet,#places) .section-heading :is(.reference-kicker,.eyebrow){display:none!important}
body.atlas-unified :is(#chart,#synastry,#ask,#cabinet,#places,#birth,#access,#transits,#start,#help) .section-heading h1{margin:0 0 5px!important;font:600 28px/1.2 var(--today-font-heading)!important;letter-spacing:0!important;overflow-wrap:normal;word-break:normal;hyphens:none}
body.atlas-unified :is(#chart,#synastry,#ask,#cabinet,#places) .section-heading p{max-width:100%;margin:0;font:400 14px/1.45 var(--today-font-body)!important;overflow-wrap:normal;word-break:normal;hyphens:none}
/* The empty state is a full-width invitation immediately below Today's cover. */
body.atlas-unified #today .atlas-glass-heading{order:1;grid-column:1/-1;min-height:126px!important;padding:10px 16px!important}
body.atlas-unified #today .atlas-glass-heading-copy{width:75%;max-width:540px}
body.atlas-unified #today #today-main-title{font:600 32px/1.15 var(--today-font-heading)!important;letter-spacing:0;margin:2px 0 5px}
body.atlas-unified #today .today-hero-kicker{display:none}
body.atlas-unified #today .today-hero-date{font:400 12px/1.4 var(--today-font-body)!important}
body.atlas-unified #today .today-hero-quote{max-width:330px;margin:8px 0 0;padding-left:0;font:400 12px/1.4 var(--today-font-body)!important;overflow-wrap:normal;hyphens:none}
body.atlas-unified #today .today-hero-quote::before{display:none}
body.atlas-unified #today #daily-empty{order:2;grid-column:1/-1;align-self:start;height:auto;margin:0!important;padding:18px!important;border:1px solid #e0c4ffbd!important;border-radius:22px!important;background:radial-gradient(ellipse at 100% 0,#8f60af66,transparent 65%),linear-gradient(125deg,#3b2259f5,#58346fee)!important;box-shadow:inset 0 1px #e8ccff66,0 7px 20px #4a2b6b30!important;color:#fff5ff!important}
body.atlas-unified #today #daily-empty h2{margin:0 0 7px;font:600 20px/1.25 var(--today-font-heading)!important;color:#fff5ff!important}
body.atlas-unified #today #daily-empty p{margin:0 0 12px;color:#e9d9f3!important;font:400 14px/1.45 var(--today-font-body)!important;overflow-wrap:normal;word-break:normal}
body.atlas-unified #today #daily-empty .primary-button{display:flex;width:100%;min-height:50px;margin:0;padding:12px 16px!important;gap:10px;border:1px solid #f4dfff!important;border-radius:15px!important;background:linear-gradient(180deg,#ffffff24,transparent 48%),linear-gradient(125deg,#8144b3,#61328f)!important;box-shadow:inset 0 1px #fff9,0 3px 0 #21123180,0 5px 13px #130a2930!important;color:#fffaff!important;font:700 16px/1.4 var(--today-font-body)!important;text-align:left;white-space:normal;word-break:normal;overflow-wrap:normal}
body.atlas-unified #today #daily-empty .primary-button::after{flex-basis:26px;width:26px;height:26px;background:#ffffff26;border-color:#ffffff73;color:#fffaff}
body.atlas-unified #today #daily-empty .atlas-muted{margin:10px 0 0;color:#e6d0f2!important;font:400 12px/1.4 var(--today-font-body)!important}
body.atlas-unified #today .daily-personal-story{order:2;grid-column:1/-1}
body.atlas-unified #today .daily-discover{order:3}
body.atlas-unified #today .today-overview{order:4}
body.atlas-unified #today .today-meditation{order:5;grid-column:1/-1}
body.atlas-unified #today .today-calendar{order:6}
body.atlas-unified #today .daily-shortcut :is(.shortcut-copy,strong,small){min-width:0;max-width:100%;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none}
/* Moon facts get their own row; no measurement competes with the phase name. */
body.atlas-unified #today .today-overview>.today-moon{grid-template-columns:minmax(0,1fr)!important;gap:10px;padding:14px!important}
body.atlas-unified #today .today-moon-heading{grid-column:1;grid-row:2;gap:12px}
body.atlas-unified #today #today-moon-disc{width:70px;height:70px}
body.atlas-unified #today #daily-phase{font:600 20px/1.25 var(--today-font-heading)!important;overflow-wrap:normal;word-break:normal;hyphens:none}
body.atlas-unified #today .today-moon-metrics{grid-column:1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
body.atlas-unified #today .today-moon-metrics>div{padding:9px 10px;min-width:0}
body.atlas-unified #today .today-moon-metrics p{font:400 12px/1.4 var(--today-font-body)!important;white-space:normal;overflow-wrap:normal!important;word-break:normal;hyphens:none}
body.atlas-unified #today .today-moon-metrics strong{font:700 16px/1.3 var(--today-font-body)!important}
body.atlas-unified #today .atlas-phase-cycle{grid-row:4;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:10px 2px}
body.atlas-unified #today .atlas-phase-cycle::before{top:29px}
body.atlas-unified #today .atlas-phase-cycle>span{gap:8px;min-width:0;font:400 12px/1.3 var(--today-font-body)!important;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none}
body.atlas-unified #today .atlas-phase-cycle i{width:36px;height:36px}
body.atlas-unified #today .phase-caption{display:grid;text-align:center;gap:0;font:inherit!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
body.atlas-unified #today .phase-caption>span{font:inherit!important;white-space:nowrap!important;hyphens:none}
/* Keep the actual balance and its target together; unknown states have no /70. */
body.atlas-unified #today .today-reward-line{gap:6px!important}
body.atlas-unified #today .today-reward-line>.today-balance{display:inline-flex!important;flex:none;align-items:baseline;gap:4px;min-width:0;margin-left:auto;white-space:nowrap}
body.atlas-unified #today .today-balance #today-stars{display:inline-block!important;flex:none;min-width:1ch;max-width:none;opacity:1;color:var(--reference-ink)!important;white-space:nowrap}
body.atlas-unified #today .today-balance .today-reward-target[hidden]{display:none!important}
body.atlas-unified #today .tarot-art.tarot-card-back{background-image:url('assets/tarot-back-lavender-v137.svg');background-size:100% 100%!important;background-position:center!important;border-color:#e7d0ff!important;background-color:#cbb4e4}
/* Question comes first in source order as well as visual order. */
body.atlas-unified #ask>.reference-page-stack>.ask-compose{order:1}
body.atlas-unified #ask>.reference-page-stack>.ask-topic-chips{order:2}
body.atlas-unified #ask>.reference-page-stack>.ask-how{order:3;padding:0!important}
body.atlas-unified #ask>.reference-page-stack>.ask-answer{order:4}
body.atlas-unified #ask>.reference-page-stack>.ask-history{order:5}
body.atlas-unified #ask .question-form{display:flex;flex-direction:column;gap:8px}
body.atlas-unified #ask .question-label{position:static;display:block;width:auto;height:auto;clip:auto;overflow:visible;margin:0;font:400 12px/1.4 var(--today-font-body);color:var(--reference-muted)}
body.atlas-unified #ask .question-form textarea{min-height:104px}
body.atlas-unified #ask .ask-how>summary{display:flex;align-items:center;gap:9px;min-height:48px;margin:0;padding:12px 42px 12px 14px!important;border:0!important;background:transparent!important;font:600 16px/1.4 var(--today-font-heading)!important}
body.atlas-unified #ask .ask-how>summary>.reference-icon{width:22px;height:22px;color:#d7883b}
body.atlas-unified #ask .ask-how-more{margin-left:auto;font:400 12px/1.4 var(--today-font-body);color:var(--reference-muted)}
body.atlas-unified #ask .ask-how-body{padding:0 14px 14px;min-width:0}
@media(max-width:760px){
 body.atlas-unified:has(#today.active, .view.active) .topbar{padding-right:14px!important;padding-left:14px!important;gap:6px}
 body.atlas-unified:has(#today.active, .view.active) .topbar .brand{font-size:14px!important}
 body.atlas-unified:has(#today.active, .view.active) .topbar .brand-mark{width:18px;font-size:21px!important}
 body.atlas-unified:has(#today.active, .view.active) .topbar .main-nav{margin-top:0}
 body.atlas-unified #today .daily-discover{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.atlas-unified #today .daily-shortcut{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;min-height:78px;padding:10px!important}
 body.atlas-unified #today .daily-shortcut .shortcut-icon{width:32px;height:32px}
 body.atlas-unified #today .daily-shortcut .shortcut-chevron{display:none}
 body.atlas-unified #today .daily-shortcut strong,body.atlas-unified #today .daily-shortcut small{font:400 12px/1.35 var(--today-font-body)!important}
 body.atlas-unified #today .daily-shortcut strong{font-weight:700!important}
 body.atlas-unified #today .shortcut-desktop-label{display:none!important}
 body.atlas-unified #today .shortcut-mobile-label{display:inline!important}
}
@media(max-width:359px){
 body.atlas-unified:has(#today.active, .view.active) .topbar .brand{font-size:12px!important}
 body.atlas-unified:has(#today.active, .view.active) .topbar .credit-badge{max-width:82px;padding:4px 6px!important}
 body.atlas-unified #today .atlas-glass-heading{min-height:122px!important;padding:10px!important}
 body.atlas-unified #today #daily-empty{padding:15px!important}
}
