:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --paper: #f4f5f9;
  --ink: #151b29;
  --muted: #586477;
  --light: #687489;
  --rule: #e4e8f0;
  --blue: #175bea;
  --green: #16835c;
  --radius: 24px;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #367bff; outline-offset: 4px; }
button, a { touch-action: manipulation; }
h1, h2, p { margin: 0; }
.shell { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid #e9ebf2; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 65px; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 16px; font-weight: 740; letter-spacing: -.035em; }
.app-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(150deg, #4381ff, #1151dc 76%); box-shadow: inset 0 1px 0 #ffffff5c, 0 3px 8px #195be53b; }
.app-mark i, .launch-icon { position: relative; width: 9px; height: 17px; border-radius: 70% 70% 28% 28%; background: #fff; transform: rotate(35deg); }
.app-mark i::before, .launch-icon::before { content: ""; position: absolute; top: 5px; left: 3px; width: 3px; height: 3px; border-radius: 50%; background: #3975ed; }
.app-mark i::after, .launch-icon::after { content: ""; position: absolute; top: 16px; left: 3px; width: 3px; height: 4px; border-radius: 0 0 70% 70%; background: #bfd7ff; }
.top-tools { display: flex; align-items: center; gap: clamp(10px, 2vw, 25px); font-size: 14px; font-weight: 640; color: #3d4a60; }
.top-tools a:hover, .nav-button:hover { color: var(--blue); }
.nav-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0; border: 0; background: none; white-space: nowrap; }
.nav-button { min-height: 44px; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; background: #f2f4f9; }
.icon-button:hover { background: #e7edfa; }
.log-icon { width: 15px; height: 16px; position: relative; border: 1.6px solid currentColor; border-radius: 3px; }
.log-icon::before { content: ""; position: absolute; inset: 4px 3px auto; height: 4px; border-block: 1px solid currentColor; }
.sound-icon { display: block; position: relative; width: 18px; height: 18px; }
.sound-icon::before { content: ""; position: absolute; top: 3px; left: 1px; width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 33%, 36% 33%, 100% 0, 100% 100%, 36% 67%, 0 67%); }
.sound-icon::after { content: "×"; position: absolute; right: -2px; top: -2px; font-size: 16px; font-weight: 580; }
[aria-pressed="true"] .sound-icon::after { content: ""; top: 4px; right: 0; width: 6px; height: 10px; border-right: 2px solid currentColor; border-radius: 50%; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-block: clamp(28px, 3.3vw, 45px) 23px; }
.intro h1 { font-size: clamp(2.45rem, 6vw, 4.05rem); font-weight: 760; line-height: 1.01; letter-spacing: -.069em; }
.intro p { margin-top: 10px; font-size: clamp(1rem, 2vw, 1.21rem); color: var(--muted); letter-spacing: -.02em; }
.mode-picker { display: flex; flex-shrink: 0; padding: 4px; background: #e8edf5; border-radius: 13px; }
.mode-picker button { padding: 9px 15px; min-height: 36px; border: 0; border-radius: 9px; background: none; color: #47556c; font-size: .875rem; font-weight: 650; }
.mode-picker button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px #1b305c1a; }
.mode-picker button:disabled { opacity: .6; }
.mission-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(274px, 1fr); align-items: stretch; gap: 19px; scroll-margin-top: 12px; }
.flight-card, .plan-card { background: #fff; border-radius: var(--radius); border: 1px solid #e7eaf2; box-shadow: 0 8px 27px #23396a0a; min-width: 0; }
.flight-card { overflow: hidden; }
.viewport { position: relative; height: clamp(315px, 30vw, 415px); overflow: hidden; isolation: isolate; color: white; background: #0b213b; }
#flightCanvas, .viewport-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewport-shade { pointer-events: none; background: linear-gradient(90deg, #05152990 0%, #081c3200 64%), linear-gradient(0deg,#060f24ed 0%,#071b3660 15%,transparent 39%); }
.view-top { position: absolute; inset: 19px 23px auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.view-label { display: inline-flex; gap: 7px; align-items: center; padding: 8px 11px; border: 1px solid #e5efff44; border-radius: 30px; background: #081b3c72; color: #f1f6ff; font-size: .78rem; font-weight: 680; backdrop-filter: blur(12px); }
.view-label > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #9ee6ff; box-shadow: 0 0 9px #72bbffb5; }
.glass-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #fff4; border-radius: 50%; background: #152b537d; color: #fff; backdrop-filter: blur(12px); }
.glass-button:hover { background: #223d6fcf; }
.pause-icon { width: 11px; height: 13px; border-inline: 3px solid currentColor; border-radius: 2px; }
.view-title { position: absolute; top: 40%; left: 5%; max-width: 48%; display: grid; gap: 5px; text-shadow: 0 2px 18px #07162dbc; pointer-events: none; }
.view-title span { font-size: .75rem; font-weight: 670; letter-spacing: .15em; text-transform: uppercase; color: #e0eaff; }
.view-title strong { font-size: clamp(1.8rem, 4.1vw, 3.8rem); line-height: 1.04; font-weight: 740; letter-spacing: -.06em; text-wrap: balance; }
.mission-layout[data-phase="countdown"] .view-title strong { font-size: clamp(3.6rem, 8vw, 6.5rem); line-height: .9; font-variant-numeric: tabular-nums; }
.mission-layout[data-phase="flight"] .view-title { top: 43%; }
.mission-layout[data-phase="flight"] .view-title strong { font-size: clamp(1.55rem, 3.25vw, 3rem); }
.telemetry { position: absolute; inset: auto 23px 16px; display: flex; width: fit-content; max-width: calc(100% - 46px); gap: clamp(16px, 3.1vw, 36px); padding: 12px 16px; border-radius: 14px; border: 1px solid #e5efff24; background: #08182eb9; backdrop-filter: blur(15px); }
.telemetry div { display: grid; gap: 3px; min-width: 44px; }
.telemetry span { white-space: nowrap; color: #c4d4eb; font-size: .73rem; font-weight: 520; }
.telemetry strong { white-space: nowrap; font-size: 1.16rem; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.telemetry small { font-size: .69em; font-weight: 520; color: #d4e3f6; }
.command-deck { min-height: 108px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 19px; padding: 19px 22px; }
.command-copy h2 { font-size: clamp(1.08rem, 2vw, 1.26rem); font-weight: 738; letter-spacing: -.033em; }
.command-copy p { color: var(--muted); font-size: .91rem; line-height: 1.31; margin-top: 4px; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 13px; padding: 12px 17px; min-height: 47px; background: var(--blue); color: white; font-size: .97rem; line-height: 1.18; font-weight: 690; box-shadow: 0 3px 7px #175bea32; transition: background .15s; }
.primary:hover { background: #124dcb; }
.primary:disabled { box-shadow: none; background: #e8edf5; color: #4d5a70; }
.flight-action { min-width: 151px; user-select: none; touch-action: none; }
.flight-action kbd { padding: 4px 6px; border: 1px solid #ffffff69; border-radius: 5px; font-family: inherit; font-size: .71rem; font-weight: 650; line-height: 1; }
.flight-action:disabled kbd, .flight-action:disabled .launch-icon { display: none; }
.mission-layout:not([data-phase="ready"]) .flight-action .launch-icon { display: none; }
.flight-action.in-window, .flight-action.is-held { background: #127450; }
.flight-action.in-window:hover, .flight-action.is-held:hover { background: #0a6041; }
.meter { position: relative; height: 9px; max-width: 430px; margin-top: 10px; border-radius: 10px; background: #e5eaf3; }
.meter-band, .meter-marker { position: absolute; display: block; }
.meter-band { inset-block: 0; border-radius: inherit; background: #91d9b6; box-shadow: inset 0 0 0 1px #33997868; }
.meter-marker { top: -2px; width: 5px; height: 13px; border-radius: 3px; background: #152842; box-shadow: 0 0 0 1px white; transform: translateX(-50%); }
.plan-card { padding: 21px 19px 14px; display: flex; flex-direction: column; }
.plan-heading { display: flex; align-items: center; gap: 11px; }
.plan-heading h2 { font-size: 1.24rem; font-weight: 735; letter-spacing: -.037em; }
.plan-heading p { margin-top: 3px; color: var(--muted); font-size: .82rem; line-height: 1.16; }
.plan-icon { position: relative; flex: 0 0 42px; height: 42px; border-radius: 13px; background: #eaf0ff; color: var(--blue); }
.plan-icon::before { content: ""; position: absolute; inset: 11px 12px; border: 2px solid currentColor; border-radius: 3px; }
.plan-icon::after { content: ""; position: absolute; top: 17px; left: 17px; width: 8px; height: 8px; border-block: 1.5px solid currentColor; }
.stages { list-style: none; padding: 0; margin: 16px 0 13px; display: grid; gap: 4px; }
.stage { min-height: 40px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 6px 8px; gap: 9px; border-radius: 11px; color: #536076; }
.stage.is-current { background: #edf3ff; color: #123768; }
.stage.is-done { color: #355468; }
.stage strong { font-size: .91rem; font-weight: 660; letter-spacing: -.014em; }
.step-detail { display: block; margin-block: 3px 1px; color: #426083; font-size: .78rem; line-height: 1.25; }
.step { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf0f6; font-size: .73rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.is-current .step { background: var(--blue); color: #fff; }
.is-done .step { color: #12694c; background: #e3f6eb; }
.step-tag { color: #1b54bd; font-size: .7rem; font-weight: 735; }
.plan-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 13px 3px 1px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .83rem; font-weight: 560; }
#phaseIcon { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #3681ff; }
[data-phase="success"] #phaseIcon { background: var(--green); }
[data-phase="failed"] #phaseIcon { background: #db613f; }
.result-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: #0613299a; backdrop-filter: blur(8px); }
.result { width: min(330px, 100%); padding: 19px 22px 13px; border: 1px solid #ffffff66; border-radius: 21px; background: #f9fbffff; color: var(--ink); text-align: center; box-shadow: 0 14px 45px #04142b62; }
@media (min-width: 920px) {
  [data-phase="success"] .result-layer, [data-phase="failed"] .result-layer { justify-items: start; padding-left: 5%; background: linear-gradient(90deg, #061329d9, #06132927); backdrop-filter: none; }
}
.result-mark { margin-bottom: 5px; min-height: 26px; color: var(--blue); font-size: 1.48rem; font-weight: 740; letter-spacing: .045em; }
.result h2 { font-size: 1.45rem; letter-spacing: -.04em; }
.result p { min-height: 36px; margin: 6px 0 12px; color: var(--muted); font-size: .92rem; line-height: 1.32; }
.result .primary { width: 100%; }
.result-link { padding: 9px 5px 2px; border: 0; background: none; color: var(--blue); font-weight: 650; font-size: .85rem; }
.fleet-section { margin-block: 34px 29px; scroll-margin-top: 16px; }
.fleet-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 23px; margin-bottom: 16px; }
.fleet-top h2 { font-size: clamp(1.8rem, 3.15vw, 2.45rem); line-height: 1.08; letter-spacing: -.06em; font-weight: 755; }
.fleet-top p { margin-top: 5px; color: var(--muted); font-size: .98rem; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button { min-height: 36px; padding: 7px 12px; border: 1px solid transparent; border-radius: 36px; color: #41516b; background: transparent; font-size: .875rem; font-weight: 640; }
.filters button:hover { background: #e7edf9; }
.filters button[aria-pressed="true"] { color: #164ebc; background: #e4edff; border-color: #d8e5ff; }
.fleet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vehicle { display: flex; flex-direction: column; align-items: stretch; overflow: hidden; border: 1px solid #e5eaf4; border-radius: 18px; background: #fff; padding: 0; text-align: left; box-shadow: 0 3px 12px #23396a09; transition: border-color .15s, box-shadow .15s; }
.vehicle:hover { border-color: #91aff5; box-shadow: 0 5px 16px #23396a1c; }
.vehicle:disabled { opacity: .65; }
.vehicle[aria-pressed="true"] { border-color: #2668f2; box-shadow: inset 0 0 0 1px #2668f2; }
.vehicle-art { display: block; position: relative; width: 100%; height: 127px; overflow: hidden; background: radial-gradient(ellipse at 50% 90%,#c2d7fd,#dce8fd 65%,#eaf1fe); }
.vehicle-art[data-group="blue"] { background: radial-gradient(ellipse at 50% 90%,#c1dfe7,#dcecf6 65%,#edf6fb); }
.vehicle-art[data-group="nasa"] { background: radial-gradient(ellipse at 50% 90%,#cfd0ef,#e1e3f7 65%,#eeeefa); }
.vehicle-art[data-group="history"] { background: radial-gradient(ellipse at 50% 90%,#eed8c5,#f2e8df 65%,#faf4ef); }
.vehicle-art canvas { position: absolute; width: 100%; height: 100%; inset: 0; }
.vehicle-state { position: absolute; z-index: 1; top: 11px; left: 12px; background: #ffffffdc; color: #405170; border-radius: 24px; padding: 4px 8px; font-size: .72rem; font-weight: 690; }
.vehicle[aria-pressed="true"] .vehicle-state { color: #124cae; }
.vehicle-details { display: grid; gap: 3px; padding: 12px 13px 13px; }
.vehicle-details strong { font-size: 1.04rem; font-weight: 740; letter-spacing: -.027em; }
.vehicle-details span { color: var(--light); font-size: .82rem; line-height: 1.3; }
.fleet-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; color: var(--muted); font-size: .84rem; }
.fleet-footer a { color: var(--blue); font-weight: 650; }
.fleet-footer a:hover { text-decoration: underline; }
dialog { width: min(490px, calc(100% - 26px)); max-height: min(650px, 85dvh); border: 1px solid #e4eafa; border-radius: 23px; padding: 23px; color: var(--ink); box-shadow: 0 22px 56px #02123649; }
dialog::backdrop { background: #08162f88; backdrop-filter: blur(5px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.dialog-header h2 { font-size: 1.8rem; letter-spacing: -.05em; }
.dialog-header p, .empty-log { margin-top: 4px; color: var(--muted); }
.empty-log { padding: 21px 0 7px; }
.close { font-size: 1.55rem; line-height: 1; }
.log-entries { list-style: none; margin: 14px 0 0; padding: 0; }
.log-entries li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 11px; border-top: 1px solid var(--rule); }
.log-entries strong { display: block; }
.log-entries small { color: var(--muted); }
.log-stars { color: #a36709; white-space: nowrap; font-size: 1.1rem; letter-spacing: .06em; }
@media (max-width: 860px) {
  .shell { width: calc(100% - 38px); }
  .mission-layout { grid-template-columns: minmax(0, 1.85fr) minmax(226px, 1fr); gap: 12px; }
  .viewport { height: 326px; }
  .plan-card { padding-inline: 13px; }
  .command-deck { padding-inline: 14px; gap: 9px 12px; }
  .flight-action { min-width: 128px; }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 55px; }
  .top-tools { gap: 10px; }
  .arcade-link, .log-icon { display: none; }
  .icon-button { width: 36px; height: 36px; }
  .intro { margin: 24px 0 15px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .intro p { margin-top: 7px; }
  .mode-picker button { min-height: 34px; padding: 7px 13px; }
  .mission-layout { grid-template-columns: 1fr; }
  .viewport { height: clamp(259px, 73vw, 370px); }
  .view-top { inset: 12px 12px auto; }
  .view-title { left: 5.6%; max-width: 48%; }
  .view-title span { font-size: .69rem; letter-spacing: .08em; }
  .telemetry { inset: auto 12px 12px; max-width: calc(100% - 24px); gap: 16px; padding: 8px 10px; }
  .telemetry strong { font-size: 1rem; }
  .command-deck { min-height: 98px; }
  .flight-action { min-width: 112px; }
  .flight-action kbd { display: none; }
  .plan-card { padding: 15px; }
  .stages { margin-block: 9px; }
  .stage { min-height: 36px; }
  .fleet-section { margin-top: 26px; }
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fleet-footer { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .top-tools { gap: 9px; }
  .wordmark { gap: 7px; font-size: .875rem; }
  .log-label { display: none; }
  .log-icon { display: inline-block; }
  #openLog { width: 32px; }
  .command-deck { grid-template-columns: 1fr; padding-block: 13px; }
  .flight-action { width: 100%; }
  .vehicle-state { top: 7px; left: 7px; }
}

.view-tools { display: flex; align-items: center; gap: 7px; }
.view-tools .glass-button { flex: none; }
.screen-icon { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
[aria-pressed="true"] .screen-icon { width: 12px; height: 10px; box-shadow: 0 0 0 2px #ffffff39; }
.corner-icon {
  width: 15px;
  height: 15px;
  background: linear-gradient(currentColor, currentColor) left top / 6px 2px,
    linear-gradient(currentColor, currentColor) left top / 2px 6px,
    linear-gradient(currentColor, currentColor) right top / 6px 2px,
    linear-gradient(currentColor, currentColor) right top / 2px 6px,
    linear-gradient(currentColor, currentColor) left bottom / 6px 2px,
    linear-gradient(currentColor, currentColor) left bottom / 2px 6px,
    linear-gradient(currentColor, currentColor) right bottom / 6px 2px,
    linear-gradient(currentColor, currentColor) right bottom / 2px 6px;
  background-repeat: no-repeat;
}
[aria-pressed="true"] .corner-icon {
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, transparent 43%, currentColor 45% 55%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, currentColor 45% 55%, transparent 57%);
}
.command-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 11px; }
.stage-count, #stageClock { color: var(--muted); white-space: nowrap; font-size: .76rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.meter { overflow: visible; width: 100%; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: #8baae4; opacity: .65; }
.stage-progress { display: flex; align-items: center; gap: 9px; margin-top: 7px; max-width: 430px; }
.stage-track { flex: 1; height: 3px; overflow: hidden; border-radius: 4px; background: #e5eaf3; }
.stage-track span { display: block; height: 100%; width: 0; background: #37916c; }
.mission-layout:not([data-stage-kind="throttle"]) .stage-track { visibility: hidden; }
#stageClock { min-width: 5ch; text-align: right; }

body.flight-focused { overflow: hidden; overscroll-behavior: none; }
.mission-layout[data-focus="true"] {
  --hud-gap: clamp(14px, 3.2vw, 44px);
  --hud-bottom: max(16px, env(safe-area-inset-bottom));
  --deck-clearance: 148px;
  position: fixed;
  inset: 0;
  z-index: 10;
  display: block;
  background: #0b172b;
}
[data-focus="true"] .flight-card,
[data-focus="true"] .viewport {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
[data-focus="true"] .viewport { isolation: auto; }
[data-focus="true"] .viewport-shade {
  background: linear-gradient(90deg, #050d1eaa, #09122600 43%),
    linear-gradient(0deg, #030b1cf0, #09142640 23%, transparent 44%, transparent 80%, #040a1644);
}
[data-focus="true"] .view-top { z-index: 5; inset: max(15px, env(safe-area-inset-top)) var(--hud-gap) auto; }
[data-focus="true"] .glass-button { width: 44px; height: 44px; }
[data-focus="true"] .view-label { padding: 9px 12px; font-size: .85rem; background: #091a30af; }
[data-focus="true"] .view-label > span:first-child { background: #98f4d2; box-shadow: 0 0 12px #66eabc89; }
.mission-layout[data-focus="true"] .view-title { top: 34%; left: var(--hud-gap); max-width: 36%; gap: 9px; }
.mission-layout[data-focus="true"] .view-title strong { font-size: clamp(1.8rem, 4.1vw, 4.3rem); }
[data-focus="true"][data-phase="countdown"] .view-title strong { font-size: clamp(4.5rem, 11vw, 9rem); }
[data-focus="true"] .telemetry {
  inset: auto var(--hud-gap) calc(var(--deck-clearance) + var(--hud-bottom));
  background: #101d30bb;
  padding: 12px 17px;
}
[data-focus="true"] .telemetry span { font-size: .79rem; }
[data-focus="true"] .telemetry strong { font-size: 1.3rem; }
[data-focus="true"] .command-deck {
  position: absolute;
  z-index: 2;
  inset: auto var(--hud-gap) var(--hud-bottom);
  min-height: 102px;
  max-width: 980px;
  margin-inline: auto;
  padding: 16px 19px;
  color: #f3f7ff;
  border: 1px solid #b7d0ff33;
  border-radius: 19px;
  background: #0b182be6;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 44px #03091577;
}
[data-focus="true"] .command-copy h2 { font-size: clamp(1.04rem, 2.4vw, 1.44rem); }
[data-focus="true"] .command-copy p,
[data-focus="true"] .stage-count,
[data-focus="true"] #stageClock { color: #c1cfe5; }
[data-focus="true"] .flight-action { min-height: 55px; min-width: clamp(137px, 20vw, 216px); box-shadow: none; }
[data-focus="true"] .flight-action:disabled { background: #243650; color: #bfcde1; }
[data-focus="true"] .meter,
[data-focus="true"] .stage-track { max-width: none; background: #2c3f59; }
[data-focus="true"] .stage-progress { max-width: none; }
[data-focus="true"] .meter-band { background: #5fc49a; }
[data-focus="true"] .meter-marker { background: #f1f6ff; box-shadow: 0 0 9px #d8eaff5a; }
[data-focus="true"] .plan-card {
  position: absolute;
  z-index: 3;
  inset: 81px var(--hud-gap) auto auto;
  max-height: calc(100% - 245px);
  width: clamp(233px, 23vw, 303px);
  overflow: auto;
  border: 1px solid #c1d4ff26;
  border-radius: 19px;
  padding: 15px;
  color: #edf4ff;
  background: #08192dc9;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 33px #03091442;
}
[data-focus="true"] .plan-heading p,
[data-focus="true"] .plan-foot,
[data-focus="true"] .stage,
[data-focus="true"] .step-detail { color: #c1cfe5; }
[data-focus="true"] .plan-icon { background: #24519772; color: #adcaff; }
[data-focus="true"] .plan-foot { border-color: #eaefff24; }
[data-focus="true"][data-phase="flight"] .plan-foot { display: none; }
[data-focus="true"] .stage.is-current { background: #274b82a5; color: #fff; }
[data-focus="true"] .step { background: #253a54; color: #dce9fc; }
[data-focus="true"] .is-current .step { background: #2469ec; color: #fff; }
[data-focus="true"] .is-done .step { background: #163c37; color: #a0edca; }
[data-focus="true"] .step-tag { color: #bbd4ff; }
[data-focus="true"] .stages { gap: 2px; margin: 11px 0 9px; }
[data-focus="true"] .stage { min-height: 35px; padding-block: 3px; }
[data-focus="true"] .result-layer { z-index: 4; }
[data-focus="true"][data-phase="success"] .result-layer,
[data-focus="true"][data-phase="failed"] .result-layer { padding-left: var(--hud-gap); }
[data-focus="true"] .result { box-shadow: 0 18px 70px #000a; }
@media (max-width: 790px), (max-height: 570px) {
  [data-focus="true"] .plan-card { display: none; }
}
@media (max-width: 600px) {
  .mission-layout[data-focus="true"] { --deck-clearance: 151px; }
  [data-focus="true"] .view-top { inset-inline: 12px; }
  [data-focus="true"] .view-tools { gap: 5px; }
  [data-focus="true"] .view-label { font-size: .76rem; padding-inline: 10px; }
  .mission-layout[data-focus="true"] .view-title { top: 19%; max-width: 61%; }
  .mission-layout[data-focus="true"] .view-title strong { font-size: clamp(1.55rem, 6.3vw, 2.45rem); }
  [data-focus="true"] .telemetry { padding: 8px 11px; }
  [data-focus="true"] .telemetry strong { font-size: 1.05rem; }
  [data-focus="true"] .command-deck { gap: 8px 12px; padding: 13px 12px; }
  [data-focus="true"] .command-copy p { font-size: .81rem; }
  [data-focus="true"] .flight-action { min-width: 104px; padding-inline: 11px; }
}
@media (max-width: 360px) {
  .mission-layout[data-focus="true"] { --deck-clearance: 193px; }
  [data-focus="true"] .glass-button { width: 39px; height: 39px; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .mission-layout[data-focus="true"] { --hud-bottom: 9px; --deck-clearance: 111px; }
  [data-focus="true"] .command-deck { min-height: 80px; padding-block: 9px; }
  .mission-layout[data-focus="true"] .view-title { top: max(59px, 18%); gap: 4px; }
  [data-focus="true"][data-phase="countdown"] .view-title strong { font-size: clamp(2.5rem, 15vh, 4rem); }
  [data-focus="true"] .telemetry { padding-block: 5px; }
  [data-focus="true"] .result { padding: 8px 14px; }
}
@media (max-height: 300px) and (orientation: landscape) {
  [data-focus="true"] .telemetry { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
