:root{color-scheme:dark;--bg:#080d15;--panel:#101925;--panel2:#0c141f;--line:#233246;--muted:#8493a7;--text:#e8eef7;--cyan:#72d7e8;--amber:#e5a95b;--violet:#9d8cff;--green:#76d5b1;--space:8px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{font-size:13px;letter-spacing:.01em}.app-shell{min-height:100vh;max-width:1920px;margin:0 auto;padding:18px 22px 12px;display:flex;flex-direction:column;gap:14px}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(119,145,175,.18);padding:0 2px 12px}.brand-lockup{display:flex;align-items:center;gap:12px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#26374b,#172637);display:grid;place-items:center;font-size:21px;color:#f2c16c;border:1px solid #35465b;box-shadow:0 5px 20px #0005}.eyebrow,.section-label,.readout-card>span,.mini-readout>span,.footer,.hud-kicker,.time-scale-label{font-size:9px;font-weight:800;letter-spacing:.14em;color:#8294aa}.brand-lockup h1{margin:3px 0 0;font-size:17px;letter-spacing:-.035em;font-weight:720}.brand-lockup h1 span{font-weight:450;color:#9eacbd}.topbar-meta{display:flex;align-items:center;gap:9px;color:#91a0b3;font-size:9px;letter-spacing:.13em;font-weight:750}.live-dot{width:7px;height:7px;border-radius:50%;background:#65d7b3;box-shadow:0 0 12px #65d7b3}.meta-divider{width:1px;height:14px;background:#344357;margin:0 4px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;flex:1;min-height:0}.stage-column,.control-column{min-width:0}.stage-column{display:flex;flex-direction:column;gap:9px}.stage-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:43px}.scene-title{display:flex;gap:10px;align-items:center}.scene-index{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;color:var(--cyan);background:#142637;border:1px solid #284457;font-size:10px;font-weight:800}.scene-title strong{display:block;font-size:12px;font-weight:750}.scene-title small{display:block;color:#8190a3;font-size:10px;margin-top:3px}.toolbar-actions{display:flex;gap:6px}.icon-button{width:32px;height:30px;border:1px solid #2a3a4f;border-radius:8px;background:#111c2a;color:#b9c8d8;font-size:16px;cursor:pointer}.icon-button:hover,.secondary-button:hover{border-color:#587087;background:#17283a}.stage-wrap{position:relative;min-height:400px;height:clamp(400px,55vh,650px);border:1px solid #26374b;border-radius:13px;overflow:hidden;background:radial-gradient(ellipse at 48% 48%,#172333 0%,#0c1420 54%,#080d15 100%);box-shadow:0 18px 60px #0005}.scene-mount,.scene-mount canvas{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none}.stage-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#050a121a,transparent 24%,transparent 72%,#050a125e)}.scene-hud{position:absolute;z-index:2;pointer-events:none;color:#b6c6d6}.hud-top-left{top:17px;left:18px;display:flex;flex-direction:column;gap:4px}.hud-top-left strong{font-size:11px;letter-spacing:.11em;color:#f0c47b}.hud-top-left small{font-size:10px;color:#8da0b4}.hud-bottom-left{bottom:15px;left:18px;display:flex;gap:14px;flex-wrap:wrap}.hud-legend{font-size:9px;color:#9eafc1;display:flex;align-items:center;gap:6px}.legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.legend-dot.lightning{background:#b8b0ff;box-shadow:0 0 8px #a9a0ff}.legend-dot.glass{background:#d6a66d}.legend-dot.sand{background:#b18b60}.hud-bottom-right{bottom:15px;right:16px;display:flex;gap:12px;font-size:8px;letter-spacing:.12em;color:#8293a7}.annotation-layer{position:absolute;inset:0;pointer-events:none}.annotation{position:absolute;display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:6px;background:#08111cdb;border:1px solid #52667a;color:#d6e1ed;font-size:9px;white-space:nowrap;opacity:0;transition:opacity .2s}.annotation span{color:var(--cyan);font-size:8px;font-weight:800}.stage-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#09111c;color:#91a6bb;font-size:9px;letter-spacing:.16em;z-index:5;transition:opacity .4s}.stage-loading.hidden{opacity:0;pointer-events:none}.loader-ring{width:27px;height:27px;border:2px solid #294154;border-top-color:#79d5e5;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.webgl-warning{position:absolute;inset:auto 14px 52px;padding:12px;background:#3b2225;border:1px solid #81464d;border-radius:8px;color:#ffd7d9;z-index:6}.transport-bar{display:flex;gap:16px;align-items:center;background:#0e1723;border:1px solid #223246;border-radius:10px;padding:10px 12px}.transport-buttons{display:flex;gap:6px;flex-shrink:0}.primary-button,.secondary-button{height:32px;border-radius:7px;padding:0 12px;display:flex;align-items:center;gap:7px;font-size:10px;font-weight:750;cursor:pointer}.primary-button{background:#1e3949;border:1px solid #386174;color:#c7f5f8}.primary-button:hover{background:#28495b}.secondary-button{background:#141f2d;border:1px solid #2a3a4d;color:#bdc9d7}.play-glyph{font-size:12px}.timeline-block{display:grid;grid-template-columns:1fr auto auto auto;gap:4px 10px;align-items:center;flex:1;min-width:0}.timeline-head{display:contents}.timeline-head span{font-size:8px;letter-spacing:.12em;color:#8293a7;font-weight:800}.timeline-head strong{font-size:10px;color:#dce7f2;font-variant-numeric:tabular-nums}.timeline-head .time-scale-label{margin-left:12px}.timeline-block input[type=range]{grid-column:1/-1;width:100%;height:3px;margin:3px 0 2px;accent-color:#79d5e5;cursor:pointer}.timeline-block input#speed{grid-column:1/-1;max-width:120px;justify-self:end;accent-color:#d9a86a}.readout-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.readout-card{background:linear-gradient(150deg,#121e2c,#0d1621);border:1px solid #24354a;border-radius:9px;padding:10px 12px;min-width:0}.readout-card>span{display:block;font-size:8px}.readout-card strong{display:block;margin:7px 0 4px;font-size:20px;line-height:1;font-weight:680;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.readout-card strong small,.mini-readout strong small{font-size:10px;color:#9aabbd;font-weight:600;letter-spacing:0}.readout-card em{font-style:normal;font-size:7px;letter-spacing:.13em;color:#7d91a6}.control-column{background:linear-gradient(180deg,#101a27,#0d1621);border:1px solid #243449;border-radius:12px;padding:15px 15px 12px;display:flex;flex-direction:column;gap:13px;overflow:auto;max-height:calc(100vh - 120px);scrollbar-width:thin;scrollbar-color:#34485e transparent}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between}.panel-heading h2{font-size:16px;margin:4px 0 0;letter-spacing:-.03em}.panel-number{font-size:9px;color:#7e91a5;letter-spacing:.12em;padding-top:5px}.preset-block,.control-section{border-top:1px solid #243448;padding-top:12px}.section-label{margin-bottom:9px}.preset-grid{display:grid;grid-template-columns:1fr;gap:6px}.preset-button{border:1px solid #29394d;background:#121e2c;color:#d6e1ed;border-radius:8px;display:flex;align-items:center;gap:9px;padding:7px 9px;text-align:left;cursor:pointer;min-height:43px}.preset-button.active{border-color:#56849a;background:#152b3a;box-shadow:inset 2px 0 #79d5e5}.preset-icon{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:#203446;color:#8bd9e6;font-size:15px}.preset-button b{display:block;font-size:10px}.preset-button small{display:block;font-size:9px;color:#8da0b4;margin-top:2px}.control-section{display:flex;flex-direction:column;gap:10px}.control-row{display:flex;flex-direction:column;gap:5px}.control-label{display:flex;justify-content:space-between;align-items:center;gap:8px}.control-label label{font-size:10px;color:#c7d2df}.control-label output{font-size:10px;color:#9bdce7;font-variant-numeric:tabular-nums;white-space:nowrap}.control-row input[type=range]{width:100%;margin:0;height:4px;accent-color:#76cddd;cursor:pointer}.range-ends{display:flex;justify-content:space-between;color:#71849a;font-size:8px}.control-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #243448;padding-top:11px}.mini-readout{background:#111f2d;border:1px solid #28394c;border-radius:8px;padding:8px}.mini-readout>span{display:block;font-size:7px}.mini-readout strong{display:block;font-size:15px;margin-top:5px;font-variant-numeric:tabular-nums}.science-card{border:1px solid #293a4e;border-radius:9px;background:#0c1520;overflow:hidden}.science-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;background:transparent;border:0;color:#dce6f0;padding:10px 11px;font-size:11px;font-weight:750;cursor:pointer}.science-toggle>span:first-child{display:flex;align-items:center;gap:8px}.science-icon{width:23px;height:23px;border-radius:7px;background:#203244;color:#8cdae5;display:grid;place-items:center;font-size:15px}.chevron{font-size:15px;color:#8fa2b6;transition:transform .2s}.science-toggle[aria-expanded=true] .chevron{transform:rotate(180deg)}.science-panel{padding:0 11px 12px;color:#aebccc;font-size:9px;line-height:1.55}.science-panel h3{color:#e3edf6;font-size:10px;margin:4px 0 6px}.science-panel p{margin:5px 0 8px}.equation{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#111f2c;border:1px solid #293a4d;border-radius:6px;padding:7px;margin:7px 0;color:#a9e0e8;font-size:9px}.science-panel dl{display:grid;grid-template-columns:23px 1fr;gap:4px 7px;margin:8px 0}.science-panel dt{color:#e8b96f;font-weight:800}.science-panel dd{margin:0}.model-limit{border-left:2px solid #b77e48;padding-left:8px}.validation-copy{border-left:2px solid #67c8a7;padding-left:8px}.disclaimer{color:#8294a8;font-size:8px!important}.footer{display:flex;justify-content:space-between;align-items:center;padding:2px 2px 0;font-size:8px}.footer span:last-child{color:#79c9b0}.embed-mode .topbar,.embed-mode .footer{display:none}.embed-mode .app-shell{padding:8px;gap:8px}.embed-mode .workspace{grid-template-columns:minmax(0,1fr) 300px}.embed-mode .stage-wrap{height:calc(100vh - 150px);min-height:340px}
@media(max-width:1120px){.workspace{grid-template-columns:minmax(0,1fr) 310px}.app-shell{padding:14px}.control-column{padding:12px}.stage-wrap{height:clamp(380px,52vh,560px)}}
@media(max-width:850px){.workspace{grid-template-columns:1fr}.control-column{max-height:none;overflow:visible}.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.preset-button{flex-direction:column;align-items:flex-start;min-height:72px}.stage-wrap{height:54vh;min-height:360px}.app-shell{padding:12px;gap:10px}.topbar-meta{display:none}.control-section{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}.control-section .section-label{grid-column:1/-1}.control-footer{margin-top:0}.footer{font-size:7px}}
@media(max-width:520px){.app-shell{padding:9px;gap:9px}.topbar{height:auto;padding-bottom:10px}.brand-mark{width:33px;height:33px}.brand-lockup h1{font-size:14px}.brand-lockup h1 span{display:block;font-size:11px;margin-top:2px}.workspace{gap:9px}.stage-toolbar{min-height:36px}.stage-wrap{height:48vh;min-height:330px;max-height:440px}.hud-bottom-right{display:none}.hud-bottom-left{gap:8px;bottom:10px;left:11px}.hud-legend{font-size:8px}.hud-top-left{top:11px;left:12px}.transport-bar{padding:8px;gap:8px;flex-direction:column;align-items:stretch}.transport-buttons{display:grid;grid-template-columns:1.3fr 1fr 1fr}.timeline-block{grid-template-columns:1fr auto auto auto}.timeline-head .time-scale-label{margin-left:3px}.readout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.readout-card{padding:9px}.readout-card strong{font-size:18px}.control-column{padding:11px;gap:11px}.preset-grid{gap:5px}.preset-button{padding:7px 6px;min-height:72px}.preset-button b{font-size:9px}.preset-button small{font-size:8px}.control-section{grid-template-columns:1fr;gap:10px}.control-section .section-label{grid-column:1}.footer{gap:6px;flex-wrap:wrap}.footer span:nth-child(2){display:none}.annotation{font-size:8px;padding:4px 6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
