:root {
  color-scheme: dark;
  --bg: #050b13;
  --panel: #0b1521;
  --panel-2: #0e1b29;
  --panel-3: #122233;
  --line: rgba(126, 166, 193, .16);
  --line-strong: rgba(126, 166, 193, .28);
  --text: #e8f1f7;
  --muted: #91a6b6;
  --muted-2: #627a8c;
  --cyan: #62d9d1;
  --blue: #63b8e8;
  --amber: #f0bd70;
  --violet: #a99af3;
  --green: #72d5a8;
  --danger: #ee8b8b;
  --radius: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; overflow: hidden; font-size: 13px; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 30% 0%, rgba(20, 64, 91, .18), transparent 45%), var(--bg); }
.topbar { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(6, 14, 23, .92); position: relative; z-index: 5; }
.brand-lockup, .topbar-right { display: flex; align-items: center; }
.brand-lockup { gap: 11px; }
.brand-mark { width: 28px; height: 28px; border: 1px solid rgba(98,217,209,.48); border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-8deg); background: rgba(36, 115, 126, .12); }
.brand-mark span { width: 3px; border-radius: 3px; background: var(--cyan); display: block; }
.brand-mark span:nth-child(1) { height: 9px; opacity: .55; }.brand-mark span:nth-child(2) { height: 16px; }.brand-mark span:nth-child(3) { height: 12px; opacity: .75; }
.brand-name { font-size: 11px; font-weight: 800; letter-spacing: .14em; }.brand-name span { color: #6c8799; font-weight: 600; }
.brand-subtitle { margin-top: 3px; color: #62798a; font-size: 8px; letter-spacing: .19em; font-weight: 700; }
.topbar-right { gap: 17px; }
.live-indicator, .seed-label { font-size: 9px; letter-spacing: .12em; font-weight: 700; color: #a3b7c5; }
.live-indicator { display: flex; align-items: center; gap: 7px; }.live-indicator i, .live-pill i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(114,213,168,.8); }
.seed-label { color: #60788b; }
.icon-button { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: #a8bfce; cursor: pointer; font-size: 12px; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 386px; }
.visual-column { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.scene-stage { flex: 1; min-height: 440px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 48% 46%, #0b1e30 0%, #06111e 46%, #030912 100%); }
.scene-mount { position: absolute; inset: 0; z-index: 0; }
.scene-mount canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-vignette { pointer-events: none; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,9,17,.72) 0%, rgba(3,9,17,.25) 32%, transparent 63%), linear-gradient(0deg, rgba(3,9,17,.6), transparent 23%, transparent 72%, rgba(3,9,17,.28)); }
.scene-heading { position: absolute; z-index: 2; top: 34px; left: 34px; max-width: 330px; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #91b8c9; font-size: 8px; letter-spacing: .18em; font-weight: 800; }
.eyebrow-dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px rgba(98,217,209,.7); }
.scene-heading h1 { margin: 14px 0 8px; font-size: clamp(28px, 3.1vw, 43px); line-height: .98; letter-spacing: -.055em; font-weight: 750; }
.scene-heading h1 em { font-style: normal; color: #76d7d4; }
.scene-heading p { margin: 0; color: #91a9b8; font-size: 11px; line-height: 1.55; max-width: 265px; }
.scene-legend { position: absolute; z-index: 2; left: 34px; bottom: 100px; display: flex; flex-direction: column; gap: 9px; color: #a1b4c1; font-size: 9px; letter-spacing: .03em; pointer-events: none; }
.scene-legend > div { display: flex; align-items: center; gap: 8px; }
.legend-swatch { width: 15px; height: 3px; border-radius: 3px; display: inline-block; }
.legend-swatch.plasma { background: #5ddbd3; box-shadow: 0 0 8px #5ddbd3; }.legend-swatch.signal { background: #f2bd70; }.legend-swatch.field { background: #458cb6; opacity: .75; }
.scene-caption { position: absolute; right: 27px; top: 29px; z-index: 2; font-size: 8px; letter-spacing: .16em; color: #a1bdcb; border: 1px solid rgba(117, 174, 198, .25); background: rgba(4, 16, 27, .58); padding: 8px 11px; border-radius: 4px; pointer-events: none; }
.scene-caption span { color: var(--cyan); padding: 0 4px; }
.scene-status { position: absolute; right: 27px; bottom: 103px; z-index: 2; font-size: 8px; color: #829aaa; letter-spacing: .13em; display: flex; align-items: center; gap: 7px; pointer-events: none; }
.status-dot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px rgba(114,213,168,.6); }
.scene-status.warning .status-dot { background: var(--amber); box-shadow: 0 0 8px rgba(240,189,112,.6); }
.scene-tools { position: absolute; z-index: 3; right: 22px; bottom: 18px; display: flex; gap: 6px; }
.tool-button { border: 1px solid rgba(126,166,193,.23); border-radius: 6px; background: rgba(7,19,31,.82); color: #9db5c4; font-size: 8px; font-weight: 750; letter-spacing: .1em; padding: 8px 10px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.tool-button:hover { border-color: rgba(98,217,209,.55); color: #e2f7f7; background: rgba(13,39,52,.92); }
.tool-icon { color: var(--cyan); margin-right: 4px; font-size: 12px; vertical-align: -1px; }
.transport-bar { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 17px; height: 51px; border: 1px solid rgba(125,162,187,.24); border-radius: 9px; background: rgba(6,17,28,.91); backdrop-filter: blur(18px); display: flex; align-items: center; padding: 0 9px; gap: 9px; box-shadow: 0 8px 30px rgba(0,0,0,.22); }
.transport-main { width: 31px; height: 31px; border: 0; border-radius: 7px; background: #b4e9e4; color: #071a22; font-weight: 900; cursor: pointer; font-size: 14px; }
.transport-main:hover { background: #d2fbf5; }.transport-step, .transport-reset { height: 29px; border: 1px solid rgba(125,162,187,.2); border-radius: 6px; background: rgba(255,255,255,.025); color: #a8bdca; cursor: pointer; font-size: 8px; font-weight: 800; letter-spacing: .08em; padding: 0 9px; }
.transport-step span { font-size: 15px; color: var(--cyan); vertical-align: -1px; margin-left: 4px; }.transport-reset { font-size: 17px; padding: 0 8px; color: #90a7b7; }
.transport-divider { width: 1px; height: 25px; background: var(--line-strong); margin: 0 5px; }
.time-readout { min-width: 90px; display: flex; flex-direction: column; gap: 3px; }.time-readout span, .speed-control label { font-size: 7px; letter-spacing: .13em; color: #708a9c; font-weight: 800; }.time-readout strong { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.speed-control { margin-left: auto; display: grid; grid-template-columns: auto 76px auto; align-items: center; gap: 8px; }.speed-control output { font-size: 9px; color: var(--cyan); min-width: 30px; font-variant-numeric: tabular-nums; }
input[type="range"] { accent-color: var(--cyan); cursor: pointer; }
.speed-control input { width: 76px; height: 3px; }
.context-overlay { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; background: rgba(2,8,14,.78); backdrop-filter: blur(8px); }.context-overlay[hidden] { display: none; }
.context-card { padding: 20px 24px; border: 1px solid var(--line-strong); background: #0d1c29; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 290px; text-align: center; }.context-card strong { font-size: 14px; }.context-card span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.under-stage { flex: 0 0 90px; display: grid; grid-template-columns: 1fr 220px; gap: 22px; align-items: center; padding: 13px 27px; background: #08121d; border-top: 1px solid var(--line); }
.phenomenon-note, .scale-note { display: flex; gap: 12px; align-items: flex-start; }.note-index { color: var(--cyan); font-size: 10px; font-weight: 800; padding-top: 1px; }.phenomenon-note strong, .scale-note strong { display: block; font-size: 8px; letter-spacing: .14em; color: #a5bdc9; }.phenomenon-note p, .scale-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; color: #7890a1; max-width: 610px; }.scale-note { border-left: 1px solid var(--line); padding-left: 18px; }.scale-mark { width: 17px; height: 17px; border: 1px solid rgba(98,217,209,.55); border-radius: 50%; flex: 0 0 auto; position: relative; }.scale-mark:after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--cyan); opacity: .6; }
.control-column { min-width: 0; min-height: 0; overflow-y: auto; background: linear-gradient(180deg, #0b1622 0%, #09131e 100%); scrollbar-width: thin; scrollbar-color: #2c4558 transparent; }
.panel-section { padding: 20px 19px 17px; border-bottom: 1px solid var(--line); }.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }.section-kicker { display: block; font-size: 7px; font-weight: 850; letter-spacing: .18em; color: #668296; margin-bottom: 5px; }.section-heading h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }.tiny-tag { color: #6c899b; font-size: 7px; letter-spacing: .12em; border: 1px solid var(--line); padding: 4px 6px; border-radius: 4px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.preset-button { min-width: 0; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); padding: 9px 8px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: .18s ease; }.preset-button:hover { border-color: rgba(98,217,209,.42); background: rgba(98,217,209,.045); }.preset-button.active { border-color: rgba(98,217,209,.65); background: linear-gradient(140deg, rgba(39,112,115,.2), rgba(14,35,48,.62)); box-shadow: inset 0 0 0 1px rgba(98,217,209,.06); }.preset-symbol { font-size: 15px; height: 19px; color: #80a2b8; }.patch-symbol { color: var(--cyan); }.storm-symbol { color: var(--amber); }.preset-button strong { font-size: 9px; font-weight: 750; }.preset-button small { font-size: 7px; color: #718a9b; }
.parameter-section { padding-top: 18px; }.parameter-list { display: flex; flex-direction: column; gap: 13px; }.parameter { min-width: 0; }.parameter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }.parameter label { color: #b4c6d1; font-size: 9px; font-weight: 550; }.parameter output { color: #74d9d3; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }.parameter input { display: block; width: 100%; height: 4px; margin: 0; accent-color: var(--cyan); }.range-ends { display: flex; justify-content: space-between; margin-top: 4px; color: #60798b; font-size: 7px; }
.telemetry-section { padding-top: 18px; }.telemetry-flags { display: flex; align-items: center; gap: 7px; }.live-pill { color: #7b9aab; font-size: 7px; font-weight: 800; letter-spacing: .12em; display: flex; align-items: center; gap: 6px; padding-bottom: 2px; }.live-pill i { width: 5px; height: 5px; }.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.metric-card { border: 1px solid rgba(126,166,193,.13); background: rgba(255,255,255,.018); border-radius: 7px; padding: 10px 10px 9px; min-width: 0; }.metric-primary { grid-column: span 2; background: linear-gradient(105deg, rgba(31,85,92,.25), rgba(15,32,47,.55)); border-color: rgba(98,217,209,.24); }.metric-label { font-size: 7px; letter-spacing: .12em; font-weight: 800; color: #7791a2; }.metric-label span { color: var(--cyan); margin-left: 4px; }.metric-value { font-size: 22px; font-weight: 700; letter-spacing: -.04em; margin-top: 6px; color: #e2f1f6; font-variant-numeric: tabular-nums; line-height: 1.1; }.metric-primary .metric-value { font-size: 28px; color: #86e2da; }.metric-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; color: #6d8798; font-size: 6px; font-weight: 800; letter-spacing: .1em; }.metric-unit { color: #91aab9; }.metric-bar { margin-top: 8px; height: 3px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }.metric-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #55c8c5, #f0bd70); border-radius: 4px; transition: width .25s; }
.validation-card { margin-top: 9px; padding: 10px 11px 9px; border: 1px solid rgba(126,166,193,.15); border-radius: 7px; background: rgba(3,12,20,.32); }.validation-top { display: flex; justify-content: space-between; font-size: 7px; letter-spacing: .13em; font-weight: 850; color: #7d97a8; }.validation-check { color: var(--green); }.validation-card > strong { display: block; margin-top: 8px; font-size: 9px; font-weight: 700; }.validation-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 9px; }.validation-values div { display: flex; flex-direction: column; gap: 4px; }.validation-values small { color: #637d8f; font-size: 6px; letter-spacing: .12em; font-weight: 800; }.validation-values b { font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; color: #cce0e8; }.validation-values div:last-child b { color: var(--green); }.validation-card p { margin: 8px 0 0; color: #6d8595; font-size: 8px; line-height: 1.45; }
.science-section { padding: 0 19px; border-bottom: 1px solid var(--line); }.science-section details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }.science-section summary::-webkit-details-marker { display: none; }.science-section summary strong { display: block; font-size: 12px; font-weight: 650; }.details-plus { width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--cyan); font-size: 14px; transition: transform .2s; }.science-section details[open] .details-plus { transform: rotate(45deg); }.science-content { padding: 0 0 17px; color: #93a9b7; }.science-content h3 { font-size: 9px; color: #d4e2e9; margin: 12px 0 5px; }.science-content p, .science-content li { font-size: 8px; line-height: 1.55; color: #8299a8; }.science-content p { margin: 0 0 6px; }.science-content ul { margin: 5px 0 0; padding-left: 16px; }.science-content li { margin: 3px 0; }.equation { border: 1px solid rgba(126,166,193,.13); background: rgba(255,255,255,.025); padding: 8px 10px; border-radius: 5px; color: #9ee4df; font: 11px Georgia, serif; letter-spacing: .02em; }.model-caveat { margin-top: 10px; padding: 8px 9px; border-left: 2px solid var(--amber); background: rgba(240,189,112,.055); color: #b6a78f; font-size: 8px; line-height: 1.5; }
.panel-footer { padding: 13px 19px 18px; color: #597182; font-size: 7px; line-height: 1.5; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0,5,10,.72); backdrop-filter: blur(8px); }.modal-backdrop[hidden] { display: none; }.help-modal { width: min(340px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 12px; padding: 22px; background: #0d1a27; box-shadow: 0 20px 80px rgba(0,0,0,.4); position: relative; }.help-modal h2 { margin: 0 0 17px; font-size: 20px; }.modal-close { position: absolute; right: 13px; top: 11px; border: 0; background: transparent; color: #9db4c2; font-size: 22px; cursor: pointer; }.shortcut-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: #a8bdca; font-size: 11px; }.shortcut-row kbd { min-width: 52px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 7px; text-align: center; background: rgba(255,255,255,.03); color: var(--cyan); font-size: 9px; }.help-modal p { margin: 16px 0 0; color: #718b9d; font-size: 9px; }
body.embed .topbar, body.embed .under-stage, body.embed .scene-heading, body.embed .scene-legend { display: none; }
body.embed .workspace { grid-template-columns: minmax(0,1fr) 340px; }
body.embed .scene-stage { min-height: 100vh; }
@media (max-width: 1050px) {
  .workspace { grid-template-columns: minmax(0,1fr) 350px; }
  .panel-section { padding-left: 15px; padding-right: 15px; }
  .science-section { padding-left: 15px; padding-right: 15px; }
  .scene-heading { left: 25px; }
  .scene-legend { left: 25px; }
  .under-stage { padding-left: 22px; padding-right: 22px; grid-template-columns: 1fr 190px; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { min-height: 100dvh; }
  .topbar { height: 52px; flex-basis: 52px; padding: 0 13px; }
  .brand-mark { width: 25px; height: 25px; }.brand-name { font-size: 9px; }.brand-subtitle { font-size: 7px; }.topbar-right { gap: 10px; }.seed-label { display: none; }.live-indicator { font-size: 8px; }
  .workspace { display: flex; flex-direction: column; min-height: 0; }
  .visual-column { border-right: 0; }
  .scene-stage { flex: none; height: min(58dvh, 520px); min-height: 390px; }
  .scene-heading { top: 20px; left: 17px; max-width: 245px; }.scene-heading h1 { font-size: 28px; margin-top: 10px; }.scene-heading p { font-size: 9px; max-width: 220px; }.eyebrow { font-size: 7px; }
  .scene-caption { right: 12px; top: 15px; font-size: 6px; padding: 6px 7px; max-width: 132px; text-align: center; }.scene-legend { left: 17px; bottom: 80px; gap: 6px; font-size: 7px; }.scene-status { right: 12px; bottom: 85px; font-size: 6px; }
  .transport-bar { left: 10px; right: 10px; bottom: 10px; height: 47px; gap: 6px; padding: 0 6px; }.transport-main { width: 29px; height: 29px; }.transport-step, .transport-reset { height: 27px; padding: 0 7px; }.transport-divider { margin: 0 2px; }.time-readout { min-width: 75px; }.time-readout strong { font-size: 10px; }.speed-control { grid-template-columns: auto 54px auto; gap: 5px; }.speed-control input { width: 54px; }.speed-control label { font-size: 6px; }.speed-control output { font-size: 8px; min-width: 26px; }
  .scene-tools { top: auto; right: 11px; bottom: 65px; gap: 4px; }.tool-button { font-size: 6px; padding: 6px 7px; }.tool-icon { font-size: 10px; }
  .under-stage { flex: none; min-height: 75px; padding: 11px 15px; grid-template-columns: 1fr; gap: 8px; }.scale-note { display: none; }.phenomenon-note p { font-size: 8px; max-width: none; }
  .control-column { overflow: visible; }.panel-section { padding: 16px 15px 14px; }.parameter-list { gap: 12px; }.parameter label { font-size: 8px; }.parameter output { font-size: 8px; }.metric-value { font-size: 20px; }.metric-primary .metric-value { font-size: 25px; }
  .science-section { padding: 0 15px; }.panel-footer { padding: 12px 15px 20px; }
  body.embed .workspace { display: flex; }.body.embed .scene-stage { height: 100dvh; min-height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
