/* Open Sky refinement: one landscape, precise geometry, quiet controls. */
:host{color-scheme:dark;--page:#070e19;--ink:#f3eee5;--warm:#f4d497;--muted:#a7b7c4;--serif:'Cormorant Garamond',Georgia,serif;--sans:'Inter',Arial,sans-serif}
*{box-sizing:border-box}
:host{margin:0;background:var(--page);color:var(--ink);font:14px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,p,ol{margin:0}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}svg{display:block}
button:focus-visible,a:focus-visible{outline:2px solid #fff0c9;outline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;top:10px;left:-9999px;padding:10px 16px;background:var(--warm);color:#07101a;z-index:30}.skip:focus{left:15px}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:13px 38px;background:#060d17;border-bottom:1px solid #bccbd217}
.brand{font:600 29px var(--serif)}.brand span{color:var(--warm)}.topbar nav{font-size:12px;color:#b4c3cd}.topbar nav a{min-height:44px;display:flex;align-items:center;gap:10px}
.sky-world{position:relative;isolation:isolate;overflow:hidden;padding:23px 24px 22px;background:#070f1b}
.landscape{position:absolute;inset:0;width:100%;height:950px;object-fit:cover;object-position:50% 48%;z-index:-3;pointer-events:none}
.sky-shade{position:absolute;inset:0;height:950px;background:linear-gradient(#06101b44,transparent 22%,transparent 57%,#06101bad 82%,#070e19 94%);z-index:-2;pointer-events:none}
.opening{text-align:center}.eyebrow{font-size:9px;letter-spacing:.24em;color:#b4b8b5}.opening h3{font:500 38px/1.1 var(--serif);margin:6px 0 0;letter-spacing:-.015em}
.aperture{width:min(100%,560px);aspect-ratio:1;position:relative;margin:14px auto 8px;isolation:isolate}
.geometry{width:100%;height:100%;overflow:visible}.orbit-line{fill:none;stroke:#c6dbe430;stroke-width:.8}
#anchors circle{fill:#b1c3cf;opacity:.22}#rays line{stroke:#d9e4e8;stroke-width:.8;opacity:.14}#rays line.on{stroke:var(--warm);opacity:.85}
#rotor{transform-origin:320px 320px;transform-box:view-box}
#shape{fill:#e1bf8108;stroke:#ffe0a5;stroke-width:1.8;stroke-linejoin:round}
#shape-halo{fill:none;stroke:#f7d396;stroke-width:7;stroke-opacity:.065;stroke-linejoin:round}
#vertices circle{fill:#ffe3ac;stroke:#947545;stroke-width:.6}
#signs{list-style:none;padding:0;position:absolute;inset:0}
#signs li{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:76px;height:68px}
#signs button{width:100%;height:100%;min-width:44px;min-height:44px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3px;color:#aabac7;position:relative;border-radius:50%;transition:color .24s}
.sign-mark{display:block;position:relative;width:28px;height:28px;isolation:isolate}
.sign-mark:before{content:'';position:absolute;inset:-9px;border:1px solid #e9eee166;border-radius:50%;background:radial-gradient(circle,#d9e8ec17,transparent 68%);box-shadow:0 0 23px 7px #c5d8e722;opacity:0;transform:scale(.86);transition:opacity .24s,transform .24s;z-index:-1}
#signs svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;transition:transform .24s,filter .24s}
#signs b{font:400 12px/1.35 var(--sans);margin-top:7px;text-shadow:0 1px 6px #000,0 0 3px #000}
#signs li.member button{color:var(--warm)}#signs li.member svg{filter:drop-shadow(0 0 5px #efc87944)}
#signs li.outside button{color:#8798a7}
.aperture[data-focus=sign] #signs li button{color:#8494a2}
.aperture[data-focus=sign] #signs li.member button{color:#ad9d7e}
.aperture[data-focus=sign] #signs li.member svg{filter:none}
#signs li.inspected button{color:#fff5df!important}#signs li.inspected b{font-weight:500}
#signs li.inspected svg{transform:scale(1.17);filter:drop-shadow(0 0 7px #e6eef999)!important}
#signs li.inspected .sign-mark:before{opacity:1;transform:scale(1)}
#signs button:focus-visible{color:#fff5df!important}
@media(hover:hover) and (pointer:fine){#signs button:hover{color:#fff5df!important}}
#signs button:focus-visible{outline-offset:1px}
.horizon{max-width:510px;margin:auto;padding:6px 0;border-top:1px solid #cedae42b;border-bottom:1px solid #cedae41c;background:linear-gradient(90deg,transparent,#07101b8c 30%,#07101b8c 70%,transparent)}
.filter-family{display:flex;align-items:center;gap:18px;min-height:45px}.control-label{width:70px;flex:none;font-size:11px;color:#9dafbc;letter-spacing:.02em}
.filters{display:flex;flex:1;justify-content:space-between;gap:8px}
.filters button,#clear{position:relative;min-width:60px;min-height:44px;padding:9px 7px;border:0;background:none;color:#b1bfca;font-size:13px}
.filters button:after{content:'';position:absolute;bottom:4px;height:1px;left:20%;right:20%;background:var(--warm);transform:scaleX(0);transition:transform .2s}
.filters button[aria-pressed=true]{color:#ffe1a5}.filters button[aria-pressed=true]:after{transform:scaleX(1)}
@media(hover:hover) and (pointer:fine){.filters button:hover,#clear:hover{color:#fff0ce}}#clear{font-size:11px;margin-left:3px;color:#9dadba;min-width:66px}#clear[aria-pressed=true]{color:var(--warm)}
.readout{text-align:center;max-width:510px;margin:17px auto 0;position:relative;min-height:134px}
#context-title{font:500 32px/1.1 var(--serif);color:#f0e7d7;min-height:36px}
#context-meta{font-size:12px;line-height:1.65;color:#bdc8ce;min-height:22px;margin-top:4px}
.membership{font-size:11px;color:#a3b3c0;min-height:19px;margin-top:3px}
.detail-body{padding:12px 20px 16px;text-align:left;background:#070f1ae8;border-top:1px solid #c8d6df21}
#reflection-copy{font-size:13px;line-height:1.85;color:#c2cdd5}#modern-note{font-size:11px;color:#cdbf9e;margin-top:10px}#modern-note:empty{display:none}
.scope-note{font-size:10px;color:#91a4b4;margin-top:14px}
footer{display:flex;justify-content:center;padding:0 24px 15px;color:#9eafbc;font-size:11px}footer a{min-height:44px;display:flex;align-items:center;gap:12px}
.noscript{padding:25px;text-align:center}
@media(max-width:900px){.landscape,.sky-shade{height:900px}.topbar{padding:10px 24px}.sky-world{padding:19px 18px 15px}.aperture{width:min(100%,510px)}.opening h3{font-size:35px}}
@media(max-width:600px){
 .topbar{padding:8px 16px}.brand{font-size:25px}.topbar nav{font-size:11px}
 .sky-world{padding:17px 12px 10px}.opening h3{font-size:32px}.opening .eyebrow{font-size:8px}
 .landscape{height:760px;object-position:50% 55%}.sky-shade{height:760px;background:linear-gradient(#07101b15,transparent 25%,#070e190d 45%,#070e19 80%)}
 .aperture{margin:16px auto 10px;width:min(100%,390px)}#signs li{width:54px;height:48px}#signs button{padding:1px}
 .sign-mark{width:21px;height:21px}.sign-mark:before{inset:-7px;box-shadow:0 0 16px 5px #c5d8e722}
 #signs b{font-size:11px;margin-top:5px}.horizon{padding:3px 0;max-width:390px}
 .filter-family{gap:5px}.control-label{width:55px;font-size:10px}.filters{gap:1px}.filters button{min-width:44px;padding:8px 4px;font-size:12px}#clear{min-width:56px;padding:8px 2px;font-size:10px;margin-left:0}
 .readout{margin-top:14px;min-height:135px}#context-title{font-size:30px}#context-meta{font-size:11px}.membership{font-size:10px}
 footer{font-size:10px;padding-bottom:10px}
}
@media(max-width:360px){.sky-world{padding-left:10px;padding-right:10px}#signs li{width:44px;height:44px}#signs b{font-size:10px}.sign-mark{width:19px;height:19px}.sign-mark:before{inset:-6px}.control-label{width:48px}.filters button{font-size:11px}#clear{min-width:51px}.detail-body{padding:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Final variation: fixed scenery and a compact desktop reading rail. */
.sky-world{padding:16px 28px 24px;background:var(--page)}
.landscape,.sky-shade{height:680px}
.landscape{object-position:50% 68%}
.sky-shade{background:linear-gradient(#06101b33,transparent 25%,#070e1933 65%,#070e19 97%)}
.opening{max-width:1100px;margin:0 auto;text-align:left;padding-left:20px}
.opening .eyebrow{font-size:8px}.opening h3{font-size:31px;margin-top:3px}
.composition{display:grid;grid-template-columns:minmax(0,580px) minmax(0,324px);gap:64px;max-width:1000px;margin:6px auto 0;align-items:start}
.aperture{width:100%;margin:0;max-width:580px}
.reading-rail{padding-top:64px;min-width:0}
.horizon{max-width:none;margin:0;padding:10px 0 15px;background:none}
.filter-family{display:block;min-height:0}.filter-family+.filter-family{margin-top:12px}
.control-label{display:block;width:auto;font-size:10px;letter-spacing:.06em;margin-bottom:3px}
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
#modes{grid-template-columns:repeat(3,minmax(0,1fr));max-width:258px}
.filters button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:44px;padding:8px 4px;font-size:12px}
.control-motif{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
#clear{display:block;margin:8px 0 -5px;padding:8px 0;min-width:60px;text-align:left}
.readout{text-align:left;margin:23px 0 0;min-height:158px;max-width:none}
#context-title{font-size:36px;min-height:40px}#context-meta{font-size:12px;min-height:24px;line-height:1.8}
.membership{min-height:20px;margin-top:5px}
.ruler-family{font-size:12px;line-height:1.7;color:#c0b49c;min-height:41px;margin-top:7px;max-width:310px}
.detail-body{padding:12px 0 16px;background:linear-gradient(90deg,#070f1ad9,transparent)}
footer{padding-top:0}
#rim-marks{position:absolute;inset:0;pointer-events:none}
.rim-mark{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:15px;height:15px;display:grid;place-items:center;color:#8e9ba7;opacity:0}
.rim-mark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.rim-mark.ruler-echo{color:#b8c8d0;opacity:.85}
#ruler-seal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;color:#b9c8cf;width:140px}
#ruler-seal[hidden]{display:none}#seal-symbol{width:31px;height:31px;margin:0 auto 7px;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
#seal-name{display:block;font:500 20px/1.15 var(--serif);letter-spacing:.02em}#seal-caption{display:block;font:9px/1.5 var(--sans);margin-top:4px;color:#94a8b8}
@media(min-width:1000px) and (max-width:1150px){.landscape,.sky-shade{height:640px}.composition{grid-template-columns:minmax(0,540px) minmax(0,300px);gap:32px;max-width:890px}.reading-rail{padding-top:46px}.opening{max-width:890px;padding-left:0}}
@media(max-width:999px){
 .sky-world{padding:18px 18px 18px}.opening{text-align:center;padding-left:0}.opening h3{font-size:35px}
 .composition{display:block;max-width:510px;margin-top:12px}.aperture{margin:auto}.reading-rail{padding-top:14px}
 .horizon{padding:4px 0;max-width:510px}.filter-family{display:flex;gap:12px;align-items:center;min-height:44px}.filter-family+.filter-family{margin-top:0}
 .control-label{width:60px;flex:none;margin:0}.filters{display:flex;flex:1;justify-content:space-between;gap:3px}#modes{max-width:none}
 .filters button{min-width:52px}#clear{margin:0;padding:8px 3px;text-align:center;min-width:64px}
 .readout{text-align:center;margin:16px auto 0;min-height:157px}.ruler-family{max-width:none;min-height:21px;margin-top:3px}
 #context-title{font-size:32px;min-height:36px}#context-meta{min-height:22px}.detail-body{padding:12px 18px;text-align:left;background:#070f1ae8}
 .landscape,.sky-shade{height:920px}
}
@media(max-width:600px){
 .sky-world{padding:15px 12px 10px}.opening h3{font-size:30px}.composition{max-width:390px;margin-top:14px}.reading-rail{padding-top:10px}
 .landscape,.sky-shade{height:780px}.sky-shade{background:linear-gradient(#07101b15,transparent 25%,#070e190d 45%,#070e19 83%)}
 .landscape{object-position:50% 55%}.filter-family{gap:5px}.control-label{width:51px;font-size:10px}.filters{gap:1px}
 .filters button{min-width:44px;font-size:11px;gap:3px;padding:8px 3px}.control-motif{width:12px;height:12px}#clear{min-width:55px;font-size:10px;padding:8px 2px}
 .rim-mark{width:12px;height:12px;opacity:0}.rim-mark.ruler-echo{opacity:.82}
 #ruler-seal{width:110px}#seal-symbol{width:23px;height:23px;margin-bottom:4px}#seal-name{font-size:18px}#seal-caption{font-size:8px;margin-top:2px}
 #context-title{font-size:30px}.ruler-family{font-size:11px}#context-meta{font-size:11px}.membership{font-size:10px}
}
@media(max-width:360px){.sky-world{padding-left:10px;padding-right:10px}.control-label{width:44px}.filters button{font-size:10px;gap:2px}.control-motif{width:11px;height:11px}#clear{min-width:48px}}

/* R4: relationships belong to the rim; reading follows selection directly. */
.relationship-station{fill:none;stroke:var(--material);stroke-width:1.65;stroke-linecap:round;opacity:.13;pointer-events:none}
.relationship-station[data-element=fire],.star-study[data-element=fire]{--material:#efa16f}
.relationship-station[data-element=earth],.star-study[data-element=earth]{--material:#adb98a}
.relationship-station[data-element=air],.star-study[data-element=air]{--material:#ceebef}
.relationship-station[data-element=water],.star-study[data-element=water]{--material:#77bfcc}
.relationship-station[data-mode=fixed]{stroke-width:1.25}
.relationship-station.active{opacity:.9}
.aperture[data-focus=sign] .relationship-station.active{opacity:.42}
.aperture[data-focus=sign] .relationship-station.inspected{opacity:1;stroke-width:2}
#modes button{flex-direction:column;gap:0;line-height:1.5}
#modes button small{font:9px/1.4 var(--sans);color:#95a7b6}
#modes button[aria-pressed=true] small{color:#c9b68e}
.filters button[data-group=fire]{--material:#efa16f}
.filters button[data-group=earth]{--material:#adb98a}
.filters button[data-group=air]{--material:#ceebef}
.filters button[data-group=water]{--material:#77bfcc}
#elements button:before{content:'';width:12px;height:1px;background:var(--material);opacity:.8}
.readout{margin-top:20px;min-height:286px}
.membership{margin-top:2px;min-height:19px}
.ruler-family{margin-top:2px;min-height:22px;font-size:11px}
.detail-body{padding:12px 0 0;margin-top:8px;border-top:1px solid #c8d6df21;background:none;min-height:150px}
#reflection-copy{font-size:13px;line-height:1.8;min-height:94px}
.wheel-key{font-size:10px;line-height:1.7;color:#a7b7c2;margin-top:7px}
#modern-note{font-size:10px;line-height:1.7;margin-top:3px}
footer{flex-direction:column;align-items:center;padding-bottom:8px}
footer .scope-note{margin:0;font-size:9px;color:#91a4b4}
@media(max-width:999px){
 .readout{min-height:275px;margin-top:16px}
 .detail-body{max-width:420px;margin:8px auto 0;padding:12px 10px 0;text-align:left;min-height:150px}
 .ruler-family{min-height:22px}
 #reflection-copy{min-height:94px}
}
@media(max-width:600px){
 .relationship-station{opacity:.08;stroke-width:1.9}
 .relationship-station[data-mode=fixed]{stroke-width:1.45}
 #elements button:before{width:8px}
 #modes button{padding-top:3px;padding-bottom:4px}
 #modes button small{font-size:8px}
 .detail-body{padding-left:8px;padding-right:8px;min-height:174px}
 #reflection-copy{min-height:118px}
 .readout{min-height:295px}
}

.membership:empty,.ruler-family:empty{display:none}
#reflection-copy{min-height:0}

/* Sky 2 integration: shadow-scoped; uses the host menu's existing date reading. */
:host{display:block;contain:style;color-scheme:dark}
.sky-world{padding-top:30px;padding-bottom:35px}
.personal-reading{font-size:10px;line-height:1.7;color:#a7b7c4;margin-top:12px;min-height:65px}
.personal-reading>div{display:flex;align-items:center;gap:15px}
.personal-reading button,.personal-reading a{font-size:11px;min-height:44px;min-width:44px;display:inline-flex;align-items:center;background:none;border:0;padding:4px 0;color:#d5c399}
.personal-reading button[hidden]{display:none}
/* The birth sign stays marked independently of the sign being explored. */
#signs li.is-mine b{position:relative;color:var(--warm);font-weight:500}
#signs li.is-mine b:after{content:'Yours';position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);color:var(--warm);font:italic 500 14px/1.1 var(--serif);letter-spacing:.025em;text-shadow:0 1px 5px #070e19,0 0 8px #070e19;white-space:nowrap;pointer-events:none}
#signs li.is-mine .sign-mark:after{content:'';position:absolute;inset:-6px;border:1px solid #f4d49780;border-radius:50%;box-shadow:0 0 12px #f4d49718;pointer-events:none}
.aperture[data-focus=sign] #signs li.is-mine button{opacity:1}
.readout{margin-top:10px}
@media(max-width:999px){.personal-reading{text-align:center;margin-top:8px;min-height:58px}.personal-reading>div{justify-content:center}.readout{margin-top:6px}}

/* Compact illustrated elements: the paintings are the existing filter controls. */
#elements{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}
#elements button{display:flex;flex-direction:column;gap:6px;padding:0 0 7px;min-width:44px;min-height:44px;border:1px solid transparent;border-radius:3px;overflow:hidden;background:#07101b66}
#elements button img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;filter:brightness(.66) saturate(.7);transition:filter .2s}
#elements button:before,#elements button:after{content:none}
#elements button[aria-pressed=true]{border-color:var(--material);color:#fff0d3;background:#15202bd9}
#elements button[aria-pressed=true] img,#elements button:focus-visible img{filter:none}
#elements button:focus-visible{outline-offset:3px}
#elements button span{position:relative;font-size:11px;line-height:1.5}
#elements button.is-mine span:after{content:'';display:inline-block;width:4px;height:4px;margin-left:5px;vertical-align:middle;border-radius:50%;background:#d6e7e9}
.element-motto{font:italic 17px/1.5 var(--serif);color:#d5c399;margin-top:7px}
.element-motto:empty{display:none}
@media(min-width:1000px){.reading-rail{padding-top:24px}.readout{min-height:0}.detail-body{min-height:0}}
@media(max-width:999px){.filter-family:first-child{display:block}.filter-family:first-child .control-label{width:auto;margin-bottom:6px}#elements{margin-bottom:8px}#elements button img{max-height:76px}}
@media(max-width:600px){#elements{gap:6px}#elements button img{max-height:62px}.element-motto{font-size:16px}}

/* One light links the selected painting, wheel and reading. No ambient animation. */
.sky-world{--glow:#f4d497;--glow-rgb:244,212,151}
.sky-world[data-group=fire]{--glow:#efa16f;--glow-rgb:239,161,111}
.sky-world[data-group=earth]{--glow:#adb98a;--glow-rgb:173,185,138}
.sky-world[data-group=air]{--glow:#ceebef;--glow-rgb:206,235,239}
.sky-world[data-group=water]{--glow:#77bfcc;--glow-rgb:119,191,204}
.sky-world[data-group=cardinal]{--glow:#ddafa6;--glow-rgb:221,175,166}
.sky-world[data-group=fixed]{--glow:#b3bddb;--glow-rgb:179,189,219}
.sky-world[data-group=mutable]{--glow:#c8b0d6;--glow-rgb:200,176,214}
.aperture:before{content:'';position:absolute;inset:16%;z-index:-1;pointer-events:none;border-radius:50%;background:radial-gradient(circle,rgba(var(--glow-rgb),.035),transparent 72%)}
#shape{stroke:var(--glow);fill:rgba(var(--glow-rgb),.065)}
#shape-halo{stroke:var(--glow);stroke-opacity:.12}
#vertices circle{fill:var(--glow);stroke:var(--glow)}
/* Fire and Earth: warm ember and moss depth, with softly lit points. */
.aperture[data-group=fire] #shape{fill:url(#fire-depth)}
.aperture[data-group=fire] #shape-halo{stroke-opacity:.10}
.aperture[data-group=fire] #vertices circle{fill:#f8d3ac}
.aperture[data-group=earth] #shape{fill:url(#earth-depth)}
.aperture[data-group=earth] #shape-halo{stroke-opacity:.08}
.aperture[data-group=earth] #vertices circle{fill:#d5dfb9}
/* Water: sea-glass edges over a quiet gradient into deeper blue. */
.aperture[data-group=water] #shape{fill:url(#water-depth)}
.aperture[data-group=water] #shape-halo{stroke-opacity:.09}
.aperture[data-group=water] #vertices circle{fill:#c0e4e7}
#rays line.on{stroke:var(--glow)}
#signs li.member button{color:var(--glow)}
#signs li.member svg{filter:drop-shadow(0 0 4px rgba(var(--glow-rgb),.25))}
.aperture[data-focus=sign] #signs li.member button{color:var(--glow);opacity:.78}
#signs li.inspected button{opacity:1!important}
#signs button:focus-visible{outline:2px solid #fff5df;outline-offset:2px;background:#07101bd9}
#signs button:focus-visible .sign-mark:before{opacity:.6;transform:scale(1)}
#signs button,#horizon button,.personal-reading a,.personal-reading button{scroll-margin-block:90px 24px}
.control-label{color:#b9c8d2}
#elements button{border-color:#c5d5df2b;transition:border-color .16s,background-color .16s;isolation:isolate}
#elements button img{filter:brightness(.78) saturate(.85)}
#elements button[aria-pressed=true]{border-color:var(--glow);color:var(--glow);background:rgba(var(--glow-rgb),.09);box-shadow:inset 0 -2px var(--glow)}
#elements button:focus-visible,#modes button:focus-visible,#clear:focus-visible{outline:2px solid #fff5df;outline-offset:3px}
.filter-family+.filter-family{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:6px;margin-top:14px}
.filter-family+.filter-family .control-label{grid-column:1/-1;width:auto;margin:0}
#modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:5px}
#modes button,#clear{border:1px solid #c5d5df2b;border-radius:3px;background:#07101b99;min-width:44px;min-height:46px;margin:0;padding:4px 3px;text-align:center;font-size:11px;transition:background-color .16s,border-color .16s}
#modes button small{font-size:10px;color:#aabecb}
#modes button:after{content:none}
#modes button[data-group=cardinal]{--material:#ddafa6}
#modes button[data-group=fixed]{--material:#b3bddb}
#modes button[data-group=mutable]{--material:#c8b0d6}
#modes button[aria-pressed=true],#clear[aria-pressed=true]{border-color:#f4d49799;background:#f4d49714;color:#ffe1a5}
#modes button[aria-pressed=true]{border-color:var(--glow);color:var(--glow);background:rgba(var(--glow-rgb),.09);box-shadow:inset 0 -2px var(--glow)}
#modes button[aria-pressed=true] small{color:inherit}
.personal-reading button,.personal-reading a{border-radius:3px;padding-inline:6px}
.element-motto{color:var(--glow)}
.readout{min-height:304px}
.detail-body{min-height:0}
@media(hover:hover) and (pointer:fine){
 #elements button:hover:not([aria-pressed=true]){border-color:var(--material);background:#152330}
 #elements button:hover:not([aria-pressed=true]):not(:focus-visible) img{filter:brightness(.9) saturate(.95)}
 #modes button:hover:not([aria-pressed=true]){border-color:var(--material);color:var(--material);background:#d2e3ed13}
 #clear:hover,.personal-reading button:hover,.personal-reading a:hover{background:#d2e3ed13;color:#fff5df}
 #signs button:hover .sign-mark:before{opacity:.35;transform:scale(1)}
}
@media(max-width:999px){.filter-family+.filter-family{grid-template-columns:minmax(0,1fr) 68px;margin-top:10px}.readout{min-height:304px}}

/* A quiet arrival: rim marks and sign light settle together after rotation. */
.relationship-station{transition:opacity .18s ease}
#signs button{transition:color .18s ease}
#signs svg{transition:transform .24s,filter .18s ease}
.readout[data-sign=""] .detail-body{border-top-color:rgba(var(--glow-rgb),.38)}
#clear{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
#clear:before{content:'';display:block;width:8px;height:8px;flex:none;border:1px solid currentColor;border-radius:50%;opacity:.85}
/* A compact star study closes the reading; reserved space keeps selection steady. */
.readout{display:flex;flex-direction:column;min-height:402px}
.star-study{margin: auto 0 0;padding-top:12px;color:var(--material,var(--glow));pointer-events:none}
#star-sky{width:100%;height:116px;overflow:visible}
#star-dust{fill:#c5d8e6;opacity:.25}
.star-thread{fill:none;stroke:currentColor;stroke-width:.9;stroke-opacity:.48;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.star-aura{fill:url(#star-soft-light)}
.star-point{fill:#edf3ed;stroke:currentColor;stroke-width:.5}
.star-label{fill:#a7b7c4;font:10px var(--sans)}
.star-study figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:10px;line-height:1.6}
.star-study figcaption small{font-size:9px;color:#91a4b4}
@media(max-width:999px){.star-study{width:100%;max-width:360px;margin-inline:auto;text-align:left}}
@media(min-width:1000px) and (max-width:1099px){.readout{min-height:426px}}
@media(max-width:600px){#star-sky{height:110px}}
@media(max-width:360px){.readout{min-height:414px}}
@media(forced-colors:active){
 .sky-world{background:Canvas}
 .landscape,.sky-shade,.aperture:before{display:none}
 .geometry>circle{fill:Canvas}
 .orbit-line{stroke:GrayText}#anchors circle{fill:CanvasText}
 .relationship-station{stroke:CanvasText}.relationship-station.active{stroke:Highlight}
 #elements button[aria-pressed=true],#modes button[aria-pressed=true],#clear[aria-pressed=true]{border:2px solid Highlight}
 #shape,#shape-halo,#rays line.on{stroke:Highlight}#vertices circle{fill:Highlight}
 .aperture:is([data-group=fire],[data-group=earth],[data-group=water]) #shape{fill:Canvas}
 .aperture:is([data-group=fire],[data-group=earth],[data-group=water]) #vertices circle{fill:Highlight}
 #signs li.member button{color:LinkText}#signs li.inspected button{color:Highlight!important}
 .star-study{color:CanvasText}.star-thread{stroke:CanvasText;stroke-opacity:1}
 .star-point{fill:CanvasText;stroke:CanvasText}.star-label{fill:CanvasText}
 #star-dust,.star-aura{display:none}
}
