:root {
  color-scheme: dark;
  --space: #081429;
  --space-deep: #040a18;
  --panel: rgba(14, 30, 57, .92);
  --panel-soft: rgba(20, 42, 75, .82);
  --line: rgba(139, 202, 255, .19);
  --cyan: #67ddff;
  --cyan-bright: #c7f5ff;
  --purple: #a992ff;
  --yellow: #ffd65a;
  --coral: #ff8178;
  --mint: #72efb3;
  --text: #f4f8ff;
  --muted: #a9bbd5;
  --shadow: 0 20px 70px rgba(0, 5, 18, .33);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 11% 4%, rgba(91, 111, 255, .28), transparent 27rem),
    radial-gradient(circle at 90% 18%, rgba(0, 205, 255, .16), transparent 25rem),
    radial-gradient(circle at 54% 92%, rgba(163, 87, 255, .14), transparent 32rem),
    linear-gradient(155deg, var(--space) 0%, var(--space-deep) 62%, #0a1025 100%);
}

.star-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(103,221,255,.7) 0 1px, transparent 1.5px);
  background-position: 0 0, 33px 41px;
  background-size: 92px 92px, 137px 137px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

main {
  position: relative;
  width: min(1500px, calc(100% - 40px));
  margin: auto;
  padding: 24px 0 30px;
}

a { color: inherit; }
button, input, select { font: inherit; }
.hidden { display: none !important; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.club-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.mission-logo {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border: 1px solid rgba(103,221,255,.45);
  border-radius: 20px;
  color: var(--yellow);
  background: linear-gradient(145deg, rgba(71, 93, 183, .5), rgba(22, 43, 79, .78));
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 12px 32px rgba(0,0,0,.25);
}

.mission-logo svg { width: 48px; height: 48px; fill: rgba(255,214,90,.24); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mission-logo .radio-wave { fill: none; stroke: var(--cyan); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy > span { color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-copy strong { font-size: clamp(20px, 2.3vw, 30px); line-height: 1.05; }
.brand-copy small { color: var(--muted); font-size: 14px; }

.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.frequency, .badge, button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 28, 54, .84);
}
.frequency, .badge { display: inline-flex; align-items: center; font-size: 14px; font-weight: 800; letter-spacing: .05em; }
.frequency { color: var(--cyan-bright); }
.badge { color: var(--mint); }
.badge i { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; box-shadow: 0 0 14px currentColor; animation: pulse 2s ease-in-out infinite; }
.badge.waiting { color: var(--yellow); }
.badge.paused, .badge.error { color: var(--coral); }
button { color: var(--text); cursor: pointer; border-color: rgba(255,214,90,.35); transition: transform .2s ease, border-color .2s ease, color .2s ease; }
button:hover { color: var(--yellow); border-color: var(--yellow); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .6; }

.mission-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .38fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(132, 156, 255, .28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 35%, rgba(103,221,255,.18), transparent 15rem),
    linear-gradient(120deg, rgba(70, 67, 166, .38), rgba(13, 38, 68, .88) 53%, rgba(8, 26, 52, .94));
  box-shadow: var(--shadow);
}
.mission-intro::after { content: "144.390"; position: absolute; right: -18px; bottom: -27px; color: rgba(255,255,255,.035); font-size: clamp(80px, 13vw, 175px); font-weight: 950; letter-spacing: -.09em; pointer-events: none; }
.mission-intro > * { position: relative; z-index: 1; }
.mission-intro h1 { max-width: 850px; margin: 4px 0 12px; font-size: clamp(30px, 4.8vw, 61px); line-height: .98; letter-spacing: -.04em; }
.mission-intro > div > p:not(.eyebrow) { max-width: 760px; margin: 0; color: #cedbf0; font-size: clamp(14px, 1.5vw, 18px); line-height: 1.55; }
.subject-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.subject-pills button { min-height: 0; padding: 9px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: var(--text); background: rgba(6,17,38,.34); font-size: 14px; font-weight: 750; }
.subject-pills button:hover { color: var(--yellow); border-color: rgba(255,214,90,.55); }
.eyebrow { margin: 0 0 5px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.mission-update { display: flex; gap: 13px; align-items: center; padding: 18px; border: 1px solid rgba(103,221,255,.24); border-radius: 18px; background: rgba(4, 17, 38, .58); backdrop-filter: blur(9px); }
.mission-update .spark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; color: var(--yellow); background: rgba(255,214,90,.12); font-size: 20px; }
.mission-update div { display: grid; gap: 4px; }
.mission-update small { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.mission-update strong { font-size: 15px; line-height: 1.4; }

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 25, 49, .78);
  box-shadow: 0 14px 40px rgba(0,0,0,.15);
}
.status-strip .status-item { min-width: 0; min-height: 0; padding: 16px 34px 16px 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0; color: var(--text); background: transparent; text-align: left; }
.status-strip .status-item:last-child { border: 0; }
.status-strip .status-item:hover { color: var(--text); background: rgba(103,221,255,.045); transform: none; }
.status-strip span, dt { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.status-strip strong { display: block; overflow: hidden; color: var(--cyan-bright); font-size: 17px; text-overflow: ellipsis; }
.status-strip small { display: block; margin-top: 4px; color: #8599b6; font-size: 12px; }
.status-strip .safety strong { color: var(--mint); }

.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(390px, .88fr); }
.panel, .metrics .metric-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--panel), rgba(7, 18, 38, .94));
  box-shadow: var(--shadow);
}
.panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
h2 { margin: 0; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.15; letter-spacing: -.025em; }
.muted { color: var(--muted); font-size: 13px; }
.status-chip { padding: 7px 11px; border: 1px solid rgba(255,214,90,.22); border-radius: 999px; color: var(--yellow); background: rgba(255,214,90,.08); font-size: 12px; font-weight: 800; }

