:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: #0d1a28;
  --panel-2: #101f2e;
  --panel-3: #142638;
  --line: rgba(151, 187, 211, .15);
  --line-strong: rgba(151, 187, 211, .25);
  --text: #e8f2f8;
  --muted: #8ba3b4;
  --dim: #5e788a;
  --cyan: #6ddcff;
  --cyan-2: #39bde8;
  --ice: #b9edff;
  --amber: #e6b87b;
  --danger: #ef9b83;
  --radius: 12px;
  --space: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 55% -25%, #193047 0, #0a1624 40%, #07111d 78%); min-height: 100vh; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-wrap { width: min(1540px, 100%); margin: 0 auto; padding: 0 32px 22px; }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(148, 180, 202, .12); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: #d9edf7; text-decoration: none; font-size: 12px; letter-spacing: .17em; font-weight: 800; }
.brand-light { color: var(--cyan); font-weight: 500; }
.brand-mark { width: 21px; height: 21px; display: flex; align-items: end; gap: 3px; padding: 3px; border: 1px solid rgba(109, 220, 255, .45); border-radius: 6px; transform: skewY(-10deg); }
.brand-mark span { width: 3px; background: var(--cyan); border-radius: 2px; box-shadow: 0 0 9px rgba(109, 220, 255, .4); }
.brand-mark span:nth-child(1) { height: 7px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 12px; }
.brand-mark span:nth-child(3) { height: 16px; opacity: .8; }
.topbar-meta { display: flex; gap: 20px; align-items: center; }
.top-chip, .status { font-size: 9px; letter-spacing: .15em; color: var(--muted); font-weight: 700; }
.top-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; }
.status { display: flex; align-items: center; gap: 8px; }
.status-dot, .status-pulse { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #e5b879; box-shadow: 0 0 10px rgba(229,184,121,.45); }
.status-dot.live, .status-pulse { background: #61d5ae; box-shadow: 0 0 10px rgba(97,213,174,.55); }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 23px 0 22px; }
.eyebrow, .panel-kicker, .stage-kicker, .seed-label { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .19em; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.eyebrow-line { width: 22px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px rgba(109,220,255,.6); }
h1 { margin: 0; font-size: clamp(24px, 3vw, 37px); line-height: 1.12; letter-spacing: -.045em; font-weight: 650; }
h1 em { font-weight: 350; color: #a9c7d9; font-style: normal; }
.title-colon { color: var(--cyan); }
.intro-copy p { color: var(--muted); font-size: 12px; margin: 8px 0 0; max-width: 680px; line-height: 1.55; }
.intro-side { min-width: 126px; padding: 0 2px 2px 18px; border-left: 1px solid var(--line-strong); }
.seed-label { font-size: 8px; color: var(--dim); }
.seed-number { font-size: 22px; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 3px 0 6px; color: #d7edf8; }
.difficulty { display: flex; align-items: center; gap: 6px; font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.difficulty-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .82fr); gap: 16px; align-items: stretch; }
.visual-column { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stage-shell { border: 1px solid rgba(133, 175, 201, .2); border-radius: var(--radius); overflow: hidden; background: #081522; box-shadow: 0 20px 60px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.035); }
.stage { position: relative; height: clamp(390px, 39vw, 510px); min-height: 390px; overflow: hidden; background: radial-gradient(ellipse at 52% 42%, #102b3c 0, #091927 57%, #07121e 100%); }
.webgl-canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; }
.stage-topline { position: absolute; z-index: 3; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: start; pointer-events: none; }
.stage-heading { display: flex; flex-direction: column; gap: 4px; }
.stage-kicker { font-size: 8px; color: var(--cyan); }
.stage-subtitle { color: #8ca9ba; font-size: 8px; letter-spacing: .12em; font-weight: 650; }
.stage-badges { display: flex; gap: 6px; }
.micro-badge { font-size: 7px; letter-spacing: .12em; color: #9ab3c4; border: 1px solid rgba(150,188,210,.2); background: rgba(8,20,31,.65); padding: 5px 7px; border-radius: 4px; backdrop-filter: blur(8px); }
.micro-badge.cyan { color: #8be4ff; border-color: rgba(109,220,255,.3); }
.scene-callout { position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px; color: rgba(195,224,238,.84); font-size: 7px; font-weight: 800; letter-spacing: .14em; pointer-events: none; text-shadow: 0 1px 6px #06111b; }
.callout-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.scene-callout i { display: block; width: 26px; height: 1px; background: rgba(109,220,255,.7); }
.callout-water { top: 37%; left: 5%; }
.callout-front { top: 65%; left: 7%; }
.callout-lens { top: 54%; right: 5%; flex-direction: row-reverse; }
.scene-caption { position: absolute; z-index: 3; bottom: 16px; left: 16px; display: flex; align-items: center; gap: 8px; color: #829bab; font-size: 7px; font-weight: 700; letter-spacing: .15em; pointer-events: none; }
.caption-mark { width: 6px; height: 6px; border: 1px solid var(--cyan); transform: rotate(45deg); }
.caption-separator { color: #405b6d; }
.stage-controls-hint { position: absolute; z-index: 3; right: 15px; bottom: 16px; color: #718b9c; font-size: 7px; font-weight: 700; letter-spacing: .1em; pointer-events: none; }
.mouse-icon { color: var(--cyan); font-size: 12px; vertical-align: -1px; margin-right: 4px; }
.hint-divider { margin: 0 5px; color: #415c6d; }
.stage-overlay { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; background: rgba(5,14,23,.9); text-align: center; }
.stage-overlay strong { font-size: 13px; color: #d9edf7; }
.stage-overlay span { color: #809bab; font-size: 10px; max-width: 300px; line-height: 1.5; }
.loading-overlay { z-index: 5; }
.loader-ring { width: 28px; height: 28px; border: 2px solid rgba(109,220,255,.18); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(239,155,131,.4); color: var(--danger); border-radius: 50%; font-size: 19px; }
.hidden { display: none !important; }
.stage-footer { min-height: 37px; display: flex; justify-content: space-between; align-items: center; padding: 0 13px 0 16px; border-top: 1px solid rgba(133,175,201,.14); background: #0a1724; }
.stage-footer-left, .stage-footer-right { display: flex; align-items: center; gap: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; color: #8ea6b6; font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.legend-swatch { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.water-swatch { background: #4bd8ff; box-shadow: 0 0 7px rgba(75,216,255,.7); }
.ice-swatch { background: #c6efff; }
.front-swatch { background: #4aaecb; }
.stage-footer-right { gap: 8px; color: #718b9c; font-size: 7px; letter-spacing: .13em; font-weight: 700; }
.icon-button { width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 5px; background: #122536; color: var(--cyan); cursor: pointer; font-size: 16px; line-height: 1; }
.icon-button:hover { background: #1a3548; }
.mechanism-ribbon { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 25px; padding: 4px 8px; color: #8ca6b6; font-size: 7px; font-weight: 800; letter-spacing: .1em; border: 1px solid rgba(109,220,255,.10); border-radius: 6px; background: rgba(13,31,45,.55); white-space: nowrap; }
.mechanism-ribbon span { color: var(--cyan); font-size: 6px; letter-spacing: .15em; }
.mechanism-ribbon i { color: #4f90a8; font-style: normal; font-size: 10px; }
.readouts { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
.readout-card { min-width: 0; background: linear-gradient(145deg, rgba(17,34,49,.95), rgba(10,24,37,.95)); border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 9px; }
.readout-label { color: #7892a4; font-size: 7px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.readout-value { color: #e2f3fb; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.4; font-weight: 650; letter-spacing: -.025em; margin-top: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.readout-foot { color: #708a9c; font-size: 7px; margin-top: 2px; min-height: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-track { height: 2px; background: #233a4b; margin-top: 8px; border-radius: 3px; overflow: hidden; }
.mini-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #37bde8, #8deaff); box-shadow: 0 0 7px rgba(109,220,255,.5); transition: width .25s ease; }
.control-panel { min-width: 0; border: 1px solid rgba(133,175,201,.18); border-radius: var(--radius); background: linear-gradient(160deg, #0f1e2c, #0a1724 70%); padding: 15px 16px 12px; box-shadow: 0 20px 60px rgba(0,0,0,.15); display: flex; flex-direction: column; }
.panel-head, .validation-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.panel-kicker { font-size: 8px; color: #79cce4; }
.panel-head h2, .validation-head h2 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.025em; font-weight: 620; }
.panel-index { color: #607c8e; font-size: 8px; letter-spacing: .12em; padding-top: 4px; }
.preset-block { margin-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-label { display: flex; justify-content: space-between; color: #91aaba; font-size: 8px; font-weight: 800; letter-spacing: .12em; margin-bottom: 8px; }
.section-label span { color: #597487; font-size: 7px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.preset { min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 6px; text-align: left; padding: 7px 6px; border: 1px solid rgba(141,178,201,.16); background: #101f2d; border-radius: 7px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.preset:hover { border-color: rgba(109,220,255,.45); transform: translateY(-1px); }
.preset.selected { background: rgba(29,68,87,.42); border-color: rgba(109,220,255,.55); box-shadow: inset 0 0 0 1px rgba(109,220,255,.08); }
.preset-icon { flex: 0 0 18px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: rgba(109,220,255,.1); color: var(--cyan); font-size: 12px; }
.preset b { display: block; font-size: 8px; font-weight: 700; white-space: nowrap; }
.preset small { display: block; color: #7892a3; font-size: 6.5px; margin-top: 3px; line-height: 1.15; white-space: nowrap; }
.control-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 10px; padding: 12px 0 11px; }
.control-row { min-width: 0; }
.control-label { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; margin-bottom: 6px; }
.control-label label { color: #a7bdcb; font-size: 8px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.control-label output { color: #d7f2fb; font-size: 8px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type="range"] { appearance: none; width: 100%; height: 4px; border-radius: 5px; background: linear-gradient(90deg, #2c9ec3, #28465a); outline: none; cursor: pointer; display: block; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #c9f2ff; border: 2px solid #4bbfe4; box-shadow: 0 0 0 3px rgba(109,220,255,.12), 0 0 9px rgba(109,220,255,.35); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #c9f2ff; border: 2px solid #4bbfe4; box-shadow: 0 0 0 3px rgba(109,220,255,.12); }
.range-ends { display: flex; justify-content: space-between; margin-top: 5px; color: #5f7a8d; font-size: 6.5px; }
.lens-status { padding: 8px 9px; border-radius: 6px; background: rgba(24,54,63,.46); border: 1px solid rgba(87,178,166,.2); }
.lens-status-top { display: flex; align-items: center; gap: 7px; color: #8de0c4; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.lens-status-top .warning { color: #e9b27c; }
.lens-status-bottom { margin: 5px 0 0 14px; color: #7894a3; font-size: 7px; }
.lens-status-bottom b { color: #d7eef6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.transport-controls { margin-top: 11px; }
.transport-main { display: grid; grid-template-columns: 1.25fr 1fr 36px; gap: 6px; }
.primary-button, .secondary-button, .export-button { border-radius: 6px; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; font-size: 9px; font-weight: 750; }
.primary-button { background: linear-gradient(110deg, #218caf, #287d9e); color: #f1fbff; border: 1px solid rgba(115,225,255,.4); box-shadow: 0 5px 15px rgba(29,143,180,.17); min-height: 34px; }
.primary-button:hover { background: linear-gradient(110deg, #2ca6ca, #2b8ead); transform: translateY(-1px); }
.secondary-button { min-height: 34px; background: #142738; color: #c4d9e5; border: 1px solid rgba(143,181,203,.2); }
.secondary-button:hover, .export-button:hover { background: #1b3548; border-color: rgba(109,220,255,.35); }
.square-button { font-size: 16px; }
.transport-sub { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.transport-sub label { color: #6f899b; font-size: 6.5px; font-weight: 800; letter-spacing: .12em; }
.transport-sub select { min-width: 48px; height: 25px; padding: 0 5px; background: #102333; border: 1px solid var(--line-strong); border-radius: 5px; color: #cfe2ed; font-size: 8px; }
.export-button { margin-left: auto; height: 25px; padding: 0 9px; color: #8bdff6; background: #102a3a; border: 1px solid rgba(109,220,255,.25); font-size: 8px; }
.time-strip { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: #627e90; font-size: 7px; letter-spacing: .12em; border-top: 1px solid var(--line); }
.time-strip b { color: #c8e6f2; font-size: 10px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.time-strip-spacer { flex: 1; }
.keyboard-hint { color: #587184; font-size: 6px; letter-spacing: .04em; white-space: nowrap; }
.science-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .82fr); gap: 16px; margin-top: 16px; }
.science-panel, .validation-panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,26,39,.84); min-width: 0; }
.science-panel summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 13px 15px; }
.science-panel summary::-webkit-details-marker { display: none; }
.summary-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--cyan); background: rgba(109,220,255,.1); font-size: 17px; }
.science-panel summary b { display: block; font-size: 11px; font-weight: 700; }
.science-panel summary small { display: block; margin-top: 2px; color: #7893a4; font-size: 8px; }
.summary-chevron { margin-left: auto; color: #7694a6; font-size: 16px; transition: transform .2s; }
.science-panel[open] .summary-chevron { transform: rotate(180deg); }
.science-content { border-top: 1px solid var(--line); padding: 13px 14px 14px; }
.equation-card { padding: 10px 11px; background: #0c1b29; border: 1px solid rgba(141,178,201,.1); border-radius: 7px; margin-bottom: 8px; }
.equation-label { color: #7ecce4; font-size: 7px; letter-spacing: .13em; font-weight: 800; }
.equation { color: #e1f5fd; font-size: 15px; margin: 7px 0 5px; overflow-x: auto; }
.equation-card p { margin: 0; color: #8199a9; font-size: 8px; line-height: 1.55; }
.assumption-list { padding: 8px 2px 2px; color: #8fa6b5; font-size: 8px; line-height: 1.55; }
.assumption-list b { color: #b6cbd6; font-size: 7px; letter-spacing: .12em; }
.assumption-list ul { margin: 6px 0 0; padding-left: 16px; }
.assumption-list li { margin: 3px 0; }
.model-note { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); color: #6f899b; font-size: 7px; font-style: italic; }
.validation-panel { padding: 14px 15px; }
.validation-head h2 { font-size: 14px; }
.validation-tag { padding: 5px 6px; border: 1px solid rgba(109,220,255,.24); border-radius: 4px; color: #8dddf4; font-size: 6px; letter-spacing: .1em; white-space: nowrap; }
.validation-panel > p { color: #7f99a9; font-size: 8px; line-height: 1.5; margin: 9px 0 12px; }
.validation-table { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.validation-table > div { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(151,187,211,.08); gap: 8px; }
.validation-table > div:last-child { border-bottom: 0; }
.validation-table span { color: #7892a3; font-size: 7px; letter-spacing: .09em; font-weight: 750; }
.validation-table b { color: #d7edf7; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.validation-diff b { color: #82dfbe; }
.validation-foot { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: #7794a4; font-size: 7px; line-height: 1.4; }
.validation-check { display: grid; place-items: center; width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; background: rgba(97,213,174,.12); color: #75dcb7; font-size: 10px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 0; margin-top: 18px; border-top: 1px solid rgba(148,180,202,.1); color: #526d7e; font-size: 7px; letter-spacing: .12em; }
.embed .topbar, .embed .intro, .embed .science-grid, .embed .footer { display: none; }
.embed .app-wrap { padding: 8px; }
.embed .workspace { grid-template-columns: minmax(0,1.55fr) minmax(290px,.8fr); gap: 8px; }
.embed .stage { height: calc(100vh - 100px); min-height: 360px; }
.embed .control-panel { padding: 10px; }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (max-width: 1120px) {
  .app-wrap { padding-left: 20px; padding-right: 20px; }
  .workspace, .science-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); gap: 10px; }
  .control-panel { padding: 13px 12px 10px; }
  .control-list { column-gap: 10px; }
  .readout-card { padding: 9px 7px; }
  .readout-label { font-size: 6.5px; }
  .readout-foot { font-size: 6px; }
  .preset { gap: 4px; padding: 6px 4px; }
  .preset b { font-size: 7px; }
  .preset small { font-size: 6px; }
}
@media (max-width: 860px) {
  .workspace, .science-grid { grid-template-columns: 1fr; }
  .stage { height: min(58vw, 500px); min-height: 370px; }
  .control-panel { min-height: auto; }
  .control-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .readouts { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .science-grid { margin-top: 12px; }
  .validation-panel { min-height: 210px; }
}
@media (max-width: 560px) {
  .app-wrap { padding: 0 12px 18px; }
  .topbar { height: 48px; }
  .topbar-meta { gap: 9px; }
  .top-chip { display: none; }
  .status { font-size: 7px; }
  .intro { padding: 17px 0 15px; align-items: start; gap: 8px; }
  .eyebrow { font-size: 7px; margin-bottom: 6px; }
  h1 { font-size: 24px; max-width: 300px; }
  .intro-copy p { font-size: 10px; max-width: 310px; line-height: 1.45; }
  .intro-side { min-width: 82px; padding-left: 9px; margin-top: 19px; }
  .seed-label { font-size: 6px; }
  .seed-number { font-size: 16px; }
  .difficulty { font-size: 6px; line-height: 1.3; }
  .workspace { gap: 9px; }
  .stage { height: 430px; min-height: 390px; }
  .stage-topline { top: 11px; left: 11px; right: 11px; }
  .stage-subtitle { font-size: 7px; }
  .stage-badges { flex-direction: column; align-items: end; gap: 4px; }
  .micro-badge { font-size: 6px; padding: 4px 5px; }
  .scene-callout { font-size: 6px; }
  .callout-water { top: 36%; left: 3%; }
  .callout-front { top: 68%; left: 3%; }
  .callout-lens { top: 53%; right: 2%; }
  .scene-callout i { width: 12px; }
  .stage-caption { display: none; }
  .stage-controls-hint { right: 9px; bottom: 11px; font-size: 6px; }
  .scene-caption { left: 10px; bottom: 12px; font-size: 6px; }
  .stage-footer { padding: 0 9px; min-height: 34px; }
  .stage-footer-left { gap: 9px; }
  .legend-item { font-size: 6px; gap: 4px; letter-spacing: .06em; }
  .stage-footer-right { font-size: 6px; }
  .mechanism-ribbon { flex-wrap: wrap; white-space: normal; gap: 5px; font-size: 6px; line-height: 1.4; }
  .readouts { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .readout-card { padding: 9px 10px; }
  .readout-label { font-size: 7px; }
  .readout-value { font-size: 15px; }
  .readout-foot { font-size: 7px; }
  .readout-card:last-child { grid-column: span 2; }
  .control-panel { padding: 13px 12px 11px; }
  .panel-head h2 { font-size: 15px; }
  .preset-block { margin-top: 12px; }
  .preset-grid { gap: 5px; }
  .preset { min-height: 54px; padding: 6px 5px; gap: 5px; }
  .preset-icon { width: 16px; height: 16px; flex-basis: 16px; font-size: 10px; }
  .preset b { font-size: 7px; }
  .preset small { white-space: normal; font-size: 6px; line-height: 1.2; }
  .control-list { grid-template-columns: 1fr 1fr; gap: 12px 12px; padding: 13px 0 12px; }
  .control-label { display: block; min-height: 26px; margin-bottom: 5px; }
  .control-label label { display: block; font-size: 8px; white-space: normal; line-height: 1.2; min-height: 17px; }
  .control-label output { display: block; font-size: 8px; margin-top: 2px; }
  .range-ends { font-size: 6px; }
  .transport-sub { gap: 5px; }
  .transport-sub label { font-size: 6px; }
  .transport-sub select { min-width: 43px; }
  .keyboard-hint { display: none; }
  .time-strip { font-size: 6px; }
  .science-grid { gap: 9px; margin-top: 10px; }
  .science-panel summary { padding: 11px; }
  .science-content { padding: 10px; }
  .equation { font-size: 13px; }
  .validation-panel { padding: 12px; }
  .footer { flex-direction: column; gap: 6px; font-size: 6px; }
  .embed .workspace { grid-template-columns: 1fr; }
  .embed .stage { height: 48vh; min-height: 280px; }
}
