:root {
  color-scheme: dark;
  --bg: #07111a;
  --panel: #0d1a24;
  --panel-2: #101f2a;
  --line: rgba(157, 186, 194, .13);
  --line-strong: rgba(157, 186, 194, .22);
  --text: #e8f0ed;
  --muted: #8ea4a8;
  --faint: #60777d;
  --teal: #73e1c7;
  --teal-dim: #3b9f91;
  --sand: #cbb58b;
  --orange: #e6a66f;
  --danger: #ef927b;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 50% -10%, #152a34 0, #09151e 42%, #07111a 78%); color: var(--text); font-size: 13px; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.topbar { height: 62px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(5, 14, 21, .72); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 27px; height: 27px; position: relative; display: flex; align-items: flex-end; gap: 3px; padding: 4px; border: 1px solid rgba(115,225,199,.38); border-radius: 7px; background: rgba(115,225,199,.08); }
.brand-mark span { width: 4px; border-radius: 4px; background: var(--teal); display: block; transform: skewY(-24deg); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .6; }
.brand-mark span:nth-child(2) { height: 14px; opacity: .82; }
.brand-mark span:nth-child(3) { height: 18px; }
.eyebrow { font-size: 10px; letter-spacing: .16em; font-weight: 750; color: #d9e6e1; }
.eyebrow span { color: var(--teal); margin: 0 3px; }
.brand-subtitle { font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: .03em; }
.topbar-right { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.live-dot, .toolbar-pulse, .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px rgba(115,225,199,.55); }
.topbar-divider { width: 1px; height: 16px; background: var(--line-strong); margin: 0 7px; }
.seed-label strong { color: var(--text); margin-left: 5px; font-variant-numeric: tabular-nums; }
.page-content { max-width: 1780px; padding: 28px 28px 20px; margin: 0 auto; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 0 22px; }
.kicker, .section-kicker { font-size: 9px; letter-spacing: .16em; font-weight: 800; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.kicker-line { width: 18px; height: 1px; background: var(--teal); display: inline-block; }
h1 { margin: 9px 0 0; font-size: clamp(30px, 3vw, 43px); letter-spacing: -.055em; line-height: 1.04; font-weight: 640; }
h1 em { color: var(--teal); font-style: normal; }
.subtitle { margin: 7px 0 0; font-size: 15px; color: #c0d1cc; font-weight: 450; }
.intro-description { max-width: 720px; color: var(--muted); line-height: 1.55; font-size: 12px; margin: 9px 0 0; }
.phenomenon-card { display: flex; align-items: center; gap: 12px; min-width: 240px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, rgba(23,49,56,.75), rgba(13,26,36,.9)); }
.phenomenon-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); font-size: 22px; background: rgba(115,225,199,.10); }
.phenomenon-label { color: var(--faint); font-size: 8px; letter-spacing: .14em; font-weight: 800; }
.phenomenon-title { margin-top: 4px; font-size: 13px; font-weight: 700; }
.phenomenon-meta { margin-top: 3px; font-size: 10px; color: var(--muted); }
.workbench { display: grid; grid-template-columns: 255px minmax(450px, 1fr) 250px; gap: 12px; align-items: stretch; }
.panel { background: linear-gradient(155deg, rgba(16,31,42,.96), rgba(10,22,31,.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 42px rgba(0,0,0,.14); }
.control-panel, .insight-panel { padding: 16px 15px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 5px 0 0; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.panel-index { font-size: 9px; color: #50666c; font-weight: 800; letter-spacing: .12em; }
.preset-block { padding: 13px 0 11px; border-bottom: 1px solid var(--line); }
.control-label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.control-label-row label, .control-label-row > label { color: #c4d2ce; font-size: 10px; font-weight: 650; }
.tiny-note { color: var(--faint); font-size: 7px; letter-spacing: .08em; white-space: nowrap; }
.preset-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: 9px; }
.preset-btn { border: 1px solid var(--line); border-radius: 6px; padding: 7px 2px; background: rgba(255,255,255,.018); color: #9cb0b0; font-size: 9px; cursor: pointer; transition: .18s ease; }
.preset-btn:hover { border-color: rgba(115,225,199,.42); color: var(--text); }
.preset-btn.active { color: var(--teal); border-color: rgba(115,225,199,.45); background: rgba(115,225,199,.08); }
.preset-description { color: var(--faint); font-size: 9px; line-height: 1.45; min-height: 26px; margin: 8px 0 0; }
.control-group { padding: 12px 0 10px; border-bottom: 1px solid rgba(157,186,194,.08); }
.control-label-row output { color: var(--teal); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 14px; margin: 8px 0 0; accent-color: var(--teal); cursor: pointer; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, rgba(115,225,199,.48), rgba(115,225,199,.12)); }
input[type="range"]::-webkit-slider-thumb { margin-top: -5px; width: 13px; height: 13px; border-radius: 50%; background: #b3f2df; border: 2px solid #1d655e; box-shadow: 0 0 0 3px rgba(115,225,199,.12); -webkit-appearance: none; }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: rgba(115,225,199,.22); }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #b3f2df; border: 2px solid #1d655e; }
.range-ends { display: flex; justify-content: space-between; color: #637a80; font-size: 8px; margin-top: 1px; }
.control-help { margin: 5px 0 0; color: #6f858a; font-size: 8px; line-height: 1.4; }
.panel-footer-note { display: flex; align-items: flex-start; gap: 7px; padding-top: 12px; color: #71868a; font-size: 8px; line-height: 1.45; }
.info-mark { flex: 0 0 13px; width: 13px; height: 13px; border: 1px solid #688a87; color: var(--teal); border-radius: 50%; display: grid; place-items: center; font-size: 8px; }
.simulation-column { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.simulation-panel { overflow: hidden; }
.simulation-toolbar { min-height: 43px; padding: 0 13px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.toolbar-title { display: flex; align-items: center; gap: 8px; color: #d0ded9; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.toolbar-pulse { width: 5px; height: 5px; }
.toolbar-separator { color: #4c636a; }
.toolbar-subtitle { color: #6e858b; font-size: 8px; font-weight: 600; }
.toolbar-actions { display: flex; align-items: center; gap: 5px; }
.icon-btn, .quality-btn { border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.025); color: #9eb4b3; height: 25px; cursor: pointer; transition: .18s ease; }
.icon-btn { width: 27px; font-size: 15px; line-height: 1; }
.icon-btn:hover, .quality-btn:hover { border-color: rgba(115,225,199,.45); color: var(--teal); }
.quality-btn { padding: 0 8px; font-size: 8px; letter-spacing: .08em; font-weight: 750; }
.viewport { height: clamp(370px, 36vw, 510px); min-height: 340px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #1c3540, #0a1721 65%, #07111a); }
.scene-mount, .scene-mount canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,14,21,.34), transparent 24%, transparent 75%, rgba(5,14,21,.42)); }
.scene-top-left { position: absolute; top: 12px; left: 13px; pointer-events: none; }
.scene-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid rgba(144,188,181,.22); border-radius: 5px; background: rgba(5,16,22,.55); color: #c2d6cf; font-size: 8px; font-weight: 750; letter-spacing: .1em; backdrop-filter: blur(8px); }
.chip-dot { width: 5px; height: 5px; }
.scene-coordinate { margin: 7px 0 0 2px; color: #82999a; font-size: 8px; letter-spacing: .05em; text-shadow: 0 1px 5px #07111a; }
.scene-coordinate span { color: var(--teal); padding: 0 4px; }
.scene-legend { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; padding: 8px 9px; border: 1px solid rgba(144,188,181,.16); border-radius: 6px; background: rgba(5,16,22,.55); color: #9fb2ae; font-size: 8px; backdrop-filter: blur(8px); pointer-events: none; }
.scene-legend > div { display: flex; align-items: center; gap: 7px; }
.legend-swatch { width: 12px; height: 3px; border-radius: 3px; display: inline-block; }
.legend-swatch.old { background: #c3a77a; }
.legend-swatch.new { background: #75e1ca; }
.legend-swatch.water { background: #5ab8cf; }
.scene-label { position: absolute; padding: 4px 6px; border-radius: 3px; background: rgba(6,16,22,.7); font-size: 8px; letter-spacing: .12em; font-weight: 800; pointer-events: none; opacity: .8; }
.label-old { left: 17%; bottom: 24%; color: #ddc69b; border: 1px solid rgba(221,198,155,.24); }
.label-new { right: 18%; bottom: 35%; color: var(--teal); border: 1px solid rgba(115,225,199,.24); opacity: .38; transition: opacity .4s ease; }
.label-new.visible { opacity: .95; }
.scene-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: rgba(177,198,195,.6); font-size: 7px; letter-spacing: .15em; white-space: nowrap; pointer-events: none; }
.scene-hint span { color: var(--teal); margin: 0 5px; }
.webgl-message { position: absolute; z-index: 5; inset: auto 16px 45px; padding: 12px 14px; border: 1px solid rgba(239,146,123,.35); border-radius: 8px; background: rgba(49,25,25,.92); color: #ffd2c8; font-size: 11px; line-height: 1.5; }
.simulation-controls { display: flex; align-items: center; gap: 15px; min-height: 48px; padding: 7px 12px; border-top: 1px solid var(--line); }
.transport-controls { display: flex; align-items: center; gap: 5px; }
.transport-btn { height: 29px; min-width: 29px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 5px; background: rgba(255,255,255,.025); color: #b5c7c2; font-size: 11px; cursor: pointer; transition: .18s ease; }
.transport-btn:hover { border-color: rgba(115,225,199,.45); color: var(--teal); }
.transport-btn.primary { min-width: 74px; color: #071b1a; background: var(--teal); border-color: var(--teal); font-weight: 800; }
.transport-btn.primary:hover { background: #a0f0db; }
.time-readout { min-width: 66px; display: flex; flex-direction: column; gap: 3px; }
.time-label, .speed-control label { color: #698087; font-size: 7px; letter-spacing: .13em; font-weight: 800; }
.time-readout strong { font-size: 12px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.speed-control { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 140px; }
.speed-control input { flex: 1; width: 75px; margin: 0; }
.speed-control output { width: 29px; color: var(--teal); font-size: 9px; font-variant-numeric: tabular-nums; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.metric-card { min-width: 0; padding: 11px 12px 10px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(135deg, rgba(16,31,42,.92), rgba(9,21,29,.96)); }
.metric-label { display: flex; justify-content: space-between; gap: 5px; color: #8ca3a4; font-size: 7px; letter-spacing: .09em; font-weight: 800; white-space: nowrap; }
.metric-label span { color: #54716e; font-family: Georgia,serif; font-size: 10px; font-style: italic; }
.metric-value { margin-top: 7px; font-size: clamp(17px,1.7vw,22px); line-height: 1; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value small { font-size: 9px; font-weight: 500; color: #8ca3a4; letter-spacing: 0; }
.metric-foot { margin-top: 7px; color: #5d747a; font-size: 7px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insight-panel { display: flex; flex-direction: column; }
.process-list { padding: 12px 0 9px; display: grid; gap: 13px; }
.process-item { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.process-number { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(115,225,199,.08); color: var(--teal); font-size: 8px; font-weight: 800; }
.process-item h3 { margin: 1px 0 4px; font-size: 11px; font-weight: 700; }
.process-item p { margin: 0; color: #81979a; font-size: 9px; line-height: 1.45; }
.event-status { margin-top: auto; padding: 12px; border: 1px solid rgba(115,225,199,.18); border-radius: 8px; background: linear-gradient(135deg, rgba(29,68,65,.22), rgba(10,26,32,.55)); }
.event-status-head { display: flex; align-items: center; gap: 7px; color: #6e9290; font-size: 7px; letter-spacing: .13em; font-weight: 800; }
.event-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(115,225,199,.4); }
.event-status strong { display: block; margin-top: 9px; font-size: 12px; font-weight: 700; }
.event-status p { color: #81979a; font-size: 8px; line-height: 1.45; margin: 5px 0 10px; }
.event-progress { height: 4px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
.event-progress span { display: block; width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#3b9f91,#83e7ca); transition: width .25s ease; }
.event-progress-label { margin-top: 6px; display: flex; justify-content: space-between; color: #617c7e; font-size: 7px; letter-spacing: .08em; }
.event-progress-label strong { margin: 0; color: var(--teal); font-size: 8px; }
.mini-readout { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0 0; color: #71898d; font-size: 7px; letter-spacing: .07em; }
.mini-readout strong { color: #b8ccc5; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lower-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); gap: 12px; margin-top: 13px; }
.science-panel { padding: 0 15px; }
.science-panel details summary { min-height: 58px; display: flex; align-items: center; gap: 11px; cursor: pointer; list-style: none; }
.science-panel details summary::-webkit-details-marker { display: none; }
.summary-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: rgba(115,225,199,.08); color: var(--teal); font-size: 18px; }
.science-panel summary strong { display: block; font-size: 11px; }
.science-panel summary small { display: block; color: #71888c; font-size: 8px; margin-top: 3px; }
.summary-chevron { margin-left: auto; color: #78918e; font-size: 17px; transition: transform .2s ease; }
.science-panel details[open] .summary-chevron { transform: rotate(180deg); }
.science-content { border-top: 1px solid var(--line); padding: 13px 0 15px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.equation-card { padding: 10px; border: 1px solid rgba(157,186,194,.10); border-radius: 7px; background: rgba(255,255,255,.018); }
.equation-title { color: var(--teal); font-size: 7px; letter-spacing: .1em; font-weight: 800; }
.equation { margin: 10px 0 8px; color: #e0e9e4; font-family: Georgia,serif; font-size: 14px; line-height: 1.4; }
.equation span { white-space: nowrap; }
.equation-card p { color: #80979a; font-size: 8px; line-height: 1.5; margin: 0; }
.science-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.science-facts div { padding: 8px 10px; background: #0b1922; display: flex; justify-content: space-between; gap: 8px; }
.science-facts span { color: #71878b; font-size: 7px; letter-spacing: .08em; }
.science-facts strong { color: #c5d4ce; font-size: 8px; font-weight: 650; white-space: nowrap; }
.validation-card, .limitations-card { grid-column: 1 / -1; border: 1px solid rgba(115,225,199,.18); border-radius: 7px; padding: 11px; background: rgba(21,54,52,.16); }
.validation-heading { display: flex; align-items: center; justify-content: space-between; color: #78a59c; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.validation-pass { padding: 3px 6px; border-radius: 4px; color: #8be6c7; background: rgba(115,225,199,.10); }
.validation-title { margin: 8px 0; font-size: 10px; font-weight: 700; }
.validation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.validation-grid div { display: flex; flex-direction: column; gap: 4px; }
.validation-grid span { color: #6c8987; font-size: 7px; letter-spacing: .1em; }
.validation-grid strong { font-size: 12px; color: #d5e6de; font-variant-numeric: tabular-nums; }
.validation-card p { color: #7f9697; font-size: 8px; line-height: 1.45; margin: 8px 0 0; }
.limitations-card { background: rgba(255,255,255,.014); border-color: var(--line); }
.limitations-card > strong { font-size: 9px; }
.limitations-card ul { margin: 7px 0 0; padding-left: 15px; color: #82979a; font-size: 8px; line-height: 1.55; }
.legend-panel { padding: 15px; }
.legend-panel h2 { margin: 6px 0 13px; font-size: 14px; letter-spacing: -.02em; }
.legend-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(157,186,194,.08); }
.legend-symbol { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; }
.sediment-symbol { color: var(--sand); background: rgba(203,181,139,.10); }
.water-symbol { color: #75c9df; background: rgba(85,180,206,.10); }
.breach-symbol { color: var(--teal); background: rgba(115,225,199,.10); }
.legend-row strong { display: block; font-size: 9px; }
.legend-row small { display: block; color: #789095; font-size: 8px; line-height: 1.4; margin-top: 3px; }
.data-tag-row { display: flex; gap: 5px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.data-tag { border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 6px; color: #77928e; font-size: 7px; letter-spacing: .07em; font-weight: 750; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 17px 2px 0; color: #536a70; font-size: 8px; letter-spacing: .06em; }
.page-footer i { color: var(--teal); font-style: normal; padding: 0 4px; }
.page-footer span:last-child { text-align: right; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
body.embed .topbar, body.embed .intro-row, body.embed .lower-grid, body.embed .page-footer { display: none; }
body.embed .page-content { padding: 8px; }
body.embed .workbench { grid-template-columns: 230px minmax(0,1fr) 220px; }
body.embed .viewport { height: min(70vh, 650px); }
@media (max-width: 1320px) {
  .workbench { grid-template-columns: 235px minmax(400px,1fr) 230px; }
  .page-content { padding-left: 18px; padding-right: 18px; }
  .control-panel, .insight-panel { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 1080px) {
  .workbench { grid-template-columns: 230px minmax(0,1fr); }
  .insight-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .insight-panel .panel-heading { grid-column: 1 / -1; }
  .process-list { grid-row: span 3; }
  .event-status { margin-top: 12px; }
  .mini-readout { align-self: end; }
  .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar { height: 52px; padding: 0 14px; }
  .topbar-status, .topbar-divider { display: none; }
  .page-content { padding: 18px 12px 16px; }
  .intro-row { align-items: flex-start; margin-bottom: 15px; }
  .phenomenon-card { display: none; }
  h1 { font-size: 34px; }
  .subtitle { font-size: 13px; }
  .intro-description { font-size: 11px; }
  .workbench { display: flex; flex-direction: column; gap: 10px; }
  .simulation-column { order: 1; }
  .control-panel { order: 2; }
  .insight-panel { order: 3; display: flex; }
  .viewport { height: 390px; min-height: 330px; }
  .simulation-toolbar { min-height: 40px; padding: 0 9px; }
  .toolbar-subtitle, .toolbar-separator { display: none; }
  .toolbar-title { font-size: 8px; }
  .toolbar-actions { gap: 3px; }
  .quality-btn { padding: 0 5px; font-size: 7px; }
  .scene-legend { top: auto; right: 8px; bottom: 34px; padding: 6px 7px; font-size: 7px; }
  .scene-label { display: none; }
  .scene-top-left { top: 8px; left: 8px; }
  .scene-chip { font-size: 7px; padding: 5px 6px; }
  .scene-coordinate { font-size: 7px; }
  .simulation-controls { gap: 8px; padding: 7px 8px; }
  .transport-btn.primary { min-width: 66px; }
  .time-readout { min-width: 48px; }
  .speed-control { min-width: 105px; gap: 5px; }
  .speed-control label { display: none; }
  .speed-control input { width: 60px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .metric-card { padding: 9px; }
  .metric-label { font-size: 7px; }
  .metric-value { font-size: 20px; }
  .insight-panel { display: flex; }
  .process-list { grid-row: auto; grid-template-columns: 1fr 1fr; gap: 12px 9px; }
  .event-status { margin-top: 5px; }
  .science-content { grid-template-columns: 1fr; }
  .equation-card, .science-facts, .validation-card, .limitations-card { grid-column: 1; }
  .science-facts { grid-template-columns: 1fr 1fr; }
  .page-footer { flex-direction: column; font-size: 7px; }
  .page-footer span:last-child { text-align: left; }
}
@media (max-width: 390px) {
  .page-content { padding-left: 9px; padding-right: 9px; }
  .viewport { height: 350px; }
  .toolbar-title { letter-spacing: .07em; }
  .scene-legend { bottom: 29px; }
  .transport-btn { min-width: 27px; padding: 0 7px; }
  .time-readout { min-width: 44px; }
  .speed-control { min-width: 94px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