.target-panel { background: radial-gradient(circle at 17% 48%, rgba(95,94,255,.13), transparent 24rem), linear-gradient(145deg, var(--panel), rgba(7,18,38,.94)); }
.target-layout { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(320px, 1.1fr); gap: 24px; align-items: center; }
.radar { position: relative; aspect-ratio: 1.42; min-height: 240px; overflow: hidden; border: 1px solid rgba(103,221,255,.2); border-radius: 18px; background: radial-gradient(circle, rgba(103,221,255,.16) 0 1px, transparent 1.8px), rgba(4, 15, 36, .78); background-size: 20px 20px; }
.ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border: 1px solid rgba(103,221,255,.22); border-radius: 50%; transform: translate(-50%,-50%); }
.ring-one { width: 48%; }
.ring-two { width: 92%; }
.cross { position: absolute; background: rgba(103,221,255,.16); }
.cross.horizontal { left: 0; right: 0; top: 50%; height: 1px; }
.cross.vertical { top: 0; bottom: 0; left: 50%; width: 1px; }
.compass { position: absolute; z-index: 2; color: rgba(199,245,255,.5); font-size: 9px; font-weight: 900; }
.compass.north { left: calc(50% + 7px); top: 10px; }
.compass.east { right: 10px; top: calc(50% + 7px); }
.radar::after { content: ""; position: absolute; left: 50%; width: 50%; height: 100%; transform-origin: left center; background: linear-gradient(16deg, rgba(103,221,255,.18), transparent 45%); animation: sweep 5s linear infinite; }
.balloon-icon { position: absolute; left: 21%; top: 19%; z-index: 2; font-size: 25px; filter: drop-shadow(0 5px 7px rgba(0,0,0,.35)); animation: float 3s ease-in-out infinite; }
.blip { position: absolute; left: 62%; top: 31%; z-index: 3; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--coral); box-shadow: 0 0 6px 2px var(--coral), 0 0 25px 9px rgba(255,129,120,.35); }
.radar-caption { position: absolute; z-index: 2; left: 12px; bottom: 10px; color: var(--muted); font-size: 12px; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes pulse { 50% { opacity: .42; } }

.telemetry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 0; }
.telemetry-grid dt small { display: block; margin-top: 3px; color: #879ab6; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
dd { margin: 0; color: var(--cyan-bright); font-size: clamp(15px, 1.8vw, 21px); font-weight: 750; }
.telemetry-line { margin-top: 18px; padding: 13px 15px; border-radius: 13px; color: #d6caff; background: rgba(169,146,255,.09); font-size: 14px; }
.target-actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 13px; color: var(--muted); font-size: 12px; }
.target-actions a { color: var(--cyan); font-weight: 800; text-decoration: none; }
.target-actions a:hover { text-decoration: underline; }

.route { display: grid; grid-template-columns: repeat(7, minmax(0, auto)); gap: 6px; align-items: center; margin: 8px 0 22px; }
.route .route-step { min-width: 0; min-height: 86px; display: grid; align-content: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-align: center; background: rgba(7,20,43,.55); }
.route .route-step:hover { color: var(--text); border-color: rgba(103,221,255,.5); background: rgba(26,60,97,.58); }
.route span { display: block; margin-bottom: 5px; color: var(--purple); font-size: 10px; font-weight: 900; }
.route strong { font-size: 13px; overflow-wrap: anywhere; }
.route small { display: block; margin-top: 5px; color: #8ba0bd; font-size: 10px; line-height: 1.25; }
.route b { color: var(--cyan); }
.meter-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.meter-label strong { color: var(--yellow); }
.meter { height: 13px; margin: 7px 0 8px; padding: 3px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.22); }
.meter span { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--cyan), var(--yellow), var(--coral)); transition: width .3s ease; }
.coach-note { min-height: 30px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.health-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 0; }
.health-list > div { padding: 11px; border-radius: 12px; background: rgba(255,255,255,.025); }
.health-list dd { font-size: 16px; }
.notice { margin: 16px 0 0; padding: 11px; border: 1px solid rgba(255,129,120,.33); border-radius: 12px; color: #ffc7c3; background: rgba(255,129,120,.08); font-size: 11px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0; }
.metrics .metric-card { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 0; padding: 17px 34px 17px 17px; border-radius: 22px; color: var(--text); text-align: left; }
.metrics .metric-card:hover { color: var(--text); border-color: rgba(103,221,255,.45); }
.metric-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; background: rgba(103,221,255,.09); font-size: 21px; }
.metrics .metric-card:nth-child(2) .metric-icon { background: rgba(114,239,179,.09); }
.metrics .metric-card:nth-child(3) .metric-icon { background: rgba(255,214,90,.09); }
.metrics .metric-card:nth-child(4) .metric-icon { background: rgba(169,146,255,.1); }
.metrics div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; min-width: 0; }
.metrics small { grid-column: 1/-1; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.metrics strong { color: var(--cyan-bright); font-size: 29px; line-height: 1; }
.metrics p { margin: 0; color: #889bb7; font-size: 11px; }

.challenge-panel { margin-bottom: 16px; }
.challenge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.challenge { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; min-width: 0; min-height: 0; padding: 13px 30px 13px 13px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: rgba(5,18,40,.5); text-align: left; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.challenge:hover { color: var(--text); border-color: rgba(103,221,255,.42); }
.challenge > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; color: var(--purple); background: rgba(169,146,255,.11); font-size: 11px; font-weight: 900; }
.challenge div { display: grid; gap: 3px; min-width: 0; }
.challenge strong { font-size: 14px; }
.challenge small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.challenge b { color: #617391; font-size: 20px; }
.challenge.complete { border-color: rgba(114,239,179,.4); background: rgba(35,128,93,.13); }
.challenge.complete > span { color: #062c20; background: var(--mint); }
.challenge.complete b { color: var(--mint); }
.challenge.complete b::after { content: "✓"; }
.challenge.complete b { font-size: 0; }
.challenge.complete b::after { font-size: 20px; }

.learn-hotspot { position: relative; }
.learn-hotspot::after { content: "✦"; position: absolute; top: 8px; right: 10px; color: var(--yellow); font-size: 9px; opacity: .42; }
.learn-hotspot:hover::after, .learn-hotspot:focus-visible::after { opacity: 1; }
.learn-hotspot[role="button"] { cursor: pointer; padding: 8px; margin: -8px; border: 1px solid transparent; border-radius: 12px; transition: background .2s ease, border-color .2s ease; }
.learn-hotspot[role="button"]:hover, .learn-hotspot[role="button"]:focus-visible { outline: none; border-color: rgba(103,221,255,.28); background: rgba(103,221,255,.055); }
.frequency.learn-hotspot { padding-right: 30px; }

.learning-panel { margin-bottom: 16px; overflow: hidden; background: radial-gradient(circle at 92% 5%, rgba(169,146,255,.13), transparent 22rem), linear-gradient(145deg, var(--panel), rgba(7,18,38,.94)); }
.tap-hint { color: var(--muted); font-size: 12px; }
.tap-hint b { color: var(--yellow); }
.learning-progress { display: grid; justify-items: end; gap: 7px; min-width: 250px; color: var(--muted); font-size: 13px; font-weight: 800; }
.learning-progress > div { width: min(280px, 100%); height: 10px; padding: 2px; overflow: hidden; border: 1px solid rgba(103,221,255,.25); border-radius: 999px; background: rgba(0,0,0,.24); }
.learning-progress > div > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--cyan), var(--purple)); transition: width .45s ease; }
.achievement-shelf { display: flex; flex-wrap: wrap; gap: 9px; margin: -3px 0 18px; }
.achievement-shelf > span { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px dashed #435270; border-radius: 999px; color: #71829e; background: rgba(6,16,35,.55); font-size: 12px; font-weight: 850; filter: grayscale(1); transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease, filter .3s ease; }
.achievement-shelf > span b { opacity: .42; }
.achievement-shelf > span.unlocked { border-style: solid; border-color: rgba(255,214,90,.48); color: #fff0ad; background: linear-gradient(135deg, rgba(255,214,90,.14), rgba(169,146,255,.12)); filter: none; box-shadow: 0 5px 22px rgba(255,214,90,.08); }
.achievement-shelf > span.unlocked b { opacity: 1; }
.achievement-shelf > span.unlocked:hover { transform: translateY(-2px) rotate(-1deg); }
.reset-progress { min-height: 36px; margin-left: auto; padding: 7px 11px; border-radius: 999px; color: var(--muted); font-size: 11px; }
.reset-progress:hover { color: var(--cyan); border-color: rgba(103,221,255,.4); }
.reset-progress.armed { color: #ffd0cc; border-color: rgba(255,129,120,.5); background: rgba(255,129,120,.08); }
.learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.learning-grid > button { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; min-height: 138px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: linear-gradient(145deg, rgba(31,55,94,.72), rgba(8,24,49,.74)); text-align: left; }
.learning-grid > button::after { content: ""; position: absolute; width: 90px; height: 90px; right: -32px; bottom: -45px; border: 1px solid rgba(103,221,255,.13); border-radius: 50%; box-shadow: 0 0 0 18px rgba(103,221,255,.025), 0 0 0 36px rgba(103,221,255,.018); }
.learning-grid > button:hover { color: var(--text); border-color: rgba(103,221,255,.52); transform: translateY(-2px); }
.learning-grid > button > span { grid-row: 1 / span 4; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: rgba(103,221,255,.09); font-size: 22px; }
.learning-grid > button small { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.learning-grid > button strong { margin-top: 3px; font-size: 17px; }
.learning-grid > button p { margin: 4px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.learning-grid > button b { color: var(--yellow); font-size: 11px; }
.learning-grid > button b.lesson-steps { color: var(--mint); }
.learning-card-new { animation: deal-card .42s ease-out both; }
@keyframes deal-card { from { opacity: 0; transform: translateY(12px) rotate(1deg); } }
.all-lessons-complete { grid-column: 1 / -1; display: grid; justify-items: center; gap: 7px; padding: 33px 20px; border: 1px solid rgba(255,214,90,.38); border-radius: 19px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(255,214,90,.13), transparent 70%); }
.all-lessons-complete > span { font-size: 44px; }
.all-lessons-complete strong { color: var(--yellow); font-size: 22px; }
.all-lessons-complete p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.learning-dialog { width: min(820px, calc(100% - 28px)); max-height: min(920px, calc(100vh - 28px)); padding: 0; overflow: auto; border: 1px solid rgba(103,221,255,.3); border-radius: 25px; color: var(--text); background: linear-gradient(155deg, #132849, #07152d 70%); box-shadow: 0 34px 120px rgba(0,0,0,.62); }
.learning-dialog::backdrop { background: rgba(1,6,17,.76); backdrop-filter: blur(7px); }
.learning-dialog[open] { animation: lesson-in .24s ease-out; }
@keyframes lesson-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lesson-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px 5px; }
.lesson-topbar > div { display: flex; align-items: center; gap: 9px; }
.lesson-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,214,90,.1); font-size: 20px; }
.lesson-category { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dialog-close { display: grid; place-items: center; width: 38px; min-height: 38px; padding: 0; border-radius: 12px; color: var(--muted); font-size: 26px; line-height: 1; }
.learning-dialog > h2 { padding: 5px 25px 0; font-size: clamp(28px, 5vw, 43px); }
.lesson-body { display: grid; gap: 10px; padding: 14px 25px 4px; color: #d1ddf0; font-size: 14px; line-height: 1.62; }
.lesson-body p { margin: 0; }
.lesson-body strong { color: var(--cyan-bright); }
.lesson-live { margin: 14px 25px 0; padding: 12px 14px; border: 1px solid rgba(114,239,179,.25); border-radius: 13px; color: #c8ffe5; background: rgba(114,239,179,.07); font-size: 11px; font-weight: 750; }
.lesson-activity { margin: 17px 25px; }
.lab-shell { --wave-width: 58px; --audio-scale: .67; padding: 17px; overflow: hidden; border: 1px solid rgba(103,221,255,.26); border-radius: 18px; background: linear-gradient(145deg, rgba(10,31,61,.95), rgba(6,20,43,.92)); }
.lab-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.lab-heading h3 { margin: 2px 0 5px; color: var(--cyan-bright); font-size: 19px; }
.lab-heading p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.lab-complete { flex: 0 0 auto; margin-top: 2px; padding: 6px 9px; border: 1px solid #425371; border-radius: 999px; color: #71829c; font-size: 10px; font-weight: 900; opacity: .52; }
.lab-shell.completed .lab-complete { border-color: rgba(114,239,179,.45); color: var(--mint); background: rgba(114,239,179,.09); opacity: 1; }
.lab-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; color: #d8e3f3; font-size: 13px; font-weight: 800; }
.lab-control strong { color: var(--yellow); font-size: 14px; }
.lab-control input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--cyan); }
.lab-control input[type="text"], .lab-control select { grid-column: 1 / -1; width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #08172f; font: inherit; }
.lab-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lab-readout { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin-top: 13px; padding: 12px 14px; border-radius: 13px; background: rgba(169,146,255,.08); }
.lab-readout span { color: var(--muted); font-size: 12px; }
.lab-readout strong { color: var(--yellow); font-size: 23px; }
.lab-readout small { grid-column: 1 / -1; color: #c7bfff; font-size: 12px; }
.wave-stage { position: relative; height: 74px; margin-bottom: 14px; overflow: hidden; border-radius: 13px; background: linear-gradient(rgba(103,221,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(103,221,255,.05) 1px, transparent 1px), rgba(1,12,30,.6); background-size: 18px 18px; }
.wave-line { position: absolute; inset: 0; background: var(--cyan); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath fill='none' stroke='black' stroke-width='4' d='M0 20 Q12 0 25 20 T50 20 T75 20 T100 20 T125 20 T150 20 T175 20 T200 20'/%3E%3C/svg%3E") center / var(--wave-width) 58px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath fill='none' stroke='black' stroke-width='4' d='M0 20 Q12 0 25 20 T50 20 T75 20 T100 20 T125 20 T150 20 T175 20 T200 20'/%3E%3C/svg%3E") center / var(--wave-width) 58px repeat-x; filter: drop-shadow(0 0 8px var(--cyan)); transition: mask-size .2s ease, -webkit-mask-size .2s ease; }
.audio-bars { display: flex; align-items: center; justify-content: center; gap: 5px; height: 95px; margin-bottom: 13px; padding: 10px; border-radius: 13px; background: rgba(1,12,30,.64); }
.audio-bars i { width: 8px; height: calc(var(--bar) * var(--audio-scale)); max-height: 75px; min-height: 3px; border-radius: 99px; background: linear-gradient(var(--yellow), var(--cyan)); box-shadow: 0 0 9px rgba(103,221,255,.18); transition: height .18s ease; }
.lab-state { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 13px; padding: 12px 14px; border: 1px solid; border-radius: 13px; font-size: 12px; line-height: 1.4; }
.lab-state strong { font-size: 13px; }
.lab-state.good { border-color: rgba(114,239,179,.35); color: #caffdf; background: rgba(114,239,179,.08); }
.lab-state.quiet { border-color: rgba(169,146,255,.34); color: #d9d1ff; background: rgba(169,146,255,.08); }
.lab-state.hot { border-color: rgba(255,129,120,.4); color: #ffd0cc; background: rgba(255,129,120,.09); }
.path-sequence, .path-bank { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px; border-radius: 13px; }
.path-sequence { margin-bottom: 9px; border: 1px dashed rgba(103,221,255,.28); background: rgba(103,221,255,.035); }
.path-bank { background: rgba(0,0,0,.16); }
.path-step { position: relative; min-height: 36px; padding: 8px 11px; border-radius: 10px; color: #d7e6f8; font-size: 12px; font-weight: 800; }
.path-step.chosen { display: inline-flex; align-items: center; padding-left: 28px; border: 1px solid rgba(114,239,179,.3); color: #cbffe7; background: rgba(114,239,179,.08); }
.path-step.chosen::before { content: attr(data-order); position: absolute; left: 9px; color: var(--mint); }
.path-step.incorrect { border-color: var(--coral); animation: shake .35s linear; }
@keyframes shake { 33% { transform: translateX(-4px); } 66% { transform: translateX(4px); } }
.lab-feedback { min-height: 20px; margin: 11px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.lab-reset { min-height: 38px; color: var(--cyan); font-size: 12px; }
.packet-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 14px; overflow-wrap: anywhere; border-radius: 13px; background: #041127; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.packet-part { min-height: 40px; padding: 8px 10px; border-radius: 9px; color: #071223; font-size: 12px; font-weight: 900; }
.packet-part.part-1 { background: var(--cyan); }
.packet-part.part-2 { background: var(--mint); }
.packet-part.part-3 { background: var(--yellow); }
.packet-part.part-4 { background: var(--purple); }
.packet-part.selected { outline: 3px solid white; outline-offset: 2px; transform: translateY(-2px); }
.packet-explain { display: grid; gap: 4px; min-height: 66px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; color: var(--muted); background: rgba(169,146,255,.08); font-size: 13px; line-height: 1.45; }
.packet-explain strong { color: var(--purple); font-size: 14px; }
.coordinate-stage { position: relative; height: 190px; margin-bottom: 15px; overflow: hidden; border: 1px solid rgba(103,221,255,.23); border-radius: 15px; background: radial-gradient(ellipse at center, rgba(46,114,164,.28), rgba(4,19,44,.9) 68%), repeating-linear-gradient(0deg, transparent 0 28px, rgba(103,221,255,.13) 29px 30px), repeating-linear-gradient(90deg, transparent 0 47px, rgba(103,221,255,.13) 48px 49px); }
.coordinate-stage .equator, .coordinate-stage .prime { position: absolute; z-index: 1; color: rgba(199,245,255,.62); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.coordinate-stage .equator { left: 7px; top: calc(50% + 5px); }
.coordinate-stage .prime { left: calc(50% + 5px); top: 6px; writing-mode: vertical-rl; }
.coordinate-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(103,221,255,.42); }
.coordinate-stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid rgba(103,221,255,.42); }
.coordinate-marker { position: absolute; z-index: 2; transform: translate(-50%, -95%); font-size: 25px; filter: drop-shadow(0 4px 7px #000); transition: left .15s ease, top .15s ease; }
.atmosphere-layout, .navigation-layout { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; }
.atmosphere-stage { position: relative; height: 270px; overflow: hidden; border-radius: 17px; background: linear-gradient(#06172f 0 18%, #31577d 52%, #8eb3c7 84%, #d1b37e 100%); }
.atmosphere-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13px; background: #395f36; }
.atmosphere-stage > span { position: absolute; left: 8px; z-index: 1; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.atmosphere-stage > span:nth-child(1) { top: 8px; }
.atmosphere-stage > span:nth-child(2) { top: 30%; }
.atmosphere-stage > span:nth-child(3) { bottom: 17%; }
.atmosphere-balloon { position: absolute; z-index: 2; right: 34%; bottom: 4%; font-size: 30px; filter: drop-shadow(0 5px 6px rgba(0,0,0,.45)); transition: bottom .25s ease; }
.atmosphere-readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.atmosphere-readouts > div { min-width: 0; padding: 10px; border-radius: 11px; background: rgba(103,221,255,.06); }
.atmosphere-readouts span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.atmosphere-readouts strong { display: block; margin-top: 4px; color: var(--cyan-bright); font-size: 13px; overflow-wrap: anywhere; }
.compass-lab { position: relative; width: 180px; aspect-ratio: 1; border: 2px solid rgba(103,221,255,.28); border-radius: 50%; background: radial-gradient(circle, rgba(103,221,255,.09), rgba(2,14,33,.7) 68%); box-shadow: inset 0 0 0 15px rgba(103,221,255,.025); }
.compass-lab > span { position: absolute; color: var(--muted); font-size: 11px; font-weight: 900; }
.north-label { left: 50%; top: 8px; transform: translateX(-50%); }
.east-label { right: 10px; top: 50%; transform: translateY(-50%); }
.south-label { left: 50%; bottom: 8px; transform: translateX(-50%); }
.west-label { left: 10px; top: 50%; transform: translateY(-50%); }
.compass-arrow { position: absolute; left: 50%; top: 50%; color: var(--coral); font-size: 92px; font-style: normal; line-height: 1; transform-origin: center; filter: drop-shadow(0 0 9px rgba(255,129,120,.38)); transition: transform .2s ease; }
.navigation-controls { display: grid; gap: 13px; }
.callsign-control input { text-transform: uppercase; }
.callsign-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.callsign-result > div { padding: 13px; border: 1px solid rgba(103,221,255,.2); border-radius: 13px; background: rgba(103,221,255,.055); }
.callsign-result span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.callsign-result strong { display: block; margin-top: 5px; color: var(--cyan-bright); font: 900 22px ui-monospace, SFMono-Regular, Menlo, monospace; }
.callsign-result.invalid { opacity: .45; }
.unit-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.unit-options button { min-height: 43px; border-radius: 11px; color: var(--text); font-size: 13px; }
.unit-options button.correct { border-color: var(--mint); color: var(--mint); background: rgba(114,239,179,.1); }
.unit-options button.incorrect { border-color: var(--coral); color: #ffc7c3; background: rgba(255,129,120,.08); }
.safety-options { display: grid; gap: 8px; }
.safety-options label { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: #d9e3f1; background: rgba(255,255,255,.025); font-size: 13px; }
.safety-options input { width: 20px; height: 20px; accent-color: var(--mint); }
.achievement-toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; max-width: calc(100% - 28px); padding: 13px 18px; border: 1px solid rgba(255,214,90,.52); border-radius: 999px; color: #fff2b5; background: linear-gradient(135deg, #302d4f, #17334a); box-shadow: 0 18px 60px rgba(0,0,0,.48); font-size: 14px; font-weight: 900; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .25s ease, transform .25s ease; }
.achievement-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.try-it { display: flex; gap: 13px; margin: 17px 25px; padding: 15px; border: 1px solid rgba(255,214,90,.24); border-radius: 16px; background: rgba(255,214,90,.07); }
.try-it > span { font-size: 22px; }
.try-it h3 { margin: 0 0 4px; color: var(--yellow); font-size: 14px; }
.try-it p { margin: 0; color: #e5ddbc; font-size: 13px; line-height: 1.5; }
.quick-check { padding: 19px 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5,16,36,.42); }
.quick-check h3 { margin: 4px 0 13px; font-size: 16px; line-height: 1.4; }
.quiz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-choices button { min-height: 48px; padding: 10px 13px; border-radius: 12px; color: var(--text); text-align: left; font-size: 13px; }
.quiz-choices button:hover { color: var(--cyan-bright); border-color: var(--cyan); }
.quiz-choices button.correct { border-color: var(--mint); color: #cbffe7; background: rgba(114,239,179,.13); }
.quiz-choices button.incorrect { border-color: var(--coral); color: #ffd0cc; background: rgba(255,129,120,.11); }
.quiz-choices button:disabled { cursor: default; opacity: 1; }
.quiz-feedback { min-height: 34px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.quiz-feedback.success { color: var(--mint); }
.quiz-feedback.retry { color: var(--yellow); }
.lesson-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 25px 21px; }
.lesson-footer > span { color: var(--muted); font-size: 11px; }
.lesson-footer > div { display: flex; align-items: center; gap: 13px; }
.lesson-source { color: var(--cyan); font-size: 11px; font-weight: 800; text-decoration: none; }
.lesson-source:hover { text-decoration: underline; }
.lesson-footer button { min-height: 40px; color: var(--yellow); font-size: 12px; }

.admin-panel { margin-bottom: 16px; border-color: rgba(255,214,90,.3); }
.admin-copy { margin: -7px 0 17px; color: var(--muted); font-size: 13px; }
.wifi-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.wifi-form label { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wifi-form input, .wifi-form select { display: block; width: 100%; min-height: 42px; margin-top: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #09162d; }
.wifi-message { min-height: 16px; margin: 12px 0 0; color: var(--mint); font-size: 13px; }

.data-grid { grid-template-columns: minmax(0, 2.05fr) minmax(290px, .72fr); }
.packet-help { margin: -5px 0 14px; padding: 11px 13px; border-radius: 12px; color: var(--muted); background: rgba(103,221,255,.055); font-size: 13px; }
.packet-help summary { color: var(--cyan); cursor: pointer; font-weight: 850; }
.packet-help p { margin: 9px 0 1px; line-height: 1.55; }
.packet-help strong { color: var(--text); }
.table-wrap { max-height: 510px; overflow: auto; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #10213d; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
th, td { padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:nth-child(2) { color: var(--cyan-bright); font-weight: 850; }
.packet { max-width: 480px; color: #bdcce1; overflow-wrap: anywhere; }
.kind { display: inline-block; padding: 4px 8px; border: 1px solid rgba(169,146,255,.3); border-radius: 999px; color: #d7ceff; background: rgba(169,146,255,.08); text-transform: uppercase; font-size: 10px; font-weight: 850; }
.empty { padding: 27px !important; color: var(--muted); text-align: center; }
.roster { max-height: 510px; overflow: auto; }
.station { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 5px; border-bottom: 1px solid var(--line); }
.station strong { color: var(--cyan-bright); }
.station span { color: var(--muted); font-size: 12px; }
.station em { color: var(--yellow); font-style: normal; font-size: 12px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 3px 0; color: #8295b1; font-size: 11px; }
footer strong { color: var(--cyan); }

.presentation-toggle[aria-pressed="true"] { color: #062c20; border-color: var(--mint); background: var(--mint); }
.presentation-mode main { width: min(1750px, calc(100% - 28px)); }
.presentation-mode .brand-copy > span { font-size: 15px; }
.presentation-mode .brand-copy strong { font-size: clamp(30px, 3vw, 43px); }
.presentation-mode .brand-copy small, .presentation-mode .frequency, .presentation-mode .badge { font-size: 16px; }
.presentation-mode .mission-intro > div > p:not(.eyebrow) { font-size: 22px; }
.presentation-mode .eyebrow { font-size: 15px; }
.presentation-mode .mission-update strong { font-size: 19px; }
.presentation-mode .status-strip span, .presentation-mode dt { font-size: 14px; }
.presentation-mode .status-strip strong { font-size: 22px; }
.presentation-mode .status-strip small { font-size: 15px; }
.presentation-mode .hero-grid, .presentation-mode .data-grid { grid-template-columns: 1fr; }
.presentation-mode h2 { font-size: clamp(27px, 3vw, 38px); }
.presentation-mode .telemetry-grid dd { font-size: 27px; }
.presentation-mode .telemetry-grid dt small, .presentation-mode .route small { font-size: 13px; }
.presentation-mode .route strong, .presentation-mode .health-list dd { font-size: 19px; }
.presentation-mode .coach-note, .presentation-mode .target-actions, .presentation-mode .telemetry-line { font-size: 16px; }
.presentation-mode .metrics strong { font-size: 40px; }
.presentation-mode .metrics small, .presentation-mode .metrics p { font-size: 14px; }
.presentation-mode .challenge strong { font-size: 18px; }
.presentation-mode .challenge small, .presentation-mode .learning-grid > button p { font-size: 15px; }
.presentation-mode .learning-grid > button strong { font-size: 21px; }
.presentation-mode .learning-progress, .presentation-mode .achievement-shelf > span { font-size: 15px; }
.presentation-mode .lesson-body, .presentation-mode .lab-heading p:last-child, .presentation-mode .lab-control, .presentation-mode .lab-feedback, .presentation-mode .packet-explain, .presentation-mode .try-it p, .presentation-mode .quiz-feedback { font-size: 17px; }
.presentation-mode .lab-heading h3, .presentation-mode .quick-check h3 { font-size: 22px; }
.presentation-mode .quiz-choices button, .presentation-mode .unit-options button, .presentation-mode .safety-options label { font-size: 17px; }
.presentation-mode table { font-size: 17px; }
.presentation-mode th { font-size: 13px; }
.presentation-mode .kind, .presentation-mode .station span, .presentation-mode .station em { font-size: 14px; }
.presentation-mode footer { font-size: 14px; }

@media (max-width: 1120px) {
  .hero-grid, .data-grid { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .mission-intro { grid-template-columns: 1fr; }
  .mission-update { max-width: 500px; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip .status-item:nth-child(2) { border-right: 0; }
  .status-strip .status-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .learning-grid { grid-template-columns: 1fr 1fr; }
  .wifi-form { grid-template-columns: 1fr 1fr; }
  .wifi-form button { min-height: 42px; }
}

@media (max-width: 680px) {
  main { width: min(100% - 22px, 1500px); padding-top: 14px; }
  .topbar, .target-layout, .target-actions, footer { display: flex; flex-direction: column; align-items: stretch; }
  .club-brand { align-items: center; }
  .mission-logo { width: 56px; height: 56px; border-radius: 17px; }
  .mission-logo svg { width: 41px; }
  .top-actions { justify-content: flex-start; }
  .mission-intro { border-radius: 22px; padding: 24px 19px; }
  .panel { padding: 17px; border-radius: 18px; }
  .target-layout { gap: 17px; }
  .radar { min-height: 210px; }
  .route { grid-template-columns: 1fr; }
  .route b { transform: rotate(90deg); text-align: center; }
  .route .route-step { min-height: 64px; }
  .challenge-grid, .wifi-form { grid-template-columns: 1fr; }
  .learning-panel .panel-heading { display: grid; }
  .learning-progress { justify-items: start; width: 100%; min-width: 0; }
  .learning-progress > div { width: 100%; }
  .lesson-activity { margin-inline: 17px; }
  .lesson-body, .learning-dialog > h2 { padding-inline: 18px; }
  .lesson-live, .try-it { margin-inline: 17px; }
  .quick-check { padding-inline: 17px; }
  .lesson-footer { padding-inline: 17px; }
  .lab-heading { display: grid; }
  .lab-complete { width: fit-content; }
  .lab-control-grid, .atmosphere-layout, .navigation-layout { grid-template-columns: 1fr; }
  .atmosphere-stage { height: 210px; }
  .compass-lab { width: min(180px, 72vw); margin-inline: auto; }
  .atmosphere-readouts { grid-template-columns: 1fr 1fr; }
  .panel-heading { align-items: flex-start; }
  footer { gap: 7px; }
}

@media (max-width: 430px) {
  .status-strip, .metrics, .telemetry-grid { grid-template-columns: 1fr; }
  .status-strip .status-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .status-strip .status-item:nth-child(3) { border-bottom: 1px solid var(--line); }
  .metrics { gap: 10px; }
  .subject-pills button { font-size: 10px; }
  .learning-grid { grid-template-columns: 1fr; }
  .learning-grid > button { min-height: 120px; }
  .quiz-choices { grid-template-columns: 1fr; }
  .achievement-shelf > span { flex: 1 1 145px; justify-content: center; }
  .reset-progress { width: 100%; margin-left: 0; }
  .unit-options, .callsign-result, .atmosphere-readouts { grid-template-columns: 1fr; }
  .packet-part { width: 100%; text-align: left; }
  .achievement-toast { width: calc(100% - 28px); border-radius: 17px; text-align: center; }
  .lesson-footer { align-items: flex-start; flex-direction: column; }
  .lesson-footer > div { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .radar::after, .balloon-icon, .badge i { animation: none; }
  * { transition: none !important; }
}
