:root {
  --bg: #071211;
  --panel: #0b1917;
  --line: #263d34;
  --green: #bbf475;
  --muted: #83978b;
  --text: #e8ede5;
  --mono: 'Consolas', monospace;
  --display: 'Bahnschrift Condensed', 'Arial Narrow', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 14px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:hover {
  filter: brightness(1.15);
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #071211;
}
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.08;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, #000 4px);
}
header {
  height: 96px;
  padding: 0 4.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #071211d9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  color: var(--green);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -4px;
}
.brand-slash {
  font-weight: 400;
}
.brand > span:last-child {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--text);
  font-weight: 600;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 4px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.live-dot {
  height: 6px;
  width: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px #a6eb6c55;
}
.version {
  border: 1px solid var(--line);
  padding: 7px 10px;
  margin-left: 25px;
}
#hangar {
  max-width: 1600px;
  margin: 0 auto;
  padding: 44px 4.2% 28px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px 52px;
}
.intro {
  grid-column: 1/-1;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  display: flex;
  justify-content: space-between;
}
.intro .eyebrow {
  justify-content: flex-start;
  gap: 28px;
}
.eyebrow span {
  color: var(--muted);
}
h1 {
  font-family: var(--display);
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -1px;
  margin: 24px 0 18px;
  font-weight: 600;
}
h1 em {
  font-style: normal;
  color: var(--green);
}
.intro p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 430px;
  color: #a6b4a8;
}
.intro-stats {
  display: flex;
  gap: 26px;
  margin-top: 25px;
  font: 10px var(--mono);
  color: var(--muted);
  letter-spacing: 1px;
}
.intro-stats b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  margin-right: 5px;
  color: var(--text);
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-heading > span:first-child {
  font: 10px var(--mono);
  color: var(--green);
  border: 1px solid var(--line);
  padding: 6px;
}
.panel-heading h2 {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin: 0;
}
.tag {
  margin-left: auto;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 1px;
}
.missions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.mission-card {
  padding: 13px 5px 10px;
  background: #0b1917cf;
  border: 1px solid var(--line);
  text-align: center;
}
.mission-card .icon {
  display: block;
  font-size: 23px;
  color: #81998a;
  margin-bottom: 9px;
  height: 26px;
}
.mission-card strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.mission-card small {
  display: block;
  font: 10px var(--mono);
  margin-top: 6px;
  color: var(--muted);
}
.mission-card.selected {
  border-color: var(--green);
  background: #b9f4750c;
}
.mission-card.selected .icon,
.mission-card.selected strong {
  color: var(--green);
}
.mission-brief {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 13px 0 25px;
  min-height: 38px;
}
.mission-brief > span {
  font: 10px var(--mono);
  color: var(--green);
  white-space: nowrap;
}
.mission-brief p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.faction-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.faction-tabs button {
  padding: 12px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 1px;
}
.faction-tabs button:first-child {
  padding-left: 0;
}
.faction-tabs button span {
  margin-left: 10px;
  opacity: 0.6;
}
.faction-tabs .active {
  border-bottom-color: var(--green);
  color: var(--green);
}
.aircraft-list {
  max-height: 232px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.aircraft-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 10px;
  background: #091512cc;
  border: 0;
  border-bottom: 1px solid #20372d;
}
.aircraft-row .radio {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #627768;
  flex-shrink: 0;
}
.aircraft-row.selected {
  background: #c0f7890a;
}
.aircraft-row.selected .radio {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px #152017;
}
.aircraft-row strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  display: block;
  line-height: 1.05;
}
.aircraft-row small {
  font: 10px var(--mono);
  color: var(--muted);
  letter-spacing: 0.5px;
}
.rating {
  margin-left: auto;
  font: 10px var(--mono);
  letter-spacing: 0.5px;
  color: #a5aa7b;
}
.rating.good {
  color: var(--green);
}
.rating.bad {
  color: #bd8379;
}
.selection-footer {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.selection-footer small {
  display: block;
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}
.selection-footer strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
}
.primary {
  background: var(--green);
  color: #17230d;
  border: 1px solid var(--green);
  padding: 16px 24px;
  font: 11px var(--mono);
  letter-spacing: 1px;
  font-weight: 600;
}
.primary span {
  margin-left: 25px;
  font-size: 16px;
}
.aircraft-preview {
  border: 1px solid var(--line);
  align-self: start;
  background: radial-gradient(ellipse at 50% 30%, #21422c44, transparent 70%), #0a1714a8;
  position: relative;
}
.preview-top,
.preview-bottom {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
}
.preview-top span:first-child {
  color: var(--green);
}
#aircraft-art {
  display: block;
  width: 100%;
  height: 260px;
}
.preview-bottom {
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.preview-bottom span:first-child {
  font-size: 10px;
  color: var(--text);
}
i {
  color: var(--green);
  font-style: normal;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 23px 20px;
  gap: 22px 10px;
}
.spec-grid small {
  display: block;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}
.spec-grid b {
  font: 24px var(--display);
  font-weight: 500;
}
.spec-grid b span {
  font: 10px var(--mono);
  color: var(--muted);
  margin-left: 4px;
}
.preview-note {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  padding: 22px 20px;
}
.preview-note > span {
  font-size: 26px;
  color: var(--green);
}
.preview-note strong {
  font-size: 11px;
  font-weight: 500;
}
.preview-note p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0;
}
footer {
  border-top: 1px solid var(--line);
  margin: 10px 4.2% 0;
  padding: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 1px;
}
footer i {
  margin-right: 7px;
}
footer button {
  border: 0;
  background: none;
  color: var(--text);
  font: 10px var(--mono);
}
footer button span {
  margin-left: 15px;
}
.flight-top {
  position: absolute;
  top: 112px;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 11px var(--mono);
  color: var(--green);
}
.flight-top button {
  font: 10px var(--mono);
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: #071211c9;
}
.flight-side {
  position: absolute;
  right: 30px;
  top: 180px;
  width: 240px;
  background: #071211a8;
  padding: 12px;
  border: 1px solid #a5df6b25;
}
.flight-side .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}
#radar {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
#target-data {
  font: 10px/1.9 var(--mono);
  color: var(--green);
  min-height: 48px;
}
.weapons-title {
  margin: 18px 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
#systems {
  font: 10px/2 var(--mono);
  color: #a0b29e;
}
#systems div {
  display: flex;
  justify-content: space-between;
}
#systems b {
  color: var(--green);
  font-weight: 400;
}
.flight-bottom {
  position: absolute;
  bottom: 22px;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  color: var(--green);
}
kbd {
  font: 10px var(--mono);
  border: 1px solid #647b5266;
  padding: 2px 4px;
  margin: 0 5px;
  color: #bbed88;
}
#warning {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  font: 700 22px var(--mono);
  color: #ffb16e;
  text-shadow: 0 0 15px #ff6b4444;
}
#flight-toast {
  position: absolute;
  top: 160px;
  left: 4%;
  font: 12px var(--mono);
  color: var(--green);
  max-width: 55%;
  line-height: 1.7;
}
#help {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: #0b1917fa;
  padding: 28px;
  border: 1px solid var(--green);
  z-index: 8;
  font-size: 12px;
  line-height: 2;
}
#help h2 {
  font: 32px var(--display);
  margin-top: 0;
}
#help p {
  color: #aebeae;
}
#help b {
  color: var(--green);
}
#overlay {
  position: fixed;
  inset: 82px 0 0;
  background: #020a09bc;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 7;
}
.modal {
  border: 1px solid var(--line);
  padding: 35px;
  background: var(--bg);
  width: min(500px, 92vw);
}
.modal h2 {
  font: 48px var(--display);
  margin: 20px 0;
}
.modal p {
  color: var(--muted);
  line-height: 1.8;
}
.modal button {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.secondary {
  background: transparent;
  border: 1px solid var(--line);
  padding: 13px;
  font: 11px var(--mono);
}
#overlay-stats {
  font: 12px/2 var(--mono);
  color: var(--green);
  margin: 20px 0;
}
body.flying {
  overflow: hidden;
}
body.flying header {
  height: 82px;
  background: #07121166;
}
body.flying .version {
  display: none;
}
body.flying #world {
  z-index: -1;
}
@media (min-width: 1100px) {
  .intro {
    position: relative;
    min-height: 230px;
  }
  .intro-stats {
    position: absolute;
    right: 0;
    bottom: 22px;
  }
}
@media (max-width: 800px) {
  header {
    height: 76px;
    padding: 0 5%;
  }
  .brand {
    font-size: 26px;
    gap: 15px;
  }
  .brand > span:last-child {
    font-size: 18px;
  }
  .header-right {
    font-size: 10px;
  }
  .version {
    display: none;
  }
  #hangar {
    padding: 30px 5%;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .intro {
    grid-column: 1;
  }
  .intro h1 {
    font-size: 60px;
  }
  .aircraft-preview {
    grid-row: 2;
  }
  .planner {
    grid-row: 3;
  }
  #aircraft-art {
    height: 210px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .flight-side {
    width: 175px;
    right: 12px;
    top: 160px;
  }
  .flight-top {
    top: 92px;
    font-size: 10px;
    gap: 10px;
  }
  .flight-bottom {
    font-size: 10px;
    bottom: 15px;
    gap: 20px;
  }
  .flight-bottom > span:last-child {
    display: none;
  }
  #warning {
    font-size: 16px;
    top: 20%;
  }
}
/* Compact flight instruments for the narrow in-app browser. */
@media (max-width: 1000px) {
  .flight-side {
    width: 130px;
    right: 12px;
    top: 177px;
    padding: 8px;
  }
  .flight-side .eyebrow {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .flight-side .eyebrow span {
    display: none;
  }
  #target-data {
    font-size: 10px;
    line-height: 1.7;
  }
  .flight-top {
    font-size: 10px;
  }
  #flight-toast {
    top: auto;
    bottom: 48px;
    left: 4%;
    font-size: 10px;
    max-width: 55%;
  }
  .weapons-title,
  #systems {
    display: none;
  }
  .flight-bottom {
    font-size: 10px;
  }
}
@media (max-height: 650px) {
  .flight-side {
    top: 165px;
  }
  .weapons-title,
  #systems {
    display: none;
  }
  #flight-toast {
    top: auto;
    bottom: 48px;
    font-size: 10px;
  }
  .flight-top {
    top: 96px;
  }
  #warning {
    top: 124px;
    font-size: 13px;
  }
}
.approaching .flight-side > :not(#landing-guidance) {
  display: none !important;
}
#landing-guidance > strong {
  display: block;
  font: 11px var(--mono);
  color: var(--green);
  margin: 12px 0;
}
#approach-checks > div {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font: 10px/2.3 var(--mono);
  border-bottom: 1px solid #a0c07518;
}
#approach-checks b {
  font-weight: 400;
  text-align: right;
}
.check-ok {
  color: #baf37d;
}
.check-warn {
  color: #ffb16e;
}
#approach-instruction {
  font: 10px/1.7 var(--mono);
  color: var(--text);
}
#landing-guidance > small {
  font: 10px var(--mono);
  color: var(--muted);
}
#approach-button {
  white-space: nowrap;
}
#approach-button[aria-pressed='true'] {
  border-color: var(--green);
  color: var(--green);
}
@media (max-width: 1000px) {
  .approaching .flight-side {
    width: 144px;
    padding: 7px;
  }
  #approach-checks > div {
    display: block;
    font-size: 10px;
    line-height: 1.5;
    padding: 3px 0;
  }
  #approach-checks b {
    float: right;
  }
  #approach-checks > div:after {
    content: '';
    display: block;
    clear: both;
  }
  #landing-guidance > strong {
    font-size: 10px;
    margin: 9px 0;
  }
  #approach-instruction {
    font-size: 10px;
    margin: 8px 0;
  }
  .approaching .flight-side {
    top: 137px;
  }
  #landing-guidance > small {
    font-size: 10px;
  }
  .flight-top {
    gap: 8px;
  }
  .flight-top button {
    font-size: 10px;
    padding: 7px;
  }
  .flight-top kbd {
    display: none;
  }
}
/* Flight phase and fuel stay visible in both radar and landing views. */
body.flying .header-right {
  display: none;
}
#fuel-status {
  min-width: 180px;
  color: var(--green);
  font-family: var(--mono);
}
#fuel-status > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
#fuel-label {
  font-size: 10px;
  letter-spacing: 1px;
}
#fuel-value {
  font-size: 12px;
  white-space: nowrap;
}
#fuel-meter {
  height: 4px;
  margin-top: 8px;
  background: #48634455;
}
#fuel-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: currentColor;
}
#fuel-status[data-level='low'] {
  color: #f5c47c;
}
#fuel-status[data-level='critical'],
#fuel-status[data-level='empty'] {
  color: #ff8675;
}
.phase-status {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 350px;
  padding: 9px 14px;
  border-left: 2px solid var(--green);
  background: #071211bd;
}
.phase-status small {
  font: 10px var(--mono);
  letter-spacing: 1.4px;
  color: var(--muted);
}
#mission-phase {
  font: 600 12px var(--mono);
  line-height: 1.4;
  color: var(--green);
}
#phase-hint {
  font: 10px/1.5 var(--mono);
  color: #a5b99b;
}
.flight-top {
  top: 94px;
  gap: 14px;
  align-items: flex-start;
}
.flight-top > span {
  padding-top: 12px;
}
.flight-top > button {
  margin-top: 9px;
}
@media (max-width: 1000px) {
  .phase-status {
    max-width: 260px;
    padding: 7px 9px;
  }
  #mission-phase {
    font-size: 10px;
  }
  #phase-hint {
    font-size: 10px;
  }
  .flight-top > span {
    max-width: 135px;
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  #fuel-status {
    min-width: 140px;
  }
  #fuel-status > div:first-child {
    display: block;
    text-align: right;
  }
  #fuel-label {
    display: block;
    font-size: 10px;
    margin-bottom: 3px;
  }
  #fuel-value {
    font-size: 11px;
  }
  .flight-top {
    left: 3%;
    right: 3%;
    gap: 6px;
  }
  .flight-top > span {
    max-width: 90px;
    font-size: 10px;
  }
  .phase-status {
    max-width: 220px;
    flex: 1;
  }
  #mission-phase {
    font-size: 10px;
  }
  #phase-hint {
    display: none;
  }
  .phase-status small {
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  .flight-top > button {
    font-size: 10px;
    padding: 7px 5px;
  }
}
@media (max-height: 650px) {
  .phase-status {
    padding: 5px 9px;
  }
  #phase-hint {
    display: none;
  }
  .flight-top {
    top: 88px;
  }
}
@media (max-width: 450px) {
  body.flying .brand {
    gap: 8px;
    font-size: 22px;
  }
  body.flying .brand > span:last-child {
    font-size: 14px;
    letter-spacing: 2px;
  }
  body.flying .brand small {
    display: none;
  }
  #fuel-status {
    min-width: 125px;
  }
}
#targeting-panel {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 64vw);
  padding: 9px 12px;
  border: 1px solid #9ec86d66;
  background: #071211e8;
  color: var(--green);
  font-family: var(--mono);
}
.targeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#lock-label {
  font-size: 10px;
  line-height: 1.5;
}
#lock-button {
  flex-shrink: 0;
  background: #192c18;
  border: 1px solid #6c9756;
  padding: 6px 8px;
  font: 10px var(--mono);
  color: var(--green);
}
#lock-progress {
  height: 3px;
  background: #385331;
  margin-top: 7px;
}
#lock-fill {
  display: block;
  width: 0;
  height: 100%;
  background: currentColor;
}
#lock-hint {
  margin: 6px 0 0;
  font: 10px/1.6 var(--mono);
  color: #b9c5b0;
}
#targeting-panel[data-state='outside'],
#targeting-panel[data-state='range'] {
  border-color: #bc9566;
  color: #efbd84;
}
.approaching #targeting-panel {
  display: none;
}
@media (max-width: 650px) {
  #targeting-panel {
    width: 70vw;
    bottom: 61px;
    padding: 6px 9px;
  }
  #lock-label {
    font-size: 10px;
  }
  #lock-button {
    font-size: 10px;
    padding: 4px;
  }
  #lock-button kbd {
    display: none;
  }
  #lock-hint {
    font-size: 10px;
  }
}
@media (max-height: 650px) {
  #targeting-panel {
    bottom: 55px;
  }
  #lock-hint {
    font-size: 10px;
    line-height: 1.3;
  }
}
/* Cockpit instruments and optional, phase-specific quick reference. */
body.flying .header-right {
  display: flex;
}
#fuel-status {
  position: absolute;
  left: 4%;
  bottom: 66px;
  width: 104px;
  min-width: 0;
  padding: 8px 6px 6px;
  text-align: center;
  border: 1px solid #8db77844;
  background: #0712119c;
  color: #baf37d;
  font-family: var(--mono);
}
#fuel-label {
  display: block !important;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin: 0;
}
#fuel-status svg {
  display: block;
  width: 100%;
  height: 62px;
  margin-top: 3px;
  overflow: visible;
}
.fuel-scale {
  fill: none;
  stroke: #617c4a66;
  stroke-width: 5;
}
#fuel-fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  background: none;
  width: auto;
  height: auto;
}
.fuel-ticks {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
#fuel-status svg text {
  font: 10px var(--mono);
  fill: currentColor;
}
#fuel-value {
  display: block;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  font: 19px var(--mono);
}
#fuel-status > small {
  display: block;
  font: 10px var(--mono);
  letter-spacing: 1px;
  margin-top: 2px;
}
#fuel-meter {
  height: 0;
  margin: 0;
  background: none;
}
.phase-status {
  border: 0;
  background: none;
  padding: 10px 0;
  max-width: 350px;
}
.phase-status small,
#phase-hint,
#lock-hint {
  display: none !important;
}
#mission-phase {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
}
#targeting-panel {
  padding: 6px 9px;
  width: min(390px, 58vw);
  border-color: #8cae6655;
  background: #071211b8;
}
#lock-label {
  font-size: 10px;
}
#lock-button {
  font-size: 10px;
  padding: 4px 6px;
}
#lock-progress {
  margin-top: 5px;
  height: 2px;
}
#phase-guide {
  position: absolute;
  top: 96px;
  right: 30px;
  width: 240px;
  max-height: 210px;
  overflow: auto;
  border: 1px solid #a1c37c55;
  background: #091611ed;
  color: #b8d696;
  padding: 9px 12px;
  font-family: var(--mono);
  scrollbar-width: thin;
  scrollbar-color: #385331 transparent;
}
.guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
#close-guide {
  background: none;
  border: 0;
  color: #bfd49f;
  font: 20px/1 var(--mono);
  padding: 0 0 0 12px;
}
#guide-title {
  display: block;
  font: 10px/1.5 var(--mono);
  color: var(--green);
  margin: 6px 0 10px;
}
#guide-steps {
  list-style: none;
  counter-reset: guide;
  margin: 0;
  padding: 0;
}
#guide-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  font: 10px/1.55 var(--mono);
  padding: 6px 0;
  color: #83967a;
  counter-increment: guide;
  border-top: 1px solid #6c8c4322;
}
#guide-steps li:before {
  content: counter(guide, decimal-leading-zero);
  font-size: 10px;
  opacity: 0.6;
}
#guide-steps kbd {
  font-size: 10px;
  white-space: nowrap;
  padding: 2px 4px;
  margin: 0;
  border-color: #52644066;
  color: inherit;
}
#guide-steps .current {
  color: #dcf6b5;
}
#guide-steps .done {
  color: #738b64;
}
#guide-steps i {
  font-size: 10px;
  margin-left: auto;
  color: #99c574;
}
#open-guide {
  position: absolute;
  top: 153px;
  right: 30px;
  width: 24px;
  height: 24px;
  border: 1px solid #668348;
  background: #091611cc;
  color: var(--green);
  font: 12px var(--mono);
}
body.guide-open .flight-side {
  top: 320px;
  max-height: calc(100vh - 365px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #385331 transparent;
}
body.guide-open #systems,
body.guide-open .weapons-title {
  display: none;
}
@media (max-width: 1000px) {
  #phase-guide {
    right: 12px;
    top: 144px;
    width: 190px;
    max-height: 188px;
    padding: 8px 10px;
  }
  #guide-title {
    font-size: 10px;
    margin: 5px 0 8px;
  }
  #guide-steps li {
    font-size: 10px;
    padding: 5px 0;
  }
  #guide-steps kbd {
    font-size: 10px;
  }
  #open-guide {
    right: 12px;
    top: 140px;
  }
  body.guide-open .flight-side,
  body.guide-open.approaching .flight-side {
    top: 344px;
    max-height: calc(100vh - 389px);
  }
  #mission-phase {
    font-size: 10px;
  }
  #fuel-status {
    width: 90px;
  }
  #fuel-status svg {
    height: 52px;
  }
  #fuel-value {
    top: 43px;
    font-size: 17px;
  }
}
@media (max-width: 650px) {
  #fuel-status {
    bottom: 60px;
    width: 78px;
    min-width: 0;
    padding: 6px 4px;
  }
  #fuel-label {
    font-size: 10px;
  }
  #fuel-status svg {
    height: 45px;
  }
  #fuel-value {
    top: 36px;
    font-size: 15px;
  }
  #fuel-status > small {
    font-size: 10px;
  }
  #phase-guide {
    width: 174px;
  }
  #guide-steps li {
    font-size: 10px;
  }
  #mission-phase {
    font-size: 10px;
  }
  #targeting-panel {
    width: 55vw;
    left: 55%;
  }
  #lock-label {
    font-size: 10px;
  }
  #lock-button {
    font-size: 10px;
  }
}
@media (min-width: 1001px) {
  body.guide-open .flight-top {
    right: 290px;
  }
}
#phase-guide {
  z-index: 2;
}
#open-guide {
  z-index: 2;
}

