/* Local aliases of the shared Marine fonts (/marine/shared/fonts), with real 500/600 weights. */
@font-face {
  font-family: Plex;
  src: url("/marine/shared/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("/marine/shared/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("/marine/shared/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("/marine/shared/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111d24;
  --panel: #14232bef;
  --line: #a5b7bf2e;
  --text: #f0f0e8;
  --muted: #a5b4bc;
  --accent: #f2a36f;
  --mono: Mono, monospace;
  font-family: Plex, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:hover {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #101a21;
}
.brand {
  display: flex;
  gap: 28px;
  align-items: center;
}
.brand > span:first-child {
  font-size: 15px;
  letter-spacing: 0.045em;
  font-weight: bold;
}
.back-label {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.edition {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.edition i,
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #b3cdbb;
  border-radius: 50%;
}
.header-actions {
  display: flex;
  gap: 25px;
  font-size: 12px;
}
.header-actions > button:last-child {
  font-family: var(--mono);
  border: 1px solid var(--line);
  padding: 7px 9px;
  font-size: 11px;
}
.experience {
  height: calc(100svh - 106px); /* 64px Marine bar + 42px footer */
  min-height: 590px;
  position: relative;
  overflow: hidden;
}
.scene,
.scene-vignette,
.annotations {
  position: absolute;
  inset: 0;
}
.scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.scene-vignette {
  background: linear-gradient(90deg, #0c171d40, transparent 42%, #0c171d10);
  pointer-events: none;
}
.title-block {
  position: absolute;
  left: 42px;
  top: 33px;
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 400;
  color: var(--muted);
}
.title-block .eyebrow {
  color: var(--accent);
  margin: 0 0 17px;
}
h1 {
  font-size: clamp(35px, 3.3vw, 55px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
}
h1 span {
  display: block;
  color: #b5c8d0;
  font-size: 0.65em;
  letter-spacing: -0.025em;
  margin-top: 9px;
}
.intro {
  font-size: 14px;
  margin-top: 18px;
  color: var(--muted);
}
.scene-tabs {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  background: #102028dc;
  border-radius: 5px;
  gap: 3px;
  white-space: nowrap;
}
.scene-tabs button {
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 2px;
  color: var(--muted);
}
.scene-tabs button > span:first-child {
  font: 9px var(--mono);
  opacity: 0.6;
  margin-right: 5px;
}
.scene-tabs button.active {
  background: #deebed;
  color: #19262d;
}
.inspector {
  position: absolute;
  right: 30px;
  top: 109px;
  bottom: 77px;
  width: 295px;
  max-height: 635px;
  padding: 21px 21px 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: blur(14px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #52626b transparent;
}
.inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tiny-cross {
  color: var(--accent);
}
.inspector h2 {
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.03em;
  margin: 17px 0 11px;
}
.inspector p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  gap: 18px 12px;
}
dl > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
}
dt {
  font-size: 10px;
  color: var(--muted);
}
dd {
  margin: 0;
  font: 22px var(--mono);
  letter-spacing: -0.07em;
}
dd small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
}
.panel-rule {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}
.control-heading,
.equipment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 9px var(--mono);
  letter-spacing: 0.035em;
  color: var(--muted);
  gap: 5px;
}
.control-heading button {
  font: 10px Plex;
  letter-spacing: 0;
}
.view-controls {
  display: flex;
  border: 1px solid var(--line);
  margin: 11px 0 20px;
  border-radius: 3px;
  padding: 3px;
  gap: 3px;
}
.view-controls button {
  flex: 1;
  font-size: 11px;
  padding: 8px 5px;
}
.view-controls button.active {
  background: #38505b;
  color: #fff;
  border-radius: 2px;
}
.range-control {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  margin: 0 0 16px;
}
.range-control input {
  width: 80px;
  flex: 1;
}
.range-control output {
  width: 35px;
  font: 10px var(--mono);
}
input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
}
.equipment-head button {
  font-size: 9px;
  color: var(--accent);
}
.equipment {
  margin-top: 10px;
}
.equipment button {
  border-bottom: 1px solid var(--line);
  width: 100%;
  padding: 9px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  font-size: 11px;
}
.equipment button > span:first-child {
  font: 9px var(--mono);
  color: var(--accent);
}
.equipment button::after {
  content: "↗";
  margin-left: auto;
  color: #83949d;
}
.equipment button.selected {
  color: var(--accent);
}
.inspector .model-note {
  font-size: 10px;
  line-height: 1.5;
  color: #84969f;
  margin-top: 17px;
}
.annotations {
  pointer-events: none;
}
.annotation {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: #13232edb;
  border: 1px solid #b1cad044;
  padding: 6px 10px 6px 6px;
  color: #dce7eb;
  font-size: 10px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 15px #0002;
}
.annotation b {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eca57380;
  border-radius: 50%;
  font: 9px var(--mono);
  color: var(--accent);
  width: 19px;
  height: 19px;
  font-weight: 400;
}
.annotation.selected {
  border-color: var(--accent);
}
.camera-controls {
  position: absolute;
  bottom: 76px;
  left: 42px;
  display: flex;
  border: 1px solid var(--line);
  background: #112129c9;
  border-radius: 3px;
  overflow: hidden;
}
.camera-controls button {
  width: 36px;
  height: 34px;
  font-size: 19px;
  border-right: 1px solid var(--line);
}
.camera-controls button:last-child {
  border: 0;
}
.scene-caption {
  position: absolute;
  left: 42px;
  bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  color: #9eafb7;
}
.axis {
  font: 8px var(--mono);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.axis span {
  font-size: 22px;
  color: #dbe2dc;
}
.scene-hint {
  position: absolute;
  bottom: 30px;
  left: 42%;
  transform: translateX(-50%);
  font: 10px Plex;
  color: #9eafb7;
  white-space: nowrap;
}
.scale {
  position: absolute;
  bottom: 31px;
  right: 32px;
  display: flex;
  gap: 9px;
  align-items: center;
  font: 9px var(--mono);
  color: var(--muted);
}
.scale i {
  display: block;
  width: 100px;
  height: 5px;
  border: 1px solid #afc4cd;
  border-top: 0;
}
footer {
  height: 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  font-size: 10px;
  color: #a6b4bc;
  background: #101a21;
}
footer .live-dot {
  margin-right: 9px;
  width: 4px;
  height: 4px;
}
.mission-bar {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, calc(100% - 400px));
  background: #10212bf0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 15px 20px;
}
.mission-transport {
  display: flex;
  align-items: center;
  gap: 15px;
}
.mission-transport > #play {
  height: 34px;
  width: 34px;
  border: 1px solid var(--line);
  background: #f2a36f;
  color: #142027;
  border-radius: 50%;
  flex-shrink: 0;
}
.mission-transport p {
  font-size: 12px;
  margin: 4px 0 0;
}
.mission-transport > #speed {
  margin-left: auto;
  font: 11px var(--mono);
  padding: 8px;
  border: 1px solid var(--line);
}
.mission-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  gap: 5px;
}
.mission-steps button {
  font-size: 10px;
  color: var(--muted);
  padding: 4px 0;
  text-align: left;
}
.mission-steps button.active {
  color: var(--accent);
}
#progress {
  width: 100%;
  margin: 12px 0 0;
  height: 3px;
  display: block;
}
.experience.is-mission .camera-controls {
  bottom: 250px;
}
.experience.is-mission .scene-hint {
  display: none;
}
.experience.is-mission .inspector {
  max-height: 520px;
}
.experience.is-mission .mission-bar {
  left: calc((100% - 325px) / 2);
}
dialog {
  color: var(--text);
  background: #17272f;
  border: 1px solid #687c8955;
  max-width: 630px;
  width: calc(100% - 32px);
  max-height: 85svh;
  padding: 28px 32px;
  border-radius: 6px;
}
dialog::backdrop {
  background: #061017bd;
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head button {
  font-size: 26px;
}
dialog h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 400px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.8;
  color: #b8c8cf;
}
dialog ul {
  padding-left: 17px;
}
dialog a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}
dialog h3 {
  font: 11px var(--mono);
  letter-spacing: 0.06em;
  margin-top: 28px;
}
.loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  font: 11px var(--mono);
  letter-spacing: 0.1em;
  z-index: 4;
  background: #111d24;
}
.loader span {
  width: 30px;
  height: 1px;
  background: var(--accent);
  animation: pulse 1s infinite alternate;
}
.fallback {
  position: fixed;
  inset: 30%;
  z-index: 10;
  padding: 30px;
  background: #14242f;
  border: 1px solid var(--line);
}
.fallback a {
  text-decoration: underline;
}
.skip,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  z-index: 20;
  top: 5px;
  left: 5px;
  background: #17272f;
  padding: 10px;
}
.error-state {
  max-width: 420px;
  text-align: center;
  line-height: 1.8;
  padding: 24px;
}
.error-state a {
  text-decoration: underline;
  color: var(--accent);
}
@keyframes pulse {
  to {
    width: 90px;
    opacity: 0.3;
  }
}
@media (min-width: 1500px) {
  .inspector {
    right: 42px;
    width: 315px;
  }
  .title-block {
    top: 42px;
  }
  .scene-tabs {
    top: 43px;
  }
}
@media (max-width: 1150px) {
  .edition {
    display: none;
  }
  .scene-tabs {
    left: auto;
    right: 30px;
    transform: none;
  }
  .title-block {
    left: 28px;
  }
  .inspector {
    right: 22px;
    width: 265px;
    padding: 17px;
    top: 110px;
  }
  .title-block h1 {
    font-size: 38px;
  }
  .intro {
    max-width: 250px;
    line-height: 1.5;
  }
  .scene-hint {
    left: 40%;
    font-size: 9px;
  }
  .annotation {
    font-size: 9px;
  }
  .camera-controls,
  .scene-caption {
    left: 28px;
  }
}
@media (max-width: 760px) {
  header {
    height: 65px;
    padding: 0 18px;
  }
  .brand {
    gap: 0;
  }
  .brand > span:first-child {
    font-size: 12px;
  }
  .back-label {
    display: none;
  }
  .header-actions {
    gap: 13px;
    font-size: 11px;
  }
  .experience {
    height: auto;
    min-height: 0;
    padding-top: 620px;
    padding-bottom: 0;
    overflow: hidden;
  }
  .scene {
    height: 620px;
    bottom: auto;
  }
  .scene-vignette {
    height: 620px;
  }
  .title-block {
    top: 30px;
    left: 22px;
  }
  .title-block .eyebrow {
    font-size: 8px;
    letter-spacing: 0.1em;
    margin-bottom: 13px;
  }
  .title-block h1 {
    font-size: 36px;
  }
  .intro {
    font-size: 12px;
    max-width: 300px;
    margin-top: 13px;
  }
  .scene-tabs {
    left: 20px;
    right: 20px;
    top: 192px;
    transform: none;
    justify-content: center;
  }
  .scene-tabs button {
    flex: 1;
    text-align: center;
    padding: 9px 5px;
    font-size: 11px;
  }
  .annotations {
    height: 620px;
  }
  .annotation {
    font-size: 9px;
    padding: 4px 6px;
    gap: 5px;
  }
  .annotation b {
    width: 17px;
    height: 17px;
    font-size: 8px;
  }
  .inspector {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0 16px 20px;
    max-height: none !important;
    padding: 22px;
    background: #14232b;
    border-radius: 3px;
  }
  .inspector h2 {
    font-size: 25px;
  }
  dl {
    grid-template-columns: repeat(4, 1fr);
  }
  dd {
    font-size: 20px;
  }
  .panel-copy {
    max-width: 450px;
  }
  .equipment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .equipment button {
    font-size: 12px;
    padding: 13px 0;
  }
  .view-controls button {
    padding: 12px;
  }
  .scene-caption {
    bottom: auto;
    top: 574px;
    left: 22px;
    font-size: 8px;
  }
  .scene-hint {
    display: none;
  }
  .scale {
    top: 588px;
    bottom: auto;
    right: 24px;
    font-size: 8px;
  }
  .scale i {
    width: 65px;
  }
  .camera-controls {
    bottom: auto;
    top: 525px;
    left: 22px;
  }
  .camera-controls button {
    width: 36px;
    height: 35px;
  }
  .mission-bar,
  .experience.is-mission .mission-bar {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    margin: 0 16px 20px;
    padding: 16px;
    order: -1;
  }
  .experience.is-mission {
    display: flex;
    flex-direction: column;
    padding-top: 620px;
  }
  .experience.is-mission .camera-controls {
    bottom: auto;
    top: 525px;
  }
  .experience.is-mission .inspector {
    order: 0;
  }
  .mission-steps button {
    font-size: 9px;
  }
  .mission-transport p {
    font-size: 11px;
  }
  footer {
    height: auto;
    min-height: 68px;
    padding: 17px 22px;
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 9px;
  }
  .header-actions #sources {
    font-size: 10px;
  }
  .range-control input {
    max-width: 200px;
  }
  .scene-caption .axis {
    display: none;
  }
  .scene-tabs button > span:first-child {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader span {
    animation: none;
  }
}

