:root {
  color-scheme: dark;
  --bg: #080b16;
  --panel: #101421e8;
  --line: #aebade1a;
  --text: #edf0f9;
  --muted: #99a3bd;
  --mint: #b5a5ff;
  --gold: #e6bf87;
  --blue: #aabafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #c8b8ff; outline-offset: 5px; }
button:disabled { cursor: default; opacity: .5; }
[hidden] { display: none !important; }
#universe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.grain { pointer-events: none; position: fixed; inset: 0; background: radial-gradient(ellipse, transparent, #06091588); z-index: -1; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 4px; text-decoration: none; }
.brand small { font-size: 9px; font-weight: 400; letter-spacing: 2px; color: var(--muted); padding-left: 15px; border-left: 1px solid var(--line); }
.brand-icon { color: #c4b8fd; font-size: 30px; }
.eyebrow { font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 1.6px; color: var(--muted); }
.dot { display: inline-block; width: 5px; height: 5px; background: #b5a5ff; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 12px #b5a5ff70; }
.login-shell { min-height: 100svh; padding: 32px 44px; display: flex; flex-direction: column; }
.login-composition { margin: auto; width: min(440px, 100%); padding: 50px 0; }
.orbit-label { text-align: center; font: 9px ui-monospace, monospace; letter-spacing: 3.6px; margin-bottom: 24px; color: #b4bbd6; }
.login-card { padding: 30px 38px 0; border-radius: 24px; border: 1px solid #b0a0ed33; background: linear-gradient(135deg, #171b2ddb, #0b1020ed); backdrop-filter: blur(22px); box-shadow: 0 32px 100px #0007, 0 0 100px #8671df14; }
.login-emblem { font-size: 38px; color: #b5a5ff; margin-bottom: 24px; }
.login-card h1 { font-size: clamp(30px, 4vw, 38px); line-height: 1.14; letter-spacing: -1.5px; font-weight: 500; margin: 24px 0 18px; }
.login-card h1 em { font-weight: 400; font-family: Georgia, serif; color: #c9baff; }
.login-card > p { font-size: 14px; color: #a7b0c8; line-height: 1.8; margin: 0 0 30px; }
#google-button { min-height: 44px; display: flex; justify-content: center; color-scheme: light; background: transparent; }
/* Match the GIS iframe canvas scheme; do not alter Google's official button. */
#google-button iframe { color-scheme: light; background: transparent; border: 0; }
.policy-choice { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; text-align: left; color: var(--muted); font-size: 12px; line-height: 1.6; }
.policy-choice input { flex: 0 0 auto; margin-top: 4px; accent-color: #b8a8ef; }
.policy-choice a { color: #c9bcff; text-decoration: underline; text-underline-offset: 3px; }
.login-card .auth-message { font-size: 11px; min-height: 28px; margin: 16px 0 23px; text-align: center; color: #a5acc5; }
.card-footer { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; font: 8px ui-monospace, monospace; letter-spacing: 1px; color: #939eb9; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; color: #9aa4c1; font: 9px ui-monospace, monospace; letter-spacing: 1px; }
.login-footer button { background: none; border: 0; color: inherit; font: inherit; }
.login-footer a { text-decoration: none; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: #0a0d19ec; }
.topbar .brand { font-size: 13px; }
.live-status { color: #a2d1c4; font: 9px ui-monospace, monospace; letter-spacing: 1px; }
.user-menu { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; }
.user-menu button { border: 0; background: none; color: #c5cce0; font-size: 11px; }
.workspace { display: flex; min-height: calc(100svh - 72px); background: #080b16e0; }
.sidebar { width: 210px; flex-shrink: 0; padding: 32px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: #0a0d19a0; }
.sidebar > .eyebrow { margin: 3px 12px 14px; font-size: 8px; }
.nav { display: flex; align-items: center; gap: 11px; text-align: left; padding: 13px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #a4adc5; font-size: 12px; }
.nav-icon { font-size: 19px; }
.nav small { margin-left: auto; font: 9px ui-monospace, monospace; }
.nav.active { background: #a592ee14; border-color: #b4a0ed35; color: #d0c2ff; }
.sidebar-bottom { margin-top: auto; padding: 65px 12px 4px; display: flex; flex-direction: column; gap: 18px; font-size: 11px; line-height: 1.9; color: #c4c9dc; letter-spacing: .5px; }
.sidebar-bottom small { color: var(--muted); font: 8px/2 ui-monospace, monospace; }
.sidebar-bottom a { font-size: 10px; color: var(--muted); text-decoration: none; }
.mini-planet { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 25% 20%, #dbcfef, #7d709e 35%, #242540 70%); box-shadow: 0 0 35px #9b88db15; }
main { width: 100%; max-width: 1700px; min-width: 0; padding: 38px 36px 24px; margin-inline: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(30px, 3vw, 43px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 500; margin: 16px 0 14px; }
.page-heading h1 em { color: #bfaef5; font-family: Georgia, serif; font-weight: 400; }
.page-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.outline { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #141929; color: #bac1d7; font-size: 11px; white-space: nowrap; }
.outline:hover { border-color: #bda9ff66; }
.bridge { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ship-panel, .radar-panel { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px 24px 16px; }
.panel-heading .eyebrow { font-size: 8px; }
.panel-heading h2 { font-size: 25px; letter-spacing: -.7px; font-weight: 500; margin: 10px 0 0; }
.pill { border: 1px solid #b9a3fc26; color: #bba6fa; background: #a080f90a; padding: 7px 9px; font: 8px ui-monospace, monospace; border-radius: 6px; letter-spacing: 1px; white-space: nowrap; }
.ship-scene { position: relative; height: clamp(265px, 23vw, 370px); overflow: hidden; background: radial-gradient(ellipse at 50% 70%, #69549724, transparent 65%); }
.ship { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 20px 25px #0004); animation: float 9s ease-in-out infinite; }
.orbit { position: absolute; width: 85%; height: 55%; left: 8%; top: 29%; border: 1px solid #7e68992b; border-radius: 50%; transform: rotate(-13deg); }
.orbit-two { width: 65%; height: 77%; left: 18%; top: 7%; transform: rotate(37deg); border-style: dashed; opacity: .5; }
.deck-label { position: absolute; z-index: 2; font: 7px ui-monospace, monospace; letter-spacing: .5px; color: #9ca9c5; pointer-events: none; padding: 4px 6px; background: #0f1526d9; border: 1px solid #8e9abb20; border-radius: 4px; }
.deck-hunter { left: 16%; top: 43%; color: #d0bbff; border-color: #bca0ff66; }
.deck-hunter i { display: inline-block; height: 4px; width: 4px; background: #c1aaff; border-radius: 50%; margin-left: 3px; }
.deck-comp { left: 42%; top: 25%; }.deck-dec { right: 9%; top: 46%; }
.deck-int { left: 16%; bottom: 27%; }.deck-rec { left: 43%; bottom: 17%; }.deck-feed { right: 13%; bottom: 25%; }
.ship-scene[data-station="1"] .deck-comp,
.ship-scene[data-station="2"] .deck-dec,
.ship-scene[data-station="3"] .deck-int,
.ship-scene[data-station="4"] .deck-rec,
.ship-scene[data-station="5"] .deck-feed { color: #dccbff; border-color: #bba0ff99; box-shadow: 0 0 18px #bba0ff20; }
.scene-label, .scene-coordinate { position: absolute; bottom: 10px; color: #8c96af; font: 7px ui-monospace, monospace; letter-spacing: 1px; }
.scene-label { left: 24px; }.scene-coordinate { right: 24px; }
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 20px 0; }
.station { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; padding: 13px 12px; border: 1px solid #8393b51c; border-radius: 10px; background: #141a2a; color: #a5afc6; transition: border-color .2s, background .2s, transform .2s; }
.station:hover { border-color: #b7a1fb70; transform: translateY(-2px); }
.station span { display: flex; justify-content: space-between; font: 8px ui-monospace, monospace; }
.station span i { font-style: normal; font-size: 6px; letter-spacing: .4px; opacity: .75; }
.station strong { font-size: 12px; font-weight: 500; color: #d5dbeb; }.station small { font-size: 9px; line-height: 1.4; color: #9aa5bf; }
.station.active { background: linear-gradient(135deg, #69519932, #34274518); border-color: #b19af277; }
.station.active strong, .station.active span { color: #d7c6ff; }
.station-detail { margin: 18px 24px; min-height: 76px; border-left: 2px solid #b49afa66; padding-left: 13px; }
.station-detail .eyebrow { font-size: 8px; color: #b7a5e6; }.station-info { font-size: 11px; color: #aab2c9; line-height: 1.75; margin: 8px 0 0; }
.next-mission { display: flex; gap: 20px; align-items: center; margin: 0 20px 20px; padding: 17px; border: 1px solid #b4a1f42d; border-radius: 12px; background: #b49fff0a; }
.next-mission > div { display: flex; flex-direction: column; gap: 8px; }.next-mission .eyebrow { font-size: 7px; }
.next-mission strong { font-size: 14px; font-weight: 500; color: #ded5f9; }.next-mission small { font-size: 10px; line-height: 1.6; color: #9fa9c3; }
.mission-action { margin-left: auto; flex-shrink: 0; height: 38px; width: 38px; border: 1px solid #b4a1f44a; background: #b49fff13; border-radius: 50%; color: #dbc8ff; font-size: 20px; }
.radar-intro { padding: 0 24px 20px; font-size: 12px; line-height: 1.65; color: #a6b0c8; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 24px 16px; }.filter { border: 1px solid #9caad729; border-radius: 7px; padding: 8px 10px; background: transparent; font-size: 10px; color: #aab5cd; }
.filter.active { background: #bca2f61c; color: #d4c2ff; border-color: #baa0fa55; }
#results { padding: 0 24px 22px; max-height: 610px; overflow: auto; scrollbar-width: thin; scrollbar-color: #44405d transparent; }
.root-header { font-size: 13px; color: #d6dcee; font-weight: 500; margin: 16px 0 8px; }.root-note { font-size: 10px; line-height: 1.7; color: #a4aec6; margin: 0 0 16px; }
.probe { border: 1px solid #9cadd21f; border-radius: 12px; padding: 14px; margin-bottom: 9px; background: #141b2a; transition: border-color .2s; }
.probe:has(input:checked) { border-color: #b5a5ff77; background: #a590e617; }
.probe-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }.probe h3 { font-size: 12px; font-weight: 500; line-height: 1.5; margin: 0; flex: 1; min-width: 120px; color: #dce2f0; }
.probe input { accent-color: #b5a5ff; width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.probe .status { font: 7px ui-monospace, monospace; color: #dfbb8e; background: #e4b9840b; border: 1px solid #e4b98426; border-radius: 5px; padding: 5px; white-space: nowrap; }
.probe p { font-size: 10px; line-height: 1.6; color: #a5afc6; margin: 10px 0 0 26px; }.channel { display: block; font-size: 11px; color: var(--blue); margin: 9px 0 0 26px; text-decoration: none; }
.gates { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0 0 26px; }.gate { font: 8px ui-monospace, monospace; padding: 5px 6px; border: 1px solid var(--line); border-radius: 4px; color: #acb5cb; }
.gate.pass { color: #a0d6c5; }.gate.fail { color: #f0a4ad; }
.empty { padding: 32px 8px; text-align: center; color: #a9b3cb; line-height: 1.8; font-size: 12px; }.ledger { display: grid; gap: 12px; }
.ledger > div { display: flex; justify-content: space-between; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--muted); }.ledger strong { color: var(--text); font-weight: 500; }
.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 25px 0 15px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.telemetry > div { display: flex; flex-direction: column; gap: 9px; padding: 19px 21px; background: #111624; }.telemetry span { font: 8px ui-monospace, monospace; color: var(--muted); letter-spacing: 1px; }
.telemetry strong { font-size: 25px; font-weight: 500; }.telemetry strong.date { font-size: 18px; line-height: 29px; }.telemetry small { font-size: 10px; color: #9da7bf; line-height: 1.5; }
.notice { padding: 13px 16px; border-left: 2px solid #d9b58666; color: #cdb999; background: #e9bf8107; font-size: 11px; line-height: 1.7; border-radius: 0 7px 7px 0; }
.telemetry-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; color: #97a2bc; font: 8px ui-monospace, monospace; }.telemetry-footer a { text-decoration: none; }
.legal-shell { max-width: 760px; margin: 70px auto; padding: 30px; background: #111725; border: 1px solid var(--line); border-radius: 18px; }.legal-shell h1 { font-size: 32px; }.legal-shell h2 { font-size: 18px; margin-top: 30px; }
.legal-shell p, .legal-shell li { font-size: 14px; color: #bcc5d9; line-height: 1.9; }
@keyframes float { 50% { transform: translateY(-5px); } }
@media (max-width: 1200px) {
  .sidebar { width: 180px; }.topbar .brand small { display: none; }
  main { padding: 30px 24px; }.bridge { gap: 16px; }
  .crew { padding: 12px 14px 0; gap: 6px; }.station { padding: 12px 9px; }.station strong { font-size: 10px; }
  .station span i { display: none; }.deck-label { font-size: 6px; padding: 3px; }
  .panel-heading { padding: 20px 18px 14px; }.panel-heading h2 { font-size: 22px; }
  .filters, #results { padding-left: 18px; padding-right: 18px; }.radar-intro { padding-inline: 18px; }
}
@media (max-width: 980px) {
  .bridge { grid-template-columns: 1fr; }.ship-scene { height: 340px; }
  .crew { grid-template-columns: repeat(6, 1fr); }.station strong { font-size: 9px; }.station small { font-size: 8px; }
  .radar-panel #results { max-height: 650px; }.user-menu > span { display: none; }
  .deck-label { font-size: 8px; }.ship-panel { max-width: 100%; }
}
@media (max-width: 640px) {
  .login-shell { padding: 22px; }.login-shell .brand small { display: none; }
  .login-card { padding: 26px 25px 0; border-radius: 20px; }.orbit-label { font-size: 7px; letter-spacing: 2px; }
  .login-composition { padding: 42px 0; }.login-footer { font-size: 7px; letter-spacing: .4px; }.login-footer > span { display: none; }
  .topbar { padding: 0 18px; min-height: 64px; }.topbar .brand { font-size: 11px; letter-spacing: 2px; }.live-status { display: none; }
  .workspace { flex-direction: column; }.sidebar { width: 100%; flex-direction: row; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); gap: 5px; }
  .sidebar > .eyebrow, .sidebar-bottom { display: none; }.nav { flex: 1; justify-content: center; padding: 10px 7px; gap: 7px; font-size: 10px; }.nav small { display: none; }
  main { padding: 27px 15px 22px; }.page-heading { margin-bottom: 25px; gap: 15px; }.page-heading .eyebrow { font-size: 7px; letter-spacing: .8px; }.page-heading h1 { font-size: 31px; }.page-heading p { font-size: 11px; }
  .outline { font-size: 9px; padding: 10px; }.ship-scene { height: 280px; }.crew { grid-template-columns: repeat(3, 1fr); }.station strong { font-size: 11px; }.station small { font-size: 9px; }
  .deck-label { font-size: 6px; }.deck-dec { right: 5%; }.scene-label { font-size: 6px; }.panel-heading h2 { font-size: 22px; }
  .station-detail { margin: 18px; }.next-mission { margin: 0 14px 14px; }.telemetry { grid-template-columns: repeat(2, 1fr); }.telemetry > div { padding: 17px; }.telemetry strong { font-size: 23px; }
  .probe .status { margin-left: 26px; }.telemetry-footer { flex-wrap: wrap; font-size: 7px; }.legal-shell { margin: 30px 15px; padding: 25px; }
}
@media (prefers-reduced-motion: reduce) { .ship { animation: none; } *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
