:root {
  color-scheme: dark;
  --bg: #080d14;
  --panel: #0d141d;
  --panel-2: #111b26;
  --line: rgba(151, 177, 199, .14);
  --line-strong: rgba(151, 177, 199, .23);
  --text: #e8edf2;
  --muted: #91a0af;
  --dim: #647383;
  --accent: #f28a4c;
  --accent-bright: #ffb16e;
  --cyan: #73c9df;
  --green: #71d5aa;
  --radius: 14px;
  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; width: 100%; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; overflow: hidden; }
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 24% 18%, rgba(28,49,66,.24), transparent 45%), var(--bg); }
.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(8,13,20,.94); z-index: 5; }
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 29px; height: 29px; position: relative; display: flex; align-items: end; justify-content: center; gap: 2px; padding: 4px 3px; border: 1px solid rgba(242,138,76,.38); border-radius: 8px; background: linear-gradient(145deg, rgba(242,138,76,.15), rgba(242,138,76,.02)); overflow: hidden; }
.brand-mark span { display: block; width: 5px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #ffc184, #d95729); box-shadow: 0 0 9px rgba(255,114,54,.35); }
.brand-mark span:nth-child(1) { height: 10px; }.brand-mark span:nth-child(2) { height: 18px; }.brand-mark span:nth-child(3) { height: 13px; }
.eyebrow, .section-kicker, .stage-kicker { color: #8494a5; font-size: 9px; font-weight: 800; letter-spacing: .17em; line-height: 1.3; }
.eyebrow-dot { display: inline-block; width: 3px; height: 3px; margin: 0 5px 2px; border-radius: 50%; background: var(--accent); }
.brand-title { margin-top: 3px; font-size: 15px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.brand-subtitle { color: #8391a0; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.live-status, .model-tag { display: inline-flex; align-items: center; gap: 7px; color: #9aabba; font-size: 9px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.live-status i { width: 6px; height: 6px; border-radius: 50%; background: #6bd5a4; box-shadow: 0 0 10px rgba(107,213,164,.65); }
.model-tag { border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 8px; color: #a4b2bf; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; min-height: 0; flex: 1; height: calc(100vh - 68px); }
.stage-column { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 14px 8px 18px; gap: 9px; }
.stage { position: relative; flex: 1 1 auto; min-height: 370px; overflow: hidden; border: 1px solid rgba(146,173,195,.18); border-radius: 15px; background: radial-gradient(ellipse at 54% 48%, #182430 0%, #0b131c 53%, #080d14 100%); isolation: isolate; }
.scene-container { position: absolute; inset: 0; z-index: 0; }
.scene-canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5,9,14,.4), transparent 24%, transparent 72%, rgba(5,9,14,.4)), linear-gradient(90deg, rgba(5,9,14,.28), transparent 25%, transparent 75%, rgba(5,9,14,.22)); }
.stage-heading { position: absolute; z-index: 2; top: 21px; left: 22px; pointer-events: none; }
.stage-kicker { color: #b0bdc8; font-size: 9px; letter-spacing: .18em; }
.stage-title { margin-top: 6px; font-size: clamp(19px, 2.1vw, 27px); line-height: 1.1; font-weight: 760; letter-spacing: -.04em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.stage-subtitle { margin-top: 6px; color: #9baab7; font-size: 10px; letter-spacing: .02em; }
.stage-actions { position: absolute; z-index: 3; top: 18px; right: 18px; display: flex; gap: 7px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(166,190,208,.22); border-radius: 9px; background: rgba(9,16,24,.72); color: #c7d2dc; cursor: pointer; backdrop-filter: blur(8px); transition: border-color .18s, background .18s, transform .18s; }
.icon-button:hover { border-color: rgba(242,138,76,.62); background: rgba(30,37,43,.92); transform: translateY(-1px); }
.camera-glyph { font-size: 19px; line-height: 1; }.download-glyph { font-size: 20px; line-height: 1; }.icon-button span:last-child { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.annotation { position: absolute; z-index: 2; display: flex; align-items: center; gap: 6px; pointer-events: none; color: rgba(216,228,237,.82); font-size: 8px; font-weight: 800; letter-spacing: .15em; white-space: nowrap; text-shadow: 0 1px 6px #05090e; }
.annotation-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 8px rgba(255,157,86,.7); }
.annotation-line { width: 17px; height: 1px; background: rgba(255,177,110,.6); }
.annotation-gas .annotation-dot { background: #ffc27e; }.annotation-wave .annotation-dot { background: var(--cyan); box-shadow: 0 0 8px rgba(115,201,223,.7); }.annotation-wave .annotation-line { background: rgba(115,201,223,.65); }
.annotation-lake { top: 31%; left: 59%; }.annotation-plug { top: 56%; left: 59%; }.annotation-gas { top: 75%; left: 36%; }.annotation-wave { top: 68%; left: 66%; }
.stage-legend { position: absolute; z-index: 2; right: 18px; bottom: 19px; display: flex; align-items: center; gap: 13px; padding: 8px 10px; border: 1px solid rgba(160,184,202,.13); border-radius: 8px; background: rgba(7,13,20,.62); backdrop-filter: blur(8px); color: #9cabb8; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.stage-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }.stage-legend i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; }.legend-lava { background: #ff6a2b; box-shadow: 0 0 7px #ff6a2b; }.legend-gas { background: #ffc17a; }.legend-wave { background: #70cce3; }
.stage-bottom-note { position: absolute; z-index: 2; left: 20px; bottom: 22px; color: #81919f; font-size: 8px; font-weight: 800; letter-spacing: .13em; }.pulse-dot { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px rgba(242,138,76,.7); }
.scene-fallback { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 48%, rgba(91,44,25,.25), transparent 44%), #0a111a; }.scene-fallback[hidden] { display: none; }.fallback-orb { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid rgba(242,138,76,.35); border-radius: 50%; color: var(--accent-bright); font-size: 29px; box-shadow: 0 0 35px rgba(242,138,76,.12); }.scene-fallback strong { font-size: 16px; }.scene-fallback p { max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.6; }.scene-fallback code { color: #d39a74; font-size: 10px; }
.transport-bar { flex: 0 0 54px; display: flex; align-items: center; gap: 18px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(13,20,29,.9); }
.transport-controls { display: flex; align-items: center; gap: 7px; }.primary-control, .secondary-control { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .08em; transition: .18s; }.primary-control { min-width: 91px; padding: 0 13px; border: 1px solid rgba(242,138,76,.55); background: linear-gradient(135deg, #b95c31, #7f351f); color: #fff4e9; box-shadow: 0 3px 15px rgba(190,82,41,.16); }.primary-control:hover { filter: brightness(1.14); }.play-icon { font-size: 12px; }.secondary-control { padding: 0 10px; border: 1px solid var(--line-strong); background: #121c27; color: #aebdca; }.secondary-control:hover { border-color: rgba(115,201,223,.45); color: #e4edf4; }.secondary-control span { color: #e1a071; font-size: 13px; }
.time-readout { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); }.readout-label { color: var(--dim); font-size: 8px; font-weight: 800; letter-spacing: .15em; }.time-readout strong { color: #e4edf4; font-variant-numeric: tabular-nums; font-size: 15px; }.time-readout small { color: #8999a8; font-size: 9px; font-weight: 500; }
.transport-hint { margin-left: auto; color: #718191; font-size: 9px; white-space: nowrap; }.transport-hint kbd { padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 4px; color: #aab9c7; font-family: inherit; font-size: 8px; }.transport-hint span { margin: 0 6px; color: #4c5b69; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 9px; flex: 0 0 156px; min-height: 138px; }.panel-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: rgba(13,20,29,.88); padding: 12px 14px; }.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }.card-heading h2 { margin: 3px 0 0; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }.section-kicker { font-size: 8px; letter-spacing: .15em; }.signal-unit { color: #718394; font-size: 8px; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }.wave-card { display: flex; flex-direction: column; }.wave-card canvas { width: 100%; height: 83px; display: block; margin-top: 3px; }.wave-axis { display: flex; justify-content: space-between; color: #647587; font-size: 7px; font-weight: 800; letter-spacing: .12em; }.validation-card { display: flex; flex-direction: column; }.verified-mark { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .1em; }.validation-values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 13px; }.validation-values div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }.validation-values span { color: #8293a3; font-size: 8px; line-height: 1.25; }.validation-values strong { color: #e8edf2; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }.validation-values small { color: #8797a5; font-size: 9px; font-weight: 500; }.validation-diff strong { color: var(--green); }.validation-footnote { margin: auto 0 0; color: #758596; font-size: 8px; line-height: 1.45; }
.disclaimer { flex: 0 0 12px; margin: 0 0 0 3px; color: #5f6d7b; font-size: 8px; line-height: 1.2; }
.control-panel { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px 12px; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(15,23,33,.98), rgba(10,16,24,.99)); scrollbar-width: thin; scrollbar-color: #2b3947 transparent; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; }.illustrative-chip { padding: 4px 6px; border: 1px solid rgba(242,138,76,.27); border-radius: 5px; color: #e2a176; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.panel-intro { margin: 14px 0 17px; }.panel-intro h1 { margin: 0; font-size: 25px; line-height: 1.08; letter-spacing: -.055em; font-weight: 770; }.panel-intro h1 em { color: #f3a16a; font-style: normal; }.panel-intro p { margin: 9px 0 0; color: #8c9baa; font-size: 11px; line-height: 1.5; max-width: 285px; }
.control-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #a1b0bd; font-size: 8px; font-weight: 850; letter-spacing: .15em; }.tiny-info { color: #617181; font-size: 8px; letter-spacing: .08em; }
.preset-section { padding: 12px 0 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }.preset-button { min-width: 0; min-height: 53px; display: flex; align-items: center; gap: 6px; padding: 7px 6px; border: 1px solid rgba(144,168,187,.15); border-radius: 8px; background: rgba(18,28,39,.78); text-align: left; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }.preset-button:hover { border-color: rgba(242,138,76,.45); transform: translateY(-1px); }.preset-button.active { border-color: rgba(242,138,76,.65); background: linear-gradient(135deg, rgba(143,71,39,.3), rgba(25,32,40,.95)); box-shadow: inset 0 0 0 1px rgba(242,138,76,.08); }.preset-button span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 3px; }.preset-button strong { color: #dbe4ec; font-size: 9px; line-height: 1.1; white-space: nowrap; }.preset-button small { color: #7e8d9b; font-size: 7px; line-height: 1.1; white-space: nowrap; }.preset-icon { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.04); color: #b6c1ca; font-size: 15px; }.resonant-icon { color: #ffad70; }.gas-icon { color: #ffc779; }
.parameter-section { padding: 15px 0 13px; border-bottom: 1px solid var(--line); }.slider-control { margin: 0 0 12px; }.slider-control:last-child { margin-bottom: 0; }.slider-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }.slider-heading label { color: #c0cbd5; font-size: 10px; font-weight: 600; }.slider-heading output { color: #f2a06a; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 16px; margin: 3px 0 0; padding: 0; background: transparent; cursor: pointer; }.slider-control input[type="range"]::-webkit-slider-runnable-track, .speed-control input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 5px; background: transparent; }.slider-control input[type="range"]::-moz-range-track, .speed-control input[type="range"]::-moz-range-track { height: 3px; border-radius: 5px; background: transparent; }.slider-control input[type="range"]::-webkit-slider-thumb, .speed-control input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 2px solid #f6b07c; border-radius: 50%; background: #1b2631; box-shadow: 0 0 0 3px rgba(242,138,76,.11); }.slider-control input[type="range"]::-moz-range-thumb, .speed-control input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #f6b07c; border-radius: 50%; background: #1b2631; box-shadow: 0 0 0 3px rgba(242,138,76,.11); }.slider-limits { display: flex; justify-content: space-between; color: #657585; font-size: 7px; letter-spacing: .02em; }
.readouts-section { padding: 14px 0 13px; border-bottom: 1px solid var(--line); }.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.readout-tile { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 9px 9px 8px; border: 1px solid rgba(143,167,186,.12); border-radius: 8px; background: rgba(18,28,39,.62); }.readout-tile > span { color: #788a9b; font-size: 7px; font-weight: 850; letter-spacing: .12em; }.readout-tile strong { color: #e9eff4; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; white-space: nowrap; }.readout-tile strong small { color: #91a1af; font-size: 9px; font-weight: 500; letter-spacing: 0; }.readout-tile i { color: #637485; font-size: 7px; font-style: normal; }
.speed-control { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }.speed-control input[type="range"] { margin-top: 6px; }.speed-control input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.science-panel { margin-top: 12px; border: 1px solid rgba(115,201,223,.16); border-radius: 9px; background: rgba(15,30,39,.43); }.science-panel summary { display: flex; align-items: center; gap: 9px; padding: 11px 10px; list-style: none; cursor: pointer; }.science-panel summary::-webkit-details-marker { display: none; }.science-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(115,201,223,.1); color: var(--cyan); font-size: 15px; }.science-panel summary > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }.science-panel summary strong { font-size: 10px; }.science-panel summary small { color: #7e91a1; font-size: 8px; }.summary-chevron { margin-left: auto; color: #8b9ba9; font-size: 15px; transition: transform .2s; }.science-panel[open] .summary-chevron { transform: rotate(180deg); }.science-content { padding: 0 11px 12px; border-top: 1px solid rgba(115,201,223,.1); }.science-content h3 { margin: 12px 0 5px; color: #d6e1e9; font-size: 10px; }.science-content p, .science-content li { color: #8999a7; font-size: 9px; line-height: 1.55; }.science-content p { margin: 5px 0 7px; }.science-content ul { padding-left: 15px; margin: 5px 0 8px; }.science-content li { margin: 4px 0; }.equation { overflow-wrap: anywhere; margin: 7px 0; padding: 8px 9px; border: 1px solid rgba(115,201,223,.13); border-radius: 6px; background: rgba(5,13,20,.48); color: #b7dce5; font-family: Georgia, serif; font-size: 12px; line-height: 1.5; }.science-note { margin-top: 10px; padding: 8px; border-left: 2px solid #d98a54; background: rgba(217,138,84,.07); color: #c19a7f; font-size: 8px; line-height: 1.5; }
.panel-footer { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: #5f6f7e; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
body.embed .topbar, body.embed .disclaimer { display: none; }body.embed .workspace { height: 100vh; }.embed .stage-column { padding-top: 10px; }
@media (max-width: 1120px) { .workspace { grid-template-columns: minmax(0,1fr) 330px; }.control-panel { padding-left: 15px; padding-right: 15px; }.lower-grid { grid-template-columns: minmax(0,1fr); flex-basis: 160px; }.validation-card { display: none; }.transport-hint { display: none; } }
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { min-height: 100vh; }
  .topbar { height: 56px; flex-basis: 56px; padding: 0 13px; }
  .brand-mark { width: 26px; height: 26px; }.brand-title { font-size: 13px; }.brand-subtitle { display: none; }.eyebrow { font-size: 8px; }.topbar-right { gap: 8px; }.live-status { font-size: 8px; }.model-tag { display: none; }
  .workspace { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .stage-column { padding: 9px 9px 7px; gap: 7px; }
  .stage { flex: none; height: min(47vh, 390px); min-height: 300px; border-radius: 11px; }
  .stage-heading { top: 13px; left: 13px; }.stage-title { font-size: 19px; }.stage-subtitle { max-width: 205px; font-size: 8px; }.stage-kicker { font-size: 7px; }.stage-actions { top: 10px; right: 10px; gap: 5px; }.icon-button { width: 30px; height: 30px; }.annotation { font-size: 6px; gap: 4px; }.annotation-line { width: 9px; }.annotation-lake { top: 30%; left: 56%; }.annotation-plug { top: 56%; left: 57%; }.annotation-gas { top: 74%; left: 23%; }.annotation-wave { top: 67%; left: 62%; }.stage-legend { left: 10px; right: auto; bottom: 10px; gap: 8px; padding: 6px 7px; font-size: 6px; }.stage-bottom-note { display: none; }
  .transport-bar { flex: none; min-height: 49px; padding: 0 7px; gap: 8px; }.transport-controls { gap: 5px; }.primary-control, .secondary-control { height: 32px; font-size: 8px; padding: 0 8px; }.primary-control { min-width: 74px; }.time-readout { padding-left: 8px; }.time-readout strong { font-size: 13px; }.lower-grid { display: none; }.disclaimer { font-size: 7px; padding-left: 2px; }
  .control-panel { overflow: visible; padding: 16px 14px 14px; border-top: 1px solid var(--line); border-left: 0; }.panel-intro { margin: 10px 0 14px; }.panel-intro h1 { font-size: 23px; }.panel-intro p { font-size: 10px; }.preset-grid { gap: 7px; }.preset-button { min-height: 56px; padding: 7px; }.preset-button strong { font-size: 9px; }.preset-button small { font-size: 7px; }.parameter-section { padding-top: 13px; }.slider-control { margin-bottom: 12px; }.slider-heading label { font-size: 10px; }.readout-tile { padding: 10px; }.readout-tile strong { font-size: 18px; }.science-panel { margin-top: 12px; }
  .panel-footer { margin-top: 12px; }
  body.embed .workspace { height: 100vh; }.embed .stage-column { padding: 6px; }.embed .stage { height: 48vh; }
}
@media (max-width: 390px) {
  .stage { height: 42vh; min-height: 285px; }.stage-heading { max-width: 205px; }.stage-actions { gap: 4px; }.icon-button { width: 28px; height: 28px; }.annotation-text { letter-spacing: .1em; }.stage-legend { gap: 6px; font-size: 5.7px; }.transport-controls { gap: 4px; }.secondary-control { padding: 0 6px; }.time-readout { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
