@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #f4f7f5;
  --muted: #93a3a7;
  --faint: #5e7075;
  --line: rgba(183, 215, 210, .14);
  --line-strong: rgba(183, 215, 210, .25);
  --panel: rgba(7, 16, 23, .88);
  --panel-solid: #0b171e;
  --surface: #101f27;
  --accent: #6de2c5;
  --accent-strong: #9af4dc;
  --warm: #ffbd66;
  --danger: #ff806e;
  --header-h: 72px;
  --footer-h: 36px;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }

body {
  background: #071017;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--accent);
  color: #04110f;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: rgba(7, 16, 23, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { position: relative; width: 35px; height: 35px; flex: 0 0 35px; }
.brand-orbit {
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.brand-orbit::after {
  content: '';
  position: absolute;
  width: 35px;
  height: 12px;
  top: 5px;
  left: -7px;
  border-top: 1.5px solid rgba(244, 247, 245, .72);
  border-radius: 50%;
  transform: rotate(-28deg);
}
.brand-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 3px;
  right: 2px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 14px rgba(255, 189, 102, .7);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong {
  font-family: 'Space Mono', monospace;
  font-size: .92rem;
  letter-spacing: .08em;
}
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .03em; }

.view-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
}
.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.view-tab svg { width: 17px; height: 17px; }
.view-tab:hover { color: var(--ink); }
.view-tab.active {
  background: rgba(109, 226, 197, .12);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(109, 226, 197, .18);
}
.iss-nav-link { color: var(--muted); text-decoration: none; }
.iss-nav-link:hover { color: var(--accent-strong); background: rgba(109, 226, 197, .07); }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-action, .object-button, .secondary-button, .close-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.icon-action:hover, .object-button:hover, .secondary-button:hover, .close-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .07);
}
.icon-action:active, .object-button:active, .secondary-button:active { transform: translateY(1px); }
.icon-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}
.icon-action svg { width: 18px; height: 18px; }
.object-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 11px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
}
.button-count {
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(109, 226, 197, .14);
  color: var(--accent-strong);
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  text-align: center;
}

.live-pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 226, 197, .1);
}
.live-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  animation: signal 2.2s ease-out infinite;
}
@keyframes signal { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.workspace { position: fixed; inset: var(--header-h) 0 var(--footer-h); overflow: hidden; background: #071017; }
.view-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
#globeContainer { background: #02070a; }

.workspace::after {
  content: '';
  position: absolute;
  z-index: 450;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 23, .28), transparent 18%, transparent 76%, rgba(7, 16, 23, .2));
}

.leaflet-container { background: #0b1418; font-family: inherit; }
.leaflet-control-zoom {
  overflow: hidden;
  margin: 0 0 18px 22px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 11px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important;
}
.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(7, 16, 23, .88) !important;
  color: var(--ink) !important;
}
.leaflet-control-attribution {
  margin: 0 12px 8px 0 !important;
  padding: 3px 7px !important;
  border-radius: 6px;
  background: rgba(7, 16, 23, .72) !important;
  color: var(--muted) !important;
}
.leaflet-control-attribution a { color: var(--accent) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--panel-solid);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.leaflet-popup-content-wrapper { border: 1px solid var(--line); border-radius: 12px; }

.telemetry-card {
  position: absolute;
  z-index: 600;
  top: 22px;
  left: 22px;
  width: min(340px, calc(100vw - 44px));
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7, 16, 23, .78);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.telemetry-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  color: var(--accent-strong);
  font-family: 'Space Mono', monospace;
  font-size: .67rem;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--line);
}
.telemetry-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; }
.telemetry-values div { display: flex; flex-direction: column; gap: 3px; }
.telemetry-values small { color: var(--faint); font-family: 'Space Mono', monospace; font-size: .58rem; letter-spacing: .1em; }
.telemetry-values strong { font-family: 'Space Mono', monospace; font-size: .78rem; font-weight: 400; }

.object-drawer {
  position: absolute;
  z-index: 1800;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(390px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(7, 16, 23, .985);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .5);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  transform: translateX(calc(100% + 28px));
  visibility: hidden;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), visibility .35s;
}
.object-drawer.show { transform: translateX(0); visibility: visible; }
.drawer-handle { display: none; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow > span { width: 20px; height: 1px; background: var(--accent); }
.drawer-header h2 { margin: 8px 0 0; font-size: 1.28rem; letter-spacing: -.02em; }
.drawer-header h2 span { margin-left: 5px; color: var(--accent); font-family: 'Space Mono', monospace; font-size: .78rem; font-weight: 400; }
.close-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 10px;
  color: var(--muted);
}
.close-button svg { width: 18px; height: 18px; }