body.approaching #phase-guide,
body.approaching #open-guide {
  display: none !important;
}
body.approaching .flight-side,
body.guide-open.approaching .flight-side {
  display: flex;
  flex-direction: column;
  top: 150px;
  width: 240px;
  max-height: calc(100vh - 210px);
  overflow: auto;
}
body.approaching .flight-side > #map-heading {
  display: flex !important;
  justify-content: space-between;
  order: 0;
}
body.approaching .flight-side > #radar {
  display: block !important;
  order: 1;
  width: 145px;
  align-self: center;
  margin: 6px 0;
}
body.approaching #landing-guidance {
  order: 2;
}
body.approaching #landing-guidance > strong {
  margin: 7px 0;
}
#map-heading {
  display: flex;
  justify-content: space-between;
}
#damage-status {
  position: absolute;
  left: 30px;
  bottom: 175px;
  width: 216px;
  max-height: 130px;
  overflow: auto;
  padding: 10px 12px;
  background: #211a12ed;
  border: 1px solid #c3985855;
  color: #edc788;
  font: 10px/1.6 var(--mono);
  z-index: 3;
}
#damage-title,
#damage-integrity {
  display: block;
  font-size: 10px;
}
#damage-integrity {
  color: #aeaa91;
  font-size: 10px;
  margin: 4px 0;
}
.damage-track {
  height: 3px;
  background: #483727;
}
.damage-track span {
  display: block;
  height: 100%;
  background: #d9aa61;
}
#damage-faults {
  margin: 6px 0 0;
  font-size: 10px;
}
#damage-status[data-stage='critical'] {
  border-color: #ee815f;
  color: #ffb18d;
}
.wreck-view #stores-display,
.wreck-view #phase-guide,
.wreck-view #open-guide,
.wreck-view #fuel-status,
.wreck-view .flight-side,
.wreck-view #targeting-panel,
.wreck-view #flight-toast,
.wreck-view #approach-button {
  display: none !important;
}
.wreck-view #warning {
  top: 145px;
  font: 12px var(--mono);
  color: #f4bd8e;
  text-align: center;
  max-width: 75%;
}
.wreck-view .flight-top {
  right: 30px !important;
}
@media (max-width: 1000px) {
  #damage-status {
    left: 12px;
    width: 190px;
    padding: 8px;
  }
}
@media (max-width: 650px) {
  #damage-status {
    width: 144px;
    bottom: 155px;
    max-height: 100px;
    font-size: 10px;
  }
}
#hangar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  margin-bottom: 12px;
}
#hangar-tabs button {
  flex: 1 1 30%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  font: 10px/1.5 var(--mono);
  text-align: left;
  text-transform: uppercase;
  background: #091712;
  color: var(--muted);
}
#hangar-tabs button.active {
  color: var(--green);
  background: #baf47512;
  border-color: #baf47588;
}
#hangar-tabs span {
  font-size: 10px;
  opacity: 0.65;
}
.store.internal rect {
  stroke-dasharray: 3 1;
}
#stores-display {
  position: absolute;
  top: 153px;
  left: 30px;
  width: 216px;
  padding: 10px 12px;
  border: 1px solid #6b8b4544;
  background: #081610d9;
  color: var(--green);
  z-index: 2;
}
.stores-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 10px var(--mono);
  letter-spacing: 1px;
}
.stores-heading small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
}
#stores-display svg {
  display: block;
  width: 100%;
  height: 116px;
}
.stores-airframe {
  fill: none;
  stroke: #749465;
  stroke-width: 0.65;
  opacity: 0.5;
}
.stores-silhouette {
  fill: #243d27;
  stroke: #8baa72;
  stroke-width: 0.7;
  fill-rule: nonzero;
}
.store {
  stroke: #667d54;
  fill: #17291a;
  stroke-width: 1.2;
}
.store.loaded {
  fill: #729553;
  stroke: #94bb71;
}
.store.selected.loaded {
  fill: #e7ffb6;
  stroke: #f0ffd2;
  filter: drop-shadow(0 0 2px #cdfc8b);
}
.store.empty {
  fill: none;
  stroke: #57614e;
  stroke-dasharray: 2 2;
  opacity: 0.45;
}
.store-options {
  display: grid;
  gap: 3px;
}
.store-option {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: #93ac80;
  padding: 4px 2px;
  text-align: left;
  font: 10px var(--mono);
  cursor: pointer;
}
.store-option span {
  flex: 1;
}
.store-option b {
  font-weight: 400;
}
.store-option kbd {
  font-size: 10px;
  margin: 0;
  padding: 1px 4px;
}
.store-option.selected {
  color: #e5ffbd;
  background: #b9ed7520;
  border-color: #a8d77566;
}
.store-option:disabled {
  opacity: 0.35;
  cursor: default;
}
.store-option:focus-visible {
  outline: 1px solid #c7ed92;
  outline-offset: 1px;
}
.planner-armament {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font: 10px/1.7 var(--mono);
  color: var(--muted);
}
.planner-armament strong {
  color: var(--green);
}
.planner-armament p {
  margin: 5px 0 0;
}
.tutorial-link {
  color: #ccf2a4;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 1000px) {
  #stores-display {
    left: 12px;
    top: 144px;
    width: 190px;
    padding: 8px;
  }
  #stores-display svg {
    height: 100px;
  }
  .store-option {
    font-size: 10px;
    gap: 4px;
  }
}
@media (max-width: 650px) {
  #stores-display {
    width: 144px;
    top: 184px;
    padding: 6px;
  }
  #stores-display svg {
    height: 75px;
  }
  .stores-heading {
    font-size: 10px;
    letter-spacing: 0;
  }
  .stores-heading small {
    font-size: 10px;
  }
  .store-option {
    font-size: 10px;
    gap: 3px;
    padding: 3px 0;
  }
  .store-option kbd {
    font-size: 10px;
    padding: 1px 2px;
  }
}