@media (max-width: 760px) {
  .annotation span {
    display: none;
  }
  .annotation {
    padding: 4px;
  }
  .annotation b {
    width: 23px;
    height: 23px;
  }
  .scale i {
    display: none;
  }
  dl {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  dd {
    font-size: 21px;
  }
}
.experience:fullscreen {
  height: 100svh;
}
dd.text-value {
  font-size: 16px;
  letter-spacing: -0.03em;
}
.experience.is-mission .mission-bar {
  bottom: 55px;
}
@media (max-width: 760px) {
  .experience.is-mission .mission-bar {
    bottom: auto;
  }
}
/* V2 controls: systems stay below the primary viewing tools. */
select {
  font: 11px Plex;
  color: var(--text);
  background: #20333f;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px;
  max-width: 175px;
  min-width: 0;
  cursor: pointer;
}
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  font-size: 10px;
  color: var(--muted);
}
.evidence {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 0;
  font-size: 9px;
  line-height: 1.5;
}
.evidence span {
  color: #92d6c1;
}
.evidence a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.isolate {
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 10px;
  margin-top: 8px;
  width: 100%;
  text-align: left;
}
.isolate[aria-pressed="true"] {
  background: #36584f;
  color: #dcfff2;
}
#systems-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 16px 0;
}
summary {
  font-size: 11px;
  cursor: pointer;
  color: #d4e1e7;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin: 14px 0;
}
.check-row input {
  accent-color: var(--accent);
}
.inspector .technical-note {
  font-size: 10px;
  line-height: 1.55;
  padding: 6px 0 8px;
}
#dp-controls .range-control {
  margin: 10px 0;
}
.viewpoints {
  position: absolute;
  left: 42px;
  bottom: 124px;
  display: flex;
  gap: 4px;
  background: #112129d9;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px;
}
.viewpoints button {
  font: 10px Mono;
  padding: 8px;
  color: #bacbd1;
}
.viewpoints button.active {
  background: #37515c;
  color: #fff;
}
.flow-legend {
  position: absolute;
  bottom: 175px;
  left: 42px;
  max-width: calc(100% - 410px);
  display: flex;
  align-items: center;
  gap: 9px;
  background: #122a32ed;
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 10px;
}
.flow-legend i {
  width: 6px;
  height: 6px;
  background: #78dcc1;
  border-radius: 50%;
  flex-shrink: 0;
}
.flow-legend button {
  margin-left: 8px;
  font: 13px Mono;
}
.experience.is-mission .viewpoints {
  display: none;
}
.inspector {
  width: 305px;
  top: 104px;
  bottom: 76px;
  max-height: none;
}
.title-block h1 {
  font-size: clamp(35px, 3.3vw, 51px);
}
#panel-copy {
  max-height: none;
}
@media (max-width: 1150px) and (min-width: 761px) {
  .inspector {
    width: 280px;
  }
  .viewpoints,
  .flow-legend {
    left: 28px;
  }
  .header-actions {
    gap: 14px;
  }
  .flow-legend {
    max-width: calc(100% - 365px);
  }
}
@media (max-width: 760px) {
  .header-actions {
    gap: 9px;
  }
  .inspector {
    width: auto;
    top: auto;
    bottom: auto;
  }
  #panel-copy {
    max-height: none;
  }
  .viewpoints {
    left: 22px;
    top: 477px;
    bottom: auto;
    right: 22px;
    justify-content: space-between;
  }
  .viewpoints button {
    font-size: 9px;
    padding: 8px 7px;
  }
  .flow-legend {
    left: 22px;
    right: 22px;
    max-width: none;
    top: 430px;
    bottom: auto;
    font-size: 9px;
  }
  .scene-tabs {
    top: 192px;
  }
  select {
    max-width: 210px;
    padding: 10px;
    font-size: 12px;
  }
  .control-row {
    font-size: 12px;
  }
}
@media (min-width: 761px) {
  #specs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 17px 0;
  }
  #specs dd {
    font-size: 16px;
  }
  #specs dd small {
    font-size: 9px;
  }
  #specs dt {
    font-size: 8px;
  }
}
@media (min-width: 761px) {
  .is-rov #specs {
    grid-template-columns: 1fr 1fr;
  }
  .is-rov #specs dd {
    font-size: 18px;
  }
}
/* The guide occupies the inspector column, leaving the model unobstructed. */
@media (min-width: 761px) {
  .is-mission #specs {
    grid-template-columns: 1fr 1fr;
  }
}

