.bm-machine {
  color-scheme: dark;
  --bm-ink: #ebf3f6;
  --bm-dim: #a8bcc8;
  --bm-line: #324753;
  --bm-accent: #88f0df;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--bm-ink);
  border: 1px solid var(--bm-line);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 52% 33%, #183443 0, #10212e 29%, #101c28 60%, #0b1722 95%);
  font: 400 1rem/1.45 "Inter", "Segoe UI", sans-serif;
}
.bm-machine *, .bm-machine *::before, .bm-machine *::after { box-sizing: border-box; }
.bm-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  padding: 1.05rem 1.4rem .25rem;
  font: 550 .76rem/1.3 ui-monospace, Consolas, monospace;
  letter-spacing: .045em;
  color: #c4d5df;
}
.bm-stage-label { display: inline-flex; align-items: center; gap: .5rem; }
.bm-stage-label:nth-child(2) { justify-self: center; }
.bm-stage-label:last-child { justify-self: end; }
.bm-stage-label i { width: 1.25rem; height: .19rem; border-radius: .3rem; background: #e4ac88; }
.bm-stage-label:nth-child(2) i { background: #7de7df; }
.bm-stage-label:last-child i { background: #b9a7ec; }
.bm-station:nth-child(3n) .bm-pilot { animation: bm-beacon 5s ease-in-out infinite alternate; }
.bm-screen-viz > path:last-child { animation: bm-monitor 6s ease-in-out infinite; }
.bm-window { position: relative; perspective: 1100px; }
.bm-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: rotateY(var(--bm-angle, 0deg)) rotateX(var(--bm-pitch, 0deg));
  transform-origin: 50% 62%;
  transition: transform .35s ease-out;
}
.bm-station, .bm-reactor, .bm-screen { cursor: pointer; }
.bm-station { -webkit-tap-highlight-color: transparent; }
.bm-station .bm-tile { transition: fill .2s, stroke .2s; }
.bm-station:hover .bm-tile, .bm-station.bm-active .bm-tile { stroke: #ffb682; fill: #53483f; }
.bm-station.bm-active .bm-icon, .bm-station:hover .bm-icon { stroke: #ffdeb1; }
.bm-station.bm-active .bm-pilot { fill: #fff5d0; }
.bm-bus-flow, .bm-selected-path { pointer-events: none; }
.bm-bus-flow { animation: bm-bus 5.8s linear infinite; }
.bm-selected-path { animation: bm-feed 3s linear infinite; }
.bm-beacon { animation: bm-beacon 4s ease-in-out infinite; }
.bm-field { animation: bm-field 4.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.bm-gyroscope { animation: bm-gyro 8s ease-in-out infinite alternate; transform-origin: 0 162px; }
.bm-bot-arm { animation: bm-service var(--bm-beat) ease-in-out var(--bm-shift) infinite alternate; transform-origin: 4px -12px; }
.bm-bot:nth-of-type(3n) .bm-bot-body { animation: bm-dock 3.5s ease-in-out var(--bm-shift) infinite alternate; }
.bm-bot:nth-of-type(4n) .bm-bot-arm { animation-name: bm-lift; }
.bm-bot:nth-of-type(5n) .bm-bot-arm { animation-duration: 2.7s; }
.bm-console {
  display: grid;
  grid-template-columns: minmax(12.5rem, .74fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 1.2rem 2rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--bm-line);
  background: linear-gradient(115deg, #192a37, #122431 75%);
}
.bm-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem;
  align-items: stretch;
}
.bm-control label {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.35;
  color: #d4e3eb;
}
.bm-control select, .bm-control button {
  appearance: none;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  font: inherit;
  font-size: .88rem;
  color: var(--bm-ink);
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid #526877;
  border-radius: .42rem;
  background: #101e2a;
  cursor: pointer;
}
.bm-control select {
  padding-right: 1.65rem;
  background-image: linear-gradient(45deg, transparent 51%, #b3d5db 52%), linear-gradient(135deg, #b3d5db 49%, transparent 50%);
  background-position: calc(100% - .82rem) 51%, calc(100% - .58rem) 51%;
  background-size: .25rem .25rem;
  background-repeat: no-repeat;
}
.bm-control option, .bm-control optgroup { background: #101e2a; color: var(--bm-ink); }
.bm-control button { color: #aff9ed; background: #1b3441; border-color: #496a77; }
.bm-control button:hover, .bm-control select:hover { border-color: #86b7bd; }
.bm-control :focus-visible { outline: 2px solid #99f5ed; outline-offset: 3px; }
.bm-narrative { min-width: 0; }
.bm-narrative p { padding-left: .74rem; margin: 0; color: #bcccd5; border-left: 2px solid #c79978; font-size: .9rem; line-height: 1.5; font-weight: 420; }
.bm-narrative p + p { margin-top: .35rem; color: #e1eff3; border-color: #73d4ce; }
.bm-telemetry {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .5rem;
  border-top: 1px solid #2c414e; background: #101c27;
  padding: .6rem 1.4rem; color: #aec0cd;
  font: 500 .77rem/1.3 ui-monospace, Consolas, monospace;
}
.bm-metrics { color: #a8e9df; }
.bm-transfer .bm-screen-viz > .bm-wave { animation: bm-trace 1.4s ease-out both; }
.bm-transfer .bm-gyroscope { animation: bm-discharge 1.4s cubic-bezier(.3,.1,.2,1) both; }
.bm-transfer .bm-bus-flow { animation-duration: 1.4s; stroke-width: 4; }
.bm-transfer .bm-selected-path { animation-duration: .9s; }
.bm-transfer .bm-screen rect:first-of-type { animation: bm-screen 1.5s ease-out; }
.bm-machine[data-still="true"] *, .bm-machine[data-still="true"] *::before { animation-play-state: paused !important; }
.bm-machine[data-still="true"] .bm-art { transform: none; transition: none; }
.bm-machine[data-still="true"] .bm-wave, .bm-machine[data-still="true"] .bm-gyroscope { animation: none; }
@keyframes bm-service { from { transform: rotate(-19deg); } to { transform: rotate(26deg); } }
@keyframes bm-lift { from { transform: rotate(7deg); } to { transform: rotate(-53deg); } }
@keyframes bm-dock { from { transform: translate(0, 0); } to { transform: translate(1px, -1.5px); } }
@keyframes bm-feed { to { stroke-dashoffset: -36; } }
@keyframes bm-bus { to { stroke-dashoffset: -36; } }
@keyframes bm-beacon { 0%, 100% { opacity: .56; } 50% { opacity: 1; } }
@keyframes bm-field { from { opacity: .65; transform: scaleX(.93); } to { opacity: 1; transform: scaleX(1.04); } }
@keyframes bm-gyro { from { transform: rotate(-12deg); } to { transform: rotate(18deg); } }
@keyframes bm-trace { from { stroke-dasharray: 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100; stroke-dashoffset: 0; } }
@keyframes bm-discharge { 0% { transform: rotate(-9deg) scale(1); } 40% { transform: rotate(45deg) scale(1.17); } 100% { transform: rotate(350deg) scale(1); } }
@keyframes bm-screen { 0%,100% {stroke: #73a4b4;} 50% {stroke:#b4fff3;} }
@keyframes bm-monitor { 0%,100% {opacity:.78} 35%,65% {opacity:1} }
@media(max-width: 720px) {
  .bm-console { grid-template-columns: 1fr; gap: .85rem; padding: .9rem 1rem; }
  .bm-legend { padding: .85rem 1rem .2rem; gap: .35rem; font-size: .7rem; letter-spacing: 0; }
  .bm-stage-label { gap: .35rem; }
  .bm-stage-label i { width: .72rem; flex-shrink: 0; }
  .bm-telemetry { padding: .65rem 1rem; }
}
@media(max-width: 470px) {
  .bm-legend { padding-inline: .65rem; font: 500 .72rem/1.25 "Segoe UI",sans-serif; }
  .bm-stage-label { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .bm-stage-label:nth-child(2) { align-items: center; }
  .bm-stage-label:last-child { align-items: flex-end; }
  .bm-narrative p { font-size: .9rem; }
}
@media(prefers-reduced-motion: reduce) {
  .bm-art, .bm-station .bm-tile { transition: none; }
}

/* Separate moving parts are anchored to the pivots of their original machines. */
.bm-device-motion { animation: var(--bm-act) var(--bm-period, 3.6s) ease-in-out infinite; }
.bm-device-type { --bm-act: bm-keystroke; --bm-period: 1.7s; transform-origin: -6px -9px; }
.bm-device-drawer { --bm-act: bm-pull-drawer; }
.bm-device-dial { --bm-act: bm-dial-return; transform-origin: 2px -2px; }
.bm-device-paper { --bm-act: bm-fax-feed; }
.bm-device-platen { --bm-act: bm-carriage; }
.bm-device-map { --bm-act: bm-plot-stop; animation-timing-function: linear; }
.bm-device-hands { --bm-act: bm-minute-hand; --bm-period: 9s; transform-origin: 0 -8px; animation-timing-function: steps(12,end); }
.bm-device-raster { --bm-act: bm-crt-scan; --bm-period: 2.7s; }
.bm-device-radio { --bm-act: bm-radio-ping; transform-origin: -10px -19px; }
.bm-device-carbon { --bm-act: bm-carbon-lift; }
.bm-device-owner { --bm-act: bm-owner-phone; transform-origin: -5px -8px; }
.bm-device-page { --bm-act: bm-ledger-turn; transform-origin: 0 -5px; }
.bm-device-sum { --bm-act: bm-register-sum; --bm-period: 1.9s; }
.bm-device-catalogue { --bm-act: bm-tab-search; }
.bm-device-roll { --bm-act: bm-card-flip; transform-origin: 3px -5px; }
@keyframes bm-keystroke { 20%,62%,100% { transform: rotate(0deg); } 32%,48%,75% { transform: rotate(15deg); } }
@keyframes bm-pull-drawer { 0%,18%,100% { transform: translate(0,0); } 50%,70% { transform: translate(-3px,3px); } }
@keyframes bm-dial-return { 0%,12%,83%,100% { transform: rotate(0deg); } 54% { transform: rotate(235deg); } }
@keyframes bm-fax-feed { 0%,8% { transform: translate(1px,-3px); opacity:.65; } 40% {opacity:1} 80%,100% { transform: translate(-1px,4px); opacity: .65; } }
@keyframes bm-carriage { 10% { transform: translateX(4px); } 79% { transform: translateX(-4px); } 85%,100% { transform: translateX(4px); } }
@keyframes bm-plot-stop { from {stroke-dashoffset:17; } to {stroke-dashoffset:-15; } }
@keyframes bm-minute-hand { to {transform:rotate(360deg);} }
@keyframes bm-crt-scan { 0% {transform:translateY(0);opacity:.6} 70% {transform:translateY(5px);opacity:1} 86%,100% {transform:translateY(5px);opacity:0} }
@keyframes bm-radio-ping { 0%,100% { transform:scale(.65); opacity:.35; } 60% { transform:scale(1.2); opacity:1; } }
@keyframes bm-carbon-lift { 0%,100% {transform:translate(0,0)} 42% {transform:translate(-3px,-4px) rotate(-5deg)} 72% {transform:translate(3px,-2px)} }
@keyframes bm-owner-phone { 0%,20%,100% { transform:rotate(16deg); } 45%,72% { transform:rotate(-37deg); } }
@keyframes bm-ledger-turn { 0%,15%,95%,100% { transform:scaleX(1); } 52%,64% {transform:scaleX(-.85);} }
@keyframes bm-register-sum { 0%,34%,82%,100% {transform:translate(0,0);opacity:.6} 42%,62% {transform:translate(1px,1.5px);opacity:1} }
@keyframes bm-tab-search { 0%,100% { transform:translate(0,0) } 36% { transform:translate(5px,-1.3px) } 63% { transform:translate(8px,-2px) } }
@keyframes bm-card-flip { 0%,24%,100% { transform:rotate(-5deg) scaleY(1) } 55%,71% { transform:rotate(16deg) scaleY(-.65) } }
.bm-flight { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.55rem .9rem; padding:.8rem 1.4rem; border-top:1px solid #344956; background:#132a35; }
.bm-flight > div:first-child { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35rem .75rem; }
.bm-flight > div:first-child > span, .bm-maintainer label { color:#a8c3cb; font-size:.82rem; }
.bm-flight strong { color:#d2f8ee; font-size:.94rem; font-weight:620; }
.bm-flight-actions { display:flex; flex-wrap:wrap; gap:.35rem; }
.bm-flight button, .bm-maintainer button, .bm-maintainer select { background:#182e3b; color:#e3eeef; border:1px solid #446270; padding:.4rem .6rem; min-height:2.35rem; border-radius:.4rem; font:500 .82rem/1.25 "Segoe UI",sans-serif; cursor:pointer; }
.bm-flight button:hover, .bm-maintainer button:hover { border-color:#8fc7c4; }
.bm-machine :is(.bm-flight,.bm-maintenance) :focus-visible { outline:2px solid #99f5ed; outline-offset:3px; }
.bm-flight button:disabled, .bm-maintainer button:disabled { opacity:.55; cursor:default; }
.bm-stage-track { grid-column:1/-1; display:grid; grid-template-columns:repeat(10,1fr); gap:.22rem; }
.bm-stage-track i { background:#33515f; height:2px; }
.bm-stage-track i.bm-complete { background:#84d3c9; }
.bm-detail { display:grid; grid-template-columns:4.1rem minmax(0,1fr); gap:.7rem; align-items:center; }
.bm-detail-svg { width:100%; border:1px solid #485663; border-radius:.45rem; background:radial-gradient(ellipse at center,#354451,#1c2b38); padding:.2rem; }
.bm-maintenance { background:#11232e; border-top:1px solid #314750; }
.bm-maintenance summary { cursor:pointer; list-style:revert; color:#cce1e6; font-size:.86rem; padding:.68rem 1.4rem; }
.bm-maintenance summary span { padding-inline-start:.6rem; color:#a8bebf; }
.bm-maintainer { padding:0 1.4rem .8rem; display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.bm-maintainer select { max-width:100%; }
.bm-maintainer p { flex:1 1 17rem; margin:0; color:#c2d1d7; font-size:.88rem; }
.bm-bot { cursor:pointer; }
.bm-bot.bm-team .bm-bot-body > circle { fill:#b9f6ec; }
.bm-bot.bm-at-work .bm-bot-arm { animation-duration:.67s; }
.bm-bot.bm-at-work > ellipse {fill:#73e3c1;opacity:.55}
.bm-part { color:#8a9698; opacity:.43; pointer-events:none; }
.bm-part.bm-installed { color:#9ed2c3; opacity:.85; }
.bm-part.bm-servicing { color:#ffe1a3; opacity:1; }
.bm-part.bm-servicing > ellipse { opacity:.3; }
.bm-servicing .bm-fitting { transform-origin:center; transform-box:fill-box; animation:var(--bm-fit) 1.6s ease-in-out infinite alternate; }
.bm-fit-seat {--bm-fit:bm-seat-part}.bm-fit-pivot{--bm-fit:bm-adjust-part}.bm-fit-slide{--bm-fit:bm-bridge-part}.bm-fit-scan{--bm-fit:bm-scan-part}.bm-fit-arc{--bm-fit:bm-weld-part}
@keyframes bm-seat-part {from{transform:translateY(-4px)}to{transform:translateY(0)}}
@keyframes bm-adjust-part {from{transform:rotate(-30deg)}to{transform:rotate(18deg)}}
@keyframes bm-bridge-part {from{transform:translateX(-5px)}to{transform:translateX(1px)}}
@keyframes bm-scan-part {from{stroke-width:.9;opacity:.65}to{stroke-width:2.5;opacity:1}}
@keyframes bm-weld-part {from{stroke:#9ad8cc;fill:#365866}to{stroke:#ffcd86;fill:#edbc91}}
.bm-radar {transform-origin:38px 27px;animation:bm-minute-hand 4s linear infinite}
.bm-authentic-rig{display:none}
.bm-armor-ready .bm-authentic-rig{display:inline}
.bm-armor-ready .bm-drawn-rig{display:none}
.bm-bot .bm-bot-body,.bm-bot:nth-of-type(3n) .bm-bot-body{animation:none;transform-origin:0 2px;transition:transform .28s ease}
.bm-bot.bm-at-work .bm-bot-body,.bm-bot:hover .bm-bot-body {transform:scale(1.12)}
.bm-machine[data-crew-pinned="true"] .bm-bot.bm-at-work .bm-bot-body {transform:scale(1.24)}
.bm-unit-frame .bm-elbow-act.bm-bot-arm,.bm-bot:nth-of-type(4n) .bm-elbow-act.bm-bot-arm {
  animation:bm-rig-servo var(--bm-beat,2.4s) cubic-bezier(.45,.08,.3,.95) var(--bm-shift,0s) infinite alternate;
  transform-origin:1px 3px;
}
.bm-unit-frame .bm-gimbal {transform-origin:0 0}
.bm-bot.bm-at-work .bm-gimbal,.bm-service-model .bm-gimbal {animation:bm-gimbal-track 2.5s ease-in-out infinite alternate}
.bm-unit-frame .bm-tip-effect,.bm-part .bm-receiving-fx {display:none}
.bm-at-work .bm-tip-effect,.bm-service-model .bm-tip-effect,.bm-part.bm-servicing .bm-receiving-fx {display:inline}
.bm-at-work .bm-tip-effect,.bm-service-model .bm-tip-effect,.bm-servicing .bm-contact-signal {animation:bm-tool-contact 1.7s ease-in-out infinite alternate}
.bm-service-model .bm-tip-arc,.bm-at-work .bm-tip-arc {animation:bm-welding-contact 1.5s ease-in-out infinite alternate;transform-origin:0 0}
.bm-service-model .bm-tip-scan,.bm-at-work .bm-tip-scan {animation:bm-probe-sweep 2.5s ease-in-out infinite alternate;transform-origin:0 0}
.bm-service-model .bm-tip-magnetic,.bm-at-work .bm-tip-magnetic {animation:bm-magnetic-field 2.4s ease-in-out infinite alternate;transform-origin:4px 0}
.bm-service-model .bm-authentic-lens,.bm-at-work .bm-authentic-lens,.bm-service-model .bm-unit-optic {animation:bm-optical-scan 4.5s ease-in-out infinite}
.bm-service-model .bm-head-carriage,.bm-at-work .bm-head-carriage {animation:bm-service-gaze 4.4s ease-in-out infinite alternate;transform-origin:0 -49px}
.bm-service-model .bm-coil-aperture > circle:last-child,.bm-at-work .bm-coil-aperture > circle:last-child {animation:bm-coil-turn 7s linear infinite;transform-origin:0 0}
.bm-service-model .bm-unit-upper {animation:bm-scope-idle 3.1s ease-in-out infinite alternate;transform-origin:0 -20px}
.bm-service-model[data-contact]:not([data-contact=""]) .bm-unit-upper,
.bm-service-model[data-contact]:not([data-contact=""]) .bm-elbow-act.bm-bot-arm {animation:none;transform:none}
.bm-service-model[data-contact]:not([data-contact=""]) .bm-gimbal {animation:bm-seat-tool 2s cubic-bezier(.42,0,.58,1) infinite}
.bm-service-model[data-contact]:not([data-contact=""]) .bm-tip-effect {animation:bm-seat-energy 2s cubic-bezier(.42,0,.58,1) infinite}
.bm-contact-subject .bm-mating-part {transform-origin:0 0;animation:var(--bm-contact-act) 2s cubic-bezier(.42,0,.58,1) infinite}
.bm-contact-subject .bm-witness {animation:bm-seat-witness 2s ease infinite}
.bm-contact-subject > circle {animation:bm-near-field 2s ease infinite}
.bm-service-model[data-contact="vane"] {--bm-contact-act:bm-seat-vane}
.bm-service-model[data-contact="hook"] {--bm-contact-act:bm-seat-hook}
.bm-service-model[data-contact="press"] {--bm-contact-act:bm-seat-press}
.bm-service-model[data-contact="ratchet"] {--bm-contact-act:bm-seat-ratchet}
@keyframes bm-seat-tool {0%,84%,100%{transform:translateX(-3px)}22%,68%{transform:translateX(0)}}
@keyframes bm-seat-energy {0%,22%,68%,100%{opacity:.05}28%,56%{opacity:.95}}
@keyframes bm-near-field {0%,22%,68%,100%{opacity:.05}28%,56%{opacity:.28}}
@keyframes bm-seat-witness {0%,28%{opacity:.17}56%,100%{opacity:1}}
@keyframes bm-seat-vane {0%,28%{transform:rotate(-24deg)}56%,100%{transform:rotate(0)}}
@keyframes bm-seat-hook {0%,28%{transform:translate(4px,2px)}56%,100%{transform:translate(0,0)}}
@keyframes bm-seat-press {0%,28%{transform:translateY(-6px) scaleY(1.35)}56%,100%{transform:translateY(0) scaleY(.85)}}
@keyframes bm-seat-ratchet {0%,28%{transform:rotate(-60deg)}56%,100%{transform:rotate(0)}}
.bm-machine[data-still="true"] .bm-contact-subject .bm-mating-part {animation:none;transform:none}
.bm-machine[data-still="true"] .bm-witness {animation:none;opacity:1}
@keyframes bm-rig-servo {0%,15%{transform:rotate(calc(var(--bm-rest,0deg) - 6deg))}70%,100%{transform:rotate(calc(var(--bm-rest,0deg) + 5deg))}}
@keyframes bm-gimbal-track {from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
@keyframes bm-tool-contact {from{opacity:.38}to{opacity:1}}
@keyframes bm-welding-contact {0%{opacity:.55;transform:scale(.74)}54%{opacity:1;transform:scale(1.35)}75%,100%{opacity:.78;transform:scale(1.12)}}
@keyframes bm-probe-sweep {from{transform:rotate(-16deg);opacity:.55}to{transform:rotate(16deg);opacity:.95}}
@keyframes bm-magnetic-field {from{transform:scale(.78,.88);opacity:.65}to{transform:scale(1.3,1.12);opacity:.95}}
@keyframes bm-optical-scan {0%,100%{opacity:.23;transform:translate(.25px,-.35px)}44%,59%{opacity:.9;transform:translate(-.6px,1.6px)}}
@keyframes bm-service-gaze {from{transform:rotate(-1.6deg)}to{transform:rotate(2.1deg)}}
@keyframes bm-coil-turn {to{transform:rotate(360deg)}}
@keyframes bm-scope-idle {from{transform:translate(0,0) rotate(-.5deg)}to{transform:translate(0,-.75px) rotate(.35deg)}}
.bm-maintenance .bm-maintainer {
  display:grid;grid-template-columns:minmax(14rem,.74fr) minmax(15rem,1.25fr);
  gap:1.4rem;align-items:center;padding:.35rem 1.4rem 1.1rem;
}
.bm-service-view {min-width:0;overflow:hidden;border:1px solid #415c6c;border-radius:.7rem;background:radial-gradient(ellipse at 53% 70%,#284454,#112533 64%,#0c1e2a)}
.bm-service-scope {width:100%;display:block;height:clamp(175px,18vw,245px)}
.bm-scope-controls,.bm-job-actions {display:flex;gap:.38rem;flex-wrap:wrap}
.bm-scope-controls {justify-content:center;padding:.4rem;border-top:1px solid #36535f;background:#10232d}
.bm-scope-controls button {padding:.28rem .62rem;border-color:transparent;min-height:1.95rem;color:#bcd0d5;background:transparent}
.bm-scope-controls button[aria-pressed="true"] {border-color:#658d88;color:#d7fff2;background:#25413e}
.bm-service-controls {min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.55rem;justify-items:start}
.bm-service-controls .bm-unit-id {font:570 .8rem/1.3 ui-monospace,Consolas,monospace;color:#a8ddca;letter-spacing:.025em}
.bm-service-controls label {font-size:.82rem;color:#c2d3dc}
.bm-service-controls select {max-width:100%;width:min(100%,24rem);font-size:.95rem;min-height:2.6rem}
.bm-service-controls p {line-height:1.5;max-width:52ch}
.bm-tool-id {font:.85rem/1.4 "Segoe UI",sans-serif;display:flex;gap:.6rem;color:#cde2e5}
.bm-tool-id span {color:#91acb8}
.bm-job-actions button {min-height:2.2rem}
@media(max-width:650px) {
  .bm-maintenance .bm-maintainer {grid-template-columns:minmax(0,1fr);gap:.8rem;padding:.25rem 1rem 1rem}
  .bm-service-scope {height:195px}
  .bm-service-controls select {width:100%}
  .bm-scope-controls button,.bm-job-actions button {min-height:2.6rem}
}
@media(prefers-reduced-motion:reduce){.bm-bot .bm-bot-body{transition:none}}
.bm-machine .bm-legend {padding-top:.8rem}
.bm-view-controls {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.4rem;padding:.7rem .8rem .3rem;}
.bm-view-controls button,.bm-nav-stations button,.bm-pin button {
  min-height:2.4rem;padding:.4rem .75rem;border:1px solid #46616c;border-radius:.45rem;
  background:#142833;color:#c4dadd;font:550 .81rem/1.3 "Segoe UI",sans-serif;cursor:pointer;
}
.bm-view-controls button[aria-pressed="true"] {color:#d2fff0;background:#244942;border-color:#69988b}
.bm-view-controls button:hover,.bm-nav-stations button:hover,.bm-pin button:hover {border-color:#83b6aa}
.bm-view-controls button:focus-visible,.bm-nav-stations button:focus-visible,.bm-pin button:focus-visible {outline:2px solid #9df4dd;outline-offset:3px}
.bm-machine .bm-window {height:clamp(360px,34.5vw,530px);overflow:hidden}
.bm-machine .bm-art {height:100%;width:100%}
.bm-station-plate {fill:#e2d6c4;font:600 4.7px ui-monospace,monospace;letter-spacing:.12px;}
.bm-sample {pointer-events:none;opacity:0;transform-box:view-box;transform-origin:0 0}
.bm-sample .bm-data-face {opacity:0}
.bm-transfer .bm-sample .bm-data-face {animation:bm-arrival-face 2.15s ease both}
.bm-transfer .bm-sample .bm-paper-face {animation:bm-source-face 2.15s ease both}
@keyframes bm-source-face {0%,52% {opacity:1}66%,100% {opacity:0}}
@keyframes bm-arrival-face {0%,52% {opacity:0}65%,100% {opacity:1}}
.bm-crew-link {pointer-events:none;fill:none;stroke:#ddbe86;stroke-width:1.7;stroke-dasharray:3 4;opacity:.68;animation:bm-feed 2.8s linear infinite}
.bm-crew-link-ring {pointer-events:none;fill:none;stroke:#f3c78d;stroke-width:1.4;opacity:.85}
.bm-machine[data-crew-pinned="true"] .bm-crew-link {stroke-width:3;opacity:1;stroke:#f7d08d}
.bm-machine[data-crew-pinned="true"] .bm-at-work .bm-bot-body {filter:drop-shadow(0 0 2px #bfebc8)}
.bm-machine[data-crew-pinned="true"] .bm-servicing>ellipse {opacity:.67}
.bm-nav-stations {display:flex;flex-wrap:wrap;gap:.35rem;grid-column:1/-1;margin-top:.1rem}
.bm-nav-stations button {font-size:.76rem;min-height:2rem;padding:.26rem .5rem}
.bm-pin {padding:.75rem 1.4rem;background:#182b35;display:grid;grid-template-columns:1fr 1fr auto;gap:.5rem 1rem;border-top:1px solid #364f59}
.bm-pin[hidden] {display:none}
.bm-pin > div {border-left:2px solid #daa67f;padding-left:.6rem}
.bm-pin > div:nth-child(2) {border-color:#83cbb6}
.bm-pin small {font-size:.76rem;color:#aac5c8}
.bm-pin strong {display:block;font-size:.9rem;color:#e4efef}
.bm-pin p {margin:.22rem 0 0;color:#bfd4d6;font-size:.86rem}
.bm-pin button {align-self:start}
@media(max-width:720px){
  .bm-machine .bm-window {height:clamp(255px,54vw,355px)}
  .bm-machine[data-camera="line"] .bm-window {height:clamp(160px,40vw,300px)}
  .bm-view-controls {gap:.28rem}
  .bm-view-controls button {min-height:2.55rem;padding:.35rem .48rem;font-size:.77rem}
  .bm-pin {grid-template-columns:1fr 1fr;padding:.75rem 1rem}
  .bm-pin button {grid-column:1/-1;justify-self:start}
}
@media(max-width:720px) {
  .bm-flight {padding:.65rem 1rem;grid-template-columns:1fr;}
  .bm-flight-actions button,.bm-maintainer button,.bm-maintainer select {min-height:2.65rem}
  .bm-stage-track {grid-column:1}
  .bm-detail {grid-template-columns:3.5rem minmax(0,1fr);}
  .bm-maintenance summary {padding-inline:1rem}
  .bm-maintainer {padding-inline:1rem}
}
