:root {
  color-scheme: dark;
  --bg: #081217;
  --panel: #0d1b21;
  --panel-2: #102229;
  --line: rgba(150, 191, 186, 0.13);
  --line-strong: rgba(150, 191, 186, 0.23);
  --text: #e3ece7;
  --muted: #8ca49e;
  --dim: #607871;
  --teal: #68d8c6;
  --teal-bright: #8cf1df;
  --amber: #e7b978;
  --red: #e58f78;
  --radius: 12px;
  --space: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 45% -20%, #16323a 0, transparent 48%), var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
.topbar { height: 64px; padding: 0 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(6, 17, 21, 0.88); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; border: 1px solid rgba(112, 221, 202, .45); border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 3px; transform: rotate(-7deg); }
.brand-mark span { display: block; width: 3px; border-radius: 3px; background: var(--teal); transform: skewY(-25deg); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 12px; opacity: .75; }
.brand-name { font-size: 11px; letter-spacing: .17em; font-weight: 800; }
.brand-name span { margin-left: 8px; color: var(--teal); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.brand-subtitle { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .18em; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.live-indicator, .seed-tag { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.live-indicator { display: flex; align-items: center; gap: 7px; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px rgba(104, 216, 198, .7); }
.seed-tag strong { color: var(--text); margin-left: 6px; font-variant-numeric: tabular-nums; }
.workspace { width: min(100%, 1720px); margin: 0 auto; padding: 20px 24px 14px; display: grid; grid-template-columns: minmax(0, 1fr) 354px; gap: 18px; align-items: start; }
.visual-column { min-width: 0; }
.exhibit-heading { padding: 2px 2px 14px; }
.eyebrow { color: var(--teal); font-size: 9px; font-weight: 750; letter-spacing: .17em; }
h1 { max-width: 850px; margin: 7px 0 6px; color: #edf4ef; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -.045em; font-weight: 680; }
h1 span { color: var(--teal); }
.exhibit-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.scene-frame { position: relative; overflow: hidden; border: 1px solid rgba(128, 184, 175, .2); border-radius: 14px; background: #09181e; box-shadow: 0 16px 50px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.018); }
.scene-topline, .scene-bottomline { position: absolute; z-index: 5; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; pointer-events: none; }
.scene-topline { top: 0; background: linear-gradient(180deg, rgba(6,17,21,.83), rgba(6,17,21,0)); }
.scene-bottomline { bottom: 0; background: linear-gradient(0deg, rgba(6,17,21,.88), rgba(6,17,21,0)); padding-top: 24px; }
.scene-location { color: #b3c9c2; font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.location-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--teal); vertical-align: 1px; }
.scene-divider { color: #56726c; padding: 0 6px; }
.state-chip { border: 1px solid rgba(230, 185, 120, .38); border-radius: 999px; padding: 5px 8px; color: #edc58d; background: rgba(52, 39, 24, .54); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.state-chip.active { border-color: rgba(104, 216, 198, .45); color: var(--teal-bright); background: rgba(14, 64, 60, .56); }
.scene-container { position: relative; width: 100%; height: clamp(360px, 51vh, 530px); overflow: hidden; }
.three-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.annotations { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.scene-annotation { position: absolute; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(136, 210, 194, .28); border-radius: 5px; color: #d3e9df; background: rgba(7, 25, 29, .72); box-shadow: 0 5px 18px rgba(0,0,0,.22); font-size: 8px; font-weight: 750; letter-spacing: .09em; white-space: nowrap; transform: translate(-50%, -100%); transition: opacity .25s ease; }
.scene-annotation b { color: var(--teal); font-size: 9px; }
.scene-annotation.new-route { border-color: rgba(109, 229, 202, .42); }
.scene-annotation.new-route b { color: #8cf1df; }
.scene-fallback, .context-overlay { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: rgba(6, 18, 22, .94); text-align: center; }
.scene-fallback[hidden], .context-overlay[hidden] { display: none; }
.fallback-icon { color: var(--teal); font-size: 36px; }
.scene-fallback strong, .context-overlay strong { font-size: 15px; }
.scene-fallback p, .context-overlay span { max-width: 380px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.context-overlay { background: rgba(6, 18, 22, .86); }
.scene-legend { display: flex; flex-wrap: wrap; gap: 14px; }
.legend-item { display: flex; align-items: center; gap: 6px; color: #a8c0b9; font-size: 8px; letter-spacing: .09em; }
.legend-item i { display: block; width: 14px; height: 3px; border-radius: 2px; }
.legend-water { background: #45c9c0; box-shadow: 0 0 7px rgba(69,201,192,.55); }
.legend-old { background: #a18e65; }
.legend-splay { background: #d5b27b; }
.scene-hint { color: #75928b; font-size: 8px; letter-spacing: .1em; }
.scene-hint span { color: var(--teal); padding: 0 4px; }
.exhibit-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 2px 0; }
.mechanism-strip { display: flex; align-items: center; gap: 10px; }
.mechanism-strip > div:not(.mechanism-arrow) { display: flex; align-items: center; gap: 7px; }
.mechanism-number { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(104,216,198,.24); border-radius: 6px; color: var(--teal); font-size: 9px; font-weight: 800; }
.mechanism-strip b { display: block; color: #c5d7d0; font-size: 8px; letter-spacing: .11em; }
.mechanism-strip small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.mechanism-arrow { color: #52716a; font-size: 13px; }
.footer-note { max-width: 245px; color: #627c75; font-size: 8px; line-height: 1.4; text-align: right; }
.control-column { min-width: 0; max-height: calc(100vh - 82px); overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(16, 36, 43, .97), rgba(10, 25, 31, .98)); box-shadow: 0 16px 40px rgba(0,0,0,.18); scrollbar-width: thin; scrollbar-color: #31544e transparent; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 4px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.control-glyph { color: rgba(104,216,198,.6); font-size: 34px; line-height: 1; }
.section-label { color: #809b93; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.preset-block { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.preset-button { min-height: 32px; display: flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 7px; color: #a6bdb5; background: rgba(255,255,255,.018); cursor: pointer; font-size: 10px; transition: .18s ease; }
.preset-button:hover { border-color: rgba(104,216,198,.45); color: var(--text); }
.preset-button.selected { border-color: rgba(104,216,198,.55); color: #d9f3eb; background: rgba(56, 145, 130, .15); }
.preset-dot { width: 6px; height: 6px; border-radius: 50%; }
.stable-dot { background: #91b68e; }.threshold-dot { background: #e5b777; }.rapid-dot { background: #e48f79; }
.controls-list { padding: 5px 0 7px; }
.control-item { padding: 9px 0 7px; border-bottom: 1px solid rgba(150,191,186,.08); }
.control-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.control-label-row label { color: #d3e0da; font-size: 10px; font-weight: 580; }
.control-label-row output { color: var(--teal-bright); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 16px; margin: 6px 0 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #317c73, #66d7c3); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #317c73, #66d7c3); }
input[type="range"]::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4.5px; appearance: none; -webkit-appearance: none; border: 2px solid #b7fff0; border-radius: 50%; background: #2e897d; box-shadow: 0 0 0 3px rgba(104,216,198,.12); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #b7fff0; border-radius: 50%; background: #2e897d; box-shadow: 0 0 0 3px rgba(104,216,198,.12); }
.range-ends { display: flex; justify-content: space-between; color: #68837b; font-size: 8px; }
.playback-block { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }
.playback-buttons { display: grid; grid-template-columns: 1fr 42px 42px; gap: 7px; }
.primary-button, .icon-button { min-height: 35px; border-radius: 7px; cursor: pointer; transition: .18s ease; }
.primary-button { border: 1px solid rgba(104,216,198,.42); color: #06211e; background: linear-gradient(120deg, #70d9c6, #9cebd9); font-size: 10px; font-weight: 800; box-shadow: 0 5px 14px rgba(65, 185, 164, .13); }
.primary-button:hover { filter: brightness(1.08); }
.button-icon { margin-right: 5px; font-size: 10px; }
.icon-button { border: 1px solid var(--line-strong); color: #c3d8d0; background: rgba(255,255,255,.025); font-size: 15px; }
.icon-button:hover { border-color: rgba(104,216,198,.5); color: var(--teal-bright); }
.speed-row { margin-top: 12px; }
.readout-block { padding: 13px 0 11px; border-bottom: 1px solid var(--line); }
.readout-heading { display: flex; justify-content: space-between; align-items: center; }
.model-tag { color: #d2b17f; font-size: 7px; font-weight: 800; letter-spacing: .1em; border: 1px solid rgba(210,177,127,.24); border-radius: 4px; padding: 3px 5px; }
.scaled-tag { margin-left: 5px; color: #83dcca; border-color: rgba(104,216,198,.24); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.readout-cell { padding: 9px; border: 1px solid rgba(150,191,186,.1); border-radius: 7px; background: rgba(255,255,255,.022); }
.readout-cell span, .readout-footer span { display: block; color: #769189; font-size: 7px; font-weight: 750; letter-spacing: .12em; }
.readout-cell strong { display: block; margin-top: 5px; color: #e3f1e9; font-size: 16px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.flow-share { margin-top: 11px; }
.flow-share-title { display: flex; justify-content: space-between; color: #8da89f; font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.flow-share-title b { color: var(--teal-bright); font-size: 10px; }
.share-track { display: flex; height: 6px; overflow: hidden; margin-top: 7px; border-radius: 4px; background: #263e3c; }
.share-old { height: 100%; background: #9c8961; transition: width .25s ease; }
.share-new { height: 100%; background: linear-gradient(90deg, #3a9f95, #8ce7d5); transition: width .25s ease; }
.share-legend { display: flex; justify-content: space-between; margin-top: 5px; color: #6f8880; font-size: 8px; }
.readout-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(150,191,186,.08); }
.readout-footer b { display: block; margin-top: 4px; color: #c5d8d0; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.utility-row { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 11px; }
.utility-button { min-height: 28px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: #9fb7af; background: rgba(255,255,255,.02); cursor: pointer; font-size: 8px; }
.utility-button:hover { color: var(--teal-bright); border-color: rgba(104,216,198,.45); }
kbd { margin-left: 4px; padding: 1px 4px; border: 1px solid rgba(150,191,186,.2); border-radius: 3px; color: #7b9990; font-size: 7px; }
.status-row { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(150,191,186,.08); color: #6d8b82; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
#status-label[data-state="success"] { color: var(--teal-bright); }
#status-label[data-state="warning"] { color: var(--amber); }
#fps-value { color: #57746c; font-variant-numeric: tabular-nums; }
.science-section { width: min(calc(100% - 48px), 1672px); margin: 4px auto 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 27, 33, .8); overflow: hidden; }
.science-toggle { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.science-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(104,216,198,.27); border-radius: 8px; color: var(--teal); font-size: 17px; }
.science-toggle b { display: block; font-size: 12px; }
.science-toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.science-chevron { margin-left: auto; color: var(--teal); font-size: 20px; }
.science-panel { padding: 16px; border-top: 1px solid var(--line); }
.science-panel[hidden] { display: none; }
.science-intro { max-width: 860px; }
.science-intro h2 { margin: 6px 0; font-size: 20px; letter-spacing: -.035em; }
.science-intro p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.equation-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.equation-grid article { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); }
.equation-number { color: var(--teal); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.equation-grid h3 { margin: 6px 0 9px; font-size: 11px; }
.equation { min-height: 42px; display: flex; align-items: center; color: #e3d2ad; font-family: Georgia, serif; font-size: clamp(12px, 1.3vw, 17px); line-height: 1.35; }
.equation-grid p { min-height: 36px; margin: 8px 0; color: #829c94; font-size: 9px; line-height: 1.5; }
.textbook-label { color: #d3b27d; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.validation-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; padding: 13px; border: 1px solid rgba(104,216,198,.17); border-radius: 8px; background: rgba(34, 91, 82, .09); }
.validation-panel h3 { margin: 4px 0; font-size: 12px; }
.validation-panel p { max-width: 520px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.validation-values { display: flex; gap: 18px; }
.validation-values span { display: block; color: #78948b; font-size: 7px; letter-spacing: .12em; }
.validation-values b { display: block; margin-top: 5px; color: var(--teal-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.science-caveats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.science-caveats > div { padding: 11px 12px; border-top: 1px solid var(--line); }
.science-caveats b { color: #a9c0b8; font-size: 8px; letter-spacing: .13em; }
.science-caveats p { margin: 6px 0 0; color: #809990; font-size: 9px; line-height: 1.6; }
.page-footer { width: min(calc(100% - 48px), 1672px); margin: 0 auto; padding: 0 0 18px; display: flex; justify-content: space-between; color: #506b64; font-size: 7px; font-weight: 750; letter-spacing: .15em; }

@media (min-width: 1500px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; padding-top: 24px; }
  .scene-container { height: min(58vh, 620px); }
  .control-column { padding: 18px; }
}
@media (max-width: 1050px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; padding: 16px; }
  .control-column { padding: 13px; }
  .scene-container { height: 46vh; min-height: 340px; }
  .equation-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .topbar { height: 58px; padding: 0 14px; }
  .brand-name { font-size: 10px; }
  .brand-name span { display: none; }
  .brand-subtitle { font-size: 7px; }
  .topbar-right { gap: 10px; }
  .live-indicator { font-size: 8px; }
  .seed-tag { font-size: 8px; }
  .workspace { display: flex; flex-direction: column; gap: 12px; padding: 14px 12px 10px; }
  .visual-column, .control-column { width: 100%; }
  .exhibit-heading { padding: 0 1px 10px; }
  h1 { max-width: 620px; font-size: clamp(23px, 6.3vw, 31px); }
  .exhibit-heading p { max-width: 560px; font-size: 11px; }
  .scene-container { height: min(52vh, 430px); min-height: 300px; }
  .scene-topline, .scene-bottomline { padding-left: 9px; padding-right: 9px; }
  .scene-location { font-size: 7px; }
  .state-chip { font-size: 7px; }
  .scene-legend { gap: 8px; }
  .legend-item { font-size: 7px; }
  .scene-hint { display: none; }
  .scene-annotation { font-size: 7px; padding: 4px 5px; }
  .exhibit-footer { display: block; padding-top: 10px; }
  .mechanism-strip { justify-content: space-between; gap: 5px; }
  .mechanism-strip small { font-size: 8px; }
  .mechanism-strip b { font-size: 7px; }
  .mechanism-number { width: 20px; height: 20px; font-size: 8px; }
  .mechanism-arrow { font-size: 10px; }
  .footer-note { max-width: none; margin-top: 9px; text-align: left; }
  .control-column { max-height: none; overflow: visible; padding: 14px; }
  .panel-head h2 { font-size: 17px; }
  .controls-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .control-item:nth-child(odd) { padding-right: 4px; }
  .control-item:nth-child(even) { padding-left: 4px; }
  .control-item { min-width: 0; }
  .control-label-row label { font-size: 9px; }
  .control-label-row output { font-size: 9px; }
  .range-ends { font-size: 7px; }
  .readout-grid { gap: 6px; }
  .readout-cell strong { font-size: 15px; }
  .utility-row { gap: 5px; }
  .utility-button { flex: 1; padding: 0 5px; font-size: 8px; }
  .science-section { width: calc(100% - 24px); margin: 4px auto 14px; }
  .science-panel { padding: 13px; }
  .equation-grid { grid-template-columns: 1fr 1fr; }
  .validation-panel { display: block; }
  .validation-values { justify-content: space-between; gap: 8px; margin-top: 12px; }
  .validation-values b { font-size: 10px; }
  .science-caveats { grid-template-columns: 1fr; gap: 0; }
  .page-footer { width: calc(100% - 24px); flex-wrap: wrap; gap: 7px 14px; font-size: 6px; }
}
@media (max-width: 390px) {
  .scene-container { min-height: 285px; height: 43vh; }
  .scene-location { letter-spacing: .07em; }
  .state-chip { padding: 4px 6px; letter-spacing: .06em; }
  .scene-legend { gap: 6px; }
  .legend-item { gap: 4px; font-size: 6px; }
  .legend-item i { width: 10px; }
  .controls-list { column-gap: 8px; }
  .control-label-row { gap: 5px; }
  .control-label-row label, .control-label-row output { font-size: 8px; }
  .equation-grid { grid-template-columns: 1fr; }
  .equation-grid article { padding: 10px; }
  .equation-grid p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body.embed .topbar { display: none; }
body.embed .workspace { min-height: 100vh; padding-top: 12px; }
body.embed .science-section, body.embed .page-footer { display: none; }
body.embed .control-column { max-height: calc(100vh - 24px); }