.iss-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid rgba(109, 226, 197, .2);
  border-radius: 12px;
  background: rgba(109, 226, 197, .07);
}
.iss-icon { display: grid; place-items: center; height: 42px; border-radius: 10px; background: var(--accent); color: #04110f; font-family: 'Space Mono', monospace; font-size: .65rem; font-weight: 700; }
.iss-card > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.iss-card strong { font-size: .84rem; }
.iss-card span { color: var(--muted); font-family: 'Space Mono', monospace; font-size: .65rem; }
.iss-card small { margin-top: 3px; color: var(--accent); font-size: .68rem; }

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 12px;
  padding: 0 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .18s ease, background .18s ease;
}
.search-box:focus-within { border-color: rgba(109, 226, 197, .5); background: rgba(109, 226, 197, .045); }
.search-box svg { width: 17px; height: 17px; color: var(--faint); }
.search-box input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .88rem; }
.search-box input::placeholder { color: var(--faint); }
.search-box kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); background: rgba(0,0,0,.16); font-family: 'Space Mono', monospace; font-size: .62rem; }
.data-notice { margin-bottom: 10px; padding: 10px 12px; border: 1px solid rgba(255, 128, 110, .22); border-radius: 10px; background: rgba(255, 128, 110, .08); color: #ffc2b9; font-size: .78rem; }
.object-list { list-style: none; margin: 0 -8px -6px; padding: 0 8px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.object-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-bottom: 5px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.object-item:hover { background: rgba(255, 255, 255, .045); border-color: var(--line); }
.object-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--object-color); box-shadow: 0 0 10px color-mix(in srgb, var(--object-color), transparent 30%); }
.object-copy { min-width: 0; }
.object-copy strong { display: block; overflow: hidden; color: var(--ink); font-size: .83rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.object-copy small { display: block; margin-top: 3px; color: var(--faint); font-family: 'Space Mono', monospace; font-size: .59rem; text-transform: uppercase; }
.object-item > svg { width: 16px; height: 16px; color: var(--faint); }

.legend-card {
  position: absolute;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  width: 220px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(7, 16, 23, .9);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.legend-card.show { opacity: 1; visibility: visible; transform: translateY(0); }
.legend-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.legend-heading h2 { margin: 0; font-size: .9rem; }
.legend-heading .close-button { width: 30px; height: 30px; border: 0; background: transparent; }
.legend-item { display: flex; align-items: center; gap: 10px; padding: 6px 2px; color: var(--muted); font-size: .78rem; }
.legend-item > span { width: 8px; height: 8px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 9px color-mix(in srgb, var(--swatch), transparent 35%); }

.toast {
  position: absolute;
  z-index: 1900;
  left: 50%;
  bottom: 22px;
  max-width: calc(100vw - 30px);
  padding: 11px 15px;
  border: 1px solid rgba(109, 226, 197, .25);
  border-radius: 11px;
  background: rgba(7, 16, 23, .94);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(0,0,0,.36);
  font-size: .82rem;
  opacity: 0;
  transform: translate(-50%, 10px);
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.globe-loading { position: absolute; z-index: 700; inset: 0; display: none; place-items: center; align-content: center; gap: 12px; color: var(--muted); font-size: .85rem; pointer-events: none; }
.globe-loading.show { display: grid; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid rgba(109, 226, 197, .2); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.launches-view { position: absolute; z-index: 500; inset: 0; overflow-y: auto; background: radial-gradient(circle at 83% 8%, rgba(109, 226, 197, .09), transparent 27%), linear-gradient(145deg, #071017 0%, #0c1921 100%); }
.launches-view::before { content: ''; position: fixed; inset: var(--header-h) 0 var(--footer-h); pointer-events: none; opacity: .28; background-image: radial-gradient(rgba(255,255,255,.6) .55px, transparent .55px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 60%); }
.launches-shell { position: relative; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 90px; }
.launches-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 18px 0 38px; }
.launches-heading-row h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.06em; }
.launches-heading-row p { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.secondary-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border-radius: 11px; color: var(--ink); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.secondary-button svg { width: 17px; height: 17px; }
.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.launch-card { min-width: 0; min-height: 230px; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: rgba(16, 31, 39, .72); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.launch-card:hover { transform: translateY(-2px); border-color: rgba(109, 226, 197, .3); background: rgba(18, 36, 44, .86); }
.launch-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-family: 'Space Mono', monospace; font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; }
.launch-provider { max-width: 68%; overflow: hidden; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; text-overflow: ellipsis; white-space: nowrap; }
.launch-card h2 { margin: 26px 0 8px; overflow-wrap: anywhere; font-size: 1.22rem; letter-spacing: -.025em; }
.launch-vehicle { color: var(--accent); font-family: 'Space Mono', monospace; font-size: .73rem; }
.launch-date { margin: 20px 0 0; color: var(--ink); font-size: .88rem; font-weight: 600; }
.launch-description { margin: 10px 0 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .83rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.empty-state { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 220px; padding: 30px; border: 1px dashed var(--line-strong); border-radius: 17px; color: var(--muted); text-align: center; }

.nextgen-view {
  position: absolute;
  z-index: 500;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 82% 4%, rgba(109, 226, 197, .1), transparent 24%),
    radial-gradient(circle at 12% 42%, rgba(104, 167, 255, .06), transparent 30%),
    #071017;
}
.nextgen-view::before {
  content: '';
  position: fixed;
  inset: var(--header-h) 0 var(--footer-h);
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.55) .55px, transparent .55px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black, transparent 54%);
}
.nextgen-shell { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 90px; }
.nextgen-hero { padding-bottom: 42px; }
.nextgen-title-row { display: flex; align-items: center; justify-content: space-between; gap: 60px; margin-top: 20px; }
.nextgen-title-row h1 { max-width: 800px; margin: 0; font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: .94; letter-spacing: -.07em; }
.nextgen-title-row p { max-width: 710px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.orbit-badge { position: relative; width: 150px; height: 150px; flex: 0 0 150px; display: grid; place-items: center; }
.orbit-badge::before, .orbit-badge::after { content: ''; position: absolute; border: 1px solid rgba(109,226,197,.32); border-radius: 50%; }
.orbit-badge::before { inset: 11px; }
.orbit-badge::after { inset: 33px; border-color: rgba(255,255,255,.12); }
.orbit-badge > span { position: absolute; inset: 22px 5px; border-top: 1px solid var(--accent); border-radius: 50%; transform: rotate(-26deg); }
.orbit-badge > i { position: absolute; top: 15px; right: 31px; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 18px rgba(255,189,102,.8); }
.orbit-badge > b { font-family: 'Space Mono', monospace; font-size: .74rem; letter-spacing: .15em; }

.transition-status { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 17px; background: rgba(16,31,39,.66); }
.transition-status > div { min-width: 0; padding: 21px 23px; border-right: 1px solid var(--line); }
.transition-status > div:last-child { border-right: 0; }
.transition-status small { display: block; margin-bottom: 10px; color: var(--accent); font-family: 'Space Mono', monospace; font-size: .7rem; letter-spacing: .12em; }
.transition-status strong, .transition-status span { display: block; }
.transition-status strong { font-size: 1rem; }
.transition-status span { margin-top: 4px; color: var(--muted); font-size: .88rem; }

.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin: 76px 0 26px; }
.section-intro h2 { margin: 10px 0 0; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.045em; }
.section-intro > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.section-intro.compact { margin-top: 0; }

.station-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.station-card { min-width: 0; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,27,34,.76); transition: border-color .2s ease, transform .2s ease; }
.station-card:hover { transform: translateY(-3px); border-color: rgba(109,226,197,.3); }
.station-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .08em; }
.station-topline strong { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); font-weight: 400; }
.station-visual { position: relative; height: 128px; margin: 25px -23px 22px; display: grid; place-items: center; overflow: hidden; border-block: 1px solid var(--line); background: radial-gradient(circle, rgba(109,226,197,.08), transparent 58%); }
.station-visual::before { content: ''; position: absolute; width: 170px; height: 65px; border: 1px solid rgba(109,226,197,.23); border-radius: 50%; transform: rotate(-12deg); }
.orbit-line { position: absolute; width: 6px; height: 6px; top: 31px; right: calc(50% - 68px); border-radius: 50%; background: var(--warm); box-shadow: 0 0 13px rgba(255,189,102,.7); }
.module { position: relative; z-index: 2; background: #88a5a5; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.module-vast { width: 73px; height: 32px; border-radius: 16px 5px 5px 16px; }
.module-vast::before, .module-vast::after { content: ''; position: absolute; top: 10px; width: 36px; height: 12px; border: 2px solid #4d7e82; background: repeating-linear-gradient(90deg,#315b63 0 5px,#477781 5px 7px); }
.module-vast::before { right: 100%; }.module-vast::after { left: 100%; }
.module-vast i { position: absolute; inset: 5px 11px; border: 1px solid rgba(7,16,23,.45); border-radius: 12px; }
.module-vast b { position: absolute; width: 12px; height: 12px; top: 10px; right: -6px; border-radius: 50%; background: var(--accent); }
.module-axiom { width: 118px; height: 27px; border-radius: 14px; background: linear-gradient(90deg,#8da5a5,#bfd1cc,#7e9899); }
.module-axiom::before, .module-axiom::after { content: ''; position: absolute; top: 7px; width: 31px; height: 13px; border: 2px solid #4d7e82; background: #315b63; }
.module-axiom::before { right: 100%; }.module-axiom::after { left: 100%; }
.module-axiom i, .module-axiom b, .module-axiom em { position: absolute; top: 5px; width: 17px; height: 17px; border: 1px solid rgba(7,16,23,.42); border-radius: 50%; }
.module-axiom i { left: 9px; }.module-axiom b { left: 50px; }.module-axiom em { right: 9px; }
.module-starlab { width: 92px; height: 44px; border-radius: 22px; background: linear-gradient(#c2d3cf,#7f9b9a); }
.module-starlab::before, .module-starlab::after { content: ''; position: absolute; top: 14px; width: 37px; height: 16px; border: 2px solid #4d7e82; background: repeating-linear-gradient(90deg,#315b63 0 6px,#477781 6px 8px); }
.module-starlab::before { right: 100%; }.module-starlab::after { left: 100%; }
.module-starlab i { position: absolute; inset: 8px 14px; border: 1px solid rgba(7,16,23,.4); border-radius: 16px; }
.module-starlab b { position: absolute; width: 10px; height: 10px; left: calc(50% - 5px); top: -5px; border-radius: 50%; background: var(--accent); }
.station-card h3 { margin: 0 0 10px; font-size: 1.45rem; letter-spacing: -.03em; }
.station-card > p { min-height: 105px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.62; }
.station-card dl { margin: 22px 0; border-top: 1px solid var(--line); }
.station-card dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.station-card dt { color: var(--faint); }.station-card dd { margin: 0; color: var(--ink); text-align: right; }
.station-card > a, .nextgen-notes a { color: var(--accent); font-size: .82rem; font-weight: 600; text-decoration: none; }
.station-card > a:hover, .nextgen-notes a:hover { color: var(--accent-strong); text-decoration: underline; }

.roadmap-section { margin-top: 82px; padding: 35px; border: 1px solid var(--line); border-radius: 19px; background: rgba(13,27,34,.7); }
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 35px 0 0; padding: 0; }
.roadmap li { position: relative; min-width: 0; padding: 34px 20px 0 0; border-top: 1px solid var(--line-strong); }
.roadmap li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 2px solid #071017; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.roadmap time { color: var(--accent); font-family: 'Space Mono', monospace; font-size: .8rem; }
.roadmap div { margin-top: 12px; padding-right: 18px; }
.roadmap strong, .roadmap span { display: block; }
.roadmap strong { font-size: .88rem; }
.roadmap span { margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.nextgen-notes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.nextgen-notes article { padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: rgba(16,31,39,.58); }
.note-label { color: var(--warm); font-family: 'Space Mono', monospace; font-size: .65rem; letter-spacing: .12em; }
.nextgen-notes h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.nextgen-notes p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.source-note { margin: 22px 0 0; color: var(--faint); font-family: 'Space Mono', monospace; font-size: .68rem; text-align: right; }

.site-credit {
  position: fixed;
  z-index: 2100;
  inset: auto 0 0;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line);
  background: #071017;
  color: var(--faint);
  font-family: 'Space Mono', monospace;
  font-size: .58rem;
  letter-spacing: .09em;
}
.site-credit span { margin-right: auto; }
.site-credit a { color: var(--muted); text-decoration: none; }
.site-credit a:hover { color: var(--accent); }
.scrim { position: absolute; z-index: 1700; inset: 0; background: rgba(2, 7, 10, .58); }

@media (max-width: 980px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 12px; }
  .brand-copy small { display: none; }
  .icon-action span { display: none; }
  .icon-action { width: 42px; justify-content: center; padding: 0; }
  .view-tab { padding-inline: 11px; }
  .station-grid { grid-template-columns: 1fr; }
  .station-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .station-topline, .station-visual { grid-column: 1; }
  .station-card h3, .station-card > p, .station-card dl, .station-card > a { grid-column: 2; }
  .station-card h3 { grid-row: 1; align-self: end; margin-bottom: 12px; padding-top: 28px; }
  .station-card > p { grid-row: 2; min-height: 0; }
  .station-card dl { grid-row: 3; }
  .station-card > a { grid-row: 4; }
}

@media (max-width: 720px) {
  :root { --header-h: 126px; --footer-h: 32px; }
  .topbar { grid-template-columns: 1fr auto; grid-template-rows: 52px 50px; gap: 0 12px; padding: 7px 14px 10px; }
  .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .brand-copy strong { font-size: .83rem; }
  .view-switcher { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .view-tab { flex: 1 1 0; justify-content: center; min-height: 40px; padding: 8px; font-size: .82rem; }
  .view-tab { gap: 0; padding-inline: 4px; font-size: .72rem; }
  .view-tab svg { display: none; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .top-actions .icon-action { width: 36px; min-height: 36px; height: 36px; border: 0; background: transparent; }
  .object-button { min-height: 36px; padding: 7px 9px; }
  .object-button .live-pulse { display: none; }
  .telemetry-card { top: 12px; left: 12px; width: 206px; padding: 11px 12px; }
  .telemetry-status { padding-bottom: 8px; font-size: .58rem; }
  .telemetry-values { gap: 8px; padding-top: 8px; }
  .telemetry-values div:nth-child(3) { display: none; }
  .telemetry-values { grid-template-columns: repeat(2, 1fr); }
  .telemetry-values strong { font-size: .7rem; }
  .object-drawer {
    position: fixed;
    z-index: 2200;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(77vh, 680px);
    padding: 10px 16px max(18px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    transform: translateY(calc(100% + 8px));
  }
  .object-drawer.show { transform: translateY(0); }
  .drawer-handle { display: block; width: 38px; height: 4px; margin: 0 auto 10px; border-radius: 3px; background: var(--line-strong); }
  .iss-card { margin-top: 13px; }
  .search-box { margin-top: 13px; }
  .scrim { position: fixed; inset: 0; z-index: 2150; }
  .legend-card { right: 12px; bottom: 12px; }
  .launches-shell { width: min(100% - 28px, 1120px); padding: 44px 0 70px; }
  .launches-heading-row { align-items: flex-start; margin-bottom: 26px; }
  .launches-heading-row h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .launches-heading-row p { font-size: .9rem; }
  .launch-grid { grid-template-columns: 1fr; }
  .launch-card { min-height: 0; padding: 20px; }
  .nextgen-shell { width: min(100% - 28px, 1180px); padding: 42px 0 68px; }
  .nextgen-hero { padding-bottom: 28px; }
  .nextgen-title-row { display: block; }
  .nextgen-title-row h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .nextgen-title-row p { margin-top: 17px; font-size: .98rem; }
  .orbit-badge { display: none; }
  .transition-status { grid-template-columns: 1fr; }
  .transition-status > div { padding: 16px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .transition-status > div:last-child { border-bottom: 0; }
  .section-intro { display: block; margin: 54px 0 22px; }
  .section-intro > p { margin-top: 14px; }
  .station-card { display: block; padding: 20px; }
  .station-visual { margin-inline: -20px; }
  .station-card h3 { margin-top: 0; padding-top: 0; }
  .station-card > p { min-height: 0; }
  .roadmap-section { margin-top: 54px; padding: 22px 20px; }
  .roadmap { display: block; margin-top: 28px; padding-left: 4px; }
  .roadmap li { min-height: 95px; padding: 0 0 26px 30px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .roadmap li:last-child { min-height: 0; border-left-color: transparent; }
  .roadmap li::before { top: 2px; left: -5px; }
  .roadmap div { margin-top: 5px; padding-right: 0; }
  .nextgen-notes { grid-template-columns: 1fr; }
  .source-note { text-align: left; }
  .site-credit { gap: 12px; padding-inline: 14px; }
  .site-credit a:first-of-type { display: none; }
}

@media (max-width: 430px) {
  .brand-copy { display: none; }
  .top-actions { gap: 2px; }
  .object-button { font-size: .78rem; }
  .button-count { min-width: 22px; }
  .launches-heading-row { display: block; }
  .secondary-button { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
