:root {
  color-scheme: dark;
  --bg: #0b121a;
  --panel: #111c26;
  --panel-2: #15232e;
  --line: rgba(179, 204, 218, 0.12);
  --line-strong: rgba(179, 204, 218, 0.2);
  --text: #e9edf0;
  --muted: #91a0aa;
  --faint: #61717c;
  --accent: #d7a66b;
  --teal: #72c4bf;
  --amber: #dba768;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; font-size: 13px; letter-spacing: 0.005em; }
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 { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 18% 0%, rgba(43, 66, 79, .22), transparent 40%), var(--bg); }
.topbar { height: 66px; flex: 0 0 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(10, 17, 24, .94); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 29px; height: 29px; border: 1px solid rgba(215,166,107,.55); border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-24deg); }
.brand-mark span { display: block; width: 3px; border-radius: 3px; background: var(--accent); }
.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: 11px; opacity: .75; }
.brand-name { font-size: 12px; font-weight: 800; letter-spacing: .16em; line-height: 1.3; }
.brand-name > span:first-child { color: var(--accent); }
.brand-lab { margin-left: 8px; color: #9eabb4; font-size: 9px; letter-spacing: .12em; font-weight: 600; }
.brand-subtitle { margin-top: 3px; color: var(--faint); font-size: 8px; letter-spacing: .15em; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 17px; height: 100%; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #aab7bf; font-size: 9px; letter-spacing: .13em; font-weight: 700; }
.status-dot, .tag-pulse, .state-dot { width: 6px; height: 6px; border-radius: 50%; background: #70c7a7; box-shadow: 0 0 0 3px rgba(112,199,167,.12); }
.status-dot:not(.is-active) { background: #77848c; box-shadow: none; }
.topbar-divider { height: 19px; width: 1px; background: var(--line-strong); }
.version-label { color: #73818a; font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.icon-button { border: 1px solid var(--line-strong); background: transparent; border-radius: 6px; min-height: 33px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: #c5d0d6; cursor: pointer; font-size: 9px; letter-spacing: .1em; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.icon-button:hover { background: rgba(255,255,255,.05); border-color: rgba(215,166,107,.55); }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.workspace { width: 100%; max-width: 1920px; margin: 0 auto; padding: 22px 26px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 22px; flex: 1; align-items: start; }
.scene-column { min-width: 0; }
.scene-heading { display: flex; justify-content: space-between; align-items: flex-end; min-height: 78px; padding: 0 2px 15px; }
.eyebrow { color: #8797a2; font-size: 9px; letter-spacing: .17em; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.eyebrow-line { display: inline-block; width: 18px; height: 1px; background: var(--accent); }
h1 { font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.045em; line-height: 1.1; margin: 8px 0 5px; font-weight: 560; }
.scene-heading p { color: #8d9ca6; font-size: 11px; margin: 0; letter-spacing: .01em; }
.scene-heading-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; padding-bottom: 3px; }
.meta-chip { border: 1px solid rgba(215,166,107,.34); color: #d8b27f; border-radius: 3px; padding: 5px 7px; font-size: 8px; letter-spacing: .12em; font-weight: 700; }
.meta-coordinate { color: #65747e; font-size: 8px; letter-spacing: .1em; }
.scene-host { width: 100%; height: clamp(390px, 47vw, 590px); min-height: 370px; position: relative; overflow: hidden; border: 1px solid rgba(179,204,218,.16); border-radius: 8px; background: radial-gradient(ellipse at 50% 55%, #293642 0%, #111c27 74%); isolation: isolate; }
.scene-canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(7,13,19,.30), transparent 24%, transparent 70%, rgba(7,13,19,.28)), linear-gradient(90deg, rgba(7,13,19,.17), transparent 18%, transparent 82%, rgba(7,13,19,.12)); }
.scene-top-overlay, .scene-bottom-overlay { position: absolute; z-index: 3; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.scene-top-overlay { top: 15px; }
.scene-bottom-overlay { bottom: 14px; }
.scene-tag, .wind-direction-tag { border: 1px solid rgba(198,218,228,.17); background: rgba(10,19,27,.62); backdrop-filter: blur(8px); border-radius: 4px; padding: 7px 9px; color: #b8c5cc; font-size: 8px; letter-spacing: .13em; font-weight: 700; }
.scene-tag { display: flex; align-items: center; gap: 8px; }
.tag-pulse { width: 5px; height: 5px; }
.wind-direction-tag { color: #8fd1ca; }
.scene-scale { display: flex; align-items: center; gap: 6px; color: #aeb9bf; font-size: 8px; letter-spacing: .08em; text-shadow: 0 1px 3px #000; }
.scene-scale i { display: block; width: 39px; height: 1px; background: rgba(232,239,241,.8); position: relative; }
.scene-scale i:before, .scene-scale i:after { content: ''; position: absolute; top: -3px; height: 7px; width: 1px; background: rgba(232,239,241,.8); }
.scene-scale i:before { left: 0; } .scene-scale i:after { right: 0; }
.scene-controls-hint { color: rgba(209,220,225,.68); font-size: 8px; letter-spacing: .12em; text-shadow: 0 1px 4px #000; }
.mouse-icon { color: var(--accent); font-size: 13px; margin-right: 4px; }
.hint-dot { padding: 0 5px; color: var(--accent); }
.scene-annotations { position: absolute; z-index: 4; inset: 0; pointer-events: none; overflow: hidden; }
.annotation { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; opacity: 0; transition: opacity .2s ease; color: #e0c092; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-shadow: 0 1px 4px #111; }
.annotation i { width: 5px; height: 5px; border: 1px solid #f0c27e; background: #e0a962; border-radius: 50%; box-shadow: 0 0 0 3px rgba(224,169,98,.17); }
.scene-message { position: absolute; z-index: 10; inset: 0; background: rgba(7,14,20,.88); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 30px; text-align: center; }
.scene-message[hidden] { display: none; }
.message-symbol { width: 36px; height: 36px; border: 1px solid rgba(215,166,107,.5); border-radius: 50%; color: var(--accent); display: grid; place-items: center; font-size: 18px; }
.scene-message strong { font-size: 15px; font-weight: 650; }
.scene-message span { max-width: 420px; color: #9baab3; line-height: 1.5; font-size: 11px; }
.scene-message .error-hint { margin-top: 6px; color: #d3a66d; font-size: 10px; }
.scene-footer { display: flex; justify-content: space-between; align-items: center; min-height: 38px; padding: 0 3px; }
.footer-left, .footer-right { display: flex; align-items: center; gap: 13px; }
.footer-left { color: #84939c; font-size: 9px; letter-spacing: .04em; }
.state-indicator { display: flex; align-items: center; gap: 7px; }
.state-dot { width: 5px; height: 5px; box-shadow: none; }
.state-live { color: #82c9ae; } .state-idle { color: #d0a56e; }
.footer-separator { color: #46545e; }
.text-button, .quality-button { border: 0; background: transparent; cursor: pointer; color: #8796a0; font-size: 8px; font-weight: 750; letter-spacing: .12em; padding: 6px 3px; }
.text-button:hover { color: #d9e1e5; }
.text-button span { color: var(--accent); font-size: 14px; vertical-align: -1px; margin-right: 4px; }
.quality-button { border: 1px solid var(--line-strong); border-radius: 4px; padding: 6px 8px; color: #b1bec5; }
.quality-button:hover { border-color: rgba(114,196,191,.5); }
.transport-panel { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: rgba(17,28,38,.8); border-radius: 7px; padding: 10px 14px; }
.transport-main { display: flex; align-items: center; gap: 8px; }
.play-button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(114,196,191,.42); border-radius: 5px; padding: 8px 13px; background: rgba(114,196,191,.12); color: #a6e0d9; font-size: 10px; font-weight: 750; cursor: pointer; min-width: 91px; justify-content: center; transition: background .18s ease; }
.play-button:hover { background: rgba(114,196,191,.2); }
.play-button span:first-child { font-size: 11px; }
.transport-button { height: 33px; min-width: 34px; border: 1px solid var(--line-strong); background: transparent; border-radius: 5px; color: #a8b5bd; cursor: pointer; font-size: 15px; }
.transport-button:hover { background: rgba(255,255,255,.05); color: #fff; }
.transport-divider { width: 1px; height: 29px; background: var(--line-strong); margin: 0 5px; }
.age-readout { display: flex; flex-direction: column; gap: 3px; min-width: 85px; }
.mini-label { color: #70808a; font-size: 7px; letter-spacing: .13em; font-weight: 750; }
.age-readout strong { color: #e5d1b1; font-size: 15px; letter-spacing: -.02em; font-weight: 600; font-variant-numeric: tabular-nums; }
.erosion-track-wrap { flex: 1; max-width: 250px; min-width: 120px; }
.erosion-track-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: #778791; font-size: 7px; letter-spacing: .13em; font-weight: 750; }
.erosion-track-head span:last-child { color: #d6b07b; font-variant-numeric: tabular-nums; }
.erosion-track { height: 4px; background: #263541; border-radius: 5px; overflow: hidden; }
.erosion-track > div { width: 0%; height: 100%; background: linear-gradient(90deg, #6abcb3, #d9a86e); transition: width .15s linear; }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 11px; }
.readout-card { background: rgba(17,28,38,.72); border: 1px solid var(--line); border-radius: 6px; min-height: 74px; padding: 10px 11px 8px; min-width: 0; }
.readout-top { display: flex; justify-content: space-between; align-items: center; color: #83929b; font-size: 7px; letter-spacing: .1em; font-weight: 750; white-space: nowrap; }
.readout-dot { width: 4px; height: 4px; background: #d2a16a; border-radius: 50%; opacity: .9; }
.readout-card strong { display: block; margin: 7px 0 4px; color: #e1e7e9; font-size: clamp(13px, 1.2vw, 17px); letter-spacing: -.03em; font-weight: 580; white-space: nowrap; font-variant-numeric: tabular-nums; }
.readout-card small { color: #65747e; font-size: 7px; letter-spacing: .12em; font-weight: 700; }
.reduced-note { color: #d7b37f; margin-top: 8px; font-size: 10px; }
.reduced-note[hidden] { display: none; }

.control-column { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(21,34,45,.96), rgba(14,24,33,.98)); overflow: hidden; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 19px 18px 16px; border-bottom: 1px solid var(--line); }
.panel-header .eyebrow { font-size: 8px; }
.panel-header h2 { margin: 7px 0 0; font-size: 17px; letter-spacing: -.03em; font-weight: 600; }
.panel-index { color: #d2ac78; font-size: 11px; font-weight: 750; letter-spacing: .08em; padding-top: 6px; }
.panel-index span { color: #65747e; }
.control-section { padding: 15px 18px 16px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; color: #a8b5bc; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.section-note { color: #65757f; font-size: 7px; letter-spacing: .1em; font-weight: 650; }
.preset-section { padding-bottom: 14px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.preset-button { min-width: 0; min-height: 62px; display: flex; align-items: center; gap: 7px; padding: 7px 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: rgba(6,13,19,.22); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.preset-button:hover { border-color: rgba(215,166,107,.45); }
.preset-button.is-selected { border-color: rgba(114,196,191,.6); background: rgba(114,196,191,.08); }
.preset-icon { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 4px; background: rgba(215,166,107,.11); color: #dcb27a; font-size: 17px; }
.gale-icon { color: #82c8c2; background: rgba(114,196,191,.11); }
.rock-icon { color: #b9a18a; background: rgba(185,161,138,.11); }
.preset-button strong { display: block; font-size: 8px; line-height: 1.25; color: #d6dee2; font-weight: 700; white-space: nowrap; }
.preset-button small { display: block; margin-top: 4px; font-size: 7px; color: #75858e; white-space: nowrap; }
.control-row { margin-top: 13px; }
.control-row:first-of-type { margin-top: 0; }
.control-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.control-label label { color: #d2dce0; font-size: 10px; font-weight: 580; }
.control-label output { color: #d8b27d; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 4px; border-radius: 5px; background: linear-gradient(90deg, #71bcb5, #c69c69); cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #e6c18b; border: 2px solid #17242e; box-shadow: 0 0 0 1px rgba(230,193,139,.55); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #e6c18b; border: 2px solid #17242e; box-shadow: 0 0 0 1px rgba(230,193,139,.55); }
.range-ends { display: flex; justify-content: space-between; margin-top: 6px; color: #667782; font-size: 7px; letter-spacing: .02em; }
.material-section { padding-top: 14px; }
.time-section { padding-top: 14px; padding-bottom: 14px; }
.science-section { padding: 15px 18px 14px; border-bottom: 1px solid var(--line); }
.validation-chip { color: #78c7b8; border: 1px solid rgba(120,199,184,.28); border-radius: 3px; padding: 4px 5px; font-size: 7px; letter-spacing: .09em; }
.validation-card { border: 1px solid rgba(120,199,184,.2); background: rgba(81,142,133,.055); border-radius: 6px; padding: 11px 11px 9px; }
.validation-title { display: flex; align-items: center; gap: 8px; }
.validation-check { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: rgba(120,199,184,.15); color: #80cdbb; font-size: 11px; }
.validation-title strong { display: block; color: #dce5e6; font-size: 9px; font-weight: 700; }
.validation-title small { display: block; margin-top: 3px; color: #7d8d95; font-size: 7px; }
.validation-values { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 11px 0 9px; margin-top: 8px; border-top: 1px solid rgba(120,199,184,.11); border-bottom: 1px solid rgba(120,199,184,.11); }
.validation-values span, .validation-bottom span { display: block; color: #74858d; font-size: 6px; letter-spacing: .1em; font-weight: 750; }
.validation-values strong { display: block; margin-top: 5px; color: #d3e4e0; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.validation-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; }
.validation-bottom strong { color: #82cbb9; font-size: 11px; font-variant-numeric: tabular-nums; }
.validation-time { color: #74848d; margin-top: 6px; font-size: 7px; }
.validation-time span { color: #a6b6ba; font-variant-numeric: tabular-nums; }
.science-drawer { border-bottom: 1px solid var(--line); }
.science-drawer summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 14px 18px; cursor: pointer; }
.science-drawer summary::-webkit-details-marker { display: none; }
.science-icon { width: 25px; height: 25px; display: grid; place-items: center; color: #d5ad79; background: rgba(215,166,107,.11); border-radius: 5px; font-size: 15px; }
.science-drawer summary strong { display: block; font-size: 10px; font-weight: 700; }
.science-drawer summary small { display: block; margin-top: 3px; color: #74848e; font-size: 7px; }
.summary-chevron { margin-left: auto; color: #7d8d96; font-size: 15px; transition: transform .18s ease; }
.science-drawer[open] .summary-chevron { transform: rotate(180deg); }
.science-content { padding: 0 18px 15px; }
.equation-block { padding: 10px 0; border-top: 1px solid var(--line); }
.equation-label { display: block; color: #d3ad7a; font-size: 7px; letter-spacing: .13em; font-weight: 750; margin-bottom: 7px; }
.equation-block code { display: block; color: #d7e3e3; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.equation-block p, .assumption-note p { color: #82929a; font-size: 8px; line-height: 1.55; margin: 6px 0 0; }
.variable-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.variable-list div { display: flex; gap: 7px; align-items: baseline; }
.variable-list b { color: #d5b17e; font-family: ui-monospace, monospace; font-size: 8px; }
.variable-list span { color: #7f9099; font-size: 7px; }
.assumption-note { padding: 10px; border: 1px solid rgba(215,166,107,.15); border-radius: 5px; background: rgba(215,166,107,.045); }
.assumption-note strong { color: #d6b17f; font-size: 8px; letter-spacing: .06em; }
.panel-footnote { display: flex; align-items: flex-start; gap: 8px; padding: 12px 18px 14px; color: #71818a; font-size: 7px; line-height: 1.5; }
.footnote-mark { flex: 0 0 13px; width: 13px; height: 13px; display: grid; place-items: center; border: 1px solid #64757f; border-radius: 50%; color: #9eacb3; font-size: 8px; }
.app-footer { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 27px; border-top: 1px solid var(--line); color: #566670; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.app-footer i { color: var(--accent); font-style: normal; padding: 0 4px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; padding: 9px 14px; border: 1px solid rgba(114,196,191,.35); border-radius: 5px; background: rgba(14,28,36,.96); color: #b9e1dc; font-size: 10px; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.embed-mode .topbar, .embed-mode .app-footer { display: none; }
.embed-mode .workspace { padding: 0; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; }
.embed-mode .scene-heading { padding: 12px 8px 10px; min-height: 65px; }
.embed-mode .scene-host { height: calc(100vh - 190px); min-height: 300px; }
.embed-mode .control-column { border-radius: 0 0 8px 8px; max-height: 100vh; overflow-y: auto; }
.embed-mode .scene-column { padding: 0 0 12px 12px; }
.embed-mode .scene-heading h1 { font-size: 22px; }
.embed-mode .scene-heading p { display: none; }
.embed-mode .readout-grid { gap: 5px; }
.embed-mode .readout-card { padding: 7px; }
@media (min-width: 1500px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; padding-left: 34px; padding-right: 34px; }
  .scene-host { height: min(56vh, 700px); }
  .control-column { font-size: 14px; }
}
@media (max-width: 1120px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; padding-left: 16px; padding-right: 16px; }
  .scene-host { height: 440px; }
  .readout-card { padding-left: 8px; padding-right: 8px; }
  .readout-top { font-size: 6px; letter-spacing: .07em; }
  .readout-card strong { font-size: 13px; }
  .control-column .control-section, .science-section { padding-left: 13px; padding-right: 13px; }
  .panel-header { padding-left: 13px; padding-right: 13px; }
  .science-drawer summary, .panel-footnote { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 860px) {
  .topbar { padding: 0 16px; }
  .workspace { display: flex; flex-direction: column; padding: 15px 14px 20px; gap: 16px; }
  .scene-column, .control-column { width: 100%; }
  .scene-heading { min-height: 70px; }
  .scene-host { height: min(60vw, 510px); min-height: 330px; }
  .control-column { display: grid; grid-template-columns: 1fr 1fr; }
  .panel-header, .science-section, .science-drawer, .panel-footnote { grid-column: 1 / -1; }
  .panel-header { padding: 15px 17px; }
  .preset-section { border-right: 1px solid var(--line); }
  .material-section { border-right: 1px solid var(--line); }
  .time-section { border-bottom: 1px solid var(--line); }
  .science-section { border-bottom: 1px solid var(--line); }
  .panel-footnote { border-top: 0; }
  .app-footer { padding: 0 15px; }
  .app-footer span:last-child { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 12px; }
  .topbar { height: 56px; flex-basis: 56px; padding: 0 12px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand-name { font-size: 10px; }
  .brand-lab { font-size: 7px; margin-left: 4px; }
  .brand-subtitle { font-size: 7px; }
  .topbar-right { gap: 9px; }
  .live-indicator { font-size: 7px; gap: 6px; }
  .topbar-divider, .version-label { display: none; }
  .top-export { min-height: 30px; padding: 0 7px; }
  .top-export span { display: none; }
  .workspace { padding: 11px 10px 16px; gap: 13px; }
  .scene-heading { min-height: 68px; padding: 0 1px 10px; }
  .eyebrow { font-size: 7px; }
  h1 { font-size: 25px; margin: 6px 0 4px; }
  .scene-heading p { font-size: 9px; max-width: 270px; line-height: 1.4; }
  .scene-heading-meta { display: none; }
  .scene-host { height: 51vh; min-height: 330px; max-height: 470px; border-radius: 6px; }
  .scene-top-overlay, .scene-bottom-overlay { left: 10px; right: 10px; }
  .scene-top-overlay { top: 10px; }
  .scene-bottom-overlay { bottom: 10px; }
  .scene-tag, .wind-direction-tag { padding: 6px 7px; font-size: 7px; }
  .scene-controls-hint { font-size: 6px; }
  .annotation { font-size: 6px; }
  .scene-footer { min-height: 34px; }
  .footer-left { gap: 7px; font-size: 7px; }
  .footer-right { gap: 7px; }
  .text-button, .quality-button { font-size: 7px; }
  .transport-panel { min-height: 62px; padding: 8px; gap: 9px; }
  .transport-main { gap: 5px; }
  .play-button { min-width: 75px; padding: 8px 8px; font-size: 9px; gap: 6px; }
  .transport-button { min-width: 29px; height: 31px; }
  .transport-divider { margin: 0 2px; }
  .age-readout { min-width: 66px; }
  .age-readout strong { font-size: 12px; }
  .mini-label { font-size: 6px; }
  .erosion-track-wrap { min-width: 86px; }
  .erosion-track-head { font-size: 6px; margin-bottom: 7px; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin-top: 7px; }
  .readout-card { min-height: 68px; padding: 8px 9px 7px; }
  .readout-top { font-size: 7px; }
  .readout-card strong { font-size: 15px; margin: 6px 0 3px; }
  .control-column { display: block; }
  .panel-header { padding: 15px 14px; }
  .control-section, .science-section { padding: 13px 14px; }
  .preset-grid { gap: 5px; }
  .preset-button { min-height: 58px; gap: 5px; padding: 6px 5px; }
  .preset-icon { width: 20px; height: 20px; flex-basis: 20px; font-size: 14px; }
  .preset-button strong { font-size: 7px; }
  .preset-button small { font-size: 6px; }
  .control-row { margin-top: 14px; }
  .control-label label { font-size: 10px; }
  .range-ends { font-size: 7px; }
  .science-drawer summary { padding: 13px 14px; }
  .science-content { padding: 0 14px 14px; }
  .panel-footnote { padding: 11px 14px 13px; }
  .app-footer { min-height: 30px; padding: 0 10px; font-size: 6px; }
  .app-footer span:nth-child(2) { display: none; }
  .embed-mode .workspace { padding: 0; gap: 0; }
  .embed-mode .scene-column { padding: 0 8px 10px; }
  .embed-mode .scene-host { height: 48vh; min-height: 300px; }
  .embed-mode .control-column { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
