:root {
  color-scheme: dark;
  --bg: #07131b;
  --panel: #0d1c25;
  --panel-2: #10232d;
  --panel-3: #132a35;
  --line: rgba(163, 190, 194, .13);
  --line-strong: rgba(163, 190, 194, .22);
  --text: #e6f0ee;
  --muted: #8ea4a6;
  --subtle: #637a7f;
  --cyan: #75d5d1;
  --cyan-bright: #9af0e3;
  --amber: #e2b77c;
  --coral: #e58f77;
  --green: #9bbf91;
  --radius: 13px;
  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; overflow-x: 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 56% -20%, rgba(36, 84, 87, .18), transparent 55%), var(--bg); }
.topbar { min-height: 82px; padding: 14px 22px; display: grid; grid-template-columns: 245px 1fr 210px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(7, 19, 27, .94); }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; border: 1px solid rgba(117, 213, 209, .48); border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-7deg); background: rgba(117, 213, 209, .06); }
.brand-mark span { display: block; width: 3px; border-radius: 5px; background: var(--cyan); transform: skewY(-22deg); }
.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: 12px; opacity: .72; }
.brand-name { font-size: 10px; font-weight: 800; letter-spacing: .17em; white-space: nowrap; }
.brand-dot { color: var(--cyan); padding: 0 3px; }
.brand-subtitle { margin-top: 4px; color: var(--subtle); font-size: 8px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }
.top-title { border-left: 1px solid var(--line); padding-left: 20px; }
.eyebrow { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.top-title h1 { margin: 3px 0 1px; font-size: 21px; line-height: 1.1; letter-spacing: -.035em; font-weight: 650; }
.top-title p { margin: 0; color: var(--muted); font-size: 11px; }
.top-meta { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid rgba(117, 213, 209, .2); border-radius: 99px; color: var(--cyan-bright); font-size: 8px; font-weight: 800; letter-spacing: .13em; background: rgba(117, 213, 209, .06); }
.live-pill i, .location-dot, .timeline-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(117, 213, 209, .8); }
.model-code { color: var(--subtle); font-size: 9px; letter-spacing: .13em; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 264px minmax(380px, 1fr) 286px; gap: 10px; padding: 10px; }
.panel { min-width: 0; background: linear-gradient(160deg, rgba(17, 37, 47, .96), rgba(10, 25, 34, .97)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.control-panel, .data-panel { padding: 16px 15px 14px; display: flex; flex-direction: column; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; }
.panel-heading h2 { margin: 5px 0 0; font-size: 15px; font-weight: 620; letter-spacing: -.02em; }
.panel-index { color: #536d73; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding-top: 2px; }
.section-label { color: var(--subtle); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.preset-block { margin-bottom: 17px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.preset-button { min-height: 46px; border: 1px solid var(--line); background: rgba(255,255,255,.018); border-radius: 8px; padding: 7px 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 650; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.preset-button:hover { border-color: var(--line-strong); color: var(--text); }
.preset-button.active { color: var(--cyan-bright); border-color: rgba(117,213,209,.42); background: rgba(117,213,209,.07); }
.preset-swatch { width: 23px; height: 4px; border-radius: 9px; display: block; }
.preset-swatch.stable { background: #9ab99b; }
.preset-swatch.aggrading { background: #d7b17a; }
.preset-swatch.avulsion { background: #e18c73; }
.control-list { display: flex; flex-direction: column; gap: 13px; }
.control-row label { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #c4d2d0; font-size: 10px; font-weight: 600; }
.control-row output { color: var(--cyan-bright); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { appearance: none; width: 100%; height: 15px; margin: 5px 0 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(90deg, rgba(117,213,209,.75), rgba(117,213,209,.18)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 8px; background: linear-gradient(90deg, rgba(117,213,209,.75), rgba(117,213,209,.18)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #b8f3e9; border: 2px solid #27565a; margin-top: -4px; box-shadow: 0 0 0 3px rgba(117,213,209,.11); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #b8f3e9; border: 2px solid #27565a; box-shadow: 0 0 0 3px rgba(117,213,209,.11); }
.range-ends { display: flex; justify-content: space-between; color: #62787d; font-size: 8px; margin-top: -1px; }
.panel-divider { height: 1px; background: var(--line); margin: 17px 0 13px; }
.transport-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.speed-value { margin-top: 4px; display: flex; align-items: baseline; gap: 7px; }
.speed-value strong { color: var(--cyan-bright); font-size: 15px; font-variant-numeric: tabular-nums; }
.speed-value span { color: var(--subtle); font-size: 8px; }
.transport-row input { width: 86px; flex: 0 0 86px; }
.action-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.action-button { min-height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255,255,255,.025); color: #b7c8c7; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
.action-button:hover { background: rgba(255,255,255,.07); border-color: rgba(117,213,209,.35); }
.action-button:active { transform: translateY(1px); }
.action-button.primary { background: rgba(117,213,209,.13); border-color: rgba(117,213,209,.4); color: var(--cyan-bright); }
.button-icon { font-size: 12px; line-height: 1; }
.keyboard-hint { margin-top: 11px; color: #657b80; font-size: 8px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border: 1px solid rgba(163,190,194,.18); border-radius: 4px; color: #9ab0b0; background: rgba(255,255,255,.03); font-family: inherit; font-size: 8px; }
.scene-panel { min-width: 0; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #08151d; }
.scene-toolbar { height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(12,28,37,.92); }
.scene-location { display: flex; align-items: center; gap: 8px; color: #9eb2b1; font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.scene-tools { display: flex; align-items: center; gap: 5px; }
.tool-button { height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); color: #91a7a8; font-size: 8px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.tool-button:hover, .tool-button.selected { border-color: rgba(117,213,209,.35); color: var(--cyan-bright); background: rgba(117,213,209,.07); }
.tool-button span { font-size: 7px; }
.scene-wrap { position: relative; flex: 1; min-height: 460px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #183b43, #0a1d27 72%); }
.scene-container { position: absolute; inset: 0; }
.scene-container canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,12,17,.35), transparent 22%, transparent 72%, rgba(3,12,17,.45)), linear-gradient(90deg, rgba(3,12,17,.16), transparent 20%, transparent 80%, rgba(3,12,17,.18)); }
.scene-caption { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.scene-caption.top-left { top: 15px; left: 17px; }
.caption-kicker { color: rgba(158,213,207,.8); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.scene-caption strong { font-size: 11px; font-weight: 650; color: #e0ece8; }
.scene-caption.bottom-left { left: 16px; bottom: 36px; flex-direction: row; align-items: center; gap: 6px; color: #b6c6c3; font-size: 8px; }
.scale-bar { display: inline-flex; height: 7px; align-items: stretch; margin-right: 1px; }
.scale-bar i { width: 9px; border: 1px solid rgba(218,236,230,.8); border-right: 0; }
.scale-bar i:last-child { border-right: 1px solid rgba(218,236,230,.8); }
.scale-bar i:nth-child(even) { background: rgba(218,236,230,.8); }
.vertical-scale { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(218,236,230,.35); color: rgba(218,236,230,.66); font-size: 7px; letter-spacing: .1em; }
.annotation-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.annotation { position: absolute; display: flex; align-items: center; gap: 6px; white-space: nowrap; transform: translate(-50%, -100%); opacity: .92; transition: opacity .2s; }
.annotation.hidden { opacity: 0; }
.annotation-line { display: block; width: 18px; height: 1px; background: rgba(154,240,227,.82); box-shadow: 0 0 8px rgba(117,213,209,.4); }
.annotation-text { padding: 4px 6px; border: 1px solid rgba(154,240,227,.23); border-radius: 4px; background: rgba(5,19,25,.68); color: #d7e9e4; font-size: 7px; font-weight: 800; letter-spacing: .11em; backdrop-filter: blur(5px); }
.annotation-text b { color: var(--cyan-bright); margin-right: 4px; }
.scene-footer-left, .scene-footer-right { position: absolute; bottom: 12px; z-index: 2; color: rgba(195,212,207,.7); font-size: 7px; font-weight: 800; letter-spacing: .13em; pointer-events: none; }
.scene-footer-left { left: 16px; display: flex; align-items: center; gap: 6px; }
.scene-footer-right { right: 14px; }
.scene-footer-right span { color: var(--cyan); padding: 0 4px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; margin-left: 4px; }
.legend-dot.water { background: #56c5c9; box-shadow: 0 0 7px rgba(86,197,201,.7); }
.legend-dot.sediment { background: #d4a26e; }
.legend-dot.terrain { background: #85916f; }
.timeline-strip { height: 40px; display: grid; grid-template-columns: 116px minmax(30px,1fr) 112px 78px; align-items: center; gap: 11px; padding: 0 14px; border-top: 1px solid var(--line); background: rgba(12,28,37,.95); }
.timeline-label { display: flex; align-items: center; gap: 7px; color: #91a9a9; font-size: 7px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.timeline-pulse { width: 5px; height: 5px; }
.timeline-track { height: 3px; position: relative; border-radius: 9px; background: rgba(146,173,173,.17); overflow: visible; }
.timeline-fill { width: 6%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4b9c9a, #d4a26e); transition: width .25s; }
.timeline-marker { position: absolute; top: 50%; left: 6%; width: 8px; height: 8px; border: 2px solid #e1c08e; border-radius: 50%; background: #142e34; transform: translate(-50%,-50%); box-shadow: 0 0 9px rgba(226,183,124,.55); transition: left .25s; }
.timeline-state { color: var(--amber); font-size: 7px; font-weight: 800; letter-spacing: .12em; text-align: right; white-space: nowrap; }
.sim-time { color: var(--subtle); font-size: 8px; text-align: right; white-space: nowrap; }
.sim-time strong { color: #d5e2dd; font-variant-numeric: tabular-nums; }
.data-panel { padding: 16px 14px 13px; }
.data-panel .panel-heading { margin-bottom: 12px; }
.status-card { border: 1px solid rgba(226,183,124,.24); border-radius: 9px; background: linear-gradient(120deg, rgba(226,183,124,.09), rgba(226,183,124,.025)); padding: 10px 11px 9px; margin-bottom: 14px; }
.status-head { display: flex; align-items: center; justify-content: space-between; color: #9caaa3; font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.status-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(226,183,124,.6); }
.status-card strong { display: block; margin-top: 5px; color: #edc28a; font-size: 12px; letter-spacing: .05em; }
.status-card p { margin: 4px 0 0; color: #9aaba8; font-size: 9px; line-height: 1.45; }
.readout-list { display: flex; flex-direction: column; gap: 11px; }
.readout-item { min-width: 0; }
.readout-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #9aaead; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.data-tag { color: #637e80; font-size: 6px; letter-spacing: .11em; }
.readout-value { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; }
.readout-value strong { color: #e5efeb; font-size: 21px; line-height: 1.1; font-weight: 620; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readout-value small { color: #90aaa9; font-size: 9px; }
.readout-track { height: 2px; margin-top: 5px; background: rgba(150,180,176,.12); border-radius: 9px; overflow: hidden; }
.readout-track i { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4b9998, #9bd8c6); transition: width .25s; }
.highlight-readout .readout-value strong { color: var(--cyan-bright); }
.highlight-readout .readout-track i { background: linear-gradient(90deg, #4d9e9b, #e2b77c); }
.readout-note { margin: 4px 0 0; color: #657f81; font-size: 7px; line-height: 1.35; }
.compact-readout { border-top: 1px solid var(--line); padding-top: 8px; margin-top: -2px; }
.compact-readout .readout-value strong { font-size: 17px; }
.validation-card { margin-top: 13px; border: 1px solid rgba(117,213,209,.18); border-radius: 9px; padding: 10px 10px 9px; background: rgba(117,213,209,.035); }
.validation-head { display: flex; align-items: center; justify-content: space-between; color: #9db2af; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.textbook-tag { color: var(--cyan-bright); border: 1px solid rgba(117,213,209,.24); border-radius: 4px; padding: 2px 4px; font-size: 6px; }
.validation-card > strong { display: block; margin-top: 7px; font-size: 9px; font-weight: 650; color: #d4e4df; }
.validation-equation { margin-top: 5px; color: #a9d7ce; font-family: Georgia, serif; font-size: 12px; letter-spacing: .01em; }
.validation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.validation-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.validation-grid small { width: 100%; color: #668285; font-size: 6px; font-weight: 800; letter-spacing: .12em; }
.validation-grid b { color: #d9e9e2; font-size: 12px; font-variant-numeric: tabular-nums; }
.validation-grid em { color: #789394; font-size: 7px; font-style: normal; }
.validation-difference { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); color: #6f898b; font-size: 6px; font-weight: 800; letter-spacing: .12em; }
.validation-difference b { color: var(--cyan-bright); font-size: 9px; font-variant-numeric: tabular-nums; }
.validation-card p { margin: 6px 0 0; color: #72888a; font-size: 7px; line-height: 1.4; }
.science-details { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.015); overflow: hidden; }
.science-details summary { min-height: 34px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; list-style: none; color: #c5d6d1; font-size: 9px; font-weight: 700; cursor: pointer; }
.science-details summary::-webkit-details-marker { display: none; }
.science-details summary i { margin-right: 7px; color: var(--cyan); font-size: 13px; font-style: normal; }
.details-chevron { color: #829b9a; font-size: 13px; transition: transform .2s; }
.science-details[open] .details-chevron { transform: rotate(180deg); }
.science-content { max-height: 380px; overflow: auto; padding: 0 10px 12px; border-top: 1px solid var(--line); scrollbar-color: #36565a transparent; scrollbar-width: thin; }
.science-content h3 { margin: 11px 0 6px; color: var(--cyan-bright); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.science-content p, .science-content li { color: #9bafab; font-size: 8px; line-height: 1.55; }
.science-content p { margin: 5px 0 8px; }
.science-content ul { padding-left: 14px; margin: 5px 0 0; }
.science-content li { margin: 4px 0; }
.science-chain { list-style: none; margin: 0; padding: 0; counter-reset: chain; }
.science-chain li { display: grid; grid-template-columns: 86px 1fr; gap: 6px; margin: 6px 0; }
.science-chain b { color: #e3c28f; }
.science-chain span { color: #9bafab; }
.equation-block { padding: 6px 7px; border-radius: 5px; background: rgba(117,213,209,.06); color: #c2e6dc; font-family: Georgia, serif; font-size: 11px; }
.footer-bar { min-height: 27px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); color: #60777c; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.context-loss { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(3,12,17,.78); backdrop-filter: blur(7px); }
.context-loss[hidden] { display: none; }
.context-card { max-width: 280px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: #10232d; text-align: center; }
.context-card strong { font-size: 14px; }
.context-card p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.context-card button { border: 1px solid rgba(117,213,209,.4); border-radius: 7px; padding: 8px 12px; background: rgba(117,213,209,.1); color: var(--cyan-bright); font-size: 10px; cursor: pointer; }
.embed-mode .topbar, .embed-mode .footer-bar { display: none; }
.embed-mode .workspace { padding: 0; gap: 0; grid-template-columns: 245px minmax(0,1fr) 270px; }
.embed-mode .panel, .embed-mode .scene-panel { border-radius: 0; }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }

@media (max-width: 1160px) {
  .workspace { grid-template-columns: 245px minmax(320px,1fr) 260px; gap: 8px; padding: 8px; }
  .control-panel, .data-panel { padding-left: 12px; padding-right: 12px; }
  .topbar { grid-template-columns: 215px 1fr 160px; }
  .timeline-strip { grid-template-columns: 105px minmax(25px,1fr) 96px 64px; gap: 8px; }
}
@media (max-width: 920px) {
  .workspace { grid-template-columns: 225px minmax(0,1fr); grid-template-rows: minmax(500px, 1fr) auto; }
  .data-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr 1fr; gap: 12px; align-items: start; }
  .data-panel .panel-heading { grid-column: 1; }
  .status-card { grid-column: 1; margin-top: -8px; }
  .readout-list { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 15px; }
  .validation-card { grid-column: 3; grid-row: 1; margin-top: 0; }
  .science-details { grid-column: 3; grid-row: 2; margin-top: -3px; }
  .scene-panel { min-height: 520px; }
  .control-panel { grid-row: 1 / span 2; }
  .embed-mode .workspace { grid-template-columns: 225px minmax(0,1fr); }
  .embed-mode .data-panel { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .topbar { min-height: 68px; grid-template-columns: 1fr auto; padding: 10px 13px; gap: 8px; }
  .brand-lockup { gap: 8px; }
  .brand-mark { width: 27px; height: 27px; }
  .top-title { grid-column: 1; grid-row: 2; border-left: 0; padding-left: 0; margin-top: 2px; }
  .top-title h1 { font-size: 18px; }
  .top-title p { font-size: 10px; }
  .top-meta { grid-column: 2; grid-row: 1 / span 2; }
  .model-code { display: none; }
  .workspace { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
  .scene-panel { order: 0; min-height: 440px; height: 58vh; max-height: 620px; }
  .scene-wrap { min-height: 0; }
  .control-panel { order: 1; }
  .data-panel { order: 2; display: flex; }
  .control-panel, .data-panel { padding: 13px; }
  .control-panel .panel-heading { margin-bottom: 10px; }
  .preset-block { margin-bottom: 13px; }
  .control-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 14px; }
  .control-row label { font-size: 9px; }
  .range-ends { font-size: 7px; }
  .panel-divider { margin: 12px 0 10px; }
  .transport-row { justify-content: flex-start; }
  .transport-row input { flex: 1; width: auto; }
  .action-grid { margin-top: 9px; }
  .keyboard-hint { display: none; }
  .data-panel .panel-heading { margin-bottom: 10px; }
  .status-card { margin: 0 0 12px; }
  .readout-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 14px; }
  .validation-card { margin-top: 13px; }
  .science-details { margin-top: 9px; }
  .footer-bar { padding: 8px 12px; min-height: 34px; font-size: 6px; flex-wrap: wrap; }
  .scene-toolbar { height: 38px; padding: 0 9px; }
  .scene-location { font-size: 7px; letter-spacing: .08em; }
  .tool-button { height: 24px; padding: 0 6px; }
  .tool-button span { display: none; }
  .scene-caption.top-left { top: 11px; left: 11px; }
  .scene-caption strong { font-size: 9px; }
  .scene-caption.bottom-left { left: 10px; bottom: 33px; }
  .vertical-scale { display: none; }
  .scene-footer-left { left: 10px; bottom: 10px; font-size: 6px; }
  .scene-footer-right { right: 9px; bottom: 10px; font-size: 6px; }
  .timeline-strip { height: 36px; grid-template-columns: 88px minmax(20px,1fr) 80px 54px; gap: 6px; padding: 0 9px; }
  .timeline-label { font-size: 6px; gap: 5px; }
  .timeline-state { font-size: 6px; }
  .sim-time { font-size: 7px; }
  .annotation-text { font-size: 6px; padding: 3px 4px; }
  .annotation-line { width: 10px; }
  .embed-mode .workspace { display: flex; flex-direction: column; }
}
@media (max-width: 390px) {
  .brand-name { font-size: 9px; }
  .brand-subtitle { font-size: 7px; }
  .top-title h1 { font-size: 17px; }
  .scene-panel { height: 56vh; min-height: 410px; }
  .scene-location { max-width: 145px; overflow: hidden; text-overflow: ellipsis; }
  .timeline-strip { grid-template-columns: 78px minmax(15px,1fr) 68px 46px; gap: 4px; }
  .control-list { gap: 10px 10px; }
  .readout-value strong { font-size: 19px; }
}
.control-panel, .data-panel { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #34545a transparent; }
.status-card[data-state="stable"] { border-color: rgba(155,191,145,.25); background: rgba(155,191,145,.06); }
.status-card[data-state="stable"] strong { color: #b8d3a9; }
.status-card[data-state="mobilising"] strong, .status-card[data-state="aggrading"] strong { color: #e5c28c; }
.status-card[data-state="capture-developing"] strong, .status-card[data-state="avulsion-in-progress"] strong, .status-card[data-state="avulsion"] strong { color: var(--cyan-bright); }
.status-card[data-state="capture-developing"], .status-card[data-state="avulsion-in-progress"], .status-card[data-state="avulsion"] { border-color: rgba(117,213,209,.28); background: rgba(117,213,209,.06); }