/* V3: a single viewing bar, contextual equipment and a single mission reader. */
.view-controls {
  position: absolute;
  top: 126px;
  left: 42px;
  min-width: 222px;
  margin: 0;
  background: #142730e8;
}
.viewpoints {
  bottom: 119px;
  padding: 0;
}
.viewpoints select {
  background: #142730;
  border: 0;
  min-width: 124px;
}
#equipment-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
#equipment-details .equipment-head {
  justify-content: flex-end;
  margin-top: 10px;
}
.model-note {
  margin-top: 16px !important;
}
.inspector .control-heading > span {
  display: none;
}
.inspector .control-heading {
  justify-content: flex-end;
}
.inspector .panel-rule {
  margin: 12px 0;
}
.is-mission .inspector,
.is-mission .scale,
.is-mission .scene-caption,
.is-mission .scene-hint {
  display: none;
}
.is-mission .title-block h1 {
  font-size: 32px;
}
.is-mission .title-block .intro,
.is-mission .title-block .eyebrow {
  display: none;
}
.mission-options {
  position: absolute;
  left: 42px;
  top: 97px;
  max-width: 440px;
}
.mission-modes {
  display: inline-flex;
  gap: 3px;
  border: 1px solid var(--line);
  padding: 3px;
  background: #10232be8;
}
.mission-modes button {
  font-size: 12px;
  padding: 8px 14px;
  color: var(--muted);
}
.mission-modes button.active {
  background: #38534e;
  color: #e7f2e7;
}
#mission-note {
  color: #aec2c5;
  font-size: 10px;
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 420px;
}
.experience.is-mission .mission-bar {
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 22px;
  width: min(710px, calc(100% - 48px));
  padding: 12px 18px;
  margin: 0;
  background: #14272ff5;
  border: 1px solid var(--line);
}
.mission-tools {
  display: flex;
  gap: 14px;
  margin-bottom: 11px;
  align-items: center;
}
.mission-tools button {
  font-size: 10px;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid transparent;
}
.mission-tools button.active,
.mission-tools button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
#seabed-section {
  margin-left: auto;
}
.mission-transport {
  align-items: center;
  gap: 15px;
}
.mission-transport p {
  font-size: 12px;
  margin: 6px 0 0;
  line-height: 1.45;
}
#mission-stage {
  font-size: 9px;
  color: var(--accent);
}
.mission-steps {
  margin-top: 13px;
  gap: 8px;
}
.mission-steps button {
  font-size: 9px;
  padding: 5px 0;
}
.mission-bar input[type="range"] {
  width: 100%;
  margin-top: 6px;
}
.is-mission .camera-controls {
  left: 28px;
  bottom: 205px;
}
@media (min-width: 761px) {
  .title-block h1 {
    font-size: 34px;
  }
  .title-block h1 span {
    display: none;
  }
  .title-block .intro {
    margin-top: 9px;
    font-size: 12px;
  }
  .title-block .eyebrow {
    margin-bottom: 10px;
  }
  .view-controls {
    top: 145px;
  }
  .scene-tabs {
    left: auto;
    right: 30px;
    transform: none;
  }
}
@media (max-width: 760px) {
  header {
    height: 58px;
  }
  .experience {
    padding-top: 500px;
  }
  .scene,
  .scene-vignette,
  .annotations {
    height: 500px;
  }
  .title-block {
    top: 16px;
    left: 18px;
  }
  .title-block .eyebrow,
  .title-block .intro,
  .title-block h1 span {
    display: none;
  }
  .title-block h1,
  .is-mission .title-block h1 {
    font-size: 27px;
    margin: 0;
  }
  .scene-tabs {
    left: 16px;
    right: 16px;
    top: 64px;
  }
  .scene-tabs button {
    padding: 9px 4px;
  }
  .view-controls {
    top: 119px;
    left: 16px;
    right: 16px;
    min-width: 0;
    justify-content: center;
  }
  .view-controls button {
    padding: 9px;
  }
  .viewpoints {
    left: auto;
    right: 18px;
    top: 444px;
    bottom: auto;
  }
  .camera-controls {
    left: 18px;
    top: 444px;
  }
  .scene-caption,
  .scale {
    display: none;
  }
  .flow-legend {
    top: 391px;
  }
  .inspector {
    padding: 18px;
  }
  .experience.is-mission {
    display: block;
    height: calc(100svh - 58px);
    min-height: 620px;
    padding: 0;
  }
  .is-mission .scene,
  .is-mission .scene-vignette {
    height: 100%;
  }
  .mission-options {
    top: 122px;
    left: 18px;
    right: 18px;
  }
  .mission-modes button {
    font-size: 11px;
    padding: 8px 12px;
  }
  #mission-note {
    max-width: 345px;
    font-size: 9px;
    margin-top: 8px;
  }
  .experience.is-mission .mission-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: none;
    padding: 12px;
  }
  .mission-tools {
    gap: 14px;
    margin-bottom: 9px;
  }
  .mission-tools button {
    font-size: 10px;
  }
  .mission-transport p {
    font-size: 11px;
    min-height: 32px;
  }
  .mission-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px 8px;
    margin-top: 9px;
  }
  .mission-steps button {
    font-size: 9px;
    text-align: left;
    padding: 4px 0;
  }
  .is-mission .camera-controls {
    top: auto;
    bottom: 233px;
    left: 18px;
  }
}
.is-mission .scene-vignette {
  background: linear-gradient(180deg, #10212bea 0, #10212b70 150px, transparent 280px);
}
@media (min-width: 761px) {
  .inspector {
    bottom: auto;
    max-height: calc(100% - 140px);
  }
}

/* Marine shares the site's Engineering identity; the 3D stage keeps its contrast. */
:root {
  --paper: oklch(0.966 0.01 85);
  --paper-raised: oklch(0.943 0.012 85);
  --graphite: oklch(0.24 0.008 140);
  --copper: oklch(0.51 0.115 45);
  --ui-muted: oklch(0.475 0.008 100);
  --ui-line: oklch(0.8 0.012 85);
  --ui-scheme: light;
  --selected: var(--paper);
  --selected-ink: var(--graphite);
}
:root[data-theme="orange"] {
  --paper: #141414;
  --paper-raised: #252525;
  --graphite: #f6f6f6;
  --copper: #ff7900;
  --ui-muted: #b8b8b8;
  --ui-line: #484848;
  --ui-scheme: dark;
  --selected: #ff7900;
  --selected-ink: #000;
}
header,
footer,
.inspector,
.mission-bar,
dialog {
  color-scheme: var(--ui-scheme);
  --text: var(--graphite);
  --muted: var(--ui-muted);
  --line: var(--ui-line);
  --accent: var(--copper);
  color: var(--text);
  background: var(--paper);
  border-color: var(--line);
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand img {
  display: block;
  width: 190px;
  height: auto;
}
.back-label {
  display: block;
  padding: 8px 0 8px 26px;
}
.back-label:hover {
  color: var(--accent);
}
header button {
  min-height: 36px;
}
footer {
  color: var(--muted);
}
footer .live-dot {
  display: none;
}
.inspector,
dialog {
  border-radius: 2px;
  backdrop-filter: none;
  scrollbar-color: var(--line) transparent;
}
.inspector summary,
.inspector .model-note,
.inspector .equipment button::after,
dialog p,
dialog li {
  color: var(--muted);
}
.inspector select {
  color: var(--text);
  background: var(--paper-raised);
}
.inspector .evidence span {
  color: #365448;
}
.inspector .isolate[aria-pressed="true"] {
  background: var(--graphite);
  color: var(--paper);
}
.scene-tabs,
.view-controls,
.camera-controls,
.viewpoints,
.annotation {
  border-radius: 2px;
}
.scene-tabs button.active,
.view-controls button.active {
  background: var(--selected);
  color: var(--selected-ink);
}
.is-rov .scale {
  display: none;
}
.experience.is-mission .mission-bar {
  background: var(--paper);
  border-radius: 2px;
}
.mission-transport > #play {
  background: var(--graphite);
  color: var(--paper);
  border-color: var(--graphite);
}
@media (max-width: 760px) {
  .brand-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .brand img {
    width: 142px;
  }
  .back-label {
    display: block;
    border: 0;
    padding: 0;
    font-size: 10px;
    line-height: 1.2;
  }
}

/* Component studies reuse the explorer, without a second toolbar or simulated telemetry. */
.study-back {
  display: block;
  margin: -3px 0 20px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}
.study-open {
  width: 100%;
  margin: 15px 0 8px;
  padding: 12px;
  color: var(--paper);
  background: var(--graphite);
  border: 1px solid var(--graphite);
  border-radius: 2px;
  font-size: 12px;
  text-align: left;
}
.study-open:hover {
  background: var(--copper);
}
#study-options h3,
#study-components h3,
.tool-links h3 {
  margin: 22px 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
#study-options-list button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
#study-options-list button:hover,
.study-back:hover,
.tool-links a:hover,
#study-references a:hover {
  color: var(--copper);
}
#study-components {
  margin-bottom: 20px;
}
#study-components-list button {
  min-height: 39px;
}
#study-evidence h3 {
  margin: 16px 0 5px;
  font-size: 12px;
  font-weight: 500;
}
#study-evidence p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
#study-references a,
.tool-links a {
  display: block;
  padding: 5px 0;
  font-size: 11px;
  line-height: 1.6;
}
.tool-links {
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.tool-links h3 {
  margin-top: 15px;
}
.is-study .scale {
  display: none;
}
.is-study .title-block h1 {
  font-size: clamp(25px, 3vw, 40px);
}
.is-study .title-block h1 span {
  margin-top: 10px;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
}
.is-study .title-block .intro {
  max-width: 350px;
  font-size: 11px;
}
#mission-cable-link {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
}
@media (max-width: 760px) {
  .is-study .title-block h1 {
    font-size: 27px;
  }
  .is-study .title-block .intro {
    max-width: 280px;
    font-size: 10px;
  }
  #study-components-list button {
    min-height: 44px;
  }
  #study-options-list button {
    min-height: 44px;
  }
}

