/* Vaultless: a hardware manual on paper. Ink, one signal orange, dot-matrix numerals.
   Motion always runs, also under reduced-motion settings (the owner's standing preference);
   it is kept small and local: nothing zooms, parallaxes or scrolls by itself. */

@font-face { font-family: "Archivo"; src: url(fonts/archivo.woff2?v=4fc4dae115) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Doto"; src: url(fonts/doto.woff2?v=4fc4dae115) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(fonts/martian-mono.woff2?v=4fc4dae115) format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  --paper: #ebe8e1;
  --paper-2: #e2ded5;
  --paper-3: #d5d0c4;
  --ink: #151413;
  --ink-2: #57534b;
  --ink-3: #8c877d;
  --rule: rgba(21, 20, 19, .15);
  --rule-2: rgba(21, 20, 19, .34);
  --orange: #ff5a1f;
  --orange-d: #c8400c;
  --bench: #131312;
  --bench-2: #1c1b19;
  --bench-3: #2b2a27;
  --bench-ink: #edebe5;
  --bench-ink-2: #9b978d;
  --bench-rule: rgba(237, 235, 229, .11);
  --dark: #151413;      /* ink that never turns light: text on orange, hazard stripes */
  --card: #f5f2ea;
  --field: #fff;
  --perf-a: .17;        /* the background dots */
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --dot: "Doto", "Martian Mono", monospace;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1320px;
  color-scheme: light;
}

