@font-face {
  font-family: Plex;
  src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  --accent-soft: #281d15;
  --control: #191b1e;
  --hover: #292b2e;
  --on-accent: #080808;
}
:root[data-theme="orange"] {
  color-scheme: dark;
}
:root[data-theme="field"] {
  --bg: #f4f2ec;
  --panel: #fffefa;
  --line: #d4d7cf;
  --muted: #626e70;
  --aqua: #8b502d;
  --white: #263233;
  --gold: #8b502d;
  --accent-soft: #ede3d8;
  --control: #f9f8f3;
  --hover: #e9e9e0;
  --on-accent: #fffefa;
  color-scheme: light;
}
body {
  font-family: Plex, Arial, sans-serif;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
select,
input {
  font-family: inherit;
}
button {
  color: var(--white);
  border-color: var(--line);
  background: var(--control);
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: var(--hover);
}
button[aria-pressed="true"] {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--on-accent);
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
}
header {
  max-width: 1600px;
  margin: auto;
  padding: 25px 36px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
main {
  padding-top: 32px;
}
.intro {
  margin-bottom: 30px;
}
h1 {
  font-weight: 500;
  letter-spacing: -1.5px;
}
.eyebrow {
  color: var(--aqua);
}
.intro > div > p:last-child {
  color: var(--muted);
  margin-top: 10px;
}
.intro .quiet {
  font-size: 12px;
}
.workspace-bar {
  padding-bottom: 15px;
}
.workspace-bar select {
  background: var(--control);
  color: var(--white);
  border-color: var(--line);
}
.workspace-bar nav button[aria-pressed="true"] {
  color: var(--aqua);
  box-shadow: inset 0 -2px var(--aqua);
}
.mission {
  border-color: var(--line);
}
.section-tabs button[aria-pressed="true"] {
  color: var(--aqua);
  border-color: var(--aqua);
  background: var(--accent-soft);
}
.section-heading h2 {
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.6px;
}
.section-heading > p {
  color: var(--muted);
  max-width: 380px;
  font-size: 12px;
  line-height: 1.6;
}
.technical-stage {
  border-color: #334a58;
  border-radius: 6px;
  background: #10202b;
}
.vector-scene svg {
  font-family: Plex, Arial, sans-serif;
}
.vector-scene svg text {
  letter-spacing: 0.1px;
}
.vector-scene {
  min-width: 0;
}
.vector-scene svg {
  min-width: 0;
}
.technical-stage:has(.vector-scene):after {
  display: none !important;
}
.cable-component {
  cursor: pointer;
  outline: none;
}
.cable-component:hover {
  filter: brightness(1.2);
}
.cable-component:focus-visible {
  filter: brightness(1.5);
}
.cable-component.selected {
  filter: brightness(1.15) drop-shadow(0 0 3px #ffbc7530);
}
.cable-component.selected text {
  fill: #f0ca93;
}
.construction-reference {
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 15px 0 22px;
  font-size: 12px;
  color: var(--muted);
}
.construction-reference p {
  margin: 0;
  line-height: 1.6;
}
.construction-reference strong {
  color: var(--white);
  font-weight: 500;
}
.reference-index {
  color: var(--aqua);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 1px;
}
.construction-reference a {
  white-space: nowrap;
  font-size: 11px;
  margin-left: auto;
}
.cable-layout {
  grid-template-columns: minmax(330px, 0.92fr) 1.08fr;
  padding: 0;
  gap: 28px;
  background: transparent;
  border: 0;
  align-items: start;
}
.cable-layout > div:first-child {
  overflow: hidden;
  border: 1px solid #334a58;
  border-radius: 6px;
  background: #10202b;
  position: static;
}
.cable-layout > div:nth-child(2) {
  padding: 8px 0;
}
.cable-layout svg {
  height: auto;
  max-height: 500px;
}
.cable-types {
  padding: 8px 14px 18px;
  margin: 0;
  gap: 6px;
}
.cable-types button {
  background: #162c38;
  color: #cfdee3;
  border-color: #3a5362;
  font-size: 12px;
}
.cable-types button[aria-pressed="true"] {
  background: #e7ba89;
  color: #10202b;
  border-color: #e7ba89;
}
.cable-profile h3 {
  font-size: 27px;
  font-weight: 500;
  color: var(--white);
}
.cable-profile .eyebrow {
  color: var(--aqua);
}
.cable-layout h3:not(#cable-title) {
  color: var(--aqua);
  font-size: 18px;
}
.cable-layout p {
  font-size: 13px;
  line-height: 1.7;
}
.layer-buttons {
  gap: 6px;
  margin-bottom: 22px;
}
.layer-buttons button {
  font-size: 11px;
  padding: 7px 10px;
}
.long-layer-info {
  display: flex;
  gap: 18px;
  align-items: baseline;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px 24px;
  border-radius: 5px;
  margin-top: 12px;
}
.long-layer-info strong {
  color: var(--aqua);
  font-size: 14px;
  min-width: 180px;
  font-weight: 500;
}
.long-layer-info span {
  color: var(--muted);
  font-size: 13px;
}
.stage-controls {
  color: #cfdee3;
  background: #10202b;
}
.stage-controls output {
  color: #e7ba89;
}
.stage-controls button {
  background: #18303e;
  color: #d5e3e8;
  border-color: #3b5767;
}
.stage-controls button[aria-pressed="true"] {
  background: #e7ba89;
  color: #10202b;
  border-color: #e7ba89;
}
.stage-controls input:disabled {
  opacity: 0.3;
}
.projection-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 14px 0;
}
.projection-controls > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 12px;
}
.projection-controls button {
  font-size: 11px;
  padding: 7px 11px;
}
.repair-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  border-color: var(--line);
  border-radius: 5px;
}
.story-panel {
  background: var(--panel);
  border-color: var(--line);
  padding: 25px;
}
.story-panel h3 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.22;
}
.story-panel .eyebrow {
  color: var(--aqua);
  font-size: 12px;
}
.story-panel p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.story-panel .expert-note {
  color: var(--white);
  border-color: var(--aqua);
  font-size: 12px;
}
.story-panel button {
  color: var(--aqua);
}
.story-panel .hint {
  font-size: 11px;
  line-height: 1.6;
}
.repair-insets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #314a59;
}
.repair-insets > div + div {
  border-left: 1px solid #314a59;
}
.repair-insets .vector-scene {
  min-height: 0;
}
#repair-multiview[data-view="profile"] .repair-insets {
  display: none;
}
#repair-multiview[data-view="plan"] > #repair-visual,
#repair-multiview[data-view="detail"] > #repair-visual {
  display: none;
}
#repair-multiview[data-view="plan"] .repair-insets,
#repair-multiview[data-view="detail"] .repair-insets {
  display: block;
}
#repair-multiview[data-view="plan"] #repair-detail,
#repair-multiview[data-view="detail"] #repair-plan {
  display: none;
}
.technical-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #b3c6d0;
  font-size: 10px;
  padding: 13px 20px;
  border-top: 1px solid #314a59;
  background: #10202b;
}
.technical-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.technical-legend i {
  display: inline-block;
  width: 19px;
  height: 2px;
}
.technical-legend .existing {
  background: #6cdae1;
}
.technical-legend .spare {
  background: #ecb374;
}
.technical-legend .rigging {
  height: 0;
  border-top: 2px dashed #cfbddb;
}
.playback {
  background: #11232f;
  padding: 15px 18px;
  border-color: #314a59;
}
.playback button {
  color: #cfdee3;
  background: #19313e;
  border-color: #395564;
}
.playback #repair-play {
  color: #f0ca93;
}
.playback #repair-play[aria-pressed="true"] {
  background: #e7ba89;
  color: #10202b;
  border-color: #e7ba89;
}
.playback button:hover {
  background: #2a4554;
}
.evidence-line {
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
}
.story-steps {
  gap: 6px;
  margin-top: 18px;
}
.story-steps button {
  border-color: var(--line);
  font-size: 11px;
  min-height: 92px;
  color: var(--muted);
}
.story-steps button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--aqua);
  color: var(--white);
}
.story-steps button[aria-pressed="true"] span {
  color: var(--aqua);
}
.story-steps span {
  color: var(--muted);
}
.method-note {
  color: var(--muted);
}
.sources-grid a,
.architecture-grid strong {
  color: var(--white);
}
.sources-grid .eyebrow {
  color: var(--aqua);
}
.sources-grid a:hover {
  color: var(--aqua);
}
.evidence-banner {
  background: var(--panel);
  border-color: var(--aqua);
}
#case-feedback {
  color: var(--aqua);
}
/* Scene colours retain their optical/material meaning across both editorial styles. */
.visual {
  color: #f2f6f6;
}
.visual .scene-head,
.visual .chain-head,
.visual .hint {
  color: #b9c8cf;
}
.visual .scene-tools button,
.visual .parts button,
.visual .view-options button {
  background: #1b272e;
  color: #cedade;
  border-color: #44555e;
}
.visual .scene-tools button[aria-pressed="true"] {
  background: var(--aqua);
  color: var(--on-accent);
}
.visual .parts button[aria-pressed="true"] {
  background: #523622;
  color: #f0ca93;
}
.visual .scene-caption {
  border-color: var(--aqua);
}
.visual .pin[aria-pressed="true"] {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--on-accent);
}
.visual .view-options button[aria-pressed="true"] {
  background: #3a4a52;
  color: #fff;
}
.visual .pin {
  color: #fff;
}
.visual #chain text {
  fill: #bbcbd3;
}
.steps button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--aqua);
  color: var(--white);
}
.steps span {
  color: var(--aqua);
}
.meter-layout svg,
#chart {
  background: #10202b;
  border-radius: 4px;
}
.chart-card .legend span {
  color: var(--muted);
}
.chart-card .legend span:first-child {
  color: var(--aqua);
}
@media (min-width: 1550px) {
  .repair-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .story-panel {
    padding: 30px;
  }
}
@media (max-width: 1100px) {
  .repair-layout {
    grid-template-columns: 1fr 250px;
  }
  .story-panel {
    padding: 20px 16px;
  }
  .story-panel h3 {
    font-size: 22px;
  }
  .construction-reference {
    gap: 12px;
  }
  .cable-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
  }
}
@media (max-width: 850px) {
  .repair-layout {
    grid-template-columns: 1fr;
  }
  .story-panel {
    padding: 23px;
  }
  .story-panel h3 {
    font-size: 24px;
  }
  .story-panel .expert-note {
    margin-top: 15px;
  }
  .story-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .cable-layout {
    grid-template-columns: 1fr;
  }
  .cable-layout > div:first-child {
    max-width: 620px;
    width: 100%;
    margin: auto;
  }
  .cable-layout svg {
    max-height: 400px;
  }
  .cable-layout > div:nth-child(2) {
    padding: 6px 0;
  }
  .construction-reference {
    align-items: flex-start;
  }
  .construction-reference a {
    white-space: normal;
    min-width: 70px;
  }
  .long-layer-info {
    display: block;
  }
  .long-layer-info span {
    display: block;
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 18px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 19px;
  }
  main {
    padding: 25px 16px 0;
  }
  h1 {
    font-size: 32px;
    line-height: 1.13;
  }
  .intro {
    gap: 12px;
  }
  .intro .quiet {
    font-size: 0;
    min-width: 32px;
  }
  .intro .quiet:first-letter {
    font-size: 17px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading > p {
    font-size: 12px;
  }
  .construction-reference {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .construction-reference .reference-index {
    width: 100%;
    font-size: 9px;
  }
  .construction-reference p {
    flex: 1;
    min-width: 190px;
    font-size: 11px;
  }
  .construction-reference a {
    font-size: 10px;
    min-width: 0;
  }
  .section-tabs {
    gap: 4px;
    margin-top: 15px;
  }
  .section-tabs button {
    font-size: 11px;
    padding: 10px 9px;
  }
  .repair-insets {
    grid-template-columns: 1fr;
  }
  .repair-insets > div + div {
    border-left: 0;
    border-top: 1px solid #314a59;
  }
  .technical-legend {
    padding: 12px;
    gap: 12px;
    font-size: 9px;
  }
  .projection-controls {
    gap: 4px;
  }
  .projection-controls > span {
    display: none;
  }
  .projection-controls button {
    flex: 1;
    padding: 9px 6px;
    font-size: 10px;
  }
  .playback {
    padding: 13px;
    gap: 6px;
  }
  .playback button {
    padding: 8px;
    font-size: 10px;
  }
  .story-panel {
    padding: 20px;
  }
  .story-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }
  .story-steps button {
    min-height: 72px;
    font-size: 11px;
  }
  .story-steps span {
    margin-bottom: 4px;
  }
  .layer-buttons button {
    flex: 1 1 44%;
    font-size: 11px;
  }
  .stage-controls label {
    white-space: normal;
  }
  .stage-controls {
    gap: 10px;
    padding: 12px;
  }
  .stage-controls input {
    flex: 1 0 100%;
  }
  .stage-controls select {
    max-width: 100px;
  }
  .long-layer-info {
    padding: 15px;
  }
  .evidence-line {
    font-size: 10px;
    line-height: 1.6;
  }
}
.long-layer-info {
  flex-wrap: wrap;
  gap: 12px 22px;
}
.long-layer-info label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}
.long-layer-info select {
  font: inherit;
  font-size: 12px;
  color: var(--white);
  background: var(--control);
  border: 1px solid var(--line);
  padding: 8px;
  max-width: 100%;
}
.diagram-toolbar {
  display: none;
  background: #10202b;
  color: #9db6c5;
  padding: 10px 12px;
  border-bottom: 1px solid #314a59;
  font-size: 10px;
}
.diagram-toolbar button {
  background: #19313e;
  color: #d4e4e9;
  border-color: #395564;
  font-size: 11px;
  padding: 7px 10px;
}
.diagram-toolbar span {
  display: none;
}
.diagram-toolbar:has([aria-pressed="true"]) span {
  display: block;
  line-height: 1.5;
  margin-top: 7px;
}
@media (max-width: 850px) {
  .diagram-toolbar {
    display: block;
  }
  .vector-scene.zoomed,
  .zoomed .vector-scene {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .vector-scene.zoomed svg {
    min-width: 950px;
  }
  .zoomed #repair-visual svg {
    min-width: 800px;
  }
  .zoomed #repair-plan svg,
  .zoomed #repair-detail svg {
    min-width: 600px;
  }
}
@media (max-width: 600px) {
  .long-layer-info label {
    display: block;
  }
  .long-layer-info select {
    display: block;
    margin-top: 8px;
    width: 100%;
  }
  .long-layer-info strong {
    display: block;
  }
}
/* V3: scene-first workspace and evidence close to the drawing. */
.lab-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 22px;
}
.lab-toolbar button {
  font-size: 12px;
  padding: 9px 14px;
}
#notes-toggle {
  display: none;
}
#asset-status {
  padding: 15px;
  border: 1px solid #b15c42;
  color: var(--white);
}
.cable-3d-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29%;
  background: #0c1822;
}
.cable-3d-layout > svg {
  width: 100%;
  align-self: center;
  border-left: 1px solid #314a59;
}
#cable-3d-scene {
  height: 510px;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
