:root {
  color-scheme: dark;
  --bg: #07131b;
  --panel: #0d1c25;
  --panel-2: #10232d;
  --line: rgba(157, 190, 197, .14);
  --line-strong: rgba(157, 190, 197, .25);
  --text: #e6eeee;
  --muted: #90a4a8;
  --dim: #60777e;
  --cyan: #63d6cf;
  --cyan-soft: rgba(99, 214, 207, .13);
  --amber: #f4a86b;
  --red: #ff754d;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { 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: .005em; }
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-shell { min-height: 100vh; max-width: 1920px; margin: 0 auto; padding: 0 28px 14px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(99,214,207,.35); border-radius: 9px; font-size: 21px; background: rgba(99,214,207,.07); }
.brand-name { font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.brand-name span { color: var(--cyan); font-size: 10px; font-weight: 650; margin-left: 5px; }
.brand-subtitle { color: var(--dim); font-size: 9px; letter-spacing: .17em; margin-top: 4px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.status-pill, .seed-tag { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #70d5a4; box-shadow: 0 0 10px rgba(112,213,164,.8); }
#status-text[data-state="paused"] + .status-dot { background: var(--amber); }
.status-pill:has(#status-text[data-state="paused"]) .status-dot { background: var(--amber); box-shadow: 0 0 9px rgba(244,168,107,.5); }
.status-pill:has(#status-text[data-state="error"]) .status-dot { background: var(--red); box-shadow: 0 0 9px rgba(255,117,77,.6); }
.seed-tag { border-left: 1px solid var(--line); padding-left: 20px; }
.seed-tag strong { color: var(--text); font-weight: 700; letter-spacing: .08em; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding-top: 20px; align-items: start; }
.visual-column { min-width: 0; }
.scene-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin: 0 2px 14px; }
.eyebrow { color: var(--cyan); font-size: 9px; font-weight: 750; letter-spacing: .17em; }
.eyebrow span { color: var(--dim); padding: 0 4px; }
h1 { font-size: clamp(20px, 2.2vw, 29px); letter-spacing: -.045em; margin: 6px 0 5px; font-weight: 650; line-height: 1.16; }
h1 span { color: #93a8ad; font-weight: 430; }
.scene-subtitle { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.scene-badge { display: flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--amber); font-size: 14px; margin-top: 7px; background: rgba(255,255,255,.015); }
.scene-badge span { color: var(--muted); font-size: 8px; letter-spacing: .12em; font-weight: 700; }
.scene-wrap { position: relative; width: 100%; height: min(53vw, 560px); min-height: 390px; max-height: 560px; overflow: hidden; border: 1px solid rgba(157,190,197,.20); border-radius: 13px; background: radial-gradient(ellipse at 50% 45%, #17313a 0%, #0b1a24 56%, #07131b 100%); box-shadow: 0 20px 60px rgba(0,0,0,.22), inset 0 0 50px rgba(0,0,0,.22); }
#scene-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,12,17,.42), transparent 22%, transparent 72%, rgba(4,12,17,.46)); }
.scene-label-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.scene-label { position: absolute; top: 0; left: 0; padding: 5px 7px; border-radius: 4px; background: rgba(5,16,22,.78); border: 1px solid rgba(151,188,193,.28); color: #d5e3e2; font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.scene-label:before { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; left: -3px; top: 50%; transform: translateY(-50%); background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.label-hot { border-color: rgba(255,117,77,.4); color: #ffb28d; }
.label-hot:before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.label-surge { border-color: rgba(180,195,192,.4); color: #d3ddda; }
.label-surge:before { background: #b4c3c0; box-shadow: 0 0 8px #b4c3c0; }
.scene-hud { position: absolute; z-index: 2; color: rgba(211,229,228,.7); font-size: 8px; letter-spacing: .14em; pointer-events: none; }
.hud-top-left { top: 17px; left: 18px; }
.hud-kicker { color: #b2cece; font-weight: 800; }
.hud-coordinate { color: rgba(164,190,192,.66); margin-top: 5px; font-size: 7px; }
.hud-coordinate span { color: var(--cyan); padding: 0 4px; }
.hud-top-right { top: 18px; right: 18px; display: flex; align-items: center; gap: 7px; }
.hud-ring { display: inline-block; width: 6px; height: 6px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 8px var(--cyan); }
.hud-bottom-left { bottom: 17px; left: 18px; }
.hud-time { color: #e1eceb; font-size: 13px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hud-time-label { margin-top: 4px; color: rgba(164,190,192,.65); font-size: 7px; }
.hud-bottom-right { bottom: 17px; right: 18px; display: flex; gap: 5px; }
.axis-dot { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid rgba(220,235,235,.35); border-radius: 50%; color: #d4e2e0; font-size: 7px; }
.x-axis { color: #f18c7a; }.y-axis { color: #85d8ad; }.z-axis { color: #8ab7ef; }
.scene-overlay-controls { position: absolute; z-index: 3; right: 14px; bottom: 48px; display: flex; flex-direction: column; gap: 6px; }
.icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid rgba(181,207,207,.23); border-radius: 8px; background: rgba(7,19,27,.78); color: #c7d7d6; font-size: 18px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.icon-button:hover { border-color: var(--cyan); background: rgba(21,52,61,.92); transform: translateY(-1px); }
.fatal-error { position: absolute; z-index: 10; inset: 20% 12%; display: grid; place-items: center; padding: 24px; background: rgba(7,19,27,.95); border: 1px solid rgba(255,117,77,.4); border-radius: 12px; color: #ffb59a; text-align: center; line-height: 1.6; }
.transport-bar { display: flex; align-items: center; gap: 17px; padding: 12px 0 13px; border-bottom: 1px solid var(--line); }
.transport-left, .transport-right { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.primary-button, .secondary-button { min-height: 34px; border-radius: 7px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-size: 10px; font-weight: 700; transition: .18s; }
.primary-button { background: var(--cyan); border: 1px solid var(--cyan); color: #062026; min-width: 83px; }
.primary-button:hover { background: #8ce9df; border-color: #8ce9df; }
.secondary-button { background: rgba(255,255,255,.025); border: 1px solid var(--line-strong); color: #c1d0d0; }
.secondary-button:hover { border-color: rgba(99,214,207,.65); background: var(--cyan-soft); }
.button-icon { font-size: 12px; }
.transport-middle { flex: 1 1 auto; min-width: 70px; }
.timeline-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--dim); font-size: 8px; letter-spacing: .12em; }
.timeline-meta span:last-child { color: #b5c8c8; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.timeline-track { height: 3px; background: rgba(154,184,185,.16); border-radius: 99px; overflow: hidden; }
.timeline-fill { height: 100%; width: 0; background: linear-gradient(90deg, #43aaa8, #8fe2d5); box-shadow: 0 0 9px rgba(99,214,207,.45); }
.compact-select { display: flex; flex-direction: column; gap: 3px; color: var(--dim); font-size: 7px; letter-spacing: .12em; font-weight: 800; }
.compact-select span b { color: var(--cyan); font-weight: 700; margin-left: 3px; letter-spacing: 0; }
.compact-select select { appearance: none; min-width: 67px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 20px 5px 7px; color: #d4e1e0; background: #10232d; font-size: 9px; letter-spacing: .02em; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #86a1a4 50%), linear-gradient(135deg, #86a1a4 50%, transparent 50%); background-position: calc(100% - 10px) 9px, calc(100% - 7px) 9px; background-size: 3px 3px, 3px 3px; background-repeat: no-repeat; }
.export-button { align-self: end; font-size: 17px; }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; padding: 12px 0; }
.readout-card { min-width: 0; background: linear-gradient(135deg, rgba(17,39,49,.9), rgba(12,28,37,.88)); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px 10px; }
.readout-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.readout-label span { color: #526d75; font-size: 8px; }
.readout-value { margin-top: 8px; color: #e9f1ef; font-size: clamp(17px, 1.7vw, 23px); font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout-card:nth-child(1) .readout-value { color: #ffb17e; }
.readout-card:nth-child(2) .readout-value { color: #8edbd2; }
.readout-card:nth-child(3) .readout-value { color: #d5e2e1; }
.readout-card:nth-child(4) .readout-value { color: #c4d2e7; }
.readout-foot { display: flex; justify-content: space-between; gap: 5px; margin-top: 6px; color: var(--dim); font-size: 8px; white-space: nowrap; }
.readout-foot em { font-style: normal; color: #6f9291; font-size: 7px; letter-spacing: .1em; }
.lower-strip { display: grid; grid-template-columns: minmax(180px,1.3fr) minmax(100px,.55fr) minmax(180px,1.2fr); gap: 18px; align-items: center; border-top: 1px solid var(--line); padding: 12px 2px 4px; }
.strip-label { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.strip-label strong { color: var(--cyan); font-size: 11px; margin-left: 7px; }
.fragmentation-track { height: 4px; margin-top: 8px; background: rgba(157,190,197,.14); border-radius: 99px; overflow: hidden; }
.fragmentation-fill { height: 100%; width: 0; background: linear-gradient(90deg, #c47a4d, #ffd08b); transition: width .12s linear; }
.strip-caption { margin-top: 6px; color: var(--dim); font-size: 8px; line-height: 1.4; }
.burst-block { border-left: 1px solid var(--line); padding-left: 16px; }
.burst-value { margin-top: 2px; font-size: 22px; line-height: 1.1; font-weight: 650; letter-spacing: -.04em; color: #f2b27f; font-variant-numeric: tabular-nums; }
.keyboard-hints { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; color: var(--dim); font-size: 7px; letter-spacing: .06em; }
kbd { display: inline-block; padding: 3px 4px; margin-right: 3px; color: #b2c5c4; border: 1px solid rgba(157,190,197,.2); border-radius: 3px; font: inherit; font-size: 7px; }
.controls-column { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, rgba(15,34,44,.98), rgba(10,25,34,.98)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-height: calc(100vh - 94px); }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 17px 17px 14px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 5px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; scrollbar-width: thin; scrollbar-color: #29414a transparent; }
.panel-scroll::-webkit-scrollbar { width: 5px; }.panel-scroll::-webkit-scrollbar-thumb { background: #29414a; border-radius: 99px; }
.section-heading { display: flex; align-items: center; gap: 10px; color: var(--cyan); font-size: 8px; font-weight: 800; letter-spacing: .15em; margin: 15px 0 10px; }
.section-line { height: 1px; flex: 1; background: var(--line); }
.preset-list { display: flex; flex-direction: column; gap: 6px; }
.preset-button { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); padding: 8px 9px; cursor: pointer; transition: .18s; }
.preset-button:hover { border-color: rgba(99,214,207,.4); background: rgba(99,214,207,.045); }
.preset-button.active { border-color: rgba(99,214,207,.52); background: rgba(99,214,207,.09); box-shadow: inset 2px 0 0 var(--cyan); }
.preset-symbol { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: rgba(99,214,207,.08); color: var(--cyan); font-size: 15px; flex: 0 0 auto; }
.preset-button strong { display: block; color: #d8e4e2; font-size: 9px; font-weight: 700; }
.preset-button small { display: block; margin-top: 3px; color: var(--dim); font-size: 8px; }
.preset-arrow { margin-left: auto; color: #6d898b; font-size: 12px; }
.preset-description { color: var(--dim); font-size: 8px; line-height: 1.5; margin: 8px 1px 0; min-height: 24px; }
.parameter-section { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 1px; }
.parameter-row { margin: 12px 0 13px; }
.parameter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.parameter-top label { color: #c5d3d2; font-size: 9px; font-weight: 600; }
.parameter-top output { color: var(--cyan); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.parameter-top output small { color: #7c989a; font-size: 8px; font-weight: 500; }
input[type="range"] { width: 100%; height: 15px; margin: 5px 0 0; background: transparent; appearance: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, rgba(99,214,207,.52), rgba(157,190,197,.17)); border-radius: 99px; }
input[type="range"]::-moz-range-track { height: 3px; background: linear-gradient(90deg, rgba(99,214,207,.52), rgba(157,190,197,.17)); border-radius: 99px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #8de3d8; border: 2px solid #153b42; margin-top: -4px; box-shadow: 0 0 0 2px rgba(99,214,207,.12); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #8de3d8; border: 2px solid #153b42; box-shadow: 0 0 0 2px rgba(99,214,207,.12); }
.range-ends { display: flex; justify-content: space-between; color: #617a81; font-size: 7px; margin-top: -1px; }
.secondary-parameters { margin-top: 8px; }
.validation-card { border: 1px solid rgba(99,214,207,.24); border-radius: 8px; padding: 11px 12px; margin-top: 16px; background: linear-gradient(135deg, rgba(99,214,207,.07), rgba(255,255,255,.012)); }
.validation-heading { display: flex; align-items: center; justify-content: space-between; color: var(--cyan); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.validation-check { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: rgba(99,214,207,.14); color: #8de3d8; font-size: 11px; }
.validation-title { margin-top: 9px; color: #d8e3e1; font-size: 10px; font-weight: 650; }
.validation-ratio { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.validation-ratio strong { color: #8de3d8; font-size: 21px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.validation-ratio span { color: var(--dim); font-size: 8px; }
.validation-foot { display: flex; justify-content: space-between; margin-top: 4px; color: #9cb3b1; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.validation-note { margin-top: 8px; color: #6f878b; font-size: 8px; line-height: 1.5; }
.science-section { border-top: 1px solid var(--line); margin-top: 14px; }
.science-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 1px 10px; background: none; border: 0; color: #d3dfdd; cursor: pointer; font-size: 9px; font-weight: 750; letter-spacing: .11em; }
.science-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border: 1px solid rgba(99,214,207,.28); border-radius: 5px; color: var(--cyan); font-size: 13px; }
.science-chevron { color: var(--cyan); font-size: 15px; }
.science-panel { padding: 2px 0 10px; }
.science-item { padding: 9px 0; border-top: 1px solid rgba(157,190,197,.09); }
.science-item h3 { margin: 0 0 5px; color: #c9d9d7; font-size: 9px; }
.science-item p { margin: 4px 0 0; color: #82999b; font-size: 8px; line-height: 1.55; }
.science-item code { color: #8fe0d6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 8px; }
.science-item b { color: #b8cdca; }
.science-limit { padding: 9px; border-radius: 6px; background: rgba(255,168,107,.055); border: 1px solid rgba(255,168,107,.16); color: #e7b18b; font-size: 8px; }
.science-limit p { margin: 5px 0 0; color: #9c8d82; line-height: 1.5; }
.panel-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 16px; color: #607a80; font-size: 7px; letter-spacing: .12em; }
.panel-footer b { color: #93aaa9; font-weight: 700; }
.mobile-panel-toggle { display: none; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; color: #60777e; font-size: 8px; line-height: 1.4; border-top: 1px solid var(--line); padding: 11px 2px 0; margin-top: 16px; }
.page-footer span:last-child { text-align: right; letter-spacing: .1em; font-size: 7px; }
.page-footer i { color: var(--cyan); font-style: normal; padding: 0 3px; }
.embed-mode .app-shell { padding: 0 12px 10px; }
.embed-mode .topbar, .embed-mode .page-footer { display: none; }
.embed-mode .workspace { padding-top: 10px; }
.embed-mode .scene-heading { margin-top: 0; }
.reduced-motion *, .reduced-motion *:before, .reduced-motion *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }

@media (min-width: 1600px) {
  .workspace { grid-template-columns: minmax(0,1fr) 370px; gap: 22px; }
  .scene-wrap { height: min(54vw, 660px); max-height: 660px; }
  .app-shell { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 1120px) {
  .app-shell { padding-left: 18px; padding-right: 18px; }
  .workspace { grid-template-columns: minmax(0,1fr) 310px; gap: 12px; }
  .scene-wrap { height: 48vw; min-height: 350px; }
  .transport-bar { gap: 10px; }
  .transport-left, .transport-right { gap: 5px; }
  .primary-button, .secondary-button { padding: 0 9px; }
  .readout-grid { gap: 6px; }
  .readout-card { padding: 10px 9px; }
  .readout-foot { font-size: 7px; }
  .keyboard-hints { gap: 6px; }
}
@media (max-width: 820px) {
  .app-shell { padding: 0 12px 12px; }
  .topbar { height: 56px; }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 10px; padding-top: 14px; }
  .scene-heading { margin-bottom: 10px; }
  .scene-wrap { height: 54vw; min-height: 320px; max-height: 490px; }
  .controls-column { max-height: none; }
  .panel-header { padding: 13px 15px; }
  .mobile-panel-toggle { display: inline-flex; align-items: center; gap: 7px; background: rgba(99,214,207,.08); border: 1px solid rgba(99,214,207,.25); border-radius: 6px; padding: 7px 9px; color: var(--cyan); font-size: 8px; letter-spacing: .1em; cursor: pointer; }
  .mobile-panel-toggle span { font-size: 13px; }
  .panel-scroll { display: none; }
  .controls-column:has(.panel-scroll.mobile-open) .panel-scroll { display: block; }
  .controls-column:has(.panel-scroll.mobile-open) .mobile-panel-toggle span { transform: rotate(180deg); }
  .panel-footer { display: none; }
  .page-footer { margin-top: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 12px; }
  .app-shell { padding: 0 9px 10px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-name { font-size: 10px; }.brand-name span { font-size: 8px; }
  .brand-subtitle { font-size: 7px; }
  .topbar-right { gap: 9px; }
  .status-pill, .seed-tag { font-size: 7px; gap: 5px; }
  .seed-tag { padding-left: 9px; }
  .scene-heading { gap: 8px; }
  .eyebrow { font-size: 7px; }
  h1 { font-size: 21px; line-height: 1.12; margin-top: 5px; }
  h1 span { display: block; font-size: 15px; margin-top: 3px; }
  .scene-subtitle { font-size: 9px; max-width: 320px; }
  .scene-badge { padding: 6px 7px; font-size: 11px; gap: 4px; margin-top: 1px; }
  .scene-badge span { font-size: 6px; }
  .scene-wrap { height: 54vh; min-height: 300px; max-height: 450px; border-radius: 9px; }
  .scene-label { font-size: 6px; padding: 4px 5px; }
  .hud-top-left { top: 11px; left: 11px; }.hud-top-right { top: 12px; right: 11px; }
  .hud-bottom-left { left: 11px; bottom: 11px; }.hud-bottom-right { right: 11px; bottom: 11px; }
  .hud-coordinate { font-size: 6px; }
  .scene-overlay-controls { right: 8px; bottom: 38px; }
  .icon-button { width: 29px; height: 29px; }
  .transport-bar { flex-wrap: wrap; gap: 8px; padding: 9px 0 10px; }
  .transport-left { order: 1; }
  .transport-middle { order: 3; flex: 1 0 100%; }
  .transport-right { order: 2; margin-left: auto; }
  .primary-button, .secondary-button { min-height: 31px; font-size: 9px; }
  .compact-select { font-size: 6px; }
  .compact-select select { min-width: 56px; font-size: 8px; padding: 4px 15px 4px 5px; }
  .quality-select select { min-width: 54px; }
  .export-button { width: 29px; height: 29px; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; padding: 9px 0; }
  .readout-card { padding: 9px 10px; }
  .readout-label { font-size: 7px; }
  .readout-value { font-size: 20px; margin-top: 6px; }
  .readout-foot { font-size: 7px; margin-top: 4px; }
  .lower-strip { grid-template-columns: 1fr auto; gap: 10px; padding-top: 10px; }
  .keyboard-hints { grid-column: 1 / -1; justify-content: flex-start; gap: 6px 10px; padding-top: 4px; }
  .burst-block { padding-left: 12px; }
  .strip-caption { max-width: 260px; }
  .panel-header h2 { font-size: 15px; }
  .panel-scroll { padding: 0 13px 13px; }
  .preset-button { padding: 8px; }
  .page-footer { flex-direction: column; gap: 5px; font-size: 7px; }
  .page-footer span:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