/* Dark: the same manual, read under a lamp. Light stays the default (js/theme.js). */
:root[data-theme="dark"] {
  --paper: #161513;
  --paper-2: #201f1c;
  --paper-3: #2f2d29;
  --ink: #ebe8e1;
  --ink-2: #aba69b;
  --ink-3: #7f7a70;
  --rule: rgba(235, 232, 225, .13);
  --rule-2: rgba(235, 232, 225, .3);
  --orange-d: #ff7a45;
  --bench: #0c0c0b;
  --bench-2: #171614;
  --card: #1e1d1a;
  --field: #0f0e0d;
  --perf-a: .12;
  color-scheme: dark;
}
/* Printed paper stays paper in either theme. */
.label { --ink: #151413; --ink-2: #57534b; --ink-3: #8c877d; --orange-d: #c8400c; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--dark); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
code, pre, kbd { font-family: var(--mono); font-stretch: 87.5%; }
kbd { font-size: .78em; padding: 1px 5px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 3px; background: var(--paper-2); }

#perf { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
header, main, footer { position: relative; z-index: 1; }

.cap { font: 500 11px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.dotnum { font-family: var(--dot); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font: 650 15px/1 var(--sans); font-stretch: 100%; letter-spacing: .005em;
  padding: 13px 18px; border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn .arr { display: inline-block; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-o { background: var(--orange); border-color: var(--orange); color: var(--dark); }
.btn-o:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-lg { padding: 18px 26px; font-size: 18px; }
.btn-sm { padding: 9px 13px; font-size: 13px; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-o:disabled, .btn-o:disabled:hover { background: transparent; border-color: var(--rule-2); color: var(--ink-3); opacity: 1; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-link { font: 600 15px var(--sans); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.btn-link:hover { color: var(--orange-d); }
.tool { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 500 12px var(--mono); font-stretch: 87.5%; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.tool:hover { color: var(--ink); }
.tool.lit { color: var(--orange-d); text-align: left; }

/* ---------------------------------------------------------------- header */
.hd {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wm { font: 800 27px/1 var(--dot); letter-spacing: -.01em; }
.tag { font: 600 10px var(--mono); font-stretch: 87.5%; letter-spacing: .08em; border: 1.5px solid var(--ink); padding: 3px 5px 2px; }
.hd-nav { display: flex; gap: 22px; margin-left: auto; }
.hd-nav a { text-decoration: none; font: 500 12px var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; display: flex; gap: 6px; }
.hd-nav a i { font-style: normal; color: var(--ink-3); }
.hd-nav a:hover { color: var(--orange-d); }
.hd-cta { padding: 10px 14px; font-size: 14px; }
/* light / dark: a slide switch, like the one on the board */
.lamp { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: 500 12px var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; }
.lamp-sw { position: relative; width: 34px; height: 18px; border: 1.5px solid var(--ink); border-radius: 2px; }
.lamp-sw i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; background: var(--ink); border-radius: 1px; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
.lamp[aria-pressed="true"] .lamp-sw i { transform: translateX(16px); background: var(--orange); }
.lamp:hover { color: var(--orange-d); }
.lamp:hover .lamp-sw { border-color: var(--orange-d); }
@media (max-width: 900px) { .hd-nav { display: none; } .lamp { margin-left: auto; } }
@media (max-width: 560px) { .hd { gap: 16px; } .lamp-t { display: none; } }
@media (max-width: 420px) { .tag { display: none; } .hd-cta { padding: 9px 11px; font-size: 13px; } }
@media (max-width: 380px) { .hd { gap: 12px; } .wm { font-size: 23px; } .hd-cta { white-space: nowrap; } .hd-cta .arr { display: none; } }

/* ---------------------------------------------------------------- sections */
main > section:not(.bench) { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--pad); }
.sec { border-top: 1px solid var(--rule); }
.sec-hd { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 24px; margin-bottom: 48px; }
.sec-n { font: 800 22px/1 var(--dot); color: var(--orange); padding-top: 10px; grid-row: span 2; }
.sec-hd h2 { font: 850 clamp(40px, 6.4vw, 92px)/.9 var(--sans); font-stretch: 64%; letter-spacing: -.005em; max-width: 15ch; }
.sec-p { grid-column: 2; margin-top: 20px; max-width: 58ch; color: var(--ink-2); font-size: 18px; }
@media (max-width: 700px) { .sec-hd { grid-template-columns: minmax(0, 1fr); } .sec-n { grid-row: auto; margin-bottom: 14px; } .sec-p { grid-column: 1; } }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: clamp(36px, 5vw, 64px) !important; padding-bottom: 56px !important; }
.hero-h { font: 850 clamp(52px, 10.4vw, 168px)/.84 var(--sans); font-stretch: 62%; letter-spacing: -.008em; }
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-h .ln > span { display: inline-block; animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-h .ln:nth-child(2) > span { animation-delay: .12s; }
.hero-h b { color: var(--orange); }
.hero-h .ln:nth-child(2) b { animation: blink 1.1s steps(1) 1.6s infinite; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes blink { 50% { opacity: 0; } }

.rig { position: relative; display: grid; grid-template-columns: 150px minmax(70px, 1fr) minmax(360px, 540px) minmax(150px, .9fr) 240px; align-items: center; margin-top: clamp(36px, 5vw, 60px); }
.rig > div { position: relative; z-index: 1; }
.rig .cap { margin-bottom: 14px; }
.rig-in { grid-column: 1; }
.rig-dev { grid-column: 3; }
.rig-out { grid-column: 5; }
.rig-traces { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.rig-traces .tr { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.rig-traces .tr-lit { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; }
.rig-traces .via { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; }
.rig-traces .wave { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: wave 2.4s ease-out infinite; }
.rig-traces .wave.w2 { animation-delay: .8s; }
.rig-traces .wave.w3 { animation-delay: 1.6s; }
.rig.typing .rig-traces .wave { stroke: var(--orange); animation-duration: .9s; }
@keyframes wave { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }

.rig-words { list-style: none; margin: 0; padding: 0; font: 500 13px/27px var(--mono); font-stretch: 87.5%; }
.rig-words li { display: flex; gap: 10px; transition: color .25s; white-space: nowrap; }
.rig-words li i { font-style: normal; color: var(--ink-3); transition: color .25s; }
.rig-words li.tx, .rig-words li.tx i { color: var(--orange-d); }

.hint { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap; pointer-events: none; z-index: 3;
  font: 600 12px var(--mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  opacity: 0; transition: opacity .35s, top .35s; }
.hint.on { opacity: 1; }
.hint::before { content: ""; flex: none; width: 26px; height: 1.5px; background: var(--ink); }
.hint-t { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.hint b { color: var(--dark); background: var(--orange); padding: 4px 7px 3px; font-weight: 700; }
.hint small { font: 500 11px var(--mono); font-stretch: 87.5%; color: var(--ink-2); letter-spacing: .04em; }
.hint.stacked::before { display: none; }
.hint.stacked .hint-t { flex-direction: row; align-items: center; gap: 8px; }

.laptop { width: 100%; }
.lt-screen { position: relative; display: flex; flex-direction: column; gap: 9px; aspect-ratio: 16 / 10.5; padding: 9% 11%; border: 2px solid var(--ink); border-radius: 10px 10px 2px 2px; background: var(--paper); }
.lt-site { font: 500 10px var(--mono); font-stretch: 87.5%; color: var(--ink-3); letter-spacing: .03em; margin-bottom: auto; }
.lt-label { font: 600 12px var(--sans); }
.lt-field { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--field); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.lt-field.active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 45%, transparent); border-color: var(--orange-d); }
.lt-dots { font: 700 14px var(--mono); letter-spacing: .02em; white-space: nowrap; }
.lt-caret { flex: none; width: 1.5px; height: 18px; background: var(--ink); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.lt-btn { align-self: flex-start; font: 650 12px var(--sans); padding: 7px 12px; background: var(--ink); color: var(--paper); border-radius: 2px; transition: background .2s, color .2s; }
.lt-btn.ok { background: var(--orange); color: var(--dark); }
.lt-base { position: relative; height: 14px; margin: 0 -9%; border: 2px solid var(--ink); border-top-width: 0; border-radius: 0 0 14px 14px; background: var(--paper-2); }
.lt-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 4px; border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 5px 5px; }

.glyph { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; font: 800 17px/1 var(--mono); color: var(--orange-d); will-change: transform; }

.hero-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: flex-end; }
.demo-note { margin-top: 26px; color: var(--ink-3); max-width: 90ch; }
/* the current firmware, as a small tag with a status LED */
.fw-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1.5px solid var(--ink); border-radius: 3px; text-decoration: none; color: var(--ink); transition: background .2s; }
.fw-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 31, .18); animation: blink 2.4s steps(1) infinite; }
.fw-tag .cap { color: var(--ink-2); }
.fw-tag b { font: 800 18px/1 var(--sans); font-stretch: 75%; }
.fw-tag:hover { background: rgba(255, 90, 31, .1); }

@media (max-width: 1100px) {
  .rig { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 30px; }
  .rig > div { grid-column: 1 !important; width: 100%; }
  .rig-in { order: 1; }
  .rig-dev { order: 2; max-width: 560px; }
  /* the laptop's base is 18% wider than its screen; keep it 8px inside the phone's edges */
  .rig-out { order: 3; max-width: min(330px, calc((100% + 2 * var(--pad) - 16px) / 1.18)); }
  .rig-words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; line-height: 22px; font-size: 12px; }
  .rig-traces .tr, .rig-traces .via { display: none; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-cta { justify-content: flex-start; }
}
@media (max-width: 520px) { .rig-words { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- device (VL-1) */
.device { position: relative; width: 100%; aspect-ratio: 620 / 260; user-select: none; -webkit-user-select: none; }
.device .pcb { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 22px 22px rgba(30, 24, 14, .28)) drop-shadow(0 3px 4px rgba(30, 24, 14, .3)); }
.bench .device .pcb { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .65)) drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.pcb-body { fill: #1b1c1d; }
.pcb-edge { fill: none; stroke: #33373a; stroke-width: 2; }
.pcb-pad { fill: #b8922f; }
.pcb-hole { fill: #0c0c0c; }
.pcb-silk { fill: #d9d4c7; font: 600 10px var(--mono); font-stretch: 87.5%; letter-spacing: .08em; opacity: .72; }
.pcb-usb-in { fill: #1c1e20; }
.pcb-glass { fill: #060606; stroke: #2b2d2f; stroke-width: 1.5; }
.pcb-led { fill: #3b2a22; transition: fill .12s; }
.device.led .pcb-led { fill: var(--orange); }
.device .screen {
  position: absolute; left: 9.355%; top: 12.31%; width: 59.52%; aspect-ratio: 320 / 170;
  container-type: inline-size; overflow: hidden; background: #000; color: #fff; font-family: var(--sans);
}
.device .screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 9; background: linear-gradient(125deg, rgba(255, 255, 255, .07), transparent 38%); }
.key {
  position: absolute; left: 87.1%; width: 6.45%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 38% 32%, #4a4d50, #17181a 68%); box-shadow: 0 2px 0 #050505, inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .06s, box-shadow .06s; touch-action: none;
}
.key.a { top: 23.08%; }
.key.b { top: 61.54%; }
.key.down { transform: scale(.86); box-shadow: 0 0 0 #050505, inset 0 2px 4px rgba(0, 0, 0, .7); }
.key::after { content: ""; position: absolute; inset: -60%; border-radius: 50%; border: 2.5px solid var(--orange); opacity: 0; pointer-events: none; }
.key.nudge::after { animation: ring 1.5s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.device.static .key { cursor: default; }

/* screen contents. 1cqw = 3.2 device pixels */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scr-bar { display: flex; align-items: center; justify-content: space-between; height: 15.3cqw; padding: 0 2.6cqw; border-bottom: .32cqw solid #31302c; font-size: 5.6cqw; font-weight: 700; font-stretch: 90%; }
.scr-bar .st { display: flex; align-items: center; gap: 1.8cqw; font-size: 4.3cqw; font-weight: 500; color: #9b978d; }
.scr-bar .st.ok { color: #4ee07a; }
.scr-bar .st.ok::before { content: ""; width: 2cqw; height: 2cqw; border-radius: 50%; background: #4ee07a; }
.scr-bar .bat { width: 7.2cqw; height: 3.6cqw; border: .45cqw solid #9b978d; border-radius: .7cqw; position: relative; }
.scr-bar .bat::after { content: ""; position: absolute; left: .45cqw; top: .45cqw; bottom: .45cqw; right: 1.8cqw; background: #9b978d; }
.scr-body { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scr-hint { height: 9cqw; display: flex; align-items: center; justify-content: center; font-size: 3.9cqw; color: #9b978d; }
.scr-hint.abs { position: absolute; bottom: 0; left: 0; right: 0; }
.scr-label { position: absolute; left: 5cqw; top: 3.2cqw; font-size: 4.2cqw; color: #9b978d; letter-spacing: .1em; }
.seg7 { display: block; height: 15cqw; width: auto; fill: #fff; }
.seg7.big { height: 21cqw; }
.seg7.o { fill: var(--orange); }
.scr-meta { font-size: 4.2cqw; color: #9b978d; margin-top: 2.6cqw; }
.scr-meta.gap { margin-top: 4cqw; }
.scr-meta.o { color: var(--orange); }
.scr-boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.8cqw; background: #000; }
.scr-boot b { font-size: 14cqw; font-weight: 800; font-stretch: 85%; letter-spacing: -.02em; animation: bootin .9s cubic-bezier(.2, .7, .2, 1) both; }
.scr-boot i { width: 25cqw; height: .95cqw; background: var(--orange); border-radius: 1cqw; animation: bootbar 1s .25s cubic-bezier(.7, 0, .2, 1) both; }
.scr-boot small { font-size: 5cqw; color: #9b978d; animation: fadein .6s .6s both; }
@keyframes bootin { from { opacity: 0; letter-spacing: .25em; filter: blur(4px); } }
@keyframes bootbar { from { transform: scaleX(0); } }
@keyframes fadein { from { opacity: 0; } }
.scr-list { position: absolute; top: 15.3cqw; bottom: 9cqw; left: 0; right: 0; padding: 1.3cqw 1.5cqw; display: flex; flex-direction: column; gap: .6cqw; }
.scr-row { display: flex; justify-content: space-between; align-items: center; height: 7.6cqw; padding: 0 3cqw; border-radius: 1.6cqw; font-size: 4.7cqw; color: #d7d3c8; }
.scr-row.sel { background: #5a1e08; color: #fff; }
.scr-row b { font-size: 4.5cqw; color: #9b978d; }
.scr-row.sel b { color: var(--orange); }
.scr-prog { width: 80%; height: 4.4cqw; border: .5cqw solid #3a3833; border-radius: 3cqw; margin-top: 5cqw; overflow: hidden; }
.scr-prog i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 3cqw; transition: width .08s linear; }
.scr-title { font-size: 7cqw; font-weight: 750; font-stretch: 90%; }
.scr-title.o { color: var(--orange); margin-top: 2cqw; }
.scr-sub { font-size: 4.5cqw; color: #d7d3c8; margin-top: 1.5cqw; text-align: center; padding: 0 4cqw; line-height: 1.35; }
.scr-pwd { font: 700 5.4cqw/1.55 var(--mono); font-stretch: 87.5%; text-align: center; padding: 0 4cqw; word-break: break-all; }
.scr-pwd .d { color: var(--orange); } .scr-pwd .s { color: #ffc21a; }
.scr-dots { display: flex; gap: 3.5cqw; margin-top: 5cqw; }
.scr-dots i { width: 4cqw; height: 4cqw; border-radius: 50%; border: .5cqw solid #45423c; }
.scr-dots i.on { background: var(--orange); border-color: var(--orange); }
.scr-toast { position: absolute; left: 50%; bottom: 12cqw; transform: translateX(-50%); padding: 1.6cqw 4.5cqw; border-radius: 2.5cqw; background: #1c1b19; border: .4cqw solid currentColor; font-size: 4.5cqw; font-weight: 700; white-space: nowrap; animation: toast .25s cubic-bezier(.2, .7, .2, 1); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 3cqw); } }
.scr-log { position: absolute; inset: 0; padding: 4cqw 5cqw; font: 500 4.1cqw/1.6 var(--mono); font-stretch: 87.5%; color: #9b978d; display: flex; flex-direction: column; justify-content: flex-end; white-space: pre; overflow: hidden; }
.scr-log .hi { color: var(--orange); } .scr-log .ok { color: #4ee07a; } .scr-log .er { color: #ff4d4d; } .scr-log .w { color: #edebe5; }
.scr-off { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, #171717, #050505 70%); }

/* ---------------------------------------------------------------- dial section */
.dialbox { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .dialbox { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dial { max-width: 260px; } .dial-read .dotnum { font-size: 46px; } }
.dial-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dial { width: 100%; max-width: 340px; aspect-ratio: 1; cursor: grab; touch-action: none; border-radius: 50%; }
.dial:active { cursor: grabbing; }
.dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial .tick { stroke: var(--ink-3); stroke-width: 1.2; }
.dial .tick.major { stroke: var(--ink); stroke-width: 2.2; }
.dial .tick.on { stroke: var(--orange); stroke-width: 4; }
.dial .ring { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.dial .knurl { fill: #2c2b28; }
.dial .needle { stroke: var(--orange); stroke-width: 7; stroke-linecap: round; }
.dial .num { font: 600 11px var(--mono); font-stretch: 87.5%; fill: var(--ink-2); text-anchor: middle; dominant-baseline: middle; }
.dial-read { display: flex; align-items: baseline; gap: 14px; }
.dial-read .dotnum { font-size: 56px; line-height: 1; }
.dial-help { color: var(--ink-3); }

.flap-col { min-width: 0; }
.flap-hd { display: flex; justify-content: space-between; margin-bottom: 12px; }
.flaps { container-type: inline-size; display: grid; grid-template-columns: repeat(var(--cols, 20), minmax(0, 1fr)); gap: .5cqw; padding: 1.6cqw; background: #0f0f0e; border-radius: 6px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .5); }
.fc { position: relative; aspect-ratio: .66; perspective: 260px; font: 700 calc(100cqw / var(--cols, 20) * .74)/1 var(--mono); font-stretch: 75%; color: #f1eee6; }
.fc > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.fc > span > b { display: flex; align-items: center; justify-content: center; height: 200%; font-weight: 700; }
.fc .t, .fc .flip-t { top: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#272624, #1f1e1c); }
.fc .b, .fc .flip-b { bottom: 0; border-radius: 0 0 3px 3px; background: linear-gradient(#1b1a18, #232220); }
.fc .b > b, .fc .flip-b > b { transform: translateY(-50%); }
/* the moving halves. Not .ft/.fb: .ft is the footer, and its padding once made every flap balloon mid-flip */
.fc .flip-t { transform-origin: 50% 100%; z-index: 2; backface-visibility: hidden; visibility: hidden; will-change: transform; }
.fc .flip-b { transform-origin: 50% 0; z-index: 2; backface-visibility: hidden; visibility: hidden; will-change: transform; }
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: #0a0a09; z-index: 3; }
.fc.blank > span > b { color: transparent; }

.path { margin-top: 18px; font: 500 15px var(--mono); font-stretch: 87.5%; color: var(--ink-2); overflow-wrap: anywhere; }
.path span { color: var(--ink); }
.path b { color: var(--dark); background: var(--orange); padding: 1px 4px; font-weight: 700; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 26px; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper-2); }
.switch button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 14px; cursor: pointer; font: 600 12px var(--mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); transition: color .2s; }
.switch button[aria-checked="true"] { color: var(--paper); }
.switch .knob { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--ink); border-radius: 2px; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.switch.r .knob { transform: translateX(100%); }
.fader { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fader b { font-size: 30px; min-width: 2ch; }
.fader input { -webkit-appearance: none; appearance: none; width: min(200px, 44vw); height: 26px; background: transparent; cursor: pointer; }
.fader input::-webkit-slider-runnable-track { height: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 10px), var(--paper-3); border-radius: 2px; }
.fader input::-moz-range-track { height: 4px; background: var(--paper-3); border-radius: 2px; }
.fader input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 26px; margin-top: -11px; background: linear-gradient(var(--ink) 0 46%, var(--orange) 46% 54%, var(--ink) 54%); border-radius: 2px; border: 0; }
.fader input::-moz-range-thumb { width: 16px; height: 26px; background: var(--ink); border-radius: 2px; border: 0; }
.chain { list-style: none; display: flex; flex-wrap: wrap; margin: 34px 0 0; padding: 0; }
.chain li { position: relative; display: flex; flex-direction: column; padding: 10px 26px 10px 0; margin-right: 18px; }
.chain li:not(:last-child)::after { content: "→"; position: absolute; right: -6px; top: 9px; font: 500 15px var(--mono); color: var(--ink-3); }
.chain b { font: 650 15px var(--sans); transition: color .2s; }
.chain small { font: 500 10px var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.chain li.hot b { color: var(--orange-d); }
.chain li::before { content: ""; position: absolute; left: 0; right: 26px; top: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.chain li.hot::before { transform: scaleX(1); }

/* ---------------------------------------------------------------- parts */
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sec-p a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.sec-p a:hover { color: var(--orange); }
.parts { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .parts { grid-template-columns: minmax(0, 1fr); } }
.pick { position: sticky; top: 84px; padding: 26px 26px 22px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 6px 6px 0 var(--ink); }
.pick::before { content: ""; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.pick-code { display: block; margin: 14px 0 12px; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; white-space: nowrap; color: var(--ink); }
.pick-name { font: 650 19px/1.25 var(--sans); min-height: 2.5em; }
.pick-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px; padding: 0; }
.pick-specs li { font: 600 11px var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px 4px; border: 1.5px solid var(--rule-2); color: var(--ink-3); }
.pick-specs li.on { border-color: var(--dark); color: var(--dark); background: var(--orange); }
.pick .btn { width: 100%; justify-content: center; }
.pick-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .pick { position: relative; top: 0; } }
.bom-wrap { min-width: 0; }
.bom th, .bom td { text-align: left; padding: 15px 12px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.bom thead th { padding-top: 0; border-bottom: 1.5px solid var(--ink); }
.bom tbody tr { cursor: pointer; transition: background .15s; }
.bom tbody tr:hover { background: rgba(255, 90, 31, .06); }
.bom tbody tr.sel { background: rgba(255, 90, 31, .12); box-shadow: inset 4px 0 0 var(--orange); }
.bom tbody tr.sel th { padding-left: 14px; }
.bom tbody th { width: 118px; white-space: nowrap; transition: padding .2s; }
.bom tbody tr.grp { cursor: default; background: none; box-shadow: none; }
.bom tbody tr.grp th { width: auto; padding: 26px 0 9px; font: 600 11px var(--mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--ink); white-space: normal; }
.bom tbody tr.grp:first-child th { padding-top: 14px; }
.bom tbody tr.grp b { font-weight: 800; color: var(--ink); }
.bom code { font: 700 14px var(--mono); font-stretch: 87.5%; }
.bom .rec { margin-left: 8px; font: 700 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 5px; background: var(--ink); color: var(--paper); vertical-align: 2px; }
.bom td { font-size: 16px; }
.bom .yn { width: 64px; font: 700 15px var(--mono); color: var(--ink-3); }
.bom td:last-child { width: 72px; text-align: right; }
.bom a { font: 650 14px var(--sans); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; white-space: nowrap; }
.bom a:hover { color: var(--orange-d); }
@media (max-width: 640px) {
  .bom thead { display: none; }
  .bom, .bom tbody, .bom tr, .bom caption { display: block; width: 100%; }
  .bom tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; padding: 12px 10px; border-bottom: 1px solid var(--rule); }
  .bom th, .bom td { border: 0; padding: 0; width: auto !important; }
  .bom tbody tr.sel th { padding-left: 0; }
  .bom td:nth-child(2) { grid-column: 1 / 3; grid-row: 2; font-size: 15px; }
  .bom .yn { display: none; }
  .bom td:last-child { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .bom tbody tr.grp { display: block; padding: 0; border-bottom: 0; }
}
.bom-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
@media (max-width: 760px) { .bom-notes { grid-template-columns: minmax(0, 1fr); } }
.bom-notes > div { padding-left: 14px; border-left: 2px solid var(--rule-2); }
.bom-notes > div.no { border-left-color: var(--orange); }
.bom-notes h4 { margin: 0 0 4px; font: 750 16px var(--sans); }
.bom-notes p { margin: 0; font-size: 15px; color: var(--ink-2); }
.bom-aff { margin-top: 24px; color: var(--ink-3); }

/* ---------------------------------------------------------------- bench */
.bench {
  position: relative; color: var(--bench-ink); background-color: var(--bench);
  background-image:
    linear-gradient(var(--bench-rule) 1px, transparent 1px), linear-gradient(90deg, var(--bench-rule) 1px, transparent 1px),
    linear-gradient(rgba(237, 235, 229, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 235, 229, .035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
}
.bench-in { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--pad); }
.bench .sec-p { color: var(--bench-ink-2); }
.bench .cap { color: var(--bench-ink-2); }
.tabs { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 30px; border-bottom: 1px solid var(--bench-rule); }
.tabs li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; margin-right: 34px; font: 600 15px var(--sans); color: var(--bench-ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .25s, border-color .25s; }
.tabs li i { font: 800 15px var(--dot); font-style: normal; }
.tabs .short { display: none; }
@media (max-width: 560px) { .tabs .full { display: none; } .tabs .short { display: inline; } .tabs li { margin-right: 26px; } }
.tabs li.on { color: var(--bench-ink); border-color: var(--orange); }
.tabs li.past { color: var(--bench-ink); }
.tabs li.past i { color: var(--orange); }
.bench-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 980px) { .bench-grid { grid-template-columns: minmax(0, 1fr); } }
.bench-left { position: relative; min-width: 0; }
.pane { display: none; }
.pane.on { display: block; animation: panein .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes panein { from { opacity: 0; transform: translateY(10px); } }
.pane-note { margin: 16px 0 0; font-size: 14px; color: var(--bench-ink-2); }
.pane-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bench .btn { color: var(--bench-ink); border-color: var(--bench-ink); }
.bench .btn-o { color: var(--dark); border-color: var(--orange); }
.bench .btn-o:hover { background: var(--bench-ink); border-color: var(--bench-ink); color: var(--dark); }
.bench .btn-o:disabled, .bench .btn-o:disabled:hover { background: transparent; border-color: var(--bench-3); color: var(--bench-ink-2); opacity: 1; }
.bench .btn-ghost:hover { background: var(--bench-ink); color: var(--dark); }
.bench .tool { color: var(--bench-ink-2); }
.bench .tool:hover { color: var(--bench-ink); }
.bench .tool.lit { color: var(--orange); }
.bench kbd { background: var(--bench-3); border-color: rgba(255, 255, 255, .2); color: var(--bench-ink); }
.status { font: 500 13px var(--mono); font-stretch: 87.5%; color: var(--bench-ink-2); }
.status.ok { color: #6fe39a; }
.status.err { color: #ff7a5c; }
.backup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--bench-3); border-radius: 3px; }
.backup[hidden], .guard[hidden] { display: none; }
.backup .cap { margin-right: 6px; }
.backup p { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: var(--bench-ink-2); }
.guard { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--orange); background: rgba(255, 90, 31, .09); animation: panein .4s cubic-bezier(.2, .7, .2, 1); }
.guard p { margin: 0 0 12px; font-size: 15px; color: var(--bench-ink-2); }
.guard p b { color: var(--bench-ink); }
.label-tools { display: flex; gap: 18px; margin-top: 10px; }
.label .tool { color: var(--ink-2); }
.label .tool:hover { color: var(--orange-d); }
.update-only { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--bench-rule); font-size: 14px; color: var(--bench-ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.fw-now { flex-basis: 100%; }
.fw-now b { color: var(--bench-ink); }
.fw-now a { color: var(--bench-ink); }

/* seed plate */
.plate {
  position: relative; padding: 22px 26px 30px; border-radius: 10px; color: #2b2d2f;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #b9bdc0 0%, #e6e8e9 38%, #c5c9cb 62%, #a9adb0 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(0, 0, 0, .2) inset, 0 24px 40px -12px rgba(0, 0, 0, .7);
}
.plate-hd { display: flex; justify-content: space-between; align-items: center; margin: 0 18px 18px; font: 700 11px var(--mono); font-stretch: 87.5%; letter-spacing: .14em; text-transform: uppercase; color: #3c3f42; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.count { display: inline-flex; border: 1.5px solid #3c3f42; border-radius: 2px; }
.count button { border: 0; background: none; padding: 3px 8px; cursor: pointer; font: 700 11px var(--mono); color: #3c3f42; }
.count button[aria-checked="true"] { background: #2b2d2f; color: #e6e8e9; }
.screw { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4f5f5, #8f9497 70%); box-shadow: inset 0 -1px 1px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .6); }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px; background: #6d7275; transform: rotate(35deg); }
.s1 { top: 10px; left: 10px; } .s2 { top: 10px; right: 10px; } .s3 { bottom: 10px; left: 10px; } .s4 { bottom: 10px; right: 10px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
@media (max-width: 560px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plate { padding: 18px 14px 26px; } .plate-hd { margin: 0 10px 14px; } }
.slot { position: relative; display: flex; align-items: center; height: 44px; border-radius: 4px; background: linear-gradient(#aeb2b5, #c9cccf); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .6); cursor: text; }
.slot > span { width: 32px; flex: none; text-align: right; padding-right: 8px; font: 700 10px var(--mono); color: #5d6266; }
.slot .ink, .slot input { font: 800 15px/44px var(--mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; }
.slot input { position: relative; z-index: 2; flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: transparent; caret-color: var(--orange-d); }
.slot input[type="password"] { color: #2b2d2f; letter-spacing: .1em; }
.slot .ink { position: absolute; left: 32px; top: 0; z-index: 1; pointer-events: none; white-space: pre; color: #26282a; text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(0, 0, 0, .25); }
.slot .ink i { font-style: normal; display: inline-block; }
.slot .ink i.new { animation: stamp .28s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes stamp { 0% { transform: scale(1.9) translateY(-3px); opacity: 0; filter: blur(2px); } 60% { opacity: 1; filter: none; } }
.slot.hide .ink { display: none; }
.slot:focus-within { box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35), 0 0 0 2px var(--orange); }
.slot.ok > span { color: #1f2224; }
.slot.ok::after { content: ""; position: absolute; right: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #2a2c2e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .5); }
.slot.bad { background: linear-gradient(#c9a59b, #dcc2ba); }
.slot.bad .ink { color: #8d2410; }
.plate.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.inkstamp { position: absolute; right: 118px; top: 9px; z-index: 3; pointer-events: none; padding: 6px 12px 4px; border: 3px double currentColor; border-radius: 4px; color: var(--orange-d);
  font: 850 19px/1 var(--sans); font-stretch: 70%; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-6deg); opacity: 0; mix-blend-mode: multiply; }
.inkstamp.on { animation: inkin .45s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.inkstamp.bad { color: #b0200c; }
@keyframes inkin { 0% { opacity: 0; transform: rotate(-6deg) scale(2.2); } 100% { opacity: .92; transform: rotate(-6deg) scale(1); } }
.plate-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 18px; }
.pass { font-size: 14px; color: var(--bench-ink-2); }
.pass summary { list-style: none; display: inline; }
.pass summary::-webkit-details-marker { display: none; }
.pass p { margin: 10px 0; max-width: 52ch; }
.pass input { width: min(100%, 340px); height: 42px; padding: 0 12px; border: 1.5px solid var(--bench-ink-2); border-radius: 2px; background: var(--bench-2); color: var(--bench-ink); font: 500 15px var(--mono); }

/* suggestion tape (label maker) */
.tape { position: absolute; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.tape button { display: block; text-align: left; cursor: pointer; border: 0; padding: 6px 12px 5px; background: #111; color: #f1eee6; border-radius: 1px;
  font: 800 13px var(--mono); font-stretch: 87.5%; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); transform: rotate(-.6deg); }
.tape button:nth-child(2n) { transform: rotate(.5deg); }
.tape button b { color: #8e8a80; font-weight: 800; }
.tape button.on { background: var(--orange); color: var(--dark); }
.tape button.on b { color: #6b2408; }

/* label printer */
.printer { position: relative; padding-top: 10px; max-width: 520px; }
.printer-slot { position: relative; z-index: 2; height: 16px; margin: 0 -8px; border-radius: 4px; background: linear-gradient(#2c2b28, #0d0d0c); box-shadow: 0 2px 0 rgba(255, 255, 255, .06) inset; }
.printer-slot i { position: absolute; left: 14px; right: 14px; top: 7px; height: 2px; background: #000; }
.label { position: relative; z-index: 1; margin: -6px 14px 0; padding: 22px 22px 18px; background: #f5f2ea; color: var(--ink); border-radius: 0 0 4px 4px; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .6); clip-path: inset(0 0 100% 0); }
.label.printed { animation: print 1.5s steps(22) forwards; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }
.label-row { display: flex; justify-content: space-between; }
.label .cap { color: var(--ink-2); }
.vid { font-size: clamp(46px, 7vw, 74px); line-height: 1; margin: 12px 0 14px; letter-spacing: .04em; }
.vid .o { color: var(--orange-d); }
.barcode { display: block; width: 100%; height: 46px; color: var(--ink); }
.barcode rect { fill: currentColor; }
.label-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.modes { border: 0; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modes legend { margin-bottom: 10px; padding: 0; }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } }
.mode { display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--bench-3); border-radius: 3px; cursor: pointer; font-size: 14px; color: var(--bench-ink-2); transition: border-color .2s, background .2s; }
.mode b { display: block; color: var(--bench-ink); font-size: 16px; margin-bottom: 2px; }
.mode:has(input:checked) { border-color: var(--orange); background: rgba(255, 90, 31, .07); }
.mode input { accent-color: var(--orange); margin-top: 4px; }
.nosupport { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--orange); background: rgba(255, 90, 31, .08); font-size: 14px; }

/* flashing */
.meter { display: flex; align-items: baseline; gap: 6px; }
.pct { font-size: clamp(88px, 12vw, 148px); line-height: .9; color: var(--bench-ink); }
.pct-u { font: 700 34px var(--mono); font-stretch: 75%; color: var(--bench-ink-2); }
.stage { margin-top: 10px; font: 500 14px var(--mono); font-stretch: 87.5%; color: var(--bench-ink-2); min-height: 1.5em; }
.writes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.wr { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 6px 14px; align-items: baseline; font-size: 15px; }
.wr code { font-size: 12px; color: var(--bench-ink-2); }
.wr .sz { font: 500 12px var(--mono); color: var(--bench-ink-2); }
.wr .bar { grid-column: 1 / -1; height: 3px; background: var(--bench-3); overflow: hidden; }
.wr .bar i { display: block; height: 100%; width: 0; background: var(--bench-ink); transition: width .15s linear; }
.wr.vault .bar i { background: var(--orange); }
.wr.ok .lbl::after { content: " ✓"; color: var(--orange); font-weight: 700; }
.done { position: relative; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--bench-rule); }
.done h3 { font: 850 32px/1 var(--sans); font-stretch: 72%; margin-bottom: 16px; max-width: 16ch; }
.done ol { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 8px; color: var(--bench-ink-2); }
.done ol b { color: var(--bench-ink); }
.done .inkstamp { right: 0; top: 18px; font-size: 28px; mix-blend-mode: normal; color: var(--orange); }
.done .btn { margin-top: 18px; }
.fail { margin-top: 26px; }
.fail p { margin: 6px 0 16px; color: inherit; }

/* bench right: device + flash map */
.bench-right { min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.mount { position: relative; padding-left: 20%; }
.cable { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.mount .device { z-index: 1; }
.cable .wire { fill: none; stroke: #050505; stroke-width: 10; stroke-linecap: round; }
.cable .wire-hl { fill: none; stroke: #3d3c38; stroke-width: 2; stroke-linecap: round; }
.cable .data { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 3 14; opacity: 0; }
.bench.busy .cable .data { opacity: 1; animation: flow .45s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -17; } }
.cable .plug { transition: transform .7s cubic-bezier(.5, 0, .2, 1); }
.cable .plug-body { fill: #262624; stroke: #4a4944; stroke-width: 1.5; }
.cable .plug-tip { fill: #b9bec2; }
.map { min-width: 0; }
.map-hd { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#mapTip { color: var(--bench-ink); text-align: right; }
.map canvas { display: block; width: 100%; cursor: crosshair; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; font-size: 13px; color: var(--bench-ink-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; }
.legend code { font-size: 11px; opacity: .8; }
.k-boot { background: #a8a397; } .k-fw { background: var(--bench-ink); } .k-vault { background: var(--orange); }

/* ---------------------------------------------------------------- hazard */
.hazard { padding: 10px; border-radius: 3px; background: repeating-linear-gradient(-45deg, var(--orange) 0 16px, var(--dark) 16px 32px); background-size: 45.255px 45.255px; animation: crawl 3.5s linear infinite; }
@keyframes crawl { to { background-position: 45.255px 0; } }
.hazard-in { padding: clamp(20px, 3vw, 34px); background: var(--paper); color: var(--ink); }
.bench .hazard-in { background: var(--bench-2); color: var(--bench-ink); }
.hazard h3 { font: 850 clamp(30px, 4vw, 48px)/1 var(--sans); font-stretch: 64%; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.hazard-in > h3::before { content: "!"; display: grid; place-items: center; width: 1.1em; height: 1em; font-size: .8em; background: var(--orange); color: var(--dark); clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: .2em; }
.hazard ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 18px; max-width: 70ch; }
.hazard li::marker { font: 700 14px var(--mono); }

.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 28px; padding: 28px 0 0; border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .lost { grid-template-columns: minmax(0, 1fr); } }
.lost h3 { font: 850 32px/1.02 var(--sans); font-stretch: 72%; margin-bottom: 10px; }
.lost p { color: var(--ink-2); }
.lost pre { margin: 0; padding: 18px 20px; background: var(--ink); color: var(--paper); border-radius: 3px; overflow-x: auto; font-size: 14px; line-height: 1.75; }
.lost pre .c { color: var(--ink-3); }
.lost pre b { color: var(--orange); }

/* ---------------------------------------------------------------- tables */
.use-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .use-grid { grid-template-columns: minmax(0, 1fr); } }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; margin-bottom: 14px; }
.gestures th, .gestures td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.gestures thead th { padding-top: 0; border-bottom: 1.5px solid var(--ink); }
.gestures tbody th { width: 132px; white-space: nowrap; }
.gestures tbody th .cap { margin-left: 10px; }
.gestures td { font-size: 17px; }
.g { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); font: 800 14px var(--mono); vertical-align: middle; overflow: hidden; }
.g.kb { background: var(--orange); border-color: var(--orange); color: var(--dark); }
.g-tap { animation: tap 2.2s ease-in-out infinite; }
.g-hold { animation: hold 2.6s ease-in-out infinite; }
.g-hold::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); animation: holdbar 2.6s linear infinite; }
tr:nth-child(3) .g-tap { animation-delay: .7s; }
tr:nth-child(4) .g-hold, tr:nth-child(4) .g-hold::after { animation-delay: 1.1s; }
@keyframes tap { 0%, 30%, 100% { transform: scale(1); } 12% { transform: scale(.8); } }
@keyframes hold { 0%, 100% { transform: scale(1); } 8%, 52% { transform: scale(.85); } 60% { transform: scale(1); } }
@keyframes holdbar { 0%, 6% { transform: scaleX(0); } 50% { transform: scaleX(1); } 58%, 100% { transform: scaleX(0); } }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.notes li { font-size: 16px; color: var(--ink-2); padding-left: 16px; border-left: 2px solid var(--rule-2); }
.notes b { color: var(--ink); display: block; font-size: 17px; margin-bottom: 2px; }

.trouble th, .trouble td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
.trouble thead th { padding-top: 0; border-bottom: 1.5px solid var(--ink); }
.trouble tbody th { width: 30%; font: 750 19px/1.25 var(--sans); font-stretch: 80%; }
.trouble td { color: var(--ink-2); font-size: 16px; }
.trouble tbody tr { transition: background .2s; }
.trouble tbody tr:hover { background: rgba(255, 90, 31, .07); }
@media (max-width: 640px) { .trouble thead { display: none; } .trouble tr, .trouble th, .trouble td { display: block; width: auto !important; } .trouble th { border: 0; padding-bottom: 4px; } }

/* release log */
.releases tbody th { width: 24%; }
.rel-v { font: 850 30px/1 var(--sans); font-stretch: 64%; }
.rel-now { display: inline-block; margin-left: 10px; padding: 2px 6px; vertical-align: 4px; border: 1.5px solid var(--orange-d); border-radius: 2px; color: var(--orange-d); font: 600 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
.rel-d { display: block; margin-top: 6px; }
.rel-notes { margin: 0; padding: 0; list-style: none; }
.rel-notes li { position: relative; padding-left: 18px; margin: 0 0 6px; }
.rel-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--orange); }
.releases tr.now .rel-notes li { color: var(--ink); }

/* ---------------------------------------------------------------- footer */
.ft { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 64px; border-top: 1.5px solid var(--ink); }
.ft-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.ft-mark { font: 800 clamp(40px, 13vw, 190px)/.8 var(--dot); letter-spacing: -.02em; }
.ft-code { width: 240px; height: 64px; }

/* ---------------------------------------------------------------- dark-only touches */
[data-theme="dark"] .flaps { box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .07); }
[data-theme="dark"] .lost pre { background: var(--bench); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }

/* ---------------------------------------------------------------- recovery sheet (print only) */
.sheet { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; }
  body > *:not(.sheet) { display: none !important; }
  .sheet { display: block; color: #000; font: 400 10.5pt/1.4 var(--sans); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sh-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5pt solid #000; padding-bottom: 6pt; }
  .sh-wm { font: 800 22pt/1 var(--dot); }
  .sh-cap { font: 600 7.5pt var(--mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: #555; }
  .sheet h1 { font: 850 27pt/1 var(--sans); font-stretch: 70%; margin: 18pt 0 8pt; }
  .sheet h1::before { content: ""; display: block; width: 30pt; height: 4pt; background: #ff5a1f; margin-bottom: 10pt; }
  .sh-lede { max-width: 150mm; }
  .sh-id { display: flex; align-items: center; justify-content: space-between; gap: 18pt; border: 1pt solid #000; padding: 10pt 14pt; margin: 14pt 0; }
  .sh-id b { display: block; font: 800 24pt/1.1 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; }
  .sh-id svg { width: 55%; height: 34pt; }
  .sh-id svg rect { fill: #000; }
  .sh-words { list-style: none; padding: 0; margin: 0; display: grid; gap: 6pt; }
  .sh-c3 { grid-template-columns: repeat(3, 1fr); }
  .sh-c4 { grid-template-columns: repeat(4, 1fr); }
  .sh-words li { display: flex; gap: 10pt; align-items: baseline; border: 1pt solid #000; padding: 8pt 10pt; font: 800 13pt var(--mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .08em; break-inside: avoid; }
  .sh-words li i { font: 600 7.5pt var(--mono); color: #c8400c; font-style: normal; }
  .sh-pass { margin-top: 10pt; padding-left: 8pt; border-left: 3pt solid #ff5a1f; font-weight: 600; }
  .sh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18pt; margin-top: 16pt; break-inside: avoid; }
  .sheet table { width: 100%; border-collapse: collapse; margin-top: 6pt; }
  .sheet th, .sheet td { height: 15pt; padding: 2pt 4pt; border-bottom: .5pt solid #000; font: 400 8.5pt var(--sans); text-align: left; }
  .sheet th { border-bottom-width: 1pt; }
  .sheet td + td, .sheet th + th { border-left: .5pt solid #000; }
  .sh-two p { font-size: 9.5pt; margin: 6pt 0; }
  .sh-two pre { font: 500 8pt var(--mono); margin: 6pt 0; white-space: pre-wrap; }
  .sh-foot { margin-top: 18pt; padding-top: 6pt; border-top: .5pt solid #000; font-size: 8pt; color: #444; }
}
