:root {
  color-scheme: dark;
  --bg: #0b171e;
  --panel: #101f27;
  --panel-2: #14262e;
  --panel-3: #182d35;
  --line: rgba(178, 207, 208, 0.12);
  --line-strong: rgba(178, 207, 208, 0.22);
  --text: #e7eeea;
  --muted: #91a5a5;
  --dim: #607678;
  --cyan: #75d4ca;
  --cyan-soft: rgba(117, 212, 202, 0.12);
  --amber: #e0b477;
  --red: #e38d69;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { 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 42% 8%, rgba(36, 73, 78, .22), transparent 44%), var(--bg); }
.topbar { height: 62px; flex: 0 0 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(9, 21, 27, .9); position: relative; z-index: 20; }
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.brand-mark { width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid rgba(117, 212, 202, .42); border-radius: 8px; transform: rotate(-8deg); }
.brand-mark span { width: 3px; border-radius: 4px; background: var(--cyan); display: block; transform: skew(-22deg); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .58; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .78; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 4px; }
.brand-text strong { font-size: 10px; letter-spacing: .19em; font-weight: 800; }
.brand-text small { color: var(--dim); font-size: 8px; letter-spacing: .18em; font-weight: 700; }
.topbar-center { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; letter-spacing: .15em; font-weight: 700; }
.topbar-kicker { color: var(--cyan); }
.topbar-divider { height: 13px; width: 1px; background: var(--line-strong); }
.topbar-right { min-width: 220px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #9fb3b1; font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.live-dot, .tag-dot, .mini-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(117, 212, 202, .65); }
.topbar-version { margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--dim); }

.workspace { min-height: 0; height: calc(100vh - 62px); display: grid; grid-template-columns: minmax(0, 1fr) 366px; gap: 0; }
.stage-panel { min-width: 0; min-height: 0; padding: 14px 12px 14px 16px; }
.scene-viewport { height: 100%; min-height: 500px; position: relative; overflow: hidden; border: 1px solid rgba(145, 183, 181, .17); border-radius: 16px; background: #0b1b24; isolation: isolate; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.scene-viewport::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 -120px 110px -110px rgba(5, 13, 17, .85); }
.river-webgl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.scene-scrim { pointer-events: none; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(5, 15, 20, .58), transparent 25%, transparent 65%, rgba(5, 14, 18, .62)); }
.scene-title-block { position: absolute; z-index: 4; top: 27px; left: 29px; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #a9c1bd; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.eyebrow-line { width: 20px; height: 1px; background: var(--cyan); }
.scene-title-block h1 { margin: 13px 0 3px; font-size: clamp(28px, 3.3vw, 46px); letter-spacing: -.055em; line-height: .98; font-weight: 720; }
.scene-title-block h1 em { color: var(--cyan); font-style: normal; font-weight: 500; }
.scene-title-block p { margin: 9px 0 0; color: #a5b7b5; font-size: 12px; letter-spacing: .035em; }
.scene-top-right { position: absolute; z-index: 4; right: 24px; top: 25px; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; pointer-events: none; }
.scene-tag { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(117,212,202,.27); border-radius: 7px; background: rgba(10, 29, 34, .76); color: #c6e6df; font-size: 8px; letter-spacing: .14em; font-weight: 800; backdrop-filter: blur(8px); }
.scene-coordinates { color: #8ba19e; font-size: 8px; letter-spacing: .14em; font-weight: 700; }
.scene-coordinates span { color: var(--cyan); padding: 0 4px; }
.scene-bottom-left { position: absolute; z-index: 4; left: 24px; bottom: 88px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.legend-row { display: flex; align-items: center; gap: 8px; color: #b2c4bf; font-size: 8px; letter-spacing: .12em; font-weight: 700; text-shadow: 0 1px 8px #071219; }
.legend-swatch { width: 15px; height: 3px; border-radius: 3px; display: inline-block; }
.legend-swatch.water { background: #69c8c0; box-shadow: 0 0 8px rgba(105,200,192,.6); }
.legend-swatch.former { background: #d6a66d; }
.legend-swatch.sediment { background: #a38a60; }
.scene-bottom-right { position: absolute; z-index: 4; right: 24px; bottom: 91px; display: flex; align-items: flex-end; gap: 24px; pointer-events: none; }
.north-indicator { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #a3b9b5; font-size: 7px; letter-spacing: .12em; font-weight: 800; }
.north-arrow { font-size: 20px; line-height: 1; color: var(--cyan); }
.scale-indicator { display: flex; flex-direction: column; gap: 5px; align-items: center; color: #a3b9b5; font-size: 7px; letter-spacing: .12em; font-weight: 800; }
.scale-line { width: 54px; height: 5px; border-left: 1px solid #c0d2cc; border-right: 1px solid #c0d2cc; border-bottom: 1px solid #c0d2cc; }
.scene-readout-strip { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 15px; min-height: 58px; display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 0; border: 1px solid rgba(162, 197, 192, .15); border-radius: 10px; background: rgba(9, 25, 31, .88); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.scene-readout-strip > div { padding: 10px 13px 8px; border-right: 1px solid var(--line); min-width: 0; }
.scene-readout-strip > div:last-child { border-right: 0; }
.scene-readout-strip small { display: block; color: #849d9b; font-size: 7px; font-weight: 800; letter-spacing: .14em; margin-bottom: 6px; }
.scene-readout-strip strong { color: #e1eeea; font-size: 16px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scene-readout-strip i { color: #8da7a4; font-size: 9px; font-style: normal; font-weight: 500; letter-spacing: 0; }
.progress-track { display: block; height: 3px; border-radius: 5px; background: rgba(174, 205, 199, .13); margin-top: 6px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, #d2a56e, #6dd4c8); transition: width .25s ease; }
.scene-controls-hint { position: absolute; z-index: 4; right: 24px; bottom: 79px; color: #819894; font-size: 7px; letter-spacing: .12em; font-weight: 700; pointer-events: none; }
.scene-controls-hint span { padding: 0 4px; color: #b3c9c2; }
.mouse-glyph { font-size: 12px; vertical-align: -1px; color: var(--cyan); }
.annotation-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.scene-annotation { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 7px; transform-origin: top left; transition: opacity .2s ease; white-space: nowrap; text-shadow: 0 2px 10px rgba(0,0,0,.85); }
.annotation-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px currentColor; }
.scene-annotation.amber .annotation-dot { background: #d9a66c; }
.scene-annotation.sand .annotation-dot { background: #d1b483; }
.annotation-copy { display: flex; flex-direction: column; gap: 2px; }
.annotation-copy b { color: #dce9e3; font-size: 7px; letter-spacing: .16em; }
.annotation-copy small { color: #9db2ac; font-size: 7px; letter-spacing: .03em; }
.context-overlay, .scene-error { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; background: rgba(5, 14, 18, .82); backdrop-filter: blur(10px); }
.context-overlay[hidden], .scene-error[hidden] { display: none; }
.context-card { width: min(330px, calc(100% - 36px)); padding: 24px; border: 1px solid var(--line-strong); border-radius: 13px; background: #12242c; text-align: center; box-shadow: 0 20px 70px rgba(0,0,0,.4); }
.context-icon { color: var(--cyan); font-size: 28px; margin-bottom: 10px; }
.context-card strong { font-size: 15px; }
.context-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 17px; }

.control-panel { min-height: 0; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 35, 43, .97), rgba(13, 27, 34, .98)); }
.panel-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 21px 20px 18px; scrollbar-width: thin; scrollbar-color: #36525a transparent; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 19px; }
.eyebrow-small { color: var(--cyan); font-size: 8px; letter-spacing: .18em; font-weight: 800; }
.panel-heading h2 { margin: 6px 0 0; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.seed-chip { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: #8ca5a1; font-size: 8px; letter-spacing: .1em; font-weight: 800; }
.section-label { display: flex; align-items: center; justify-content: space-between; color: #9cb3ae; font-size: 8px; letter-spacing: .16em; font-weight: 800; margin-bottom: 11px; }
.section-index { color: #607c7b; font-size: 8px; letter-spacing: .08em; }
.preset-section, .parameter-section, .playback-section, .readouts-section { padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.causal-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 5px; padding: 9px 9px; margin: 0 0 16px; border: 1px solid rgba(117,212,202,.14); border-radius: 8px; background: rgba(117,212,202,.035); }
.causal-chain > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.causal-chain small { color: #76928d; font-size: 6px; letter-spacing: .13em; font-weight: 800; }
.causal-chain strong { color: #c8d9d2; font-size: 8px; line-height: 1.25; font-weight: 650; }
.causal-chain > span { color: var(--cyan); font-size: 12px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.preset-button { min-height: 58px; padding: 8px 6px; display: flex; align-items: center; gap: 7px; text-align: left; border: 1px solid rgba(163, 195, 190, .13); border-radius: 8px; background: rgba(255,255,255,.018); color: #a7b8b3; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.preset-button:hover { border-color: rgba(117, 212, 202, .45); color: var(--text); }
.preset-button.active { border-color: rgba(117, 212, 202, .52); background: rgba(117, 212, 202, .09); color: #e2efea; box-shadow: inset 0 0 0 1px rgba(117,212,202,.05); }
.preset-button > span:last-child { font-size: 8px; line-height: 1.35; font-weight: 700; }
.preset-symbol { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 6px; font-size: 15px; background: rgba(255,255,255,.05); }
.stable-symbol { color: #8dbcb1; }
.choked-symbol { color: #d8b47c; }
.flood-symbol { color: #8bb7d2; }
.parameter-row { margin-bottom: 13px; }
.parameter-row:last-child { margin-bottom: 0; }
.parameter-row label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.parameter-name { color: #c7d4ce; font-size: 10px; font-weight: 600; }
.parameter-value { color: var(--cyan); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.parameter-value i { color: #8ba7a2; font-size: 8px; font-style: normal; font-weight: 500; }
input[type="range"] { appearance: none; width: 100%; height: 4px; display: block; margin: 0; border-radius: 4px; background: linear-gradient(90deg, rgba(117,212,202,.72), rgba(117,212,202,.22)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #d9eee6; border: 2px solid #3e9c95; box-shadow: 0 0 0 3px rgba(117,212,202,.12); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #d9eee6; border: 2px solid #3e9c95; box-shadow: 0 0 0 3px rgba(117,212,202,.12); }
.range-hints { display: flex; justify-content: space-between; color: #617d7c; font-size: 7px; letter-spacing: .02em; margin-top: 5px; }
.playback-controls { display: grid; grid-template-columns: 1fr 1fr 38px; gap: 7px; }
.button { min-height: 34px; border-radius: 7px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); color: #c5d3ce; font-size: 9px; font-weight: 800; letter-spacing: .1em; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { background: rgba(255,255,255,.075); border-color: rgba(168,205,198,.38); }
.button:active { transform: translateY(1px); }
.button-primary { border-color: rgba(117,212,202,.44); background: rgba(78,165,155,.2); color: #c7f0e7; }
.button-primary:hover { background: rgba(78,165,155,.3); border-color: rgba(117,212,202,.7); }
.play-button { display: flex; align-items: center; justify-content: center; gap: 9px; }
.play-icon { font-size: 12px; line-height: 1; }
.square-button { font-size: 18px; font-weight: 500; padding: 0; }
.time-row { display: flex; justify-content: space-between; margin: 14px 0 8px; color: #8da5a0; font-size: 8px; letter-spacing: .13em; font-weight: 750; }
.time-row strong { color: var(--cyan); font-size: 10px; }
.time-foot { display: flex; justify-content: space-between; margin-top: 6px; color: #607c7a; font-size: 7px; letter-spacing: .07em; }
.time-foot span:nth-child(2) { color: #9db4ae; }
.utility-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-top: 13px; }
.utility-button { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); color: #91a9a4; font-size: 7px; letter-spacing: .07em; font-weight: 800; cursor: pointer; transition: all .16s ease; white-space: nowrap; }
.utility-button span { color: var(--cyan); font-size: 12px; }
.utility-button:hover { color: var(--text); border-color: rgba(117,212,202,.4); background: rgba(117,212,202,.06); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.readout-card { min-height: 72px; padding: 9px 10px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); }
.readout-top { display: flex; align-items: center; justify-content: space-between; color: #839b97; font-size: 7px; letter-spacing: .1em; font-weight: 800; }
.readout-symbol { color: #7acbc1; font-size: 11px; }
.readout-card strong { display: block; margin-top: 8px; color: #e3efea; font-size: 18px; line-height: 1; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.readout-card strong i { color: #92aaa4; font-size: 9px; font-style: normal; font-weight: 500; }
.readout-card small { display: block; margin-top: 6px; color: #607b78; font-size: 6px; letter-spacing: .14em; font-weight: 800; }
.validation-card { margin: 0 0 15px; padding: 12px; border: 1px solid rgba(117,212,202,.2); border-radius: 9px; background: linear-gradient(135deg, rgba(117,212,202,.075), rgba(255,255,255,.015)); }
.validation-heading { display: flex; align-items: center; gap: 8px; }
.validation-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(117,212,202,.15); color: var(--cyan); font-size: 12px; }
.validation-heading > div { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.validation-heading strong { color: #d9e8e2; font-size: 10px; }
.validation-heading small { color: #79918d; font-size: 6px; letter-spacing: .13em; font-weight: 800; }
.textbook-tag { color: #d9b77e; border: 1px solid rgba(217,183,126,.3); padding: 4px 6px; border-radius: 4px; font-size: 6px; letter-spacing: .12em; font-weight: 800; }
.validation-values { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.validation-values > div { min-width: 0; }
.validation-values small { display: block; color: #78918c; font-size: 6px; letter-spacing: .08em; line-height: 1.3; min-height: 17px; }
.validation-values strong { display: block; color: #dcebe5; font-size: 12px; font-variant-numeric: tabular-nums; }
.validation-values > div:last-child strong { color: var(--cyan); }
.validation-card > p { margin: 9px 0 0; color: #809894; font-size: 8px; line-height: 1.45; }
.science-panel { border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); margin-bottom: 14px; }
.science-panel summary { list-style: none; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 9px 11px; cursor: pointer; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; background: rgba(117,212,202,.1); color: var(--cyan); font-size: 15px; }
.science-panel summary > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.science-panel summary strong { color: #d5e2dd; font-size: 10px; }
.science-panel summary small { color: #6f8985; font-size: 6px; letter-spacing: .13em; font-weight: 800; }
.details-chevron { color: #8ca9a3; font-size: 15px; transition: transform .2s ease; }
.science-panel[open] .details-chevron { transform: rotate(180deg); }
.science-content { padding: 0 11px 12px; }
.science-block { padding: 10px 0; border-top: 1px solid var(--line); }
.science-block b, .science-vars b, .science-note b { color: #a8c1ba; font-size: 7px; letter-spacing: .14em; }
.science-block code { display: block; width: fit-content; max-width: 100%; margin: 7px 0 5px; padding: 6px 8px; border-radius: 5px; background: rgba(117,212,202,.065); color: #c8e6dd; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; white-space: normal; }
.science-block p, .science-note p { margin: 5px 0 0; color: #8da49e; font-size: 8px; line-height: 1.6; }
.science-vars { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); color: #8da49e; font-size: 8px; line-height: 1.5; }
.science-note { padding: 10px; border-radius: 6px; background: rgba(224,180,119,.055); }
.science-note b { color: #d5b17d; }
.panel-footnote { padding: 10px 0 3px; color: #5f7976; font-size: 7px; line-height: 1.5; letter-spacing: .02em; }

@media (max-width: 1120px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 338px; }
  .panel-scroll { padding-left: 16px; padding-right: 16px; }
  .scene-readout-strip { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .scene-readout-strip > div { padding-left: 9px; padding-right: 9px; }
  .scene-readout-strip strong { font-size: 14px; }
}

@media (max-width: 820px) {
  body { overflow: auto; }
  .app-shell { min-height: 100vh; }
  .topbar { height: 54px; flex-basis: 54px; padding: 0 14px; }
  .brand-lockup { min-width: auto; }
  .topbar-center { display: none; }
  .topbar-right { min-width: auto; font-size: 8px; }
  .topbar-version { display: none; }
  .workspace { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .stage-panel { padding: 10px 10px 0; }
  .scene-viewport { height: min(54vh, 480px); min-height: 340px; }
  .scene-title-block { top: 19px; left: 18px; }
  .scene-title-block h1 { font-size: clamp(27px, 7vw, 39px); }
  .scene-title-block p { font-size: 10px; }
  .scene-top-right { right: 14px; top: 16px; }
  .scene-coordinates { display: none; }
  .scene-bottom-left { left: 15px; bottom: 86px; gap: 6px; }
  .scene-bottom-right { right: 15px; bottom: 87px; }
  .scene-readout-strip { left: 8px; right: 8px; bottom: 8px; min-height: 55px; grid-template-columns: 1fr 1fr 1fr 1fr; }
  .scene-readout-strip > div { padding: 8px 7px 6px; }
  .scene-readout-strip small { font-size: 6px; letter-spacing: .08em; }
  .scene-readout-strip strong { font-size: 12px; }
  .scene-readout-strip i { font-size: 7px; }
  .scene-controls-hint { display: none; }
  .annotation-copy b, .annotation-copy small { font-size: 6px; }
  .control-panel { border-left: 0; border-top: 1px solid var(--line); margin-top: 10px; }
  .panel-scroll { height: auto; overflow: visible; padding: 18px 16px 28px; }
  .panel-heading { margin-bottom: 16px; }
}

@media (max-width: 430px) {
  .scene-viewport { height: 390px; min-height: 390px; }
  .scene-title-block { max-width: 215px; }
  .eyebrow { font-size: 6px; letter-spacing: .14em; }
  .scene-title-block h1 { margin-top: 11px; font-size: 30px; }
  .scene-title-block p { margin-top: 7px; }
  .scene-tag { padding: 7px 8px; font-size: 6px; }
  .scene-bottom-left { bottom: 82px; }
  .scene-bottom-right { bottom: 84px; }
  .legend-row { font-size: 6px; }
  .scene-readout-strip { grid-template-columns: 1fr 1fr; min-height: 76px; }
  .scene-readout-strip > div { padding: 7px 9px 5px; }
  .scene-readout-strip > div:nth-child(2) { border-right: 0; }
  .scene-readout-strip > div:nth-child(1), .scene-readout-strip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .scene-readout-strip small { margin-bottom: 3px; }
  .scene-readout-strip strong { font-size: 13px; }
  .scene-bottom-left { bottom: 94px; }
  .scene-bottom-right { bottom: 96px; }
  .preset-button { min-height: 55px; }
  .utility-button { font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.embed-mode .topbar { display: none; }
.embed-mode .workspace { height: 100vh; }
.embed-mode .stage-panel { padding: 0; }
.embed-mode .scene-viewport { border-radius: 0; border: 0; }
.embed-mode .control-panel { max-height: 100vh; }

@media (max-width: 820px) {
  .embed-mode .workspace { height: auto; min-height: 100vh; }
}
