/* Module VF-1: a dark control-room band with a paper checklist beside it, and the safety-yellow pass at the end.
   Layout language from Carbon: 0px corners, 8px grid, 1px seams instead of shadows, Plex Sans and Mono. */
.sim { --y: #ffd100; --ok: #42be65; --bad: #fa4d56; background: #161616; color: #f4f4f4; padding: 48px 0 40px; }
.sim :focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
.eyebrow.on-dark { color: #a8a8a8; }
.sim-head { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 1056px) { .sim-head { grid-template-columns: minmax(0, 7fr) minmax(0, 8fr); gap: 64px; align-items: end; } }
.sim-head h2 { margin: 0; font: 300 clamp(32px, 4.6vw, 54px)/1.1 "IBM Plex Sans", sans-serif; letter-spacing: -0.015em; color: #fff; }
.sim-head p { margin: 0; color: #c6c6c6; font-size: 16px; max-width: 40em; }
/* progress rail */
.rail { list-style: none; margin: 0 0 1px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.rail li { padding: 10px 0 0; border-top: 4px solid #393939; font: 400 12px/16px "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #8d8d8d; transition: border-color 300ms, color 300ms; }
.rail li span { display: block; color: inherit; margin-bottom: 2px; }
.rail li.on { border-top-color: var(--y); color: #fff; }
.rail li.done { border-top-color: #f4f4f4; color: #c6c6c6; }
@media (max-width: 520px) { .rail li { font-size: 11px; letter-spacing: 0.02em; } }
.sim-grid { margin-top: 16px; display: grid; gap: 1px; background: #393939; border: 1px solid #393939; transition: opacity 300ms; }
.sim-grid.dim { opacity: 0.45; }
@media (min-width: 1056px) { .sim-grid { grid-template-columns: minmax(0, 1fr) 352px; } }
.sim-main { background: #262626; min-width: 0; }
/* stage */
.stage { position: relative; aspect-ratio: 16 / 9; max-height: max(300px, calc(100vh - 330px)); background: #0b0c0e; overflow: hidden; touch-action: pan-y; }
@media (max-width: 639px) { .stage { aspect-ratio: 1 / 1; max-height: max(300px, calc(100svh - 380px)); } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loading { position: absolute; left: 16px; bottom: 12px; margin: 0; font: 400 12px "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #8d8d8d; }
.tags { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms; }
.stage.pinned[data-task="0"] .tags { opacity: 1; }
/* a label rides above-right of its pin on an elbow leader */
.tagp { position: absolute; left: 0; top: 0; margin: -34px 0 0 16px; padding: 5px 8px; background: #f4f4f4; color: #161616; font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; will-change: transform; }
.tagp::before { content: ""; position: absolute; left: -20px; top: 30px; width: 8px; height: 8px; background: var(--y); box-shadow: 0 0 0 2px #161616; }
.tagp::after { content: ""; position: absolute; left: -16px; top: 11px; width: 16px; height: 19px; border-left: 1px solid #f4f4f4; border-top: 1px solid #f4f4f4; }
.guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 300ms; }
.stage.pinned[data-task="2"] .guide { opacity: 1; }
.guide line { stroke: var(--y); stroke-width: 2; stroke-dasharray: 6 6; }
.guide circle { fill: none; stroke: var(--y); stroke-width: 2.5; }
.guide.done line { opacity: 0; }
.guide.done circle { stroke: var(--ok); }
.grip { position: absolute; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; z-index: 2; opacity: 0; transition: opacity 200ms; }
.stage.pinned[data-task="2"] .grip { opacity: 1; }
.grip span { position: absolute; inset: 10px; background: var(--y); border: 2px solid #161616; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.28); transition: transform 150ms; }
.grip.held { cursor: grabbing; }
.grip.held span { transform: scale(1.15); }
.grip.done { pointer-events: none; }
.grip.done span { background: var(--ok); box-shadow: none; }
.grip:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
/* the card that slides across between tasks */
.wipe { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; background: #161616; transform: translateX(-101%); visibility: hidden; }
.wipe.in { transform: none; visibility: visible; transition: transform 600ms cubic-bezier(0.2, 0, 0, 1); }
.wipe.in.out { transform: translateX(101%); transition: transform 600ms cubic-bezier(0.4, 0, 1, 1); }
.wipe b { font: 300 clamp(64px, 12vw, 120px)/1 "IBM Plex Mono", monospace; color: var(--y); letter-spacing: -0.04em; }
.wipe span { font: 400 14px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #f4f4f4; }
/* plain-words feedback */
.say { display: flex; align-items: stretch; gap: 12px; min-height: 56px; margin: 0; padding: 0 16px 0 0; background: #262626; border-top: 1px solid #393939; font-size: 16px; line-height: 1.4; color: #f4f4f4; transition: background-color 150ms; }
.say i { flex: none; width: 8px; background: #6f6f6f; }
.say span { align-self: center; padding: 12px 0; }
.say[data-m="ok"] i { background: var(--ok); }
.say[data-m="no"] { background: #3a0d10; }
.say[data-m="no"] i { width: 12px; background: repeating-linear-gradient(-45deg, var(--y) 0 6px, #161616 6px 12px); }
/* controls */
.ctl { padding: 16px; border-top: 1px solid #393939; }
.ctl-g[data-task="0"] { display: flex; align-items: center; gap: 24px; }
.ctl-g[hidden] { display: none !important; }
.dial { width: 148px; height: 148px; flex: none; touch-action: none; cursor: grab; border-radius: 50%; user-select: none; -webkit-user-select: none; }
.dial.held { cursor: grabbing; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.d-rim { fill: none; stroke: #c6c6c6; stroke-width: 7; }
.dial:hover .d-rim, .dial.held .d-rim { stroke: #fff; }
.d-hub { fill: #c6c6c6; }
.d-spoke { stroke: #c6c6c6; stroke-width: 4; }
.d-knob { fill: var(--y); }
.d-arc { fill: none; stroke: #6f6f6f; stroke-width: 1.5; stroke-dasharray: 3 4; }
.d-arr { fill: none; stroke: #a8a8a8; stroke-width: 1.5; }
.d-lbl { fill: #a8a8a8; font: 600 9px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-anchor: middle; }
.dial[aria-disabled="true"] { cursor: default; }
.dial[aria-disabled="true"] .d-rim, .dial[aria-disabled="true"] .d-spoke { stroke: var(--ok); }
.no { animation: refuse 320ms; }
@keyframes refuse { 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 100% { transform: none; } }
.ctl-read p { margin: 0; }
.ctl-k { font: 400 12px/16px "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #a8a8a8; }
.ctl-v { font: 300 44px/1.1 "IBM Plex Mono", monospace; color: #fff; margin: 4px 0 8px !important; }
.ctl-v b { font-weight: 300; }
.ctl-h { font-size: 14px; letter-spacing: 0.16px; color: #c6c6c6; max-width: 32em; margin: 0; }
@media (max-width: 420px) { .dial { width: 124px; height: 124px; } .ctl-g[data-task="0"] { gap: 16px; } .ctl-v { font-size: 36px; } }
/* push buttons with indicator lamps */
.panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: #393939; border: 1px solid #393939; }
.panel.two { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); background: transparent; border: 0; gap: 16px; align-items: center; }
.panel.two .pb { border: 1px solid #393939; }
@media (max-width: 560px) { .panel { grid-template-columns: repeat(3, minmax(0, 1fr)); } .panel .gas { grid-column: span 2; } .panel.two { grid-template-columns: 1fr; } }
.pb { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 80px; padding: 12px; border: 0; border-radius: 0; background: #161616; color: #f4f4f4; font: 400 14px/18px "IBM Plex Sans", sans-serif; letter-spacing: 0.16px; text-align: left; cursor: pointer; overflow: hidden; }
.pb:hover { background: #2a2a2a; }
.pb:active { transform: translateY(1px); }
.lamp { display: block; width: 14px; height: 14px; background: #393939; box-shadow: inset 0 0 0 1px #525252; transition: background-color 150ms, box-shadow 150ms; }
.pb.wait .lamp { background: #f1c21b; box-shadow: 0 0 10px rgba(241, 194, 27, 0.6); }
.pb.on .lamp { background: var(--ok); box-shadow: 0 0 10px rgba(66, 190, 101, 0.7); }
.pb.on { color: #fff; }
.pb.no { box-shadow: inset 0 0 0 2px var(--bad); }
.pb .fill { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--y); }
.pb.wait .fill { width: 100%; transition: width 1600ms linear; }
.pb.on .fill { width: 100%; background: var(--ok); }
#pbEarth:not(.on) .lamp { background: #a2191f; box-shadow: none; }
/* the paper checklist */
.sheet { background: #f4f4f4; color: #161616; display: flex; flex-direction: column; min-width: 0; }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #c6c6c6; }
.meter div { padding: 12px 16px; border-left: 1px solid #c6c6c6; }
.meter div:first-child { border-left: 0; }
.meter span { display: block; font: 400 11px/16px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #525252; }
.meter b { font: 400 28px/1.2 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.chk { padding: 12px 16px 12px; border-bottom: 1px solid #c6c6c6; transition: opacity 300ms; }
.chk:not(.cur):not(.past) { opacity: 0.5; }
.chk h3 { margin: 0 0 8px; font: 600 14px/20px "IBM Plex Sans", sans-serif; letter-spacing: 0.16px; }
.chk h3 span { font: 400 12px "IBM Plex Mono", monospace; color: #525252; margin-right: 8px; }
.chk.cur h3 { margin: -12px -16px 8px; padding: 10px 16px; background: #161616; color: #fff; }
.chk.cur h3 span { color: var(--y); }
.chk ol { list-style: none; margin: 0; padding: 0; }
.chk li { position: relative; display: flex; align-items: baseline; gap: 6px; padding: 4px 0 4px 24px; font: 400 12px/18px "IBM Plex Mono", monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.chk li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border: 1.5px solid #161616; box-sizing: border-box; }
.chk li.done::before { background: #161616; }
.chk li.done::after { content: ""; position: absolute; left: 3.5px; top: 7.5px; width: 3px; height: 6px; border: solid #ffd100; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk li i { flex: 1; min-width: 12px; border-bottom: 1.5px dotted #8d8d8d; transform: translateY(-3px); }
.chk li b { font-weight: 600; }
.chk li.done b { text-decoration: line-through; text-decoration-thickness: 1px; color: #525252; }
.log { padding: 12px 16px 16px; flex: 1; }
.log-h { margin: 0 0 6px; font: 400 11px/16px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #525252; }
.log ol { list-style: none; margin: 0; padding: 0; max-height: 132px; overflow: auto; font: 400 12px/18px "IBM Plex Mono", monospace; color: #393939; white-space: pre-wrap; }
.log li.empty { color: #6f6f6f; font-family: "IBM Plex Sans", sans-serif; white-space: normal; }
.log li.bad { color: #a2191f; }
@media (max-width: 1055px) { .log ol { max-height: 96px; } }
/* result */
.result { margin-top: 32px; outline: none; }
.result:focus-visible { outline: 2px solid var(--y); outline-offset: 4px; }
.res-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #393939; }
.res-head h3 { margin: 0 0 8px; font: 300 clamp(32px, 4.6vw, 54px)/1.1 "IBM Plex Sans", sans-serif; color: #fff; }
.res-head p { margin: 0; color: #c6c6c6; max-width: 40em; }
.btn.ghost-d { background: transparent; color: #fff; border: 1px solid #6f6f6f; cursor: pointer; }
.btn.ghost-d:hover { background: #262626; }
.res-grid { display: grid; gap: 32px; padding-top: 24px; }
.res-grid[hidden] { display: none; }
@media (min-width: 900px) { .res-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; } }
.res-k { margin: 0 0 12px; font: 400 12px/16px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #a8a8a8; }
.res-note { margin: 16px 0; font-size: 14px; letter-spacing: 0.16px; color: #c6c6c6; max-width: 340px; }
.res-open { width: 100%; max-width: 316px; }
.phone { width: 100%; max-width: 316px; padding: 12px; background: #000; border: 1px solid #393939; border-radius: 44px; }
/* the pass itself: safety yellow, like a site induction card */
.pass { background: #ffd100; color: #161616; border-radius: 30px; overflow: hidden; font-family: "IBM Plex Sans", sans-serif; animation: passin 500ms cubic-bezier(0.2, 0, 0, 1) both; }
@keyframes passin { from { transform: translateY(24px); opacity: 0; } }
.pass-top { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; border-bottom: 2px solid #161616; }
.pass-mark { width: 22px; height: 22px; background: #161616; clip-path: polygon(50% 8%, 96% 92%, 4% 92%); flex: none; }
.pass-iss { font: 600 13px/1.2 "IBM Plex Sans", sans-serif; flex: 1; }
.pass-kind { font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.pass-body { padding: 14px 20px 4px; }
.pass-k { margin: 0; font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.pass-t { margin: 2px 0 12px; font: 600 22px/1.2 "IBM Plex Sans", sans-serif; letter-spacing: -0.01em; }
.pass-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; }
.pass-f dt { font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.pass-f dd { margin: 0; font: 600 15px/1.3 "IBM Plex Sans", sans-serif; }
.pass-f dd.edit { background: #161616; color: #ffd100; padding: 0 4px; justify-self: start; }
.pass-qr { margin: 14px 20px 0; padding: 12px; background: #fff; display: grid; justify-items: center; gap: 6px; min-height: 120px; align-content: center; }
.pass-qr svg { width: 100%; max-width: 220px; height: auto; display: block; }
.pass-qr span { font: 400 11px "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; color: #525252; text-align: center; }
.pass-foot { margin: 14px 0 0; padding: 10px 20px 16px; font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; border-top: 6px solid transparent; border-image: repeating-linear-gradient(-45deg, #161616 0 6px, #ffd100 6px 12px) 6; }
/* the supervisor's screen */
.sup { background: #fff; color: #161616; border: 1px solid #393939; position: relative; overflow: hidden; }
.sup-top { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #393939; color: #f4f4f4; font: 400 12px/16px "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.sup-who { margin: 0; padding: 16px; font-size: 14px; letter-spacing: 0.16px; border-bottom: 1px solid #e0e0e0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid #e0e0e0; }
.checks svg { width: 20px; height: 20px; grid-row: span 2; }
.checks b { font: 600 14px/20px "IBM Plex Sans", sans-serif; }
.checks span { font-size: 14px; line-height: 20px; color: #525252; overflow-wrap: anywhere; }
.verdict { margin: 0; padding: 16px; color: #fff; font-size: 16px; line-height: 1.4; }
.verdict b { display: inline-block; margin-right: 12px; font: 600 14px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.v-ok { background: #198038; }
.v-no { background: #da1e28; }
.sup.scan li, .sup.scan .verdict { animation: rowin 260ms cubic-bezier(0.2, 0, 0, 1) both; animation-delay: calc(var(--i) * 110ms + 200ms); }
.sup.scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #ffd100; box-shadow: 0 0 12px #ffd100; animation: scanline 700ms cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
@keyframes scanline { from { transform: translateY(0); opacity: 1; } to { transform: translateY(320px); opacity: 0; } }
.sup-act { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 16px; background: #393939; border: 1px solid #393939; }
.tb { flex: 1 1 180px; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 0; background: #262626; color: #f4f4f4; font: 400 14px/18px "IBM Plex Sans", sans-serif; letter-spacing: 0.16px; text-align: left; cursor: pointer; }
.tb:hover { background: #393939; }
.tb[aria-pressed="true"] { background: #ffd100; color: #161616; }
.raw { margin-top: 16px; color: #c6c6c6; font-size: 14px; }
.raw summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #fff; }
.raw p { margin: 0 0 8px; }
.raw code { display: block; font: 400 12px/1.5 "IBM Plex Mono", monospace; color: #a8a8a8; word-break: break-all; background: #262626; padding: 12px; }
.raw pre { margin: 8px 0 0; font: 400 12px/1.5 "IBM Plex Mono", monospace; color: #f4f4f4; background: #262626; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sim-foot { margin: 32px 0 0; font-size: 12px; line-height: 1.6; letter-spacing: 0.32px; color: #a8a8a8; max-width: 60em; }
@media (prefers-reduced-motion: reduce) {
  .wipe.in, .wipe.in.out { transform: none; transition: opacity 250ms; }
  .wipe.in.out { opacity: 0; }
  .no, .pass, .sup.scan li, .sup.scan .verdict { animation: none; }
  .sup.scan::after { display: none; }
  .pb.wait .fill { transition: none; }
  .rail li, .sim-grid, .tags, .guide, .chk { transition: none; }
}
