/* Compact, single-viewport desktop dashboards. Content is allowed to reflow on tablets and mobile. */
.ref .compact-story-button,.ref .compact-open{white-space:nowrap}
.ref .compact-dialog{width:min(1020px,94vw);max-height:88dvh;overflow:auto;border:1px solid #28798e;border-radius:14px;background:#0a1a2c;color:#eaf7ff;padding:10px}
.ref .compact-dialog::backdrop{background:#010810ca}
.ref .compact-dialog .motion-story{margin:8px 0 0}
.ref .compact-dialog .dialog-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ref .compact-dialog p{color:#c6e2fc}
.ref .compact-quote td,.ref .compact-quote th{white-space:nowrap}
.ref .compact-headlines{display:grid;gap:5px;margin-bottom:6px}
.ref .compact-headlines article{display:grid;grid-template-columns:55px 1fr;align-items:center;gap:6px;background:#102b42;border:1px solid #254a65;border-radius:7px;overflow:hidden}
.ref .compact-headlines img{width:55px;height:40px;object-fit:cover}
.ref .compact-headlines small{display:block;color:#a8c9dc}
.ref .compact-data-row{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:3px 4px;border-bottom:1px solid #25465e}
.ref .compact-data-row:last-child{border-bottom:0}
.ref .compact-data-row b{color:#9df4e6;direction:ltr;unicode-bidi:isolate}
.ref .compact-profile b{color:#ffd17d;margin-inline-end:.4em}
.ref .compact-discipline{display:flex;gap:.45em;align-items:center;justify-content:center;flex-wrap:wrap}
.ref .compact-discipline b{background:#135046;border:1px solid #277966;border-radius:5px;padding:1px 8px}
.ref .compact-discipline span,.ref .compact-traits{font-size:.84em;color:#bedbeb}
.ref .compact-traits{margin-bottom:3px}
.ref .compact-time-stats{display:grid;gap:4px}
.ref .ref-events time.amber{color:#ffd274}
.ref .ref-matrix tr.matrix-selected th{color:#ffe49e}
.ref .ref-matrix tr.matrix-selected td{box-shadow:inset 0 -1px #e6bc5d75}
.ref .compact-space-tools{margin-bottom:5px}
.ref .compact-space-tools [data-open-story]{margin-inline-start:auto}
.ref .compact-space #universe-scene{background:#041225;isolation:isolate;border:1px solid #234f67;border-radius:8px;aspect-ratio:2.08}
.ref .compact-galaxy{position:absolute;inset:0;pointer-events:none;background:
 radial-gradient(ellipse at 50% 59%,#40a7f951,transparent 11%),
 radial-gradient(ellipse at 45% 57%,#3541b453,transparent 27%),
 radial-gradient(ellipse at 57% 51%,#e4937752,transparent 21%),
 radial-gradient(ellipse at 45% 70%,#2c78bcc5 0,transparent 11%),
 radial-gradient(ellipse at 44% 57%,#142659,transparent 48%),
 radial-gradient(circle,#b2e8ffca 1px,transparent 1.4px) 2px 6px/127px 103px,
 radial-gradient(circle,#a6caff90 .65px,transparent 1.1px) 7px 4px/47px 41px,
 radial-gradient(circle,#7bc8fd75 .75px,transparent 1.1px) 16px 21px/67px 59px,#041225;}
.ref .compact-galaxy::after{content:'';position:absolute;inset:18% 22%;background:radial-gradient(ellipse at center,#72bcff48 0,#bb69c230 16%,#c5bfff2b 26%,#227ad32e 40%,transparent 64%);transform:rotate(-15deg);filter:blur(8px)}
.ref .compact-galaxy-title{position:absolute;inset:44% 32% auto;text-align:center;z-index:0;color:#e7faff;font-size:clamp(13px,1.4vw,25px);font-weight:850;line-height:1.2;text-shadow:0 0 15px #8cd9ff}
.ref .compact-planets{position:absolute;inset:0;--planet-scale:1}
.ref .compact-planets .planet{--glow:#68e0ff;--size:clamp(34px,6.6vw,93px);position:absolute;left:var(--left);top:var(--top);transform:translate(-50%,-50%);display:flex;gap:6px;align-items:center;direction:ltr;color:#e8faff;background:transparent;border:0;box-shadow:none;padding:0;z-index:1}
.ref .compact-planets .planet:hover,.ref .compact-planets .planet:focus-visible,.ref .compact-planets .planet[aria-pressed=true]{background:transparent;box-shadow:none}
.ref .planet img{width:calc(var(--size)*var(--planet-scale));height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;box-shadow:0 0 13px var(--glow);transition:width .18s ease,filter .18s ease}
.ref .planet[aria-pressed=true] img{outline:2px solid #efeffb;outline-offset:3px;box-shadow:0 0 26px var(--glow)}
.ref .planet span{white-space:nowrap;display:grid;gap:1px;text-align:right;background:#081d30;border:1px solid #2c6682;padding:4px 6px;border-radius:7px;font-size:clamp(8px,.72vw,12px);line-height:1.25}
.ref .planet strong{color:#edfbff}
.ref .planet-xau{--left:51%;--top:22%;--glow:#ffd273}
.ref .planet-btc{--left:80%;--top:34%;--glow:#fba85d}
.ref .planet-dxy{--left:19%;--top:30%;--glow:#61ffd0}
.ref .planet-wti{--left:20%;--top:68%;--glow:#b8c5fa}
.ref .planet-sp{--left:50%;--top:78%;--glow:#6ddaff}
.ref .planet-eur{--left:80%;--top:71%;--glow:#db95ff}
.ref[data-motion=on] .planet[aria-pressed=true] img{animation:compact-planet-glow 2.8s ease-in-out infinite alternate}
@keyframes compact-planet-glow{to{filter:brightness(1.17);box-shadow:0 0 33px var(--glow)}}
@media(min-width:1180px) and (min-height:700px){
 .ref{font-size:clamp(10.5px,.85vw,14px)}
 .ref .ref-shell{padding-inline:10px;display:grid;grid-template-columns:minmax(0,1fr);align-content:start}
 .ref .ref-head{min-height:clamp(48px,7.1vh,73px);gap:8px;background-position:71% center}
 .ref .ref-head h1{font-size:clamp(23px,3.8vh,38px)}.ref .ref-head strong{font-size:1.1em;margin-block:0}.ref .ref-head small{font-size:.8em}.ref .ref-brand img{width:clamp(108px,13vw,185px)}
 .ref .ref-sidebrand p{margin:2px;font-size:.81em}
 .ref .ref-nav{gap:4px;padding:2px 5px;margin:2px 0;border:1px solid #1e5273;border-radius:8px;background:#071e32}
 .ref .ref-nav a{min-height:0;padding:5px 8px}.ref .ref-nav input{padding:3px 5px;max-width:128px}
 .ref .ref-workspace{display:flex;align-items:center;gap:6px;margin:4px 0 6px}
 .ref .ref-overview{display:flex;flex:1;align-items:center;border-radius:7px}.ref .ref-kpi{padding:2px 5px;flex:1;display:flex;align-items:center;gap:5px}.ref .ref-kpi strong{font-size:1.01em}.ref .ref-kpi small{margin:0;white-space:nowrap;font-size:.79em}
 .ref .motion-tools{margin:0;gap:4px}.ref .motion-tools .ref-status{margin:0;font-size:.72em;max-width:23em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .ref .motion-tools button,.ref button,.ref select{padding:2px 6px;font-size:.93em;line-height:1.4;min-height:0}
 .ref .studio-jump{display:none}
 .ref .ref-grid,.ref .ref-stack,.ref .ref-bottom,.ref .ref-visuals{gap:6px}
 .ref .ref-grid:not(.ref-twin){grid-template-columns:minmax(0,22fr) minmax(0,54fr) minmax(0,23fr)}
 .ref .ref-grid.ref-command-layout{grid-template-areas:'left center right' 'left scenes scenes'}
 .ref .ref-command-layout>.scenes{grid-area:scenes}
 .ref .ref-box{border-color:#175379;border-radius:8px;background:linear-gradient(155deg,#102b44,#06172b 72%);box-shadow:inset 0 0 14px #04669528}
 .ref .ref-box h2{padding:4px 8px;line-height:1.22;font-size:1.13em;color:#f1fbff;background:linear-gradient(90deg,#0b304c,#091e33);border-color:#23506c;min-height:22px}
 .ref .ref-box h2 span{color:#6eebf9}.ref .ref-box h2 .ref-focus span{color:#c9e6f4}
 .ref .ref-body{padding:4px 6px}.ref .ref-box p{line-height:1.38;margin:.23em 0}
 .ref .ref-box td,.ref .ref-box th{padding:2px 2px;line-height:1.18}
 .ref .ref-box .compact-quote td,.ref .ref-box .compact-quote th{font-size:.94em}
 .ref .ref-quote button,.ref .compact-quote button{padding:1px 2px;font-size:1em}.ref .compact-quote button[data-star]{padding:1px 2px}
 .ref .spark{width:3.3em;height:1.2em}
 .ref .ref-events li{padding:.37em .2em;line-height:1.3}
 .ref .ref-chart-head{gap:4px;align-items:center;margin-bottom:3px}.ref .ref-chart-head [data-price]{font-size:clamp(16px,1.7vw,28px)}.ref .ref-chart-head [data-symbol-label]{font-size:1.01em}
 .ref .ref-chart-head .ref-controls{gap:2px;margin-inline-start:auto}
 .ref .ref-plot canvas{height:clamp(118px,20.3vh,225px)}.ref .ref-plot canvas.mini-chart{height:clamp(82px,14.4vh,146px)}
 .ref .ref-chart-reading{margin-top:3px;padding:2px 5px;font-size:.75em;min-height:0;line-height:1.24}
 .ref .ref-chip{padding:2px 3px;border-radius:5px}.ref .ref-chip small{font-size:.73em}.ref .ref-chip strong{font-size:1.06em;line-height:1.25}
 .ref .ref-cloud{min-height:clamp(42px,8vh,85px);padding-top:2px;padding-bottom:2px}
 .ref .ref-cloud strong{font-size:1.38em}.ref .ref-gauge{height:clamp(55px,10.8vh,116px)}
 .ref .map-art{height:clamp(79px,13.3vh,150px);aspect-ratio:auto}
 .ref .compact-agenda .ref-events li{padding-block:.27em}
 .ref .ref-scenario{min-height:0;padding:4px 6px}.ref .ref-scenario .scenario-line{height:25px;margin-top:3px}.ref .ref-scenario small{line-height:1.28}
 .ref .ref-well{padding:4px 6px}.ref .ref-alert{border-color:#75374e}.ref .ref-alert h2{background:#2c1a32}
 .ref .sector{min-height:0}
 .ref .compact-space #universe-scene{height:clamp(235px,38vh,398px);aspect-ratio:auto}
 .ref .compact-space #network{min-height:clamp(235px,38vh,398px)}
 .ref .compact-planets .planet{--size:clamp(35px,8.85vh,96px)}
 .ref .compact-planets .planet-xau,.ref .compact-planets .planet-sp{--size:clamp(49px,10.8vh,113px)}
 .ref .ref-matrix td,.ref .ref-matrix th{font-size:.86em;padding:1px;text-align:center}
 .ref .ref-periods .ref-four,.ref .compact-periods .ref-four{gap:2px}
 .ref #asset-correlations{flex-wrap:wrap;gap:3px}
 .ref .ref-strip{gap:4px;padding:2px 1px}.ref .ref-strip button{min-width:0}
 .ref .compact-date .ref-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px;align-items:center}
 .ref #year-label{padding:2px 4px;min-width:3.4em}
 .ref .ref-time-controls{gap:3px;margin-top:3px}.ref .ref-time-controls button{min-height:0}
 .ref .time-track{height:4px;margin-top:3px}
 .ref .historical-strip{margin-top:6px}.ref .historical-strip .ref-strip button{min-height:36px;white-space:normal}
 .ref .compact-time-mini .ref-body{padding:3px 5px}
 .ref .compact-best-time .mini-chart{height:clamp(62px,11vh,118px)}
 .ref .compact-emotion canvas[data-draw=emotion]{height:clamp(76px,15vh,168px)}
 .ref .compact-emotion .motion-caption{padding-top:3px}
 .ref .ref-twin{grid-template-columns:minmax(0,26fr) minmax(0,73fr)}
 .ref .ref-twin .twin-art{max-height:clamp(212px,38vh,425px);object-fit:contain}
 .ref .ref-twin canvas[data-draw=donut]{height:clamp(57px,10vh,109px)}
 .ref .ref-meter{padding:.2em 0}.ref .compact-discipline-box .ref-gauge{height:clamp(45px,9vh,89px)}
 .ref .ref-foot{margin:7px 0 0;padding:3px 5px;border-top:1px solid #246489;background:#071f33;gap:4px;justify-content:space-between;border-radius:7px}
 .ref .ref-foot a{padding:2px 5px;font-size:.86em}
 .ref .ref-instrument:fullscreen .ref-plot canvas,.ref .ref-instrument.ref-focused .ref-plot canvas,.ref .ref-instrument:fullscreen canvas[data-draw=emotion],.ref .ref-instrument.ref-focused canvas[data-draw=emotion]{height:67vh}
 .ref .compact-space:fullscreen #universe-scene,.ref .compact-space.ref-focused #universe-scene{height:67vh}
 .ref .compact-dialog .story-graph{height:clamp(240px,45vh,400px)}
}
@media(max-width:720px){
 .ref .compact-planets .planet{--size:clamp(23px,8vw,40px);gap:3px}
 .ref .compact-planets .planet span{font-size:8px;padding:2px}
 .ref .compact-galaxy-title{font-size:11px}
 .ref .compact-space #universe-scene{aspect-ratio:1.55}
}
@media(prefers-reduced-motion:reduce){.ref .planet img{transition:none}}

.ref #dashboard{width:100%;margin:0}
.ref .compact-space .compact-planets .planet[data-symbol][aria-pressed=true]{background:transparent;border-color:transparent;box-shadow:none}
.ref .ref-box .heat{grid-template-columns:repeat(12,minmax(0,1fr));gap:4px}
.ref .heat .sector{grid-column:span 4;background:linear-gradient(145deg,#065144,#082632);border-color:#196453}
.ref .heat .sector.down{background:linear-gradient(145deg,#572439,#301a30);border-color:#783852}
.ref .heat .sector:nth-child(n+7){grid-column:span 3}
.ref .ref-meter meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#9a234b,#ff7897)}
.ref .ref-meter meter::-webkit-meter-bar{background:#152941;border-color:#416381}
@media(min-width:1180px) and (min-height:700px){.ref[data-route=universe] .center>.ref-third{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.92fr)}}
