:root {
  color-scheme: dark;
  --bg: #06131f;
  --panel: #0b1d2b;
  --panel-2: #0d2232;
  --line: rgba(141, 190, 210, .14);
  --muted: #7792a5;
  --text: #e4f2f8;
  --teal: #62e4db;
  --cyan: #70c9f5;
  --blue: #6099ff;
  --amber: #f1c36b;
  --violet: #b29cff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; background: radial-gradient(ellipse at 45% -10%, #123147 0, #071723 43%, #050e18 100%); }
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 { max-width: 1760px; margin: 0 auto; padding: 0 24px 16px; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(98,228,219,.4); border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 3px; transform: rotate(-8deg); background: linear-gradient(145deg, rgba(98,228,219,.13), rgba(31,86,112,.12)); }
.brand-mark span { width: 3px; border-radius: 4px; background: var(--teal); display: block; }
.brand-mark span:nth-child(1) { height: 10px; opacity: .55; }.brand-mark span:nth-child(2) { height: 18px; }.brand-mark span:nth-child(3) { height: 13px; opacity: .75; }
.eyebrow, .micro-label { font-size: 9px; line-height: 1.3; letter-spacing: .16em; color: #83a4b7; font-weight: 800; }
h1 { font-size: 18px; line-height: 1.2; margin: 3px 0 0; letter-spacing: -.025em; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.live-pill { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(98,228,219,.22); color: #a8e9e4; background: rgba(39,135,131,.10); border-radius: 999px; padding: 7px 11px; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.live-dot, .tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px rgba(98,228,219,.75); }
.topbar-meta { font-size: 9px; letter-spacing: .13em; color: var(--muted); }.topbar-meta strong { color: #b6d0dd; margin-left: 5px; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); background: #0c2030; border-radius: 9px; color: #9bb7c8; cursor: pointer; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; padding-top: 16px; align-items: start; }
.stage-column { min-width: 0; }
.stage-card, .panel, .readout-card { background: linear-gradient(145deg, rgba(13,34,50,.96), rgba(8,24,37,.98)); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.stage-card { overflow: hidden; }
.scene-host { height: min(67vh, 720px); min-height: 510px; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 0%, #16405a, #071b2b 60%, #05111c 100%); }
.scene-host canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-loading { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; color: #a5c4d3; font-size: 11px; letter-spacing: .06em; background: #071724; transition: opacity .4s ease; }
.scene-loading.hidden { opacity: 0; pointer-events: none; }
.loading-ring { width: 26px; height: 26px; border: 2px solid rgba(98,228,219,.18); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene-topline { position: absolute; z-index: 2; top: 16px; left: 17px; right: 17px; display: flex; justify-content: space-between; pointer-events: none; }
.scene-tag { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; background: rgba(3,14,23,.62); border: 1px solid rgba(150,198,218,.15); color: #b7d5e2; font-size: 8px; letter-spacing: .13em; font-weight: 800; backdrop-filter: blur(8px); }
.scene-coords { font-size: 8px; letter-spacing: .14em; color: rgba(183,213,226,.6); padding-top: 9px; text-align: right; }
.annotation { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 3px; padding: 7px 9px; border-radius: 6px; border: 1px solid rgba(115,204,220,.18); background: rgba(5,20,31,.55); backdrop-filter: blur(5px); }
.annotation b { color: #bde7e8; font-size: 8px; letter-spacing: .13em; }
.annotation small { color: #83a7b8; font-size: 8px; letter-spacing: .02em; }
.annotation-line { position: absolute; height: 1px; background: linear-gradient(90deg, rgba(98,228,219,.9), transparent); width: 48px; top: 50%; }
.annotation-wind { top: 17%; left: 4%; }.annotation-wind .annotation-line { left: 100%; }
.annotation-streak { top: 31%; right: 5%; }.annotation-streak .annotation-line { right: 100%; transform: rotate(180deg); }
.annotation-roll { bottom: 23%; left: 5%; }.annotation-roll .annotation-line { left: 100%; width: 58px; }
.scene-bottom-left { position: absolute; bottom: 14px; left: 16px; z-index: 2; pointer-events: none; }
.axis-legend { color: rgba(186,215,226,.76); font-size: 8px; letter-spacing: .12em; display: flex; align-items: center; gap: 7px; }
.axis-legend i { display: inline-block; width: 26px; height: 1px; background: var(--teal); }
.axis-x, .axis-z { color: var(--teal); font-weight: 900; }
.scene-note { color: rgba(138,171,188,.5); font-size: 7px; letter-spacing: .14em; margin-top: 7px; }
.scene-bottom-right { position: absolute; bottom: 13px; right: 14px; z-index: 2; display: flex; gap: 6px; }
.scene-tool { background: rgba(5,18,29,.7); border: 1px solid rgba(137,184,204,.2); color: #b8d3df; border-radius: 6px; padding: 7px 9px; font-size: 8px; letter-spacing: .1em; cursor: pointer; backdrop-filter: blur(8px); }
.scene-tool span { color: var(--teal); margin-right: 4px; font-size: 12px; }
.context-lost { position: absolute; inset: 0; z-index: 10; background: rgba(4,15,24,.94); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 24px; }
.context-lost strong { font-size: 17px; }.context-lost span { font-size: 12px; color: var(--muted); }.context-lost button { margin-top: 7px; border: 0; border-radius: 7px; background: var(--teal); color: #052027; padding: 9px 14px; font-weight: 800; cursor: pointer; }
.hidden { display: none !important; }
.transport-bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 15px; background: rgba(4,15,24,.72); border-top: 1px solid var(--line); }
.transport-controls { display: flex; align-items: center; gap: 8px; }
.primary-transport, .secondary-transport { display: grid; place-items: center; border-radius: 8px; cursor: pointer; }
.primary-transport { width: 35px; height: 35px; border: 1px solid rgba(98,228,219,.35); background: rgba(55,164,157,.18); color: var(--teal); font-size: 14px; }
.secondary-transport { width: 31px; height: 31px; border: 1px solid var(--line); background: #102739; color: #a5c1d0; font-size: 13px; }
.transport-divider { width: 1px; height: 30px; background: var(--line); margin: 0 5px; }
.time-readout { display: flex; flex-direction: column; gap: 2px; }.time-readout strong { font-size: 12px; font-variant-numeric: tabular-nums; color: #d8edf4; }
.speed-control { display: flex; align-items: center; gap: 9px; flex: 1; max-width: 220px; }.speed-control label { font-size: 8px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; font-weight: 800; }.speed-control output { font-size: 10px; color: var(--teal); min-width: 38px; font-variant-numeric: tabular-nums; }
.speed-control input { min-width: 40px; width: 100%; }
.quality-control { display: flex; align-items: center; gap: 5px; }.quality-control .micro-label { margin-right: 3px; }
.quality-choice { background: transparent; border: 1px solid transparent; color: #7893a4; border-radius: 5px; padding: 6px 7px; font-size: 8px; letter-spacing: .08em; cursor: pointer; }.quality-choice.active { color: var(--teal); border-color: rgba(98,228,219,.25); background: rgba(98,228,219,.08); }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.readout-card { min-height: 101px; padding: 13px 14px 11px; }.readout-label { font-size: 8px; letter-spacing: .12em; color: #91adbd; font-weight: 800; white-space: nowrap; }.info-dot { display: inline-grid; place-items: center; width: 12px; height: 12px; border: 1px solid rgba(140,182,201,.35); border-radius: 50%; font-size: 8px; color: #91b5c6; margin-left: 3px; cursor: help; }
.readout-value { display: flex; align-items: baseline; gap: 6px; margin-top: 11px; }.readout-value strong { font-size: 24px; line-height: 1; letter-spacing: -.04em; font-weight: 600; font-variant-numeric: tabular-nums; }.readout-value span { color: #83a2b3; font-size: 10px; }.readout-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: #708b9d; font-size: 7px; letter-spacing: .12em; font-weight: 800; }.status-mark { width: 5px; height: 5px; border-radius: 50%; }.status-mark.teal { background: var(--teal); }.status-mark.blue { background: var(--blue); }.status-mark.violet { background: var(--violet); }.status-mark.amber { background: var(--amber); }.accent-readout { border-color: rgba(241,195,107,.2); }
.control-column { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel { padding: 15px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }.panel-heading h2 { font-size: 15px; letter-spacing: -.02em; margin: 4px 0 0; font-weight: 650; }.panel-index { color: #5f7d90; font-size: 8px; letter-spacing: .12em; padding-top: 4px; white-space: nowrap; }
.preset-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 16px; }
.preset-button { min-width: 0; display: flex; align-items: flex-start; gap: 6px; text-align: left; background: #0a1b29; border: 1px solid rgba(137,184,204,.12); border-radius: 7px; padding: 8px 6px; cursor: pointer; transition: border-color .2s, background .2s; }.preset-button.selected { border-color: rgba(98,228,219,.5); background: rgba(44,132,135,.13); }
.preset-button b { display: block; font-size: 8px; line-height: 1.3; color: #c7dce6; white-space: nowrap; }.preset-button small { display: block; font-size: 7px; margin-top: 3px; color: #6e8b9e; white-space: nowrap; }.preset-swatch { flex: 0 0 7px; width: 7px; height: 22px; border-radius: 3px; background: #5a9eaa; }.preset-swatch.calm { background: #6e9ec2; }.preset-swatch.classic { background: #59d3c6; }.preset-swatch.storm { background: #e2a65c; }
.control-group { margin-bottom: 13px; }.control-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }.control-heading label { font-size: 10px; color: #c6d9e3; }.control-heading output { font-size: 10px; color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.range-input { appearance: none; width: 100%; height: 4px; border-radius: 10px; background: linear-gradient(90deg, #2e9f9b 0%, #2e9f9b var(--range-progress,50%), #284154 var(--range-progress,50%), #284154 100%); outline: none; display: block; cursor: pointer; }.range-input::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #d9fbf4; border: 3px solid #39bdb4; box-shadow: 0 0 0 3px rgba(57,189,180,.13); }.range-input::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: #d9fbf4; border: 3px solid #39bdb4; box-shadow: 0 0 0 3px rgba(57,189,180,.13); }
.range-scale { display: flex; justify-content: space-between; margin-top: 5px; color: #587588; font-size: 8px; }.last-control { margin-bottom: 10px; }
.control-hint { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; background: rgba(70,146,157,.08); border: 1px solid rgba(90,182,188,.12); border-radius: 7px; color: #83a9b9; font-size: 8px; line-height: 1.45; }.hint-icon { font-size: 15px; color: var(--teal); line-height: 1; }
.compact-heading { margin-bottom: 10px; }.compact-heading h2 { font-size: 13px; }
.metric-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(141,190,210,.09); padding: 8px 0; font-size: 9px; color: #86a2b3; }.metric-row strong { color: #d5e8ef; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }.metric-row strong small { color: #7391a3; font-size: 8px; font-weight: 500; margin-left: 2px; }
.validation-compare { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 5px; }.validation-compare div:not(.validation-equals) { min-width: 0; }.validation-compare span { display: block; color: #7795a6; font-size: 8px; margin-bottom: 5px; }.validation-compare strong { font-size: 14px; color: #d7edf2; font-variant-numeric: tabular-nums; }.validation-equals { color: #6c899b; text-align: center; font-size: 9px; }
.validation-footer { display: flex; align-items: center; gap: 6px; margin-top: 10px; border-top: 1px solid rgba(141,190,210,.09); padding-top: 9px; color: #7795a6; font-size: 8px; }.validation-footer strong { color: var(--teal); font-size: 11px; margin-left: auto; font-variant-numeric: tabular-nums; }.validation-status { color: #9ce6db; font-weight: 800; letter-spacing: .1em; font-size: 7px; }.validation-note { font-size: 8px; color: #6f8b9c; line-height: 1.5; margin: 8px 0 0; }
.science-panel { padding: 0; overflow: hidden; }.science-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; }.science-panel summary::-webkit-details-marker { display: none; }.science-panel summary b { display: block; margin-top: 3px; font-size: 13px; font-weight: 650; }.summary-chevron { color: var(--teal); font-size: 18px; transition: transform .2s; }.science-panel[open] .summary-chevron { transform: rotate(180deg); }
.science-content { padding: 0 15px 15px; }.science-lead { color: #9bb6c4; font-size: 9px; line-height: 1.6; margin: 0 0 12px; }.equation-block { border-top: 1px solid rgba(141,190,210,.1); padding: 9px 0; }.equation-block span { display: block; color: #73a6b6; font-size: 7px; font-weight: 800; letter-spacing: .13em; margin-bottom: 6px; }.equation-block code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #c7e5e8; font-size: 9px; line-height: 1.6; white-space: normal; }.equation-block small { display: block; color: #6f8b9b; font-size: 7px; margin-top: 4px; line-height: 1.45; }.science-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 12px; }.science-tags span { color: #91b9c3; border: 1px solid rgba(98,228,219,.17); background: rgba(98,228,219,.06); border-radius: 4px; padding: 4px 5px; font-size: 6px; letter-spacing: .07em; }.limitations { background: rgba(4,14,22,.4); border-radius: 7px; padding: 10px; }.limitations b { color: #b9d3df; font-size: 8px; }.limitations ul { padding-left: 14px; margin: 6px 0 0; color: #7894a4; font-size: 8px; line-height: 1.55; }.limitations li + li { margin-top: 4px; }
.disclaimer { color: #536f80; font-size: 7px; line-height: 1.4; text-align: center; margin: 1px 5px 0; }
.footer-line { display: flex; justify-content: space-between; color: #456174; font-size: 7px; letter-spacing: .14em; padding: 15px 2px 0; }
input[type="range"] { accent-color: var(--teal); }
.embed .topbar, .embed .footer-line { display: none; }.embed .workspace { padding-top: 0; }.embed .app-shell { padding: 0; }.embed .control-column { display: none; }.embed .workspace { display: block; }.embed .scene-host { height: 100vh; min-height: 320px; }.embed .readout-grid { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 60px; margin: 0; }.embed .readout-card { background: rgba(7,24,36,.82); backdrop-filter: blur(7px); }
@media (max-width: 1120px) { .workspace { grid-template-columns: minmax(0,1fr) 320px; }.readout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.scene-host { min-height: 480px; }.annotation small { max-width: 120px; } }
@media (max-width: 820px) { .app-shell { padding: 0 12px 12px; }.topbar { height: 66px; }.workspace { display: flex; flex-direction: column; gap: 12px; }.stage-column, .control-column { width: 100%; }.scene-host { height: 54vh; min-height: 380px; max-height: 620px; }.control-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }.controls-panel { grid-row: span 2; }.science-panel, .disclaimer { grid-column: 1 / -1; }.readout-grid { margin-top: 9px; }.footer-line { padding-top: 12px; }.footer-line span:nth-child(2) { display: none; } }
@media (max-width: 560px) { .app-shell { padding: 0 8px 10px; }.topbar { height: 60px; }.brand-mark { width: 30px; height: 30px; }.brand-lockup { gap: 9px; }.eyebrow { font-size: 8px; }.topbar-meta { display: none; }h1 { font-size: 16px; }.topbar-right { gap: 8px; }.live-pill { padding: 6px 8px; font-size: 8px; }.workspace { padding-top: 8px; }.scene-host { height: 50vh; min-height: 330px; max-height: 460px; }.scene-topline { top: 10px; left: 9px; right: 9px; }.scene-coords { display: none; }.scene-tag { font-size: 7px; padding: 6px 7px; }.annotation { padding: 5px 6px; }.annotation b { font-size: 6px; }.annotation small { display: none; }.annotation-wind { top: 18%; left: 3%; }.annotation-streak { top: 32%; right: 3%; }.annotation-roll { bottom: 24%; left: 3%; }.annotation-line { width: 20px; }.annotation-roll .annotation-line { width: 25px; }.scene-bottom-left { bottom: 9px; left: 9px; }.scene-note { font-size: 6px; }.scene-bottom-right { bottom: 8px; right: 8px; gap: 4px; }.scene-tool { font-size: 7px; padding: 6px 7px; }.transport-bar { flex-wrap: wrap; gap: 8px; padding: 9px; }.transport-controls { flex: 1; }.speed-control { max-width: none; flex: 1 1 55%; order: 2; }.quality-control { order: 3; }.quality-control .micro-label { display: none; }.readout-grid { gap: 6px; }.readout-card { min-height: 84px; padding: 10px 9px 8px; }.readout-label { font-size: 7px; white-space: normal; min-height: 17px; }.readout-value { margin-top: 7px; }.readout-value strong { font-size: 21px; }.readout-foot { margin-top: 8px; font-size: 6px; }.control-column { display: flex; }.panel { padding: 13px; }.controls-panel { order: 1; }.metrics-panel { order: 2; }.validation-panel { order: 3; }.science-panel { order: 4; }.disclaimer { order: 5; }.preset-button { padding: 8px 5px; }.preset-button b { font-size: 7px; }.preset-button small { font-size: 6px; }.control-heading label { font-size: 9px; }.footer-line { font-size: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
