/* Estate solar system (preview 2026-11-02). Every visual channel carries real state:
   sun = the company's Apps Portal (its Live health colours the star) · planet = one app, its emblem is terrain
   · MOONS (v2, Tyler 2026-11-03: "colored moons orbiting the planets could represent the services"): each full moon is one
     part of the LIVE app (page, API, Windows service, browser check) — green passing, red failing, orange stale;
     (v3: no hollow Test moon; Test shows in the label and card) tiny square satellites on the outer track are the app's scheduled tasks
     (green last run fine, red failed, orange missed or overlapping). Estate-wide tasks circle the sun as a belt.
   · SIZE = how big the app really is: its own source code (thousands of non-blank lines), on a log scale.
   · LIGHT comes from the sun: the night side faces away from the star, moons included, and changes smoothly as they orbit.
   · each planet has its own axis tilt, day length and band width; a few turn retrograde.
   · a small planet orbiting a planet is an app that only serves that one (RCS around PM).
   · the arc under each sun is one segment per app (green fine, orange degraded, red down, grey unknown/test-only).
   · RING (only some planets) = Test has changes that are not on Live yet. It is not a health colour.
   · the surface turns slowly (spin); the emblem stays upright and readable
   · a red app loses its orbit: it drifts outward, slows, dims and smoulders · a fresh status check sweeps the halo once
   · identity (hue, emblem) never changes with health; nothing pulses just to say "fine". */
