.dev-panel{position:fixed;right:12px;top:12px;z-index:120;max-width:min(350px,calc(100vw - 80px));background:#141414f5;color:#eee;border:1px solid #888;border-radius:12px;padding:8px 12px;font-size:13px;max-height:85svh;overflow:auto}.dev-panel summary{cursor:pointer}.dev-panel label{display:block;margin:12px 0}.dev-panel p{margin:10px 0}.dev-panel a{color:#eee}
body[data-dev-quality=lite] *,body[data-dev-quality=minimal] *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body[data-dev-quality=minimal]{--accent:#ddd;--muted:#aaa;--visual-rgb:255,255,255;--visual-opacity:.02;background:#030303;color:#eee}
body[data-dev-quality=minimal] .glass{background:#090909!important;border-color:#555!important;box-shadow:none!important}
body[data-dev-quality=minimal] #app img{filter:grayscale(1)}
body[data-dev-quality=minimal] #orba-effects,body[data-dev-quality=lite] #orba-effects{display:none}
.dev-reading-controls{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 24px}.dev-reading-controls button{font-size:14px}
.dev-reading-flow{overflow-anchor:none}.dev-reading-flow blockquote{font-size:clamp(17px,2.4vw,22px);line-height:1.8;white-space:pre-line;margin:20px 0;padding:0;border:0}.dev-reading-flow p{line-height:1.8;white-space:pre-line}.dev-reading-flow h3{margin:30px 0 16px}
.dev-reading-flow:empty{display:none}.dev-source{display:none!important}

/* Breathing room below the current line, outside the text block itself. */
.reader-solo:has(.dev-reading-flow){padding-bottom:36svh}
.planet-intro{max-width:900px;margin:40px auto 24px}.planet-intro h1{font-size:clamp(30px,5vw,56px);max-width:800px;line-height:1.1}.planet-phase{display:flex;align-items:center;gap:20px;margin:24px 0}.moon-disc{width:48px;height:48px;border-radius:50%;background:linear-gradient(90deg,#dadbe5 var(--light),#252736 var(--light));box-shadow:0 0 25px #e3dfff22}.planet-tabs{display:flex;overflow:auto;gap:8px;padding:12px 0;position:static!important;margin:0 auto 20px;max-width:1100px}.planet-tabs button{flex-shrink:0}.planet-tabs .active{border-color:#e2c5f4;background:#b3a5d322}#planet-card{display:grid;grid-template-columns:1fr 1fr;max-width:1100px;margin:auto;gap:28px;scroll-margin-top:20px}.planet-portrait{text-align:center;align-self:start;position:sticky;top:20px}.planet-art{width:min(100%,440px);aspect-ratio:1;object-fit:contain;display:block;margin:auto}.planet-portrait h2{font-size:40px;margin:0}.planet-reading{padding:24px 0;min-width:0}.planet-reading p{line-height:1.75}.planet-reading details{margin:24px 0}.planet-navigation{display:flex;justify-content:space-between;max-width:1100px;margin:20px auto 40px}.planet-wheel{max-width:650px;margin:24px auto}.planet-wheel svg{max-width:100%;height:auto}#planet-card+.planet-navigation+section{max-width:1100px;margin:auto}@media(max-width:700px){#planet-card{grid-template-columns:1fr;padding:20px;gap:0}.planet-portrait{position:static}.planet-art{width:min(85vw,340px)}.planet-reading{padding-top:12px}.planet-tabs{max-width:100%}.planet-intro{margin-top:24px}}
.dev-natal-simple{grid-template-columns:minmax(0,1fr)!important;max-width:960px;margin:auto}.dev-natal-simple>details>section{margin-top:20px}.dev-natal-simple>details>summary{cursor:pointer;padding:8px}
.dev-reading-tail{color:var(--accent,#ff8fc7);display:inline;opacity:.8}

.planet-orbit-stage{position:relative;width:min(100%,440px);aspect-ratio:1;margin:auto;overflow:visible;isolation:isolate;border-radius:0}.planet-orbit-stage .planet-art{position:absolute;inset:0;width:100%;height:100%;will-change:transform;object-fit:contain}.planet-outgoing{pointer-events:none}.planet-batch{margin:20px 0}.planet-batch [data-planets-status]{max-width:650px}@media(prefers-reduced-motion:reduce){.planet-orbit-stage .planet-art{will-change:auto}}
/* Focused scenes: bounded SVG transforms, no extra particle simulation. */
.planet-scene{max-width:1050px;margin:24px auto}.planet-scene h2{font-size:clamp(18px,3vw,28px);margin:0;flex:1}.scene-visual{position:relative;min-height:450px}.scene-charts{width:100%;height:auto;max-height:520px;overflow:visible}.scene-natal{fill:#48dcff;transform:translate(185px,210px);transition:transform 1.3s cubic-bezier(.22,.65,.25,1)}.scene-current{fill:#ffbf7b;transform:translate(535px,210px);transition:transform 1.3s cubic-bezier(.22,.65,.25,1)}.scene-ring{fill:none;stroke:currentColor;stroke-width:1;opacity:.25}.scene-links line{stroke:#c6acff;stroke-width:1.2;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.4s ease}.scene-map-label{fill:#b8bdcc;font:15px Inter;text-anchor:middle;transition:opacity .7s}.scene-values{opacity:0;display:grid;gap:8px;text-align:center;font-size:13px;transition:opacity .7s}.scene-values small{color:var(--muted)}.scene-solar{position:absolute;inset:0;opacity:0;transform:scale(.65);pointer-events:none;transition:opacity 1s,transform 1.1s}.scene-solar .small{margin:0 auto;max-width:650px;text-align:center}.solar-system{display:block;width:100%;max-height:460px}.solar-system ellipse{fill:none;stroke:#c6acff;stroke-width:1;opacity:.25}.solar-system text{fill:#e7e3ed;font:11px Inter;text-anchor:middle;pointer-events:none}.solar-system g[role=button]{cursor:pointer}.solar-system g[role=button]:focus .solar-hit,.solar-system g[role=button]:hover .solar-hit{stroke:#fff;fill:#b69cff22}.solar-hit{fill:transparent;stroke:transparent}.solar-earth{fill:#50b4ce}.solar-list{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:18px}.solar-list button{font-size:12px;padding:8px 12px}.planet-scene:not([data-phase=solar]):not([data-phase=done]) .solar-list{visibility:hidden}.planet-scene[data-phase=merge] .scene-natal,.planet-scene[data-phase=merge] .scene-current,.planet-scene[data-phase=links] .scene-natal,.planet-scene[data-phase=links] .scene-current{transform:translate(360px,210px)}.planet-scene[data-phase=links] .scene-links line{stroke-dashoffset:0}.planet-scene[data-phase=links] .scene-values{opacity:1}.planet-scene[data-phase=solar] .scene-charts,.planet-scene[data-phase=solar] .scene-values,.planet-scene[data-phase=done] .scene-charts,.planet-scene[data-phase=done] .scene-values{opacity:0;transform:scale(.5);transition:opacity .9s,transform 1s}.planet-scene[data-phase=solar] .scene-solar,.planet-scene[data-phase=done] .scene-solar{opacity:1;transform:scale(1);pointer-events:auto}.planet-card-tools{max-width:1100px;display:flex;justify-content:space-between;margin:18px auto}.planet-experience #planet-card{max-width:900px;grid-template-columns:1fr;padding:30px}.planet-experience .planet-portrait{position:static}.planet-experience .planet-orbit-stage{width:min(70vw,420px)}.planet-experience .planet-reading{max-width:680px;width:100%;margin:auto}.planet-experience .planet-intro{margin-top:16px}.planet-experience .planet-intro h1{font-size:clamp(30px,5vw,48px)}.calc-mini{max-width:1050px}.calc-mini>h1{margin-top:24px}.calc-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.calc-catalog button{text-align:left}.calc-catalog h2{font-size:20px}.calc-catalog p{font-size:14px}.calc-catalog small{color:var(--muted)}.moon-mini{width:180px;display:block;margin:auto}.ai-waiting{contain:layout;max-width:700px;margin:24px auto;text-align:center}.shuffle-scene{height:190px;position:relative;perspective:600px}.shuffle-scene span{position:absolute;left:calc(50% - 40px);top:22px;width:80px;height:125px;display:grid;place-items:center;border:1px solid #c6acff99;border-radius:10px;background:linear-gradient(145deg,#28213d,#090b16);color:#dfcbff;font-size:32px;animation:dev-shuffle 2.4s ease-in-out infinite;animation-delay:calc(var(--i)*-.18s)}@keyframes dev-shuffle{0%,100%{transform:translateX(calc(var(--i)*3px)) rotate(calc(var(--i)*3deg))}40%{transform:translateX(calc((var(--i) - 2)*38px)) rotate(calc((var(--i) - 2)*14deg)) translateY(-12px)}70%{transform:translateX(calc((2 - var(--i))*22px)) rotate(calc((2 - var(--i))*5deg))}}.waiting-chart .scene-charts{max-height:280px}.waiting-chart .scene-values{display:none}.waiting-ready .scene-natal{animation:dev-natal-left 6s ease-in-out infinite}.waiting-ready .scene-current{animation:dev-natal-right 6s ease-in-out infinite}.waiting-ready .scene-links line{animation:dev-lines 6s ease-in-out infinite}@keyframes dev-natal-left{0%,100%{transform:translate(185px,210px)}30%,80%{transform:translate(360px,210px)}}@keyframes dev-natal-right{0%,100%{transform:translate(535px,210px)}30%,80%{transform:translate(360px,210px)}}@keyframes dev-lines{0%,30%,100%{stroke-dashoffset:1}55%,80%{stroke-dashoffset:0}}@media(max-width:700px){.calc-catalog{grid-template-columns:1fr}.scene-visual{min-height:340px}.planet-scene{padding:16px}.scene-solar .small{font-size:11px}.scene-values{font-size:11px}.scene-values small{font-size:10px}.planet-experience #planet-card{padding:20px}.planet-card-tools{gap:8px}.planet-card-tools button{font-size:12px}.scene-charts{margin-top:30px}.solar-system{min-height:270px}.planet-scene .row{align-items:start}.planet-scene [data-scene-skip]{font-size:11px;padding:5px 8px}.planet-scene h2{min-width:130px}}@media(prefers-reduced-motion:reduce){.planet-scene *,.ai-waiting *{animation:none!important;transition:none!important}.waiting-ready .scene-natal,.waiting-ready .scene-current{transform:translate(360px,210px)}.waiting-ready .scene-links line{stroke-dashoffset:0}.scene-solar{transform:none}}

.dev-hidden .ai-waiting *{animation-play-state:paused!important}

body[data-dev-quality] #nav{display:flex;overflow-x:auto;max-width:min(950px,calc(100vw - 16px));justify-content:flex-start;scrollbar-width:thin}body[data-dev-quality] #nav button{flex:0 0 auto;min-width:78px;max-width:120px;padding:10px 12px;overflow-wrap:normal;white-space:normal}.planet-scene[data-phase=solar] [data-scene-skip],.planet-scene[data-phase=done] [data-scene-skip]{display:none}.waiting-chart{position:relative;min-height:220px}.waiting-solar{position:absolute;inset:0;opacity:0;pointer-events:none}.waiting-solar .solar-system{height:220px;min-height:0}.waiting-solar p{display:none}.waiting-ready .waiting-geometry{animation:dev-wait-chart 9s ease-in-out infinite}.waiting-ready .waiting-solar{animation:dev-wait-solar 9s ease-in-out infinite}.waiting-ready .scene-natal,.waiting-ready .scene-current,.waiting-ready .scene-links line{animation-duration:9s}@keyframes dev-wait-chart{0%,55%,100%{opacity:1;transform:scale(1)}65%,90%{opacity:0;transform:scale(.5)}}@keyframes dev-wait-solar{0%,55%,100%{opacity:0;transform:scale(.6)}65%,90%{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.waiting-solar{display:none}}

.calc-mini table{display:block;max-width:100%;overflow-x:auto}.calc-mini [data-calc-body]{min-width:0;overflow-wrap:anywhere}

/* A continuous scene owns its motion; no glass shell or generic wheel capture. */
.planet-experience #planet-card.planet-solo{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;padding:0 0 35svh;overflow:visible;max-width:760px}.planet-solo::before{display:none}.planet-solo .planet-portrait{min-height:70svh;display:flex;flex-direction:column;justify-content:center}.planet-solo .planet-reading{max-width:620px;padding:0 20px}.planet-solo .planet-reading p{font-size:clamp(17px,2.2vw,21px);line-height:1.85}.planet-knowledge{margin-top:30px}.planet-scene{padding:20px 0}.planet-scene .scene-visual{height:clamp(420px,62vw,650px);min-height:0}.planet-scene .scene-charts,.planet-scene .scene-bridge,.planet-scene .solar-system{position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0}.planet-scene .scene-solar{inset:0;transform:none}.planet-scene .scene-solar p{position:absolute;top:100%;left:0;right:0}.planet-scene .solar-list{margin-top:95px}.planet-scene .scene-values{position:absolute;bottom:0;left:0;right:0;pointer-events:none}.scene-zodiac{opacity:0;transition:opacity 1.6s}.scene-zodiac text{fill:#c9c1e0;font:16px sans-serif;text-anchor:middle}.scene-zodiac .scene-factor-label{font:10px sans-serif}.scene-zodiac .current{fill:#ffbf7b}.scene-zodiac .natal{fill:#48dcff}.planet-scene[data-phase=links] .scene-zodiac{opacity:1}.planet-scene[data-phase=links] .scene-map-label,.planet-scene[data-phase=merge] .scene-map-label{opacity:0}.planet-scene .scene-natal,.planet-scene .scene-current{transition-duration:2.8s}.scene-bridge{opacity:0;pointer-events:none}.planet-scene[data-phase=morph] .scene-bridge{opacity:1}.planet-scene[data-phase=morph] .scene-charts{opacity:0;transition:opacity 1.5s}.planet-scene[data-phase=morph] .scene-natal,.planet-scene[data-phase=morph] .scene-current{transform:translate(360px,210px)}.planet-scene[data-phase=solar] .scene-charts{transform:none;opacity:0}.planet-scene[data-phase=solar] .scene-bridge{opacity:0;transition:opacity .8s}.planet-scene[data-phase=solar] .scene-solar{transition:opacity .8s;transform:none}.planet-scene [data-scene-label]{min-height:3em}.planet-flight{object-fit:contain}.planet-scene .scene-links line{transition-duration:2.6s}@media(prefers-reduced-motion:reduce){.planet-flight{display:none}.planet-solo .planet-portrait{min-height:50svh}}

body[data-dev-quality] #nav{flex-wrap:nowrap!important;width:max-content;max-width:calc(100vw - 24px)}.planet-experience:not(.planet-card-open) .planet-intro .planet-phase,.planet-experience:not(.planet-card-open) .planet-intro .planet-batch,.planet-experience:not(.planet-card-open) .planet-intro>[data-action=place]{display:none}.planet-experience:not(.planet-card-open) .planet-intro{margin:12px auto}.planet-experience:not(.planet-card-open) .planet-intro h1{font-size:clamp(26px,4vw,40px)}.planet-scene [data-scene-label]{font-size:clamp(15px,2vw,20px);line-height:1.5;font-weight:400}.planet-scene>.row{display:block}.planet-scene [data-scene-skip]{margin:8px 0}.planet-scene .scene-factor-label{paint-order:stroke;stroke:#090b16;stroke-width:3px;stroke-linejoin:round}

/* Planet focus shares the distraction-free Tarot layout. */
body.planet-focus>header,body.planet-focus>#nav,body.planet-focus>footer,body.planet-focus .dev-toolbar,body.planet-focus #chart-selector{display:none!important}
body.planet-focus main{padding-top:12px;min-height:100svh}
.planet-focus .planet-intro,.planet-focus .planet-card-open>.planet-exit{display:none}
.planet-focus .planet-card-tools{position:relative;z-index:5}
.planet-focus .planet-scene .scene-visual{height:70svh}
.planet-focus .planet-solo .planet-portrait{position:static;min-height:90svh;display:flex;flex-direction:column;justify-content:center}
.planet-focus .planet-solo .planet-art{width:min(92vw,76svh);height:min(92vw,76svh);max-width:none}
.planet-focus .planet-solo .planet-orbit-stage{width:100%;height:auto;min-height:0}
.dev-natal-simple .wheel{width:min(100%,70svh);max-width:none;min-height:0}
.planet-focus .planet-reading{animation:planet-reading-enter 1.2s ease both}
@keyframes planet-reading-enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.planet-focus .planet-reading{animation:none}}

body.planet-focus .dev-panel{display:none!important}

.planet-focus #planet-card{display:block}.planet-focus .planet-solo .planet-reading{margin:auto}
.planet-focus .planet-card-tools{position:fixed;top:max(12px,env(safe-area-inset-top));left:16px;z-index:30;margin:0}.planet-focus .planet-card-tools [data-replay]{display:none}.planet-focus .planet-exit{position:sticky;top:12px;z-index:30}
.planet-focus .planet-solo .planet-portrait{min-height:100svh}.planet-focus #app{overflow-anchor:none}

.planet-focus .planet-solo .planet-orbit-stage{overflow:hidden}.planet-focus .planet-solo .planet-art{scale:1.2}

/* Geometry and layer handoff share one clock; no competing CSS phase transitions. */
.planet-scene.scene-continuous .scene-natal{transform:translate(calc(360px - var(--scene-offset)),210px) scale(var(--scene-size,1));transition:none}
.planet-scene.scene-continuous .scene-current{transform:translate(calc(360px + var(--scene-offset)),210px) scale(var(--scene-size,1));transition:none}
.planet-scene.scene-continuous .scene-charts{opacity:var(--scene-chart);transform:none;transition:none}
.planet-scene.scene-continuous .scene-map-label{opacity:var(--scene-labels);transition:none}
.planet-scene.scene-continuous .scene-zodiac,.planet-scene.scene-continuous .scene-values{opacity:var(--scene-links);transition:none}
.planet-scene.scene-continuous .scene-links line{stroke-dashoffset:var(--scene-lines);transition:none}
.planet-scene.scene-continuous .scene-bridge{opacity:var(--scene-bridge);transition:none}
.planet-scene.scene-continuous .scene-solar{opacity:1;transform:none;transition:none}
.scene-continuous .solar-system g{opacity:var(--scene-bodies)}
.scene-continuous .solar-system>ellipse,.scene-continuous .solar-system>.solar-earth,.scene-continuous .solar-system>text,.scene-continuous .scene-solar>p{opacity:var(--scene-orbits)}
.scene-continuous .solar-system>ellipse{opacity:calc(var(--scene-orbits)*.25)}
.daily-opening{max-width:650px;margin:12svh auto;padding:24px}.daily-opening h1{font-size:clamp(32px,6vw,52px)}
.daily-opening-actions{display:flex;gap:16px;flex-wrap:wrap;margin:32px 0}.daily-opening-actions button{flex:1;min-width:190px;min-height:56px}

.planet-scene.scene-continuous[data-phase=solar] [data-scene-skip]{display:inline-block;visibility:hidden;pointer-events:none}

/* The reader owns positioning; transforms would offset measured glyphs. */
.planet-focus .planet-reading{animation:none}
.planet-camera ellipse{fill:none;stroke:#c6acff;stroke-width:1;opacity:.25}.planet-camera text{fill:#e7e3ed;font:11px Inter;text-anchor:middle}.planet-camera .solar-hit{fill:transparent;stroke:transparent}
.dev-reading-tail{display:inline-block;color:#ffb6df;text-shadow:0 0 9px #ff8fc7;animation:reader-tail-pulse .7s ease-in-out infinite alternate}
@keyframes reader-tail-pulse{to{opacity:.4;filter:blur(1px)}}
/* Portrait and camera share a centred square; no edge clips during handoff. */
.planet-focus .planet-solo .planet-orbit-stage{width:min(92vw,76svh,760px);height:auto;aspect-ratio:1;overflow:visible;flex:none;margin:auto}
.planet-focus .planet-solo .planet-art{width:100%;height:100%;max-width:none}
.planet-focus #planet-card:focus{outline:none}

.dev-reading-tail{letter-spacing:2px;mask-image:linear-gradient(to right,#000,transparent);vertical-align:baseline}

/* Fit the actual scene to the viewport, including narrow phones. */
.planet-focus .planet-scene{width:calc(100vw - 12px);max-width:none;margin-left:calc(50% - 50vw + 6px)}
.planet-focus .planet-scene .scene-visual{height:94svh}
.planet-focus .planet-scene>.row,.planet-focus .scene-values{padding-inline:12px}
.planet-orbit-stage{touch-action:pan-y;user-select:none}.planet-art{pointer-events:none}

.consult-page{max-width:720px;margin:auto;padding:24px 12px 100px}.consult-page textarea{width:100%;min-height:130px}.consult-page details{margin:24px 0}.consult-card{text-align:center}.yesno-answer{font-size:48px;text-align:center}

.consult-picker{height:70svh;position:relative;overflow:hidden}.consult-picker .free-pile{height:100%}

/* Orbit may cross the portrait; only the screen edge clips travelling planets. */
.planet-portrait{min-width:0;overflow:visible}
html:has(body.planet-focus){overflow-x:clip}

/* Scene geometry fills the viewport; controls overlay rather than displace its centre. */
body.planet-focus main{padding:0;max-width:none}
.planet-focus .planet-experience:not(.planet-card-open)>.planet-exit{position:absolute;z-index:5;top:12px;left:12px}
.planet-focus .planet-scene{position:relative;margin:0;width:100%;padding:0}
.planet-focus .planet-scene .scene-visual{height:100dvh}
.planet-focus .planet-scene>.row{position:absolute;z-index:3;top:70px;left:0;right:0}
.planet-focus .planet-scene .scene-values{bottom:24px}
.dev-reading-tail{position:absolute;white-space:nowrap;pointer-events:none;margin:0;max-width:50px;overflow:clip}
.dev-reading-flow>p,.dev-reading-flow>blockquote{position:relative}

/* Keep the entire SVG (including Saturn's rings) inside the centred resting frame. */
.planet-focus .planet-solo .planet-art{scale:1}
.planet-focus .planet-solo .planet-orbit-stage{width:min(92vw,68svh,700px);margin:32px auto 24px;border-radius:0}
.planet-focus .planet-solo .planet-portrait{width:100%;padding-top:40px;box-sizing:border-box;justify-content:center}

.planet-focus .planet-experience #planet-card{max-width:none;padding:0;scroll-margin-top:0}
.planet-focus .planet-solo .planet-reading{box-sizing:border-box;padding:24px 20px}

/* Keep solar navigation in document flow, above the reading. */
.planet-card-tools{position:relative!important;inset:auto!important;display:flex;flex-wrap:wrap;gap:8px;margin:16px auto 24px;max-width:calc(100% - 32px);z-index:20}