body.approaching #approach-checks > div {
  font-size: 10px;
  line-height: 1.5;
  padding: 2px 0;
}
body.approaching #approach-instruction {
  font-size: 10px;
  line-height: 1.5;
  margin: 7px 0;
}
@media (max-height: 650px) {
  body.approaching .flight-side > #radar {
    width: 100px;
  }
  body.approaching #approach-checks > div {
    font-size: 10px;
    line-height: 1.35;
    padding: 1px 0;
  }
  body.approaching #approach-instruction {
    font-size: 10px;
    margin: 5px 0;
  }
}

.mission-empty {
  min-height: 103px;
  background: #0b191744;
  border-style: dashed;
  opacity: 0.4;
  pointer-events: none;
}
.mission-card {
  position: relative;
}
.mission-threat-icons {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 4px;
}
.threat-icon {
  display: inline-flex;
  width: 13px;
  height: 13px;
  color: #d3b28b;
}
.threat-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mission-card.selected .threat-icon {
  color: #c5e99f;
}
#mission-threats {
  display: block;
  margin-top: 7px;
  font: 10px/1.5 var(--mono);
  color: #d3b28b;
}
.part-damage {
  fill-opacity: 0.65;
  stroke-opacity: 0.85;
  stroke-width: 0.5;
}
.stores-health {
  display: flex;
  justify-content: space-between;
  font: 10px/1.6 var(--mono);
  margin: 0 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #7d9b5044;
  color: #94aa83;
}
.stores-health b {
  font-size: 11px;
}
.stores-heading {
  font-size: 10px;
  letter-spacing: 0;
}
#landing-attitude {
  position: absolute;
  left: 30px;
  bottom: 176px;
  width: 216px;
  padding: 9px 12px;
  background: #081610ed;
  border: 1px solid #7d9b5055;
  color: #baf37d;
  font: 10px/1.4 var(--mono);
  z-index: 2;
}
#landing-attitude > strong {
  font-size: 10px;
  letter-spacing: 1px;
}
.landing-angles,
.landing-pitch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-angles svg {
  width: 66px;
  height: 62px;
}
.landing-angles b,
.landing-angles small,
.landing-pitch small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}
.landing-angles span {
  font-size: 10px;
  color: #96ad84;
}
.landing-runway {
  fill: none;
  stroke: #829579;
  stroke-width: 1;
}
.landing-pitch {
  border-top: 1px solid #7d9b5033;
  padding-top: 3px;
}
.landing-pitch svg {
  width: 82px;
  height: 38px;
}
.landing-pitch b {
  font-size: 11px;
}
.landing-pitch small {
  font-size: 10px;
}
.landing-bank {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding-top: 4px;
  font-size: 10px;
}
body.approaching #stores-display svg {
  height: 70px;
}
body.approaching #damage-status,
.wreck-view #landing-attitude {
  display: none !important;
}
@media (max-width: 1000px) {
  #landing-attitude {
    left: 12px;
    width: 190px;
    padding: 8px;
  }
}
@media (max-height: 700px) {
  #landing-attitude {
    bottom: 164px;
    padding: 6px 9px;
  }
  .landing-angles svg {
    height: 46px;
  }
  .landing-pitch svg {
    height: 30px;
  }
  body.approaching #stores-display svg {
    height: 48px;
  }
}
@media (max-width: 650px) {
  #landing-attitude {
    width: 144px;
    padding: 6px;
    bottom: 154px;
  }
  .landing-angles svg {
    width: 48px;
  }
  .landing-angles b,
  .landing-angles small {
    font-size: 10px;
  }
  .landing-pitch svg {
    width: 52px;
  }
  .landing-pitch small,
  .landing-bank {
    font-size: 10px;
  }
}
#weapon-solution {
  display: block;
  margin: 5px 0 0;
  font: 10px/1.5 var(--mono);
  color: #a3bb89;
}
#targeting-panel[data-solution='range'],
#targeting-panel[data-solution='near'],
#targeting-panel[data-solution='angle'],
#targeting-panel[data-solution='terrain'],
#targeting-panel[data-solution='marginal'],
#targeting-panel[data-solution='aim'] {
  border-color: #bc956677;
  color: #efbd84;
}
#targeting-panel[data-solution='range'] #weapon-solution,
#targeting-panel[data-solution='marginal'] #weapon-solution {
  color: #d5b78e;
}
@media (max-width: 650px) {
  #weapon-solution {
    font-size: 10px;
  }
}
#flight-config {
  position: absolute;
  left: 30px;
  top: 124px;
  width: 216px;
  font: 10px/1.5 var(--mono);
  color: #9ab482;
  z-index: 3;
}
#flight-config > div {
  display: flex;
  justify-content: space-between;
}
#flight-config button {
  border: 0;
  background: none;
  color: #bddc9d;
  font: 10px/1.5 var(--mono);
  padding: 0;
  cursor: pointer;
}
#flight-config button[data-moving='true'] {
  color: #edc78a;
}
#flight-config > button {
  display: block;
  margin-top: 2px;
}
.wreck-view #flight-config {
  display: none;
}
@media (max-width: 1000px) {
  #flight-config {
    left: 12px;
    top: 117px;
    width: 190px;
  }
  #flight-config,
  #flight-config button {
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  #flight-config {
    top: 155px;
    width: 144px;
  }
  #flight-config,
  #flight-config button {
    font-size: 10px;
  }
}
.landing-practice #targeting-panel {
  display: none;
}
.landing-practice .store-options {
  font: 10px var(--mono);
  color: #8da782;
  padding: 5px 0;
}