@media (min-width: 761px) {
  .is-study .panel-description {
    position: sticky;
    top: -24px;
    z-index: 3;
    padding: 10px 1px 12px;
    margin: 0 -1px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .is-study .panel-description h2 {
    margin-top: 0;
  }
  .is-study .panel-description p {
    margin-bottom: 0;
  }
  .is-study #study-components-list button {
    scroll-margin-top: 180px;
  }
}
#study-components-list button::after {
  content: none;
}

.is-study .panel-rule {
  display: none;
}

#study-scope {
  display: none;
}
@media (max-width: 760px) {
  .is-study .title-block h1 {
    font-size: clamp(20px, 6vw, 24px);
  }
  .is-study #study-scope {
    display: block;
    margin: 12px 0 0;
    font-size: 10px;
    color: var(--muted);
  }
}

/* V6: one explicit language selector; one optional PLIB comparison. */
.language-picker select {
  min-height: 40px;
  padding: 8px;
  color: #2b302e;
  background: transparent;
  border: 1px solid #cbc7bd;
  font:
    12px "IBM Plex Mono",
    monospace;
}
#scenario-open {
  display: block;
  color: #dfc4aa;
  font-size: 11px;
  padding: 9px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mission-review {
  position: absolute;
  top: 100px;
  right: 30px;
  width: 315px;
  max-height: calc(100% - 205px);
  overflow: auto;
  padding: 20px;
  background: #14272ff5;
  border: 1px solid #486059;
  color: #e5e8e3;
}
.mission-review h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 8px 0 16px;
}
.mission-review p {
  font-size: 11px;
  line-height: 1.5;
  color: #b8c7c5;
}
#review-note {
  border-top: 1px solid #486059;
  padding-top: 10px;
}
.review-switch {
  display: flex;
  gap: 5px;
}
.review-switch button {
  padding: 10px;
  min-height: 44px;
  border: 1px solid #486059;
  color: #c4cec8;
  flex: 1;
  font-size: 12px;
}
.review-switch button[aria-pressed="true"] {
  background: #41564f;
  color: #fff;
}
#review-section {
  display: block;
  width: 100%;
  margin-top: 10px;
}
#review-values,
#scenario-values {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  font-size: 12px;
}
#review-values dd,
#scenario-values dd {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
}
#review-values dd {
  color: #efb48f;
}
.is-comparing .mission-options,
.is-comparing .camera-controls {
  display: none;
}
.is-comparing .mission-tools {
  margin-bottom: 0;
}
#scenario-dialog {
  width: min(610px, calc(100% - 24px));
}
#scenario-dialog h2 {
  font-size: 24px;
}
#scenario-dialog p {
  font-size: 13px;
  line-height: 1.55;
}
#scenario-file {
  display: block;
  margin: 10px 0 20px;
  max-width: 100%;
  font-size: 12px;
}
#scenario-profile {
  width: 100%;
  margin: 0;
}
#scenario-provenance {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#scenario-scope {
  border-top: 1px solid #cbc7bd;
  margin-top: 20px;
  padding-top: 12px;
}
#scenario-error {
  color: #97391f;
}
#scenario-remove {
  margin-top: 15px;
  text-decoration: underline;
  padding: 8px 0;
}
#scenario-dialog summary {
  cursor: pointer;
  font-size: 12px;
}
@media (max-width: 760px) {
  .experience.is-comparing {
    height: auto;
    min-height: 0;
    padding-top: 52svh;
  }
  .is-comparing .scene,
  .is-comparing .scene-vignette {
    height: 52svh;
  }
  .mission-review {
    position: relative;
    inset: auto;
    width: auto;
    max-height: none;
    margin: 0 12px;
  }
  .experience.is-comparing .mission-bar {
    position: relative;
    inset: auto;
    margin: 10px 12px;
    width: auto;
    transform: none;
  }
  .is-comparing .title-block h1 {
    font-size: 23px;
  }
  .is-comparing .scene-tabs {
    top: 58px;
  }
}

