.briefing-image { position: relative; display: grid; min-width: 0; margin: 0; background: #07121b; }
.briefing-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.briefing-image figcaption {
  position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: .32rem .8rem; padding: .65rem .8rem; color: #edf4fa; background: #08131bea;
}
.briefing-image figcaption a { color: #b7d0dd; font: .72rem/1.35 "IBM Plex Mono", Consolas, monospace; }

.mission-entry {
  display: grid; grid-template-columns: minmax(270px, 1fr) minmax(0, 1.65fr); max-width: 1330px; margin: clamp(.2rem, 4vh, 3rem) auto;
  border: 1px solid #3a5668; background: #101d29; box-shadow: 0 18px 70px #0005;
}
.entry-checkin { min-width: 0; align-self: center; padding: clamp(1.05rem, 3.4vw, 3.4rem); }
.entry-checkin > .label { color: #9bddee; }
.entry-checkin h1 { margin: .45rem 0 .7rem; font-size: clamp(2.5rem, 5.4vw, 5.2rem); letter-spacing: -.055em; line-height: .95; }
.entry-checkin > p:not(.label, .error) { max-width: 30ch; color: #c5d6e2; font-size: clamp(.95rem, 1.55vw, 1.19rem); line-height: 1.5; }
.entry-checkin form { max-width: 30rem; margin: 1.5rem 0 .75rem; gap: .55rem; }
.entry-checkin input { width: 100%; letter-spacing: .12em; text-transform: uppercase; font: 600 1.1rem "IBM Plex Mono", Consolas, monospace; }
.entry-checkin #code-help { color: #b2c4d2; margin: 0 0 .3rem; font-size: .85rem; }
.entry-checkin .error:empty { display: none; }
.entry-checkin > a { display: inline-block; padding: .35rem 0; }
.mission-entry > .briefing-image { min-height: 390px; border-left: 1px solid #3a5668; }
.entry-timeline { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid #3a5668; }
.entry-timeline li { display: grid; align-content: start; gap: .22rem; padding: .85rem 1rem; border-right: 1px solid #314553; border-top: 3px solid transparent; }
.entry-timeline li:last-child { border-right: 0; }
.entry-timeline li[aria-current] { border-top-color: var(--cyan); background: #172f40; }
.entry-timeline span { color: #b6c7d4; font-size: .84rem; }

.control-wall { --wall-rule: #365363; --wall-mono: "IBM Plex Mono", Consolas, monospace; }
.control-wall .wall-clockbar { background: #0f1e29; }
.wall-clockbar .wall-title span { color: #9ddcef; }
.control-wall .wall-clockbar h1 { color: #f2f8fb; font-size: clamp(1.38rem, 2.25vw, 3rem); }
.control-wall .wall-clockbar #wall-utc { color: #a8e4f5; }
.control-wall .wall-objective { padding: .72rem .85rem; border-left-color: var(--cyan); background: #102635; }
.wall-objective .wall-status-flag { padding: .26em .43em; border: 1px solid #5796a9; color: #b6e9f7; letter-spacing: .06em; }
.wall-objective[data-status="hold"] { border-left-color: var(--amber); background: #34291d; }
.wall-objective:is([data-status="hold"], [data-status="paused"]) .wall-status-flag { border-color: #a98246; color: var(--amber); }
.wall-objective[data-status="debrief"] .wall-status-flag { border-color: #7792a4; color: #deedf5; }
.control-wall .wall-monitors { grid-template-columns: minmax(185px, .95fr) minmax(0, 2.15fr) minmax(215px, 1.1fr); }
.control-wall .wall-monitor { background: #0d1923; border-color: var(--wall-rule); }
.control-wall .wall-monitor > h2 { padding: .58rem .75rem; border-bottom-color: var(--wall-rule); background: #132a3a; color: #e4f3fa; }
.wall-watch-overview { display: grid; gap: .42rem; }
.wall-watch-overview > div { display: grid; gap: .3rem; }
.wall-watch-overview span { color: #bad2df; font: clamp(.67rem, .88vw, 1rem) var(--wall-mono); }
.wall-watch-overview strong { color: #a8e9f9; font: 650 clamp(1.6rem, 3vw, 3.3rem)/1 var(--wall-mono); }
.wall-watch-overview strong small { color: #bccbd4; font-size: .51em; }
.wall-watch-overview p, .wall-watch .wall-status p { margin: 0; color: #c2d3de; }
.wall-watches { display: grid; gap: clamp(.68rem, 1.2vw, 1.2rem); }
.wall-watch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .38rem .25rem; align-items: baseline; }
.wall-watch-row span { font-size: clamp(.82rem, 1.1vw, 1.35rem); }
.wall-watch-row strong { color: #bbebf8; font: 650 clamp(.75rem, 1.06vw, 1.28rem) var(--wall-mono); white-space: nowrap; }
.wall-watch-row progress { grid-column: 1 / -1; width: 100%; height: .35rem; border: 0; accent-color: #88d6ed; background: #294151; }
.wall-watch-row progress::-webkit-progress-bar { background: #294151; }
.wall-watch-row progress::-webkit-progress-value { background: #88d6ed; }
.wall-reference .briefing-image { height: clamp(204px, 33vh, 430px); }
.wall-reference:has(.wall-orbit) .briefing-image { height: clamp(160px, 23vh, 310px); }
.wall-reference .briefing-image[data-image="jezero.jpg"] img { object-fit: contain; }
.wall-reference .briefing-image[data-image="mars-horizon-01.jpg"] img { object-fit: contain; }
.wall-reference .outbound-flight { border: 0; padding: .7rem; }
.wall-reference .flight-steps { font-size: clamp(.68rem, .9vw, 1.1rem); }
.wall-instruction p { margin: 0; color: #e3eef4; font-size: clamp(.94rem, 1.3vw, 1.5rem); }
.wall-operations .wall-log { min-height: 0; }
.wall-operations .wall-log li { grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr); }
.wall-operations .wall-links th, .wall-operations .wall-links td { padding-inline: .22rem; }
.wall-telemetry-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.wall-telemetry-body > :first-child { border-bottom: 0; border-right: 1px solid var(--wall-rule); }
.control-wall .board-phases > [data-past] { border-color: #5b8483; color: #c1d8d5; }
.control-wall .board-phases > [aria-current] { border-color: var(--cyan); color: #eef9fd; }
.wall-coaching:empty, .control-wall .error:empty { display: none; }
.wall-coaching { padding: .65rem; }

@media (max-width: 850px) {
  .control-wall .wall-monitors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-reference { grid-row: 1; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .mission-entry { grid-template-columns: 1fr; }
  .mission-entry > .briefing-image { min-height: 0; height: 240px; border-left: 0; border-top: 1px solid #3a5668; }
  .entry-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-timeline li { padding: .6rem; }
  .control-wall .wall-monitors, .wall-telemetry-body { grid-template-columns: 1fr; }
  .wall-telemetry-body > :first-child { border-bottom: 1px solid var(--wall-rule); border-right: 0; }
}