.target-preview {
  border: 1px solid var(--line);
  background: #0a1714a8;
  margin: 16px 0 24px;
}
.target-preview > div {
  padding: 14px 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.target-preview strong {
  font: 14px var(--display);
  color: var(--text);
}
.target-preview small {
  font: 10px var(--mono);
  color: var(--muted);
}
#target-preview-art {
  display: block;
  width: 100%;
  height: 190px;
}
.navigation-jammed #landing-attitude,
.navigation-jammed #landing-guidance {
  display: none !important;
}
.navigation-jammed #map-heading {
  color: #f4c58b;
}

.target-preview .target-models {
  display: flex;
  padding: 0;
  gap: 0;
  align-items: stretch;
}
.target-models > #target-preview-art {
  flex: 1;
  min-width: 0;
}
.target-models figure {
  margin: 0;
  width: 38%;
  border-left: 1px solid var(--line);
}
#jammer-preview-art {
  display: block;
  width: 100%;
  height: 165px;
}
.target-models figcaption {
  font: 10px var(--mono);
  text-align: center;
  color: #e7c994;
  padding: 0 6px 12px;
}

.brand > span:last-child {
  letter-spacing: 1.2px;
}
@media (max-width: 600px) {
  .brand {
    font-size: 22px;
    gap: 10px;
  }
  .brand > span:last-child {
    font-size: 16px;
    letter-spacing: 0.3px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .header-right {
    display: none;
  }
}

/* Keep transient flight messages above targeting, away from the stores panel. */
#combat-messages {
  position: absolute;
  left: 50%;
  bottom: 65px;
  transform: translateX(-50%);
  width: min(440px, 58vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}
#combat-messages #targeting-panel {
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  pointer-events: auto;
}
#combat-messages #flight-toast {
  position: static;
  inset: auto;
  transform: none;
  max-width: none;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #bdce9366;
  background: #071211f2;
  color: #deedb7;
  font: 11px/1.5 var(--mono);
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px #000;
}
#combat-messages #flight-toast:empty {
  display: none;
}
@media (max-height: 650px) {
  #combat-messages {
    bottom: 55px;
    gap: 6px;
  }
  #combat-messages #flight-toast {
    padding: 6px 8px;
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  #combat-messages {
    width: 55vw;
    left: 55%;
    bottom: 61px;
  }
  #combat-messages #flight-toast {
    font-size: 10px;
  }
}

