:root {
  color-scheme: dark;
  --bg: #0b1117;
  --panel: #111a22;
  --panel-2: #15212a;
  --line: rgba(207, 220, 224, .105);
  --line-strong: rgba(207, 220, 224, .18);
  --text: #edf1ec;
  --muted: #8c9ba0;
  --dim: #5f7077;
  --sand: #d9ad72;
  --sand-bright: #f0c98f;
  --teal: #83c6bb;
  --orange: #dc9562;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 40% 0%, rgba(45,68,73,.18), transparent 48%), var(--bg); }
.topbar { height: 62px; flex: 0 0 62px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(9,15,20,.9); z-index: 5; }
.brand-lockup, .topbar-right { display: flex; align-items: center; }
.brand-lockup { gap: 12px; }
.brand-mark { width: 30px; height: 30px; position: relative; display: flex; align-items: end; gap: 3px; padding: 5px; border: 1px solid rgba(217,173,114,.45); border-radius: 8px; transform: skewY(-8deg); }
.brand-mark span { display: block; width: 4px; border-radius: 4px 4px 1px 1px; background: var(--sand); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 11px; opacity: .75; }
.eyebrow { color: var(--muted); font: 700 9px/1.2 var(--mono); letter-spacing: .16em; }
.brand-title { margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: .13em; }.brand-title span { color: var(--sand); }
.topbar-right { gap: 22px; }.live-status, .seed-label { color: var(--muted); font: 700 9px var(--mono); letter-spacing: .1em; }
.live-status { display: flex; align-items: center; gap: 8px; }.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px rgba(131,198,187,.7); }.status-dot.running { background: var(--sand-bright); box-shadow: 0 0 10px rgba(240,201,143,.7); animation: pulse 1.5s infinite; }
.seed-label strong { color: var(--sand); font-weight: 700; margin-left: 5px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 374px; gap: 0; min-height: 0; flex: 1; }
.stage-panel { min-width: 0; display: flex; flex-direction: column; padding: 20px 22px 16px 24px; gap: 12px; }
.stage-heading { min-height: 73px; display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.stage-heading h1 { margin: 6px 0 4px; font-size: clamp(23px, 2.25vw, 31px); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }.stage-heading h1 em { color: var(--sand-bright); font-style: normal; }
.stage-subtitle { margin: 0; color: #9ba9a8; font-size: 11px; letter-spacing: .01em; }
.stage-badges { display: flex; align-items: center; gap: 7px; padding-top: 5px; flex-wrap: wrap; justify-content: end; }
.tag { border: 1px solid var(--line-strong); color: #9caaab; border-radius: 3px; padding: 6px 8px; font: 700 8px var(--mono); letter-spacing: .09em; white-space: nowrap; }.tag-gold { color: var(--sand-bright); border-color: rgba(217,173,114,.3); background: rgba(217,173,114,.07); }
.scene-wrap { flex: 1; min-height: 360px; position: relative; overflow: hidden; border: 1px solid rgba(208,220,213,.12); border-radius: 9px; background: #17232a; box-shadow: 0 18px 48px rgba(0,0,0,.24), inset 0 0 80px rgba(7,13,18,.35); }
.scene-mount { position: absolute; inset: 0; z-index: 1; }.scene-mount canvas { width: 100%; height: 100%; display: block; outline: none; }
.scene-vignette { pointer-events: none; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(9,17,23,.34), transparent 25%, transparent 74%, rgba(8,13,17,.42)), linear-gradient(90deg, rgba(8,14,18,.22), transparent 25%, transparent 80%, rgba(8,14,18,.18)); }
.scene-top-hud { position: absolute; z-index: 3; top: 14px; left: 14px; display: flex; gap: 7px; pointer-events: none; }.hud-chip { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(229,233,220,.14); background: rgba(9,16,20,.62); backdrop-filter: blur(8px); border-radius: 5px; padding: 7px 9px; }.hud-label { color: #87989a; font: 700 8px var(--mono); letter-spacing: .12em; }.hud-chip strong { font: 700 10px var(--mono); color: #f1d2a4; }.wind-arrow { font-size: 15px; color: var(--teal); line-height: 10px; }
.scene-scale { position: absolute; z-index: 3; bottom: 17px; left: 18px; display: flex; align-items: center; gap: 7px; color: rgba(226,232,221,.72); font: 9px var(--mono); pointer-events: none; }.scene-scale i { display: block; width: 65px; height: 5px; border: 1px solid rgba(230,230,213,.7); border-top: 0; }
.scene-compass { position: absolute; right: 17px; bottom: 15px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(226,232,221,.72); font: 8px var(--mono); pointer-events: none; }.compass-ring { width: 32px; height: 32px; border: 1px solid rgba(226,232,221,.38); border-radius: 50%; position: relative; }.compass-ring:before { content: ""; position: absolute; left: 50%; top: 4px; height: 22px; width: 1px; background: rgba(226,232,221,.25); transform: translateX(-50%); }.compass-ring i { position: absolute; width: 2px; height: 12px; left: 50%; top: 3px; transform-origin: 50% 13px; transform: translateX(-50%) rotate(0deg); background: var(--teal); border-radius: 2px; }.scene-compass small { font-size: 7px; letter-spacing: .13em; color: var(--teal); }
.scene-annotation { position: absolute; z-index: 4; display: flex; align-items: center; gap: 6px; color: #f3d4a4; font: 700 8px var(--mono); letter-spacing: .1em; text-shadow: 0 1px 5px #152027; pointer-events: none; opacity: .9; transition: opacity .25s; }.scene-annotation b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #0b1418; background: var(--sand-bright); font-size: 8px; }.scene-annotation:after { content: ""; position: absolute; left: 9px; top: 19px; height: 20px; border-left: 1px solid rgba(240,201,143,.75); }.annotation-crest { left: 47%; top: 36%; }.annotation-lee { left: 61%; top: 54%; }.annotation-horn { left: 35%; top: 65%; }
.scene-controls-hint { position: absolute; z-index: 3; bottom: 17px; left: 50%; transform: translateX(-50%); color: rgba(212,222,218,.5); font: 8px var(--mono); letter-spacing: .08em; white-space: nowrap; pointer-events: none; }.scene-controls-hint span { color: rgba(226,232,221,.83); }.scene-controls-hint i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--sand); vertical-align: middle; margin: 0 8px; }
.scene-loader, .context-overlay { position: absolute; z-index: 8; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; background: rgba(11,17,23,.94); color: var(--muted); font: 700 9px var(--mono); letter-spacing: .16em; }.scene-loader.hidden { opacity: 0; pointer-events: none; transition: opacity .5s; }.loader-orbit { width: 30px; height: 30px; border: 1px solid rgba(217,173,114,.22); border-top-color: var(--sand); border-radius: 50%; animation: spin 1.2s linear infinite; }.context-overlay { background: rgba(11,17,23,.9); color: var(--text); letter-spacing: normal; }.context-overlay strong { font-size: 15px; }.context-overlay span { font-size: 11px; color: var(--muted); }
.mechanism-strip { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr; align-items: center; gap: 8px; min-height: 58px; border: 1px solid var(--line); border-radius: 7px; background: rgba(17,26,34,.74); padding: 9px 14px; }.mechanism-step { min-width: 0; display: flex; flex-direction: column; gap: 3px; }.mechanism-index { color: var(--sand); font: 700 8px var(--mono); letter-spacing: .12em; }.mechanism-step strong { font-size: 10px; font-weight: 650; }.mechanism-step small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.mechanism-chevron { color: #617278; text-align: center; font-size: 20px; font-weight: 300; }
.control-panel { min-height: 0; border-left: 1px solid var(--line); background: linear-gradient(160deg, rgba(18,28,36,.98), rgba(13,21,28,.98)); }.panel-scroll { height: calc(100vh - 62px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #34454c transparent; padding: 18px 18px 14px; }.panel-section { padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }.section-head h2 { font-size: 15px; font-weight: 620; letter-spacing: -.025em; margin: 4px 0 0; }.section-icon { color: var(--sand); font-size: 25px; font-weight: 300; }.live-pill { display: flex; align-items: center; gap: 5px; color: var(--teal); font: 700 8px var(--mono); letter-spacing: .1em; }.live-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 7px rgba(131,198,187,.7); }
.preset-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 15px; }.preset-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.018); color: #9ba8a7; padding: 8px 5px; border-radius: 4px; font-size: 9px; cursor: pointer; transition: .18s ease; }.preset-button .preset-glyph { color: var(--sand); margin-right: 5px; font-size: 13px; vertical-align: -1px; }.preset-button:hover { border-color: rgba(217,173,114,.45); color: var(--text); }.preset-button.active { color: #f1d4a9; border-color: rgba(217,173,114,.52); background: rgba(217,173,114,.095); }
.control-list { display: flex; flex-direction: column; gap: 13px; }.control-row { min-width: 0; }.control-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }.control-label label { color: #c6d0cc; font-size: 10px; }.control-label .unit { color: #82918f; font: 9px var(--mono); }.control-label output { color: var(--sand-bright); font: 700 10px var(--mono); white-space: nowrap; }.control-label output small { color: #9aa7a3; font-size: 8px; font-weight: 500; }
input[type=range] { width: 100%; height: 4px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 5px; background: linear-gradient(90deg, var(--sand) 0%, rgba(217,173,114,.25) 0%); cursor: pointer; display: block; }.range-ends { display: flex; justify-content: space-between; margin-top: 5px; color: #65767b; font: 8px var(--mono); }.control-row input::-webkit-slider-thumb, .speed-control input::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #f0c98f; border: 2px solid #29343a; box-shadow: 0 0 0 1px rgba(240,201,143,.55); }.control-row input::-moz-range-thumb, .speed-control input::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: #f0c98f; border: 2px solid #29343a; }
.readout-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.readout-card { border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.022); padding: 9px 10px 8px; min-width: 0; }.readout-card > span { display: block; color: #7e8e91; font: 700 7px var(--mono); letter-spacing: .11em; white-space: nowrap; }.readout-card strong { display: block; color: #f0d3a9; font: 600 19px/1.45 var(--mono); letter-spacing: -.06em; margin-top: 2px; }.readout-card small { color: #8b9999; font: 9px var(--mono); }.readout-card small b { color: #70817e; font-size: 7px; font-weight: 700; margin-left: 3px; }
.validation-card { margin-top: 8px; border: 1px solid rgba(131,198,187,.19); border-radius: 5px; background: rgba(77,132,122,.07); padding: 9px 10px 8px; }.validation-head { display: flex; gap: 8px; align-items: center; }.validation-check { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%; background: rgba(131,198,187,.16); color: var(--teal); font-size: 12px; }.validation-head strong { display: block; font-size: 9px; font-weight: 650; }.validation-head small { display: block; color: #78908d; font: 7px var(--mono); letter-spacing: .06em; margin-top: 3px; }.validation-values { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(131,198,187,.12); }.validation-values div { display: flex; flex-direction: column; gap: 3px; }.validation-values div + div { padding-left: 8px; border-left: 1px solid rgba(131,198,187,.12); }.validation-values span { color: #78908d; font: 7px var(--mono); }.validation-values strong { color: #c1e0d7; font: 700 10px var(--mono); }.validation-card p { color: #81928e; font-size: 8px; line-height: 1.4; margin: 8px 0 0; }
.playback-section { padding-bottom: 14px; }.time-unit { color: #73847f; font: 8px var(--mono); }.playback-controls { display: grid; grid-template-columns: 1fr 38px 38px 38px; gap: 6px; }.play-button, .icon-button { height: 34px; border-radius: 4px; cursor: pointer; transition: .18s ease; }.play-button { display: flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid rgba(217,173,114,.46); background: linear-gradient(120deg, rgba(217,173,114,.2), rgba(217,173,114,.08)); color: #f3d5aa; font-size: 9px; letter-spacing: .1em; }.play-button span { font-size: 10px; }.play-button:hover { background: rgba(217,173,114,.22); }.icon-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: #b0bfba; font-size: 14px; }.icon-button:hover { border-color: rgba(131,198,187,.4); color: var(--teal); }.speed-control { margin-top: 13px; }.speed-control input { margin-top: 3px; }.quality-row { display: flex; align-items: center; gap: 7px; margin-top: 14px; }.quality-row > span { color: #718184; font: 700 7px var(--mono); letter-spacing: .1em; margin-right: auto; }.segmented { display: flex; border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px; gap: 2px; }.segmented button { border: 0; background: transparent; color: #83918f; padding: 4px 7px; font: 700 7px var(--mono); cursor: pointer; border-radius: 2px; }.segmented button.active { color: #e8c99a; background: rgba(217,173,114,.16); }.export-button { border: 1px solid var(--line-strong); border-radius: 4px; padding: 6px 7px; background: rgba(255,255,255,.025); color: #aebbb6; font: 700 7px var(--mono); cursor: pointer; }.export-button:hover { color: var(--teal); border-color: rgba(131,198,187,.4); }
.science-panel { border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.018); }.science-panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; }.science-panel summary::-webkit-details-marker { display: none; }.science-panel summary strong { display: block; margin-top: 3px; font-size: 12px; font-weight: 650; }.summary-plus { color: var(--sand); font-size: 20px; transition: transform .2s; }.science-panel[open] .summary-plus { transform: rotate(45deg); }.science-content { border-top: 1px solid var(--line); padding: 10px 12px 12px; }.science-content h3 { color: #e7c899; font-size: 9px; margin: 11px 0 5px; }.science-content p, .science-content li { color: #93a19f; font-size: 9px; line-height: 1.55; }.science-content p { margin: 5px 0; }.science-content ul { padding-left: 15px; margin: 5px 0 10px; }.science-content li { margin: 3px 0; }.equation { margin: 6px 0; padding: 7px 8px; background: rgba(0,0,0,.2); border-left: 2px solid rgba(217,173,114,.6); color: #d7c39f; font: 10px var(--mono); }.science-caveat { color: #b3a38b !important; font-style: italic; }.panel-footnote { margin-top: 12px; color: #526268; font: 7px var(--mono); letter-spacing: .08em; text-align: center; }.panel-footnote span { color: var(--sand); padding: 0 3px; }
.embed .topbar { display: none; }.embed .workspace { min-height: 100vh; }.embed .panel-scroll { height: 100vh; }
@keyframes spin { to { transform: rotate(360deg); } }@keyframes pulse { 50% { opacity: .35; } }
@media (min-width: 1500px) { .workspace { grid-template-columns: minmax(0,1fr) 400px; }.stage-panel { padding-left: 30px; padding-right: 28px; }.scene-wrap { min-height: 480px; } }
@media (max-width: 1050px) { body { overflow: auto; }.workspace { grid-template-columns: minmax(0,1fr) 340px; }.stage-panel { padding: 16px; }.stage-badges { display: none; }.scene-controls-hint { display: none; }.panel-scroll { padding: 16px 14px; } }
@media (max-width: 760px) { .topbar { height: 54px; flex-basis: 54px; padding: 0 14px; }.brand-mark { width: 27px; height: 27px; }.topbar-right { gap: 12px; }.seed-label { font-size: 8px; }.workspace { display: flex; flex-direction: column; }.stage-panel { padding: 14px 12px 10px; gap: 10px; }.stage-heading { min-height: 64px; }.stage-heading h1 { font-size: 24px; }.stage-subtitle { font-size: 10px; max-width: 340px; line-height: 1.4; }.scene-wrap { flex: none; height: min(54vh, 450px); min-height: 330px; border-radius: 7px; }.scene-top-hud { top: 9px; left: 9px; }.hud-chip { padding: 6px 7px; gap: 6px; }.scene-annotation { transform: scale(.86); transform-origin: left top; }.annotation-crest { left: 40%; top: 32%; }.annotation-lee { left: 60%; top: 54%; }.annotation-horn { left: 23%; top: 65%; }.mechanism-strip { min-height: 56px; padding: 8px 9px; gap: 4px; grid-template-columns: 1fr 10px 1fr 10px 1fr; }.mechanism-step strong { font-size: 9px; }.mechanism-step small { font-size: 8px; }.mechanism-index { font-size: 7px; }.mechanism-chevron { font-size: 15px; }.control-panel { border-left: 0; border-top: 1px solid var(--line); }.panel-scroll { height: auto; overflow: visible; padding: 16px 14px 22px; }.panel-section { margin-bottom: 14px; }.control-list { gap: 15px; }.readout-card { padding: 10px; }.readout-card strong { font-size: 20px; }.science-content p, .science-content li { font-size: 10px; }.panel-footnote { margin-bottom: 8px; }.embed .panel-scroll { height: auto; } }
@media (max-width: 390px) { .stage-heading h1 { font-size: 22px; }.stage-subtitle { max-width: 300px; }.scene-wrap { min-height: 310px; height: 45vh; }.mechanism-strip { padding: 7px 6px; }.mechanism-step small { font-size: 7px; }.scene-controls-hint { display: none; }.quality-row { gap: 5px; }.quality-row > span { font-size: 6px; }.export-button { font-size: 6px; padding: 6px 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

.context-overlay[hidden]{display:none!important}
