:root {
  color-scheme: dark;
  --bg: #080e16;
  --panel: #0e1722;
  --panel-raised: #111d2a;
  --panel-soft: #0b131d;
  --line: rgba(177, 206, 220, .12);
  --line-strong: rgba(177, 206, 220, .2);
  --text: #e8f0f3;
  --muted: #91a5b1;
  --dim: #617481;
  --accent: #7de3cf;
  --accent-soft: rgba(125, 227, 207, .13);
  --accent-line: rgba(125, 227, 207, .34);
  --radius: 15px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 50% -18%, rgba(47, 102, 111, .18), transparent 48%), var(--bg); color: var(--text); font-size: 13px; line-height: 1.45; }
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-shell { min-height: 100vh; }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
body.embed-mode .app-shell { height: 100vh; height: 100dvh; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid rgba(172, 206, 220, .09); background: rgba(8, 14, 22, .82); }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 27px; height: 27px; border: 1px solid var(--accent-line); border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; transform: rotate(-26deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 20px; height: 8px; border: 1px solid var(--accent); border-radius: 50%; opacity: .85; }
.brand-mark::after { transform: rotate(62deg); width: 16px; opacity: .45; }
.brand-mark span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); position: absolute; }
.brand-name { font-size: 10px; font-weight: 800; letter-spacing: .19em; line-height: 1.2; }
.brand-name span { color: var(--accent); }
.brand-sub { color: var(--dim); font-size: 8px; letter-spacing: .18em; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topic-tag, .live-indicator { font-size: 9px; letter-spacing: .14em; font-weight: 750; color: var(--muted); }
.topic-tag { border: 1px solid var(--line); padding: 6px 9px; border-radius: 5px; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.live-indicator i, .telemetry-pulse i, .orbit-state i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 11px rgba(125, 227, 207, .65); }
.main-content { max-width: 1680px; margin: 0 auto; padding: 17px 20px 14px; }
.intro-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 2px 16px; }
.eyebrow { display: block; color: var(--muted); font-size: 8px; line-height: 1.25; font-weight: 800; letter-spacing: .17em; }
h1 { margin: 5px 0 4px; font-size: clamp(22px, 2.1vw, 29px); letter-spacing: -.045em; font-weight: 660; line-height: 1.1; }
h1 em { color: var(--accent); font-style: normal; }
.intro-copy { margin: 0; max-width: 630px; color: var(--muted); font-size: 11px; }
.seed-card { flex: 0 0 auto; min-width: 126px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(19, 34, 46, .9), rgba(12, 21, 31, .88)); text-align: right; }
.seed-label, .seed-sub { display: block; font-size: 7px; color: var(--dim); letter-spacing: .16em; font-weight: 800; }
.seed-card strong { display: block; color: var(--accent); font-size: 17px; letter-spacing: .08em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.seed-sub { margin-top: 2px; }
.dashboard { display: grid; grid-template-columns: minmax(225px, 252px) minmax(400px, 1fr) minmax(250px, 278px); gap: 12px; align-items: stretch; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(17, 29, 42, .97), rgba(11, 19, 29, .98)); box-shadow: 0 10px 35px rgba(0, 0, 0, .13); }
.controls-panel, .telemetry-panel { padding: 15px 14px 12px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .visual-topline h2 { margin: 3px 0 0; font-size: 16px; letter-spacing: -.025em; font-weight: 650; }
.panel-index { color: var(--dim); font-size: 9px; letter-spacing: .12em; font-weight: 800; padding-top: 3px; }
.preset-block { margin: 12px 0 13px; }
.control-label-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.control-label-row label { font-size: 10px; color: #c9d7dc; font-weight: 650; }
.class-tag { flex: 0 0 auto; font-size: 6px; line-height: 1.4; letter-spacing: .11em; font-weight: 850; color: var(--dim); border: 1px solid rgba(151, 179, 192, .15); padding: 2px 4px; border-radius: 3px; }
.preset-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.preset-btn { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 8px 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(6, 13, 21, .48); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.preset-btn:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.preset-btn.active { border-color: var(--accent-line); background: var(--accent-soft); }
.preset-icon { flex: 0 0 23px; width: 23px; height: 23px; border: 1px solid var(--accent-line); border-radius: 6px; display: grid; place-items: center; color: var(--accent); font-size: 16px; }
.preset-btn b, .preset-btn small { display: block; white-space: nowrap; }
.preset-btn b { font-size: 8px; font-weight: 750; }
.preset-btn small { color: var(--muted); font-size: 7px; margin-top: 2px; }
.control-group { margin: 0 0 11px; }
.value-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.value-row output { color: var(--accent); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.control-hint { color: var(--dim); font-size: 7px; white-space: nowrap; }
input[type="range"] { display: block; width: 100%; height: 13px; margin: 0; appearance: none; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0%, rgba(125, 227, 207, .28) 100%); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0%, rgba(125, 227, 207, .28) 100%); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); margin-top: -4px; box-shadow: 0 0 0 1px var(--accent-line), 0 0 8px rgba(125, 227, 207, .22); }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent-line); }
.speed-group { margin-top: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(177, 206, 220, .07); }
.toggle-row b, .toggle-row small { display: block; }
.toggle-row b { font-size: 9px; font-weight: 700; }
.toggle-row small { margin-top: 2px; color: var(--dim); font-size: 7px; }
.switch { flex: 0 0 auto; position: relative; width: 32px; height: 18px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: absolute; inset: 0; border-radius: 20px; background: #253441; border: 1px solid rgba(175, 205, 217, .16); transition: background .2s ease; }
.switch-track::after { content: ""; position: absolute; width: 10px; height: 10px; left: 3px; top: 3px; border-radius: 50%; background: #8b9da7; transition: transform .2s ease, background .2s ease; }
.switch input:checked + .switch-track { background: rgba(125, 227, 207, .2); border-color: var(--accent-line); }
.switch input:checked + .switch-track::after { transform: translateX(14px); background: var(--accent); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: rgba(5, 11, 17, .45); }
.segmented button { border: 0; border-radius: 4px; background: transparent; color: var(--muted); padding: 3px 7px; font-size: 7px; cursor: pointer; }
.segmented button.selected { background: var(--accent-soft); color: var(--accent); }
.control-actions { display: grid; grid-template-columns: 1fr auto 32px; gap: 6px; margin-top: 11px; }
.control-actions button { min-height: 32px; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 750; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.control-actions button:hover { transform: translateY(-1px); }
.action-primary { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: #06201c; border: 1px solid var(--accent); }
.action-primary:hover { background: #a1f3e3; }
.play-symbol { font-size: 10px; }
.action-secondary, .icon-action { background: rgba(5, 12, 19, .6); border: 1px solid var(--line-strong); color: var(--text); }
.action-secondary:hover, .icon-action:hover { border-color: var(--accent-line); color: var(--accent); }
.icon-action { font-size: 17px !important; line-height: 1; }
.keyboard-note { color: var(--dim); font-size: 7px; text-align: center; margin-top: 9px; }
kbd { font: inherit; padding: 2px 4px; color: #aebec5; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(3, 9, 14, .4); }

.visual-panel { padding: 14px; display: flex; flex-direction: column; }
.visual-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 1px 11px; }
.visual-topline h2 { font-size: 16px; }
.visual-tools { display: flex; align-items: center; gap: 10px; }
.orbit-state { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 7px; letter-spacing: .13em; font-weight: 800; white-space: nowrap; }
.orbit-state i { width: 5px; height: 5px; }
.quality-btn { border: 1px solid var(--line); border-radius: 5px; padding: 5px 7px; color: var(--muted); background: rgba(3, 10, 16, .4); font-size: 7px; font-weight: 850; letter-spacing: .08em; cursor: pointer; }
.quality-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.quality-btn span { color: var(--dim); font-weight: 600; }
.stage-wrap { position: relative; width: 100%; height: clamp(335px, 34vw, 440px); min-height: 320px; overflow: hidden; border: 1px solid rgba(139, 186, 200, .14); border-radius: 11px; background: radial-gradient(ellipse at 50% 45%, #101f2b 0%, #0b1621 52%, #08111a 100%); }
#orbitCanvas { display: block; width: 100%; height: 100%; }
.canvas-corner { position: absolute; z-index: 1; display: flex; align-items: center; gap: 7px; color: rgba(182, 204, 214, .56); font-size: 7px; letter-spacing: .13em; font-weight: 750; pointer-events: none; text-shadow: 0 1px 5px #061019; }
.top-left-corner { top: 13px; left: 14px; }
.bottom-left-corner { bottom: 12px; left: 14px; gap: 8px; }
.bottom-right-corner { right: 13px; bottom: 12px; color: var(--accent); }
.corner-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.corner-sep { color: var(--dim); }
.caption-strip { display: flex; align-items: flex-start; gap: 10px; padding: 11px 3px 9px; min-height: 63px; }
.caption-icon { flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid var(--accent-line); border-radius: 7px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); font-size: 14px; }
.caption-strip p { margin: 3px 0 0; color: #bdcbd1; font-size: 9px; line-height: 1.5; }
.visual-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 13px; border-top: 1px solid var(--line); padding: 9px 2px 1px; margin-top: auto; }
.legend-item { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 7px; white-space: nowrap; }
.legend-item i { display: inline-block; width: 13px; height: 2px; border-radius: 2px; }
.legend-orbit { background: var(--accent); }
.legend-field { background: repeating-linear-gradient(90deg, #8faab4 0 3px, transparent 3px 5px); }
.legend-wheel { background: #dce8e9; }
.legend-torque { background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 4px); opacity: .55; }
.screenshot-btn { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; background: rgba(3, 10, 16, .4); color: var(--muted); font-size: 7px; font-weight: 750; cursor: pointer; }
.screenshot-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.screenshot-btn span { color: var(--accent); font-size: 11px; }
.science-details { border-top: 1px solid var(--line); margin-top: 9px; }
.science-details details { width: 100%; }
.science-details summary { display: flex; align-items: center; gap: 9px; list-style: none; padding: 10px 2px 2px; cursor: pointer; }
.science-details summary::-webkit-details-marker { display: none; }
.science-glyph { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-soft); font-size: 14px; }
.science-details summary b, .science-details summary small { display: block; }
.science-details summary b { font-size: 9px; }
.science-details summary small { margin-top: 1px; color: var(--dim); font-size: 7px; }
.details-chevron { margin-left: auto; color: var(--accent); font-size: 16px; transition: transform .2s ease; }
.science-details details[open] .details-chevron { transform: rotate(180deg); }
.science-content { padding: 10px 0 2px; }
.equation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.equation-card { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 9px; background: rgba(3, 10, 17, .32); }
.equation-card p { margin: 7px 0 0; color: #d7e4e7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.science-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 2px 7px; }
.science-notes b { font-size: 8px; color: var(--accent); }
.science-notes p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.disclaimer { margin: 5px 2px 0; color: var(--dim); font-size: 8px; font-style: italic; }

.telemetry-heading { align-items: center; }
.telemetry-pulse { display: flex; align-items: center; gap: 5px; color: var(--accent); font-size: 7px; letter-spacing: .12em; font-weight: 850; }
.telemetry-pulse i { width: 5px; height: 5px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding-top: 11px; }
.metric-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 8px; background: rgba(4, 11, 18, .34); }
.main-metric { grid-column: 1 / -1; padding: 10px; background: linear-gradient(120deg, rgba(17, 43, 47, .38), rgba(5, 13, 20, .42)); border-color: rgba(125, 227, 207, .18); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--muted); font-size: 7px; letter-spacing: .09em; font-weight: 800; }
.metric-value { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; white-space: nowrap; }
.metric-value strong { color: var(--text); font-size: 19px; line-height: 1.1; letter-spacing: -.045em; font-weight: 650; font-variant-numeric: tabular-nums; }
.main-metric .metric-value strong { color: var(--accent); font-size: 24px; }
.metric-value small { color: var(--muted); font-size: 8px; }
.metric-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 7px; }
.metric-foot span:first-child { color: var(--accent); }
.capacity-track { height: 3px; margin-top: 8px; background: rgba(152, 184, 194, .14); border-radius: 4px; overflow: hidden; }
.capacity-track span { display: block; width: 73%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.metric-sub { margin-top: 5px; color: var(--dim); font-size: 7px; line-height: 1.3; }
.history-card { margin-top: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 9px 6px; background: rgba(4, 11, 18, .34); }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.history-heading b { display: block; margin-top: 3px; font-size: 9px; }
#historyCanvas { display: block; width: 100%; height: 79px; margin-top: 3px; }
.history-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 6px; letter-spacing: .1em; }
.check-card { margin-top: 9px; border: 1px solid rgba(125, 227, 207, .18); border-radius: 8px; padding: 9px; background: rgba(13, 36, 36, .22); }
.check-heading { display: flex; align-items: center; gap: 7px; }
.check-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.check-heading b { display: block; margin-top: 2px; font-size: 9px; }
.check-card > p { margin: 7px 0 5px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.check-result { display: flex; align-items: baseline; gap: 6px; }
.check-result strong { color: var(--accent); font-size: 19px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.check-result span { color: var(--muted); font-size: 7px; }
.check-foot { display: flex; justify-content: space-between; gap: 4px; margin-top: 5px; color: var(--dim); font-size: 6px; letter-spacing: .07em; }
.check-status { color: var(--accent); font-weight: 850; }
.clock-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; padding: 9px 2px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 7px; letter-spacing: .09em; }
.clock-row strong { color: var(--text); font-size: 11px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 12px 0 0; color: var(--dim); font-size: 7px; letter-spacing: .1em; }
.page-footer b { color: var(--muted); font-weight: 800; margin-left: 4px; }
.footer-seed { color: var(--accent); }

@media (min-width: 1500px) {
  .dashboard { grid-template-columns: 270px minmax(480px, 1fr) 295px; }
  .stage-wrap { height: min(42vw, 510px); }
}
@media (max-width: 1100px) {
  .dashboard { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr); }
  .telemetry-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .telemetry-heading { grid-column: 1 / -1; }
  .metric-grid { align-content: start; }
  .history-card, .check-card { margin-top: 11px; }
  .clock-row { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topbar { height: 52px; padding: 0 14px; }
  .topic-tag { display: none; }
  .topbar-right { gap: 8px; }
  .main-content { padding: 13px 11px 14px; }
  .intro-row { align-items: flex-start; margin: 0 1px 12px; gap: 9px; }
  h1 { font-size: 23px; }
  .intro-copy { max-width: 420px; font-size: 10px; }
  .seed-card { min-width: 93px; padding: 7px 8px; margin-top: 8px; }
  .seed-card strong { font-size: 14px; }
  .seed-label, .seed-sub { font-size: 6px; }
  .dashboard { display: flex; flex-direction: column; gap: 10px; }
  .visual-panel { order: 1; padding: 11px; }
  .telemetry-panel { order: 2; display: block; padding: 12px; }
  .controls-panel { order: 3; padding: 13px; }
  .stage-wrap { height: clamp(285px, 84vw, 355px); min-height: 275px; }
  .visual-topline { padding-bottom: 8px; }
  .visual-topline h2 { font-size: 14px; }
  .visual-tools { gap: 7px; }
  .caption-strip { min-height: 60px; padding: 9px 1px 7px; }
  .caption-strip p { font-size: 8px; }
  .visual-footer { gap: 8px 11px; }
  .screenshot-btn { margin-left: 0; }
  .telemetry-heading { padding-bottom: 10px; }
  .metric-grid { padding-top: 9px; }
  .metric-value strong { font-size: 18px; }
  .main-metric .metric-value strong { font-size: 22px; }
  .history-card, .check-card { margin-top: 9px; }
  #historyCanvas { height: 83px; }
  .controls-panel .panel-heading { padding-bottom: 10px; }
  .control-group { margin-bottom: 12px; }
  .value-row output { font-size: 12px; }
  .control-hint { font-size: 8px; }
  .control-label-row label { font-size: 11px; }
  .toggle-row { padding: 10px 0; }
  .toggle-row b { font-size: 10px; }
  .toggle-row small { font-size: 8px; }
  .science-details { margin-top: 8px; }
  .equation-grid, .science-notes { grid-template-columns: 1fr; }
  .equation-card p { font-size: 10px; }
  .science-notes { gap: 9px; }
  .science-notes p { font-size: 9px; }
  .page-footer { justify-content: flex-start; padding: 12px 3px 0; font-size: 6px; }
}
@media (max-width: 390px) {
  .main-content { padding-left: 8px; padding-right: 8px; }
  .intro-row { gap: 6px; }
  h1 { font-size: 21px; }
  .intro-copy { font-size: 9px; }
  .seed-card { min-width: 85px; }
  .stage-wrap { height: 285px; }
  .canvas-corner { font-size: 6px; }
  .bottom-left-corner { gap: 5px; }
  .legend-item { font-size: 6px; }
  .visual-footer { gap: 7px 9px; }
  .screenshot-btn { padding: 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact desktop fit: keep the full instrument layout legible inside a 720 px embed. */
@media (min-width: 721px) {
  .main-content { padding-top: 13px; padding-bottom: 9px; }
  .intro-row { margin-bottom: 11px; }
  .stage-wrap { height: clamp(300px, 25vw, 360px); min-height: 300px; }
  .controls-panel, .telemetry-panel { padding: 12px 12px 9px; }
  .panel-heading { padding-bottom: 9px; }
  .preset-block { margin: 9px 0 10px; }
  .control-group { margin-bottom: 7px; }
  .speed-group { margin-top: 2px; padding-top: 7px; }
  .toggle-row { padding: 6px 0; }
  .control-actions { margin-top: 7px; }
  .keyboard-note { margin-top: 6px; }
  .metric-grid { padding-top: 8px; gap: 6px; }
  .metric-card { padding: 7px; }
  .main-metric { padding: 8px; }
  .history-card { margin-top: 7px; padding: 7px 8px 5px; }
  #historyCanvas { height: 61px; }
  .check-card { margin-top: 7px; padding: 7px 8px; }
  .check-card > p { margin: 5px 0 3px; }
  .check-result strong { font-size: 17px; }
  .clock-row { margin-top: 7px; padding-top: 7px; }
  .caption-strip { min-height: 53px; padding-top: 8px; padding-bottom: 6px; }
  .visual-footer { padding-top: 7px; }
  .science-details { margin-top: 7px; }
}
@media (min-width: 1101px) {
  .dashboard { align-items: start; }
  .controls-panel, .telemetry-panel { max-height: calc(100dvh - 190px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(125, 227, 207, .24) transparent; }
  .visual-panel { align-self: start; }
}
@media (min-width: 1101px) {
  .control-actions { position: sticky; bottom: 0; z-index: 3; padding: 8px 0 2px; background: linear-gradient(to bottom, rgba(14, 23, 34, 0), rgba(14, 23, 34, .98) 34%); }
}
@media (max-width: 720px) {
  .bottom-right-corner { display: none; }
}