#cable-3d-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.scene-stamp,
.scene-orbit {
  position: absolute;
  pointer-events: none;
  color: #9db6c5;
  font:
    10px Plex,
    monospace;
  letter-spacing: 0.07em;
  left: 24px;
}
.scene-stamp {
  top: 22px;
}
.scene-orbit {
  bottom: 20px;
}
#cable-3d-fallback {
  position: absolute;
  z-index: 2;
  inset: 50px 25px auto;
  background: #152d3c;
  color: #e8f2f4;
  padding: 20px;
}
.cable-3d-controls {
  flex-wrap: wrap;
}
.cable-3d-controls label {
  display: block;
  font-size: 11px;
  flex: 1;
  min-width: 130px;
}
.cable-3d-controls label:first-child {
  min-width: 70px;
  flex: 0;
}
.cable-3d-controls input {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.cable-3d-controls output {
  float: right;
  color: #edbe96;
}
.cable-3d-controls select {
  margin: 0 0 0 10px;
}
.cable-3d-controls button {
  font-size: 11px;
}
.cable-3d-note {
  color: #9db6c5;
  font-size: 11px;
  padding: 0 20px 15px;
  margin: 0;
  background: #10202b;
}
.review-drawer {
  position: fixed;
  z-index: 60;
  inset: 0 0 0 auto;
  width: min(470px, 100%);
  height: 100dvh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--panel);
  color: var(--white);
  padding: 26px;
  box-shadow: -20px 0 70px #0003;
}
.review-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.review-heading h2 {
  font-size: 24px;
}
.review-heading button {
  margin-left: auto;
  font-size: 24px;
  line-height: 1;
  padding: 8px 12px;
}
.review-drawer article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.review-drawer h3 {
  font-size: 17px;
  margin: 9px 0;
}
.review-drawer p {
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0;
}
.review-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--aqua);
}
.review-drawer .review-limit {
  color: var(--muted);
}
.review-drawer a,
.review-drawer small {
  font-size: 11px;
  line-height: 1.7;
}
.review-drawer label {
  font-size: 12px;
  display: block;
  margin-top: 24px;
}
.review-drawer textarea,
.review-drawer input {
  background: var(--control);
  color: var(--white);
  border: 1px solid var(--line);
  font:
    13px Plex,
    sans-serif;
  padding: 12px;
  width: 100%;
  margin: 8px 0;
  resize: vertical;
}
.review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.review-actions button {
  font-size: 12px;
}
.geometry-ledger {
  font-variant-numeric: tabular-nums;
  padding: 15px;
  background: var(--control);
  border: 1px solid var(--line);
}
.geometry-check {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.geometry-check summary {
  cursor: pointer;
  color: var(--muted);
}
#review-status {
  min-height: 20px;
  color: var(--aqua);
}
body.atelier {
  height: 100dvh;
  overflow: hidden;
}
.atelier > header,
.atelier .intro,
.atelier .level-brief,
.atelier main > footer,
.atelier body > footer {
  display: none;
}
.atelier main {
  max-width: none;
  height: 100dvh;
  margin: 0;
  padding: 12px 20px;
  overflow: auto;
}
.atelier .workspace-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--bg);
  margin: 0;
  padding: 0 0 8px;
}
.atelier .workspace-bar > label,
.atelier #training {
  display: none;
}
.atelier .lab-toolbar {
  margin: 5px 0 12px;
  position: sticky;
  top: 48px;
  z-index: 14;
  background: var(--bg);
  padding: 5px 0;
}
.atelier #notes-toggle {
  display: inline-block;
}
.atelier .workshop {
  padding: 0;
  margin: 0;
}
.atelier .section-heading,
.atelier .construction-reference,
.atelier .cable-references,
.atelier .cable-3d-note {
  display: none;
}
.atelier .section-tabs {
  margin: 0 0 10px;
}
.atelier .repair-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.atelier .story-panel {
  display: none;
}
.atelier.atelier-notes .story-panel {
  display: block;
}
.atelier.atelier-notes .repair-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.atelier #repair-multiview {
  height: calc(100dvh - 330px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.atelier #repair-visual {
  flex: 1;
  min-height: 0;
}
.atelier #repair-visual svg {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.atelier .repair-insets {
  height: 28%;
  min-height: 0;
}
.atelier .repair-insets svg {
  height: 100%;
  width: 100%;
}
.atelier #repair-multiview[data-view="profile"] .repair-insets {
  display: none;
}
.atelier #repair-multiview[data-view="plan"] #repair-visual,
.atelier #repair-multiview[data-view="detail"] #repair-visual {
  display: none;
}
.atelier #repair-multiview[data-view="plan"] .repair-insets,
.atelier #repair-multiview[data-view="detail"] .repair-insets {
  height: 100%;
}
.atelier .technical-legend {
  padding: 8px 16px;
}
.atelier .playback {
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.atelier .story-steps {
  margin: 10px 0;
}
.atelier #cable-3d-scene {
  height: calc(100dvh - 310px);
  min-height: 300px;
}
.atelier .long-layer-info {
  padding: 10px 14px;
  margin-top: 0;
  font-size: 12px;
}
.atelier .long-layer-info label {
  padding-bottom: 8px;
}
.atelier .long-layer-info > span {
  display: none;
}
.atelier .diagram-toolbar {
  display: none;
}
.atelier .lab {
  margin-top: 0;
}
.atelier #scene {
  height: calc(100dvh - 330px);
  min-height: 300px;
}
@media (max-width: 850px) {
  .cable-3d-layout {
    grid-template-columns: minmax(0, 1fr) 30%;
  }
  #cable-3d-scene {
    height: 380px;
  }
  .cable-3d-controls {
    gap: 14px;
  }
  .atelier.atelier-notes .repair-layout {
    grid-template-columns: 1fr;
  }
  .atelier.atelier-notes .story-panel {
    position: fixed;
    z-index: 30;
    right: 0;
    top: 100px;
    bottom: auto;
    max-height: calc(100dvh - 190px);
    width: min(350px, 90vw);
    overflow: auto;
    box-shadow: -10px 0 50px #0005;
  }
  .atelier .story-steps {
    display: flex;
    overflow: auto;
  }
  .atelier .story-steps button {
    min-width: 115px;
    min-height: 55px;
    padding: 8px;
    font-size: 10px;
  }
  .atelier .story-steps span {
    display: none;
  }
}
@media (max-width: 600px) {
  .lab-toolbar {
    gap: 5px;
    flex-wrap: wrap;
  }
  .lab-toolbar button {
    font-size: 11px;
    padding: 9px;
  }
  .lab-toolbar .theme-control {
    flex: 1 0 100%;
    justify-content: space-between;
    margin: 3px 0 0;
  }
  .lab-toolbar .theme-control select {
    flex: 1;
    max-width: 235px;
    min-height: 36px;
  }
  .cable-3d-layout {
    grid-template-columns: 1fr;
    position: relative;
  }
  .cable-3d-layout > svg {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 110px;
    border: 1px solid #314a59;
    pointer-events: none;
  }
  .scene-orbit {
    font-size: 9px;
    left: 15px;
    bottom: 12px;
    max-width: 50%;
  }
  .scene-stamp {
    left: 15px;
    top: 15px;
    font-size: 9px;
  }
  #cable-3d-scene {
    height: 370px;
  }
  .cable-3d-controls label {
    min-width: 110px;
  }
  .cable-3d-controls label:first-child {
    flex: 0 0 100%;
  }
  .review-drawer {
    padding: 20px;
  }
  .atelier main {
    padding: 8px;
  }
  .atelier .workspace-bar {
    padding-bottom: 4px;
  }
  .atelier #tabs {
    gap: 4px;
  }
  .atelier #tabs button {
    padding: 9px;
    font-size: 11px;
  }
  .atelier .lab-toolbar {
    top: 42px;
    gap: 4px;
  }
  .atelier .lab-toolbar button {
    padding: 7px;
    font-size: 10px;
  }
  .atelier .section-tabs button {
    font-size: 10px;
    padding: 8px;
  }
  .atelier .projection-controls {
    margin: 6px 0;
  }
  .atelier #repair-multiview {
    height: calc(100dvh - 290px);
    min-height: 240px;
  }
  .atelier .repair-insets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 25%;
  }
  .atelier .technical-legend {
    font-size: 8px;
    gap: 8px;
    padding: 7px;
  }
  .atelier .playback {
    padding: 10px 6px;
  }
  .atelier #cable-3d-scene {
    height: calc(100dvh - 345px);
    min-height: 240px;
  }
  .atelier .cable-3d-controls {
    padding: 9px;
    gap: 8px;
  }
  .atelier .cable-3d-controls label:first-child {
    flex: 0;
    min-width: 70px;
  }
  .atelier .long-layer-info strong {
    font-size: 12px;
  }
}

