/* CS2 Fieldnotes / equipment interface. Shared by the app and portable reports. */
:root {
  color-scheme: light;
  --bg: #ece5d6;
  --panel: #f7f4ed;
  --panel2: #e7e3d9;
  --line: #bcb9af;
  --text: #292d2c;
  --ink: #292d2c;
  --muted: #656a65;
  --accent: #4c5a68;
  --blue: #4c5a68;
  --cyan: #7a7f4e;
  --orange: #80622f;
  --red: #d63a2c;
  --signal: #d63a2c;
  --radius: 3px;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); }
::selection { background: #d2a85e66; color: #292d2c; }
a { color: var(--accent); text-underline-offset: 4px; }
button, .button, .upload, input, select, textarea { border-radius: 2px; }
button, .button, .upload {
  background: var(--panel); border: 1px solid #a8aba3; color: var(--ink);
  min-height: 36px; box-shadow: 0 2px 0 #292d2c0d;
  transition: background .12s, border-color .12s;
}
button:hover, .button:hover, .upload:hover { background: #e6e3d9; border-color: #656a65; }
button.active, .tabs button.active, .segmented button.active, .teaching-tabs [aria-pressed=true] {
  background: #dce0da; border-color: #727c7b; color: #293633;
}
button.primary, .button.primary, .primary, .upload, #arm, #review-form button[type=submit] {
  color: #fffaf1; background: var(--signal); border-color: #b42f24; font-weight: 700;
}
.primary:hover, button.primary:hover, .button.primary:hover, .upload:hover, #arm:hover { background: #bc3025; color: white; }
button.secondary, .ghost { background: transparent; color: var(--ink); border-color: var(--line); }
button:disabled { opacity: .48; }
input, select, textarea { background: #fffdf7; color: var(--ink); border-color: #aeafa5; accent-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #7a7d75; }
input[type=checkbox], input[type=range] { accent-color: var(--accent); }
input[type=file]::file-selector-button { border: 1px solid var(--line); background: var(--panel2); color: var(--ink); padding: 6px 10px; margin-right: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { color: var(--ink); }
h1 { font-weight: 800; letter-spacing: -.045em; }
.eyebrow { color: #5b665f; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.muted, small, .field>span { color: var(--muted); }
.panel, .card, .stats>div, .role-summary, .asset-card, .action-card {
  background-color: var(--panel); border-color: var(--line); border-radius: 3px;
  box-shadow: 0 2px 0 #a9a69633;
}
.panel { position: relative; }
.panel::after { content: ""; position: absolute; width: 4px; height: 4px; border: 1px solid #aaa99e; border-radius: 50%; top: 6px; right: 6px; pointer-events: none; }
.panel-top, .panel-title { border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.panel-top h2 { font-size: 14px; letter-spacing: .02em; }
.panel-title { background: #efeee6; }
.pill, .pill.blue, .pill.gray, .pill.red, .test-tag, .coverage-badge, .status-chips span, .chips span {
  border: 1px solid #b5b8a7; border-radius: 2px; color: #555f52; background: #eeeee3;
}
.pill.red, .status-chips .warning, .warn { color: #805b34; }
.counter, .stat-number, .stats strong, .cards strong { font-family: var(--mono); color: var(--ink); }
.notice, .notice.warn, .notice.error, .action-evidence { background: #e9e7dc; border-color: #7a7f4e; color: #565a48; border-radius: 0; }
.notice.error, .error-text, #error { color: #a0332a; }
.notice.error { border-color: var(--signal); }
.notice:empty { display: none; }
.success-text, .checklist li.ok, .good { color: #626a42; }
.checklist li.bad, .danger { color: #a0332a; }
.record.active, .variant-card.selected, tr.selected { background: #e1e4da; box-shadow: inset 3px 0 #7a7f4e; border-color: #7a7f4e; }
.record:hover, .variant-card:hover { background: #eaeae1; }
.dropzone, .dropzone.drag { background: #eeeee4; border-color: #929982; border-radius: 2px; }
.steps span, .action-line, .code, pre, code, kbd { background: #e8e8df; color: var(--ink); border-color: var(--line); border-radius: 2px; }
.steps span.on { border-color: #7a7f4e; color: #565e3c; }
.lane-index { background: #4c5a68; color: #fffdf7; border-radius: 2px; font-family: var(--mono); }
th, .matrix th { background: #eeede4; color: #555f57; }
td, th, .backup-table td, .backup-table th { border-color: var(--line); }
.empty, .teaching-actions { border-color: var(--line); border-radius: 2px; }
details summary { color: var(--accent); }
.progress { background: #d4d6ca; }
.progress i { background: #7a7f4e; }
.map-canvas { background-color: #e2e3d9; background-image: linear-gradient(#858b7d22 1px,transparent 1px),linear-gradient(90deg,#858b7d22 1px,transparent 1px); border-radius: 2px; }
.map-pin { background: #f8f5e9; color: #283429; border-color: #4c5a68; }
.map-pin.target { background: #7a7f4e; color: white; }
dialog { background: var(--panel); color: var(--ink); border-color: #888d83; border-radius: 3px; box-shadow: 8px 8px 0 #252b2940; }
dialog::backdrop { background: #292d2c99; backdrop-filter: none; }
#toast { background: #303a35; color: #fffaf0; border-radius: 2px; }
.station-skip { position: fixed; left: 16px; top: -70px; z-index: 300; background: var(--panel); padding: 10px 18px; }
.station-skip:focus { top: 10px; }

/* Mission identity and the shared function directory. */
.mission-header, .site-header {
  position: relative; display: flex; align-items: center; gap: 30px;
  padding: 19px 32px; background: #f4f1e8; border-bottom: 1px solid #9fa298;
}
.mission-header::before, .site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg,#4c5a68 0 25%,#7a7f4e 25% 50%,#d2a85e 50% 75%,#a8432f 75%);
}
.mission-header .station-brand, .site-header .brand {
  display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none;
  font-size: 19px; font-weight: 800; line-height: 1.2; margin: 0; white-space: nowrap;
}
.mission-header .station-brand small, .site-header .brand small {
  display: block; font: 9px/1.8 var(--mono); letter-spacing: .13em; color: var(--muted); margin-top: 4px;
}
.mission-mark, .sidebar .brand-mark {
  display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px;
  font: 19px var(--mono); border: 1px solid #4c5a68; border-radius: 50%;
  color: #4c5a68; outline: 1px solid #4c5a6870; outline-offset: -5px; background: transparent;
}
.mission-context { margin-left: auto; color: var(--muted); font: 10px/1.8 var(--mono); letter-spacing: .07em; }
.station-directory { position: static; margin-left: auto; }
.station-directory>summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid #92988a; font: 12px/1.4 var(--sans); color: var(--ink); background: #eeeee5; white-space: nowrap; }
.station-directory>summary::-webkit-details-marker { display: none; }
.station-directory>summary::after { content: "+"; font: 16px var(--mono); margin-left: 20px; }
.station-directory[open]>summary { background: #303a35; color: #fffaf0; }
.station-directory[open]>summary::after { content: "−"; }
.station-directory-panel {
  position: absolute; left: 32px; right: 32px; top: calc(100% - 1px); z-index: 60;
  padding: 24px; background: #f7f4ed; border: 1px solid #92988a; box-shadow: 0 12px 22px #252b2924;
}
.station-directory-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; gap: 12px; }
.station-directory-heading strong { font-size: 17px; }
.station-directory-heading span { font: 10px var(--mono); color: var(--muted); }
.station-directory nav.station-directory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; width: auto; margin: 0; padding: 0; border: 0; overflow: visible; }
.station-directory-grid section { min-width: 0; }
.station-directory-grid h2 { margin: 0 0 12px; font: 11px var(--mono); color: #686f5a; }
.station-directory-grid a { display: block; padding: 9px 0; border-bottom: 1px solid #d5d3c7; text-decoration: none; color: var(--ink); font-size: 13px; }
.station-directory-grid a:hover { background: #e9eade; }
.station-directory-grid a[aria-current=page] { font-weight: 700; }
.station-directory-grid a[aria-current=page]::after { content: " ←"; }
.station-directory-grid small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; font-weight: 400; }
.station-directory-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.station-standalone { font: 10px var(--mono); color: var(--muted); margin-left: auto; }

/* Player console: observation first, distinct bays for search and navigation. */
.site-header nav { gap: 14px; }
.site-header nav button { min-height: 40px; border-radius: 0; font-size: 13px; }
.site-header nav button.active { background: transparent; color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.site-header .editor-link { margin-left: 0; color: var(--muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
body[data-station=player] main { max-width: 1680px; padding: 30px 32px 48px; }
.intro { position: relative; min-height: 192px; margin: 0 0 26px; padding: 14px 0 22px; align-items: stretch; border-bottom: 1px solid #aeb0a4; }
.intro>div:first-child { padding: 2px 0; }
.intro h1 { font-size: clamp(28px,3.2vw,47px); font-weight: 800; line-height: 1.3; letter-spacing: -.045em; margin: 14px 0 14px; }
.intro h1 span { color: #737b66; }
.intro p:not(.eyebrow) { font-size: 13px; margin-bottom: 0; }
.intro .eyebrow { letter-spacing: .17em; font-size: 10px; }
.intro::after { content: ""; position: absolute; right: 8px; bottom: 11px; width: 54px; height: 1px; background: #9ba18a30; box-shadow: -8px 3px #9ba18a22, 12px -4px #ffffff70; transform: rotate(-13deg); pointer-events: none; }
.mission-plate { width: 310px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-around; gap: 20px; padding: 16px 22px; border: 1px solid #aeb0a4; background: #e4e3d7; position: relative; }
.mission-plate::before, .mission-plate::after { content: "+"; position: absolute; font: 12px var(--mono); color: #999d90; }
.mission-plate::before { left: 5px; top: 2px; }
.mission-plate::after { right: 5px; bottom: 2px; }
.mission-emblem { position: relative; width: 102px; height: 102px; flex-shrink: 0; border: 1px solid #8b9380; border-radius: 50%; display: grid; place-items: center; }
.mission-emblem::before { content: ""; position: absolute; inset: 9px; border: 1px dashed #959c88; border-radius: 50%; }
.mission-emblem::after { content: ""; position: absolute; left: -10px; right: -10px; top: 50%; border-top: 1px solid #a1a692; transform: rotate(-38deg); }
.mission-emblem b { font: bold 36px var(--mono); color: #4c5a68; background: #e4e3d7; z-index: 1; padding: 0 5px; }
.mission-plate-copy { font: 10px/1.8 var(--mono); color: #69715f; }
.mission-plate-copy strong { display: block; font: 800 24px/1.1 var(--sans); letter-spacing: -.05em; color: #4c5a68; margin: 7px 0 12px; }
.mission-stripes { display: flex; width: 105px; height: 10px; margin: 10px 0; transform: rotate(-2deg); box-shadow: 1px 2px 0 #6c6d5b24; }
.mission-stripes i { flex: 1; background: #4c5a68; }
.mission-stripes i:nth-child(2) { background: #7a7f4e; }
.mission-stripes i:nth-child(3) { background: #d2a85e; }
.mission-stripes i:nth-child(4) { background: #a8432f; }
.pencil-note { position: absolute; bottom: 10px; right: 22px; font: italic 12px "Segoe Print", "KaiTi", cursive; color: #6f7668; transform: rotate(-5deg); }
.mission-plate-copy .plate-serial { font-size: 9px; letter-spacing: .09em; }
.launch-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #aeb0a4; margin: 0 0 27px; background: #f1eee5; }
.launch-strip a { display: grid; grid-template-columns: 28px 1fr 16px; align-items: center; gap: 10px; padding: 15px 17px; text-decoration: none; color: var(--ink); border-right: 1px solid #bfc1b5; min-width: 0; }
.launch-strip a:last-child { border-right: 0; }
.launch-strip a:hover { background: #e1e4d9; }
.launch-strip a>span:first-child { font: 12px var(--mono); color: #757e6b; }
.launch-strip strong { font-size: 13px; display: block; }
.launch-strip small { display: block; font-size: 10px; margin-top: 4px; }
.launch-strip b { font-size: 17px; font-weight: 400; }
.launch-strip a:first-child b { background: var(--signal); color: #fffaf1; width: 23px; height: 23px; display: grid; place-items: center; font-size: 14px; margin-left: -7px; }
.console-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.console-heading h2 { font-size: 15px; font-weight: 700; }
.console-heading h2 span { font: 10px var(--mono); color: var(--muted); margin-right: 10px; }
.console-heading .coverage-badge { font: 10px var(--mono); border: 0; background: transparent; padding: 0; }
.search-modes { gap: 8px; margin-bottom: 18px; }
.search-modes button { position: relative; background: #f2efe6; border: 1px solid #b8bcad; padding: 12px 18px; border-radius: 2px; font: 11px var(--mono); box-shadow: none; }
.search-modes button span { font: 600 14px var(--sans); }
.search-modes button small { font: 11px var(--sans); margin-top: 7px; }
.search-modes button.active { background: #dee2d8; border-color: #77816b; box-shadow: inset 0 3px #7a7f4e; }
.search-modes button.active::after { content: "●"; position: absolute; right: 12px; top: 13px; font-size: 7px; color: #657147; }
.workspace { gap: 12px; }
body[data-station=player] .workspace { grid-template-columns: minmax(215px,.9fr) minmax(340px,1.65fr) minmax(255px,1fr); }
.radar { background: #d9ded4; border: 1px solid #aeb5a7; border-radius: 2px; }
.radar img { filter: saturate(.62); }
.map-marker { background: #f6f1da; color: #303b32; border: 1px solid #697659; }
.map-marker.effect { background: #7a7f4e; color: white; }
.map-marker.node { background: #4c5a68; }
.map-marker.current { background: #fffaf1; color: #303b32; }
.map-marker.highlight { box-shadow: 0 0 0 3px #f8f4e0aa; }
.start-dot { color: #4c5a68; }
.effect-dot { color: #6b7245; }
#scene-shell { background: #e3e6dc; border: 1px solid #a8b09f; border-radius: 2px; }
.scene-empty { background-color: #e6e9e0; background-image: linear-gradient(#7b887015 1px,transparent 1px),linear-gradient(90deg,#7b887015 1px,transparent 1px); background-size: 28px 28px; padding: 24px; }
.scene-empty::before { content: "OBSERVATION BAY / 02"; position: absolute; top: 12px; left: 12px; font: 9px var(--mono); letter-spacing: .07em; color: #77826d; }
.scene-empty::after { content: "↑ THIS SIDE UP"; position: absolute; bottom: 12px; right: 12px; font: 9px var(--mono); color: #77826d; }
.crosshair { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid #9eaa93; border-radius: 50%; color: #919f85; font: 300 40px var(--mono); margin-bottom: 18px; }
.scene-empty h3 { font-size: 14px; font-weight: 500; }
.compass { background: #f3f0e5e8; color: #334333; border: 1px solid #a8b09f; border-radius: 1px; }
.compass:empty { display: none; }
.scene-hotspot { color: #29382b; background: #f4f1deed; box-shadow: 0 1px 3px #1114; border: 1px solid #7a7f4e; border-radius: 2px; }
.scene-hotspot.effect { background: #dce0caed; }
.scene-controls { gap: 6px; }
.scene-controls button { min-height: 32px; }
.search-label span { display: block; font: 10px var(--mono); color: var(--muted); margin-bottom: 7px; }
.filters select { background: #f1f1e7; }
.group-toggle { box-shadow: none; }
.variant-card { background: #f3f1e7; border-color: #c5c7ba; border-radius: 2px; }
.interaction-settings { border-top: 1px solid var(--line); padding-top: 10px; }
.action-phase { color: #556248; }
.teaching-actions { background: #eeeee3; }
body[data-station=player]>footer { border-top: 1px solid #aeb0a4; font: 10px/1.8 var(--mono); margin: 0; background: #e6e3d8; }
body[data-station=player]>footer::before { content: ""; display: block; width: 40px; height: 12px; flex-shrink: 0; margin-right: 16px; background: repeating-linear-gradient(-55deg,#4b5047 0 3px,#e6e3d8 3px 7px); }

/* Editing, lab and collection surfaces retain their own information layouts. */
.sidebar { background: #e4e3d8; border-color: #a9af9f; overflow-y: auto; padding-top: 28px; }
.sidebar .brand { color: var(--ink); margin-bottom: 25px; }
.sidebar-label { color: #6b7462; font: 10px var(--mono); letter-spacing: .04em; }
.sidebar nav { gap: 2px; }
.sidebar nav a { border-radius: 1px; color: #545e4e; padding: 9px 11px; font-size: 12px; }
.sidebar nav a.active { color: #303e2b; background: #d1d7c7; box-shadow: inset 3px 0 #7a7f4e; }
.sidebar nav a:hover { background: #d7ddcd; }
.sidebar nav .nav-section { font: 9px var(--mono); letter-spacing: .12em; color: #78816e; padding: 17px 11px 6px; border-top: 1px solid #bfc4b6; margin-top: 8px; }
.sidebar nav .nav-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.sidebar-foot, .sidebar-foot p { color: #687360; }
.local-dot { background: #7a7f4e; }
.topbar { background: #f1eee5; border-color: #b4b8aa; gap: 18px; }
.topbar .station-directory { margin-left: auto; }
.topbar .crumb { color: #69705f; }
.topbar .crumb b { color: #8c9482; }
.topbar .station-directory-panel { left: 235px; top: 72px; }
.shell main { padding-top: 32px; }
body[data-station=editor] .mission-header { display: none; }
body[data-station=lab]>header:not(.mission-header) { background: #ece5d6; border: 0; padding-bottom: 0; }
body[data-station=lab] .stat { background: #e4e6da; border-color: #7a7f4e; }
body[data-station=lab] .detail h3 { color: #626d47; }
body[data-station=lab] canvas, body[data-station=lab] pre { background: #e6e9df; border-color: #aab49d; border-radius: 2px; }
body[data-station=lab] .cards { border-block: 1px solid #b5bca9; padding: 18px 0; }
body[data-station=lab] .cards strong { color: #4c5a68; }
body[data-station=lab] #groups button { box-shadow: none; background: #f4f1e6; }
body[data-station=lab] #groups button.active { background: #dce2d1; }
body[data-station=lab] #action-reference { border-color: #b5bca9; border-radius: 2px; }
body[data-station=lab] #members { max-height: 560px; overflow: auto; border-block: 1px solid var(--line); margin-top: 12px; }
body[data-station=pilot] main>header { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
body[data-station=pilot] .current { border-color: #818c74; }
body[data-station=pilot] .row.active { color: #596640; }
body[data-station=pilot] .chips .done { background: #dce3cd; }
body[data-station=pilot] .chips .now { outline-color: #7a7f4e; }
body[data-station=pilot] .attempt { background: #ebeee2; color: var(--ink); border-color: #a9b49b; }
body[data-station=pilot] #simulation { color: #805b34; }
body[data-station=pilot] a { color: #4c5a68; }
.share-banner { background: #e6e9db; border: 1px solid #a3ae95; border-radius: 2px; color: var(--ink); }

@media (min-width: 1500px) { .intro { min-height: 215px; } }
@media (max-width: 1150px) {
  .site-header, .mission-header { gap: 18px; padding-inline: 24px; }
  .site-header nav { gap: 3px; }
  .site-header .editor-link { display: none; }
  body[data-station=player] main { padding-inline: 24px; }
  body[data-station=player] .workspace { grid-template-columns: 240px minmax(0,1fr); }
  .mission-plate { width: 260px; padding-inline: 18px; }
  .mission-emblem { width: 82px; height: 82px; }
  .launch-strip a { padding: 12px; grid-template-columns: 20px 1fr 10px; gap: 6px; }
  .topbar .station-directory-panel { left: 204px; }
}
@media (max-width: 800px) {
  .mission-context { display: none; }
  .station-directory nav.station-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .station-directory-panel { left: 16px; right: 16px; padding: 18px; max-height: 72vh; overflow: auto; }
  .topbar { position: relative; height: auto; min-height: 65px; flex-wrap: wrap; padding-block: 12px; }
  .topbar .station-directory-panel { left: 16px; top: 100%; }
  .sidebar nav .nav-section { display: none; }
  .sidebar nav { padding-bottom: 4px; }
  .mission-plate { width: 205px; gap: 12px; }
  .mission-emblem { display: none; }
  .intro h1 { font-size: 34px; }
  .launch-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .launch-strip a:nth-child(2) { border-right: 0; }
  .launch-strip a:nth-child(-n+2) { border-bottom: 1px solid #bfc1b5; }
}
@media (max-width: 650px) {
  .site-header, .mission-header { padding: 17px 16px 13px; gap: 12px; flex-wrap: wrap; }
  .mission-header .station-brand, .site-header .brand { font-size: 17px; }
  .mission-mark { width: 36px; height: 36px; font-size: 16px; }
  .site-header nav { border-top: 1px solid #cecec0; padding-top: 7px; margin-top: 4px; gap: 5px; }
  .site-header nav button { min-height: 40px; }
  .station-directory>summary { padding: 9px 10px; font-size: 11px; }
  .station-directory>summary::after { margin-left: 12px; }
  .station-directory-grid { gap: 18px; }
  .station-directory-heading span { display: none; }
  body[data-station=player] main { padding: 19px 14px 36px; }
  .intro { display: block; min-height: 0; padding: 5px 0 20px; margin-bottom: 18px; }
  .intro h1 { font-size: 32px; margin: 13px 0; }
  .intro p:not(.eyebrow) { font-size: 12px; max-width: 300px; line-height: 1.8; }
  .mission-plate { display: none; }
  .launch-strip { margin-bottom: 23px; }
  .launch-strip a { padding: 12px 10px; gap: 7px; }
  .launch-strip strong { font-size: 12px; }
  .launch-strip small { font-size: 10px; }
  .console-heading .coverage-badge { font-size: 9px; max-width: 145px; text-align: right; }
  .search-modes { gap: 5px; }
  .search-modes button { padding: 13px 7px 10px; min-height: 70px; font-size: 10px; line-height: 1.5; text-align: left; }
  .search-modes button span { display: block; margin: 4px 0 0; font-size: 11px; line-height: 1.5; }
  .search-modes button.active::after { right: 7px; top: 8px; font-size: 6px; }
  body[data-station=player] .workspace { display: flex; }
  .panel { padding: 15px; }
  .mission-header .station-standalone { font-size: 9px; }
  body[data-station=player]>footer { padding: 16px; }
  body[data-station=player]>footer::before { margin-bottom: 10px; }
  .page-heading { flex-wrap: wrap; }
  .page-heading .row { flex-wrap: wrap; }
  .topbar .row { margin-left: auto; }
  .topbar .crumb { font-size: 11px; }
  body[data-station=lab] .filters label { min-width: min(180px,100%); }
  body[data-station=lab] .detail dl, body[data-station=lab] #detail dl { grid-template-columns: 90px minmax(0,1fr); }
  body[data-station=pilot] .controls { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { button, .button, .upload { transition: none; } }