/* Composed mission planner: mission left, pilot aircraft right. */
#hangar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.planner,
.aircraft-config {
  min-width: 0;
}
.missions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mission-card {
  min-height: 100px;
  padding: 15px 8px 12px;
}
.mission-card small {
  margin: 0 0 6px;
  font-size: 10px;
  color: #a7b293;
}
.mission-card .icon {
  height: 22px;
  font-size: 20px;
  margin-bottom: 5px;
}
.mission-card strong {
  font-size: 17px;
}
.mission-brief {
  display: block;
  margin: 20px 0;
  padding: 18px;
  background: #0b1917;
  border: 1px solid var(--line);
}
.mission-brief h3 {
  font: 26px var(--display);
  margin: 10px 0;
}
.mission-brief p {
  font-size: 12px;
  line-height: 1.8;
}
.mission-brief h4,
.recon-section h4 {
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--green);
  margin: 18px 0 8px;
}
.mission-brief ol,
.mission-brief ul {
  padding-left: 20px;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #bac7b7;
}
.mission-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.unit-preview {
  margin: 0;
  border: 1px solid var(--line);
  background: #0a1714;
}
.unit-preview canvas {
  display: block;
  width: 100%;
  height: 150px;
}
.unit-preview figcaption {
  padding: 10px 12px;
}
.unit-preview strong {
  display: block;
  font: 15px var(--display);
}
.unit-preview small {
  display: block;
  font: 10px var(--mono);
  color: var(--muted);
  margin-top: 5px;
}
#mission-allies {
  font-size: 12px;
  line-height: 1.7;
  color: #8fc2d6;
}
#mission-allies small {
  font-size: 10px;
  color: var(--muted);
}
.empty-recon {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  grid-column: 1/-1;
}
.aircraft-config .aircraft-preview {
  margin-top: 20px;
}
.aircraft-config #aircraft-art {
  height: 240px;
}
.unit-library-link {
  margin-left: auto;
  font: 10px var(--mono);
  color: var(--green);
  text-underline-offset: 4px;
}
.selection-footer {
  gap: 12px;
}
.selection-footer .primary {
  padding: 16px;
}
#mission-objectives {
  font: 10px/1.6 var(--mono);
  color: #c1c7aa;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 5px;
}
#mission-objectives:empty {
  display: none;
}
#mission-objectives p {
  margin: 3px 0;
}
#mission-objectives .done {
  color: #92bd71;
}
@media (max-width: 800px) {
  #hangar {
    grid-template-columns: minmax(0, 1fr);
  }
  .planner,
  .aircraft-config {
    grid-row: auto;
  }
  .unit-preview canvas {
    height: 180px;
  }
  .aircraft-config #aircraft-art {
    height: 240px;
  }
}

