* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #0d1217;
  color: #e4eaf0;
  font:
    15px system-ui,
    sans-serif;
  --accent: #a5def0;
  --line: #303b45;
  --panel: #182027;
  --muted: #a4b2bd;
}
body.dark {
  --accent: #ffae92;
  --line: #493937;
  --panel: #251e20;
  background: #171315;
}
header {
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px max(4vw, 18px);
  background: #13191e;
}
.brand,
.topinfo,
.sectiontitle,
.headrow,
.control,
.readrow,
.meta {
  display: flex;
  align-items: center;
}
.brand {
  gap: 11px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 2.5px;
}
.brand svg {
  color: var(--accent);
}
.topinfo,
.micro,
.tag,
.time,
.readrow b,
.panelno,
button,
select,
.clock,
.window figcaption,
.milestone {
  font-family: ui-monospace, 'Courier New', monospace;
}
.topinfo,
.micro,
.panelno,
.tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.topinfo {
  gap: 15px;
  color: #a9b7c1;
}
.lamp {
  display: inline-block;
  background: #9cdbad;
  width: 7px;
  height: 7px;
  border-radius: 0;
  box-shadow: 0 0 8px #95d6a75a;
  margin-right: 7px;
}
.dark .lamp {
  background: #ff805f;
}
.wrap {
  max-width: 1550px;
  margin: auto;
  padding: 27px 4vw 32px;
}
.headrow {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
h1 {
  font-size: clamp(40px, 4.4vw, 65px);
  line-height: 1;
  margin: 6px 0 9px;
  letter-spacing: -3px;
  font-weight: 620;
}
.micro {
  color: var(--accent);
}
.sub {
  color: var(--muted);
  font-size: 14px;
}
.clock {
  text-align: right;
  font-size: clamp(25px, 3vw, 43px);
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.timebox {
  text-align: right;
}
.timebox .micro {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 2.55fr) minmax(260px, 1fr);
  gap: 16px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.sectiontitle {
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
.panelno {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.icon {
  color: var(--accent);
  font-size: 17px;
}
.ports {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.window {
  margin: 0;
  background: #10171d;
  border: 1px solid #46515a;
  border-radius: 0;
  overflow: hidden;
}
.glass {
  width: 100%;
  aspect-ratio: 1.63;
  display: block;
  position: relative;
  padding: 0;
  background: #03060b;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
  overflow: hidden;
}
.glass canvas,
dialog canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.glass:after,
.bigview:after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 10px 3px #0008;
  pointer-events: none;
}
.cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #c4d6e575;
  font: 22px monospace;
  text-shadow: 0 0 2px #333;
}
.winid {
  position: absolute;
  top: 9px;
  left: 10px;
  font: 9px monospace;
  letter-spacing: 1px;
  background: #091119a6;
  padding: 3px 5px;
  color: #cfdae1;
  border: 1px solid #8193a347;
  border-radius: 0;
}
.expand {
  position: absolute;
  right: 9px;
  top: 9px;
  color: #dceaf0;
  font: 16px monospace;
  text-shadow: 0 1px 2px black;
}
.window figcaption {
  font-size: 11px;
  letter-spacing: 0.25px;
  padding: 9px;
  color: #d4dde3;
}
.side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.readrow {
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  gap: 6px;
}
.readrow:last-child {
  border: 0;
}
.reads {
  padding: 2px 17px 6px;
}
.readrow b {
  font-size: 14px;
  color: #e2edf2;
  font-weight: 500;
}
.dsky {
  padding: 12px 16px;
}
.display {
  background: #0a1613;
  border: 1px solid #394942;
  border-radius: 0;
  display: flex;
  justify-content: space-around;
  text-align: center;
  padding: 8px;
  color: #95dcad;
  font: 10px monospace;
  letter-spacing: 1px;
}
.display strong {
  display: block;
  font: 25px monospace;
  color: #a9f4bb;
  line-height: 1.12;
  text-shadow: 0 0 9px #77e39955;
}
.dsky small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.deckfoot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 12px;
  color: var(--muted);
  font: 10px monospace;
}
.deckfoot:before {
  content: '';
  height: 6px;
  flex: 1;
  background: repeating-linear-gradient(125deg, #38444e 0 2px, transparent 2px 6px);
}
.timeline {
  margin-top: 16px;
}
.control {
  gap: 8px;
  margin-left: auto;
}
.control button,
select,
dialog button,
.phasebutton {
  background: #222c34;
  color: #dae6ed;
  border: 1px solid #45525d;
  border-radius: 0;
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
}
.control button:hover,
select:hover,
.phasebutton:hover {
  border-color: var(--accent);
}
.track {
  padding: 14px 18px 17px;
}
.trackhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.trackhead strong {
  font-size: 14px;
  font-weight: 550;
}
.phasebutton {
  max-width: 53%;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 15px 0 5px;
}
.scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 10px monospace;
}
details {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
summary {
  cursor: pointer;
  width: fit-content;
}
a {
  color: var(--accent);
}
dialog {
  width: min(900px, 94vw);
  padding: 0;
  background: var(--panel);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
}
dialog::backdrop {
  background: #03070bd9;
}
.bigview {
  position: relative;
  height: min(60vh, 480px);
}
dialog button {
  margin-left: auto;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #a6ddff;
  outline-offset: 2px;
}
.cross {
  width: 18px;
  height: 18px;
  font-size: 0;
  background:
    linear-gradient(#becfd181, #becfd181) top center/1px 4px no-repeat,
    linear-gradient(#becfd181, #becfd181) bottom center/1px 4px no-repeat,
    linear-gradient(#becfd181, #becfd181) left center/4px 1px no-repeat,
    linear-gradient(#becfd181, #becfd181) right center/4px 1px no-repeat;
}
/* The viewports share the available height. The narrow instrument column also holds the flight controls. */
:root {
  --gutter: clamp(8px, 1vw, 18px);
}
header {
  min-height: 38px;
  padding: 4px var(--gutter);
}
.brand svg {
  width: 27px;
  height: 27px;
}
.wrap {
  max-width: none;
  margin: 0;
  padding: 8px var(--gutter);
}
.headrow {
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(27px, 2.6vw, 44px);
  margin: 0;
  letter-spacing: -1.6px;
}
.heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.clock {
  font-size: clamp(25px, 2.4vw, 38px);
  line-height: 1.1;
}
.grid {
  grid-template-columns: minmax(0, 1fr) clamp(256px, 20vw, 350px);
  gap: 8px;
}
.deck {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.sectiontitle {
  padding: 10px 12px;
}
.icon {
  line-height: 1;
}
.ports {
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
}
.window {
  position: relative;
  min-height: 0;
}
.glass {
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
}
.window figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 7px;
  background: #0d151ed9;
  pointer-events: none;
}
.side {
  gap: 8px;
}
.timeline {
  margin: 0;
}
.timeline .sectiontitle {
  flex-wrap: wrap;
}
.control {
  width: 100%;
  margin: 2px 0 0;
}
.control > * {
  flex: 1;
}
.track {
  padding: 10px 12px;
}
.trackhead {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}
.phasebutton {
  max-width: 100%;
  width: 100%;
}
.reads {
  padding: 2px 12px 5px;
}
.dsky {
  padding: 10px 12px;
}
details {
  margin-top: 4px;
}
dialog {
  width: calc(100vw - 20px);
  max-width: none;
  max-height: none;
}
.bigview {
  height: calc(100dvh - 80px);
}
input[type='range'] {
  appearance: none;
  background: transparent;
  height: 20px;
  margin: 10px 0 0;
  vertical-align: middle;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  background: #62727d;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 16px;
  margin-top: -6px;
  background: var(--accent);
  border: 1px solid #152730;
  border-radius: 0;
}
input[type='range']::-moz-range-track {
  height: 4px;
  background: #62727d;
}
input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 16px;
  background: var(--accent);
  border: 1px solid #152730;
  border-radius: 0;
}
@media (min-width: 901px) {
  body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .grid {
    flex: 1;
    min-height: 500px;
  }
}
@media (max-width: 900px) {
  .grid {
    display: flex;
    flex-direction: column;
  }
  .ports {
    grid-template-rows: auto auto;
  }
  .glass {
    aspect-ratio: 1.35;
    height: auto;
  }
  .side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topinfo > span:first-child {
    display: none;
  }
}
@media (max-width: 690px) {
  .heading {
    display: block;
  }
  .sub {
    font-size: 11px;
  }
  .side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .timeline .sectiontitle {
    flex-wrap: nowrap;
  }
  .control {
    width: auto;
    margin: 0 0 0 auto;
  }
  .control > * {
    flex: auto;
  }
  .ports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glass {
    aspect-ratio: 1.55;
  }
  .trackhead {
    flex-direction: row;
    align-items: center;
  }
  .phasebutton {
    width: 52%;
  }
  .readrow {
    flex-wrap: wrap;
  }
  .clock {
    font-size: 22px;
  }
}
@media (max-width: 420px) {
  .side {
    grid-template-columns: minmax(0, 1fr);
  }
}

#regs {
  margin-top: 5px;
  background: #0a1613;
  color: #aff0bc;
  text-align: center;
  padding: 6px;
  white-space: pre;
  font: 20px monospace;
  letter-spacing: 2px;
}
.dsky select {
  width: 100%;
  margin-top: 6px;
}
.dsky label {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  color: var(--muted);
}
.brand img {
  width: 27px;
  height: 27px;
}
.heading {
  min-width: 0;
}
.heading #phase {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
[hidden] {
  display: none !important;
}
.clock {
  font-size: clamp(15px, 2.1vw, 28px);
}
.heading #phase {
  font-size: 13px;
  color: var(--accent);
}
.track label,
.catalog label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 4px;
}
.track > select,
.track > button,
.catalog > select,
.catalog > input,
.catalog > button {
  width: 100%;
}
.track > button {
  margin-top: 8px;
}
button,
input[type='search'] {
  background: #222c34;
  color: #e4eaf0;
  border: 1px solid #45525d;
  padding: 6px 9px;
  font-size: 12px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.catalog {
  display: grid;
  gap: 5px;
  padding: 6px 12px 12px;
}
.catalog label {
  margin: 4px 0 0;
}
.catalog select {
  font-size: 11px;
  padding: 4px;
}
#flybyList {
  min-width: 0;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 11px monospace;
}
.descentview {
  flex: 1;
  min-height: 520px;
  position: relative;
  background: #100a05;
}
.descentview canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}
.landerfoot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 11px;
}
#film {
  width: min(1050px, 96vw);
}
video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}
.readrow b {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .descentview {
    min-height: 340px;
  }
  .side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #catalogPanel {
    grid-column: 1/-1;
  }
}
@media (max-width: 500px) {
  .side {
    grid-template-columns: minmax(0, 1fr);
  }
  .headrow {
    align-items: start;
  }
  .heading {
    min-width: 0;
  }
  .timebox {
    min-width: 120px;
  }
  .track .control {
    display: flex;
    width: 100%;
  }
}
