/* Lines Not Done ($NOTDONE) — a plant tour: the line, the floor plan, the gatehouse, rooms, the standard, the loading dock */
@font-face { font-family: "Tomorrow"; src: url("../assets/fonts/Tomorrow-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tomorrow"; src: url("../assets/fonts/Tomorrow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Tomorrow"; src: url("../assets/fonts/Tomorrow-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/Host-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/Host-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Google Sans Code"; src: url("../assets/fonts/GSCode-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans Code"; src: url("../assets/fonts/GSCode-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --concrete: #D6D3CB; --slab: #C9C5BB; --sheet: #F3F1EB; --steel: #2A2F33; --steel2: #3A4046; --ink: #1D2124; --soft: #575D62; --wall: #4A4F54;
  --hazard: #F1C232; --flow: #255E8A; --queue: #D35E28; --done: #2F8556; --rule: #B5B0A5;
  --disp: "Tomorrow", "Host Grotesk", system-ui, sans-serif; --text: "Host Grotesk", system-ui, sans-serif; --code: "Google Sans Code", ui-monospace, monospace;
  --gut: max(16px, calc((100% - 1180px) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: hidden;
  background-color: var(--concrete); background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.3px), radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.4px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }
a { color: var(--flow); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--disp); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 2px; }
code { font-family: var(--code); font-size: .9em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 18px; border: 0; border-radius: 2px; font: 600 15px/1.2 var(--disp); text-decoration: none; letter-spacing: .02em; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-hazard { background: var(--hazard); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.btn-steel { background: var(--steel); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-small { min-height: 32px; padding: 4px 12px; font-size: 13px; background: var(--steel); color: #fff; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.lead { font-size: 19px; }
.narrow { max-width: 46em; }
.prose { max-width: 40em; }

/* ------------------------------------------------------------ the line (hero) */
.hero { background: var(--steel); color: #E9E7E1; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(30px, 4vw, 50px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px clamp(24px, 4vw, 56px); align-items: center; position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(241,194,50,.0) 0 26px, rgba(241,194,50,.0) 26px 52px), linear-gradient(180deg, #2E3438, #24282B); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 18px, var(--ink) 18px 36px); }
.plant { font: 500 15px var(--disp); color: var(--hazard); margin-bottom: 14px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; color: #fff; }
.hero .lede { margin-top: 20px; font-size: 18px; color: #C9CCCF; max-width: 36em; }
.hero .lede b { color: #fff; font-family: var(--code); font-weight: 600; }
.hero-act { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-steel { background: transparent; box-shadow: inset 0 0 0 2px #E9E7E1; }
.floor-demo { margin: 0; background: #1E2225; border: 2px solid #474E54; border-radius: 3px; padding: 10px; }
#belt { display: block; width: 100%; aspect-ratio: 1.8; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 10px 6px 4px; border-top: 1px solid #3B4247; margin-top: 8px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 600 16px var(--disp); color: #fff; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-track { width: 58px; height: 30px; border-radius: 3px; background: #4A5157; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,.5); transition: background .2s; }
.sw-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 2px; background: #D9D6CE; transition: transform .2s; }
.switch input:checked + .sw-track { background: var(--hazard); }
.switch input:checked + .sw-track .sw-knob { transform: translateX(28px); background: #fff; }
.switch input:focus-visible + .sw-track { outline: 3px solid var(--hazard); outline-offset: 2px; }
.readout { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; flex: 1; min-width: 260px; }
.readout dt { font-size: 12.5px; color: #9AA1A6; }
.readout dd { margin: 0; font: 600 20px var(--code); color: #fff; font-variant-numeric: tabular-nums; }
.readout .fin dd { color: #7BD6A3; }
.floor-demo figcaption { font-size: 14px; color: #9AA1A6; padding: 6px 6px 2px; }

/* ------------------------------------------------------------ the floor plan */
.plan { padding: 26px var(--gut) 10px; }
.plan-h { font: 600 15px var(--disp); color: var(--soft); margin: 0 0 10px; }
.rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr 1fr; grid-template-rows: auto auto; gap: 0; border: 6px solid var(--wall); background: #E8E5DE; }
.rm a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-content: start; min-height: 92px; height: 100%; padding: 12px 14px; color: var(--ink); text-decoration: none; position: relative; border-right: 4px solid var(--wall); border-bottom: 4px solid var(--wall); background-image: linear-gradient(rgba(37,94,138,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,94,138,.06) 1px, transparent 1px); background-size: 16px 16px; transition: background-color .15s; }
.rm a::after { content: ""; position: absolute; right: -4px; bottom: 18px; width: 4px; height: 26px; background: #E8E5DE; }
.rm a i { grid-row: 1 / 3; font: 700 26px/1 var(--disp); font-style: normal; color: var(--flow); width: 1.2em; }
.rm a b { font: 600 16px/1.2 var(--disp); }
.rm a span { font-size: 13.5px; color: var(--soft); }
.rm a:hover, .rm a:focus-visible { background-color: rgba(241,194,50,.35); }
.rm-gate a { background-color: rgba(241,194,50,.22); }
.rm-line { grid-row: 1 / 3; grid-column: 4; }
.rm-line a { background-color: rgba(37,94,138,.12); }
.rm-dock a { border-right: 0; }

/* ------------------------------------------------------------ section signs and rooms */
.room { padding: clamp(50px, 7vw, 90px) var(--gut) 0; }
.sign { display: flex; align-items: stretch; gap: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 22px; }
.sign-no { display: grid; place-items: center; min-width: 1.6em; padding: 0 .3em; background: var(--hazard); color: var(--ink); margin-right: .45em; border: 3px solid var(--ink); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.src { font-size: 14px; color: var(--soft); border-left: 4px solid var(--hazard); padding-left: 12px; }
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gauge { background: var(--sheet); border: 2px solid var(--ink); border-radius: 3px; padding: 8px 10px 10px; }
.gauge svg { display: block; width: 100%; height: auto; }
.gauge p { margin: 2px 0 0; font: 600 14px/1.25 var(--disp); }
.gauge p span { display: block; font: 400 12.5px var(--text); color: var(--soft); }

/* measuring room */
.bench { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 26px; margin-top: 20px; align-items: start; }
.intake { border: 2px solid var(--ink); background: var(--sheet); margin: 0; padding: 12px 16px 16px; }
.intake legend { font: 600 15px var(--disp); padding: 0 6px; }
.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.opt input { margin-top: 5px; accent-color: var(--flow); }
.opt b { display: block; font-weight: 600; }
.opt em { font-style: normal; font-size: 14px; color: var(--soft); }
.opt.sub { grid-template-columns: minmax(0, 1fr) auto; padding-left: 30px; }
.synth-knobs { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 0 10px 30px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.synth-knobs input { width: 84px; padding: 4px 6px; border: 1px solid var(--rule); font: 400 14px var(--code); background: #fff; }
.panel-line { font-size: 14.5px; color: var(--soft); margin: 12px 0 0; }
.spc { background: var(--sheet); border: 2px solid var(--ink); padding: 12px 14px; min-width: 0; }
.spc-head, .rig-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 8px; font-size: 14.5px; }
select { padding: 5px 8px; border: 2px solid var(--ink); background: #fff; border-radius: 2px; font: 500 14.5px var(--text); max-width: 100%; }
#cvSpc { display: block; width: 100%; height: 320px; }
.spc-note, .es-note { font-size: 14px; color: var(--soft); margin: 6px 0 0; }

/* test cell */
.cell-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; margin-top: 18px; align-items: start; }
.rig { background: var(--sheet); border: 2px solid var(--ink); padding: 12px 14px; min-width: 0; }
.chk { display: inline-flex; gap: 6px; align-items: center; }
#cvEs { display: block; width: 100%; height: 340px; }
.cert { background: #FFFDF6; border: 2px solid var(--ink); padding: 16px 18px; position: relative; box-shadow: 8px 8px 0 rgba(29,33,36,.15); }
.cert::after { content: ""; position: absolute; right: 16px; top: 14px; width: 54px; height: 54px; border-radius: 50%; border: 3px double rgba(47,133,86,.6); }
.cert-h { font: 700 20px var(--disp); margin: 0 0 14px; padding-right: 70px; min-height: 52px; }
.cert-t { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cert-t th { text-align: left; font-weight: 600; font-family: var(--text); white-space: normal; vertical-align: bottom; border-bottom: 2px solid var(--ink); padding: 4px 6px 4px 0; }
.cert-t td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cert-t .r { text-align: right; white-space: nowrap; font-family: var(--code); }
.cert-t th.r { font-family: var(--text); white-space: normal; }
.cert-t td.r { padding-left: 12px; }
.cert-t tr.on td { background: rgba(241,194,50,.3); }
.tag { display: inline-block; padding: 0 6px; border-radius: 2px; font: 600 12.5px var(--disp); }
.tag.up { background: rgba(37,94,138,.15); color: var(--flow); } .tag.down { background: rgba(211,94,40,.15); color: #A6431A; } .tag.flat { background: rgba(87,93,98,.15); color: var(--soft); }
.cert-f { font-size: 13.5px; color: var(--soft); margin: 10px 0 0; }

/* the line */
.line-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 26px; margin-top: 18px; align-items: start; }
.levers { background: var(--steel); color: #E9E7E1; padding: 16px 18px; border-radius: 3px; }
.lev-h { font: 600 16px var(--disp); color: var(--hazard); }
.levers label { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 12px; font-size: 14.5px; }
.levers input[type=range] { grid-column: 1 / -1; accent-color: var(--hazard); width: 100%; }
.levers output { font: 600 14px var(--code); color: #fff; }
.levers .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px #E9E7E1; }
.flowbox { min-width: 0; }
.flows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.flows figure { margin: 0; background: var(--sheet); border: 2px solid var(--ink); padding: 8px 8px 4px; }
.flows figcaption { font: 600 15px var(--disp); margin-bottom: 4px; }
.flows svg { display: block; width: 100%; height: auto; }
.flows .st { fill: var(--steel); }
.flows .st-t { font: 600 13px var(--disp); fill: #fff; }
.flows .fl { fill: var(--flow); opacity: .85; }
.flows .fl-t, .flows .q-t { font: 600 12.5px var(--code); fill: var(--ink); }
.flows .q { fill: var(--queue); }
.flows .dn { fill: var(--done); }
.line-t { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--sheet); border: 2px solid var(--ink); }
.line-t th, .line-t td { padding: 6px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.line-t th { font-family: var(--disp); border-bottom: 2px solid var(--ink); }
.line-t .r { text-align: right; font-family: var(--code); }
.line-t tr.key td { font-weight: 600; background: rgba(47,133,86,.12); }
.line-v { font: 600 18px/1.35 var(--disp); margin-top: 12px; }

/* the standard */
.sheet { background: var(--sheet); border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 6px; margin: 30px 8px 8px; padding: 0; }
.titleblock { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-bottom: 2px solid var(--ink); }
.tb-main { padding: 16px 20px; border-right: 2px solid var(--ink); }
.tb-code { font: 700 16px var(--disp); color: var(--flow); margin: 0 0 6px; }
.tb-main h3 { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.2; }
.tb-cells { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tb-cells div { padding: 8px 12px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.tb-cells div:nth-child(odd) { border-left: 0; }
.tb-cells dt { font-size: 12px; color: var(--soft); }
.tb-cells dd { margin: 0; font: 600 14.5px var(--disp); }
.clauses { padding: 18px 22px 8px; columns: 2 380px; column-gap: 40px; column-rule: 1px solid var(--rule); }
.cl { break-inside: auto; margin-bottom: 14px; }
.cl h4 { font-size: 18px; margin: 4px 0 8px; break-after: avoid; }
.cl h4 span { display: inline-block; min-width: 1.6em; color: var(--flow); }
.cl p { font-size: 15.5px; }
.refs { margin: 0; padding-left: 2.2em; font-size: 14.5px; }
.refs li { margin-bottom: 4px; }
.refs li::marker { content: "2." counter(list-item) "  "; font-family: var(--disp); }
.terms { margin: 0; font-size: 15px; }
.terms dt { font: 600 15px var(--disp); margin-top: 6px; }
.terms dd { margin: 0 0 0 1.2em; }
.eq { text-align: center; font: 400 16px var(--code); background: #fff; border: 1px dashed var(--rule); padding: 8px; break-inside: avoid; overflow-wrap: anywhere; }
.std-t { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 12px; break-inside: avoid; font-variant-numeric: tabular-nums; }
.std-t caption { caption-side: top; text-align: left; font: 600 13.5px var(--disp); padding-bottom: 4px; }
.std-t th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 4px 6px 4px 0; text-align: left; }
.std-t td { padding: 3px 6px 3px 0; border-bottom: 1px solid var(--rule); }
.std-t .r { text-align: right; font-family: var(--code); }
.std-t th.r { font-family: var(--text); padding-left: 10px; }
.std-t td.r { padding-left: 10px; }
.sheet-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); font: 600 13px var(--disp); }
.sheet-foot span { padding: 6px 12px; border-left: 1px solid var(--ink); }
.sheet-foot span:first-child { border-left: 0; }

/* manuals */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 10px; }
.wi { background: var(--sheet); border: 2px solid var(--ink); }
.wi-h { margin: 0; padding: 10px 14px 10px 50px; position: relative; font: 700 17px/1.2 var(--disp); background: repeating-linear-gradient(-45deg, var(--hazard) 0 12px, #E3B21F 12px 24px); border-bottom: 2px solid var(--ink); }
.wi-h i { position: absolute; left: 0; top: 0; bottom: 0; width: 38px; display: grid; place-items: center; background: var(--ink); color: var(--hazard); font-style: normal; }
.wi ol { margin: 0; padding: 12px 16px 14px 36px; font-size: 15px; }
.wi li { margin-bottom: 6px; }
.wi code { background: #E6E3DA; padding: 0 4px; }
.api { margin-top: 18px; border: 2px solid var(--ink); background: var(--sheet); }
.api summary { cursor: pointer; padding: 12px 16px; font: 600 16px var(--disp); }
.api-body { padding: 0 16px 14px; }
.api-body dt { font: 600 14.5px var(--code); margin-top: 12px; overflow-wrap: anywhere; }
.api-body dd { margin: 4px 0 0 1.5em; font-size: 15px; }

/* parts store */
.parts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bom { width: 100%; border-collapse: collapse; background: var(--sheet); border: 2px solid var(--ink); font-size: 14px; }
.bom caption { caption-side: top; text-align: left; font: 600 14px var(--disp); padding-bottom: 6px; }
.bom th { text-align: left; border-bottom: 2px solid var(--ink); padding: 6px 8px; font-family: var(--disp); }
.bom td { border-bottom: 1px solid var(--rule); padding: 0; vertical-align: top; }
.bom button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px; color: var(--ink); font: inherit; }
.bom tr.on td { background: rgba(241,194,50,.4); }
.bom .pn { font: 600 13px var(--code); color: var(--flow); white-space: nowrap; }
.bom .fn { font: 400 13.5px var(--code); overflow-wrap: anywhere; }
.bom .sh { font: 400 11.5px var(--code); color: var(--soft); white-space: nowrap; }
.viewer { background: #1F2326; color: #E3E1DA; border: 2px solid var(--ink); min-width: 0; }
.vw-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0; border-bottom: 1px solid #3B4247; font-size: 13.5px; color: #9AA1A6; }
.vw-h b { font: 600 14px var(--code); color: var(--hazard); }
.vw-body { max-height: 560px; overflow: auto; }
.code { margin: 0; padding: 10px 0; font: 400 13px/1.6 var(--code); counter-reset: ln; }
.code span { display: block; white-space: pre; padding-right: 12px; }
.code span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 4.4ch; margin-right: 1.8ch; text-align: right; color: #6A7177; }
.md { padding: 10px 20px 14px; font-size: 15px; }
.md h1 { font-size: 30px; color: var(--hazard); margin: 6px 0 8px; }
.md h2 { font-size: 21px; color: #fff; margin: 20px 0 8px; }
.md h3 { font-size: 17px; margin: 14px 0 6px; }
.md a { color: #8EC1E6; }
.md code { background: #33393E; padding: 0 4px; }
.md pre { background: #2B3034; padding: 10px; overflow: auto; font: 400 12.5px/1.5 var(--code); }
.md pre code { background: none; padding: 0; }
.md table { border-collapse: collapse; font-size: 13.5px; display: block; overflow-x: auto; margin: 8px 0 12px; }
.md th, .md td { border-bottom: 1px solid #3B4247; padding: 4px 10px 4px 0; text-align: left; vertical-align: top; }
.counter { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
.counter > .btnrow { grid-column: 1 / -1; margin: 0; }
.cmd { margin: 0; background: var(--steel); color: #E3E1DA; padding: 14px; font: 400 13.5px/1.7 var(--code); white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 2px; }
.qc-h { font: 600 15px var(--disp); margin: 0 0 6px; }
.qc textarea { width: 100%; padding: 8px 10px; border: 2px solid var(--ink); background: #fff; font: 400 13px var(--code); resize: vertical; }
.qc-out { font-size: 14.5px; }
.qc-out.ok { color: var(--done); } .qc-out.bad { color: #A6431A; }

/* ------------------------------------------------------------ the gatehouse */
.gate { padding: clamp(40px, 6vw, 70px) var(--gut) 0; }
.gate-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.cabinet { background: linear-gradient(180deg, #4A5056, #3A4046); border-radius: 6px; padding: 12px 14px 14px; box-shadow: inset 0 0 0 2px #2A2F33, 0 18px 30px -20px rgba(0,0,0,.8); position: relative; }
.cabinet::before, .cabinet::after { content: ""; position: absolute; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #B9BEC2, #5A6066); }
.cabinet::before { left: 8px; } .cabinet::after { right: 8px; }
.cab-top { display: flex; align-items: center; gap: 8px; padding: 2px 14px 10px; color: #D9DCDE; font: 500 14px var(--disp); }
.lamp { width: 12px; height: 12px; border-radius: 50%; background: #5A2A20; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.lamp.on { background: #6BD48F; box-shadow: 0 0 10px rgba(107,212,143,.8); }
.cab-name { margin-left: 6px; }
.screen { position: relative; height: clamp(360px, 36vw, 500px); background: #0F1215; border: 8px solid #1C2024; border-radius: 4px; box-shadow: inset 0 0 30px rgba(0,0,0,.8); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen-wait { position: absolute; inset: 0; display: grid; place-items: center; font: 500 16px var(--disp); color: #6BD48F; transition: opacity .4s; }
.screen-wait.off { opacity: 0; pointer-events: none; }
.cab-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.toggles { display: flex; gap: 10px; flex-wrap: wrap; }
.tg { display: grid; justify-items: center; gap: 4px; width: 84px; padding: 8px 4px; background: #2A2F33; border-radius: 3px; color: #E9E7E1; text-decoration: none; font: 500 12px var(--disp); box-shadow: inset 0 0 0 1px #5A6066; }
.tg img { width: 22px; height: 22px; border-radius: 3px; object-fit: contain; background: #fff; padding: 1px; }
.tg-lever { width: 10px; height: 26px; border-radius: 5px; background: linear-gradient(90deg, #C8CCD0, #8A9096); transform: rotate(-18deg); transform-origin: bottom center; transition: transform .2s; box-shadow: 0 2px 2px rgba(0,0,0,.5); }
.tg:hover .tg-lever, .tg:focus-visible .tg-lever { transform: rotate(18deg); }
.tg:hover, .tg:focus-visible { box-shadow: inset 0 0 0 2px var(--hazard); }
.full { color: var(--hazard); font: 600 14px var(--disp); }
.crate { background: repeating-linear-gradient(90deg, #C79B5E 0 46px, #B98C51 46px 50px); padding: 18px; border-radius: 3px; box-shadow: inset 0 0 0 3px #8E6635, 0 18px 30px -20px rgba(0,0,0,.7); }
.label { background: #FFFEF9; padding: 14px 16px; border: 1.5px solid var(--ink); }
.lab-from { font-size: 13px; color: var(--soft); margin: 0 0 4px; }
.lab-to { font: 700 22px var(--disp); margin: 0 0 8px; }
.barcode { display: block; width: 100%; height: 70px; }
.lab-ca { margin: 6px 0 0; text-align: center; }
.lab-ca code { font: 400 14px var(--code); letter-spacing: .04em; overflow-wrap: anywhere; }
.lab-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 0; }
.lab-ok { font: 600 14px var(--disp); color: var(--done); }
.label.ok { box-shadow: 0 0 0 4px var(--hazard); }
.slip { width: 100%; margin-top: 14px; background: #F7F0DC; border-collapse: collapse; font-size: 15px; box-shadow: 0 6px 12px -8px rgba(0,0,0,.6); }
.slip caption { caption-side: top; text-align: left; font: 700 15px var(--disp); background: #F7F0DC; padding: 8px 12px 0; }
.slip th { text-align: left; font-weight: 400; color: var(--soft); padding: 5px 12px; border-bottom: 1px dashed #C9BC97; }
.slip td { text-align: right; font: 600 15px var(--code); padding: 5px 12px; border-bottom: 1px dashed #C9BC97; }
#stChg.up { color: var(--done); } #stChg.down { color: #A6431A; }
.slip-at { font-size: 13px; color: #3E2E14; margin: 8px 0 0; }

/* ------------------------------------------------------------ the loading dock */
.dock { margin-top: clamp(60px, 8vw, 100px); background: #3A4046; color: #E9E7E1; padding: 40px var(--gut) 30px; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 26px 40px; align-items: center; border-top: 12px solid; border-image: repeating-linear-gradient(-45deg, var(--hazard) 0 18px, var(--ink) 18px 36px) 12; }
.clock { position: relative; background: linear-gradient(180deg, #D9D6CE, #B9B5AB); color: var(--ink); border-radius: 8px; padding: 18px 18px 54px; text-align: center; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 16px 26px -16px rgba(0,0,0,.9); }
.clock-face { margin: 0; background: #12161A; color: #FF7A4A; font: 600 34px/1.3 var(--code); border-radius: 4px; padding: 8px 4px; letter-spacing: .05em; box-shadow: inset 0 0 12px rgba(255,122,74,.25); }
.clock-name { font: 700 18px var(--disp); margin: 10px 0 0; }
.clock-slot { position: absolute; left: 50%; bottom: 16px; width: 120px; height: 12px; margin-left: -60px; background: #1D2124; border-radius: 3px; }
.rack { list-style: none; margin: 0; padding: 14px; display: flex; gap: 12px; flex-wrap: wrap; background: repeating-linear-gradient(90deg, #2A2F33 0 4px, #4A5056 4px 120px); border-radius: 3px; }
.rack li { flex: 1 1 140px; max-width: 180px; }
.card { display: grid; gap: 4px; padding: 10px 12px 14px; min-height: 120px; background: #F4ECD2; color: var(--ink); text-decoration: none; border-radius: 2px; position: relative; box-shadow: 0 4px 8px rgba(0,0,0,.4); transition: transform .2s; background-image: repeating-linear-gradient(180deg, transparent 0 17px, rgba(181,55,44,.25) 17px 18px); }
.card .c-no { font: 600 12px var(--code); color: #8A6E36; }
.card b { font: 700 17px var(--disp); }
.c-punch { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 8px; background: transparent; border: 2px dashed rgba(29,33,36,.4); }
.card:hover, .card:focus-visible { transform: translateY(8px); }
.card:hover .c-punch, .card:focus-visible .c-punch { background: var(--ink); border-color: var(--ink); }
.dock-fine { grid-column: 1 / -1; font-size: 13.5px; color: #B9BEC2; margin: 0; max-width: 60em; }

/* ------------------------------------------------------------ narrower */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-line { grid-row: auto; grid-column: auto; }
  .gate-grid, .room-grid, .bench, .cell-grid, .line-grid, .parts-grid { grid-template-columns: minmax(0, 1fr); }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .tb-main { border-right: 0; border-bottom: 2px solid var(--ink); }
}
@media (max-width: 640px) {
  .bom th:nth-child(3), .bom td:nth-child(3) { display: none; }
  .bom td:nth-child(2) { overflow-wrap: normal; word-break: normal; }
  body { font-size: 16px; }
  .cert { padding: 14px 12px; }
  .cert-t { font-size: 13px; }
  .cert-t td:nth-child(3) { white-space: normal; min-width: 88px; }
  .lead { font-size: 17.5px; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm a { min-height: 76px; padding: 10px; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .flows { grid-template-columns: minmax(0, 1fr); }
  .counter { grid-template-columns: minmax(0, 1fr); }
  .dock { grid-template-columns: minmax(0, 1fr); }
  .clock { max-width: 280px; }
  .tg { width: 72px; }
  #cvSpc { height: 260px; } #cvEs { height: 280px; }
  .sheet { margin: 24px 4px 4px; }
  .clauses { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