.sol{position:relative;width:100%;height:100%;overflow:hidden;font-family:"Rajdhani","Segoe UI",system-ui,sans-serif;--g:#46e08a;--a:#ffb454;--r:#ff6b78;--u:#9fb3c6;--ice:#dff6ff;--dim:#7d97ad}
.sol svg.orbits{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.sol .orb-path{fill:none;stroke:rgba(120,200,235,.10);stroke-width:1}
.sol .orb-path.hot{stroke:rgba(120,220,250,.42);stroke-width:1.4}
.sol .orb-path.lost{stroke:rgba(255,107,120,.28);stroke-dasharray:3 5}
/* ---- the sun (the company's Apps Portal) ---- */
.sol .sun{position:absolute;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;cursor:pointer;
  box-shadow:0 0 38px 10px var(--sglow),0 0 110px 30px var(--sglow2)}
.sol .sun::before{content:"";position:absolute;inset:-26px;border-radius:50%;background:conic-gradient(from 0deg,transparent,var(--sglow) 8%,transparent 16%,transparent 30%,var(--sglow) 38%,transparent 46%,transparent 62%,var(--sglow) 70%,transparent 78%);filter:blur(7px);opacity:.55;animation:corona 46s linear infinite}
.sol .sun.ok{--sc1:#ffd76a;--sc2:#ff9c3a;--sglow:rgba(255,190,90,.55);--sglow2:rgba(255,150,60,.18)}
.sol .sun.warn{--sc1:#ffb454;--sc2:#e2702a;--sglow:rgba(255,160,70,.6);--sglow2:rgba(255,120,40,.22)}
.sol .sun.bad{--sc1:#ff8a7a;--sc2:#c2303e;--sglow:rgba(255,90,100,.6);--sglow2:rgba(255,60,80,.25)}
.sol .sun.unk{--sc1:#c9d4de;--sc2:#6d7f90;--sglow:rgba(170,190,210,.35);--sglow2:rgba(140,160,180,.12)}
.sol .sun .semb{position:absolute;inset:24%;background:var(--icon) center/contain no-repeat;filter:drop-shadow(0 1px 2px rgba(90,35,0,.55)) drop-shadow(0 0 6px rgba(255,248,225,.55));opacity:1;z-index:1}/* own colours (standing rule), lifted off the glare */
@keyframes corona{to{transform:rotate(360deg)}}
.sol .sysl{position:absolute;transform:translateX(-50%);text-align:center;pointer-events:none;white-space:nowrap}
.sol .sysl b{display:block;font-family:Orbitron,system-ui,sans-serif;font-size:15px;letter-spacing:.32em;color:var(--ice);font-weight:600}
.sol .sysl span{font-family:ui-monospace,Consolas,monospace;font-size:10.5px;letter-spacing:.12em;color:var(--dim)}
.sol .sysl span.warn{color:var(--a)}.sol .sysl span.bad{color:var(--r)}
/* ---- planets ---- */
.sol .pl{position:absolute;left:0;top:0;width:0;height:0;will-change:transform;cursor:pointer}
.sol .pl .body{position:absolute;width:var(--s);height:var(--s);left:calc(var(--s) / -2);top:calc(var(--s) / -2)}
.sol .pl .sph{position:absolute;inset:0;border-radius:50%;overflow:hidden;isolation:isolate;
  background:radial-gradient(circle at 50% 50%,hsl(var(--h) 60% 58%),hsl(var(--h) 56% 48%) 52%,hsl(var(--h2) 46% 30%) 86%,hsl(var(--h2) 42% 18%));
  box-shadow:inset 0 0 5px rgba(1,4,10,.55);transition:filter .8s ease}
/* sunlight: rotated per frame toward the star (lit side at 0deg = right). A soft terminator, a gentle highlight, and
   the night side falls across the emblem too. Its opacity follows depth: in front of the sun you see more night. */
.sol .pl .shade{position:absolute;inset:0;border-radius:50%;z-index:2;pointer-events:none;will-change:transform,opacity;
  /* lit side at 0deg (right), rotated toward the sun per frame: the day/night line runs through the middle, softly */
  background:radial-gradient(circle at 80% 50%,rgba(255,248,230,.30) 0,rgba(255,248,230,.10) 18%,transparent 34%),
    radial-gradient(circle farthest-side at 100% 50%,transparent 0 42%,rgba(1,3,9,.5) 54%,rgba(1,3,9,.8) 68%,rgba(0,2,6,.9) 100%)}
/* emblem (v2, Tyler 2026-11-02: "too hard to make out"): the icon keeps most of its own colour and a dark relief edge,
   so it reads at a glance, but it is still lit by the planet: the night-side shadow (.sph::after) falls across it. */
.sol .pl .emb{position:absolute;inset:13%;background:var(--icon) center/contain no-repeat;-webkit-mask-image:radial-gradient(circle,#000 62%,transparent 80%);mask-image:radial-gradient(circle,#000 62%,transparent 80%);transform:perspective(80px) rotateY(-10deg) rotateX(7deg)}
.sol .pl .emb.lit{filter:contrast(1.05) drop-shadow(0 0 1px rgba(0,0,0,.6));opacity:1}
.sol .pl .emb.rel{filter:brightness(0) blur(.6px);opacity:.45;translate:var(--relx,1px) var(--rely,1.2px)}/* cast away from the sun (set per frame) */
/* halo: neutral now — health is carried by the moons; the halo only marks hover / selection / focus */
.sol .pl .halo{position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(150,205,225,.14);opacity:.85;transition:border-color .3s}
.sol .pl.n .halo{border-style:dotted}
.sol .pl .tarc,.sol .sun .starc{display:none}
.sol .pl .body{z-index:1}
/* spin: a banded surface drifts across the sphere; the night side (.sph::after) and the emblem stay put */
.sol .pl .surf{position:absolute;inset:-20%;transform:rotate(var(--axis,-17deg));--bw:calc(var(--s) * var(--band,.5));background:repeating-linear-gradient(90deg,rgba(255,255,255,.0) 0 calc(var(--bw) * .32),rgba(255,255,255,.14) calc(var(--bw) * .44),rgba(0,0,0,.18) calc(var(--bw) * .68),rgba(255,255,255,0) var(--bw)),linear-gradient(0deg,transparent 0 30%,rgba(255,255,255,.07) 46%,transparent 58%);background-size:var(--bw) 100%,100% 100%;animation:surfSpin var(--spin,40s) linear infinite;mix-blend-mode:soft-light;z-index:0}
.sol .pl .body.retro .surf{animation-direction:reverse}
@keyframes surfSpin{to{background-position:calc(var(--bw) * -1) 0,0 0}}
/* moons and task satellites (positioned per frame in JS, relative to the planet's centre) */
.sol .moons{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none}
.sol .moons i{position:absolute;left:0;top:0;border-radius:50%;will-change:transform}
.sol .moons i.m{width:9px;height:9px;margin:-4.5px;background:radial-gradient(circle at 70% 50%,color-mix(in srgb,var(--mc) 55%,#fff) 0,var(--mc) 32%,var(--md) 72%,color-mix(in srgb,var(--md) 45%,#000) 100%);box-shadow:0 0 5px var(--mg)}
.sol .moons i.sat{width:5px;height:5px;margin:-2.5px;border-radius:1px;background:var(--mc);box-shadow:0 0 4px var(--mg);opacity:.9}
.sol .moons i.g{--mc:#46e08a;--md:#1d7a48;--mg:rgba(70,224,138,.55)}
.sol .moons i.a{--mc:#ffb454;--md:#a3611a;--mg:rgba(255,180,84,.7)}
.sol .moons i.r{--mc:#ff6b78;--md:#9c2633;--mg:rgba(255,107,120,.8)}
.sol .moons i.u{--mc:#9fb3c6;--md:#4b5b6a;--mg:transparent}
.sol .moons i.r.m{animation:moonAlarm 2.4s ease-in-out infinite}
@keyframes moonAlarm{50%{box-shadow:0 0 12px 2px var(--mg)}}
/* ring: Test is ahead of Live. Back half behind the planet, front half in front; it lies on the planet's own equator. */
.sol .pl .pring{position:absolute;left:50%;top:50%;width:calc(var(--s) * 2.05);height:calc(var(--s) * .56);margin:calc(var(--s) * -.28) 0 0 calc(var(--s) * -1.025);border-radius:50%;
  border:2.5px solid rgba(150,230,255,.7);box-shadow:0 0 10px rgba(120,220,255,.45),inset 0 0 6px rgba(120,220,255,.3);transform:rotate(var(--axis,-16deg));pointer-events:none}
.sol .pl .pring.back{clip-path:inset(0 0 50% 0);z-index:0;opacity:.7}
.sol .pl .pring.front{clip-path:inset(50% 0 0 0);z-index:3}
.sol .pl .body > .sph{z-index:1}
.sol .card .parts{margin-top:7px;border-top:1px solid rgba(95,210,232,.14);padding-top:5px}
.sol .card .parts div{display:flex;gap:6px;align-items:baseline;margin-top:2px;line-height:1.3}
.sol .card .parts b{flex:none;width:7px;height:7px;border-radius:50%;background:var(--c);display:inline-block}
.sol .card .parts b.sat{border-radius:1px;width:5px;height:5px}
.sol .card .ringl{color:#9fe8ff}
@media (prefers-reduced-motion:reduce){.sol .pl .surf,.sol .moons i{animation:none!important}}
/* states */
.sol .pl.u .sph{filter:saturate(.25) brightness(.78)}
.sol .pl.r .sph{filter:saturate(.3) brightness(.62);animation:ember 3.6s ease-in-out infinite}
@keyframes ember{50%{box-shadow:inset -7px -9px 14px rgba(1,4,10,.8),0 0 16px rgba(255,110,60,.45)}}
/* a fresh check: one sweep around the halo */
.sol .pl .sweep{position:absolute;inset:-7px;border-radius:50%;opacity:0;background:conic-gradient(from 0deg,transparent 0 70%,rgba(190,245,255,.9) 92%,transparent);-webkit-mask:radial-gradient(circle,transparent 62%,#000 64%,#000 70%,transparent 72%);mask:radial-gradient(circle,transparent 62%,#000 64%,#000 70%,transparent 72%)}
.sol .pl.swept .sweep{animation:sweep 1.3s ease-out}
@keyframes sweep{0%{opacity:1;transform:rotate(0)}100%{opacity:0;transform:rotate(360deg)}}
.sol .pl .lab{position:absolute;top:calc(var(--s) / 2 + 9px);left:0;transform:translateX(-50%);white-space:nowrap;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--ice);text-shadow:0 1px 6px rgba(0,0,0,.9);pointer-events:none}
.sol .pl .lab i{display:block;font-style:normal;font-family:ui-monospace,Consolas,monospace;font-size:9.5px;font-weight:400;letter-spacing:.06em;text-align:center;margin-top:1px}
.sol .pl.a .lab i{color:var(--a)}.sol .pl.r .lab i{color:var(--r)}.sol .pl.u .lab i{color:var(--u)}
.sol .pl .lab{transition:opacity .4s ease}.sol .pl.nolab .lab{opacity:0}
.sol .pl:hover .sph,.sol .pl.sel .sph{filter:brightness(1.15)}
.sol .pl.sel .halo{inset:-9px;border-width:2px;border-color:rgba(95,224,240,.75)}
.sol .pl:hover .halo{border-color:rgba(150,225,245,.4)}
/* hover card */
.sol .card{position:absolute;z-index:5000;width:250px;pointer-events:none;background:linear-gradient(180deg,rgba(12,24,38,.97),rgba(6,13,22,.97));border:1px solid rgba(95,210,232,.25);border-radius:12px;box-shadow:0 14px 44px rgba(0,0,0,.6);padding:11px 13px;opacity:0;transition:opacity .15s;font-family:ui-monospace,Consolas,monospace;font-size:10.5px;color:#cfe3f1}
.sol .card.show{opacity:1}
.sol .card .n{font-family:Orbitron,system-ui,sans-serif;font-size:13px;color:var(--ice)}
.sol .card .co{font-size:9px;letter-spacing:1.6px;color:var(--dim);margin:2px 0 6px}
.sol .card .row{display:flex;gap:8px;margin-top:5px}.sol .card .env{width:38px;color:var(--dim)}
.sol .card .t{font-weight:700}.sol .card .t.g{color:var(--g)}.sol .card .t.a{color:var(--a)}.sol .card .t.r{color:var(--r)}.sol .card .t.u{color:var(--u)}
.sol .card .age{margin-left:auto;color:var(--dim);font-size:9px}
.sol .card .why{margin:2px 0 0 46px;color:#ffd9a0;line-height:1.35}
@media (prefers-reduced-motion:reduce){.sol .sun::before,.sol .pl .halo,.sol .pl .sph{animation:none!important}}
/* ---- app dossier (click a planet) ---- */
.sol .dossier{position:absolute;top:12px;right:12px;bottom:12px;width:330px;z-index:6000;overflow:auto;background:linear-gradient(180deg,rgba(12,24,38,.97),rgba(6,13,22,.97));border:1px solid rgba(95,210,232,.25);border-radius:13px;box-shadow:0 18px 50px rgba(0,0,0,.6);padding:14px 16px;transform:translateX(calc(100% + 24px));transition:transform .35s cubic-bezier(.2,.8,.2,1);font-family:ui-monospace,Consolas,monospace;font-size:11px;color:#cfe3f1}
.sol .dossier.open{transform:none}
.sol .dossier .x{position:absolute;top:9px;right:10px;background:none;border:0;color:var(--dim);font-size:14px;cursor:pointer}
.sol .dossier .dn{font-family:Orbitron,system-ui,sans-serif;font-size:16px;color:var(--ice);padding-right:24px}
.sol .dossier .dco{font-size:9.5px;letter-spacing:1.6px;color:var(--dim);margin:3px 0 10px;text-transform:uppercase}
.sol .dossier section{border-top:1px solid rgba(95,210,232,.14);padding:10px 0 8px}
.sol .dossier h4{margin:0 0 6px;display:flex;gap:10px;font-size:11px;letter-spacing:1.4px;color:var(--dim);font-weight:600}
.sol .dossier .t{font-weight:700}.sol .dossier .t.g{color:var(--g)}.sol .dossier .t.a{color:var(--a)}.sol .dossier .t.r{color:var(--r)}.sol .dossier .t.u{color:var(--u)}
.sol .dossier .why{margin:0 0 6px;color:#ffd9a0;line-height:1.4}
.sol .dossier dl{display:grid;grid-template-columns:92px 1fr;gap:3px 8px;margin:0 0 6px}.sol .dossier dt{color:var(--dim)}.sol .dossier dd{margin:0}
.sol .dossier .checks{list-style:none;margin:4px 0 8px;padding:0}.sol .dossier .checks li{margin:2px 0;line-height:1.35}.sol .dossier .checks .ok b{color:var(--g)}.sol .dossier .checks .no b{color:var(--r)}
.sol .dossier .open{display:inline-block;margin-top:2px;color:#5fe0f0;text-decoration:none;border:1px solid rgba(95,210,232,.3);border-radius:999px;padding:3px 10px}
.sol .dossier .open:hover{border-color:#5fe0f0}
.sol .dossier .soon{color:var(--dim);font-size:10px;margin-top:10px;line-height:1.4}
.sol .pl:focus-visible{outline:none}.sol .pl:focus-visible .halo{box-shadow:0 0 0 2px rgba(95,224,240,.8)}
/* r5 fixes: Live not deployed (test-only) is its own state; the sun carries a Test arc and is selectable */

.sol .pl.n .sph{filter:saturate(.5) brightness(.85)}
.sol .sun{cursor:pointer;outline:none}
.sol .sun:focus-visible,.sol .sun.sel{box-shadow:0 0 0 2px rgba(95,224,240,.8),0 0 38px 10px var(--sglow),0 0 110px 30px var(--sglow2)}
/* v3: health gauge under each sun */
.sol .sgauge{position:absolute;width:200px;height:200px;margin:-100px 0 0 -100px;pointer-events:none}
.sol .sgauge svg{display:block;overflow:visible}
.sol .sgauge path{fill:none;stroke-width:3.5;stroke-linecap:butt;stroke:#46e08a;opacity:.62;filter:drop-shadow(0 0 2px rgba(70,224,138,.5))}
.sol .sgauge path.a{stroke:#ffb454;opacity:1;filter:drop-shadow(0 0 4px rgba(255,180,84,.8))}
.sol .sgauge path.r{stroke:#ff6b78;opacity:1;stroke-width:4;filter:drop-shadow(0 0 5px rgba(255,107,120,.9));animation:moonAlarm 2.4s ease-in-out infinite}
.sol .sgauge path.u,.sol .sgauge path.n{stroke:#9fb3c6;opacity:.35;filter:none}
/* legend (bottom-left; the swatches are drawn with the same colors and shapes as the system) */
.sol .legend{position:absolute;left:12px;bottom:12px;z-index:5500;font-family:ui-monospace,Consolas,monospace;font-size:10.5px;color:#cfe3f1;max-width:330px}
.sol .legend .lgb{background:rgba(8,18,30,.85);border:1px solid rgba(95,210,232,.3);border-radius:999px;color:#9fe8ff;font:inherit;font-size:9.5px;letter-spacing:1.6px;padding:4px 11px;cursor:pointer}
.sol .legend .lgb:hover,.sol .legend .lgb:focus-visible{border-color:#5fe0f0;outline:none}
.sol .legend.open .lgb{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-color:transparent}
.sol .legend .lgp{background:linear-gradient(180deg,rgba(12,24,38,.95),rgba(6,13,22,.95));border:1px solid rgba(95,210,232,.25);border-radius:0 12px 12px 12px;padding:9px 12px 8px;box-shadow:0 12px 36px rgba(0,0,0,.5)}
.sol .legend ul{list-style:none;margin:0;padding:0}
.sol .legend li{display:flex;gap:9px;align-items:center;margin:4px 0;line-height:1.3}
.sol .legend li b{color:var(--ice);font-weight:600;margin-right:4px}
.sol .legend p{margin:7px 0 0;color:var(--dim);font-size:9.5px;line-height:1.35}
.sol .legend .sw{flex:none;width:46px;height:20px;display:flex;align-items:center;justify-content:center;gap:4px;position:relative}
.sol .legend .sw.lt{font-size:8.5px;color:var(--a);letter-spacing:.06em}
.sol .legend i{display:inline-block;flex:none}
.sol .legend .lsun{width:17px;height:17px;border-radius:50%;background:radial-gradient(circle at 42% 38%,#fffbe8 0 12%,#ffd76a 40%,#ff9c3a 80%);box-shadow:0 0 8px rgba(255,190,90,.6)}
.sol .legend .lpl{border-radius:50%;background:radial-gradient(circle at 66% 44%,hsl(200 66% 70%),hsl(200 56% 42%) 50%,hsl(240 46% 18%))}
.sol .legend .lbig{width:18px;height:18px}.sol .legend .lsm{width:9px;height:9px}
.sol .legend .lm{width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 66% 45%,#fff 0,var(--mc) 40%,var(--md))}
.sol .legend .ls{width:5px;height:5px;border-radius:1px;background:var(--mc)}
.sol .legend .g{--mc:#46e08a;--md:#1d7a48}.sol .legend .a{--mc:#ffb454;--md:#a3611a}.sol .legend .r{--mc:#ff6b78;--md:#9c2633}
.sol .legend .lring{width:34px;height:10px;border-radius:50%;border:2px solid rgba(150,230,255,.75);transform:rotate(-12deg);box-shadow:0 0 6px rgba(120,220,255,.4)}
.sol .legend .lring::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:11px;margin:-5.5px;border-radius:50%;background:radial-gradient(circle at 66% 44%,hsl(190 66% 70%),hsl(190 56% 40%) 55%,hsl(220 46% 16%))}
.sol .legend .larc{width:34px;height:12px;border:3px dashed #46e08a;border-top:0;border-left-color:transparent;border-right-color:transparent;border-radius:0 0 50% 50%/0 0 100% 100%;opacity:.8}
.sol .legend .lout{width:9px;height:9px;border-radius:50%;background:radial-gradient(circle at 66% 44%,#c98,#633);box-shadow:0 0 6px rgba(255,110,60,.5)}
.sol .legend .lout::before{content:"";position:absolute;left:4px;top:50%;width:18px;border-top:1px dashed rgba(255,107,120,.5)}
.sol .legend .lch{margin-left:-3px;transform:translateY(-6px)}
/* v6: the sun's globe is its own layer, so its moons and task squares pass BEHIND it on the far side (z 0) and in front on the near side (z 4) */
.sol .sun .sglobe{position:absolute;inset:0;border-radius:50%;z-index:2;background:radial-gradient(circle at 50% 50%,#fffbe8 0 16%,var(--sc1) 40%,var(--sc2) 64%,color-mix(in srgb,var(--sc2) 70%,#000) 70.5%,rgba(0,0,0,0) 71%);}/* the light source: glows evenly, no night side */
.sol .sun .semb{z-index:3}
.sol .sysl{text-shadow:0 1px 8px rgba(0,0,0,.95),0 0 3px rgba(0,0,0,.9)}