.flight-log-tools {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.flight-log-tools a {
  color: var(--green);
  font: 10px var(--mono);
}
.flight-log-tools small {
  width: 100%;
  font: 10px var(--mono);
  color: var(--muted);
}
.flight-log-tools button {
  margin: 0 !important;
  font-size: 10px !important;
  padding: 10px !important;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}

#landing-route-button {
  color: #c1b8ff;
  border-color: #9b88de88;
  font: 10px var(--mono);
  background: #19172b99;
}
#landing-route-button[aria-pressed='false'] {
  opacity: 0.65;
}
@media (max-width: 1000px) {
  #landing-route-button {
    font-size: 10px;
    padding: 6px;
  }
}

#loadout-editor {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
}
#loadout-editor h3 {
  font: 12px var(--mono);
  color: var(--green);
}
#loadout-stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
#loadout-stations label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
#loadout-stations select {
  width: 100%;
  background: #10231b;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px;
  font: 10px var(--mono);
}
#loadout-capacity {
  color: var(--green);
}
#loadout-errors {
  color: #ffb16e;
}
#loadout-reset {
  margin-top: 10px;
}
.modal {
  max-height: calc(100vh - 110px);
  overflow: auto;
}
#mission-debrief {
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
#mission-debrief details {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
#mission-debrief summary {
  cursor: pointer;
  font: 11px/1.6 var(--mono);
}
#mission-debrief p,
#mission-debrief li {
  font-size: 12px;
  line-height: 1.6;
}
#mission-debrief ul {
  padding-left: 20px;
}
.debrief-status {
  color: var(--green);
}
@media (max-width: 500px) {
  #loadout-stations {
    grid-template-columns: 1fr;
  }
}

