:root {
  --ink: #17242d;
  --muted: #687780;
  --line: #dce4e6;
  --surface: #ffffff;
  --canvas: #f2f5f5;
  --navy: #153746;
  --navy-deep: #0d2834;
  --sky: #5bbbd0;
  --sky-pale: #e7f6f8;
  --lime: #d8ef78;
  --lime-dark: #bcd858;
  --route-origin: #f29d49;
  --route-origin-dark: #c76d1e;
  --route-destination: #a7c935;
  --route-destination-dark: #718f18;
  --shadow: 0 24px 70px rgba(25, 53, 64, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

html {
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 9% 24%, rgba(91, 187, 208, 0.1), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(216, 239, 120, 0.1), transparent 22rem),
    var(--canvas);
}

button, input, select { font: inherit; }
button, a, label, select { -webkit-tap-highlight-color: transparent; }
button, a, label { touch-action: manipulation; }

.global-notice {
  width: fit-content;
  max-width: calc(100% - 32px);
  max-height: 80px;
  overflow: hidden;
  margin: -4px auto 18px;
  border: 1px solid #b8d0a0;
  border-radius: 11px;
  background: #f4fadf;
  padding: 10px 15px;
  color: #466219;
  box-shadow: 0 10px 30px rgba(25, 53, 64, 0.14);
  font-size: 12px;
  font-weight: 750;
  animation: dismiss-notice 400ms ease 5s forwards;
}

@keyframes dismiss-notice {
  to {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
  }
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 26, 53, 0.24);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-identity {
  min-width: 0;
  max-width: 180px;
  margin-left: auto;
  color: var(--muted);
  display: grid;
  justify-items: end;
  text-decoration: none;
}

.header-identity span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-identity strong {
  max-width: 100%;
  overflow: hidden;
  margin-top: 3px;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prototype-pill {
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guest-access-panel {
  border: 1px solid #c8dadd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(430px, 1.5fr);
  align-items: center;
  gap: 18px;
  box-shadow: 0 12px 35px rgba(25, 53, 64, 0.06);
}

.guest-access-intro {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.guest-access-badge {
  flex: none;
  border-radius: 99px;
  background: var(--sky-pale);
  padding: 6px 8px;
  color: #27798c;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guest-access-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.3;
}

.guest-access-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.guest-access-options {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.guest-access-options div { min-width: 0; }
.guest-access-options strong,
.guest-access-options span { display: block; }
.guest-access-options strong { color: var(--navy); font-size: 11px; }
.guest-access-options span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.wizard-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(560px, 1.35fr);
  gap: 34px;
  align-items: stretch;
  padding: 22px 0 34px;
}

.wizard-intro {
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  padding: clamp(32px, 4vw, 58px);
  position: relative;
  overflow: hidden;
  min-height: 630px;
}

.wizard-intro::before,
.wizard-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.wizard-intro::before { width: 380px; height: 380px; right: -220px; top: -170px; }
.wizard-intro::after { width: 290px; height: 290px; left: -190px; bottom: -180px; }

.eyebrow, .step-kicker, .mission-overline {
  margin: 0 0 12px;
  color: var(--sky);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.wizard-intro h1 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.intro-copy {
  max-width: 400px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.6;
}

.route-art { height: 115px; margin: 40px 0 28px; position: relative; }

.route-line {
  position: absolute;
  top: 49px;
  left: 6px;
  width: calc(100% - 12px);
  height: 38px;
  border-top: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  transform: rotate(-4deg);
}

.route-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid var(--navy);
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(216, 239, 120, 0.8);
}

.route-dot-start { left: 0; top: 46px; }
.route-dot-end { right: 0; top: 15px; }

.route-plane {
  position: absolute;
  color: var(--lime);
  top: 24px;
  left: 57%;
  font-size: 24px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.route-plane, .aircraft-symbol, .flight-path span {
  font-family: Arial, sans-serif;
  font-variant-emoji: text;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.promise-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.promise-list span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.wizard-card {
  min-height: 630px;
  border: 1px solid rgba(220, 228, 230, 0.75);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 52px);
  display: flex;
  flex-direction: column;
}

.wizard-topline, .wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-label, .time-hint { color: var(--muted); font-size: 12px; font-weight: 700; }
.time-hint { font-weight: 500; }

.progress-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 14px 0 38px;
}

.progress-segment {
  height: 4px;
  border-radius: 9px;
  background: #e9eeee;
  transition: background 180ms ease, transform 180ms ease;
}

.progress-segment.is-active { background: var(--navy); }
.progress-segment.is-current { background: var(--sky); transform: scaleY(1.4); }

.mission-form { flex: 1; display: flex; flex-direction: column; }
.mission-recovery {
  margin: -10px 0 28px;
  border: 1px solid #efc7bc;
  border-radius: 15px;
  background: #fff8f5;
  padding: 15px;
}
.mission-recovery > header { display: flex; align-items: flex-start; gap: 11px; }
.mission-recovery > header > span {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  background: #f8dfda;
  color: #a44f42;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.mission-recovery > header strong,
.mission-recovery > header small { display: block; }
.mission-recovery > header strong { color: var(--navy); font-size: 14px; }
.mission-recovery > header small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.mission-recovery-actions { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mission-recovery-action {
  min-height: 67px;
  border: 1px solid #e2c6bf;
  border-radius: 11px;
  background: white;
  padding: 10px 11px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.mission-recovery-action:hover { border-color: var(--sky); background: #f6fbfc; }
.mission-recovery-action:focus-visible { outline: 3px solid rgba(91, 187, 208, 0.28); outline-offset: 2px; }
.mission-recovery-action strong,
.mission-recovery-action small { display: block; }
.mission-recovery-action strong { color: var(--navy); font-size: 13px; }
.mission-recovery-action small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.wizard-step { animation: step-in 260ms ease both; }
.wizard-step[hidden], [hidden] { display: none !important; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

legend {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.1;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.field-help {
  margin: 10px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.aircraft-choice-intro {
  margin: 10px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.aircraft-choice-intro .field-help { margin: 0; }

.aircraft-customize {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid #b8d6dc;
  border-radius: 10px;
  background: var(--sky-pale);
  color: var(--navy);
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.aircraft-customize:hover { border-color: var(--sky); background: #dff2f5; }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aircraft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.option-card, .region-card, .difficulty-card, .reveal-card, .departure-mode-card,
.airport-scope-card {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.option-card:hover, .region-card:hover, .difficulty-card:hover, .reveal-card:hover,
.departure-mode-card:hover, .airport-scope-card:hover {
  border-color: #9fc9d2;
  transform: translateY(-1px);
}

.option-card:has(input:focus-visible),
.region-card:has(input:focus-visible),
.difficulty-card:has(input:focus-visible),
.reveal-card:has(input:focus-visible),
.departure-mode-card:has(input:focus-visible),
.airport-scope-card:has(input:focus-visible),
.choice-chip:has(input:focus-visible),
.segmented-control label:has(input:focus-visible) {
  outline: 3px solid rgba(91, 187, 208, 0.28);
  outline-offset: 2px;
}

.option-card:has(input:checked),
.region-card:has(input:checked),
.difficulty-card:has(input:checked),
.reveal-card:has(input:checked),
.departure-mode-card:has(input:checked),
.airport-scope-card:has(input:checked) {
  border-color: var(--navy);
  background: #f9fcfc;
  box-shadow: 0 0 0 1px var(--navy);
}

.option-card input, .region-card input, .difficulty-card input, .reveal-card input,
.departure-mode-card input, .airport-scope-card input,
.choice-chip input, .segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.aircraft-card {
  min-height: 150px;
  border-radius: 15px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.aircraft-profile-state {
  position: absolute;
  top: 21px;
  left: 70px;
  border-radius: 99px;
  background: #edf6e1;
  color: #58722d;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aircraft-profile-state.is-estimated {
  background: #fff2d9;
  color: #8b6423;
}

.aircraft-picker {
  width: min(720px, calc(100% - 28px));
  height: min(760px, calc(100vh - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: white;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 30px 100px rgba(13, 40, 52, 0.3);
}

@supports (height: 100dvh) {
  .aircraft-picker {
    height: min(760px, calc(100dvh - 28px));
    max-height: min(760px, calc(100dvh - 28px));
  }
}

.aircraft-picker::backdrop {
  background: rgba(13, 40, 52, 0.58);
  backdrop-filter: blur(3px);
}

.aircraft-picker-panel {
  position: relative;
  height: 100%;
  max-height: min(760px, calc(100vh - 28px));
  min-height: 0;
  padding: 27px 27px 100px;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .aircraft-picker-panel { max-height: min(760px, calc(100dvh - 28px)); }
}

.aircraft-picker-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.aircraft-picker-header .step-kicker { margin-bottom: 7px; }

.aircraft-picker-header h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.aircraft-picker-header p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.aircraft-picker-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.aircraft-search { display: block; margin-top: 22px; }

.aircraft-search input {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfb;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.aircraft-search input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(91, 187, 208, 0.17);
}

.aircraft-picker-meta {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
}

.aircraft-picker-meta strong { color: var(--navy); font-size: 11px; }

.aircraft-selection-hint {
  flex: 0 0 auto;
  margin: 0 0 10px;
  border: 1px solid #c9e5ea;
  border-radius: 9px;
  background: #f0fafb;
  color: #315f68;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
}

.aircraft-selection-hint.is-warning {
  border-color: #efd9ad;
  background: #fff8e9;
  color: #805c1d;
}

.aircraft-selected-favorites {
  flex: 0 0 auto;
  min-height: 36px;
  margin-bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aircraft-favorite-chip {
  max-width: 100%;
  min-height: 29px;
  border: 1px solid #c7d9dc;
  border-radius: 99px;
  background: #f3f8f8;
  color: var(--navy);
  padding: 0 3px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 800;
}

.aircraft-favorite-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.aircraft-favorite-chip-edit {
  flex: 0 0 auto;
  border-left: 1px solid #c7d9dc;
  color: var(--cyan-deep);
  padding-left: 7px;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.aircraft-favorite-chip-edit:hover,
.aircraft-favorite-chip-edit:focus-visible { color: var(--navy); text-decoration: underline; }

.aircraft-favorite-chip-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #60757c;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.aircraft-favorite-chip-remove:hover,
.aircraft-favorite-chip-remove:focus-visible {
  background: #dcebed;
  color: var(--navy);
}

.aircraft-catalog-list {
  flex: 1 1 240px;
  min-height: 80px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.aircraft-catalog-entry {
  border-bottom: 1px solid #e8eeee;
  background: white;
}

.aircraft-catalog-entry:last-child { border-bottom: 0; }
.aircraft-catalog-entry.is-selected { background: #f1f8e1; }

.aircraft-catalog-row {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.aircraft-catalog-row.is-selected { background: transparent; }
button.aircraft-catalog-row { cursor: pointer; }
button.aircraft-catalog-row:hover { background: #f5fafb; }
button.aircraft-catalog-row:disabled { cursor: not-allowed; opacity: 0.48; }

.aircraft-catalog-check,
.aircraft-catalog-toggle {
  width: 25px;
  height: 25px;
  border: 1px solid #bfd2d6;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #4a8b99;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.aircraft-catalog-row.is-selected .aircraft-catalog-check,
.aircraft-catalog-row.is-selected .aircraft-catalog-toggle {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.aircraft-catalog-toggle:hover,
.aircraft-catalog-toggle:focus-visible {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(91, 187, 208, 0.16);
}

.aircraft-catalog-toggle:disabled { cursor: not-allowed; opacity: 0.48; }

.aircraft-catalog-copy { min-width: 0; }
.aircraft-catalog-copy strong, .aircraft-catalog-copy small { display: block; }
.aircraft-catalog-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.aircraft-catalog-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.aircraft-catalog-state {
  border-radius: 99px;
  background: #edf6e1;
  color: #58722d;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aircraft-catalog-state.is-estimated { background: #fff2d9; color: #8b6423; }
.aircraft-catalog-empty { margin: 0; padding: 35px; color: var(--muted); font-size: 12px; text-align: center; }

.aircraft-airframe-panel {
  margin: 0 12px 11px 50px;
  border-top: 1px solid #dce8d0;
  padding-top: 9px;
  display: grid;
  gap: 8px;
}

.aircraft-airframe-panel header,
.aircraft-airframe-panel strong,
.aircraft-airframe-panel small { display: block; }
.aircraft-airframe-panel strong { color: var(--navy); font-size: 10px; }
.aircraft-airframe-panel small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.35; }

.aircraft-airframe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.aircraft-airframe-row select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #b9d2d8;
  border-radius: 9px;
  background: white;
  padding: 0 32px 0 10px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 750;
}
.aircraft-airframe-row select:focus {
  border-color: var(--sky);
  outline: 3px solid rgba(91, 187, 208, 0.18);
}

.aircraft-airframe-remove,
.aircraft-airframe-add {
  border: 0;
  background: transparent;
  color: #376f7a;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.aircraft-airframe-remove { padding: 0 5px; }
.aircraft-airframe-add { justify-self: start; padding: 3px 0; }
.aircraft-airframe-remove:hover,
.aircraft-airframe-add:hover { color: var(--navy); text-decoration: underline; }

.aircraft-custom-airframe-fields {
  margin: -1px 0 3px;
  border: 1px solid #cfe2e6;
  border-radius: 10px;
  background: #f5fafb;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.aircraft-custom-airframe-fields label {
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
}

.aircraft-custom-airframe-fields input {
  width: 100%;
  min-height: 36px;
  margin-top: 4px;
  border: 1px solid #b9d2d8;
  border-radius: 8px;
  background: white;
  padding: 7px 9px;
  color: var(--navy);
  font: inherit;
}

.aircraft-custom-airframe-fields input:focus {
  border-color: var(--sky);
  outline: 3px solid rgba(91, 187, 208, 0.18);
}

.aircraft-custom-airframe-fields input[aria-invalid="true"] {
  border-color: #d8816f;
}

.aircraft-custom-airframe-fields > small {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 9px;
}

.aircraft-picker-actions {
  position: absolute;
  z-index: 2;
  right: 27px;
  bottom: 27px;
  left: 27px;
  flex: 0 0 auto;
  padding-top: 12px;
  background: white;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
}

.aircraft-picker-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.aircraft-save-requirement {
  margin: 0 1px 0 0;
  color: #805c1d;
  font-size: 10px;
  font-weight: 700;
}

.aircraft-picker-action-buttons .button { min-height: 42px; }
.aircraft-picker-actions .button:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }

.aircraft-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sky-pale);
  color: var(--navy);
  font-size: 20px;
  transform: rotate(-10deg);
}

.option-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
}

.option-card:has(input:checked) .option-check { border-color: var(--navy); background: var(--navy); color: white; }

.option-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: baseline;
}

.option-content strong { font-size: 18px; }

.option-content small {
  color: var(--sky);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.option-content > span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

.field-label, .select-label {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.choice-block-heading {
  min-width: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.choice-block-heading .field-label,
.choice-block-heading .select-label { min-width: 0; margin: 0; }
.choice-block-status {
  flex: none;
  max-width: 62%;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.choice-block-status.is-pending { background: #fff1eb; color: #a65340; }
.choice-block-status.is-complete { background: var(--lime-pale); color: #607b16; }
.choice-block-status.is-optional { background: #edf3f4; color: var(--muted); }

.region-label { margin-top: 27px; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.choice-chip { position: relative; cursor: pointer; }

.choice-chip span {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: 150ms ease;
}

.choice-chip:hover span, .choice-chip:has(input:checked) span {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.departure-planner {
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}

.departure-favourites {
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}

.airport-planning-scope {
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}

.airport-planning-scope + .departure-favourites { margin-top: 20px; }

.departure-favourites-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.departure-favourites-heading .field-label { margin-bottom: 3px; }
.departure-favourites-heading .choice-block-heading { margin-bottom: 3px; }
.departure-favourites-heading .choice-block-heading .field-label { margin-bottom: 0; }
.departure-favourites-heading small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.favorite-airport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.favorite-airport-card {
  min-width: 0;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 11px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 1px 7px;
  cursor: pointer;
  text-align: left;
}

.favorite-airport-card:hover { border-color: var(--sky); background: var(--sky-pale); }
.favorite-airport-card.is-selected { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.favorite-airport-card:disabled { cursor: not-allowed; opacity: 0.45; }
.favorite-airport-marker { grid-row: 1 / 3; color: var(--route-origin); font-size: 11px; }
.favorite-airport-card > span:nth-child(2) { min-width: 0; }
.favorite-airport-card strong, .favorite-airport-card small { display: block; }
.favorite-airport-card strong { color: var(--navy); font-size: 14px; }
.favorite-airport-card small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.favorite-airport-card em { grid-column: 2; margin-top: 3px; color: #68811c; font-size: 11px; font-style: normal; font-weight: 800; }
.favorite-airport-card:disabled em { color: #925b4e; }
.favorite-airport-empty { margin: 9px 0 0; color: var(--muted); font-size: 10px; }

.departure-group-hint, .departure-airport-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.departure-detail {
  margin-top: 22px;
}

.departure-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.departure-mode-card {
  min-height: 78px;
  border-radius: 12px;
  padding: 12px;
}

.departure-mode-card strong, .departure-mode-card small {
  display: block;
}

.departure-mode-card strong {
  font-size: 14px;
}

.departure-mode-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.departure-area-panel, .departure-airport-panel {
  margin-top: 18px;
  border-radius: 13px;
  background: #f6f9f9;
  padding: 14px;
}

.departure-airport-search {
  background: white;
}

.departure-airport-results {
  max-height: 220px;
  margin-top: 10px;
  overflow-y: auto;
  border-radius: 10px;
}

.departure-airport-result {
  width: 100%;
  min-height: 55px;
  border: 0;
  border-bottom: 1px solid #e1e9ea;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
}

.departure-airport-result:last-child {
  border-bottom: 0;
}

.departure-airport-result:hover {
  background: var(--sky-pale);
}

.departure-airport-result > strong {
  color: var(--navy);
  font-size: 13px;
}

.departure-airport-result b, .departure-airport-result small {
  display: block;
}

.departure-airport-result b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.departure-airport-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.departure-airport-selected {
  margin-top: 11px;
  border: 1px solid #b9dce3;
  border-radius: 11px;
  background: var(--sky-pale);
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 9px;
}

.departure-airport-selected strong {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--navy);
}

.departure-airport-selected span, .departure-airport-selected small {
  display: block;
}

.departure-airport-selected span {
  font-size: 11px;
  font-weight: 750;
}

.departure-airport-selected small {
  color: var(--muted);
  font-size: 9px;
}

.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.region-card {
  min-height: 61px;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.region-card:first-child { grid-column: 1 / -1; }

.region-pin {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: var(--sky-pale);
  position: relative;
}

.region-pin::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--sky);
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
}

.region-card strong, .region-card small, .difficulty-card strong, .difficulty-card small { display: block; }
.region-card strong, .difficulty-card strong { font-size: 13px; }
.region-card small, .difficulty-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.mission-format-grid { margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mission-format-card { position: relative; cursor: pointer; }
.mission-format-card input,
.tour-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.mission-format-card:has(input:focus-visible) > span,
.tour-choice-grid label:has(input:focus-visible) > span { outline: 3px solid rgba(91, 187, 208, 0.28); outline-offset: 2px; }
.mission-format-card > span {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  padding: 13px;
  display: block;
  transition: 150ms ease;
}
.mission-format-card:hover > span,
.mission-format-card:has(input:checked) > span {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.mission-format-card.is-preview:has(input:checked) > span {
  background: linear-gradient(135deg, #f5fbfc, #f7fae9);
}
.mission-format-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mission-format-heading strong { color: var(--navy); font-size: 14px; }
.mission-format-heading em {
  border-radius: 99px;
  background: var(--lime-pale);
  color: #607b16;
  padding: 4px 6px;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}
.mission-format-card > span > small { margin-top: 7px; display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }

.tour-options {
  margin: 0 0 24px;
  border: 1px solid #b8dce3;
  border-radius: 15px;
  background: #f7fbfc;
  padding: 15px;
}
.tour-options > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tour-options > header strong,
.tour-options > header small { display: block; }
.tour-options > header strong { color: var(--navy); font-size: 13px; }
.tour-options > header small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tour-options > header > span {
  flex: none;
  border-radius: 99px;
  background: var(--lime-pale);
  color: #607b16;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}
.tour-option-group { margin-top: 15px; }
.tour-option-group > .field-label { margin-bottom: 4px; }
.tour-option-group > p { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.tour-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.tour-choice-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tour-choice-grid label { position: relative; cursor: pointer; }
.tour-choice-grid label > span {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 9px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.tour-choice-grid label:hover > span,
.tour-choice-grid label:has(input:checked) > span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.tour-choice-grid strong,
.tour-choice-grid small { display: block; }
.tour-choice-grid strong { color: var(--navy); font-size: 11px; }
.tour-choice-grid small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.tour-choice-grid label.is-disabled { cursor: not-allowed; }
.tour-choice-grid label.is-disabled > span { border-style: dashed; background: #f2f5f5; }
.tour-choice-grid label.is-disabled strong { color: #708087; }
.tour-choice-grid label.is-disabled small { color: #a04f3c; font-weight: 750; }
.tour-constraint-note { margin: 13px 0 0; color: #376f7a; font-size: 10px; font-weight: 750; line-height: 1.45; }
.tour-future-note { margin-top: 11px; border-top: 1px solid #d7e8eb; padding-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.tour-future-note strong { margin-right: 4px; color: #7a921e; }

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  background: #eef2f3;
  border-radius: 13px;
}

.segmented-control label { position: relative; cursor: pointer; }

.segmented-control span {
  min-height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.segmented-control label:has(input:checked) span {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(25, 53, 64, 0.1);
}

.segmented-control label.is-disabled {
  cursor: not-allowed;
}

.segmented-control label.is-disabled span {
  color: #aeb8bc;
  text-decoration: line-through;
}

.rule-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.difficulty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

.difficulty-card {
  min-height: 78px;
  padding: 13px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.difficulty-gauge {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
}

.difficulty-gauge i { width: 4px; border-radius: 4px; background: #d7e1e3; }
.difficulty-gauge i:nth-child(1) { height: 8px; }
.difficulty-gauge i:nth-child(2) { height: 14px; }
.difficulty-gauge i:nth-child(3) { height: 21px; }
.difficulty-gauge[data-level="relaxed"] i:nth-child(1),
.difficulty-gauge[data-level="normal"] i:nth-child(-n+2),
.difficulty-gauge[data-level="challenging"] i { background: var(--sky); }

.select-label { margin-top: 23px; }

.training-focus-field {
  margin-top: 25px;
  border: 1px solid #d5e2e4;
  border-radius: 14px;
  background: #f8fbfb;
  padding: 15px;
}

.training-focus-field .choice-block-heading { margin-bottom: 5px; }
.training-focus-field .select-label { margin: 0; }
.training-focus-intro {
  max-width: 620px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.select-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.select-input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(91, 187, 208, 0.17); }

.training-hint {
  margin-top: 10px;
  border-left: 3px solid var(--sky);
  background: var(--sky-pale);
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.5;
}

.training-hint strong,
.training-hint span { display: block; }
.training-hint strong { color: var(--navy); font-size: 11px; }
.training-hint span { margin-top: 2px; color: #526b74; }
.reveal-grid { display: grid; gap: 10px; }

.reveal-card {
  min-height: 85px;
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.sealed-mission-teaser {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px dashed #b8dce3;
  border-radius: 12px;
  background: #f5fbfc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sealed-mission-teaser > span {
  color: var(--sky);
  font-size: 16px;
  line-height: 1.35;
}

.sealed-mission-teaser p {
  margin: 0;
}

.sealed-mission-teaser strong {
  display: block;
  margin-bottom: 1px;
  color: var(--ink);
}

.reveal-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf3f4;
  color: var(--navy);
  font-size: 19px;
}

.reveal-card:has(input:checked) .reveal-icon { background: var(--navy); color: var(--lime); }
.reveal-copy { flex: 1; min-width: 0; }

.reveal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reveal-heading strong { font-size: 14px; }

.reveal-heading em {
  border-radius: 99px;
  background: var(--sky-pale);
  color: #277a8c;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reveal-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.ready-note {
  margin-top: 16px;
  border-radius: 12px;
  background: #f4f8e6;
  color: #536425;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ready-note > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime-dark);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.ready-note p, .ready-note strong { display: block; margin: 0; font-size: 11px; line-height: 1.35; }

.validation-message, .alert {
  border-radius: 10px;
  background: #fff0ec;
  color: #a6422e;
  font-size: 12px;
  padding: 10px 12px;
}

.validation-message { margin: auto 0 10px; }
.alert { margin: -22px 0 24px; }
.wizard-actions { min-height: 50px; margin-top: auto; padding-top: 26px; }

.button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover { transform: translateY(-1px); }

.button:focus-visible, .header-control:focus-visible, .brand:focus-visible {
  outline: 3px solid rgba(91, 187, 208, 0.35);
  outline-offset: 3px;
}

.button-primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 9px 24px rgba(21, 55, 70, 0.18);
}

.button-primary:hover { background: var(--navy-deep); box-shadow: 0 11px 27px rgba(21, 55, 70, 0.24); }
.button-ghost { background: transparent; color: var(--muted); padding-left: 0; }
.button-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button-dispatch { background: var(--navy); }
.button-dispatch-symbol { color: var(--lime); }
.button-dispatch-label { color: white; }
.button-dispatch[aria-busy="true"] { min-width: 185px; cursor: wait; transform: none; }

.button-loading-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: dispatch-spin 700ms linear infinite;
}

.mission-generation-status {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}

.mission-generation-status > span:last-child,
.mission-generation-status strong,
.mission-generation-status small { display: block; }
.mission-generation-status strong { font-size: 10px; }
.mission-generation-status small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.mission-generation-pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(91, 187, 208, 0.38);
  animation: dispatch-pulse 1.2s ease-out infinite;
}

@keyframes dispatch-spin {
  to { transform: rotate(360deg); }
}

@keyframes dispatch-pulse {
  70%, 100% { box-shadow: 0 0 0 8px rgba(91, 187, 208, 0); }
}

.legal-note {
  min-height: 54px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 18px;
  color: #8b979d;
  font-size: 11px;
  text-align: center;
}

.legal-note > span:first-child { color: #62747c; font-weight: 750; }
.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; flex: none; }
.footer-promo {
  border: 1px solid #d3e3e6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #277f93;
  padding: 5px 9px;
  text-decoration: none;
  font-weight: 750;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.footer-promo:hover {
  border-color: #9fcbd4;
  background: var(--sky-pale);
  color: var(--navy);
}

/* Mission result */
.result-page { width: min(1040px, calc(100% - 40px)); }
.result-page .site-header { width: min(860px, 100%); margin: 0 auto; }

.header-control {
  min-height: 38px;
  border: 1px solid #cbd8db;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  appearance: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(25, 53, 64, 0.07);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.header-control:hover {
  border-color: #9fc9d2;
  background: white;
  color: #277f93;
  box-shadow: 0 8px 22px rgba(25, 53, 64, 0.11);
  transform: translateY(-1px);
}

.header-control.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
  box-shadow: 0 8px 20px rgba(21, 55, 70, 0.2);
}

.header-control.is-active:hover {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
  color: white;
}

.header-link-primary::before {
  content: "+";
  color: #318da1;
  font-size: 16px;
  line-height: 1;
}
.result-shell { width: min(860px, 100%); margin: 18px auto 30px; }

.result-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-heading .eyebrow { margin-bottom: 5px; color: #3e8d9f; }

.result-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.utc-clock {
  min-width: 104px;
  margin-left: auto;
  border: 1px solid #cddcdf;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.utc-clock span {
  color: #318da1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.utc-clock time {
  font-size: 11px;
  font-weight: 800;
}

.status-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--navy);
  font-weight: 900;
}

.mission-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.mission-card-header {
  padding: 35px 38px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.mission-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 17px; }

.mission-badges span {
  border-radius: 99px;
  background: var(--sky-pale);
  color: #2e7686;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mission-badges span.is-personal { background: #edf7c8; color: #607b16; }

.mission-overline { margin-bottom: 6px; }

.mission-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-transform: capitalize;
}

.mission-card-header > div > p:last-child {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.mission-seal {
  width: 75px;
  height: 75px;
  flex: 0 0 75px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  transform: rotate(5deg);
}

.mission-seal span { color: #5c9a6b; font-weight: 900; }

.mission-seal small {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.route-board {
  min-height: 128px;
  margin: 0 38px;
  border-radius: 16px;
  background: var(--navy);
  color: white;
  padding: 25px 30px;
  display: grid;
  grid-template-columns: 1fr minmax(120px, 1.1fr) 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.route-board::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -160px;
  top: -180px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.route-board.route-tour { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.tour-route-strip {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  list-style: none;
}
.tour-route-strip li { min-width: 0; flex: 1; position: relative; padding-right: 21px; }
.tour-route-strip li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 20px;
  right: 7px;
  color: var(--lime);
  font-size: 14px;
}
.tour-route-strip small,
.tour-route-strip strong,
.tour-route-strip span { display: block; }
.tour-route-strip small { color: var(--lime); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.tour-route-strip strong { margin-top: 4px; color: white; font-size: clamp(16px, 2.5vw, 25px); letter-spacing: 0.04em; }
.tour-route-strip span { margin-top: 3px; overflow: hidden; color: rgba(255, 255, 255, 0.55); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.tour-route-summary { min-width: 120px; border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 19px; }
.tour-route-summary strong,
.tour-route-summary span { display: block; }
.tour-route-summary strong { color: white; font-size: 13px; }
.tour-route-summary span { margin-top: 4px; color: rgba(255, 255, 255, 0.58); font-size: 8px; line-height: 1.4; }

.airport-point { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.airport-point > span:last-child {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.airport-code {
  color: white;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 11px;
}

.airport-departure .airport-code::before,
.airport-arrival .airport-code::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 3px solid white;
  border-radius: 50%;
}

.airport-departure .airport-code::before {
  background: var(--route-origin);
  box-shadow: 0 0 0 2px var(--route-origin-dark);
}

.airport-arrival .airport-code::before {
  background: var(--route-destination);
  box-shadow: 0 0 0 2px var(--route-destination-dark);
}

.airport-destination { text-align: right; }
.airport-destination .airport-code { justify-content: flex-end; }

.flight-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  color: var(--lime);
  position: relative;
}

.flight-path i { border-top: 1px dashed rgba(255, 255, 255, 0.28); }
.flight-path span { font-size: 18px; transform: rotate(-8deg); }

.flight-path small {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hidden-code { color: var(--lime); letter-spacing: 0.15em; }

.sealed-route {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sealed-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(216, 239, 120, 0.12);
  color: var(--lime);
  display: grid;
  place-items: center;
}

.sealed-route strong, .sealed-route small { display: block; }
.sealed-route strong { font-size: 14px; }
.sealed-route small { margin-top: 4px; color: rgba(255, 255, 255, 0.6); font-size: 11px; }

.dispatch-map {
  margin: 18px 38px 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f5f9f9;
  overflow: hidden;
  position: relative;
}

.dispatch-map > header {
  min-height: 57px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: white;
}

.dispatch-map > header .section-label {
  margin-bottom: 3px;
}

.dispatch-map-title > strong {
  color: var(--navy);
  font-size: 13px;
}

.dispatch-map-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.dispatch-map-meta > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-align: right;
}

.dispatch-map-style {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dispatch-map-style > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dispatch-map-style select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  padding: 0 28px 0 9px;
  color: var(--navy);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.dispatch-map-style select:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
}

.dispatch-map-style select:disabled {
  cursor: wait;
  opacity: 0.65;
}

.dispatch-map-canvas {
  width: 100%;
  height: 245px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.dispatch-map-canvas.is-ready {
  opacity: 1;
}

.dispatch-map-view-controls {
  position: absolute;
  z-index: 2;
  top: 66px;
  left: 9px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(21, 55, 70, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(21, 55, 70, 0.14);
}

.map-view-button {
  min-height: 32px;
  border: 0;
  border-right: 1px solid rgba(21, 55, 70, 0.12);
  background: transparent;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--navy);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.035em;
  cursor: pointer;
}

.map-view-button:last-child {
  border-right: 0;
}

.map-view-button:hover:not(:disabled),
.map-view-button:focus-visible {
  background: white;
}

.map-view-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--sky);
  outline-offset: -2px;
}

.map-view-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.map-view-button i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--route-origin);
  box-shadow: 0 0 0 1px var(--route-origin-dark);
}

.map-view-destination i {
  background: var(--route-destination);
  box-shadow: 0 0 0 1px var(--route-destination-dark);
}

.map-view-stop i {
  background: var(--lime);
  box-shadow: 0 0 0 1px #70891d;
}

.map-view-loop i,
.route-map-marker-loop > span {
  background: linear-gradient(
    90deg,
    var(--route-origin) 0 50%,
    var(--route-destination) 50% 100%
  );
  box-shadow: 0 0 0 1px var(--route-origin-dark);
}

.map-view-reset span {
  font-size: 14px;
  line-height: 1;
}

.dispatch-map-fallback {
  margin: 0;
  padding: 0 22px;
  position: absolute;
  inset: 57px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.dispatch-map-fallback[hidden] {
  display: none;
}

.dispatch-map-retry {
  min-height: 36px;
  border: 1px solid #bfd2d7;
  border-radius: 9px;
  background: white;
  padding: 8px 13px;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dispatch-map-retry:hover { border-color: var(--sky); background: var(--sky-pale); }
.dispatch-map-retry:focus-visible { outline: 3px solid rgba(91, 187, 208, 0.28); outline-offset: 2px; }

.route-map-marker {
  display: flex;
  align-items: center;
  flex-direction: column;
  filter: drop-shadow(0 2px 3px rgba(7, 26, 53, 0.22));
}

.route-map-marker > span {
  width: 17px;
  height: 17px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--route-origin);
  box-shadow: 0 0 0 2px var(--route-origin-dark);
}

.route-map-marker-destination > span {
  background: var(--route-destination);
  box-shadow: 0 0 0 2px var(--route-destination-dark);
}

.route-map-marker-stop > span {
  background: var(--lime);
  box-shadow: 0 0 0 2px #70891d;
}

.route-map-marker-waypoint > span {
  width: 9px;
  height: 9px;
  border-width: 2px;
  background: var(--sky);
  box-shadow: 0 0 0 1px #2e8497;
}

.route-map-marker strong {
  margin-top: 5px;
  border-radius: 5px;
  background: rgba(7, 26, 53, 0.9);
  padding: 3px 5px;
  color: white;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.05em;
}

.dispatch-map .maplibregl-ctrl-attrib {
  font-size: 9px;
}

.dispatch-map .maplibregl-ctrl-attrib a {
  color: #356d78;
}

.dispatch-map .maplibregl-ctrl-top-right {
  top: 9px;
  right: 9px;
}

.dispatch-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(21, 55, 70, 0.16);
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(21, 55, 70, 0.14);
}

.dispatch-map .maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.94);
}

.dispatch-map .maplibregl-ctrl-group button:hover {
  background-color: white;
}

.mission-stats {
  margin: 21px 38px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 21px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mission-stats div { min-width: 0; padding: 0 15px; border-right: 1px solid var(--line); }
.mission-stats div:first-child { padding-left: 0; }
.mission-stats div:last-child { border-right: 0; }
.mission-stats small, .mission-stats strong { display: block; }

.mission-stats small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.mission-stats strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-itinerary { margin: 20px 38px 0; border: 1px solid #c7dfe4; border-radius: 14px; overflow: hidden; }
.tour-itinerary > header { padding: 13px 15px; background: #f5fbfc; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.tour-itinerary .section-label { margin-bottom: 3px; }
.tour-itinerary h3 { margin: 0; color: var(--navy); font-size: 14px; }
.tour-itinerary > header > span { border-radius: 99px; background: white; padding: 5px 7px; color: #4c7882; font-size: 8px; font-weight: 800; }
.tour-itinerary ol { margin: 0; padding: 4px 15px; list-style: none; }
.tour-itinerary li { min-width: 0; border-bottom: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tour-itinerary li:last-child { border-bottom: 0; }
.tour-itinerary li > span { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: white; display: grid; place-items: center; font-size: 8px; font-weight: 850; }
.tour-itinerary li strong,
.tour-itinerary li small { display: block; }
.tour-itinerary li strong { color: var(--navy); font-size: 11px; }
.tour-itinerary li small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.tour-itinerary li em { color: #587881; font-size: 8px; font-style: normal; font-weight: 750; white-space: nowrap; }
.tour-itinerary > footer { border-top: 1px solid #d7e8eb; background: #fbfdf6; padding: 9px 15px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.tour-itinerary > footer strong { margin-right: 4px; color: #70891d; }

.mission-aircraft-setup {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-body {
  padding: 26px 38px 30px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 40px;
}

.section-label {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.expectation-list, .validation-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.expectation-list li, .validation-panel li { display: flex; align-items: flex-start; gap: 11px; }

.expectation-list li > span, .validation-panel li > span {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  background: var(--sky-pale);
  color: #347e8e;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.expectation-list strong, .expectation-list small, .validation-panel strong, .validation-panel small { display: block; }
.expectation-list strong, .validation-panel strong { font-size: 13px; }

.expectation-list small, .validation-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.training-plan-note {
  display: block;
  margin-top: 5px;
  color: #347e8e;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.validation-panel { border-left: 1px solid var(--line); padding-left: 30px; }

.validation-panel li > span {
  border-radius: 50%;
  background: #f1f7dc;
  color: #6f832e;
  font-size: 11px;
}

.weather-reports {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}

.weather-reports article {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbfb;
  padding: 11px 12px;
}

.weather-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metar-heading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.weather-reports strong { color: var(--ink); font-size: 12px; }
.weather-reports small { color: var(--muted); font-size: 10px; }

.weather-reports p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.metar-raw {
  position: relative;
  margin-top: 7px;
}

.weather-reports article > .metar-raw {
  display: block;
}

.weather-reports .metar-help {
  display: block;
  margin: 0 0 5px;
  color: #72848b;
  font-size: 10px;
}

.metar-copy-button {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #59727a;
  cursor: pointer;
  font: inherit;
  transition: background 150ms ease, color 150ms ease;
}

.metar-copy-button:hover {
  background: var(--sky-pale);
  color: var(--navy);
}

.metar-copy-button:focus-visible {
  outline: 3px solid rgba(91, 187, 208, 0.3);
  outline-offset: 2px;
}

.metar-copy-icon {
  width: 12px;
  height: 12px;
  display: block;
  position: relative;
}

.metar-copy-icon::before,
.metar-copy-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}

.metar-copy-icon::before {
  top: 0;
  right: 0;
}

.metar-copy-icon::after {
  bottom: 0;
  left: 0;
  background: #f8fbfb;
}

.weather-reports code {
  display: block;
  overflow-wrap: anywhere;
  color: #44646c;
  font-size: 10px;
  line-height: 1.5;
}

.metar-token {
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 rgba(21, 55, 70, 0.24);
  cursor: help;
  outline: none;
  transition: background 100ms ease, box-shadow 100ms ease;
}

.metar-token:hover,
.metar-token:focus {
  background: #ddf3f7;
  box-shadow: inset 0 -2px 0 var(--sky);
  color: var(--navy);
}

.metar-tooltip {
  position: absolute;
  z-index: 8;
  width: max-content;
  max-width: min(270px, 100%);
  border-radius: 7px;
  background: var(--navy-deep);
  padding: 7px 9px;
  color: white;
  box-shadow: 0 8px 24px rgba(13, 40, 52, 0.2);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  pointer-events: none;
}

.metar-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border: 5px solid transparent;
  border-top-color: var(--navy-deep);
  content: "";
  transform: translateX(-50%);
}

.metar-tooltip[hidden] { display: none; }

.proposal-actions, .accepted-actions {
  min-height: 82px;
  border-top: 1px solid var(--line);
  background: #fafcfc;
  padding: 17px 38px;
}

.proposal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.proposal-actions form { min-width: 0; margin: 0; }
.proposal-actions small { margin-left: auto; color: var(--muted); font-size: 10px; }
.button-accept { background: var(--navy); }

.accepted-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.accepted-actions strong, .accepted-actions span { display: block; }
.accepted-actions strong { font-size: 13px; }
.accepted-actions > div > span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.download-actions { display: flex; gap: 8px; }
.download-actions .button { min-height: 42px; font-size: 11px; }
.mission-json-download { position: relative; display: flex !important; align-items: center; gap: 5px; }
.mission-json-download > .button { flex: 1; }
.mission-json-help { position: relative; flex: none; }
.mission-json-help summary {
  width: 25px;
  height: 25px;
  border: 1px solid #bdd5da;
  border-radius: 50%;
  background: var(--sky-pale);
  color: #347e8e;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
}
.mission-json-help summary::-webkit-details-marker { display: none; }
.mission-json-help summary:focus-visible { outline: 3px solid rgba(91, 187, 208, 0.28); outline-offset: 2px; }
.mission-json-help[open] summary { border-color: var(--navy); background: var(--navy); color: white; }
.mission-json-help > div {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  width: min(310px, calc(100vw - 40px));
  border: 1px solid #c8dade;
  border-radius: 11px;
  background: white;
  padding: 12px 13px;
  box-shadow: 0 14px 35px rgba(13, 40, 52, 0.18);
}
.mission-json-help > div strong { color: var(--navy); font-size: 11px; }
.mission-json-help > div p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.button-simbrief span { display: inline; color: var(--lime); font-size: 13px; }
.tour-export-badge { align-self: center; border-radius: 99px; background: var(--lime-pale); color: #607b16 !important; padding: 6px 8px; font-size: 8px !important; font-weight: 850; text-transform: uppercase; }
.tour-simbrief-note { border-top: 1px solid var(--line); background: #f8fbfb; padding: 13px 38px; display: flex; align-items: flex-start; gap: 10px; }
.tour-simbrief-note > span { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--sky-pale); color: #347e8e; display: grid; place-items: center; font-size: 10px; font-weight: 850; }
.tour-simbrief-note p { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.tour-simbrief-note strong { margin-right: 4px; color: var(--navy); }

.flight-completion-panel {
  scroll-margin-top: 14px;
  border-top: 1px solid var(--line);
  background: #f5fbfc;
  padding: 19px 38px;
}
.flight-completion-panel.is-complete { background: #f7faeb; }
.flight-completion-panel > header { display: flex; align-items: flex-start; gap: 12px; }
.flight-completion-panel > header > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--sky-pale);
  color: #287f92;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.flight-completion-panel.is-complete > header > span { background: #e7f3c4; color: #66801d; }
.flight-completion-panel h3 { margin: 3px 0 0; color: var(--navy); font-size: 14px; }
.flight-completion-panel header p:last-child { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.flight-completion-rating {
  width: fit-content;
  margin-top: 7px;
  border-radius: 99px;
  background: #e7f3c4;
  padding: 5px 8px;
  display: block;
  color: #66801d;
  font-size: 8px;
}
.flight-completion-form {
  margin: 14px 0 0 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}
.flight-completion-form fieldset { min-width: 0; flex: 1; margin: 0; border: 0; padding: 0; }
.flight-completion-form legend { margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 800; }
.flight-completion-form legend span { margin-left: 4px; color: #92a0a5; font-weight: 500; }
.flight-rating-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.flight-rating-options label { cursor: pointer; }
.flight-rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.flight-rating-options label > span {
  min-height: 48px;
  border: 1px solid #cadcde;
  border-radius: 8px;
  background: white;
  color: #b4c0c3;
  padding: 7px 8px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
}
.flight-rating-options strong,
.flight-rating-options small { display: block; }
.flight-rating-options strong { color: #89979c; font-size: 10px; }
.flight-rating-options small { color: var(--muted); font-size: 7px; line-height: 1.2; }
.flight-rating-options label:hover > span,
.flight-rating-options label:has(input:checked) > span {
  border-color: #b5cb55;
  background: #f3f8de;
}
.flight-rating-options label:hover strong,
.flight-rating-options label:has(input:checked) strong { color: #70891d; }
.flight-rating-options label:has(input:focus-visible) > span {
  outline: 3px solid rgba(91, 187, 208, 0.22);
}
.flight-completion-form .button { min-height: 39px; }
.flight-completion-undo {
  margin: 9px 0 0 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-size: 8px;
  font-weight: 750;
  text-decoration: underline;
}
.flight-completion-signin { margin: 14px 0 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.flight-completion-signin > span { color: var(--muted); font-size: 9px; }

.mission-alert {
  margin: 20px 38px 0;
  border: 1px solid #ebc6c0;
  border-radius: 11px;
  background: #fff4f1;
  padding: 12px 15px;
  color: #863a31;
  font-size: 11px;
  line-height: 1.45;
}

.simbrief-launch {
  display: flex;
  flex-wrap: wrap;
  min-width: 330px;
}

.simbrief-launch input {
  width: 102px;
  min-height: 42px;
  border: 1px solid #b9d2d8;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: white;
  padding: 0 11px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
}

.simbrief-launch input:focus {
  position: relative;
  border-color: var(--sky);
  outline: 3px solid rgba(91, 187, 208, 0.18);
}

.simbrief-launch .button {
  flex: 1;
  border-radius: 0 10px 10px 0;
}

.simbrief-launch.is-connected { min-width: 0; }
.simbrief-launch.is-connected .button { border-radius: 10px; }

.simbrief-launch-status {
  width: 100%;
  min-height: 13px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.simbrief-launch-status:empty { display: none; }
.simbrief-launch-status.is-error { color: #9a4f43; }

.simbrief-api-panel {
  border-top: 1px solid var(--line);
  background: #f8fbfb;
  padding: 17px 38px;
}

.simbrief-api-intro strong, .simbrief-api-intro span,
.simbrief-import-status strong, .simbrief-import-status span {
  display: block;
}

.simbrief-api-intro strong { color: var(--navy); font-size: 11px; }
.simbrief-api-intro span {
  max-width: 670px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.simbrief-import-status {
  margin-top: 14px;
  border: 1px solid #cddcdf;
  border-radius: 12px;
  background: white;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.simbrief-import-status > div > strong { color: var(--navy); font-size: 11px; }
.simbrief-import-status > div > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.simbrief-import-status.is-failed { border-color: #ebc6c0; background: #fffafa; }
.button-compact { min-height: 36px; padding: 8px 13px; font-size: 10px; }

.simbrief-import-status.is-ready {
  display: block;
  border-color: #cfe09f;
  background: #fbfdf4;
}

.simbrief-import-status.is-ready header {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.simbrief-import-status.is-ready header > span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.simbrief-import-status.is-ready header strong { color: var(--navy); font-size: 11px; }
.simbrief-import-status.is-ready header small { color: var(--muted); font-size: 9px; }
.simbrief-summary { margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.simbrief-summary div { min-width: 0; border-left: 1px solid #dfe7d0; padding: 2px 11px; }
.simbrief-summary div:first-child { border-left: 0; padding-left: 0; }
.simbrief-summary dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.simbrief-summary dd { overflow: hidden; margin: 4px 0 0; color: var(--navy); font-size: 11px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.simbrief-route { margin: 13px 0 0; border-top: 1px solid #dfe7d0; padding-top: 11px; }
.simbrief-route strong { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.simbrief-route code { display: block; overflow-wrap: anywhere; margin-top: 5px; color: #3c5961; font-size: 9px; line-height: 1.45; }

.simbrief-downloads {
  margin-top: 13px;
  border-top: 1px solid #dfe7d0;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.simbrief-downloads > div:first-child strong { color: var(--navy); font-size: 10px; }
.simbrief-downloads > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.simbrief-download-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.simbrief-added-details {
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
}

.simbrief-added-details summary {
  width: fit-content;
  color: #3c5961;
  cursor: pointer;
  font-weight: 800;
}

.simbrief-added-details ul {
  margin: 8px 0 0 17px;
  padding: 0;
  line-height: 1.55;
}

.simbrief-help {
  border-top: 1px solid var(--line);
  background: #f5fafb;
  padding: 13px 38px 17px;
}

.simbrief-help summary {
  color: var(--navy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style-position: outside;
}

.simbrief-help ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 15px 0 0;
  padding: 0;
  counter-reset: simbrief-step;
  list-style: none;
}

.simbrief-help li {
  position: relative;
  min-height: 48px;
  padding-left: 30px;
  counter-increment: simbrief-step;
}

.simbrief-help li::before {
  content: counter(simbrief-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  place-items: center;
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.simbrief-help li strong, .simbrief-help li span { display: block; }
.simbrief-help li strong { color: var(--navy); font-size: 11px; }
.simbrief-help li span, .simbrief-help p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.simbrief-help p { margin-bottom: 0; }

.prototype-warning {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.header-navigation,
.header-actions {
  display: flex;
  align-items: center;
}

.header-navigation {
  justify-content: flex-end;
  gap: 12px;
}

.header-actions {
  gap: 9px;
}

.header-actions-utility {
  border-left: 1px solid #d5e0e2;
  padding-left: 12px;
}

.header-admin-link {
  border-color: #b6d6dc;
  background: #edf7f8;
}

.header-admin-link::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  box-shadow: 0 0 0 2px rgba(176, 213, 67, 0.18);
}
.header-admin-link.has-attention::before {
  background: #df5f50;
  box-shadow: 0 0 0 2px rgba(223, 95, 80, 0.2);
}

.header-create-account {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.header-create-account:hover {
  border-color: var(--navy-deep);
  background: var(--navy-deep);
  color: white;
}

.header-sign-out:hover {
  border-color: #e1b2aa;
  background: #fff7f5;
  color: #9a4f43;
}

.header-actions form { margin: 0; }

.header-help-button { position: relative; box-shadow: none; }
.header-help-short { display: none; }
.header-help-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(188, 216, 88, 0.18);
}
.header-help-dot[hidden] { display: none; }

.tips-help-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(7, 26, 53, 0.34);
  backdrop-filter: blur(2px);
}

.tips-help-panel {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100dvh;
  border-left: 1px solid #c9dadd;
  background: #f8fbfb;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  box-shadow: -20px 0 60px rgba(7, 26, 53, 0.2);
}

.tips-help-backdrop[hidden],
.tips-help-panel[hidden],
.tips-help-teaser[hidden] { display: none; }

.tips-help-open { overflow: hidden; }

.tips-help-header {
  flex: none;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 24px 25px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tips-help-header > div > span,
.tips-help-section-heading span {
  color: #3ba5bc;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tips-help-header h2 { margin: 4px 0 0; color: var(--navy); font-size: 28px; letter-spacing: -0.035em; }
.tips-help-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tips-help-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #cbdadd;
  border-radius: 50%;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.tips-help-close:hover { border-color: var(--sky); color: var(--navy); }

.tips-help-content { flex: 1; overflow-y: auto; padding: 22px 22px 28px; }
.tips-help-section-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.tips-help-section-heading h3 { margin: 3px 0 0; color: var(--navy); font-size: 17px; }
.tips-help-section-heading small { color: var(--muted); font-size: 11px; }

.tips-help-tip-card {
  border: 1px solid #a9d3dc;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef9fb, #f8fce9);
  padding: 18px;
}
.tips-help-tip-card > span {
  color: #408b9b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tips-help-tip-card h4 { margin: 7px 0 0; color: var(--navy); font-size: 18px; line-height: 1.25; }
.tips-help-tip-card p { margin: 7px 0 0; color: #516a73; font-size: 13px; line-height: 1.55; }
.tips-help-tip-actions { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tips-help-tip-actions button,
.tips-help-action {
  min-height: 37px;
  border: 1px solid #c6d9dc;
  border-radius: 10px;
  background: white;
  padding: 0 12px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.tips-help-action { margin-right: auto; }
.tips-help-tip-actions .tips-help-complete { border-color: var(--navy); background: var(--navy); color: white; }
.tips-help-tip-actions .tips-help-later { border-color: transparent; background: transparent; color: var(--muted); }

.tips-help-caught-up {
  border: 1px solid #d4e4bd;
  border-radius: 14px;
  background: #f7fbe9;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tips-help-caught-up > span { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--navy); font-weight: 900; }
.tips-help-caught-up strong { color: var(--navy); font-size: 14px; }
.tips-help-caught-up p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.tips-help-library { margin-top: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.tips-help-library > summary {
  padding: 14px 15px;
  color: var(--navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}
.tips-help-library[open] > summary { border-bottom: 1px solid var(--line); background: #f5f9f9; }
.tips-help-list { display: grid; }
.tips-help-list-item {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #e7eeee;
  background: white;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 8px;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}
.tips-help-list-item:last-child { border-bottom: 0; }
.tips-help-list-item:hover { background: #f5fafb; }
.tips-help-list-item > span { grid-row: 1 / 3; color: #3899ad; font-weight: 900; }
.tips-help-list-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tips-help-list-item small { color: var(--muted); font-size: 11px; }
.tips-help-list-item.is-completed > span { color: #77941f; }
.tips-help-list-item.is-completed strong { color: #6f7d82; }

.tips-help-faq-list { padding: 0 14px; }
.tips-help-faq { border-bottom: 1px solid #e7eeee; padding: 12px 0; }
.tips-help-faq:last-child { border-bottom: 0; }
.tips-help-faq summary { color: var(--navy); cursor: pointer; font-size: 13px; font-weight: 800; line-height: 1.4; }
.tips-help-faq p { margin: 8px 0 0; color: #536a73; font-size: 13px; line-height: 1.55; }
.tips-help-faq a { display: inline-block; margin-top: 9px; color: #277f93; font-size: 12px; font-weight: 800; text-decoration: none; }

.tips-help-footer {
  min-height: 54px;
  flex: none;
  border-top: 1px solid var(--line);
  background: white;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.tips-help-footer a { color: #277f93; font-weight: 800; text-decoration: none; }

.tips-help-teaser {
  position: fixed;
  z-index: 35;
  right: 20px;
  bottom: 20px;
  width: min(330px, calc(100vw - 28px));
  border: 1px solid #a8d3dc;
  border-radius: 14px;
  background: white;
  display: flex;
  align-items: stretch;
  box-shadow: 0 16px 42px rgba(13, 40, 52, 0.2);
}
.tips-help-teaser-main { min-width: 0; flex: 1; border: 0; background: transparent; padding: 13px 15px; cursor: pointer; text-align: left; }
.tips-help-teaser-main span,
.tips-help-teaser-main strong { display: block; }
.tips-help-teaser-main span { color: #4099ad; font-size: 9px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.tips-help-teaser-main strong { margin-top: 4px; color: var(--navy); font-size: 13px; line-height: 1.35; }
.tips-help-teaser-close { width: 40px; flex: 0 0 40px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }

.account-tips-preference {
  scroll-margin-top: 16px;
  margin-top: 28px;
  border: 1px solid #c8dce0;
  border-radius: 14px;
  background: #f5fafb;
  padding: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
  gap: 20px;
}
.account-tips-preference h2 { margin: 3px 0 0; color: var(--navy); font-size: 18px; }
.account-tips-preference p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.account-tips-preference form { display: grid; align-content: center; gap: 10px; }
.account-tips-toggle { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.account-tips-toggle input { margin-top: 3px; accent-color: #247f94; }
.account-tips-toggle span,
.account-tips-toggle strong,
.account-tips-toggle small { display: block; }
.account-tips-toggle strong { color: var(--navy); font-size: 11px; }
.account-tips-toggle small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.account-tips-preference .button { width: fit-content; min-height: 38px; font-size: 10px; }

.account-page { width: min(920px, calc(100% - 40px)); }
.account-card {
  width: min(490px, 100%);
  margin: 55px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.account-card-wide { width: min(760px, 100%); }
.account-card h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.045em; }
.account-intro { margin: 12px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.flight-history-card {
  width: min(820px, 100%);
}

.flight-history-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.flight-history-heading > div {
  min-width: 0;
}

.flight-history-heading p:last-child {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.flight-history-heading > span {
  flex: none;
  border-radius: 99px;
  background: var(--sky-pale);
  padding: 7px 10px;
  color: #347e8e;
  font-size: 10px;
  font-weight: 800;
}

.flight-passport {
  margin-bottom: 22px;
  border: 1px solid #b8dce4;
  border-radius: 16px;
  background:
    radial-gradient(circle at 93% 8%, rgba(216, 239, 120, 0.24), transparent 12rem),
    #f5fbfc;
  padding: 17px;
}
.flight-passport > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.flight-passport .step-kicker { margin-bottom: 4px; }
.flight-passport h2 { margin: 0; color: var(--navy); font-size: 18px; }
.flight-passport > header > span {
  border-radius: 99px;
  background: white;
  padding: 6px 8px;
  color: #59808a;
  font-size: 9px;
  font-weight: 800;
}
.flight-passport dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.flight-passport dl div { min-width: 0; border-radius: 10px; background: white; padding: 10px; }
.flight-passport dt { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; }
.flight-passport dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flight-passport dd small { color: var(--muted); font-size: 9px; }
.flight-passport > footer {
  margin-top: 12px;
  border-top: 1px solid #dce9eb;
  padding-top: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.flight-passport > footer > span,
.flight-passport > footer > em { color: var(--muted); font-size: 9px; font-style: normal; }
.flight-passport > footer > strong { color: var(--navy); font-size: 12px; }
.flight-passport > footer > strong small { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 500; }
.flight-passport > p { margin: 12px 0 0; color: var(--muted); font-size: 10px; }

.pilot-dashboard { margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr); gap: 12px; }
.pilot-dashboard article,
.pilot-discoveries { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 15px; }
.pilot-dashboard article > header,
.pilot-discoveries > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pilot-dashboard h2,
.pilot-discoveries h2 { margin: 0; color: var(--navy); font-size: 14px; }
.pilot-dashboard article > header > span,
.pilot-discoveries > header > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.pilot-activity-chart { height: 116px; margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 7px; }
.pilot-activity-chart > div { height: 100%; min-width: 0; display: grid; grid-template-rows: 18px minmax(4px, 1fr) 16px; align-items: end; text-align: center; }
.pilot-activity-chart strong { color: var(--navy); font-size: 9px; }
.pilot-activity-chart i { width: min(26px, 70%); height: max(4px, var(--activity-height)); max-height: 78px; justify-self: center; border-radius: 6px 6px 2px 2px; background: linear-gradient(#60c1d4, #164253); }
.pilot-activity-chart span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.pilot-pattern-card dl { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pilot-pattern-card dl div { min-width: 0; border-radius: 9px; background: #f4f8f8; padding: 9px; }
.pilot-pattern-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.pilot-pattern-card dd { overflow: hidden; margin: 4px 0 0; color: var(--navy); font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.pilot-pattern-card dd small { margin-top: 2px; display: block; color: var(--muted); font-size: 9px; font-weight: 600; }
.pilot-pattern-card footer { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 9px; display: flex; justify-content: space-between; gap: 10px; }
.pilot-pattern-card footer span { color: var(--muted); font-size: 9px; }
.pilot-pattern-card footer strong { color: #6d861b; font-size: 10px; }
.pilot-discoveries { margin-bottom: 18px; }
.pilot-discoveries ol { margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; list-style: none; }
.pilot-discoveries li { min-width: 0; border-radius: 9px; background: #f4f8f8; padding: 9px; }
.pilot-discoveries li strong,
.pilot-discoveries li span,
.pilot-discoveries li time { display: block; }
.pilot-discoveries li strong { color: var(--navy); font-size: 13px; letter-spacing: 0.04em; }
.pilot-discoveries li span { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pilot-discoveries li time { margin-top: 7px; color: #4b9caf; font-size: 9px; font-weight: 800; text-transform: uppercase; }

.flight-history-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.flight-history-entry {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfd;
}

.flight-history-entry > header,
.flight-history-entry > footer {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.flight-history-entry > header {
  border-bottom: 1px solid #e6ecee;
  background: white;
}

.flight-history-entry > header time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.flight-history-statuses {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.flight-history-route {
  padding: 17px 14px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 17px;
}

.flight-history-route > div {
  min-width: 0;
}

.flight-history-route > div:last-child {
  text-align: right;
}

.flight-history-route strong,
.flight-history-route small {
  display: block;
}

.flight-history-route strong {
  color: var(--navy);
  font-size: 20px;
  letter-spacing: 0.035em;
}

.flight-history-route small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-history-route > span {
  color: #4c9caf;
  font-size: 18px;
}

.flight-history-tour-route { padding: 13px 14px 14px; }
.flight-history-tour-route > header { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flight-history-tour-route > header span { color: #347e8e; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.06em; }
.flight-history-tour-route > header small { color: var(--muted); font-size: 9px; font-weight: 700; }
.flight-history-tour-route ol { margin: 0; padding: 0; display: flex; align-items: flex-start; list-style: none; }
.flight-history-tour-route li { min-width: 0; flex: 1; position: relative; padding-right: 22px; }
.flight-history-tour-route li:last-child { padding-right: 0; text-align: right; }
.flight-history-tour-route li strong,
.flight-history-tour-route li small { display: block; }
.flight-history-tour-route li strong { color: var(--navy); font-size: 16px; letter-spacing: 0.035em; }
.flight-history-tour-route li small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.flight-history-tour-route li > span { position: absolute; top: 2px; right: 7px; color: #4c9caf; font-size: 11px; }

.flight-history-concealed strong {
  color: #71871e;
  letter-spacing: 0.14em;
}

.flight-history-sealed {
  min-height: 72px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
}

.flight-history-sealed > span {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  background: var(--sky-pale);
  color: #347e8e;
  display: grid;
  place-items: center;
}

.flight-history-sealed strong,
.flight-history-sealed small {
  display: block;
}

.flight-history-sealed strong {
  color: var(--navy);
  font-size: 12px;
}

.flight-history-sealed small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.flight-history-details {
  margin: 0 14px;
  border-top: 1px solid #e6ecee;
  border-bottom: 1px solid #e6ecee;
  padding: 11px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flight-history-details div {
  min-width: 0;
  border-left: 1px solid #e1e8e9;
  padding: 0 11px;
}

.flight-history-details div:first-child {
  border-left: 0;
  padding-left: 0;
}

.flight-history-details dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flight-history-details dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-history-details dd small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-history-entry > footer > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-history-entry > footer > span small { margin-left: 5px; color: #7a921e; font-size: 9px; font-weight: 800; }
.flight-history-actions { flex: none; display: flex; align-items: center; gap: 7px; }
.flight-history-actions form { margin: 0; }
.flight-history-actions .button { min-height: 36px; }
.flight-history-toolbar { margin: -7px 0 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.flight-history-toolbar form { margin: 0; }
.flight-history-view-switcher { display: flex; flex-wrap: wrap; gap: 8px; }
.button-quiet { border: 1px solid transparent; background: transparent; color: var(--muted); box-shadow: none; }
.button-quiet:hover { border-color: var(--line); background: var(--soft); color: var(--navy); }
.button-danger { border: 1px solid #e4b5ad; background: #fff7f5; color: #934a3f; box-shadow: none; }
.button-danger:hover { border-color: #d79287; background: #ffede9; color: #77382f; }

.flight-history-pagination {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.flight-history-pagination a {
  color: #347e8e;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.flight-history-pagination a:last-child {
  text-align: right;
}

.flight-history-pagination small {
  color: var(--muted);
  font-size: 9px;
}

.flight-history-empty {
  border: 1px dashed #bdd6dc;
  border-radius: 15px;
  background: #f6fbfb;
  padding: 38px 24px;
  text-align: center;
}

.flight-history-empty > span {
  color: var(--sky);
  font-size: 28px;
}

.flight-history-empty h2 {
  margin: 9px 0 0;
  color: var(--navy);
  font-size: 20px;
}

.flight-history-empty p {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.account-connection {
  margin: 0 0 28px;
  border: 1px solid #bddbe2;
  border-radius: 15px;
  background: #f4fbfc;
  padding: 18px;
}

.simbrief-return-prompt {
  margin-bottom: 15px;
  border: 1px solid #a8d4dd;
  border-radius: 12px;
  background: var(--sky-pale);
  padding: 12px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--navy);
}
.simbrief-return-prompt > span {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}
.simbrief-return-prompt div { min-width: 0; }
.simbrief-return-prompt strong { display: block; font-size: 11px; }
.simbrief-return-prompt p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.account-connection > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.account-connection > header > div { min-width: 0; }
.account-connection-kicker {
  color: #4099ad;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.account-connection h2 { margin: 3px 0 0; color: var(--navy); font-size: 19px; }
.account-connection header p { max-width: 570px; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.connection-status {
  flex: none;
  border-radius: 99px;
  background: #e9eeee;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.connection-status.is-connected { background: #eef7d7; color: #66801d; }

.simbrief-account-form { margin-top: 17px; display: grid; gap: 15px; }
.simbrief-account-form > label { display: grid; gap: 6px; color: var(--navy); font-size: 11px; font-weight: 800; }
.simbrief-account-form > label input,
.simbrief-account-form > label select {
  width: 100%;
  min-height: 45px;
  border: 1px solid #c4d7db;
  border-radius: 10px;
  background: white;
  padding: 0 13px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}
.simbrief-account-form > label input:focus,
.simbrief-account-form > label select:focus { border-color: var(--sky); outline: 3px solid rgba(91, 187, 208, 0.18); }
.simbrief-account-form > label small { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.45; }
.simbrief-account-form > label small a { color: #277f93; font-weight: 800; }
.simbrief-account-form fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.simbrief-account-form legend { margin-bottom: 7px; color: var(--navy); font-size: 11px; font-weight: 800; }
.simulator-preference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.simulator-preference-card {
  min-width: 0;
  border: 1px solid #cbdcdf;
  border-radius: 10px;
  background: white;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.simulator-preference-card:has(input:checked) { border-color: #68bace; box-shadow: 0 0 0 2px rgba(91, 187, 208, 0.13); }
.simulator-preference-card input { flex: none; margin-top: 2px; accent-color: #247f94; }
.simulator-preference-card span,
.simulator-preference-card strong,
.simulator-preference-card small { display: block; min-width: 0; }
.simulator-preference-card strong { color: var(--navy); font-size: 10px; }
.simulator-preference-card small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.35; }
.account-connection-actions { display: flex; align-items: center; gap: 9px; }
.account-connection-actions .button { min-height: 40px; font-size: 10px; }
.simbrief-disconnect { min-height: 36px; margin-top: 9px; font-size: 9px; }
.simbrief-saved-actions { margin-top: 10px; flex-wrap: wrap; }
.simbrief-saved-actions form { margin: 0; }
.simbrief-saved-actions .simbrief-disconnect { margin-top: 0; }
.account-connection-note { margin: 10px 0 0; color: #965044; font-size: 9px; }

.account-form { display: grid; gap: 18px; }
.account-form label { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 800; }
.account-form input:not([type="submit"]) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd8db;
  border-radius: 11px;
  background: #fbfdfd;
  padding: 0 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.account-form input:focus { border-color: var(--sky); outline: 3px solid rgba(91, 187, 208, 0.18); }
.password-input { position: relative; display: block; }
.account-form .password-input input { width: 100%; padding-right: 48px; }
.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-visibility-toggle:hover { background: var(--soft); color: var(--navy); }
.password-visibility-toggle:focus-visible { outline: 3px solid rgba(91, 187, 208, 0.28); }
.password-visibility-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-form label small { color: var(--muted); font-weight: 500; }
.account-form-help {
  margin-top: -6px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
}
.account-form-help a {
  color: #277f93;
  font-weight: 800;
  text-decoration: none;
}
.account-submit { width: 100%; min-height: 49px; margin-top: 4px; border: 0; justify-content: center; }
.account-switch { margin: 24px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.account-switch a, .back-link, .table-link { color: #277f93; font-weight: 800; }
.account-section-title {
  margin: 28px 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--navy);
  font-size: 17px;
}
.account-preferences-intro { margin: -9px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.account-preference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-preference-grid section { border: 1px solid var(--line); border-radius: 12px; background: #f8fbfb; padding: 14px; }
.account-preference-grid section > strong { color: var(--navy); font-size: 11px; }
.account-preference-chips { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.account-preference-chips span { border: 1px solid #c7d9dc; border-radius: 99px; background: white; color: var(--navy); padding: 6px 8px; font-size: 9px; font-weight: 800; }
.account-preference-actions { margin-top: 14px; display: flex; align-items: center; gap: 9px; }
.account-preference-actions form { margin: 0; }
.account-preference-actions .button { min-height: 39px; font-size: 10px; }
.airport-collection-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfb;
  padding: 17px;
}
.airport-collection-builder { min-width: 0; }
.airport-collection-heading,
.airport-collection-selected-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.airport-collection-heading strong,
.airport-collection-selected-heading strong { color: var(--navy); font-size: 11px; }
.airport-collection-heading small {
  border-radius: 99px;
  background: var(--sky-pale);
  padding: 5px 8px;
  color: #347e8e;
  font-size: 9px;
  font-weight: 800;
}
.airport-collection-search {
  margin-top: 14px;
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}
.airport-collection-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd8db;
  border-radius: 11px;
  background: white;
  padding: 0 14px;
  color: var(--ink);
  font-size: 13px;
}
.airport-collection-search input:focus,
.airport-collection-bulk textarea:focus {
  border-color: var(--sky);
  outline: 3px solid rgba(91, 187, 208, 0.18);
}
.airport-collection-search-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.airport-collection-results {
  max-height: 250px;
  overflow-y: auto;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.airport-collection-results:empty { display: none; }
.airport-collection-result {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid #e8eeee;
  background: white;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.airport-collection-result:last-child { border-bottom: 0; }
.airport-collection-result:hover { background: #f5fafb; }
.airport-collection-result.is-selected { background: #f1f8e1; }
.airport-collection-result:disabled { cursor: default; opacity: 0.72; }
.airport-collection-result-marker {
  width: 25px;
  height: 25px;
  border: 1px solid #bfd2d6;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #4a8b99;
  font-size: 13px;
  font-weight: 900;
}
.airport-collection-result.is-selected .airport-collection-result-marker {
  border-color: #789226;
  background: #eef7d7;
  color: #617a1b;
}
.airport-collection-result-copy { min-width: 0; }
.airport-collection-result-copy strong,
.airport-collection-result-copy small { display: block; }
.airport-collection-result-copy strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.airport-collection-result-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.airport-collection-result-state {
  border-radius: 99px;
  background: var(--sky-pale);
  padding: 5px 7px;
  color: #347e8e;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.airport-collection-result.is-selected .airport-collection-result-state {
  background: #e8f4c7;
  color: #607a15;
}
.airport-collection-result-message { margin: 0; padding: 20px; color: var(--muted); font-size: 10px; text-align: center; }
.airport-collection-selected-heading { margin-top: 20px; }
.airport-collection-selected-heading small { color: var(--muted); font-size: 8px; }
.airport-collection-selected {
  max-height: 330px;
  overflow-y: auto;
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.airport-collection-item {
  min-width: 0;
  border: 1px solid #dce6e8;
  border-radius: 10px;
  background: white;
  padding: 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
.airport-collection-item > strong { color: var(--navy); font-size: 11px; }
.airport-collection-item > div { min-width: 0; }
.airport-collection-item span,
.airport-collection-item small { overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; }
.airport-collection-item span { color: var(--ink); font-size: 9px; font-weight: 700; }
.airport-collection-item small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.airport-collection-remove {
  border: 0;
  background: transparent;
  color: #9a4f43;
  padding: 4px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}
.airport-collection-remove:hover { text-decoration: underline; }
.airport-collection-empty { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.airport-collection-bulk {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.airport-collection-bulk summary { color: #347e8e; cursor: pointer; font-size: 9px; font-weight: 800; }
.airport-collection-bulk label { margin-top: 12px; display: grid; gap: 6px; color: var(--navy); font-size: 10px; font-weight: 800; }
.airport-collection-bulk textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid #cbd8db;
  border-radius: 10px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
  font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}
.airport-collection-bulk label small { color: var(--muted); font-size: 8px; font-weight: 500; }
.airport-collection-form fieldset { margin: 18px 0 0; border: 0; padding: 0; }
.airport-collection-form legend {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}
.airport-scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.airport-scope-card { min-height: 110px; border-radius: 11px; padding: 13px; }
.airport-scope-card input { position: absolute; opacity: 0; pointer-events: none; }
.airport-scope-card strong, .airport-scope-card small { display: block; }
.airport-scope-card strong { color: var(--navy); font-size: 13px; }
.airport-scope-card small { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.airport-scope-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.airport-scope-card-heading em {
  flex: none;
  border-radius: 999px;
  background: var(--sky-pale);
  color: #277f93;
  padding: 3px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.airport-collection-submit {
  width: 100%;
  min-height: 43px;
  margin-top: 13px;
  border: 0;
  justify-content: center;
  font-size: 10px;
}
.form-errors { border: 1px solid #ebc6c0; border-radius: 11px; background: #fff4f1; padding: 13px 15px; color: #863a31; font-size: 12px; line-height: 1.5; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.development-verification {
  margin: 22px 0;
  border: 1px solid #b8dce4;
  border-radius: 13px;
  background: var(--sky-pale);
  padding: 16px;
  display: grid;
  gap: 5px;
}
.development-verification strong { color: var(--navy); font-size: 12px; }
.development-verification span { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.development-verification .button { justify-content: center; }
.verification-resend { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 17px; }
.verification-resend h2 { margin: 0; color: var(--navy); font-size: 14px; }
.verification-resend > p { margin: 6px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.verification-resend .account-form { margin-top: 15px; }

.admin-page {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
}
.admin-page > .site-header { width: min(1280px, 100%); margin: 0 auto; }
.admin-shell { width: min(1280px, 100%); margin: 20px auto 54px; }
.admin-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.05em; }
.admin-heading p:not(.step-kicker) { max-width: 690px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.period-picker { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 4px; display: flex; flex-shrink: 0; }
.period-picker a { border-radius: 8px; color: var(--muted); padding: 8px 11px; font-size: 12px; font-weight: 800; text-decoration: none; }
.period-picker a.is-active { background: var(--navy); color: white; }
.catalog-snapshot-label {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-section-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-section-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 38px rgba(25, 53, 64, 0.06);
  padding: 18px 20px 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.dashboard-section-card:hover {
  border-color: #a9c9d0;
  box-shadow: 0 15px 42px rgba(25, 53, 64, 0.1);
  transform: translateY(-1px);
}
.dashboard-section-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dashboard-section-card header div span,
.dashboard-section-card header div strong { display: block; }
.dashboard-section-card header div span {
  color: #4faec3;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dashboard-section-card header div strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 16px;
}
.dashboard-section-card header em {
  color: #3b8798;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.dashboard-section-card dl {
  margin: 14px 0 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.missions-dashboard-card dl { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-section-card dl div {
  min-width: 0;
  border-radius: 10px;
  background: #f4f8f8;
  padding: 10px 11px;
}
.dashboard-section-card dt {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.dashboard-section-card dd {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.dashboard-section-card dd small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
}
.dashboard-section-card > footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #839097;
  font-size: 11px;
  line-height: 1.4;
}
.dashboard-section-card > .catalog-card-footer {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}
.catalog-card-update-line {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.catalog-card-update-line > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-status {
  flex: none;
  border-radius: 99px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.catalog-status.is-current { background: #e8f4c7; color: #607a15; }
.catalog-status.is-stale { background: #fff0cf; color: #99651d; }
.catalog-status.is-running { background: #dff2f6; color: #28768a; }
.catalog-status.is-missing,
.catalog-status.is-failed { background: #f8dfda; color: #a44f42; }
.dashboard-section-card.is-active .catalog-status.is-current { background: var(--lime); color: var(--navy); }
.dashboard-section-card.is-active .catalog-status.is-stale { background: #ffd78c; color: #68430c; }
.dashboard-section-card.is-active .catalog-status.is-running { background: #a9e1ec; color: #174e5b; }
.dashboard-section-card.is-active .catalog-status.is-missing,
.dashboard-section-card.is-active .catalog-status.is-failed { background: #efaa9e; color: #632d25; }
.dashboard-section-card.is-active {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 15px 42px rgba(20, 59, 74, 0.16);
}
.dashboard-section-card.is-active header div strong,
.dashboard-section-card.is-active dd { color: white; }
.dashboard-section-card.is-active header em,
.dashboard-section-card.is-active header div span { color: var(--lime); }
.dashboard-section-card.is-active dl div { background: rgba(255, 255, 255, 0.08); }
.dashboard-section-card.is-active dt,
.dashboard-section-card.is-active dd small,
.dashboard-section-card.is-active > footer { color: rgba(255, 255, 255, 0.62); }
.dashboard-feedback-badge {
  border-radius: 99px;
  background: #f8dfda;
  padding: 5px 7px;
  color: #a44f42;
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dashboard-section-card.is-active .dashboard-feedback-badge {
  background: #f5ad99;
  color: #54281f;
}

.mission-insights {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 38px rgba(25, 53, 64, 0.06);
  padding: 20px;
}
.mission-insights > header { margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.mission-insights > header .section-label { margin-bottom: 3px; }
.mission-insights > header h2 { margin: 0; color: var(--navy); font-size: 17px; }
.mission-insights > header > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.mission-insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mission-insight-card { min-width: 0; border: 1px solid #dce6e7; border-radius: 13px; background: #fbfdfd; padding: 14px; }
.activation-journey-card { grid-column: 1 / -1; }
.activation-journey-intro { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.activation-funnel { margin: 13px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; list-style: none; }
.activation-funnel li { min-width: 0; border-radius: 9px; background: white; padding: 10px; position: relative; }
.activation-funnel li:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -8px; z-index: 1; color: #62b8ca; font-size: 12px; font-weight: 900; transform: translateY(-50%); }
.activation-funnel span,
.activation-funnel strong,
.activation-funnel small { display: block; }
.activation-funnel span { min-height: 30px; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; }
.activation-funnel strong { margin-top: 3px; color: var(--navy); font-size: 21px; }
.activation-funnel small { margin-top: 2px; color: #71851f; font-size: 10px; line-height: 1.25; }
.activation-outcomes { margin-top: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.activation-outcomes > span { border-radius: 9px; background: #f1f6f6; padding: 8px 10px; color: var(--muted); font-size: 11px; font-weight: 750; }
.activation-outcomes strong { margin-left: 5px; color: var(--navy); font-size: 14px; }
.activation-outcomes small { margin-left: 5px; color: #71851f; }
.activation-details { margin-top: 10px; border-top: 1px solid #dce6e7; padding-top: 9px; }
.activation-details summary { color: #277f93; font-size: 12px; font-weight: 800; cursor: pointer; }
.activation-details > div { margin-top: 9px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.activation-details section { border-radius: 8px; background: white; padding: 9px; display: grid; gap: 4px; }
.activation-details section > strong { color: var(--navy); font-size: 11px; }
.activation-details section > span { color: var(--muted); font-size: 11px; }
.activation-details section b { color: var(--navy); }
.mission-insight-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mission-insight-card > header span,
.mission-insight-card > header h3 { display: block; }
.mission-insight-card > header span { color: #4faec3; font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.mission-insight-card > header h3 { margin: 2px 0 0; color: var(--navy); font-size: 14px; }
.mission-insight-card > header em { border-radius: 99px; background: var(--lime-pale); padding: 5px 7px; color: #607b16; font-size: 10px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.mission-insight-metrics,
.recovery-summary { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mission-insight-metrics div,
.recovery-summary div { min-width: 0; border-radius: 9px; background: white; padding: 9px; }
.mission-insight-metrics dt,
.recovery-summary dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mission-insight-metrics dd,
.recovery-summary dd { margin: 4px 0 0; color: var(--navy); font-size: 20px; font-weight: 850; }
.mission-insight-metrics dd small,
.recovery-summary dd small { margin-left: 3px; color: #71851f; font-size: 11px; }
.tour-performance-card > footer { margin-top: 9px; color: var(--muted); font-size: 12px; }
.tour-choice-report { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tour-choice-report section > strong,
.failure-report-columns section > strong,
.demand-report-grid section > strong { color: var(--navy); font-size: 12px; }
.tour-choice-report section > div { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.tour-choice-report section span { border-radius: 99px; background: white; padding: 5px 7px; color: var(--muted); font-size: 11px; }
.tour-choice-report section span b { margin-left: 5px; color: var(--navy); }
.is-empty { color: #8b989d !important; font-style: italic; }
.failure-report-columns { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.failure-report-columns ol,
.demand-report-grid ol { margin: 6px 0 0; padding: 0; list-style: none; }
.failure-report-columns li,
.demand-report-grid li { border-top: 1px solid #e6eded; padding: 5px 0; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.failure-report-columns li:first-child,
.demand-report-grid li:first-child { border-top: 0; }
.failure-report-columns li span,
.demand-report-grid li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.failure-report-columns li b,
.demand-report-grid li b { color: var(--navy); }
.recent-planning-issues { margin-top: 12px; border-top: 1px solid #e2ebec; padding-top: 10px; }
.recent-planning-issues summary { color: #277f93; font-size: 11px; font-weight: 800; cursor: pointer; }
.recent-planning-issues ol { margin: 8px 0 0; padding: 0; list-style: none; }
.recent-planning-issues li { border-top: 1px solid #e8eeee; padding: 7px 0; display: grid; grid-template-columns: 80px 100px 1fr; gap: 8px; color: var(--muted); font-size: 10px; }
.recent-planning-issues li:first-child { border-top: 0; }
.recent-planning-issues li strong { color: var(--navy); }
.recent-planning-issues li small { grid-column: 2 / -1; color: #73868e; line-height: 1.4; }
.demand-report-grid { margin-top: 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.rating-report { margin-top: 10px; border-top: 1px solid #dce6e7; padding-top: 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.rating-report > span { color: var(--muted); font-size: 11px; }
.rating-report > span > strong { margin-left: 4px; color: #71851f; font-size: 12px; }
.rating-report > span > small { margin-left: 4px; }
.rating-distribution { margin-left: auto; display: flex; gap: 4px; }
.rating-distribution i { border-radius: 6px; background: white; padding: 4px 5px; color: #7a921e; font-size: 11px; font-style: normal; }
.rating-distribution i b { color: var(--navy); }
.mission-map-toggle { flex: none; }
.admin-mission-map {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.admin-mission-map > header {
  margin-bottom: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.admin-mission-map > header h3 { margin: 2px 0 0; color: var(--navy); font-size: 17px; }
.admin-mission-map > header p:not(.section-label) { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.mission-map-mode { border: 1px solid var(--line); border-radius: 10px; background: #f4f8f8; padding: 3px; display: flex; }
.mission-map-mode button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 7px 11px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.mission-map-mode button.is-active { background: var(--navy); color: white; }
.mission-map-mode button:focus-visible { outline: 3px solid rgba(91, 187, 208, 0.28); outline-offset: 2px; }
.mission-map-summary { margin: 0 0 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mission-map-summary div { min-width: 0; border-radius: 10px; background: #f4f8f8; padding: 10px 12px; }
.mission-map-summary dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mission-map-summary dd { overflow: hidden; margin: 4px 0 0; color: var(--navy); font-size: 18px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.admin-mission-map-frame {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #d8e4e6;
  border-radius: 13px;
  background: #f3f7f7;
  position: relative;
}
.admin-mission-map-canvas { width: 100%; height: 780px; }
.admin-mission-map-status {
  margin: 0;
  padding: 20px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}
.admin-mission-map-frame > .dispatch-map-retry {
  position: absolute;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  z-index: 2;
}
.mission-map-popup { min-width: 190px; display: grid; gap: 4px; color: var(--navy); }
.mission-map-popup strong { font-size: 13px; }
.mission-map-popup span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-mission-map .maplibregl-popup-content { border-radius: 10px; padding: 13px 15px; }

/* Feedback */
.footer-feedback {
  position: relative;
  border-radius: 99px;
  color: #55717b;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  text-decoration: none;
}
.footer-feedback:hover { background: #e8f5f7; color: var(--navy); }
.footer-pricing { color: #55717b; font-weight: 800; text-decoration: none; }
.footer-pricing:hover { color: var(--navy); text-decoration: underline; }
.footer-legal-link { color: #55717b; font-weight: 800; text-decoration: none; }
.footer-legal-link:hover { color: var(--navy); text-decoration: underline; }
.footer-listings {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8b979d;
}
.footer-listings ul {
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
}
.footer-listings a { color: #55717b; font-weight: 800; text-decoration: none; }
.footer-listings a:hover { color: var(--navy); text-decoration: underline; }
.footer-feedback strong {
  min-width: 17px;
  height: 17px;
  border-radius: 99px;
  background: #f29a82;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: #54281f;
  font-size: 8px;
}
.mission-feedback-prompt {
  margin: 14px 0 0;
  border: 1px solid #c9dde1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mission-feedback-prompt > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.mission-feedback-prompt > div > span {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--sky-pale);
  display: grid;
  place-items: center;
  color: #3e9db2;
  font-size: 12px;
}
.mission-feedback-prompt p { margin: 0; }
.mission-feedback-prompt strong,
.mission-feedback-prompt small { display: block; }
.mission-feedback-prompt strong { color: var(--navy); font-size: 11px; }
.mission-feedback-prompt small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.feedback-page { width: min(920px, calc(100% - 40px)); }
.feedback-page .site-header { width: min(860px, 100%); margin: 0 auto; }
.feedback-list-card,
.feedback-form-card,
.feedback-conversation-card { max-width: 840px; }
.feedback-page-heading,
.feedback-conversation-heading,
.feedback-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.feedback-page-heading { margin-bottom: 22px; }
.feedback-page-heading h1,
.feedback-conversation-heading h1,
.feedback-admin-heading h1 { margin: 2px 0 0; }
.feedback-page-heading p:last-child,
.feedback-conversation-heading p:last-child,
.feedback-admin-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feedback-flight-context {
  margin-bottom: 20px;
  border: 1px solid #b8d8df;
  border-radius: 13px;
  background: var(--sky-pale);
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 14px;
}
.feedback-flight-context > span { grid-row: 1 / 3; color: #438b9a; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.06em; }
.feedback-flight-context strong { color: var(--navy); font-size: 16px; }
.feedback-flight-context small { color: var(--muted); font-size: 9px; }
.feedback-flight-context.is-compact { grid-template-columns: auto 1fr auto; }
.feedback-flight-context.is-compact a { grid-column: 3; grid-row: 1 / 3; color: #267f93; font-size: 10px; font-weight: 800; text-decoration: none; }
.feedback-form fieldset { margin: 0; border: 0; padding: 0; }
.feedback-form legend { margin-bottom: 10px; color: var(--navy); font-size: 11px; font-weight: 850; letter-spacing: 0; }
.feedback-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feedback-category-grid label { position: relative; cursor: pointer; }
.feedback-category-grid input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-category-grid label > span {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}
.feedback-category-grid i {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: #eef4f4;
  display: grid;
  place-items: center;
  color: #5caec0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.feedback-category-grid strong { color: var(--navy); font-size: 10px; }
.feedback-category-grid input:focus-visible + span { box-shadow: 0 0 0 3px rgba(85, 183, 204, 0.2); }
.feedback-category-grid input:checked + span { border-color: var(--navy); background: #f4f9fa; box-shadow: inset 0 0 0 1px var(--navy); }
.feedback-category-grid input:checked + span i { background: var(--navy); color: var(--lime); }
.feedback-text-field { margin-top: 20px; display: block; }
.feedback-text-field > span { display: block; color: var(--navy); font-size: 11px; font-weight: 850; }
.feedback-text-field textarea,
.feedback-reply-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd8db;
  border-radius: 12px;
  background: white;
  padding: 13px 14px;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}
.feedback-text-field textarea:focus,
.feedback-reply-form textarea:focus { border-color: var(--sky); outline: 3px solid rgba(85, 183, 204, 0.16); }
.feedback-text-field small { margin-top: 5px; display: block; color: var(--muted); font-size: 9px; }
.feedback-form-actions { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-unread-note {
  margin-bottom: 14px;
  border-radius: 11px;
  background: #fff0cf;
  padding: 10px 12px;
  color: #805619;
  font-size: 10px;
}
.feedback-unread-note strong { margin-right: 5px; }
.feedback-report-list,
.feedback-inbox-list,
.feedback-thread { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.feedback-report-list > li { border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; }
.feedback-report-list > li.is-unread { border-color: #e8b07e; background: #fffaf1; }
.feedback-report-list a { padding: 13px 14px; display: flex; justify-content: space-between; gap: 18px; color: inherit; text-decoration: none; }
.feedback-report-list a > div { min-width: 0; }
.feedback-report-list a > div span,
.feedback-report-list a > div strong,
.feedback-report-list a > div small { display: block; }
.feedback-report-list a > div span { color: #4faec3; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.06em; }
.feedback-report-list a > div strong { margin-top: 3px; color: var(--navy); font-size: 13px; }
.feedback-report-list a > div small { max-width: 520px; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.feedback-report-list aside { flex: none; display: flex; align-items: center; gap: 7px; }
.feedback-report-list aside > b { color: #a55b28; font-size: 8px; text-transform: uppercase; }
.feedback-report-list time { color: var(--muted); font-size: 8px; }
.feedback-status.is-open { background: #fff0cf; color: #99651d; }
.feedback-status.is-reviewing { background: #e1f3f7; color: #277f93; }
.feedback-status.is-replied { background: #e8f4c7; color: #607a15; }
.feedback-status.is-resolved { background: #eef2f2; color: #687780; }
.feedback-empty-card,
.feedback-empty-state { border: 1px dashed #cbdadd; border-radius: 13px; padding: 30px; text-align: center; }
.feedback-empty-card > span { color: var(--sky); font-size: 20px; }
.feedback-empty-card strong { margin-top: 8px; display: block; color: var(--navy); }
.feedback-empty-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.feedback-back-link { margin-bottom: 16px; display: inline-block; color: #327f90; font-size: 10px; font-weight: 800; text-decoration: none; }
.feedback-conversation-heading { margin-bottom: 18px; }
.feedback-thread { margin: 20px 0; }
.feedback-thread li { max-width: 82%; border-radius: 13px; padding: 11px 13px; }
.feedback-thread li.is-user { justify-self: end; background: var(--navy); color: white; }
.feedback-thread li.is-admin { justify-self: start; border: 1px solid #c3dce1; background: #eef8fa; color: var(--navy); }
.feedback-thread li header { display: flex; justify-content: space-between; gap: 18px; }
.feedback-thread li header strong { font-size: 9px; }
.feedback-thread li header time { color: inherit; opacity: 0.62; font-size: 8px; }
.feedback-thread li p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; }
.feedback-thread li p span { display: block; }
.feedback-reply-form { border-top: 1px solid var(--line); padding-top: 18px; }
.feedback-reply-form textarea { margin-top: 0; }
.feedback-reply-form footer { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-reply-form footer small { color: var(--muted); font-size: 9px; }
.feedback-inbox-panel > header { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.feedback-inbox-panel > header h2,
.feedback-admin-conversation > header h2,
.feedback-diagnostics > header h2 { margin: 0; color: var(--navy); font-size: 17px; }
.feedback-inbox-panel > header p,
.feedback-admin-conversation > header p,
.feedback-diagnostics > header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.feedback-filter { border: 1px solid var(--line); border-radius: 10px; background: #f8fbfb; padding: 3px; display: flex; }
.feedback-filter a { border-radius: 7px; padding: 6px 8px; color: var(--muted); font-size: 8px; font-weight: 800; text-decoration: none; }
.feedback-filter a.is-active { background: var(--navy); color: white; }
.feedback-inbox-list li { border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; }
.feedback-inbox-list li.is-unread { border-color: #e6b37c; box-shadow: inset 4px 0 #f29a82; }
.feedback-inbox-list a { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(140px, 0.7fr) auto; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.feedback-inbox-primary { min-width: 0; }
.feedback-inbox-primary span,
.feedback-inbox-primary strong,
.feedback-inbox-primary small { display: block; }
.feedback-category { color: #4faec3; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; }
.feedback-inbox-primary strong { overflow: hidden; margin-top: 3px; color: var(--navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.feedback-inbox-primary small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.feedback-inbox-context strong,
.feedback-inbox-context span { display: block; }
.feedback-inbox-context strong { color: var(--navy); font-size: 10px; }
.feedback-inbox-context span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.feedback-empty-state { margin: 0; color: var(--muted); font-size: 10px; }
.feedback-admin-shell { max-width: 1180px; }
.feedback-admin-heading { margin-bottom: 18px; }
.feedback-status-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px 8px; }
.feedback-status-form label { grid-column: 1 / -1; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.feedback-status-form select { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 0 28px 0 10px; color: var(--navy); font: inherit; font-size: 10px; }
.feedback-admin-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr); gap: 14px; }
.feedback-admin-conversation,
.feedback-diagnostics { margin: 0; }
.feedback-thread.is-admin li.is-admin { justify-self: end; background: var(--navy); color: white; }
.feedback-thread.is-admin li.is-user { justify-self: start; border: 1px solid #c3dce1; background: #eef8fa; color: var(--navy); }
.feedback-diagnostics dl { margin: 15px 0; display: grid; gap: 7px; }
.feedback-diagnostics dl div { border-radius: 9px; background: #f4f8f8; padding: 8px 10px; }
.feedback-diagnostics dt { color: var(--muted); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.feedback-diagnostics dd { overflow-wrap: anywhere; margin: 3px 0 0; color: var(--navy); font-size: 9px; font-weight: 750; }
.feedback-diagnostics .button { width: 100%; justify-content: center; }

.quality-panel { margin-bottom: 14px; }
.quality-panel > header { margin-bottom: 17px; }
.quality-run-error {
  margin-bottom: 17px;
  border: 1px solid #efc7bc;
  border-radius: 12px;
  background: #fff5f2;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.quality-run-error strong { color: #8d453b; font-size: 12px; }
.quality-run-error p { margin: 4px 0 0; color: #9a5b52; font-size: 11px; line-height: 1.45; }
.quality-run-error > span { max-width: 330px; color: #8a6b66; font-size: 10px; line-height: 1.45; text-align: right; }
.quality-overview {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.quality-overview article {
  border-radius: 11px;
  background: #f4f8f8;
  padding: 13px 14px;
}
.quality-overview span,
.quality-overview strong { display: block; }
.quality-overview span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quality-overview strong {
  margin-top: 6px;
  color: var(--navy);
  font-size: 22px;
}
.quality-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}
.quality-thresholds,
.quality-breakdown,
.quality-issues {
  border: 1px solid #e3eaeb;
  border-radius: 13px;
  padding: 16px;
}
.quality-thresholds header h3,
.quality-breakdown header h3,
.quality-issues header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
}
.quality-thresholds header p,
.quality-breakdown header p,
.quality-issues header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.quality-thresholds ol,
.quality-breakdown ol,
.quality-issues ol {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.quality-thresholds li {
  border-top: 1px solid #edf1f2;
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.quality-thresholds li:first-child { border-top: 0; padding-top: 0; }
.quality-thresholds li > span {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}
.quality-thresholds li.is-passed > span { background: #e8f4c7; color: #607a15; }
.quality-thresholds li.is-failed > span { background: #f8dfda; color: #a44f42; }
.quality-thresholds strong,
.quality-thresholds small { display: block; }
.quality-thresholds strong { color: var(--navy); font-size: 10px; }
.quality-thresholds small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.quality-breakdown li { margin-top: 11px; }
.quality-breakdown li:first-child { margin-top: 0; }
.quality-breakdown li div { display: flex; justify-content: space-between; gap: 10px; }
.quality-breakdown li strong { color: var(--navy); font-size: 10px; }
.quality-breakdown li span { color: var(--muted); font-size: 8px; text-align: right; }
.quality-breakdown li > i {
  height: 5px;
  margin-top: 5px;
  border-radius: 99px;
  background: #edf2f2;
  display: block;
  overflow: hidden;
}
.quality-breakdown li > i span {
  width: var(--metric-width);
  height: 100%;
  border-radius: inherit;
  background: var(--sky);
  display: block;
}
.quality-issues { margin-top: 14px; }
.quality-issues ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quality-issues li {
  border-radius: 9px;
  background: #fff5f2;
  padding: 10px 11px;
}
.quality-issues strong,
.quality-issues span { display: block; }
.quality-issues strong { color: #8d453b; font-size: 9px; }
.quality-issues span { margin-top: 3px; color: #9a6a63; font-size: 8px; }
.quality-empty,
.quality-no-run p { color: var(--muted); font-size: 10px; }
.quality-empty { margin: 13px 0 0; }
.quality-no-run {
  border: 1px dashed #bdd6dc;
  border-radius: 13px;
  background: #f6fbfb;
  padding: 34px 20px;
  text-align: center;
}
.quality-no-run strong { color: var(--navy); font-size: 15px; }
.quality-no-run p { margin: 6px 0 0; }

.metric-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.metric-card, .admin-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 38px rgba(25, 53, 64, 0.06);
}
.metric-card { min-height: 112px; padding: 17px 19px; display: flex; flex-direction: column; }
.metric-card small { min-height: 28px; color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.07em; }
.metric-card strong { margin-top: 7px; color: var(--navy); font-size: 30px; letter-spacing: -0.04em; }
.metric-card span { margin-top: auto; color: #89969c; font-size: 10px; }
.metric-card-featured { border-color: var(--navy); background: var(--navy); }
.metric-card-featured small, .metric-card-featured span { color: rgba(255, 255, 255, 0.64); }
.metric-card-featured strong { color: var(--lime); }
.admin-panel { padding: 22px; }
.admin-panel > header { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.admin-panel h2 { margin: 0; color: var(--navy); font-size: 16px; }
.admin-panel header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.ranking-list, .event-trail { margin: 0; padding: 0; list-style: none; }
.activity-panel { margin-bottom: 14px; padding-bottom: 18px; }
.activity-panel > header { margin-bottom: 10px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 13px; color: var(--muted); font-size: 11px; }
.chart-legend span::before { content: ""; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--sky); display: inline-block; }
.chart-legend .visitors::before { background: var(--navy); }
.chart-legend .accepted::before { background: var(--lime-dark); }
.chart-legend .completed::before { background: var(--route-origin); }
.chart-legend .verified::before { background: var(--lime-dark); }
.chart-legend .sign-ins::before { background: #8c7bd5; }
.chart-legend .simbrief-opened::before { background: #8c7bd5; }
.chart-legend .simbrief-imported::before { background: #267f94; }
.chart-legend .failed::before { background: #e28b7d; }
.chart-legend .errored::before { background: #b34747; }
.vertical-activity-chart {
  height: 246px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
}
.activity-scale {
  height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #8b999f;
  font-size: 10px;
  text-align: right;
}
.activity-plot { min-width: 0; position: relative; }
.activity-grid-lines {
  height: 214px;
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.activity-grid-lines i { width: 100%; border-top: 1px solid #edf2f2; }
.activity-columns {
  height: 246px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--activity-points), minmax(0, 1fr));
  gap: clamp(1px, 0.22vw, 4px);
}
.activity-period {
  min-width: 0;
  display: grid;
  grid-template-rows: 214px 32px;
}
.activity-cluster {
  min-width: 0;
  border-bottom: 1px solid #dce5e7;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1px, 0.08vw, 2px);
}
.activity-cluster i {
  width: 100%;
  max-width: 9px;
  height: var(--metric-height);
  min-height: 0;
  border-radius: 3px 3px 0 0;
  background: var(--sky);
  display: block;
}
.activity-cluster i.has-value { min-height: 3px; }
.activity-cluster i.visitors { background: var(--navy); }
.activity-cluster i.accepted { background: var(--lime-dark); }
.activity-cluster i.completed { background: var(--route-origin); }
.activity-cluster i.verified { background: var(--lime-dark); }
.activity-cluster i.sign-ins { background: #8c7bd5; }
.activity-cluster i.simbrief-opened { background: #8c7bd5; }
.activity-cluster i.simbrief-imported { background: #267f94; }
.activity-cluster i.failed { background: #e28b7d; }
.activity-cluster i.errored { background: #b34747; }
.activity-period time {
  padding-top: 8px;
  color: #87969c;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  visibility: hidden;
}
.activity-period time.is-visible { visibility: visible; }
.catalog-panel { margin-bottom: 14px; }
.catalog-panel > header { margin-bottom: 17px; }
.catalog-update-dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.catalog-update-dates span {
  border-radius: 99px;
  background: #f2f7f7;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 8px;
}
.catalog-update-dates strong { margin-left: 3px; color: var(--navy); }
.catalog-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.catalog-breakdown {
  border-radius: 13px;
  background: #f7fafa;
  padding: 16px;
}
.catalog-breakdown h3,
.catalog-facts h3 {
  margin: 0;
  color: var(--navy);
  font-size: 12px;
}
.catalog-breakdown ol {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}
.catalog-breakdown li div {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
}
.catalog-breakdown li strong { color: var(--navy); }
.catalog-breakdown li > i {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eeee;
  display: block;
}
.catalog-breakdown li > i span {
  width: var(--metric-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), #86d0de);
  display: block;
}
.catalog-breakdown:nth-child(2) li > i span {
  background: linear-gradient(90deg, var(--lime-dark), var(--lime));
}
.catalog-sync-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.catalog-sync-grid article {
  min-width: 0;
  border: 1px solid #e4ebed;
  border-radius: 13px;
  background: white;
  padding: 14px 16px;
}
.catalog-sync-grid article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.catalog-sync-grid header span {
  color: #4faec3;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.catalog-sync-grid h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 12px;
}
.catalog-sync-grid dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 8px;
}
.catalog-sync-grid dl div { min-width: 0; }
.catalog-sync-grid dt {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}
.catalog-sync-grid dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-sync-grid article > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 8px;
}
.catalog-sync-grid article > .catalog-sync-error {
  border-radius: 7px;
  background: #fff1ee;
  padding: 7px 8px;
  color: #a44f42;
  line-height: 1.35;
}
.catalog-facts {
  margin-top: 18px;
  border-top: 1px solid #e5ecee;
  padding-top: 16px;
}
.catalog-facts > header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.catalog-facts > div {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.catalog-facts article {
  min-width: 0;
  border: 1px solid #e7edef;
  border-radius: 11px;
  background: white;
  padding: 12px;
}
.catalog-facts article span,
.catalog-facts article strong,
.catalog-facts article small { display: block; }
.catalog-facts article span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.catalog-facts article strong {
  overflow: hidden;
  margin-top: 6px;
  color: var(--navy);
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-facts article small {
  overflow: hidden;
  margin-top: 4px;
  color: #7e8c92;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-choice-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.compact-panel { padding: 18px; }
.ranking-list { display: grid; gap: 9px; }
.ranking-list li { border-bottom: 1px solid #edf1f2; padding-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.ranking-list strong { color: var(--navy); }
.table-panel { margin-bottom: 18px; }
.admin-table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
.admin-table th { border-bottom: 1px solid var(--line); padding: 9px 10px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-table td { border-bottom: 1px solid #edf1f2; padding: 11px 10px; color: #53636b; white-space: nowrap; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.status-pill { border-radius: 99px; background: #eef2f2; padding: 5px 8px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.status-pill.is-success { background: #eff7d9; color: #66801d; }
.status-pill.is-flown { background: #fff0d9; color: #9b6420; }
.status-pill.is-simbrief { background: #e1f3f7; color: #277f93; }
.empty-state { margin: 5px 0; color: var(--muted); font-size: 11px; }
.mission-inspector .back-link { margin-bottom: 20px; display: inline-block; font-size: 11px; text-decoration: none; }
.inspection-grid { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inspection-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inspection-list div { border-radius: 10px; background: #f5f8f8; padding: 12px; }
.inspection-list dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.inspection-list dd { margin: 5px 0 0; color: var(--navy); font-size: 12px; font-weight: 800; }
.event-trail { display: grid; gap: 13px; }
.event-trail li { display: flex; align-items: flex-start; gap: 10px; }
.event-trail i { width: 9px; height: 9px; margin-top: 3px; border: 2px solid white; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 1px var(--sky); }
.event-trail strong, .event-trail span { display: block; }
.event-trail strong { color: var(--navy); font-size: 10px; }
.event-trail span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.payload-details summary { color: var(--navy); font-size: 12px; font-weight: 850; cursor: pointer; }
.payload-details pre { max-height: 520px; overflow: auto; margin: 18px 0 0; border-radius: 12px; background: var(--navy-deep); padding: 18px; color: #dcebef; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }

.growth-panel > header { margin-bottom: 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.growth-panel > header h2 { margin: 0; color: var(--navy); font-size: 17px; }
.growth-panel > header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.growth-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.growth-overview article { border-radius: 11px; background: #f4f8f8; padding: 13px; }
.growth-overview span, .growth-overview strong { display: block; }
.growth-overview span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.growth-overview strong { margin-top: 6px; color: var(--navy); font-size: 23px; letter-spacing: -0.04em; }
.growth-feature-report { margin-top: 13px; border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.growth-feature-report h3 { margin: 0; color: var(--navy); font-size: 13px; }
.growth-feature-report header p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.growth-feature-report ol { margin: 14px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.growth-feature-report li div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.growth-feature-report li strong { color: var(--navy); font-size: 10px; }
.growth-feature-report li div span { color: var(--muted); font-size: 8px; }
.growth-feature-report li > i { height: 6px; margin-top: 5px; border-radius: 99px; background: #edf2f2; display: block; overflow: hidden; }
.growth-feature-report li > i span { width: var(--metric-width); height: 100%; border-radius: inherit; background: var(--sky); display: block; }
.growth-disclaimer { margin: 13px 0 0; color: var(--muted); font-size: 8px; text-align: center; }

/* Pricing */
.pricing-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; flex: 1; }
.pricing-shell { width: min(1040px, 100%); margin: 22px auto 58px; }
.pricing-hero { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.pricing-beta-badge { margin: 5px auto 15px; border-radius: 99px; background: #e9f5c7; padding: 6px 10px; display: inline-block; color: #587213; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-hero h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.055em; }
.pricing-hero > p:last-child { max-width: 650px; margin: 17px auto 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.pricing-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pricing-plan-card { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 18px 50px rgba(25, 53, 64, 0.08); padding: 25px; display: flex; flex-direction: column; }
.pricing-plan-card.is-pro { border-color: #9ecbd5; background: linear-gradient(155deg, #f7fcfd, white 58%); box-shadow: 0 20px 55px rgba(21, 55, 70, 0.13); }
.pricing-plan-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.pricing-plan-card > header div span { color: #4faec3; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.09em; }
.pricing-plan-card h2 { margin: 4px 0 0; color: var(--navy); font-size: 21px; }
.pricing-plan-card > header p { margin: 0; text-align: right; }
.pricing-plan-card > header p strong { display: block; color: var(--navy); font-size: 31px; letter-spacing: -0.05em; }
.pricing-plan-card > header p small { color: var(--muted); font-size: 9px; }
.pricing-plan-card > p { min-height: 42px; margin: 17px 0 4px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.pricing-plan-card > p.pricing-yearly { color: #48646e; font-weight: 650; }
.pricing-plan-card ul { margin: 17px 0 23px; padding: 0; display: grid; gap: 11px; list-style: none; }
.pricing-plan-card li { position: relative; padding-left: 21px; color: #3e5159; font-size: 11px; line-height: 1.45; }
.pricing-plan-card li::before { position: absolute; left: 0; content: "✓"; color: #7c9e1e; font-weight: 900; }
.pricing-plan-card .button { width: 100%; margin-top: auto; }
.pricing-simbrief-note { margin: 16px 0; border: 1px solid #cfe3a0; border-radius: 14px; background: #f5fae7; padding: 13px 16px; display: flex; align-items: center; gap: 11px; }
.pricing-simbrief-note > span { width: 25px; height: 25px; flex: none; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--navy); font-weight: 900; }
.pricing-simbrief-note p { margin: 0; color: #56653e; font-size: 10px; line-height: 1.5; }
.pro-interest-panel { border: 1px solid var(--line); border-radius: 20px; background: white; padding: 26px; box-shadow: 0 18px 50px rgba(25, 53, 64, 0.07); scroll-margin-top: 18px; }
.pro-interest-panel > header { text-align: center; }
.pro-interest-panel > header h2 { margin: 5px 0 0; color: var(--navy); font-size: 24px; letter-spacing: -0.035em; }
.pro-interest-panel > header > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.pro-interest-form { margin-top: 20px; }
.pro-feature-grid { margin: 0; border: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.pro-feature-option { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; padding: 13px; cursor: pointer; }
.pro-feature-option input { position: absolute; opacity: 0; pointer-events: none; }
.pro-feature-option > span { width: 18px; height: 18px; border: 1px solid #aecbd1; border-radius: 50%; background: white; display: block; }
.pro-feature-option input:checked + span { border: 5px solid var(--navy); background: var(--lime); }
.pro-feature-option:has(input:checked) { border-color: var(--navy); background: var(--sky-pale); box-shadow: inset 0 0 0 1px var(--navy); }
.pro-feature-option:has(input:focus-visible) { outline: 3px solid rgba(91, 187, 208, 0.35); outline-offset: 2px; }
.pro-feature-option strong { margin-top: 10px; display: block; color: var(--navy); font-size: 10px; line-height: 1.3; }
.pro-feature-option small { margin-top: 5px; display: block; color: var(--muted); font-size: 8px; line-height: 1.45; }
.pro-interest-form > footer { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pro-interest-form > footer p { max-width: 480px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.pro-interest-signin { margin-top: 20px; border-radius: 14px; background: #f4f8f8; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pro-interest-signin p { max-width: 540px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.pro-interest-signin > div { display: flex; gap: 8px; }

/* Privacy and cookies */
.legal-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; flex: 1; }
.privacy-shell {
  width: min(920px, 100%);
  margin: 22px auto 58px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 55px rgba(25, 53, 64, 0.08);
  padding: clamp(25px, 5vw, 48px);
}
.privacy-hero { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.privacy-hero h1 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.privacy-hero > p:not(.step-kicker) { max-width: 700px; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.privacy-hero > div { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-hero > div span { border-radius: 99px; background: var(--sky-pale); padding: 7px 10px; color: #326f7d; font-size: 11px; font-weight: 800; }
.privacy-hero > small { margin-top: 15px; display: block; color: #718188; font-size: 12px; }
.privacy-section { border-bottom: 1px solid var(--line); padding: 27px 0; scroll-margin-top: 16px; }
.privacy-section:last-child { border-bottom: 0; padding-bottom: 0; }
.privacy-section h2 { margin: 0; color: var(--navy); font-size: 22px; letter-spacing: -0.025em; }
.privacy-section h3 { margin: 0; color: var(--navy); font-size: 15px; }
.privacy-section p { margin: 10px 0 0; color: #536a73; font-size: 14px; line-height: 1.7; }
.privacy-section a { color: #237d91; font-weight: 750; }
.privacy-section ul { margin: 13px 0 0; padding-left: 21px; color: #536a73; font-size: 14px; line-height: 1.65; }
.privacy-section li + li { margin-top: 7px; }
.privacy-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid #dce6e7; border-radius: 13px; }
.privacy-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.privacy-table th { background: #f3f8f8; padding: 11px 13px; color: #42616c; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.privacy-table td { border-top: 1px solid #e4ebec; padding: 13px; color: #536a73; font-size: 13px; line-height: 1.5; vertical-align: top; }
.privacy-table td:first-child { color: var(--navy); font-weight: 800; }
.privacy-table code { font-size: 12px; }
.privacy-note { border-radius: 11px; background: #f4f8f8; padding: 11px 13px; }
.privacy-card-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.privacy-card-grid article { border: 1px solid #dfe8e9; border-radius: 12px; background: #fbfdfd; padding: 15px; }
.privacy-card-grid article p { margin-top: 6px; font-size: 13px; line-height: 1.55; }

@media (max-width: 900px) {
  .header-identity { max-width: 120px; }
  .header-identity span { display: none; }
  .guest-access-panel { grid-template-columns: 1fr; }
  .guest-access-options { border-top: 1px solid var(--line); border-left: 0; padding-top: 12px; padding-left: 0; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-intro { min-height: auto; padding: 35px; }
  .wizard-intro h1, .intro-copy { max-width: 600px; }
  .route-art { display: none; }
  .promise-list { margin-top: 28px; grid-template-columns: repeat(3, 1fr); }
  .promise-list li { align-items: flex-start; }
  .wizard-card { min-height: 640px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-section-card dl { grid-template-columns: 1fr 1fr; }
  .pro-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-overview { grid-template-columns: 1fr 1fr; }
  .quality-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quality-report-grid { grid-template-columns: 1fr; }
  .catalog-facts > div { grid-template-columns: 1fr 1fr; }
  .admin-choice-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-shell, .result-page { width: min(100% - 24px, 1180px); }
  .legal-page { width: min(100% - 24px, 1180px); }
  .privacy-shell { margin-top: 12px; border-radius: 17px; padding: 23px 19px; }
  .privacy-card-grid { grid-template-columns: 1fr; }
  .site-header { min-height: 68px; }
  .brand > span:last-child { display: none; }
  .header-navigation { gap: 6px; }
  .header-actions { gap: 4px; }
  .header-actions-utility { padding-left: 6px; }
  .header-control { min-height: 36px; padding-inline: 8px; font-size: 11px; }
  .header-help-label { display: none; }
  .header-help-short { display: inline; }
  .tips-help-content { padding: 18px 16px 24px; }
  .tips-help-header { padding: 20px 18px 17px; }
  .tips-help-header h2 { font-size: 25px; }
  .tips-help-footer { padding-inline: 17px; }
  .account-tips-preference { grid-template-columns: 1fr; gap: 14px; }
  .prototype-pill { display: none; }
  .guest-access-panel { padding: 14px; grid-template-columns: 1fr; gap: 13px; }
  .guest-access-intro { display: block; }
  .guest-access-badge { display: inline-block; margin-bottom: 8px; }
  .guest-access-intro h2 { font-size: 15px; }
  .guest-access-options { grid-template-columns: 1fr; gap: 11px; }
  .guest-access-options div + div { border-top: 1px solid #e7edef; padding-top: 10px; }
  .wizard-layout { gap: 12px; padding: 6px 0 18px; }
  .wizard-intro { border-radius: 18px; padding: 21px 23px; }
  .wizard-intro .eyebrow, .wizard-intro .intro-copy { display: none; }
  .wizard-intro h1 { max-width: 290px; font-size: 29px; line-height: 1.04; }
  .promise-list { display: none; }
  .wizard-card { min-height: 560px; border-radius: 18px; padding: 23px 20px; }
  .progress-track { margin-bottom: 30px; }
  legend { font-size: 29px; }
  .field-help { margin-bottom: 24px; }
  .aircraft-choice-intro { align-items: flex-start; margin-bottom: 20px; flex-direction: column; gap: 10px; }
  .aircraft-choice-intro .field-help { margin: 0; }
  .aircraft-grid { grid-template-columns: 1fr 1fr; }
  .aircraft-card { min-height: 113px; padding: 14px; }
  .aircraft-symbol { width: 34px; height: 34px; }
  .aircraft-profile-state { top: 16px; left: 57px; }
  .option-content { display: block; }
  .option-content strong, .option-content > span { display: block; }
  .option-content small { display: none; }
  .option-content strong { font-size: 16px; }
  .option-content > span { margin-top: 3px; }
  .aircraft-picker-panel { padding: 20px 16px 80px; }
  .aircraft-picker-header h2 { font-size: 23px; }
  .aircraft-picker-meta { align-items: flex-start; padding: 8px 0; flex-direction: column; gap: 3px; }
  .aircraft-catalog-list { min-height: 140px; }
  .aircraft-catalog-row { grid-template-columns: 28px minmax(0, 1fr); }
  .aircraft-catalog-state { grid-column: 2; justify-self: start; margin-top: -5px; }
  .aircraft-airframe-panel { margin-left: 50px; }
  .aircraft-custom-airframe-fields { grid-template-columns: 1fr; }
  .aircraft-custom-airframe-fields > small { grid-column: auto; }
  .aircraft-picker-action-buttons { width: 100%; }
  .aircraft-picker-action-buttons .button { flex: 1; }
  .aircraft-picker-actions { right: 16px; bottom: 16px; left: 16px; }
  .chip-grid { grid-template-columns: 1fr 1fr; }
  .departure-favourites-heading { flex-direction: column; gap: 9px; }
  .favorite-airport-grid { grid-template-columns: 1fr 1fr; }
  .departure-mode-grid { grid-template-columns: 1fr; }
  .departure-mode-card { min-height: 58px; }
  .region-grid { grid-template-columns: 1fr; }
  .region-card:first-child { grid-column: auto; }
  .difficulty-grid { grid-template-columns: 1fr; }
  .mission-format-grid,
  .tour-choice-grid,
  .tour-choice-grid.is-three { grid-template-columns: 1fr; }
  .mission-format-card > span { min-height: 78px; }
  .tour-choice-grid label > span { min-height: 58px; }
  .difficulty-card { min-height: 61px; }
  .reveal-card { padding: 13px; }
  .reveal-heading em { display: none; }
  .wizard-actions .button { min-width: 112px; }
  .mission-generation-status small { display: none; }
  .result-shell { margin-top: 8px; }
  .result-heading { margin-bottom: 16px; }
  .status-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .mission-card-header { padding: 25px 21px 21px; }
  .mission-seal { display: none; }

  .route-board {
    min-height: 120px;
    margin: 0 14px;
    padding: 20px 15px;
    grid-template-columns: 1fr 68px 1fr;
  }

  .route-board.route-tour { min-height: 0; grid-template-columns: 1fr; gap: 13px; }
  .tour-route-strip { overflow-x: auto; padding-bottom: 5px; }
  .tour-route-strip li { min-width: 82px; }
  .tour-route-summary { border-top: 1px solid rgba(255, 255, 255, 0.16); border-left: 0; padding: 10px 0 0; }

  .airport-code { font-size: 23px; }
  .airport-point > span:last-child { white-space: normal; line-height: 1.3; }
  .flight-path small { display: none; }

  .dispatch-map {
    margin: 14px 14px 0;
  }

  .dispatch-map > header {
    padding-inline: 13px;
  }

  .dispatch-map-meta {
    gap: 7px;
  }

  .dispatch-map-meta > span,
  .dispatch-map-style > span {
    display: none;
  }

  .dispatch-map-canvas {
    height: 205px;
  }

  .mission-stats {
    margin: 17px 20px 0;
    grid-template-columns: 1fr 1fr;
    gap: 15px 0;
  }
  .tour-itinerary { margin: 16px 20px 0; }
  .tour-itinerary > header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tour-itinerary li { grid-template-columns: 25px minmax(0, 1fr); }
  .tour-itinerary li em { grid-column: 2; }

  .mission-stats div:nth-child(2) { border-right: 0; }
  .mission-stats div:nth-child(3) { padding-left: 0; }
  .mission-body { padding: 24px 20px; grid-template-columns: 1fr; gap: 28px; }
  .validation-panel { border-top: 1px solid var(--line); border-left: 0; padding-top: 23px; padding-left: 0; }
  .proposal-actions, .accepted-actions { padding: 16px 20px; }
  .proposal-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proposal-actions form, .proposal-actions .button { width: 100%; }
  .proposal-actions small { grid-column: 1 / -1; margin: 0; text-align: center; }
  .accepted-actions { align-items: stretch; flex-direction: column; }
  .tour-simbrief-note { padding: 13px 20px; }
  .download-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mission-json-download { min-width: 0; }
  .button-simbrief { grid-column: 1 / -1; }
  .mission-alert { margin: 14px 20px 0; }
  .mission-feedback-prompt { align-items: stretch; flex-direction: column; }
  .mission-feedback-prompt .button { width: 100%; }
  .simbrief-launch { min-width: 0; grid-column: 1 / -1; }
  .simbrief-api-panel { padding: 16px 20px; }
  .simbrief-import-status { align-items: stretch; flex-direction: column; }
  .simbrief-import-status form, .simbrief-import-status .button { width: 100%; }
  .simbrief-summary { grid-template-columns: 1fr 1fr 1fr; gap: 11px 0; }
  .simbrief-summary div:nth-child(4),
  .simbrief-summary div:nth-child(7) { border-left: 0; padding-left: 0; }
  .simbrief-downloads { align-items: stretch; flex-direction: column; }
  .simbrief-download-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .simbrief-download-actions .button { width: 100%; }
  .simbrief-download-actions .button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .simbrief-help { padding: 13px 20px 17px; }
  .simbrief-help ol { grid-template-columns: 1fr; gap: 11px; }
  .simbrief-help li { min-height: 0; }
  .account-page, .admin-page { width: min(100% - 24px, 1180px); }
  .account-card { margin: 25px auto; padding: 27px 22px; }
  .account-connection { padding: 15px; }
  .account-connection > header { flex-direction: column; gap: 10px; }
  .simulator-preference-grid { grid-template-columns: 1fr; }
  .account-connection-actions .button { width: 100%; }
  .flight-history-card { margin: 18px auto; border-radius: 18px; padding: 20px 14px; }
  .flight-history-heading { position: relative; margin-bottom: 16px; display: block; padding-right: 76px; }
  .flight-history-heading h1 { font-size: 32px; }
  .flight-history-heading p:last-child { margin-top: 6px; font-size: 11px; line-height: 1.4; }
  .flight-history-heading > span { position: absolute; top: 0; right: 0; padding: 6px 8px; }
  .flight-history-list { gap: 10px; }
  .flight-passport { margin-bottom: 16px; padding: 13px; }
  .flight-passport dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-dashboard { grid-template-columns: 1fr; }
  .pilot-discoveries > header { display: block; }
  .pilot-discoveries > header > span { margin-top: 4px; display: block; }
  .pilot-discoveries ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-discoveries li:first-child { grid-column: 1 / -1; }
  .flight-passport > footer { grid-template-columns: 1fr auto; }
  .flight-passport > footer > span { grid-column: 1 / -1; }
  .flight-passport > footer > strong small { display: block; margin: 2px 0 0; }
  .flight-history-entry { border-radius: 12px; }
  .flight-history-entry > header { padding: 9px 11px; }
  .flight-history-entry > header time { font-size: 10px; }
  .flight-history-route { padding: 13px 11px 11px; gap: 8px; }
  .flight-history-route strong { font-size: 18px; }
  .flight-history-route small { font-size: 9px; }
  .flight-history-route > span { font-size: 15px; }
  .flight-history-tour-route { padding: 11px; }
  .flight-history-tour-route > header { margin-bottom: 8px; }
  .flight-history-tour-route ol { overflow-x: auto; padding-bottom: 3px; }
  .flight-history-tour-route li { min-width: 64px; }
  .flight-history-tour-route li strong { font-size: 13px; }
  .flight-history-details { margin-inline: 11px; padding: 9px 0; grid-template-columns: 1fr 1fr; gap: 0; }
  .flight-history-details div { padding-inline: 9px; }
  .flight-history-details div:nth-child(3) { border-left: 0; padding-left: 0; }
  .flight-history-details div:nth-child(n+3) { margin-top: 9px; border-top: 1px solid #edf1f2; padding-top: 9px; }
  .flight-history-entry > footer { padding: 9px 11px; gap: 8px; }
  .flight-history-entry > footer > span { min-width: 0; font-size: 10px; }
  .flight-history-entry > footer .button { width: auto; flex: none; min-height: 34px; padding: 7px 10px; }
  .flight-history-entry > footer { align-items: stretch; flex-direction: column; }
  .flight-history-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .flight-history-actions:has(> :only-child) { grid-template-columns: 1fr; }
  .flight-history-actions form, .flight-history-actions .button { width: 100%; }
  .flight-completion-panel { padding: 17px 20px; }
  .flight-completion-form { margin-left: 0; align-items: stretch; flex-direction: column; }
  .flight-rating-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-completion-form .button { width: 100%; }
  .flight-completion-undo { margin-left: 0; }
  .flight-completion-signin { margin-left: 0; align-items: stretch; flex-direction: column; }
  .flight-completion-signin .button { width: 100%; }
  .account-form-help { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mission-recovery-actions { grid-template-columns: 1fr; }
  .account-preference-grid { grid-template-columns: 1fr; }
  .airport-scope-grid { grid-template-columns: 1fr; }
  .airport-scope-card { min-height: 90px; }
  .airport-collection-selected { grid-template-columns: 1fr; }
  .airport-collection-selected-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .airport-collection-result { grid-template-columns: 25px minmax(0, 1fr); }
  .airport-collection-result-state { display: none; }
  .account-preference-actions { align-items: stretch; flex-direction: column; }
  .account-preference-actions form, .account-preference-actions .button { width: 100%; }
  .admin-shell { margin-top: 14px; }
  .admin-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .catalog-snapshot-label { width: 100%; text-align: center; }
  .period-picker { width: 100%; overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); }
  .period-picker a { flex: 1; text-align: center; white-space: nowrap; }
  .dashboard-section-grid { grid-template-columns: 1fr; }
  .dashboard-section-card { padding: 16px; }
  .mission-insights { padding: 16px; }
  .mission-insights > header { flex-direction: column; gap: 5px; }
  .mission-map-toggle { width: 100%; margin-top: 6px; }
  .mission-insights-grid { grid-template-columns: 1fr; }
  .activation-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activation-funnel li:not(:last-child)::after { display: none; }
  .activation-outcomes,
  .activation-details > div { grid-template-columns: 1fr 1fr; }
  .admin-mission-map > header { flex-direction: column; }
  .mission-map-mode { width: 100%; }
  .mission-map-mode button { flex: 1; }
  .mission-map-summary { grid-template-columns: 1fr 1fr; }
  .admin-mission-map-frame { min-height: 660px; }
  .admin-mission-map-canvas { height: 660px; }
  .rating-distribution { width: 100%; margin-left: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 112px; padding: 16px; }
  .inspection-grid { grid-template-columns: 1fr; }
  .admin-choice-grid { grid-template-columns: 1fr; }
  .admin-panel { padding: 17px; }
  .activity-panel > header { flex-direction: column; gap: 10px; }
  .activity-panel .chart-legend { display: flex; justify-content: flex-start; }
  .catalog-panel > header { flex-direction: column; gap: 10px; }
  .quality-panel > header { flex-direction: column; gap: 10px; }
  .quality-overview { grid-template-columns: 1fr 1fr; }
  .quality-run-error { flex-direction: column; }
  .quality-run-error > span { max-width: none; text-align: left; }
  .quality-issues ol { grid-template-columns: 1fr; }
  .quality-breakdown li div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .quality-breakdown li span { text-align: left; }
  .catalog-update-dates { justify-content: flex-start; }
  .catalog-breakdown-grid, .catalog-sync-grid, .catalog-facts > div { grid-template-columns: 1fr; }
  .inspection-list { grid-template-columns: 1fr; }
  .feedback-page-heading,
  .feedback-conversation-heading,
  .feedback-admin-heading { flex-direction: column; gap: 11px; }
  .feedback-page-heading .button { width: 100%; }
  .feedback-category-grid { grid-template-columns: 1fr; }
  .feedback-flight-context,
  .feedback-flight-context.is-compact { grid-template-columns: 1fr; gap: 4px; }
  .feedback-flight-context > span,
  .feedback-flight-context.is-compact a { grid-column: auto; grid-row: auto; }
  .feedback-flight-context.is-compact a { margin-top: 4px; }
  .feedback-report-list a { flex-direction: column; gap: 10px; }
  .feedback-report-list aside { justify-content: space-between; }
  .feedback-thread li { max-width: 94%; }
  .feedback-reply-form footer { align-items: stretch; flex-direction: column; }
  .feedback-reply-form footer .button { width: 100%; }
  .feedback-inbox-panel > header { flex-direction: column; }
  .feedback-filter { width: 100%; overflow-x: auto; }
  .feedback-filter a { flex: 1; text-align: center; white-space: nowrap; }
  .feedback-inbox-list a { grid-template-columns: 1fr auto; gap: 10px; }
  .feedback-inbox-context { grid-column: 1; }
  .feedback-inbox-list .feedback-status { grid-column: 2; grid-row: 1 / 3; }
  .feedback-status-form { width: 100%; }
  .feedback-admin-grid { grid-template-columns: 1fr; }
  .growth-panel > header { align-items: stretch; flex-direction: column; }
  .pricing-plan-grid { grid-template-columns: 1fr; }
  .pricing-plan-card > p { min-height: 0; }
  .pro-interest-form > footer, .pro-interest-signin { align-items: stretch; flex-direction: column; }
  .pro-interest-form > footer .button { width: 100%; }
  .pro-interest-signin > div { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-height: 620px) {
  .aircraft-picker-header p:last-child { display: none; }
  .aircraft-search { margin-top: 12px; }
  .aircraft-picker-meta { min-height: 30px; }
  .aircraft-selection-hint { margin-bottom: 6px; padding-block: 6px; }
  .aircraft-selected-favorites { min-height: 29px; margin-bottom: 6px; }
  .aircraft-catalog-list { min-height: 0; }
}

@media (max-width: 420px) {
  .pricing-page { width: min(100% - 24px, 1180px); }
  .pricing-shell { margin-top: 12px; }
  .pricing-plan-card, .pro-interest-panel { border-radius: 16px; padding: 18px; }
  .pro-feature-grid { grid-template-columns: 1fr; }
  .pro-interest-signin > div { grid-template-columns: 1fr; }
  .site-header { padding: 8px 0; flex-wrap: wrap; gap: 6px; }
  .header-identity {
    max-width: calc(100% - 58px);
  }
  .header-identity span { display: block; }
  .header-navigation { width: 100%; flex-wrap: wrap; justify-content: stretch; }
  .header-actions { width: 100%; justify-content: flex-end; }
  .header-actions-utility { border-top: 1px solid #d5e0e2; border-left: 0; padding-top: 6px; padding-left: 0; }
  .header-control { min-height: 34px; }
  .tips-help-panel { width: 100vw; border-left: 0; }
  .tips-help-teaser { right: 14px; bottom: 14px; }
  .proposal-actions { grid-template-columns: 1fr; }
  .proposal-actions small { grid-column: 1; }
  .download-actions { grid-template-columns: 1fr; }
  .mission-json-download { width: 100%; }
  .button-simbrief { grid-column: 1; }
  .simbrief-launch { grid-column: 1; }
  .simbrief-summary { grid-template-columns: 1fr 1fr; }
  .simbrief-summary div:nth-child(3),
  .simbrief-summary div:nth-child(5),
  .simbrief-summary div:nth-child(7) { border-left: 0; padding-left: 0; }
  .simbrief-summary div:nth-child(4) { border-left: 1px solid #dfe7d0; padding-left: 11px; }
  .simbrief-download-actions { grid-template-columns: 1fr; }
  .simbrief-download-actions .button:last-child:nth-child(odd) { grid-column: 1; }
}
.custom-aircraft-page { min-height: 100vh; }
.custom-aircraft-shell,
.custom-aircraft-form-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 72px;
}
.custom-aircraft-form-shell { max-width: 940px; }
.custom-aircraft-heading,
.custom-aircraft-form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.custom-aircraft-heading h1,
.custom-aircraft-form-heading h1 { margin: 5px 0 8px; color: var(--navy); font-size: clamp(32px, 4vw, 52px); line-height: 1.02; }
.custom-aircraft-heading p:last-child,
.custom-aircraft-form-heading p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.custom-aircraft-form-heading { display: block; }
.sharing-explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.sharing-explainer div { display: grid; gap: 5px; padding: 18px 20px; background: rgba(255,255,255,.9); }
.sharing-explainer strong { color: var(--navy); font-size: 13px; }
.sharing-explainer span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.aircraft-sharing-limit { display: grid; gap: 4px; margin: -12px 0 28px; padding: 13px 16px; border: 1px solid #efd49d; border-radius: 12px; background: #fff8e8; }
.aircraft-sharing-limit strong { color: #795513; font-size: 12px; }
.aircraft-sharing-limit span { color: var(--muted); font-size: 12px; }
.aircraft-library-section {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
}
.aircraft-library-section > header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.aircraft-library-section h2 { margin: 2px 0 0; color: var(--navy); font-size: 22px; }
.aircraft-library-section > header > span { color: var(--muted); font-size: 12px; }
.custom-aircraft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.custom-aircraft-card { display: grid; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.custom-aircraft-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.custom-aircraft-card h3 { margin: 3px 0 0; color: var(--navy); font-size: 18px; }
.custom-aircraft-code { color: var(--cyan-deep); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.custom-aircraft-status { padding: 5px 8px; border-radius: 999px; background: #e7edf0; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.custom-aircraft-status.is-published { background: var(--lime-soft); color: #56720a; }
.custom-aircraft-status.is-submitted { background: #fff0ce; color: #865b12; }
.custom-aircraft-status.is-changes_requested { background: #fff0ce; color: #865b12; }
.custom-aircraft-status.is-declined { background: #fde0db; color: #8b382c; }
.custom-aircraft-card dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.custom-aircraft-card dl div { padding: 0 10px; border-left: 1px solid var(--line); }
.custom-aircraft-card dl div:first-child { padding-left: 0; border-left: 0; }
.custom-aircraft-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.custom-aircraft-card dd { margin: 4px 0 0; color: var(--navy); font-size: 13px; font-weight: 800; }
.custom-aircraft-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.aircraft-source-link { color: var(--cyan-deep); font-weight: 800; }
.custom-aircraft-card > aside { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: #fff0ed; color: #7d3429; font-size: 12px; }
.custom-aircraft-card > footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.custom-aircraft-card > footer > span { margin-right: auto; color: var(--muted); font-size: 11px; }
.aircraft-selected-label { color: #587508 !important; font-weight: 800; }
.aircraft-library-empty,
.aircraft-community-empty { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 13px; background: var(--surface-soft); color: var(--muted); font-size: 13px; }
.aircraft-library-empty strong { color: var(--navy); }
.aircraft-library-empty .button { margin-left: auto; }
.custom-aircraft-form { display: grid; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.9); }
.custom-aircraft-form fieldset { display: grid; gap: 15px; margin: 0; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line); }
.custom-aircraft-form legend { color: var(--navy); font-size: 17px; font-weight: 800; }
.custom-aircraft-form legend span,
.custom-aircraft-form fieldset > p { color: var(--muted); font-size: 12px; font-weight: 400; }
.custom-aircraft-form fieldset > p { margin: 5px 0 3px; line-height: 1.45; }
.custom-aircraft-fields { display: grid; gap: 12px; }
.custom-aircraft-fields.three-columns { grid-template-columns: repeat(3, 1fr); }
.custom-aircraft-fields.two-columns { grid-template-columns: repeat(2, 1fr); }
.custom-aircraft-fields label { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 800; }
.custom-aircraft-fields label > span { color: var(--muted); font-weight: 500; }
.custom-aircraft-fields input,
.custom-aircraft-fields select,
.custom-aircraft-fields textarea,
.aircraft-review-actions input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); font: inherit; }
.custom-aircraft-fields textarea { resize: vertical; }
.custom-aircraft-fields small { color: var(--muted); font-size: 10px; font-weight: 400; }
.runway-length-input { display: grid; grid-template-columns: minmax(0, 1fr) 72px; }
.runway-length-input input { border-radius: 10px 0 0 10px; }
.runway-length-input select {
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--surface-soft);
  font-weight: 800;
}
.unit-preference-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.unit-preference-options label { position: relative; }
.unit-preference-options input { position: absolute; opacity: 0; }
.unit-preference-options span { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.unit-preference-options strong { color: var(--navy); font-size: 12px; }
.unit-preference-options small { color: var(--muted); font-size: 10px; }
.unit-preference-options input:checked + span { border-color: var(--navy); background: var(--navy); }
.unit-preference-options input:checked + span strong,
.unit-preference-options input:checked + span small { color: white; }
.custom-aircraft-check-groups { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.custom-aircraft-check-groups > div { display: grid; gap: 9px; }
.custom-aircraft-check-groups > div > strong { color: var(--navy); font-size: 12px; }
.custom-aircraft-checks { display: flex; gap: 7px; flex-wrap: wrap; }
.custom-aircraft-checks label { position: relative; }
.custom-aircraft-checks input { position: absolute; opacity: 0; }
.custom-aircraft-checks span { display: block; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.custom-aircraft-checks input:checked + span { border-color: var(--navy); background: var(--navy); color: white; }
.custom-aircraft-share-choice { display: flex; gap: 11px; align-items: flex-start; padding: 15px; border: 1px solid #b8dfeb; border-radius: 12px; background: #f1fbfd; }
.custom-aircraft-share-choice span { display: grid; gap: 4px; }
.custom-aircraft-share-choice strong { color: var(--navy); font-size: 13px; }
.custom-aircraft-share-choice small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.custom-aircraft-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.aircraft-review-pending-edit { display: grid; gap: 4px; padding: 13px 15px; border: 1px solid #efd49d; border-radius: 11px; background: #fff8e8; }
.aircraft-review-pending-edit strong { color: #795513; font-size: 12px; }
.aircraft-review-pending-edit span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.aircraft-library-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.aircraft-library-action > div { display: grid; gap: 2px; }
.aircraft-library-action strong { color: var(--navy); font-size: 12px; }
.aircraft-library-action span { color: var(--muted); font-size: 10px; }
.aircraft-library-link { display: block; margin: 0 0 10px; color: var(--cyan-deep); font-size: 12px; font-weight: 800; text-decoration: none; }
.aircraft-library-link.is-note { color: var(--muted); font-weight: 500; }
.catalog-community-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.catalog-community-action div { display: grid; gap: 3px; }
.catalog-community-action strong { color: var(--navy); font-size: 13px; }
.catalog-community-action span { color: var(--muted); font-size: 11px; }
.custom-aircraft-admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.custom-aircraft-admin-metrics article { display: grid; gap: 4px; padding: 13px; border-radius: 11px; background: var(--surface-soft); }
.custom-aircraft-admin-metrics span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.custom-aircraft-admin-metrics strong { color: var(--navy); font-size: 22px; }
.custom-aircraft-admin-metrics small { color: var(--muted); font-size: 10px; }
.aircraft-review-card { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.aircraft-review-card:first-of-type { border-top: 0; }
.aircraft-review-card > div { display: grid; gap: 4px; }
.aircraft-review-card > div strong { color: var(--navy); font-size: 17px; }
.aircraft-review-card > div span { color: var(--muted); font-size: 11px; }
.aircraft-review-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.aircraft-review-card dl div { padding: 10px; border-radius: 9px; background: var(--surface-soft); }
.aircraft-review-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.aircraft-review-card dd { margin: 4px 0 0; color: var(--navy); font-size: 12px; }
.aircraft-review-actions { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, auto); gap: 9px; align-items: end; }
.aircraft-review-note { display: grid; gap: 4px; color: var(--navy); font-size: 11px; font-weight: 800; }
.aircraft-review-note > span { color: var(--muted); font-size: 9px; font-weight: 500; }
.aircraft-correction-note { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #fff7df; color: #795513; font-size: 12px; }
.aircraft-review-evidence { display: flex !important; align-items: flex-start; flex-direction: column; gap: 5px !important; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; }
.aircraft-review-evidence a { color: var(--cyan-deep); font-size: 12px; font-weight: 800; }
.aircraft-review-source-missing { color: #9a3f31; font-size: 12px; }
.aircraft-review-evidence span { font-size: 12px !important; line-height: 1.5; }
.aircraft-review-assessment { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.aircraft-review-assessment > header { display: flex; justify-content: space-between; gap: 12px; }
.aircraft-review-assessment > header strong { color: var(--navy); font-size: 12px; }
.aircraft-review-assessment > header span { padding: 4px 7px; border-radius: 999px; background: #e7edf0; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.aircraft-review-assessment > header .is-approve { background: var(--lime-soft); color: #587508; }
.aircraft-review-assessment > header .is-needs_changes { background: #fde0db; color: #8b382c; }
.aircraft-review-assessment > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.aircraft-review-assessment article { display: grid; gap: 3px; padding: 8px; border-left: 3px solid #aebbc0; border-radius: 7px; background: white; }
.aircraft-review-assessment article.is-passed { border-left-color: #a8d33a; }
.aircraft-review-assessment article.is-warning { border-left-color: #e8a13b; }
.aircraft-review-assessment article.is-failed { border-left-color: #df7868; }
.aircraft-review-assessment article strong { color: var(--navy); font-size: 10px; }
.aircraft-review-assessment article span,
.aircraft-review-assessment > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.aircraft-change-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aircraft-change-comparison div { display: grid; gap: 4px; padding: 10px; border-radius: 9px; background: var(--surface-soft); }
.aircraft-change-comparison strong { color: var(--navy); font-size: 10px; text-transform: uppercase; }
.aircraft-change-comparison span { color: var(--muted); font-size: 12px; }
.aircraft-change-comparison del { color: #9c5b51; }
.aircraft-change-comparison ins { color: #587508; font-weight: 800; text-decoration: none; }
.aircraft-audit-list { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); list-style: none; }
.aircraft-audit-list li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 13px; background: white; }
.aircraft-audit-list strong { color: var(--navy); font-size: 12px; }
.aircraft-audit-list span { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .aircraft-library-action { align-items: stretch; flex-direction: column; }
  .aircraft-library-action .button { width: 100%; }
  .custom-aircraft-shell, .custom-aircraft-form-shell { width: min(100% - 24px, 940px); margin-top: 20px; }
  .custom-aircraft-heading { align-items: flex-start; flex-direction: column; }
  .sharing-explainer, .custom-aircraft-grid, .custom-aircraft-fields.three-columns, .custom-aircraft-fields.two-columns, .custom-aircraft-check-groups, .custom-aircraft-admin-metrics { grid-template-columns: 1fr; }
  .custom-aircraft-card dl { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .custom-aircraft-card dl div:nth-child(3) { padding-left: 0; border-left: 0; }
  .aircraft-library-section, .custom-aircraft-form { padding: 18px; }
  .aircraft-library-empty { align-items: flex-start; flex-direction: column; }
  .aircraft-library-empty .button { margin-left: 0; }
  .aircraft-review-card dl, .aircraft-review-actions, .aircraft-review-assessment > div, .aircraft-change-comparison { grid-template-columns: 1fr; }
  .aircraft-audit-list li { align-items: flex-start; flex-direction: column; gap: 4px; }
}