#scenario-values dt {
  font-size: 12px;
}
#scenario-values dd {
  font-size: 14px;
}
#scenario-profile {
  max-height: 185px;
}
#scenario-scope {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .is-mission .camera-controls {
    bottom: 270px;
  }
}

/* A single presentation preference; engineering geometry and signal colours stay fixed. */
.brand-orange {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-orange small {
  display: block;
  margin-top: 3px;
  font: 10px var(--mono);
  letter-spacing: 0.13em;
}
.brand .brand-orange img {
  width: 42px;
  height: 42px;
}
[data-theme="orange"] .brand > img {
  display: none;
}
[data-theme="orange"] .brand-orange {
  display: flex;
}
[data-theme="orange"] .inspector .evidence span {
  color: #9bceb5;
}
.brand-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
}
.brand-picker select {
  font: inherit;
  background: var(--paper-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px;
  min-height: 36px;
}
.brand-picker select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .brand-picker > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 108px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand-group {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .header-actions {
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }
  .header-actions .brand-picker {
    margin-right: auto;
  }
  .brand .brand-orange img {
    width: 32px;
    height: 32px;
  }
  .brand-orange {
    font-size: 14px;
  }
}

/* Shared Marine bar (/marine/shared/marine.css) replaces the former header layout. */
header.marine-bar {
  height: auto;
  min-height: 64px;
  justify-content: flex-start;
  padding: 0 32px;
  color: var(--mb-ink);
  background: var(--mb-paper);
  border-color: var(--mb-line);
}
@media (max-width: 760px) {
  header.marine-bar {
    min-height: 56px;
    padding: 8px 18px;
    flex-wrap: wrap;
    gap: 2px 14px;
  }
}