@media (min-width: 1100px) {
  .atelier #repair-multiview[data-view="overview"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30%;
  }
  .atelier #repair-multiview[data-view="overview"] .repair-insets {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #314a59;
  }
  .atelier #repair-multiview[data-view="overview"] .repair-insets > div {
    height: 50%;
    border: 0;
  }
  .atelier #repair-multiview[data-view="overview"] .repair-insets > div + div {
    border-top: 1px solid #314a59;
  }
  .cable-3d-controls label:first-child {
    min-width: 140px;
  }
  .cable-3d-controls label:first-child select {
    width: 75px;
  }
}
.atelier #repair-workshop > .method-note,
.atelier #field-cases {
  display: none;
}
.atelier #repair-multiview {
  height: calc(100dvh - 365px);
}
.atelier .story-steps {
  margin: 8px 0;
  display: flex;
  overflow: auto;
}
.atelier .story-steps button {
  min-height: 44px;
  padding: 8px;
  font-size: 10px;
  min-width: 105px;
  flex: 1;
}
.atelier .story-steps span {
  display: none;
}
@media (max-width: 600px) {
  .atelier #repair-multiview {
    height: calc(100dvh - 320px);
  }
}
@media (min-width: 601px) {
  .atelier #repair-multiview {
    height: calc(100dvh - 400px);
  }
}
@media (max-width: 600px) {
  .atelier #repair-multiview {
    height: auto;
    min-height: 0;
  }
  .atelier #repair-visual {
    flex: none;
  }
  .atelier #repair-visual svg {
    height: auto;
  }
  .atelier .repair-insets {
    height: auto;
  }
  .atelier .repair-insets svg {
    height: auto;
  }
  .atelier .diagram-toolbar {
    display: block;
  }
  .atelier .diagram-toolbar span {
    display: none;
  }
  .atelier #repair-multiview.zoomed {
    max-height: calc(100dvh - 400px);
    overflow: auto;
  }
  .atelier #repair-multiview.zoomed #repair-visual svg {
    height: 400px;
  }
}
@media (max-width: 600px) {
  .atelier #cable-3d-scene {
    height: min(48dvh, 400px);
  }
  .atelier .cable-3d-controls label:first-child {
    flex: 0 0 100%;
  }
  .atelier .cable-3d-controls label:first-child select {
    width: 80px;
  }
  .atelier .cable-3d-controls label:not(:first-child) {
    flex: 1 1 42%;
    min-width: 125px;
  }
  .atelier .cable-3d-controls input {
    width: 100%;
  }
}

