:root {
  color-scheme: dark;
  --bg: #080d17;
  --panel: #0d1421;
  --panel-2: #111b2a;
  --line: rgba(152, 178, 211, .13);
  --line-strong: rgba(152, 178, 211, .22);
  --text: #eaf1fb;
  --muted: #8797ad;
  --muted-2: #64758d;
  --cyan: #64d9e7;
  --violet: #a995ff;
  --amber: #f5bd72;
  --green: #75d7b2;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 40% -15%, rgba(34, 63, 95, .18), transparent 48%), var(--bg); }
.topbar { flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(8, 13, 23, .96); z-index: 2; }
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 32px; height: 32px; border: 1px solid rgba(100,217,231,.42); border-radius: 10px; position: relative; display: grid; place-items: center; transform: rotate(-12deg); }
.brand-mark span { position: absolute; width: 17px; height: 17px; border: 1px solid var(--cyan); border-radius: 50%; transform: rotate(45deg) scaleX(.45); }
.brand-mark span:nth-child(2) { transform: rotate(-45deg) scaleX(.45); }
.brand-mark span:nth-child(3) { width: 4px; height: 4px; background: var(--cyan); border: 0; }
.eyebrow, .panel-kicker, .caption-label, .hud-label, .readout-label, .micro-label, .stage-kicker, .footer-bar, .mission-chip, .muted-label, .scale-note, .canvas-coords, .readout-mini, .check-card-head, .check-values small { font-size: 9px; letter-spacing: .14em; font-weight: 750; }
.eyebrow { color: #7e90a8; margin-bottom: 3px; white-space: nowrap; }
.eyebrow-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); vertical-align: 2px; margin: 0 5px; }
h1 { font-size: 16px; line-height: 1.1; margin: 0; letter-spacing: -.025em; font-weight: 660; text-transform: capitalize; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.mission-chip { display: flex; align-items: center; gap: 8px; color: #9bb1c7; letter-spacing: .12em; }
.live-dot, .footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(117,215,178,.65); }
.mission-time { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 22px; }
.muted-label { color: var(--muted-2); }
.mission-time strong { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: #dce7f5; }
.workspace { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 0; }
.stage-column { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 17px 20px 14px 22px; border-right: 1px solid var(--line); }
.stage-head { flex: 0 0 26px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stage-kicker { color: #9aaac0; letter-spacing: .12em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.orbit-glyph { font-size: 16px; color: var(--cyan); line-height: 10px; }
.stage-separator { color: #40516a; }
.stage-meta { color: #778aa3; font-size: 9px; font-weight: 700; letter-spacing: .11em; white-space: nowrap; }
.meta-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); margin: 0 7px 1px 0; }
.meta-divider { margin: 0 8px; color: #45566c; }
.canvas-wrap { position: relative; flex: 1 1 auto; min-height: 220px; overflow: hidden; border: 1px solid rgba(120,157,195,.17); border-radius: 13px; background: #070d18; box-shadow: inset 0 0 60px rgba(0,0,0,.34), 0 10px 35px rgba(0,0,0,.15); }
#spaceCanvas { display: block; width: 100%; height: 100%; outline: none; }
.canvas-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(4,8,16,.35) 100%); }
.hud { position: absolute; z-index: 1; pointer-events: none; padding: 10px 12px; border: 1px solid rgba(133,168,205,.14); border-radius: 8px; background: rgba(8,14,25,.63); backdrop-filter: blur(8px); }
.hud-top-left { top: 14px; left: 14px; }
.hud-top-right { top: 14px; right: 14px; min-width: 142px; }
.hud-bottom-left { bottom: 14px; left: 14px; }
.hud-bottom-right { bottom: 14px; right: 14px; text-align: right; }
.hud-label { color: #7f92ab; font-size: 8px; }
.hud-reading { display: flex; align-items: baseline; gap: 5px; margin: 3px 0 1px; }
.hud-reading strong { font-size: 23px; line-height: 1; font-weight: 560; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hud-reading span { font-size: 10px; color: var(--cyan); }
.hud-sub { color: #647a94; font-size: 7px; letter-spacing: .1em; font-weight: 700; margin-top: 5px; }
.tiny-tag { color: #6c8f9b; border: 1px solid rgba(100,217,231,.18); border-radius: 3px; padding: 1px 3px; font-size: 6px; margin-left: 3px; }
.authority-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.authority-row strong { color: var(--green); font-size: 10px; letter-spacing: .12em; }
.authority-light { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(117,215,178,.6); }
.authority-light.limited { background: var(--amber); box-shadow: 0 0 9px rgba(245,189,114,.5); }
.authority-light.weak { background: #ef8f8f; box-shadow: 0 0 9px rgba(239,143,143,.5); }
.vector-legend { display: flex; align-items: center; gap: 6px; color: #9baac0; font-size: 8px; margin-top: 7px; letter-spacing: .02em; }
.legend-line { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.wheel-line { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.torquer-line { background: var(--amber); box-shadow: 0 0 6px var(--amber); margin-left: 7px; }
.scale-note { color: #71839a; font-size: 7px; letter-spacing: .1em; }
.scale-note b { color: var(--amber); font-size: 7px; margin-left: 3px; }
.scale-mark { display: inline-block; width: 12px; border-top: 1px solid #8094aa; margin: 0 5px 2px 0; }
.canvas-coords { color: #566c84; font-size: 7px; margin-top: 6px; }
.canvas-controls { position: absolute; z-index: 2; top: 50%; right: 12px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.icon-button { border: 1px solid rgba(139,173,208,.19); background: rgba(8,15,27,.78); border-radius: 7px; min-width: 74px; height: 31px; display: flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 0 9px; color: #93a8bf; font-size: 8px; font-weight: 800; letter-spacing: .09em; cursor: pointer; backdrop-filter: blur(8px); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.icon-button:hover { color: #e8f4ff; border-color: rgba(100,217,231,.5); background: rgba(17,31,48,.92); transform: translateX(-2px); }
.icon-button[aria-pressed="false"] { color: #60748b; }
.trace-icon, .quality-icon { font-size: 14px; color: var(--cyan); }
.screenshot-button span:first-child { font-size: 15px; color: var(--amber); }
.toast { position: absolute; left: 50%; bottom: 65px; transform: translate(-50%, 8px); padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(100,217,231,.22); background: rgba(8,16,28,.94); color: #d9edf4; font-size: 10px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 5; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.caption-strip { flex: 0 0 auto; display: flex; gap: 11px; align-items: flex-start; padding: 11px 2px 10px; min-height: 60px; }
.caption-icon { flex: 0 0 25px; height: 25px; border: 1px solid rgba(100,217,231,.22); border-radius: 7px; display: grid; place-items: center; color: var(--cyan); font-size: 14px; background: rgba(100,217,231,.06); }
.caption-label { color: #7791a7; font-size: 8px; margin: 0 0 4px; }
.caption-strip p { margin: 0; max-width: 880px; color: #aebed0; font-size: 10px; line-height: 1.5; }
.readout-grid { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.readout-card { min-width: 0; padding: 10px 11px 9px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(17,27,42,.78), rgba(11,18,30,.9)); }
.readout-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.readout-label { color: #8192a9; font-size: 7px; letter-spacing: .11em; white-space: nowrap; }
.readout-mark { width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto; }
.mark-violet { background: var(--violet); box-shadow: 0 0 7px rgba(169,149,255,.65); }
.mark-cyan { background: var(--cyan); box-shadow: 0 0 7px rgba(100,217,231,.65); }
.mark-amber { background: var(--amber); box-shadow: 0 0 7px rgba(245,189,114,.65); }
.mark-green { background: var(--green); box-shadow: 0 0 7px rgba(117,215,178,.65); }
.readout-value { display: flex; align-items: baseline; gap: 5px; margin-top: 7px; white-space: nowrap; }
.readout-value strong { font-size: clamp(17px,1.7vw,22px); font-weight: 570; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readout-value span { color: #8192a9; font-size: 9px; }
.readout-foot { display: flex; justify-content: space-between; gap: 4px; margin-top: 5px; color: #73869d; font-size: 7px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.readout-mini { color: #536980; font-size: 6px; flex: 0 0 auto; }
.meter-track { height: 3px; border-radius: 5px; background: rgba(125,151,181,.13); margin-top: 8px; overflow: hidden; }
.meter-fill { height: 100%; width: 30%; border-radius: 5px; transition: width .22s ease; }
.wheel-fill { background: linear-gradient(90deg,#7164d4,var(--violet)); }
.torque-fill { background: linear-gradient(90deg,#318ea3,var(--cyan)); }
.dipole-fill { background: linear-gradient(90deg,#a66e3d,var(--amber)); }
.limit-fill { background: linear-gradient(90deg,#398c73,var(--green)); }
.control-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 13px; background: linear-gradient(180deg,rgba(15,23,37,.96),rgba(10,16,27,.98)); scrollbar-width: thin; scrollbar-color: #31425a transparent; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.panel-kicker { color: #7890a9; font-size: 8px; margin-bottom: 4px; }
.panel-heading h2 { font-size: 17px; margin: 0; font-weight: 620; letter-spacing: -.025em; }
.panel-index { color: #62758c; font-size: 9px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.panel-index i { color: #34485e; font-style: normal; }
.transport-row { display: grid; grid-template-columns: 1.15fr 1fr 40px; gap: 7px; margin-bottom: 16px; }
.primary-control, .secondary-control { height: 37px; border-radius: 7px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 9px; font-weight: 800; letter-spacing: .1em; transition: .18s ease; }
.primary-control { background: linear-gradient(135deg,rgba(46,131,148,.34),rgba(27,84,106,.34)); border-color: rgba(100,217,231,.36); color: #c8f6f5; }
.primary-control:hover { background: rgba(49,143,160,.35); border-color: var(--cyan); }
.secondary-control { background: rgba(20,31,47,.8); color: #9aacc1; }
.secondary-control:hover { border-color: rgba(100,217,231,.38); color: #e4f1ff; }
.primary-control:active, .secondary-control:active, .preset-button:active { transform: scale(.985); }
.play-symbol { font-size: 13px; line-height: 1; }
.secondary-control span { color: var(--cyan); font-size: 8px; }
.reset-control { font-size: 19px; font-weight: 400; }
.control-section { padding: 13px 0 12px; border-top: 1px solid var(--line); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-title-row h3 { margin: 0; font-size: 11px; font-weight: 650; color: #d7e3f2; }
.micro-label { color: #61778e; font-size: 7px; letter-spacing: .1em; white-space: nowrap; }

.torquer-switch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 5px; border: 1px solid rgba(100,217,231,.25); background: rgba(100,217,231,.07); color: #a9e7e9; font-size: 7px; font-weight: 800; letter-spacing: .08em; cursor: pointer; white-space: nowrap; transition: .18s ease; }
.torquer-switch:hover { border-color: rgba(100,217,231,.6); background: rgba(100,217,231,.12); }
.torquer-switch[aria-pressed="false"] { color: #e8bd86; border-color: rgba(245,189,114,.3); background: rgba(245,189,114,.06); }
.switch-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px rgba(117,215,178,.55); }
.torquer-switch[aria-pressed="false"] .switch-indicator { background: var(--amber); box-shadow: 0 0 7px rgba(245,189,114,.55); }
.preset-section { border-top: 0; padding-top: 0; }
.preset-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.preset-button { display: flex; align-items: center; text-align: left; gap: 7px; min-width: 0; border: 1px solid var(--line); background: rgba(17,27,42,.65); border-radius: 7px; padding: 8px 7px; cursor: pointer; transition: .2s ease; }
.preset-button:hover { border-color: rgba(100,217,231,.35); background: rgba(22,39,56,.75); }
.preset-button.active { border-color: rgba(100,217,231,.48); background: linear-gradient(135deg,rgba(39,108,125,.22),rgba(17,31,48,.85)); box-shadow: inset 0 0 0 1px rgba(100,217,231,.06); }
.preset-icon { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(100,217,231,.2); border-radius: 6px; font-size: 12px; }
.weak-icon { color: var(--amber); border-color: rgba(245,189,114,.2); }
.preset-button b { display: block; font-size: 9px; font-weight: 700; color: #d5e1f0; white-space: nowrap; }
.preset-button small { display: block; margin-top: 3px; color: #75889f; font-size: 7px; line-height: 1.2; white-space: nowrap; }
.preset-arrow { color: #617990; font-size: 12px; margin-left: auto; align-self: flex-start; }
.slider-control { margin-bottom: 13px; }
.slider-control:last-child { margin-bottom: 0; }
.slider-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; }
.slider-label label { color: #aebed0; font-size: 9px; font-weight: 550; }
.slider-label output { color: #d8e6f5; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { display: block; width: 100%; height: 13px; margin: 0; padding: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; accent-color: var(--cyan); }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(90deg,rgba(100,217,231,.75),rgba(100,217,231,.17)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 8px; background: linear-gradient(90deg,rgba(100,217,231,.75),rgba(100,217,231,.17)); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; margin-top: -4px; background: #b9f4f4; border: 2px solid #327e8e; box-shadow: 0 0 0 3px rgba(100,217,231,.12),0 0 9px rgba(100,217,231,.45); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #b9f4f4; border: 2px solid #327e8e; box-shadow: 0 0 0 3px rgba(100,217,231,.12),0 0 9px rgba(100,217,231,.45); }
input[type="range"]:focus-visible { outline: 1px solid var(--cyan); outline-offset: 5px; border-radius: 8px; }
.range-ends { display: flex; justify-content: space-between; margin-top: 3px; color: #586e85; font-size: 7px; letter-spacing: .04em; }
.time-section { padding-bottom: 13px; }
.time-label { margin-top: 1px; }
.panel-bottom { margin-top: auto; }
.check-row { display: flex; align-items: center; gap: 7px; padding: 10px 0; border-top: 1px solid var(--line); color: #8195ab; font-size: 8px; }
.check-icon { color: var(--green); font-size: 11px; }
.check-row .micro-label { margin-left: auto; }
.science-panel { border: 1px solid var(--line); border-radius: 8px; background: rgba(13,23,37,.76); overflow: hidden; }
.science-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 10px; color: #dce8f5; font-size: 10px; font-weight: 650; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-symbol { color: var(--cyan); font-size: 15px; }
.summary-hint { color: #637991; font-size: 7px; letter-spacing: .1em; margin-left: auto; font-weight: 750; }
.chevron { color: #7890a7; font-size: 14px; transition: transform .2s; }
.science-panel[open] .chevron { transform: rotate(180deg); }
.science-content { padding: 0 11px 12px; border-top: 1px solid var(--line); }
.science-content h4 { margin: 12px 0 5px; color: #b9c9db; font-size: 9px; font-weight: 700; }
.science-content p { margin: 5px 0; color: #8194aa; font-size: 8px; line-height: 1.55; }
.science-content .equation { color: #b7e8ec; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; background: rgba(100,217,231,.055); border-left: 2px solid rgba(100,217,231,.4); padding: 6px 7px; border-radius: 0 4px 4px 0; }
.check-card { margin-top: 9px; padding: 9px; border: 1px solid rgba(100,217,231,.17); border-radius: 6px; background: rgba(100,217,231,.035); }
.check-card-head { display: flex; justify-content: space-between; color: #91a9bc; font-size: 7px; }
.check-values { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; margin-top: 8px; }
.check-values div { min-width: 0; }
.check-values small { display: block; color: #647d92; font-size: 6px; letter-spacing: .08em; }
.check-values b { display: block; color: #d8f0f2; font-size: 11px; margin: 4px 0 1px; font-variant-numeric: tabular-nums; }
.check-values em { color: #647c91; font-size: 7px; font-style: normal; }
.science-disclaimer { color: #8da6b7 !important; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 9px !important; }
.footer-bar { flex: 0 0 25px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border-top: 1px solid var(--line); color: #53667e; font-size: 7px; letter-spacing: .11em; }
.footer-bar b { color: #30435a; padding: 0 4px; }
.footer-dot { display: inline-block; width: 5px; height: 5px; vertical-align: 1px; margin-right: 6px; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
@media (max-width: 1050px) {
  .workspace { grid-template-columns: minmax(0,1fr) 320px; }
  .stage-column { padding-left: 15px; padding-right: 14px; }
  .control-panel { padding-left: 14px; padding-right: 14px; }
  .readout-grid { gap: 6px; }
  .readout-card { padding: 9px 8px; }
  .readout-label { font-size: 6px; }
  .readout-mini { display: none; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { min-height: 100%; height: 100%; }
  .topbar { flex-basis: 58px; padding: 0 13px; }
  .brand-mark { width: 28px; height: 28px; }
  .eyebrow { font-size: 7px; letter-spacing: .1em; }
  h1 { font-size: 14px; }
  .topbar-right { gap: 0; }
  .mission-chip { display: none; }
  .mission-time { border: 0; padding: 0; flex-direction: column; align-items: flex-end; gap: 3px; }
  .muted-label { font-size: 6px; }
  .mission-time strong { font-size: 10px; }
  .workspace { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .stage-column { flex: 0 0 49%; min-height: 280px; padding: 10px 10px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage-head { flex: 0 0 22px; align-items: flex-start; }
  .stage-kicker { font-size: 7px; gap: 5px; }
  .orbit-glyph { font-size: 13px; }
  .stage-meta { font-size: 7px; }
  .meta-divider { margin: 0 4px; }
  .canvas-wrap { min-height: 160px; border-radius: 9px; }
  .hud { padding: 6px 7px; border-radius: 6px; }
  .hud-top-left { top: 7px; left: 7px; }
  .hud-top-right { top: 7px; right: 7px; min-width: 105px; }
  .hud-bottom-left { bottom: 7px; left: 7px; }
  .hud-bottom-right { bottom: 7px; right: 7px; }
  .hud-label { font-size: 6px; }
  .hud-reading strong { font-size: 17px; }
  .hud-reading span { font-size: 8px; }
  .hud-sub { font-size: 5px; margin-top: 3px; }
  .tiny-tag { font-size: 5px; }
  .authority-row { margin-top: 4px; }
  .authority-row strong { font-size: 7px; }
  .vector-legend { font-size: 6px; gap: 4px; margin-top: 4px; }
  .legend-line { width: 9px; }
  .torquer-line { margin-left: 3px; }
  .scale-note, .scale-note b, .canvas-coords { font-size: 5px; }
  .canvas-controls { top: auto; bottom: 50%; right: 7px; transform: translateY(50%); gap: 4px; }
  .icon-button { min-width: 58px; height: 25px; padding: 0 6px; font-size: 6px; gap: 4px; border-radius: 5px; }
  .trace-icon, .quality-icon { font-size: 10px; }
  .screenshot-button span:first-child { font-size: 12px; }
  .caption-strip { padding: 7px 1px 6px; min-height: 47px; gap: 7px; }
  .caption-icon { flex-basis: 20px; height: 20px; font-size: 11px; }
  .caption-label { font-size: 6px; margin-bottom: 2px; }
  .caption-strip p { font-size: 8px; line-height: 1.35; }
  .readout-grid { gap: 5px; }
  .readout-card { padding: 6px 6px 5px; border-radius: 6px; }
  .readout-label { font-size: 5px; letter-spacing: .08em; }
  .readout-value { gap: 3px; margin-top: 4px; }
  .readout-value strong { font-size: 15px; }
  .readout-value span { font-size: 7px; }
  .readout-foot { font-size: 5px; margin-top: 3px; }
  .meter-track { margin-top: 5px; height: 2px; }
  .control-panel { flex: 1 1 auto; overflow-y: auto; padding: 11px 13px 13px; min-height: 0; }
  .panel-heading { margin-bottom: 9px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-kicker { font-size: 7px; }
  .transport-row { margin-bottom: 11px; }
  .primary-control, .secondary-control { height: 33px; font-size: 8px; }
  .control-section { padding: 10px 0 9px; }
  .section-title-row { margin-bottom: 9px; }
  .section-title-row h3 { font-size: 10px; }
  .preset-section { padding-top: 0; }
  .preset-button { padding: 7px 6px; }
  .preset-button b { font-size: 8px; }
  .preset-button small { font-size: 6px; }
  .slider-control { margin-bottom: 9px; }
  .slider-label { margin-bottom: 5px; }
  .slider-label label, .slider-label output { font-size: 8px; }
  .range-ends { font-size: 6px; }
  .time-section { padding-bottom: 10px; }
  .check-row { padding: 8px 0; }
  .footer-bar { display: none; }
}
@media (max-width: 390px) {
  .stage-column { flex-basis: 47%; min-height: 270px; }
  .stage-kicker { letter-spacing: .06em; }
  .stage-meta { font-size: 6px; }
  .hud-top-right { min-width: 94px; }
  .canvas-controls { right: 5px; }
  .icon-button { min-width: 51px; padding: 0 4px; }
  .readout-label { font-size: 4.8px; }
  .readout-value strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