.debrief-status.failed {
  color: #ff9e80;
}
.debrief-status.attention,
.debrief-status.incomplete {
  color: #edc17a;
}
.debrief-status.unknown {
  color: var(--muted);
}

#departure-planner {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 12px;
}
#departure-planner h3 {
  font: 12px var(--mono);
  color: var(--green);
}
#start-fuel-value {
  display: block;
  color: var(--green);
  margin: 5px 0;
}
#start-fuel {
  width: 100%;
  accent-color: var(--green);
  margin: 8px 0 14px;
}
#departure-mass {
  margin: 0;
}
#departure-mass > div,
.departure-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
#departure-mass dd {
  margin: 0;
  color: var(--text);
  white-space: nowrap;
}
.departure-total {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
  align-items: center;
}
.departure-total strong {
  font: 23px var(--display);
  white-space: nowrap;
}
#departure-delta {
  color: var(--green);
}
#departure-warning {
  color: #ffb16e;
}
.departure-note {
  font: 10px/1.7 var(--mono);
}

#missions {
  display: block;
}
.mission-group {
  margin: 0 0 18px;
}
.mission-group > h3 {
  font: 600 15px var(--mono);
  color: var(--green, #baf37d);
  margin: 0 0 10px;
}
.mission-group-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mission-group-cards .mission-card strong {
  font-size: 13px;
}

.surface-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: #b8d5a4;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.surface-setting select {
  max-width: 65%;
  padding: 9px;
  background: #10211c;
  color: #d5e9c8;
  border: 1px solid #54744b;
  font: inherit;
}
.surface-note {
  display: block;
  color: #9bada0;
  margin: 0 0 14px;
  font-size: 12px;
}