/* V4: one active action, a legible detail, and quiet material surfaces. */
.repair-action {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
  gap: 8px 24px;
  align-items: baseline;
  margin: 0 0 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.repair-action strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.repair-action span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.atelier .repair-action {
  margin: 0 0 12px;
  padding: 10px 0;
}
#repair-detail {
  background: #0c1721;
}
@media (min-width: 1100px) {
  #repair-multiview[data-view="overview"] {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  }
  #repair-multiview[data-view="overview"] .repair-insets {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  #repair-multiview[data-view="overview"] #repair-plan {
    flex: 0 0 36%;
    min-height: 0;
    border-bottom: 1px solid #314a59;
  }
  #repair-multiview[data-view="overview"] #repair-detail {
    flex: 1;
    min-height: 0;
  }
  #repair-multiview[data-view="overview"] .repair-insets svg {
    width: 100%;
    height: 100%;
  }
  .atelier #repair-multiview[data-view="overview"] {
    height: calc(100dvh - 370px);
    min-height: 340px;
  }
}
@media (max-width: 1099px) {
  #repair-multiview[data-view="overview"] .repair-insets {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
  }
}
@media (max-width: 600px) {
  .repair-action {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 10px;
  }
  .repair-action strong {
    font-size: 14px;
  }
  .repair-action span {
    font-size: 11px;
  }
  #repair-multiview[data-view="overview"] .repair-insets {
    grid-template-columns: 1fr;
  }
  #repair-multiview[data-view="overview"] #repair-plan {
    display: none;
  }
  #repair-detail svg {
    min-width: 0;
  }
  .atelier #repair-multiview[data-view="detail"] {
    height: auto;
  }
  .cable-3d-layout > svg {
    width: 132px;
  }
}

