:root {
  color-scheme: dark;
  --bg: #080d16;
  --panel: #101a28;
  --panel-2: #0d1623;
  --line: rgba(169, 194, 222, .13);
  --line-strong: rgba(169, 194, 222, .22);
  --text: #edf4fb;
  --muted: #8fa2b8;
  --soft: #63778e;
  --accent: #61e2dc;
  --accent-soft: rgba(97, 226, 220, .13);
  --accent-line: rgba(97, 226, 220, .34);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; overflow-x: hidden; background-image: radial-gradient(ellipse at 20% 0%, rgba(32, 65, 91, .18), transparent 42%), linear-gradient(145deg, #080d16, #0a111c 60%, #080e18); }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app { width: min(1600px, 100%); min-height: 100vh; margin: 0 auto; padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 12px; }
.embed-mode .app { height: 100%; min-height: 0; overflow: hidden; }
.topbar { flex: 0 0 62px; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.mark { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(97, 226, 220, .35); border-radius: 13px; position: relative; display: grid; place-items: center; background: linear-gradient(145deg, rgba(97,226,220,.12), rgba(97,226,220,.015)); box-shadow: 0 0 22px rgba(97,226,220,.06); }
.mark::before { content: ""; width: 17px; height: 17px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: .9; }
.mark span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.mark i { position: absolute; width: 26px; height: 1px; background: rgba(97,226,220,.55); transform: rotate(-42deg); }
.heading-copy { min-width: 0; }
.eyebrow, .section-eyebrow, .stage-label, .observer-label, .canvas-corner, .caption-kicker, .timing-heading, .timing-label, .metric-label, .metric-kind, .check-copy > span, .input-tag, .playback-head h3, .quality-control > span, .clock-readout > span, .footer-note, .science-panel summary { letter-spacing: .12em; font-weight: 700; }
.eyebrow { color: var(--accent); font-size: 9px; line-height: 1.2; margin-bottom: 4px; }
.eyebrow span { color: var(--soft); padding: 0 3px; }
h1 { font-size: clamp(19px, 2vw, 24px); line-height: 1.05; margin: 0; letter-spacing: -.045em; font-weight: 680; }
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.2; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.model-tag { height: 31px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: #aebed0; font-size: 8px; letter-spacing: .1em; font-weight: 700; white-space: nowrap; background: rgba(13,22,35,.7); }
.model-tag b { color: var(--soft); }
.status-dot, .live-dot, .live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(97,226,220,.8); }
.icon-button { height: 34px; border: 1px solid var(--line-strong); border-radius: 10px; background: #111d2c; color: #d8e5f2; padding: 0 11px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 10px; font-weight: 650; transition: border-color .2s, background .2s, transform .2s; }
.icon-button:hover { border-color: var(--accent-line); background: #152637; transform: translateY(-1px); }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(350px, .82fr); gap: 12px; flex: 1 1 auto; min-height: 0; }
.panel { background: linear-gradient(155deg, rgba(17,27,41,.97), rgba(12,21,33,.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.018); }
.stage-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 13px 14px 12px; overflow: hidden; }
.stage-topline { flex: 0 0 25px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px 8px; }
.stage-label, .observer-label { font-size: 8px; color: #a9b9ca; display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 5px; height: 5px; }
.observer-label { color: var(--accent); }
.axis-glyph { font-size: 14px; line-height: 8px; font-weight: 400; }
.canvas-wrap { flex: 1 1 auto; min-height: 200px; position: relative; overflow: hidden; border: 1px solid rgba(142,177,209,.10); border-radius: 12px; background: radial-gradient(ellipse at 50% 47%, #101f31 0%, #0b1523 50%, #09121e 100%); }
#orbitCanvas { display: block; width: 100%; height: 100%; }
.canvas-corner { position: absolute; color: rgba(170,194,216,.53); font-size: 7px; pointer-events: none; }
.canvas-corner span { color: var(--accent); padding: 0 3px; }
.canvas-corner.top-left { left: 13px; top: 28px; }
.canvas-corner.bottom-right { right: 12px; bottom: 8px; }
.phase-chip { position: absolute; left: 50%; transform: translateX(-50%); top: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.phase-chip span { font-size: 7px; letter-spacing: .13em; color: #8297ae; font-weight: 700; }
.phase-chip strong { color: #e9f3fb; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stage-caption { flex: 0 0 auto; min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 10px 5px 8px; border-bottom: 1px solid var(--line); }
.caption-icon { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--accent-line); border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 14px; }
.caption-kicker { color: var(--accent); font-size: 7px; margin-bottom: 3px; }
.stage-caption p { margin: 0; color: #b7c7d7; font-size: 10px; line-height: 1.4; max-width: 720px; }
.timing-strip { flex: 0 0 auto; padding: 10px 4px 0; }
.timing-heading { display: flex; justify-content: space-between; gap: 8px; color: #a6b8cb; font-size: 7px; margin-bottom: 9px; }
.timing-heading small { color: var(--soft); font-size: 6px; letter-spacing: .1em; font-weight: 650; }
.timing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timing-cell { min-width: 0; padding: 0 9px 7px; border-left: 1px solid var(--line-strong); }
.timing-cell:first-child { border-left-color: var(--accent-line); }
.timing-label { display: flex; align-items: center; gap: 6px; color: #8fa3b9; font-size: 7px; margin-bottom: 4px; }
.event-dot { width: 5px; height: 5px; border-radius: 50%; background: #dce7f3; }
.event-dot.secondary { background: var(--accent); box-shadow: 0 0 7px rgba(97,226,220,.6); }
.timing-cell strong { display: block; font-size: clamp(13px, 1.4vw, 17px); line-height: 1.1; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timing-cell small { display: block; margin-top: 4px; color: var(--soft); font-size: 6px; letter-spacing: .11em; font-weight: 700; }
.timing-cell small em { color: #849ab1; font-style: normal; }
.baseline-note { margin: 2px 0 0 9px; color: #8094a9; font-size: 8px; }
.baseline-note b { color: #c6d5e4; font-weight: 600; }
.baseline-note span { color: var(--soft); font-size: 7px; letter-spacing: .08em; }
.sidebar { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #294055 transparent; }
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #294055; border-radius: 8px; }
.measurement-panel, .controls-panel { padding: 13px 14px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-eyebrow { color: var(--accent); font-size: 7px; margin-bottom: 4px; }
.panel-heading h2 { margin: 0; font-size: 13px; line-height: 1.1; font-weight: 630; letter-spacing: -.025em; }
.live-pill { border: 1px solid rgba(97,226,220,.22); border-radius: 999px; color: var(--accent); font-size: 7px; letter-spacing: .12em; padding: 5px 7px; display: inline-flex; align-items: center; gap: 5px; font-weight: 750; }
.live-pill i { width: 4px; height: 4px; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.metric-card { min-width: 0; border: 1px solid rgba(157,184,211,.11); border-radius: 10px; padding: 9px 10px 8px; background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.008)); }
.metric-card.accent-card { border-color: rgba(97,226,220,.24); background: linear-gradient(145deg, rgba(97,226,220,.085), rgba(97,226,220,.018)); }
.metric-label { display: block; color: #8296ac; font-size: 6px; line-height: 1.2; margin-bottom: 5px; white-space: nowrap; }
.metric-card strong { display: block; font-size: clamp(16px, 1.7vw, 20px); line-height: 1; letter-spacing: -.035em; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-card strong small { font-size: 9px; color: #a5b7c9; font-weight: 550; letter-spacing: 0; }
.metric-kind { display: block; margin-top: 5px; font-size: 6px; color: #5f748b; }
.accent-card .metric-kind { color: rgba(97,226,220,.7); }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 8px 9px; border: 1px solid rgba(97,226,220,.16); border-radius: 9px; background: rgba(97,226,220,.045); }
.check-mark { flex: 0 0 19px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: rgba(97,226,220,.14); color: var(--accent); font-size: 11px; }
.check-copy { min-width: 0; flex: 1; }
.check-copy > span { display: block; font-size: 6px; color: #8ba0b6; margin-bottom: 3px; }
.check-copy > span em { color: #5e748a; font-style: normal; }
.check-copy strong { display: block; font-size: 9px; line-height: 1.3; color: #d8e6f2; font-weight: 600; font-variant-numeric: tabular-nums; }
.check-copy strong small { color: var(--accent); font-size: 8px; font-weight: 550; }
.info-button { flex: 0 0 19px; width: 19px; height: 19px; border: 1px solid rgba(156,184,212,.22); border-radius: 50%; background: transparent; color: #91a7bd; font-size: 10px; cursor: help; }
.control-heading { margin-bottom: 8px; }
.input-tag { font-size: 6px; color: #6f879e; white-space: nowrap; }
.preset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 9px; }
.preset { border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; background: rgba(255,255,255,.018); color: #90a4ba; font-size: 8px; font-weight: 650; cursor: pointer; transition: .2s ease; }
.preset:hover { border-color: var(--accent-line); color: #d9e7f4; }
.preset.active { border-color: rgba(97,226,220,.4); background: rgba(97,226,220,.09); color: var(--accent); }
.slider-list { display: flex; flex-direction: column; gap: 8px; }
.slider-row { min-width: 0; }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.slider-head label { color: #c4d2df; font-size: 9px; font-weight: 550; }
.slider-head label span { color: #6f879e; margin-left: 3px; font-size: 8px; }
.slider-head output { color: #9fb3c7; font-size: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 13px; margin: 0; padding: 0; background: transparent; cursor: pointer; display: block; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 9px; background: linear-gradient(90deg, var(--accent) 0%, rgba(97,226,220,.35) 100%); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 9px; background: rgba(97,226,220,.35); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: #d9fffb; border: 2px solid #4ecbc6; box-shadow: 0 0 0 3px rgba(97,226,220,.10), 0 0 9px rgba(97,226,220,.45); }
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #d9fffb; border: 2px solid #4ecbc6; box-shadow: 0 0 0 3px rgba(97,226,220,.10); }
.control-divider { height: 1px; background: var(--line); margin: 9px 0 8px; }
.playback-head { display: flex; justify-content: space-between; align-items: center; }
.playback-head h3 { margin: 0; color: #c7d6e5; font-size: 9px; letter-spacing: .02em; }
.playback-head output { color: var(--accent); font-size: 8px; font-weight: 650; }
.speed-row { margin-top: 2px; }
.playback-buttons { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 6px; margin-top: 5px; }
.playback-buttons button { height: 29px; border-radius: 8px; font-size: 8px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.play-button { border: 1px solid rgba(97,226,220,.38); background: rgba(97,226,220,.12); color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 7px; }
.play-button:hover { background: rgba(97,226,220,.19); }
.pause-symbol { font-size: 12px; line-height: 1; }
.step-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: #b8c8d8; }
.step-button b { color: var(--accent); font-size: 8px; margin-left: 3px; }
.reset-button { border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: #a9bdcf; font-size: 17px !important; line-height: 1; }
.playback-buttons button:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.view-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.switch-label { display: inline-flex; align-items: center; gap: 7px; color: #aebfd0; font-size: 8px; cursor: pointer; user-select: none; }
.switch-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 25px; height: 14px; position: relative; border-radius: 999px; background: #304052; transition: background .2s; }
.switch::after { content: ""; position: absolute; width: 10px; height: 10px; left: 2px; top: 2px; border-radius: 50%; background: #d4e0eb; transition: transform .2s; }
.switch-label input:checked + .switch { background: rgba(97,226,220,.45); }
.switch-label input:checked + .switch::after { transform: translateX(11px); background: #efffff; }
.switch-label input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }
.quality-control { display: flex; align-items: center; gap: 6px; }
.quality-control > span { font-size: 6px; color: #71869d; }
.quality-control button { min-width: 39px; height: 21px; border: 1px solid rgba(97,226,220,.28); border-radius: 6px; background: rgba(97,226,220,.08); color: var(--accent); font-size: 7px; font-weight: 750; letter-spacing: .08em; cursor: pointer; }
.clock-readout { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding: 7px 8px; border-radius: 8px; background: rgba(3,9,16,.28); }
.clock-readout > span { color: #71879d; font-size: 6px; white-space: nowrap; }
.clock-readout > span em { color: #536a82; font-style: normal; }
.clock-readout strong { color: #d8e5f1; font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-readout .clock-phase { color: var(--accent); }
.science-panel { flex: 0 0 auto; overflow: hidden; }
.science-panel summary { min-height: 39px; padding: 0 14px; display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; color: #c4d4e3; font-size: 8px; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.science-summary { color: #71869c; font-size: 7px; font-weight: 500; letter-spacing: .03em; }
.chevron { margin-left: auto; color: var(--accent); font-size: 15px; transition: transform .2s; }
.science-panel[open] .chevron { transform: rotate(180deg); }
.science-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; padding: 12px 16px 15px; border-top: 1px solid var(--line); }
.science-column h3 { margin: 0 0 7px; color: #dce8f3; font-size: 10px; }
.science-column p { margin: 0 0 7px; color: #9eb0c3; font-size: 9px; line-height: 1.5; }
.science-column .equation { padding: 5px 8px; border-left: 2px solid var(--accent-line); background: rgba(97,226,220,.035); color: #d5e5ef; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.science-column .science-note { color: #71879d; font-size: 8px; }
.science-column .disclaimer { margin-top: 8px; color: #8ca3b8; font-style: italic; }
.footer-note { flex: 0 0 11px; display: flex; justify-content: space-between; gap: 8px; color: #52677d; font-size: 6px; letter-spacing: .12em; padding: 0 3px; }
.footer-note i { color: var(--accent); font-style: normal; padding: 0 3px; }
@media (min-width: 1100px) {
  .slider-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 13px; row-gap: 8px; }
  .slider-head { gap: 4px; }
  .slider-head label { font-size: 8px; }
  .slider-head label span { font-size: 7px; }
  .slider-head output { font-size: 7px; }
  .sidebar { gap: 8px; }
  .measurement-panel, .controls-panel { padding-top: 9px; padding-bottom: 9px; }
  .metric-card { padding-top: 7px; padding-bottom: 7px; }
  .check-row { margin-top: 7px; padding-top: 6px; padding-bottom: 6px; }
  .preset-row { margin-bottom: 7px; }
  .control-divider { margin-top: 7px; margin-bottom: 6px; }
  .clock-readout { margin-top: 6px; padding-top: 6px; padding-bottom: 6px; }
}
@media (min-width: 1500px) {
  .app { padding-left: 28px; padding-right: 28px; }
  .workspace { grid-template-columns: minmax(0, 1.65fr) minmax(380px, .8fr); }
}
@media (max-width: 980px) and (min-width: 701px) {
  .app { padding: 14px; gap: 9px; }
  .workspace { grid-template-columns: minmax(0, 1.2fr) minmax(310px, .9fr); gap: 9px; }
  .measurement-panel, .controls-panel { padding: 11px; }
  .stage-panel { padding: 11px; }
  .model-tag { display: none; }
  .metric-card { padding: 8px; }
}
@media (max-width: 700px) {
  .app { height: 100vh; height: 100dvh; min-height: 0; padding: max(9px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom)); gap: 8px; overflow: hidden; }
  .topbar { flex: 0 0 49px; gap: 8px; }
  .identity { gap: 9px; }
  .mark { width: 31px; height: 31px; flex-basis: 31px; border-radius: 10px; }
  .mark::before { width: 14px; height: 14px; }
  .mark i { width: 21px; }
  .eyebrow { font-size: 7px; margin-bottom: 3px; }
  h1 { font-size: 18px; }
  .subtitle { font-size: 9px; margin-top: 3px; }
  .header-actions { gap: 0; }
  .model-tag { display: none; }
  .icon-button { width: 33px; height: 33px; padding: 0; justify-content: center; border-radius: 9px; }
  .icon-button span { display: none; }
  .icon-button svg { width: 16px; }
  .workspace { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(260px, 1.12fr) minmax(0, .88fr); gap: 8px; }
  .stage-panel { padding: 9px 9px 8px; border-radius: 13px; }
  .stage-topline { flex-basis: 19px; padding: 0 2px 5px; }
  .stage-label, .observer-label { font-size: 7px; }
  .canvas-wrap { min-height: 0; border-radius: 9px; }
  .canvas-corner { font-size: 6px; }
  .canvas-corner.top-left { left: 8px; top: 24px; }
  .canvas-corner.bottom-right { right: 8px; bottom: 7px; }
  .phase-chip { left: 50%; right: auto; transform: translateX(-50%); top: 7px; }
  .phase-chip span { font-size: 6px; }
  .phase-chip strong { font-size: 11px; }
  .stage-caption { min-height: 43px; gap: 8px; padding: 7px 2px 6px; }
  .caption-icon { width: 22px; height: 22px; flex-basis: 22px; border-radius: 7px; font-size: 11px; }
  .caption-kicker { font-size: 6px; margin-bottom: 2px; }
  .stage-caption p { font-size: 8px; line-height: 1.3; }
  .timing-strip { padding: 7px 2px 0; }
  .timing-heading { font-size: 6px; margin-bottom: 6px; }
  .timing-heading small { font-size: 5px; }
  .timing-grid { gap: 5px; }
  .timing-cell { padding: 0 6px 4px; }
  .timing-label { font-size: 5px; gap: 4px; margin-bottom: 3px; }
  .timing-cell strong { font-size: clamp(11px, 3.1vw, 14px); }
  .timing-cell small { font-size: 5px; margin-top: 3px; }
  .baseline-note { font-size: 7px; margin-left: 6px; }
  .baseline-note span { font-size: 6px; }
  .sidebar { min-height: 0; overflow-y: auto; gap: 8px; padding-right: 1px; }
  .measurement-panel, .controls-panel { padding: 10px; border-radius: 12px; }
  .panel-heading { margin-bottom: 8px; }
  .section-eyebrow { font-size: 6px; }
  .panel-heading h2 { font-size: 12px; }
  .live-pill { font-size: 6px; padding: 4px 6px; }
  .metrics-grid { gap: 5px; }
  .metric-card { padding: 7px 8px 6px; border-radius: 8px; }
  .metric-label { font-size: 5px; margin-bottom: 4px; }
  .metric-card strong { font-size: 16px; }
  .metric-card strong small { font-size: 8px; }
  .metric-kind { font-size: 5px; margin-top: 4px; }
  .check-row { margin-top: 6px; padding: 6px 7px; }
  .check-copy > span { font-size: 5px; }
  .check-copy strong { font-size: 8px; }
  .check-copy strong small { font-size: 7px; }
  .controls-panel { padding-bottom: 9px; }
  .control-heading { margin-bottom: 7px; }
  .input-tag { font-size: 5px; }
  .preset-row { margin-bottom: 7px; gap: 5px; }
  .preset { padding: 6px 7px; font-size: 7px; }
  .slider-list { gap: 6px; }
  .slider-head { margin-bottom: 2px; }
  .slider-head label { font-size: 8px; }
  .slider-head output { font-size: 7px; }
  input[type="range"] { height: 12px; }
  .control-divider { margin: 7px 0 6px; }
  .playback-head h3 { font-size: 8px; }
  .playback-head output { font-size: 7px; }
  .playback-buttons { margin-top: 3px; }
  .playback-buttons button { height: 27px; }
  .view-options { margin-top: 7px; padding-top: 6px; }
  .clock-readout { margin-top: 6px; padding: 6px 7px; }
  .clock-readout > span { font-size: 5px; }
  .clock-readout strong { font-size: 8px; }
  .science-panel { flex: 0 0 auto; border-radius: 11px; }
  .science-panel summary { min-height: 33px; padding: 0 10px; font-size: 7px; gap: 7px; }
  .science-icon { width: 17px; height: 17px; font-size: 11px; }
  .science-summary { font-size: 6px; }
  .science-content { grid-template-columns: 1fr; gap: 10px; padding: 10px 12px; max-height: 35vh; overflow-y: auto; }
  .science-column h3 { font-size: 9px; }
  .science-column p { font-size: 8px; }
  .footer-note { flex-basis: 9px; font-size: 5px; }
}
@media (max-width: 370px) {
  .app { padding-left: 7px; padding-right: 7px; }
  .stage-caption p { font-size: 7px; }
  .timing-cell strong { font-size: 10px; }
  .timing-heading small { display: none; }
  .metric-card strong { font-size: 14px; }
  .clock-readout .clock-phase { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