@media (min-width: 1100px) {
  .atelier #repair-workshop > .section-tabs {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 24px 8px 0;
  }
  .atelier #repair-workshop > .projection-controls {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 0 8px;
  }
  .atelier #repair-multiview[data-view="overview"] {
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  }
}

@media (min-width: 1100px) {
  .atelier #repair-multiview[data-mode="joint"] {
    height: calc(100dvh - 310px);
    min-height: 360px;
  }
}

@media (min-width: 601px) {
  .atelier #repair-multiview[data-view="detail"] .repair-insets > div,
  .atelier #repair-multiview[data-view="plan"] .repair-insets > div {
    height: 100%;
    min-height: 0;
  }
  .atelier #repair-multiview[data-view="detail"] .repair-insets svg,
  .atelier #repair-multiview[data-view="plan"] .repair-insets svg {
    height: 100%;
    width: 100%;
  }
}

/* Shared Marine bar (/marine/shared/marine.css) replaces the former header layout. */
body > header.marine-bar {
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 0 32px;
  justify-content: flex-start;
  gap: 20px;
  border-color: var(--mb-line);
}
@media (max-width: 760px) {
  body > header.marine-bar {
    padding: 8px 18px;
    gap: 2px 14px;
  }
}
.lab-toolbar .marine-bar__select {
  margin-left: auto;
}
