/* /FindParts: the owner's approved round 9 mockup, "1 · Book and panel" (2026-10-20).
   GENERATED by port_findparts.py (the build's scratchpad) from Downloads\findparts-round9: _build/base.html's CSS,
   then build.py's COMMON_CSS and layouts/1-bookpanel.css, in that order (the page's own cascade). The mockup's
   option switches on <html> (look, order, pin, chg, width, frame, search, rp, inframe, r8) are resolved to page 1's
   picks: a true switch is now :root, one per switch, so every selector keeps its weight; a selector with a false
   one is gone, and so is a rule or an @media left empty. Change the port and run it again rather than editing
   above the END line by hand. */

/* the font: Atkinson Hyperlegible Next, self-hosted (the same face and file as Early Order's) */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/atkinson/AtkinsonHyperlegibleNext-latin-var.woff2?v=1') format('woff2'); }

/* the page: the mockup's #fp WAS the page's main; here it sits inside the layout's <main id="main-content">, so the
   main stacks it and #fp grows to the footer, and the desk colour runs down to it (body.fp-book is set by
   FindParts.cshtml only) */
body.fp-book > #main-content { display: flex; flex-direction: column; }
body.fp-book > #main-content > #fp { flex: 1 0 auto; }

/* ?check (the test drivers): findPartsKit.js puts kit-check on <html> and the page's motion is off, so a shot is
   never taken mid-transition (kit.css's rule, unchanged) */
html.kit-check *, html.kit-check *::before, html.kit-check *::after {
    transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important;
    scroll-behavior: auto !important;
}

/* ======================================================================== THE MOCKUP'S PAGE CSS (_build/base.html) */
/* 1 · Parts book (round 4): B's look. Paper, manila and label tape on a pegboard; the hard black is spent on two
   things only, the drawing's frame and the tape labels.
   THE LOOK CONTRACT (_build/LOOKS.md): every colour, shadow, gradient, texture and corner a look may change is a
   token in the block below. The rest of this file uses only var(--...), except the steel plate's metal (fenced
   off between "steel:" and "end of steel"). */
#fp {
    /* LIGHT (round 5): round 4's Drawing sheet, now the page's own look, on the Paper look's grid (the owner,
       2026-10-19: "i like the drawing sheet but with the parks book grid"). Crisp white paper on a cool grey desk;
       a ruled border with zone marks and the title block; balloon numbers; hairline outline buttons; outlined tags.
       Every colour a look may change is a token here (the Dark look, _build/looks/dark.css, swaps this block). */
    /* ---- the page ground: a cool grey desk, no pegboard */
    --peg: #e7ebef; --hole: transparent;
    --ground-img: none; --ground-size: auto; --ground-pos: 0 0;
    /* ---- paper and cards: crisp white; the picture wells are small squares of grid paper */
    --paper: #ffffff; --paper-2: #f5f7fa; --card: #ffffff; --card-2: #f2f5f8;
    /* ---- the grid: Paper's, one warm faint even grid with no heavy lines */
    --grid: rgba(29, 26, 20, .055); --grid-step: 24px;
    --well-img: linear-gradient(var(--grid) 1px, transparent 1px) -1px -1px / 12px 12px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) -1px -1px / 12px 12px, var(--card);
    --fig-img: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    /* ---- the drawing: the grid inside a ruled border (a thick line, then a thin trim) */
    --drawing: #ffffff;
    --grid-img: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    --frame: #141b24; --frame-2: #141b24;
    --sh-frame: 0 0 0 2px var(--frame), 0 0 0 6px var(--paper), 0 0 0 7px var(--frame-2);
    --load-card: rgba(255, 255, 255, .95);
    /* ---- the tint: a pale blue-grey for hovers, the lit row and the open component; second buttons are white */
    --manila: #e8eff7; --manila-l: #ffffff; --manila-d: #7f93a8; --manila-h: #d9e4ef;
    /* ---- no label tape: black ink, flat */
    --tape: #141b24; --tape-ink: #ffffff; --tape-soft: rgba(255, 255, 255, .14);
    --tape-img: none; --sh-tape: 0 0 0 0 transparent; --tape-edge-img: none;
    /* ---- drafting ink and blue-grey rules; hairline ink outlines on buttons and fields */
    --ink: #141b24; --ink2: #44505e; --ink3: #44505e;
    --rule: #c3ccd6; --rule2: #dae1e8; --warm: #141b24; --ballr: #141b24; --field-rule: #5f6d7c; --dash: #8d9bab; --dash-ink: #66768a;
    /* ---- the brand: green for the one main action, yellow only for the lit number and highlights */
    --green: #2e8b57; --green-h: #33985f; --green-d: #1f6640; --green-dd: #143f29; --on-green: #ffffff;
    --yel: #f3e100; --yel-d: #141b24; --on-yel: #141b24;
    --red: #a3231a; --bad-bg: #fff6f5;
    /* ---- notes are ruled boxes, as on a drawing (no tape strip) */
    --note: #ffffff; --note-d: #141b24; --note-ink: #141b24; --ask-ink: #6d4f00;
    --strip: transparent; --strip-edge: transparent;
    --in-bg: #e1f0e6; --in-box: #e9f5ed; --in-rule: #94c4a5; --in-ink: #0f3d24;
    /* ---- the labels: balloons (a hairline ink circle, the number in ink) and hairline-ruled tags */
    --pill: #ffffff; --pill-ring: #141b24; --ball: #ffffff; --ball-ring: #141b24;
    --lead: #141b24; --lead-op: .8; --tag-ring: #ffffff;
    /* ---- shadows: a drawing is flat; paper lies on the desk with a small crisp shadow */
    --sh-paper: 0 1px 2px rgba(20, 27, 36, .12);
    --sh-btn: 0 0 0 0 transparent;
    --sh-go: 0 2px 0 var(--green-dd); --sh-go-down: 0 1px 0 var(--green-dd);
    --sh-pill: 0 0 0 1px var(--pill-ring);
    --sh-ball: 0 0 0 0 transparent;
    --sh-lift: 0 0 0 1px var(--manila-d);
    --sh-spread: 0 1px 2px rgba(20, 27, 36, .12);
    --sh-float: 0 0 0 0 transparent;
    --sh-load: 0 0 0 1px var(--frame);
    --sh-note: 0 0 0 0 transparent;
    --sh-bar: 0 6px 14px -10px rgba(20, 27, 36, .45);
    --sh-pin: 0 10px 16px -10px rgba(20, 27, 36, .4);
    --sh-dock: 0 10px 24px -8px rgba(20, 27, 36, .5);
    --sh-well: inset 0 1px 2px rgba(20, 27, 36, .07);
    --sh-field: inset 0 1px 2px rgba(20, 27, 36, .06);
    --sh-photo: 0 0 0 0 transparent;
    --hi-ring: rgba(243, 225, 0, .6);
    --focus-glow: 0 0 0 7px rgba(243, 225, 0, .55);
    --ring-was: 0 0 0 3px var(--yel), 0 0 0 4.5px var(--ink);
    --flash: #fff6a8; --flash-ring: rgba(243, 225, 0, .9);
    --sh-focus-ring: 0 0 0 4px var(--hi-ring);
    --sh-step: 0 0 0 6px var(--paper);
    --sh-was: 0 0 0 1.5px var(--ink);
    --sh-tag: 0 0 0 2px var(--tag-ring);
    --sh-ref: 0 0 0 1.5px var(--ballr);
    --sh-bad: 0 0 0 1px var(--red);
    --sh-done: 0 0 0 9px var(--in-bg);
    --sh-pinned: var(--sh-frame), 0 0 0 10px var(--paper), var(--sh-pin);
    /* ---- the open component in the list: tinted, ringed all round */
    --sh-cur: 0 0 0 1px var(--ink);
    /* ---- textures: the loader's ruler */
    --ruler-img: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 11.5px);
    /* ---- the order ticket's eyelet: a punched, ink-ringed hole */
    --brass-img: radial-gradient(circle at 50% 50%, #ffffff 0 5px, #141b24 5.5px 7px, #e8eff7 7.5px);
    --sh-brass: 0 0 0 1.5px #141b24;
    /* ---- corners: crisp */
    --r-sheet: 3px; --r-page: 2px; --r-card: 3px; --r-btn: 4px; --r-big: 5px; --r-pic: 2px; --r-field: 3px;
    --r-tape: 2px; --r-pill: 4px; --r-drawing: 0; --r-bar: 6px; --r-well: 2px; --r-seg: 3px;
    /* ---- type */
    --font: 'Atkinson Hyperlegible Next', Arial, sans-serif;

    font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink);
    background-color: var(--peg); background-image: var(--ground-img);
    background-size: var(--ground-size); background-position: var(--ground-pos);
} /* end of tokens */
#fp *, #fp *::before, #fp *::after { box-sizing: border-box; }
#fp [hidden] { display: none !important; }
#fp h1, #fp h2, #fp h3, #fp h4 { font-family: inherit; color: var(--ink); letter-spacing: normal; text-transform: none; text-shadow: none; }
/* no weight of its own: a class's margin always wins */
:where(#fp) :where(h1, h2, h3, h4, p, figure) { margin: 0; }
.pb-cat-top { display: block; height: 0; }
#fp a { color: var(--green-d); text-underline-offset: 3px; }
:where(#fp) button { font-family: inherit; color: inherit; }
#fp img { max-width: 100%; }
#fp :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: var(--focus-glow); }

/* ------------------------------------------------------------ shared pieces */
.pb-shell { max-width: 1440px; margin: 0 auto; padding: 26px 20px 56px; }
.pb-main { min-width: 0; }
.pb-tape {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 12px 5px; border-radius: var(--r-tape);
    background-color: var(--tape); background-image: var(--tape-img);
    color: var(--tape-ink); font-weight: 800; font-size: 15px; line-height: 1.3;
    box-shadow: var(--sh-tape);
}
.pb-ball {
    display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: var(--ball); border: 1.5px solid var(--ballr); color: var(--ink);
    font-weight: 800; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.pb-ball .fa-solid { font-size: 14px; }
.pb-ball-sm { width: 27px; height: 27px; font-size: 14px; }
.pb-ball-lg { width: 40px; height: 40px; font-size: 19px; }
.pb-ball.is-lit { background: var(--yel); border-color: var(--yel-d); }
.pb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 18px;
    border: 1px solid transparent; border-radius: var(--r-btn); font-weight: 800; font-size: 16px; line-height: 1.2;
    text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .1s, box-shadow .1s;
}
#fp .pb-btn-go { background: var(--green); color: var(--on-green); border-color: var(--green-d); box-shadow: var(--sh-go); }
#fp .pb-btn-go:hover { background: var(--green-h); }
#fp .pb-btn-go:active { transform: translateY(2px); box-shadow: var(--sh-go-down); }
#fp .pb-btn-go:disabled { opacity: .75; cursor: progress; }
#fp .pb-btn-line { background: var(--manila-l); color: var(--ink); border-color: var(--warm); box-shadow: var(--sh-btn); }
#fp .pb-btn-line:hover { background: var(--manila); border-color: var(--manila-d); }
.pb-btn-big { min-height: 56px; padding: 12px 24px; font-size: 18px; border-radius: var(--r-big); }
#fp .pb-linkbtn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none;
    color: var(--green-d); font-weight: 800; font-size: 16px; cursor: pointer;
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
#fp .pb-linkbtn:hover { color: var(--green-dd); }
#fp .pb-linkbtn.pb-inline { min-height: 44px; padding: 0; font-size: inherit; vertical-align: middle; }
.pb-nowrap { white-space: nowrap; }

/* ============================================================ THE WIZARD (shared): a paper sheet, four steps */
.pb-pick { max-width: 1080px; margin: 0 auto; padding: 4px 0 8px; }
.pb-wiz { position: relative; padding: 28px 40px 26px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sheet); box-shadow: var(--sh-paper); }
.pb-wiz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.pb-wiz-title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.pb-wiz-h { font-size: 40px; line-height: 1.08; font-weight: 800; }
.pb-wiz-again { flex: none; }
/* "Step 2 of 4": the four steps as numbered balls in the drawing's callout style, on one thin leader line */
.pb-wprog { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.pb-wprog-t { font-size: 17px; font-weight: 800; }
.pb-wsteps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 780px; margin: 12px 0 0; padding: 0; list-style: none; }
.pb-wsteps::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 21px; border-top: 1.5px solid var(--lead); opacity: var(--lead-op); }
.pb-wstep { display: flex; justify-content: center; min-width: 0; }
.pb-wstep-in {
    display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 0 6px 4px;
    border: 0; border-radius: var(--r-btn); background: none; color: var(--ink2); font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center;
}
button.pb-wstep-in { min-width: 64px; cursor: pointer; }
button.pb-wstep-in:hover .pb-wstep-t { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pb-wstep .pb-ball { position: relative; width: 42px; height: 42px; font-size: 18px; border-color: var(--ball-ring); box-shadow: var(--sh-step); }
.pb-wstep.is-cur .pb-ball { background: var(--yel); border-color: var(--ink); transform: scale(1.1); }
.pb-wstep.is-cur .pb-wstep-t { color: var(--ink); font-weight: 800; }
.pb-wstep.is-done .pb-ball { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); }
/* the step itself */
.pb-wiz-body { margin-top: 16px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.pb-wiz-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pb-wiz-sofar { font-size: 17px; color: var(--ink2); }
.pb-wiz-sofar b { color: var(--ink); font-weight: 800; }
.pb-wiz-q { margin-top: 16px; font-size: 30px; line-height: 1.15; font-weight: 800; }
.pb-wiz-hint { margin-top: 6px; font-size: 17px; color: var(--ink2); }
.pb-wopts { display: grid; gap: 16px; margin-top: 20px; }
.pb-wopt {
    position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 64px; padding: 14px 18px;
    border: 1px solid var(--warm); border-radius: var(--r-big); background: var(--manila-l); color: var(--ink);
    text-align: left; cursor: pointer; box-shadow: var(--sh-btn);
    transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.pb-wopt:hover { background: var(--manila); border-color: var(--manila-d); transform: translateY(-2px); box-shadow: var(--sh-btn), var(--sh-lift); }
/* the last machine's answer, ringed: one tap moves on */
.pb-wopt.is-was, .pb-wopt.is-was:hover { box-shadow: var(--ring-was), var(--sh-btn); }
.pb-wopt-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; line-height: 1.25; }
.pb-wopt-name { font-size: 26px; line-height: 1.15; font-weight: 800; }
.pb-wopt-sub { font-size: 17px; color: var(--ink2); }
.pb-wgo {
    display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-left: auto; border-radius: 50%;
    background: var(--ball); color: var(--ink); font-size: 18px; box-shadow: var(--sh-pill); transition: background-color .15s;
}
.pb-wopt:hover .pb-wgo { background: var(--yel); }
.pb-was {
    position: absolute; left: 14px; top: -13px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px;
    border-radius: var(--r-tape); background: var(--yel); color: var(--on-yel); font-size: 14px; font-weight: 800; line-height: 1.35;
    white-space: nowrap; box-shadow: var(--sh-was);
}
.pb-was .fa-solid { font-size: 14px; }
/* 1 Equipment: the real photos */
.pb-wtypes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pb-wtype { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 10px 18px; background: var(--card); border-color: var(--rule); }
.pb-wtype-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-pic); background: var(--paper-2); box-shadow: var(--sh-photo); }
.pb-wtype-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pb-wtype:hover .pb-wtype-photo img { transform: scale(1.03); }
.pb-wtype .pb-wopt-t { padding: 16px 70px 0 8px; }
.pb-wtype .pb-wgo { position: absolute; right: 18px; bottom: 20px; }
/* 2 Model */
.pb-wmodels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-wmodel { min-height: 128px; padding: 20px 20px 20px 26px; }
.pb-wmodel .pb-wopt-name { font-size: 34px; }
.pb-wmodel .pb-wopt-sub { font-size: 19px; font-weight: 700; color: var(--ink); }
/* 3 Year */
.pb-wyears { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 12px; }
.pb-wyear { flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 10px 8px; text-align: center; }
.pb-wyear-n { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pb-wyear .pb-was { left: 50%; transform: translateX(-50%); }
/* 4 Serial number: the stamped steel plates */
.pb-wplates { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; margin-top: 22px; }
.pb-wplates .mix-plate { width: 100%; }
/* a hiller: the honest message */
.pb-whiller {
    display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 18px; padding: 16px;
    background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-big);
}
.pb-whiller-fig { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-pic); background: var(--paper-2); box-shadow: var(--sh-photo); }
.pb-whiller-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the machines are CAD drawings standing on the paper: whole (contained, never cropped), no photo frame */
.pb-wtype-photo.is-cad, .pb-whiller-fig.is-cad { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.pb-wtype-photo.is-cad img, .pb-whiller-fig.is-cad img { object-fit: contain; }
.pb-whiller-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.pb-whiller-txt .pb-wiz-q { margin-top: 0; }
.pb-whiller-msg { font-size: 19px; line-height: 1.5; }
.pb-whiller-msg a { font-weight: 800; }
.pb-whiller-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pb-wiz-help { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--rule); font-size: 17px; color: var(--ink2); }
.pb-wiz-help .fa-solid { margin-top: 4px; color: var(--ink); }
.pb-wiz-help a { font-weight: 800; }

/* steel: the plate's metal stays steel in every look (the one place with literal colours outside the tokens) */
.mix-plate {
    --steel: linear-gradient(160deg, #eceee9 0%, #c3c8c2 30%, #dde0dc 52%, #a9afa8 78%, #c9cdc7 100%);
    position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; flex: none;
    margin: 0; border: 0; text-align: left; color: #20271f; line-height: 1.15; font-family: inherit;
    background-color: #c3c8c2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .45), 0 10px 22px -8px rgba(40, 34, 20, .45);
}
.mix-plate-big {
    min-height: 124px; padding: 20px 26px 18px; border-radius: 12px;
    background-image:
        radial-gradient(circle at 14px 14px, #f9faf8 0 1.4px, #7d847d 2.2px 3.8px, rgba(0, 0, 0, .25) 4.3px, transparent 5px),
        radial-gradient(circle at calc(100% - 14px) 14px, #f9faf8 0 1.4px, #7d847d 2.2px 3.8px, rgba(0, 0, 0, .25) 4.3px, transparent 5px),
        radial-gradient(circle at 14px calc(100% - 14px), #f9faf8 0 1.4px, #7d847d 2.2px 3.8px, rgba(0, 0, 0, .25) 4.3px, transparent 5px),
        radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #f9faf8 0 1.4px, #7d847d 2.2px 3.8px, rgba(0, 0, 0, .25) 4.3px, transparent 5px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 1px, rgba(0, 0, 0, .035) 1px 3px), var(--steel);
}
.mix-plate-mid {
    min-height: 88px; padding: 14px 16px 13px; border-radius: 11px;
    background-image:
        radial-gradient(circle at 11px 11px, #f9faf8 0 1.1px, #7d847d 1.8px 3.1px, rgba(0, 0, 0, .25) 3.6px, transparent 4.2px),
        radial-gradient(circle at calc(100% - 11px) 11px, #f9faf8 0 1.1px, #7d847d 1.8px 3.1px, rgba(0, 0, 0, .25) 3.6px, transparent 4.2px),
        radial-gradient(circle at 11px calc(100% - 11px), #f9faf8 0 1.1px, #7d847d 1.8px 3.1px, rgba(0, 0, 0, .25) 3.6px, transparent 4.2px),
        radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #f9faf8 0 1.1px, #7d847d 1.8px 3.1px, rgba(0, 0, 0, .25) 3.6px, transparent 4.2px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 1px, rgba(0, 0, 0, .035) 1px 3px), var(--steel);
}
.mix-plate-mini {
    gap: 0; padding: 5px 18px 6px; border-radius: 8px;
    background-image:
        radial-gradient(circle at 6px 50%, #f7f8f6 0 1px, #7d847d 1.5px 2.6px, transparent 3.2px),
        radial-gradient(circle at calc(100% - 6px) 50%, #f7f8f6 0 1px, #7d847d 1.5px 2.6px, transparent 3.2px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, rgba(0, 0, 0, .03) 1px 3px), var(--steel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .4), 0 3px 8px -2px rgba(40, 34, 20, .45);
}
.mix-plate-l { font-size: 16px; font-weight: 700; color: #2b332d; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.mix-plate-n { font-size: 28px; font-weight: 800; line-height: 1.15; color: #262e28; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 0 rgba(0, 0, 0, .3); }
.mix-plate-m { font-size: 16px; color: #2b332d; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.mix-plate-type { display: none; }
.mix-plate-mid .mix-plate-n { font-size: 21px; }
.mix-plate-mini .mix-plate-l, .mix-plate-mini .mix-plate-m { font-size: 14px; font-weight: 700; color: #2b332d; white-space: nowrap; }
.mix-plate-mini .mix-plate-n { font-size: 17px; }
.mix-plate-mini .mix-plate-m { display: none; }
button.mix-plate { cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s; }
button.mix-plate:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 0 0 3px var(--yel), 0 0 0 4.5px var(--ink), 0 18px 30px -10px rgba(40, 34, 20, .5); }
.mix-plate.mix-on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 4px var(--yel), 0 0 0 5.5px var(--ink), 0 10px 22px -8px rgba(40, 34, 20, .45); }
.mix-plate-tick {
    position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--yel); color: var(--on-yel); font-size: 15px; box-shadow: 0 0 0 2px rgba(29, 26, 20, .55);
}
.mix-plate.mix-stamp { animation: mixStamp .42s cubic-bezier(.2, .8, .3, 1); }
@keyframes mixStamp { 0% { transform: none; } 35% { transform: scale(.96); } 100% { transform: scale(1.03); } }
.mix-ghost { position: fixed; z-index: 970; margin: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; animation: none !important; }
/* end of steel */

/* ============================================================ CATALOGUE */
.pb-cat { max-width: 1440px; margin: 0 auto; }
.pb-cat.pb-away { position: fixed; inset: 0; z-index: -1; max-width: none; margin: 0; padding: 16px; overflow: hidden; opacity: 0; pointer-events: none; }
/* the machine bar: the stamped plate, the machine's name, Change */
.pb-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px;
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sheet); box-shadow: var(--sh-paper);
}
.pb-bar-plate { display: flex; flex: none; }
.pb-bar-machine { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pb-bar-machine b { font-size: 19px; }
.pb-bar-machine span { font-size: 15px; color: var(--ink2); }
.pb-note {
    position: relative; display: flex; align-items: flex-start; gap: 12px; max-width: 920px; margin: 18px auto 0; padding: 16px 20px 12px;
    background: var(--note); border: 1px solid var(--note-d); border-radius: var(--r-tape); box-shadow: var(--sh-note);
}
.pb-note::before { content: ''; position: absolute; top: -9px; left: 50%; width: 96px; height: 20px; margin-left: -48px; background: var(--strip); border: 1px solid var(--strip-edge); transform: rotate(-2deg); }
.pb-note-i { margin-top: 3px; font-size: 20px; color: var(--note-ink); }
.pb-note-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.pb-note-txt p { font-size: 17px; line-height: 1.45; }
.pb-note-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: 17px; }

/* the app (.pb-app): the PC's three columns and the phone's screens are laid out at the end of this file */
.pb-platepage { min-width: 0; }
.pb-plate-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 44px; margin-bottom: 10px; }
.pb-plate-title { font-size: 26px; line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.pb-stage {
    /* a set width, so a short window's height cap never narrows the drawing through its aspect ratio */
    position: relative; width: calc(100% - 12px); aspect-ratio: 1 / .9; height: auto; min-height: 360px; max-height: max(380px, calc(100vh - 196px));
    margin: 6px; overflow: hidden; border-radius: var(--r-drawing);
    background-color: var(--drawing); background-image: var(--grid-img);
    background-size: var(--grid-step) var(--grid-step); background-position: -1px -1px;
    box-shadow: var(--sh-frame);
}
/* the whole machine is long, not tall: a landscape sheet, so the paper under it is not left empty */
.pb-app[data-shape="general"] .pb-stage { aspect-ratio: 1 / .8; }
.pb-stage .kit-stage-frame { z-index: 1; }
.pb-load { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; transition: opacity .6s ease; }
.pb-load-art { position: absolute; left: 7%; top: 8%; width: 86%; height: 84%; object-fit: contain; opacity: .2; filter: grayscale(1) contrast(1.3); }
.pb-load-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 88%; padding: 18px 24px;
    background: var(--load-card); border: 1px solid var(--rule); border-radius: var(--r-card); text-align: center; box-shadow: var(--sh-load);
}
.pb-load-card b { font-size: 18px; }
.pb-load-sub { font-size: 15px; color: var(--ink2); }
.pb-ruler {
    position: relative; display: block; width: 230px; max-width: 100%; height: 14px; overflow: hidden; border: 1.5px solid var(--ink); border-radius: var(--r-drawing);
    background-image: var(--ruler-img); background-size: 100% 5px; background-repeat: no-repeat;
}
.pb-ruler i { position: absolute; left: 0; top: 0; bottom: 0; width: 4%; background: var(--green); opacity: .85; transition: width .35s ease; }
.pb-stage.is-ready .pb-load { opacity: 0; pointer-events: none; }
.pb-stage.is-failed .pb-load-art { opacity: .55; }
/* the drawing's title block (machine, generation, serial, the sheet): Paper hides it; a look may show it in the
   drawing's corner (display: grid) and the labels keep clear of it */
.pb-titleblock {
    position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; grid-template-columns: auto; min-width: 200px;
    pointer-events: none; font-size: 14px; line-height: 1.25; color: var(--ink);
}
.pb-tb-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pb-tb-k { color: var(--ink2); }
.pb-tb-v { font-weight: 800; text-align: right; }

/* the callouts: numbers (and, on a wide drawing, named sections) on leader lines */
.pb-callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pb-leaders { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.pb-lead { stroke: var(--lead); stroke-width: 1.2; opacity: var(--lead-op); }
.pb-leaders.is-dense .pb-lead { stroke-width: 1; opacity: .4; }
.pb-lead.is-hit { stroke-width: 1.6; opacity: .85; }
.pb-lead.is-lit, .pb-leaders.is-dense .pb-lead.is-lit { stroke-width: 2.4; opacity: 1; }
.pb-dot { fill: var(--lead); }
/* the open part's anchor: a ring round its dot */
.pb-ring { fill: none; stroke: var(--lead); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.pb-co {
    position: absolute; left: 0; top: 0; display: flex; align-items: center; padding: 0; margin: 0;
    border: 0; background: none; cursor: pointer; pointer-events: auto; will-change: transform; white-space: nowrap;
}
.pb-co.is-off { visibility: hidden; pointer-events: none; }
.pb-co.is-ball { min-width: 44px; height: 44px; padding: 0 7px; }
.pb-co.is-ball.is-flip .pb-co-in { flex-direction: row-reverse; }
.pb-co-in { position: relative; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-pill); transition: background-color .15s; }
.pb-co .pb-ball { border-color: var(--ball-ring); box-shadow: var(--sh-ball); }
.pb-co-t { display: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--ink); }
/* a search: the count of matching parts on a small black tag at the number's shoulder */
.pb-co-c {
    position: absolute; left: 20px; top: -9px; z-index: 1; min-width: 23px; height: 23px; padding: 0 6px; border-radius: var(--r-pill);
    display: grid; place-items: center; background: var(--tape); color: var(--yel); font-size: 14px; font-weight: 800; line-height: 1;
    box-shadow: var(--sh-tag);
}
.pb-co.is-ball.is-lit .pb-co-c { left: 23px; }
.pb-co.is-tagl .pb-co-c, .pb-co.is-tagl.is-lit .pb-co-c { left: auto; right: 20px; }
/* a lit section number (pointed at, or its card in the list is) names itself */
.pb-co.is-ball.is-lit .pb-co-t { display: inline-flex; }
.pb-co.is-ball.is-lit:has(.pb-co-t) .pb-co-in { padding: 3px 12px 3px 3px; background: var(--manila); box-shadow: var(--sh-pill); }
.pb-co.is-ball.is-lit.is-flip:has(.pb-co-t) .pb-co-in { padding: 3px 3px 3px 12px; }
.pb-co.is-ball.is-lit:has(.pb-co-t) .pb-co-c { display: none; }
/* a named section: a white pill on the drawing */
.pb-co.is-pill { height: 44px; padding: 0; }
.pb-co.is-pill .pb-co-in { padding: 3px 12px 3px 3px; background: var(--pill); box-shadow: var(--sh-pill); }
.pb-co.is-pill.is-left .pb-co-in { flex-direction: row-reverse; padding: 3px 3px 3px 12px; }
.pb-co.is-pill .pb-co-t { display: inline-flex; }
.pb-co.is-pill .pb-ball { width: 28px; height: 28px; box-shadow: none; }
.pb-co.is-hit .pb-ball { background: var(--yel); border-color: var(--yel-d); }
.pb-co:hover, .pb-co.is-lit { z-index: 5; }
.pb-co:hover .pb-ball, .pb-co.is-lit .pb-ball { background: var(--yel); border-color: var(--ink); }
.pb-co.is-ball:hover .pb-ball, .pb-co.is-ball.is-lit:not(:has(.pb-co-t)) .pb-ball { transform: scale(1.18); }
.pb-co.is-sel .pb-ball { transform: scale(1.24); border-width: 2px; }
.pb-co.is-pill:hover .pb-co-in, .pb-co.is-pill.is-lit .pb-co-in { background: var(--manila); }
/* the close-up toggle floats in the drawing's corner, where no list can cover it */
.pb-stage-acts { position: absolute; left: 10px; top: 10px; z-index: 6; display: flex; gap: 8px; pointer-events: none; }
.pb-zoom {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border: 1px solid var(--pill-ring); border-radius: var(--r-pill);
    background: var(--pill); color: var(--ink); font-weight: 800; font-size: 15px; cursor: pointer; pointer-events: auto;
    box-shadow: var(--sh-float);
}
.pb-zoom:hover { background: var(--manila); }
.pb-zoom[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }

/* phones, while searching: the lit sections, named, under the drawing */
.pb-chips { display: none; }
.pb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.pb-views { display: inline-flex; gap: 2px; padding: 3px; background: var(--manila); border: 1px solid var(--manila-d); border-radius: var(--r-btn); }
.pb-views button {
    min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-seg); background: none; color: var(--ink);
    font-weight: 800; font-size: 15px; cursor: pointer; transition: background-color .15s, color .15s;
}
.pb-views button:hover { background: var(--manila-h); }
.pb-views button[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); box-shadow: var(--sh-ball); }
.pb-explode {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid var(--manila-d); border-radius: var(--r-btn);
    background: var(--manila); color: var(--ink); font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: var(--sh-btn);
}
.pb-explode:hover { background: var(--manila-h); }
.pb-explode[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }
.pb-hint { font-size: 15px; color: var(--ink2); }

/* the search and the lists */
.pb-search {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; cursor: text;
    background: var(--card); border: 1px solid var(--warm); border-radius: var(--r-pill); box-shadow: var(--sh-well);
}
.pb-search .fa-solid { font-size: 17px; color: var(--ink2); }
.pb-search input { flex: 1; min-width: 0; height: 50px; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.pb-search:focus-within { border-color: var(--ink2); box-shadow: var(--sh-well), var(--sh-focus-ring); }
#fp .pb-search input:focus-visible { outline: none; box-shadow: none; }
.pb-lhead { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 20px 0 12px; }
.pb-lhead-plate { margin-top: 14px; }
#fp .pb-back { margin-bottom: 8px; }
.pb-lh { font-size: 23px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.pb-lsub { font-size: 16px; color: var(--ink2); }
.pb-lsub b { color: var(--ink); }
/* contents: the 15 sections, ONE A ROW at every width, picture beside the name (the owner, 2026-10-19:
   "each component gets its own row and doesnt share") */
.pb-secs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pb-sec {
    display: flex; flex-direction: row; align-items: center; gap: 14px; min-height: 64px; padding: 6px 12px 6px 6px; text-align: left; cursor: pointer; color: var(--ink);
    background: var(--card); border: 1px solid var(--rule2); border-radius: var(--r-card);
    transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.pb-sec-pic { position: relative; flex: none; display: block; width: 120px; height: 84px; border-radius: var(--r-well); background: var(--well-img); }
.pb-sec-pic img { position: absolute; left: 6px; top: 6px; display: block; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.pb-sec-txt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; }
.pb-sec-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pb-sec-no { font-size: 14px; color: var(--ink2); }
.pb-sec-name b { font-size: 18px; }
.pb-sec-n { font-size: 14px; color: var(--ink2); }
.pb-sec:hover, .pb-sec.is-lit { background: var(--manila); border-color: var(--manila-d); box-shadow: var(--sh-lift); }
.pb-sec:hover .pb-ball, .pb-sec.is-lit .pb-ball { background: var(--yel); border-color: var(--yel-d); }
.pb-rows { margin: 0; padding: 0; list-style: none; }
.pb-rows li + li .pb-row { border-top: 1px dashed var(--rule); }
.pb-row {
    display: grid; grid-template-columns: 30px 64px minmax(0, 1fr) 14px; align-items: center; gap: 12px; width: 100%; min-height: 62px;
    padding: 10px 8px; border: 0; border-radius: var(--r-page); background: transparent; color: var(--ink); text-align: left; cursor: pointer;
    transition: background-color .12s;
}
.pb-row.is-ref { grid-template-columns: auto 64px minmax(0, 1fr) 14px; }
.pb-row-slot { display: block; }
.pb-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-row-name { font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pb-row-meta { font-size: 15px; color: var(--ink2); }
.pb-row-meta:empty { display: none; }
.pb-row-ask, .pb-row-note { font-size: 15px; color: var(--ask-ink); }
.pb-row-in {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 10px;
    border-radius: var(--r-pill); background: var(--in-bg); color: var(--in-ink); font-size: 14px; font-weight: 800;
}
.pb-row-pic { display: block; width: 64px; height: 64px; padding: 3px; object-fit: contain; background: var(--card); border: 1px solid var(--rule2); border-radius: var(--r-pic); }
/* waiting for the 3D drawing of the part: its section, faded */
#fp img.is-ph { opacity: .3; filter: grayscale(.4); }
.pb-row-go { font-size: 14px; color: var(--ink2); }
.pb-row:hover, .pb-row.is-lit { background: var(--manila); }
.pb-row:hover .pb-ball, .pb-row.is-lit .pb-ball { background: var(--yel); border-color: var(--yel-d); }
/* the index: every part's full reference, section and number */
.pb-ref { display: inline-flex; align-items: stretch; height: 30px; overflow: hidden; border-radius: var(--r-pill); box-shadow: var(--sh-ref); font-weight: 800; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.pb-ref-s { display: grid; place-items: center; min-width: 30px; padding: 0 8px 0 10px; background: var(--tape); color: var(--tape-ink); }
.pb-ref-n { display: grid; place-items: center; min-width: 30px; padding: 0 10px 0 8px; background: var(--ball); color: var(--ink); }
.pb-row:hover .pb-ref-n, .pb-row.is-lit .pb-ref-n { background: var(--yel); }
.pb-ig + .pb-ig { margin-top: 12px; }
.pb-ig-h {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; min-height: 60px; padding: 6px 12px 6px 6px; cursor: pointer; text-align: left;
    background: var(--paper-2); border: 1px solid var(--rule2); border-radius: var(--r-card); color: var(--ink); transition: background-color .15s;
}
.pb-ig-h:hover, .pb-ig-h.is-lit { background: var(--manila); border-color: var(--manila-d); }
.pb-ig-pic { display: block; width: 64px; height: 48px; object-fit: contain; }
.pb-ig-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.pb-ig-t b { font-size: 17px; }
.pb-ig-open { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 2px; font-size: 15px; font-weight: 800; color: var(--green-d); }
.pb-turns { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.pb-turnbtn {
    display: flex; align-items: center; gap: 12px; max-width: 49%; min-height: 58px; padding: 8px 14px; cursor: pointer; text-align: left;
    background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-btn); color: var(--ink); transition: background-color .15s;
}
.pb-turnbtn:hover { background: var(--manila); }
.pb-turnbtn.is-next { margin-left: auto; text-align: right; }
.pb-turnbtn-t { display: flex; flex-direction: column; line-height: 1.25; }
.pb-turnbtn-t b { font-size: 16px; }
.pb-empty { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px dashed var(--rule); border-radius: var(--r-card); font-size: 16px; }
.pb-empty .fa-solid { font-size: 22px; color: var(--ink2); margin-top: 2px; }

/* ============================================================ THE PART: in place of the list, no X */
.pb-shell.has-detail .pb-list { display: none; }
.pb-detail { padding: 14px 0 0; }
#fp .pb-d-back { justify-content: flex-start; width: 100%; text-align: left; }
/* phones: the drawing's own hint is under the pinned drawing, so the part says it */
.pb-d-say { display: none; margin-top: 10px; font-size: 16px; color: var(--ink2); }
.pb-d-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
/* the part's own picture, big: "that's my part" */
.pb-d-fig {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 14px;
    background-color: var(--card); background-image: var(--fig-img); border: 1px solid var(--rule2); border-radius: var(--r-big);
}
.pb-d-fig img { display: block; width: 100%; height: 260px; object-fit: contain; }
.pb-d-fig.is-photo { padding: 8px; background-image: none; }
.pb-d-fig.is-wait figcaption { display: none; }
.pb-d-fig.is-sec { flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background-image: none; background-color: var(--paper-2); }
.pb-d-fig.is-sec img { width: 128px; height: 92px; flex: none; }
.pb-d-fig figcaption { font-size: 15px; color: var(--ink2); }
.pb-d-sec { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--ink2); }
.pb-d-name { margin-top: 8px; font-size: 26px; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.pb-d-name:focus { outline: none; }
.pb-d-qty { margin-top: 6px; font-size: 18px; }
.pb-d-ask, .pb-d-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 14px; background: var(--note); border: 1px solid var(--note-d); border-radius: var(--r-card); font-size: 16px; font-weight: 700; }
.pb-d-ask .fa-solid, .pb-d-note .fa-solid { margin-top: 3px; }
.pb-d-places { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 6px 6px 14px; background: var(--card); border: 1px solid var(--rule2); border-radius: var(--r-btn); font-size: 15px; }
.pb-d-places-b { display: flex; gap: 6px; margin-left: auto; }
.pb-d-places-b button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--warm); border-radius: 50%; background: var(--manila-l); cursor: pointer; }
.pb-d-places-b button:hover { background: var(--manila); }
.pb-d-order { margin-top: 16px; }
.pb-d-add { width: 100%; }
.pb-d-order.is-in {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 14px; padding: 10px 12px 2px 16px;
    background: var(--in-box); border: 1px solid var(--in-rule); border-radius: var(--r-big);
}
.pb-d-inword { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--in-ink); }
#fp .pb-d-view { grid-column: 1 / -1; justify-self: start; }
.pb-d-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pb-d-more .pb-btn { flex: 1 1 auto; white-space: nowrap; }
.pb-step { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--warm); border-radius: var(--r-pill); box-shadow: var(--sh-btn); }
.pb-step button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 15px; cursor: pointer; }
.pb-step button:hover { background: var(--manila); }
.pb-step-n { min-width: 32px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ============================================================ THE ORDER (never hidden) */
.pb-pad { display: none; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-page) var(--r-page) var(--r-btn) var(--r-btn); box-shadow: var(--sh-paper); }
.pb-pad-head {
    position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px 11px;
    background-color: var(--tape); background-image: var(--tape-img); color: var(--tape-ink);
}
.pb-pad-head::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px;
    background: var(--tape-edge-img);
    filter: brightness(.82);
}
#fp .pb-pad-title { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0; border: 0; background: none; color: var(--tape-ink); font-size: 19px; font-weight: 800; cursor: pointer; }
.pb-pad-tally { padding: 2px 11px; border-radius: var(--r-pill); background: var(--manila); color: var(--ink); font-size: 15px; font-weight: 800; }
.pb-pad-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 14px 10px; }
.pb-pad-for { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; font-size: 15px; color: var(--ink2); }
.pb-pad-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 8px 26px; text-align: center; font-size: 16px; }
.pb-pad-empty b { font-size: 18px; }
.pb-pad-empty span:last-child { color: var(--ink2); }
.pb-pad-empty-tag { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 8px; border: 2px dashed var(--dash); border-radius: var(--r-big); color: var(--dash-ink); font-size: 26px; background: var(--paper); }
.pb-pg { padding: 2px 0 12px; }
.pb-pg + .pb-pg { padding-top: 12px; border-top: 1px dashed var(--rule); }
.pb-pg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 17px; font-weight: 800; }
.pb-line { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 8px 4px; border-radius: var(--r-page); }
.pb-line-pic { display: block; width: 54px; height: 54px; padding: 2px; object-fit: contain; background: var(--card); border: 1px solid var(--rule2); border-radius: var(--r-page); }
.pb-line-main { min-width: 0; }
#fp .pb-line-name { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; text-align: left; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; cursor: pointer; }
#fp span.pb-line-name { min-height: 0; }
#fp button.pb-line-name:hover { text-decoration: underline; }
.pb-line-ask, .pb-line-note { display: block; margin-top: 2px; font-size: 14px; color: var(--ask-ink); }
.pb-line-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
#fp .pb-line-rm { font-size: 15px; color: var(--red); }
#fp .pb-pg-add { font-size: 15px; }
.pb-pg-note { display: block; width: 100%; min-height: 66px; margin-top: 6px; padding: 8px 10px; resize: vertical; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--warm); border-radius: var(--r-page); box-shadow: var(--sh-field); }
.pb-pad-foot { padding: 12px 14px 14px; background: var(--paper); border-top: 1px solid var(--rule); }
.pb-pad-foot .pb-btn-big { width: 100%; }
.pb-pad-lede { margin-top: 8px; font-size: 15px; color: var(--ink2); text-align: center; }
/* one green action on the screen: while a part's "Add to order" shows, Checkout is an outline */
#fp.pb-adding .pb-pad-co, #fp.pb-adding .pb-obar-co.pb-btn-go { background: var(--manila-l); color: var(--ink); border-color: var(--warm); box-shadow: var(--sh-btn); }
/* phones: the order's bar, fixed at the bottom */
.pb-obar { display: none; }
.pb-obar-see {
    display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 6px 10px; border: 0; border-radius: var(--r-btn);
    background: transparent; color: var(--tape-ink); text-align: left; cursor: pointer;
}
.pb-obar-see:hover { background: var(--tape-soft); }
.pb-obar-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-page); background: var(--manila); color: var(--ink); font-size: 18px; }
.pb-obar-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pb-obar-t b { font-size: 17px; }
.pb-obar-tally { font-size: 15px; }
#fp .pb-obar-co { flex: none; min-height: 56px; padding: 8px 18px; font-size: 17px; white-space: nowrap; }

/* ============================================================ CHECK OUT */
.pb-out { max-width: 900px; margin: 0 auto; }
.pb-form { padding: 28px 36px 34px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sheet); box-shadow: var(--sh-paper); }
.pb-form-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 20px; }
.pb-form-h { font-size: 38px; line-height: 1.1; font-weight: 800; }
.pb-form-lede { font-size: 18px; color: var(--ink2); }
/* the lines being ordered, on the form */
.pb-forder { width: 100%; margin-top: 10px; padding: 12px 14px 6px; background: var(--card); border: 1px solid var(--rule2); border-radius: var(--r-btn); }
.pb-forder-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-bottom: 6px; }
.pb-forder-title { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.pb-forder-t { padding: 2px 10px; border-radius: var(--r-pill); background: var(--manila); font-size: 15px; font-weight: 800; }
.pb-forder-list { margin: 0; padding: 0; list-style: none; }
.pb-forder-line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px dashed var(--rule2); }
.pb-forder-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pb-forder-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pb-forder-sec { font-size: 14px; color: var(--ink2); }
.pb-forder-more { padding: 8px 0 6px; font-size: 15px; color: var(--ink2); border-top: 1px dashed var(--rule2); }
.pb-fsec { position: relative; padding: 24px 0 24px 60px; border-top: 1px dashed var(--rule); }
.pb-fsec-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; font-size: 23px; line-height: 1.2; font-weight: 800; }
.pb-fsec-h .pb-ball-lg { position: absolute; left: 0; top: 22px; }
.pb-fsec-body { min-width: 0; }
.pb-mbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px; background: var(--card); border: 1px solid var(--rule2); border-radius: var(--r-btn); }
.pb-mbox-t { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; line-height: 1.3; }
.pb-mbox-t b { font-size: 19px; }
.pb-mbox-t span { font-size: 16px; color: var(--ink2); }
.pb-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 18px; }
.pb-field { min-width: 0; }
.pb-field.is-wide { grid-column: 1 / -1; }
.pb-field label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; font-size: 16px; font-weight: 800; }
.pb-req, .pb-opt { font-size: 14px; font-weight: 400; color: var(--ink2); }
.pb-field input, .pb-field textarea {
    display: block; width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 17px; color: var(--ink);
    background: var(--card); border: 1px solid var(--field-rule); border-radius: var(--r-field); box-shadow: var(--sh-field);
}
.pb-field textarea { min-height: 100px; resize: vertical; }
#fp .pb-field input:focus, #fp .pb-field textarea:focus { outline: none; border-color: var(--ink2); box-shadow: var(--sh-field), var(--sh-focus-ring); }
.pb-field.is-bad input, .pb-field.is-bad textarea { border-color: var(--red); background: var(--bad-bg); }
.pb-fhint { margin-top: 6px; font-size: 15px; color: var(--ink2); }
.pb-err { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--red); }
.pb-err:empty { display: none; }
.pb-robot { display: inline-flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 18px; cursor: pointer; background: var(--card); border: 1px solid var(--field-rule); border-radius: var(--r-field); font-size: 17px; font-weight: 800; }
.pb-robot input { flex: none; width: 28px; height: 28px; margin: 0; accent-color: var(--green); cursor: pointer; }
.pb-robot-badge { margin-left: 22px; font-size: 22px; color: var(--ink2); }
.pb-robot.is-bad { border-color: var(--red); box-shadow: var(--sh-bad); }
.pb-place { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 24px; border-top: 1px dashed var(--rule); text-align: center; }
.pb-place-btn { min-width: 300px; }
.pb-place-hint { font-size: 16px; color: var(--ink2); }
.pb-err-sum { margin: 0; font-size: 16px; }

/* ============================================================ ORDER RECEIVED */
.pb-done { max-width: 780px; margin: 0 auto; }
.pb-done-card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 36px 36px 32px; text-align: center; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-btn); box-shadow: var(--sh-paper); }
.pb-done-check { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--green); color: var(--on-green); font-size: 40px; box-shadow: var(--sh-done); }
.pb-done-h { font-size: 38px; line-height: 1.1; font-weight: 800; }
.pb-done-msg { max-width: 620px; font-size: 17px; overflow-wrap: anywhere; }
.pb-ticket {
    display: flex; align-items: center; gap: 16px; max-width: 100%; padding: 16px 28px 16px 22px; text-align: left; background: var(--manila);
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}
/* a brass eyelet, not an empty circle: this tag is not a choice */
.pb-ticket-hole { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brass-img); box-shadow: var(--sh-brass); }
.pb-ticket-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pb-ticket-k { font-size: 14px; color: var(--ink3); }
.pb-ticket-n { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-ticket-m { font-size: 15px; color: var(--ink3); }
.pb-done-bul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 18px; font-weight: 700; text-align: left; }
.pb-done-lines { width: 100%; padding: 16px 18px 6px; text-align: left; background: var(--paper-2); border: 1px solid var(--rule2); border-radius: var(--r-btn); }
.pb-done-lh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 20px; font-weight: 800; }
.pb-done-line { align-items: center; }
.pb-done-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pb-done-q { display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: var(--r-pill); background: var(--manila); font-size: 15px; font-weight: 800; }

/* ============================================================ MOTION (never under ?check / reduced motion) */
@keyframes pbRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pbTurn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes pbPop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pbFlash { 0% { background-color: var(--flash); } 100% { background-color: transparent; } }
@keyframes pbBump { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes pbRing { 0% { box-shadow: 0 0 0 0 var(--flash-ring), var(--sh-paper); } 100% { box-shadow: 0 0 0 14px transparent, var(--sh-paper); } }
@keyframes pbCame { 0% { box-shadow: 0 0 0 3px var(--yel); } 100% { box-shadow: 0 0 0 3px transparent; } }
@keyframes pbPing { from { transform: scale(1); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
    .pb-wopt, .pb-wplates .mix-plate { animation: pbRise .4s cubic-bezier(.2, .8, .2, 1) backwards; }
    .pb-pop { animation: pbPop .42s cubic-bezier(.2, .8, .2, 1) backwards; }
    .pb-rise { animation: pbRise .45s cubic-bezier(.2, .8, .2, 1) backwards; }
    .pb-turn { animation: pbTurn .35s cubic-bezier(.2, .8, .2, 1) backwards; }
    .pb-detail.pb-in { animation: pbTurn .32s cubic-bezier(.2, .8, .2, 1) backwards; }
    .pb-line.is-new { animation: pbFlash 1.4s ease-out; }
    .pb-bump { animation: pbBump .45s ease; }
    .pb-pad.pb-flash { animation: pbRing .9s ease-out; }
    .pb-row.is-came { animation: pbCame 1.6s ease-out; }
    .pb-ring { animation: pbPing 1.8s ease-out infinite; }
}

/* ============================================================ THE DRAWING SHEET (round 4's sheet look, now the page's own) */
/* the border's zone marks: ticks dividing each edge into equal zones (over the 3D, under the title block and labels) */
#fp .pb-stage::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--frame) calc(12.5% - 1px) 12.5%) 0 0 / 100% 7px no-repeat,
        repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--frame) calc(12.5% - 1px) 12.5%) 0 100% / 100% 7px no-repeat,
        repeating-linear-gradient(180deg, transparent 0 calc(16.6667% - 1px), var(--frame) calc(16.6667% - 1px) 16.6667%) 0 0 / 7px 100% no-repeat,
        repeating-linear-gradient(180deg, transparent 0 calc(16.6667% - 1px), var(--frame) calc(16.6667% - 1px) 16.6667%) 100% 0 / 7px 100% no-repeat;
}
/* the title block, in the drawing's corner: it shares the border and its cells are split by hairlines */
#fp .pb-titleblock {
    display: grid; grid-template-columns: auto auto; min-width: 0; right: -2px; bottom: -2px;
    background: var(--drawing); border: 2px solid var(--frame);
}
#fp .pb-tb-row { gap: 10px; padding: 4px 10px; }
#fp .pb-tb-row:nth-child(odd) { border-right: 1px solid var(--frame-2); }
#fp .pb-tb-row:nth-child(-n+2) { border-bottom: 1px solid var(--frame-2); }
#fp .pb-tb-k { color: var(--ink2); }
#fp .pb-tb-v { color: var(--ink); }
/* tags: outlined boxes (the black ink ones are the phone's order head and its bar) */
#fp .pb-tape { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
/* second buttons: a hairline on white, the same when pointed at */
#fp .pb-btn-line:hover { border-color: var(--ink); }
#fp .pb-explode { background: var(--card); border-color: var(--ink); box-shadow: none; }
#fp .pb-explode:hover { background: var(--manila); }
#fp .pb-explode[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }
/* the pictures: framed squares of grid paper */
#fp .pb-sec-pic { box-shadow: inset 0 0 0 1px var(--rule2); }
#fp .pb-d-fig { background-size: 16px 16px; background-position: -1px -1px; }

/* ============================================================ ROUND 5: the app's own pieces */
.pb-head[hidden] { display: none; }
.pb-find-h { display: none; }
.pb-comps-head { display: flex; flex-direction: column; gap: 2px; }
/* the open component in the list: tinted and ringed all round, its number lit (never a stripe) */
.pb-sec.is-cur, .pb-sec.is-cur:hover { background: var(--manila); border-color: var(--ink); box-shadow: var(--sh-cur); }
.pb-sec.is-cur .pb-ball { background: var(--yel); border-color: var(--yel-d); }
.pb-intro .pb-lsub { font-size: 17px; }
/* the part in the order: "In your order" − n +, then See your order and Remove */
.pb-d-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
#fp .pb-d-rm { color: var(--red); }
/* the compact order's line: picture, name, how many (a tap opens the part) */
.pb-cline {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 52px;
    padding: 4px 8px 4px 4px; border: 0; border-radius: var(--r-page); background: none; color: var(--ink); text-align: left; cursor: pointer;
    transition: background-color .12s;
}
.pb-cline + .pb-cline { border-top: 1px dashed var(--rule2); }
.pb-cline:hover { background: var(--manila); }
.pb-cline-pic { display: block; width: 44px; height: 44px; padding: 2px; object-fit: contain; background: var(--card); border: 1px solid var(--rule2); border-radius: var(--r-pic); }
.pb-cline-name { min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.pb-cline-q { font-size: 15px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.pb-pad-none { padding: 0 14px 12px; font-size: 15px; color: var(--ink2); }
.pb-pad-none b { color: var(--ink); }
/* the machine bar: your machine (plate and name), and the way to pick another, by the "chg" option */
.pb-bar-mine {
    display: flex; align-items: center; gap: 10px 16px; min-width: 0; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: var(--r-btn);
    background: none; color: var(--ink); font: inherit; text-align: left; cursor: default; pointer-events: none;
}
.pb-bar-tap { display: none; }
/* "Words": a worded link */
#fp .pb-bar-change {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; border: 0; background: none; cursor: pointer;
    color: var(--green-d); font-weight: 800; font-size: 16px; line-height: 1.2; text-align: left;
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
#fp .pb-bar-change:hover { color: var(--green-dd); }
/* "Yellow tag": the same words in "Your last pick"'s look (the owner: "i love the 'Your Last Pick' button") */
html:root #fp .pb-bar-change {
    min-height: 44px; padding: 4px 14px; border-radius: var(--r-tape); background: var(--yel); color: var(--on-yel);
    font-size: 15px; text-decoration: none; box-shadow: var(--sh-was);
}
html:root #fp .pb-bar-change:hover { box-shadow: var(--sh-was), var(--sh-focus-ring); }
/* the cart, like most shops: the bar's right end, with how many pieces on a yellow count ("Your last pick"'s look) */
.pb-cartw { display: flex; flex: none; margin-left: auto; }
.pb-cart {
    position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 48px; min-height: 48px; padding: 6px 16px;
    border: 1px solid var(--warm); border-radius: var(--r-btn); background: var(--card); color: var(--ink);
    font-family: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; cursor: pointer; transition: background-color .15s;
}
.pb-cart:hover { background: var(--manila); }
.pb-cart .fa-solid { font-size: 20px; }
.pb-cart[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }
.pb-cart-n {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
    background: var(--yel); color: var(--on-yel); font-size: 15px; font-weight: 800; line-height: 1; box-shadow: var(--sh-was);
}
@media (prefers-reduced-motion: no-preference) { .pb-cart.pb-bump { animation: pbBump .45s ease; } }
@media (prefers-reduced-motion: no-preference) { .pb-cline.is-new { animation: pbFlash 1.4s ease-out; } }

/* ============================================================ PC (1000+): three columns under the machine bar
   Left, the parts of the machine (components only, big pictures, one a row); centre, the model, as big as the
   window allows (no width cap); right, the search, then the parts (a component's numbered parts, the part in place
   of the list, or a search) and, by the "order" option, the compact order under them. */
@media (min-width: 1000px) {
    #fp { --pb-compw: 260px; --pb-sidew: 300px; --pb-apph: max(540px, calc(100vh - var(--pb-barh, 72px) - 56px)); }
    .pb-shell, .pb-cat { max-width: none; }
    .pb-shell { padding: 16px 16px 40px; }
    .pb-shell:not([data-screen="order"]) .pb-head { display: none !important; }
    /* "Cart button" (like most shops): the right column is all parts; the order is the cart page */
    .pb-app {
        display: grid; grid-template-columns: var(--pb-compw) minmax(0, 1fr) var(--pb-sidew);
        grid-template-rows: auto minmax(0, 1fr); height: var(--pb-apph); margin-top: 12px; gap: 0 1px;
        grid-template-areas: "comps stage find" "comps stage body";
        overflow: hidden; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-page); box-shadow: var(--sh-spread);
    }
    /* with the cart in it, the machine bar stays on screen */
    html:root .pb-bar { position: sticky; top: 22px; z-index: 30; }
    /* the cart page: "Keep shopping", then the order like most shops' carts, the lines and the checkout box beside
       them (the 3D waits off the page, still drawn) */
    .pb-shell[data-screen="order"] .pb-app { display: block; height: auto; max-width: 1180px; margin: 18px auto 0; overflow: visible; background: none; border: 0; box-shadow: none; }
    .pb-shell[data-screen="order"] .pb-head { padding: 0 0 14px; }
    .pb-shell[data-screen="order"] .pb-comps, .pb-shell[data-screen="order"] .pb-find, .pb-shell[data-screen="order"] .pb-body { display: none; }
    .pb-shell[data-screen="order"] .pb-platepage { position: fixed; left: -200vw; top: 0; width: 900px; height: 640px; visibility: hidden; pointer-events: none; }
    /* the cart page itself is laid out in THE CART PAGE section at the end of this file */

    /* left: the parts of the machine */
    .pb-comps { grid-area: comps; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 14px; background: var(--paper); }
    .pb-comps-head { position: sticky; top: 0; z-index: 2; margin: 0 -12px 10px; padding: 14px 14px 10px; background: var(--paper); border-bottom: 1px solid var(--rule2); }
    .pb-comps .pb-secs { gap: 8px; }
    .pb-comps .pb-sec { gap: 12px; min-height: 76px; padding: 6px 10px 6px 6px; }
    .pb-comps .pb-sec { position: relative; }
    .pb-comps .pb-sec-pic { width: 50%; max-width: 210px; height: auto; aspect-ratio: 3 / 2; }
    /* its number sits on the picture's corner, like a balloon on a drawing, so the name has the room */
    .pb-comps .pb-sec-txt .pb-ball { position: absolute; left: 10px; top: 10px; z-index: 1; }
    .pb-comps .pb-sec-name b { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
    .pb-comps .pb-sec-n { font-size: 15px; }

    /* centre: the model */
    .pb-platepage { grid-area: stage; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 16px 12px; background: var(--paper); }
    .pb-plate-head, .pb-platepage .pb-note, .pb-tools { flex: none; }
    .pb-app[data-shape] .pb-stage { flex: 1 1 auto; width: auto; height: auto; aspect-ratio: auto; min-height: 0; max-height: none; margin: 6px; }
    .pb-platepage .pb-note { width: auto; max-width: none; margin: 4px 6px 12px; }
    .pb-tools { margin-top: 10px; }

    /* right: the search, then the parts */
    .pb-find { grid-area: find; min-width: 0; padding: 14px 16px 10px; background: var(--paper); }
    .pb-body { grid-area: body; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; background: var(--paper); }
    .pb-body .pb-lhead { margin-top: 8px; }
    .pb-row { grid-template-columns: 30px 56px minmax(0, 1fr) 12px; gap: 10px; padding: 8px 6px; }
    .pb-row.is-ref { grid-template-columns: auto 56px minmax(0, 1fr) 12px; }
    .pb-row-pic { width: 56px; height: 56px; }
    /* the part, in place of the list: its picture beside its name (a wider column puts it on top, bigger) */
    .pb-detail { padding-top: 10px; }
    .pb-d-say { display: none; }
    .pb-d-grid { grid-template-columns: minmax(104px, 38%) minmax(0, 1fr); align-items: start; gap: 14px; margin-top: 12px; }
    .pb-d-fig, .pb-d-fig.is-photo { padding: 4px; border-radius: var(--r-btn); }
    .pb-d-fig img { height: 124px; }
    .pb-d-fig.is-sec { flex-direction: column; padding: 4px; }
    .pb-d-fig.is-sec img { width: 100%; height: 96px; }
    .pb-d-fig.is-sec figcaption { display: none; }
    .pb-d-name { margin-top: 4px; font-size: 22px; }
    .pb-d-more { flex-direction: column; }

    /* the compact order: "Under the parts", at the right column's foot */
    .pb-pad.is-compact {
        grid-area: pad; display: flex; flex-direction: column; min-width: 0; min-height: 0; max-height: calc(var(--pb-apph) * .42);
        overflow: hidden; background: var(--paper); border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none;
    }
    .pb-pad.is-compact .pb-pad-head { padding: 6px 14px 2px; background: none; color: var(--ink); }
    .pb-pad.is-compact .pb-pad-head::after { display: none; }
    #fp .pb-pad.is-compact .pb-pad-title { min-height: 40px; color: var(--ink); font-size: 18px; }
    .pb-pad.is-compact .pb-pad-tally { padding: 0; background: none; color: var(--ink2); font-size: 15px; font-weight: 700; }
    .pb-pad.is-compact .pb-pad-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 8px 4px; }
    .pb-pad.is-compact .pb-pad-foot { padding: 6px 12px 12px; background: none; border: 0; }
    #fp .pb-pad.is-compact .pb-pad-co { width: 100%; }
}
/* small PCs: the title block is the sheet's name only, so the machine keeps its size */
@media (min-width: 1000px) and (max-width: 1279px) {
    #fp .pb-titleblock { grid-template-columns: auto; }
    #fp .pb-tb-row:not(.pb-tb-sheet) { display: none; }
    #fp .pb-tb-row.pb-tb-sheet { border: 0; }
}
@media (min-width: 1280px) {
    #fp { --pb-compw: 330px; --pb-sidew: 340px; }
    /* the part: its picture on top, big ("that's my part"), the name under it */
    .pb-d-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .pb-d-fig img { height: 196px; }
    .pb-d-fig.is-sec { flex-direction: row; }
    .pb-d-fig.is-sec img { width: 128px; height: 92px; flex: none; }
    .pb-d-fig.is-sec figcaption { display: block; }
}
@media (min-width: 1600px) {
    #fp { --pb-compw: 390px; --pb-sidew: 380px; }
    .pb-shell { padding-left: 20px; padding-right: 20px; }
    .pb-d-fig img { height: 236px; }
}
@media (min-width: 1900px) { #fp { --pb-compw: 420px; --pb-sidew: 400px; } }

/* ============================================================ NARROW (999 and under): one screen per step
   The machine bar sticks at the top (its own full-width row is the page's one Back, a step a tap) and the order's bar at
   the bottom. The screen (data-screen) decides what shows:
   home    the whole machine, the search, the parts of the machine
   comp    the component on the model, its numbered parts, then "Not here? Look up a part"
   part    the part lit on the model, the part (Add to order in view at once)
   search  the model, the search, the matches
   order   "Keep shopping" and the whole order */
@media (max-width: 999px) {
    .pb-shell { padding: 12px 12px 28px; }
    .pb-bar {
        position: sticky; top: 22px; z-index: 30; margin: 0 -12px; padding: 8px 12px; gap: 8px 12px;
        border-width: 0 0 1px; border-radius: 0 0 var(--r-bar) var(--r-bar); box-shadow: var(--sh-bar);
    }
    .pb-bar-tape { display: none; }
    .pb-note { margin-top: 12px; padding: 14px 14px 10px; }
    .pb-note-txt p { font-size: 16px; }
    .pb-shell:not([data-screen="home"]) .pb-note { display: none; }
    .pb-app { display: flex; flex-direction: column; margin-top: 12px; }
    .pb-platepage { display: contents; }
    .pb-head { padding: 0 0 12px; }
    #fp .pb-head-back { width: 100%; justify-content: flex-start; text-align: left; }
    .pb-plate-head { margin: 0; padding: 0 2px 4px; min-height: 0; }
    .pb-plate-title { font-size: 22px; }
    .pb-stage { width: 100%; margin: 8px 0; aspect-ratio: auto; min-height: 0; max-height: none; height: clamp(230px, 36vh, 380px); }
    .pb-app[data-shape="general"] .pb-stage { height: auto; aspect-ratio: 4 / 3.1; max-height: 64vh; }
    .pb-tools { gap: 8px 10px; margin: 2px 0 6px; padding: 0 2px; }
    .pb-find { margin: 10px 0 6px; }
    .pb-find-h { margin-bottom: 8px; font-size: 17px; font-weight: 800; }
    /* one screen at a time */
    .pb-comps, .pb-body, .pb-pad { display: none; }
    .pb-shell[data-screen="home"] .pb-comps { display: block; margin-top: 8px; }
    .pb-shell[data-screen="comp"] .pb-body, .pb-shell[data-screen="part"] .pb-body, .pb-shell[data-screen="search"] .pb-body { display: block; }
    .pb-shell[data-screen="comp"] .pb-find { order: 1; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--rule); }
    .pb-shell[data-screen="comp"] .pb-find-h { display: block; }
    .pb-shell[data-screen="part"] .pb-find, .pb-shell[data-screen="order"] .pb-find { display: none; }
    /* the part: the card starts with its picture and name */
    .pb-shell[data-screen="part"] .pb-plate-head, .pb-shell[data-screen="part"] .pb-tools { display: none; }
    .pb-shell[data-screen="part"] .pb-stage { height: clamp(210px, 30vh, 320px); }
    /* the order's screen: the order only (the 3D waits off the page, still drawn) */
    .pb-shell[data-screen="order"] .pb-pad { display: flex; }
    .pb-shell[data-screen="order"] .pb-plate-head, .pb-shell[data-screen="order"] .pb-tools { display: none; }
    .pb-shell[data-screen="order"] .pb-stage { position: fixed; left: -200vw; top: 0; width: 360px; height: 300px; visibility: hidden; pointer-events: none; }
    /* the way back is the page's one Back, the machine bar's own row (the owner, 2026-11-18: one Back, not one per screen) */
    #fp .pb-d-back { display: none; }
    .pb-lhead { margin-top: 8px; }
    /* big rows */
    .pb-row { grid-template-columns: 30px 64px minmax(0, 1fr) 12px; gap: 12px; min-height: 80px; padding: 10px 4px; }
    .pb-row.is-ref { grid-template-columns: auto 64px minmax(0, 1fr) 12px; }
    .pb-row-pic { width: 64px; height: 64px; }
    .pb-comps-head { margin: 0 0 10px; }
    .pb-comps .pb-sec { min-height: 96px; gap: 14px; padding: 6px 12px 6px 6px; }
    .pb-comps .pb-sec-pic { width: 128px; height: 88px; }
    .pb-comps .pb-sec-name b { font-size: 19px; }
    /* the part: its picture beside its name; Add to order in view at once */
    .pb-detail { padding-top: 0; }
    .pb-d-say { display: block; margin-top: 0; }
    .pb-d-grid { grid-template-columns: 136px minmax(0, 1fr); align-items: start; gap: 14px; margin-top: 10px; }
    .pb-d-fig, .pb-d-fig.is-photo { padding: 4px; border-radius: var(--r-btn); }
    .pb-d-fig img { height: 120px; }
    .pb-d-fig.is-sec { flex-direction: column; padding: 4px; }
    .pb-d-fig.is-sec img { width: 100%; height: 96px; }
    .pb-d-fig.is-sec figcaption { display: none; }
    .pb-d-name { margin-top: 4px; font-size: 22px; }
    .pb-d-qty { font-size: 17px; }
    .pb-d-more { flex-direction: column; }
    /* the order's screen: Early Order's whole list, with Checkout as the main action */
    .pb-pad { margin-top: 4px; }
    /* the order's bar, fixed at the bottom of the screen */
    .pb-obar:not([hidden]) {
        position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: flex; align-items: stretch; gap: 8px;
        max-width: 760px; margin: 0 auto; padding: 8px; border-radius: var(--r-bar);
        background-color: var(--tape); background-image: var(--tape-img); color: var(--tape-ink); box-shadow: var(--sh-dock);
    }
    #fp.pb-has-obar { padding-bottom: 96px; }
    /* the wizard: the sheet goes full width */
    .pb-shell[data-view="pick"] { padding: 0 0 24px; }
    .pb-wiz { padding: 22px 22px 24px; border-width: 0 0 1px; border-radius: 0; }
    .pb-wiz-h { font-size: 32px; }
    .pb-wiz-q { font-size: 26px; }
    .pb-whiller { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pb-form { padding: 20px 16px 24px; }
}
/* phones: the site's green menu disc keeps its corner; no hose rail */
@media (max-width: 768px) {
    /* one row: the plate, then the way to pick another (its words wrap inside it, never under the plate) */
    .pb-bar { top: 0; padding-right: 84px; flex-wrap: nowrap; }
    .pb-bar-mine { flex: none; }
    #fp .pb-bar-change { flex: 0 1 auto; min-width: 0; }
    /* the cart: its picture, the count on its corner like most shop apps (its words are in its label) */
    .pb-cart { justify-content: center; width: 52px; padding: 6px; }
    .pb-cart-t { display: none; }
    .pb-cart-n { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 5px; font-size: 14px; }
    /* the bar's plate carries the machine's name, the serial and its year and generation */
    .pb-bar-machine { display: none; }
    .pb-bar .mix-plate-mini { padding: 5px 16px 6px; }
    .pb-bar .mix-plate-mini .mix-plate-l { display: none; }
    .pb-bar .mix-plate-mini .mix-plate-type, .pb-bar .mix-plate-mini .mix-plate-m { display: block; }
    .pb-wiz-head { padding-right: 70px; }
    .pb-wiz { padding: 18px 16px 22px; }
    .pb-wiz-h { font-size: 28px; }
    .pb-wprog { margin-top: 16px; padding-top: 12px; }
    .pb-wsteps { margin-top: 10px; }
    .pb-wsteps::before { top: 19px; }
    .pb-wstep-in { gap: 6px; padding: 0 2px 2px; font-size: 14px; }
    .pb-wstep .pb-ball { width: 38px; height: 38px; font-size: 17px; }
    .pb-wiz-body { margin-top: 12px; padding-top: 14px; }
    .pb-wiz-top { gap: 10px 14px; }
    .pb-wiz-sofar { font-size: 16px; }
    .pb-wiz-q { margin-top: 14px; font-size: 24px; }
    .pb-wiz-hint { font-size: 16px; }
    .pb-wopts { gap: 12px; margin-top: 16px; }
    /* one choice a row, big; the picture beside the name */
    .pb-wtypes, .pb-wmodels { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pb-wtype { flex-direction: row; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; }
    .pb-wtype-photo { flex: none; width: 42%; max-width: 180px; aspect-ratio: 4 / 3; }
    .pb-wtype .pb-wopt-t { flex: 1; padding: 0; }
    .pb-wtype .pb-wgo { position: static; }
    .pb-wopt-name { font-size: 22px; }
    .pb-wopt-sub { font-size: 16px; }
    .pb-wmodel { min-height: 96px; padding: 14px 14px 14px 18px; }
    .pb-wmodel .pb-wopt-name { font-size: 28px; }
    .pb-wmodel .pb-wopt-sub { font-size: 17px; }
    .pb-wgo { width: 44px; height: 44px; }
    .pb-wyears { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
    .pb-wyear { min-height: 64px; }
    .pb-wyear-n { font-size: 23px; }
    .pb-wplates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
    .pb-wplates .mix-plate-big { min-height: 96px; padding: 14px 14px 13px; border-radius: 11px; }
    .pb-wplates .mix-plate-big .mix-plate-l, .pb-wplates .mix-plate-big .mix-plate-m { font-size: 14px; }
    .pb-wplates .mix-plate-big .mix-plate-n { font-size: 21px; }
    .pb-wiz-help { margin-top: 20px; font-size: 16px; }
    .pb-whiller-msg { font-size: 18px; }
    .pb-whiller-acts { flex-direction: column; align-items: stretch; width: 100%; }
    .pb-form-head { padding-right: 64px; }
    .pb-forder { margin-right: -64px; width: auto; align-self: stretch; }
    .pb-form-h { font-size: 30px; }
    .pb-form-lede { font-size: 17px; }
    .pb-fsec { padding: 20px 0; }
    .pb-fsec-h { gap: 10px; margin: 0 0 12px; font-size: 21px; }
    .pb-fsec-h .pb-ball-lg { position: static; width: 34px; height: 34px; font-size: 17px; }
    .pb-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pb-robot { display: flex; }
    .pb-robot-badge { margin-left: auto; }
    .pb-place-btn { width: 100%; min-width: 0; }
    .pb-done-card { padding: 26px 16px 24px; }
    .pb-done-h { font-size: 30px; }
    /* the ticket: eyelet at the top edge, so the whole number fits on one line */
    .pb-ticket {
        flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 14px 12px 16px; text-align: center;
        clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
    }
    .pb-ticket-t { align-items: center; }
    .pb-ticket-n { font-size: clamp(15px, 4.6vw, 21px); }
    .pb-done-lines { padding: 14px 12px 4px; }
}
/* phones: the whole machine on a square sheet, its numbers in a row above and below it */
@media (max-width: 759px) {
    .pb-app[data-shape="general"] .pb-stage { aspect-ratio: 1 / 1; max-height: 60vh; }
    .pb-stage { height: clamp(220px, 34vh, 320px); }
    .pb-shell[data-screen="part"] .pb-stage { height: clamp(200px, 29vh, 280px); }
    /* the title block: the sheet's name only, so the machine keeps its size */
    #fp .pb-titleblock { grid-template-columns: auto; }
    #fp .pb-tb-row:not(.pb-tb-sheet) { display: none; }
    #fp .pb-tb-row.pb-tb-sheet { border: 0; }
}
/* small phones: the machine bar stays one row (the plate and Change) */
@media (max-width: 400px) {
    .pb-chg-x { display: none; }
    .pb-bar { gap: 8px; padding-left: 10px; }
    .pb-bar .mix-plate-mini { padding: 4px 14px 5px; }
    /* never narrower than its longest word, so no word slides under the cart */
    #fp .pb-bar-change { min-width: min-content; padding: 0 4px; }
    .pb-bar-change .fa-solid { display: none; }
}
@media (max-width: 380px) {
    .pb-bar { gap: 6px; }
    .pb-bar .mix-plate-mini { padding: 4px 10px 5px; }
    #fp .pb-bar-change { font-size: 15px; }
}
@media (max-width: 380px) {
    .pb-wiz { padding-left: 14px; padding-right: 14px; }
    .pb-wiz-h { font-size: 26px; }
    .pb-wplates { gap: 10px; }
    .pb-wplates .mix-plate-big { padding: 13px 10px 12px; }
    .pb-wplates .mix-plate-big .mix-plate-n { font-size: 20px; }
    .pb-obar-ic { display: none; }
    #fp .pb-obar-co { padding: 8px 14px; }
    .pb-d-grid { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
    .pb-d-fig img { height: 104px; }
    .pb-comps .pb-sec-pic { width: 112px; height: 78px; }
}

/* ============================================================ THE CART PAGE (the owner's picks): like most shops
   The heading with the tally; a white sheet with a row a part (its big picture, its name and section, − n +,
   Remove); the order summary beside it (your machine on its plate, parts and pieces, the big green Checkout). */
.pb-pad.is-cart { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.pb-shell[data-screen="order"] .pb-pad.is-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pb-shell[data-screen="order"] .pb-pad.is-cart.is-empty { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pb-cl-main { min-width: 0; }
.pb-cl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 4px 0 14px; }
.pb-cl-h { font-size: 34px; line-height: 1.1; font-weight: 800; }
.pb-cl-h:focus { outline: none; }
.pb-cl-tally { font-size: 18px; font-weight: 700; color: var(--ink2); }
.pb-cl { margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sheet); box-shadow: var(--sh-paper); }
.pb-cl-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; }
.pb-cl-row + .pb-cl-row { border-top: 1px solid var(--rule2); }
#fp .pb-cl-pic { display: block; width: 116px; height: 116px; padding: 8px; border: 1px solid var(--rule2); border-radius: var(--r-pic); background: var(--well-img); cursor: pointer; }
#fp .pb-cl-pic:hover { border-color: var(--ink); }
.pb-cl-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pb-cl-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
#fp .pb-cl-name {
    display: block; min-height: 44px; padding: 8px 0 2px; border: 0; background: none; color: var(--ink);
    font-size: 19px; font-weight: 800; line-height: 1.3; text-align: left; overflow-wrap: anywhere; cursor: pointer;
}
#fp .pb-cl-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pb-cl-sec { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink2); }
.pb-cl-ask, .pb-cl-note { font-size: 15px; color: var(--ask-ink); }
.pb-cl-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 16px; }
#fp .pb-cl-rm { color: var(--red); }
.pb-cl-empty {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 20px 30px; text-align: center; font-size: 17px;
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sheet); box-shadow: var(--sh-paper);
}
.pb-cl-empty b { font-size: 22px; }
.pb-cl-empty > span:not(.pb-cl-empty-ic) { color: var(--ink2); }
.pb-cl-empty-ic { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border: 2px dashed var(--dash); border-radius: 50%; color: var(--dash-ink); font-size: 28px; }
.pb-cl-empty .pb-btn { margin-top: 10px; }
/* the order summary: beside the list on the PC (it stays in view), under it on a phone */
.pb-cl-sum {
    position: sticky; top: calc(22px + var(--pb-barh, 72px) + 14px); display: flex; flex-direction: column; gap: 14px; padding: 20px;
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sheet); box-shadow: var(--sh-paper);
}
.pb-cl-sum-h { font-size: 22px; line-height: 1.2; font-weight: 800; }
.pb-cl-mach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 16px; color: var(--ink2); }
.pb-cl-sum-t { display: grid; gap: 6px; margin: 0; padding: 14px 0 2px; border-top: 1px solid var(--rule2); }
.pb-cl-sum-t div { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.pb-cl-sum-t dt { color: var(--ink2); }
.pb-cl-sum-t dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
#fp .pb-cl-sum .pb-pad-co { width: 100%; }
.pb-cl-lede { display: flex; align-items: flex-start; justify-content: center; gap: 8px; font-size: 15px; color: var(--ink2); text-align: center; }
.pb-cl-lede .fa-solid { margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) { .pb-cl-row.is-new { animation: pbFlash 1.4s ease-out; } }
/* phones (and small tablets): one column; each row puts its − n + and Remove under the name */
@media (max-width: 999px) {
    .pb-shell[data-screen="order"] .pb-pad.is-cart { display: flex; flex-direction: column; gap: 16px; margin-top: 0; }
    .pb-cl-h { font-size: 28px; }
    .pb-cl-tally { font-size: 17px; }
    .pb-cl-row { grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 8px 14px; padding: 14px 12px; }
    #fp .pb-cl-pic { width: 92px; height: 92px; padding: 6px; grid-row: span 2; }
    .pb-cl-ctl { justify-content: flex-start; }
    .pb-cl-sum { position: static; }
}
@media (max-width: 380px) {
    .pb-cl-row { grid-template-columns: 76px minmax(0, 1fr); }
    #fp .pb-cl-pic { width: 76px; height: 76px; }
}

/* ============================================================ ABOVE THE MODEL (the owner, 2026-10-19: "the 'Exploded
   view' button should also be above the model instead of below")
   The drawing's heading row: the component's number and name, Exploded view, the parts book's two buttons. The way
   back is the page's one Back (the owner, 2026-11-18: one Back, not two; see THE PAGE'S ONE BACK). "Keep shopping" keeps the yellow "Your
   last pick" look the owner loves (NOT black: "you made the button BLACK??"). */
.pb-plate-name { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
#fp .pb-head-back { background: var(--yel); color: var(--on-yel); border: 0; box-shadow: var(--sh-was); }
#fp .pb-head-back:hover { box-shadow: var(--sh-was), var(--sh-focus-ring); }
#fp .pb-plate-head .pb-explode { margin-left: auto; min-height: 48px; }
@media (min-width: 1000px) {
    .pb-plate-head { gap: 10px 16px; margin-bottom: 8px; }
    /* the PC: the name on the left; Exploded view at the right end above the model (the owner: "the button should go
       on the right above the model. not left") */
    .pb-plate-name { order: 0; margin-right: auto; }
    #fp .pb-plate-head .pb-explode { order: 1; margin-left: 0; }
}
/* phones: the name and Exploded view, then the parts book's buttons */
@media (max-width: 999px) {
    .pb-plate-head { gap: 10px 12px; padding-bottom: 6px; }
    /* the part's screen: View drawings and Download parts book over the model, when the machine has a book (a hiller
       has none: no empty row); the card under the model names the part and its component */
    .pb-shell[data-screen="part"] .pb-plate-head:has(> #pbBookPair:not([hidden])) { display: flex; }
    .pb-shell[data-screen="part"] .pb-plate-name { display: none; }
}

/* ============================================================ ROUND 6 · THE PAGE WIDTH (the PC; the owner, 2026-10-19:
   "i want to see a desktop view/layout where not the entire page with is used up")
   The machine bar and the three columns sit in one centred box; the ground shows either side. The mock bar's "Page
   width": 1200 (the rest of the website's width), 1440, 1600, or Full width (round 5 exactly). Inside a box the
   columns keep the widths they have at that box's own size, so a wide window never squeezes the model. */
@media (min-width: 1000px) {
    html:root #fp { --pb-maxw: 1600px; }
    html:root .pb-cat { max-width: var(--pb-maxw); margin-left: auto; margin-right: auto; }
    /* while the wizard is up the catalogue waits off the page at the box's size, so the 3D keeps its size when it
       comes back */
    html:root .pb-cat.pb-away { max-width: calc(var(--pb-maxw) + 32px); margin: 0 auto; }
}
@media (min-width: 1600px) { html:root #fp { --pb-compw: 390px; --pb-sidew: 380px; } }
@media (min-width: 1000px) {
    /* in a box the cart page lines up with the machine bar's edges, like a shop's cart under its header */
    html:root .pb-shell[data-screen="order"] .pb-app { max-width: none; }
    /* a drawing too narrow for one heading row: the way back wraps to its own line and stays at the RIGHT (the owner:
       "the button should go on the right above the model. not left"); the name keeps the left */
    .pb-plate-head { justify-content: flex-end; }
}

/* ============================================================ ROUND 6 · THE PAGE FRAME (the PC): "Drawing sheet"
   The box drawn as ONE drawing sheet lying on a desk: a thin trim at the paper's edge, the heavy border line inside
   it and the zone ticks between the two, all round. The machine bar and the three columns lie on the one sheet with
   hairlines between them (no cards of their own). The drawing on it keeps its title block; its ticks are the sheet's
   now, so its own frame is one ruled line. Every literal value of the frame is in its token block. */
@media (min-width: 1000px) {
    html:root #fp {
        /* ---- tokens: the desk under the sheet, the paper's shadow on it, the sheet's margin */
        --peg: #cbd3db;
        --sh-sheet: 0 1px 2px rgba(20, 27, 36, .16), 0 16px 32px -16px rgba(20, 27, 36, .5);
        --sheet-pad: 30px;
        /* the whole sheet fits the window once the page has scrolled to it */
        --pb-apph: max(540px, calc(100vh - var(--pb-barh, 72px) - 56px - 2 * var(--sheet-pad)));
    }
    html:root .pb-cat:not(.pb-away) { position: relative; padding: var(--sheet-pad); background: var(--paper); box-shadow: var(--sh-sheet); }
    /* off the page (the wizard is up) the catalogue keeps the sheet's inner size, so the 3D keeps its size */
    html:root .pb-cat.pb-away { padding: 16px calc(16px + var(--sheet-pad)); }
    /* the page scrolls to the sheet's edge, not to the bar inside it */
    html:root .pb-cat-top { position: relative; top: calc(-1 * var(--sheet-pad)); }
    /* the trim at the paper's edge, and the zone ticks from it in to the border line */
    html:root .pb-cat:not(.pb-away)::before {
        content: ''; position: absolute; inset: 8px; pointer-events: none; border: 1px solid var(--frame);
        background:
            repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--frame) calc(12.5% - 1px) 12.5%) 0 0 / 100% 10px no-repeat,
            repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--frame) calc(12.5% - 1px) 12.5%) 0 100% / 100% 10px no-repeat,
            repeating-linear-gradient(180deg, transparent 0 calc(16.6667% - 1px), var(--frame) calc(16.6667% - 1px) 16.6667%) 0 0 / 10px 100% no-repeat,
            repeating-linear-gradient(180deg, transparent 0 calc(16.6667% - 1px), var(--frame) calc(16.6667% - 1px) 16.6667%) 100% 0 / 10px 100% no-repeat;
    }
    /* the heavy border line */
    html:root .pb-cat:not(.pb-away)::after { content: ''; position: absolute; inset: 18px; pointer-events: none; border: 2px solid var(--frame); }
    /* the bar and the columns lie on the sheet */
    html:root .pb-bar { padding: 2px 4px 12px; border: 0; border-radius: 0; box-shadow: none; }
    html:root .pb-app { margin-top: 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
    html:root .pb-shell[data-screen="order"] .pb-app { border-top: 0; }
    /* the drawing on the sheet: one ruled line; the title block shares it */
    html:root #fp .pb-stage { box-shadow: 0 0 0 1px var(--frame); }
    html:root #fp .pb-stage::after { display: none; }
    html:root #fp .pb-titleblock { right: -1px; bottom: -1px; border-width: 1px; }
}

/* ============================================================ ROUND 6 · YOUR PICKS (the owner, 2026-10-19: "i like the
   drawing sheet and 1600"; "the search box should go in the right column and so should the 'All parts of the
   machine'"; "i just want a back button"; the reused-model note "is taking up way too much room")
   The one Back (yellow, "Your last pick"'s look) sits in the right column under the search on the PC; phones keep it
   above the picture. The reused-model note is a plain line in the machine bar on the PC, slimmer under it on
   phones. */
@media (min-width: 1000px) {
    /* the note: a line beside your machine in the bar's free middle (no box); on a small PC it takes its own row */
    .pb-bar .pb-note {
        flex: 1 1 340px; align-items: center; gap: 10px; min-width: 0; max-width: none; margin: 0; padding: 0 6px;
        background: none; border: 0; border-radius: 0; box-shadow: none;
    }
    .pb-bar .pb-note::before { display: none; }
    .pb-bar .pb-note-i { margin-top: 0; font-size: 18px; }
    .pb-bar .pb-note-txt { display: block; }
    .pb-bar .pb-note-txt p { display: inline; font-size: 15px; line-height: 1.4; color: var(--ink2); }
    .pb-bar .pb-note-call { display: inline-flex; min-height: 0; margin-left: 8px; font-size: 15px; white-space: nowrap; }
}
/* a small PC: the bar has no room beside your machine, so the note is its own row under it (never pushing the cart
   onto a row of its own) */
@media (min-width: 1000px) and (max-width: 1439px) {
    .pb-bar .pb-note { order: 9; flex-basis: 100%; padding: 2px 4px 0; }
}
/* phones: the note under the bar, slimmer: the call link runs on at the text's end; its tap area stays 44px tall
   through padding that does not make the line taller */
@media (max-width: 999px) {
    .pb-note { gap: 10px; margin-top: 8px; padding: 8px 12px; }
    .pb-note-i { margin-top: 2px; font-size: 18px; }
    .pb-note-txt { display: block; }
    .pb-note-txt p { display: inline; font-size: 15px; line-height: 1.35; }
    .pb-note-call { display: inline; min-height: 0; margin-left: 6px; padding: 12px 0; font-size: 15px; white-space: nowrap; }
}

/* ============================================================ ROUND 6 · THE PARTS LIST BESIDE THE PARTS OF THE MACHINE
   The owner, 2026-10-19: "i want the parts and selected parts to be in seperate panels that always display", then
   "you stacked them? now there is no room to view the parts list (parts list needs all the height like the
   components. maybe the parts list should be moved to the left next to the components list"; and "the left panel
   maybe has too much width".
   The PC, 1440 and up: four columns, each the window's full height: the parts of the machine | the parts (the search,
   the title row, the list) | the model | the selected part (its card, or "Tap a part ..." while none is open). 1000
   to 1439 has no room for four: the left column is the search over the parts of the machine, and once a section (or
   a search) is open its parts take the sections' place (the big Back at its top brings them back); then the model and
   the selected part. Phones keep one screen per step. */
@media (min-width: 1000px) {
    /* the list stays when a part opens: the part has a column of its own */
    .pb-shell.has-detail .pb-list { display: block; }
    /* the parts' title row, under the search */
    .pb-ptitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
    .pb-ptitle-t { flex: 1 1 140px; min-width: 0; }
    .pb-ptitle-t .pb-lh { font-size: 21px; }
    .pb-body .pb-lhead { margin-top: 6px; }
    /* the selected part: a column of its own, the full height */
    .pb-partpanel {
        grid-area: part; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto;
        overscroll-behavior: contain; padding: 14px 16px 16px; background: var(--paper);
    }
    .pb-pp-h { margin: 0 0 10px; font-size: 18px; line-height: 1.2; }
    .pb-pp-empty { padding: 12px 14px; font-size: 16px; }
    .pb-shell.has-detail .pb-pp-empty { display: none; }
    .pb-shell[data-screen="order"] .pb-partpanel { display: none; }
    /* the part: its picture on top, big, then its name, Add to order, the quote and the call */
    .pb-partpanel .pb-detail { padding: 0; }
    .pb-partpanel .pb-d-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 0; }
    .pb-partpanel .pb-d-fig img { height: 180px; }
    .pb-partpanel .pb-d-fig.is-sec { flex-direction: column; padding: 6px; }
    .pb-partpanel .pb-d-fig.is-sec img { width: 100%; height: 120px; }
    .pb-partpanel .pb-d-name { margin-top: 4px; font-size: 22px; }
    .pb-partpanel .pb-d-more { flex-direction: column; gap: 8px; margin-top: 10px; }
    .pb-partpanel .pb-d-more .pb-btn { flex: none; }
}
/* 1440 and up: the parts of the machine | the parts | the model | the selected part */
@media (min-width: 1440px) {
    html:root #fp { --pb-compw: 240px; --pb-listw: 300px; --pb-partw: 290px; }
    .pb-app {
        grid-template-columns: var(--pb-compw) var(--pb-listw) minmax(0, 1fr) var(--pb-partw);
        grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "find body stage part" "comps body stage part";
    }
    /* nothing open yet: no parts list (the owner, 2026-10-19: "the parts list panel should only display when a
       compoent is selected"); the model takes its room */
    .pb-shell[data-screen="home"] .pb-app {
        grid-template-columns: var(--pb-compw) minmax(0, 1fr) var(--pb-partw); grid-template-areas: "find stage part" "comps stage part";
    }
    .pb-shell[data-screen="home"] .pb-body { display: none; }
}
@media (min-width: 1600px) { html:root #fp { --pb-compw: 250px; --pb-listw: 320px; --pb-partw: 300px; } }
/* 1000 to 1439: one list column (the search over the parts of the machine, or a section's parts), the model, the
   selected part */
@media (min-width: 1000px) and (max-width: 1439px) {
    html:root #fp { --pb-compw: 280px; --pb-partw: 280px; }
    .pb-app {
        grid-template-columns: var(--pb-compw) minmax(0, 1fr) var(--pb-partw);
        grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "find stage part" "comps stage part";
    }
    .pb-shell:not([data-screen="home"]) .pb-app { grid-template-areas: "find stage part" "body stage part"; }
    .pb-shell:not([data-screen="home"]) .pb-comps, .pb-shell[data-screen="home"] .pb-body, .pb-shell[data-screen="home"] .pb-ptitle { display: none; }
}
/* phones: no panels (one screen per step) */
@media (max-width: 999px) {
    .pb-ptitle, .pb-partpanel, .pb-orderpanel { display: none; }
}

/* the parts list: every row its own box, apart from the next (every width) */
.pb-rows { display: flex; flex-direction: column; gap: 6px; }
#fp .pb-row { padding-left: 10px; padding-right: 10px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--card); }
#fp .pb-row:hover, #fp .pb-row.is-lit { background: var(--manila); border-color: var(--manila-d); }
/* the open part's row (the PC, beside its panel): tinted and ringed all round */
#fp .pb-row.is-open { background: var(--manila); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
#fp .pb-row.is-open .pb-ball { background: var(--yel); border-color: var(--yel-d); }
/* narrow columns keep their words on one line: the parts' rows get a smaller picture ("4 on this machine" stays one
   line), and from 1440 the parts of the machine get a set-size picture, the name the rest */
@media (min-width: 1000px) {
    #fp .pb-body .pb-row { grid-template-columns: 30px 46px minmax(0, 1fr) 12px; padding-left: 8px; padding-right: 8px; }
    #fp .pb-body .pb-row.is-ref { grid-template-columns: auto 46px minmax(0, 1fr) 12px; }
    .pb-body .pb-row-pic { width: 46px; height: 46px; }
}
@media (min-width: 1000px) and (max-width: 1439px) { html:root #fp { --pb-compw: 300px; } }
@media (min-width: 1440px) {
    .pb-comps .pb-sec-pic { width: 84px; }
    .pb-comps-head .pb-lh { font-size: 20px; }
}

/* ============================================================ ROUND 6 · YOUR ORDER UNDER THE SELECTED PART (the PC)
   The owner, 2026-10-19: "instead of a seperate page for checkout it can be underneath the selected part"; "'Request
   a quote' / 'Call 403-894-2324' can go on the bottom of the checkout". The right column: the selected part, then
   your order (the tally, a line a part, Checkout, the quote and the call). The order's lines scroll inside it; the
   cart button brings it to the eye. Phones keep the cart page. */
@media (min-width: 1000px) {
    .pb-orderpanel {
        grid-area: order; display: flex; flex-direction: column; min-width: 0; min-height: 0; max-height: calc(var(--pb-apph) * .55);
        padding: 12px 16px 16px; background: var(--paper); border-top: 1px solid var(--rule);
    }
    .pb-op-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; flex: none; margin-bottom: 8px; }
    .pb-op-h { font-size: 18px; line-height: 1.2; }
    .pb-op-h:focus { outline: none; }
    .pb-op-tally { font-size: 15px; font-weight: 700; color: var(--ink2); }
    .pb-op-lines { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
    .pb-op-btn {
        display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 52px;
        padding: 5px 10px 5px 5px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--card); color: var(--ink);
        font: inherit; text-align: left; cursor: pointer; transition: background-color .12s;
    }
    .pb-op-btn:hover { background: var(--manila); border-color: var(--manila-d); }
    .pb-op-pic { display: block; width: 40px; height: 40px; object-fit: contain; }
    .pb-op-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
    .pb-op-name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
    .pb-op-sec { font-size: 14px; color: var(--ink2); }
    .pb-op-n { font-size: 15px; font-weight: 800; white-space: nowrap; }
    .pb-op-none { flex: none; font-size: 15px; color: var(--ink2); }
    .pb-op-none b { color: var(--ink); }
    .pb-op-foot { display: flex; flex-direction: column; gap: 8px; flex: none; margin-top: 10px; }
    .pb-op-foot .pb-btn-line { min-height: 44px; padding: 6px 12px; font-size: 15px; }
    /* the selected part's quote and call are at the order's foot now */
    .pb-partpanel .pb-d-more { display: none; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    .pb-orderpanel.pb-flash { animation: pbRing .9s ease-out; }
    .pb-op-line.is-new .pb-op-btn { animation: pbFlash 1.4s ease-out; }
}
/* short PC screens: the selected part gives the order room (a smaller picture; its heading steps aside once a part
   shows) */
@media (min-width: 1000px) and (max-height: 899px) {
    .pb-partpanel { padding-top: 10px; }
    .pb-partpanel .pb-d-fig img { height: 96px; }
    .pb-partpanel .pb-d-fig.is-sec img { height: 80px; }
}

/* ============================================================ THE PAGE'S ONE BACK, BIG, ACROSS THE TOP
   The owner, 2026-10-19: "instead of 'Pick another machine' i want a back button too... but it should be before the
   sercial number"; 2026-11-18: "see how having 2 'Back' buttons can be confusing?" (one Back: each tap goes back one
   step, and from the parts of the machine to pick another machine); that afternoon: "i feel like that back button is
   tucked away in the corner and not intutive to the user" -- of two places shown as pictures he picked A, a big Back
   across the top.
   Phones: the sticky machine bar's own full-width row under the plate and the cart, so it stays on screen as you
   scroll; the cart page hides it (Keep shopping is that page's way back). The PC: findParts.js placeBits puts it at
   the top of the left panel, over the search (the old hiller view hides that panel, so there it stays in the bar). */
#fp .pb-bar-back { flex: none; }
/* small phones keep its arrow: the word is short now */
@media (max-width: 400px) { #fp .pb-bar-back .fa-solid { display: inline-block; } }
@media (max-width: 999px) {
    #fp .pb-bar { flex-wrap: wrap; }
    html:root #fp .pb-bar .pb-bar-back {
        order: 9; flex: 1 1 100%; min-height: 52px; padding: 4px 16px; justify-content: flex-start; font-size: 18px;
    }
    html:root #fp .pb-bar .pb-bar-back .fa-solid { display: inline-block; }
    #fp .pb-shell[data-screen="order"] .pb-bar .pb-bar-back { display: none; }
}
/* phones with the site's green disc: the disc keeps the plate row's right end; the Back's row runs on under it */
@media (max-width: 768px) { html:root #fp .pb-bar .pb-bar-back { margin-right: -72px; } }
@media (min-width: 1000px) {
    html:root #fp .pb-find .pb-bar-back {
        display: flex; width: 100%; min-height: 50px; margin: 0 0 12px; padding: 6px 16px; justify-content: flex-start;
        font-size: 18px;
    }
}
@media (min-width: 1000px) {
    /* the order is right below the part: no "See your order" link in the part's card */
    .pb-partpanel .pb-d-view { display: none; }
    /* one green action on the screen: while the part's "Add to order" shows, Checkout steps back to an outline */
    #fp.pb-adding .pb-op-co { background: var(--manila-l); color: var(--ink); border-color: var(--warm); box-shadow: var(--sh-btn); }
}

/* ============================================================ ROUND 6 · THE RIGHT COLUMN, ONE PANEL (the PC)
   The owner, 2026-10-19: "i just dont like how the right panel all looks and gels together".
   One flowing column (.pb-right, the grid's "part" area; it scrolls as one): "Selected part", then "Your order" right
   under it, no gap. Both sections share one header (the title, a small grey count on its line); "In your order" is a
   tick line over - n + and Remove; Request a quote and the call are quieter than Checkout; an empty section says so
   in one plain line. The mock bar's "Right panel" picks the look: Clean (default), Order slip, Drawing style. */
@media (min-width: 1000px) {
    .pb-right {
        grid-area: part; display: flex; flex-direction: column; min-width: 0; min-height: 0;
        overflow-y: auto; overscroll-behavior: contain; background: var(--paper);
    }
    .pb-shell[data-screen="order"] .pb-right { display: none; }
    #fp .pb-partpanel, #fp .pb-orderpanel {
        display: block; flex: none; min-height: 0; max-height: none; overflow: visible; margin: 0; padding: 14px 16px 16px;
        border: 0; border-radius: 0; background: none; box-shadow: none;
    }
    /* one header for both sections */
    #fp .pb-rp-head, #fp .pb-op-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 12px; }
    #fp .pb-pp-h, #fp .pb-op-h { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; }
    #fp .pb-op-tally { font-size: 15px; font-weight: 700; color: var(--ink2); }
    /* an empty section: one plain line */
    #fp .pb-pp-empty { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; border: 0; background: none; font-size: 16px; color: var(--ink2); }
    #fp .pb-pp-empty .fa-solid { margin-top: 3px; font-size: 18px; color: var(--ink2); }
    #fp .pb-op-none { margin: 0; font-size: 16px; }
    /* "In your order": the tick line, then - n + and Remove on one row */
    #fp .pb-partpanel .pb-d-order.is-in {
        grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "word word" "step links"; gap: 10px 16px; padding: 12px 14px;
    }
    #fp .pb-partpanel .pb-d-inword { grid-area: word; font-size: 16px; }
    #fp .pb-partpanel .pb-d-order.is-in .pb-step { grid-area: step; }
    #fp .pb-partpanel .pb-d-links { grid-area: links; justify-content: flex-end; }
    /* the order: a line a part; "Part / Qty" heads the lines in the ruled looks */
    #fp .pb-op-cols { display: none; }
    #fp .pb-op-lines { overflow: visible; max-height: none; }
    #fp .pb-op-foot { margin-top: 14px; }
    /* the quote and the call: green words with their icons, under Checkout (the clean and slip looks) */
    html:root #fp .pb-op-foot { gap: 2px; }
    html:root #fp .pb-op-foot .pb-btn-line {
        justify-content: flex-start; min-height: 40px; padding: 4px 2px; border: 0; background: none; box-shadow: none;
        color: var(--green-d); font-size: 16px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
    }
    html:root #fp .pb-op-foot .pb-btn-line:hover { color: var(--green-dd); }
}
@media (max-width: 999px) { .pb-right { display: none; } }

/* ---- Clean: white; a hairline under each header; the order's lines split by hairlines (no boxes) */
@media (min-width: 1000px) {
    html:root #fp .pb-rp-head, html:root #fp .pb-op-head { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
    html:root #fp .pb-orderpanel { padding-top: 22px; }
    html:root #fp .pb-op-lines { gap: 0; }
    html:root #fp .pb-op-line + .pb-op-line { border-top: 1px solid var(--rule2); }
    html:root #fp .pb-op-btn { min-height: 56px; padding: 8px 4px; border: 0; border-radius: 0; background: none; }
    html:root #fp .pb-op-btn:hover { background: var(--manila); }
}
@media (min-width: 1000px) {
    /* a part shows: the hint steps aside; the order is right below, so no "See your order" link in the part */
    #fp .pb-shell.has-detail .pb-pp-empty, #fp .pb-partpanel .pb-d-view { display: none; }
}
@media (min-width: 1000px) {
    /* Checkout in sight: it rides at the column's foot while a long order scrolls behind it (a paper halo keeps the
       lines from showing through), then settles over the quote and the call */
    #fp .pb-op-co { position: sticky; bottom: 10px; z-index: 2; width: 100%; margin-top: 14px; box-shadow: var(--sh-go), 0 0 0 8px var(--card); }
    #fp.pb-adding .pb-op-co { box-shadow: var(--sh-btn), 0 0 0 8px var(--card); }
    #fp .pb-op-foot { margin-top: 10px; }
}

/* ============================================================ ROUND 6 · THE PARTS LIST ONLY ONCE A COMPONENT IS OPEN
   The search sits over the parts of the machine (the left column's top), always there; the parts list's column opens
   with a component (or a search's matches), its title row held at the column's top. */
@media (min-width: 1000px) {
    #fp .pb-find { padding: 12px 12px 10px; }
    #fp .pb-ptitle {
        position: sticky; top: 0; z-index: 3; margin: 0 -16px 4px; padding: 12px 16px 10px;
        background: var(--paper); border-bottom: 1px solid var(--rule);
    }
}

/* ======================================================================== COMMON_CSS + LAYOUT 1-bookpanel.css */
/* ROUND 8, every layout (the PC): the cart, while your order is open, is tinted and ringed, never a black button */
@media (min-width: 1000px) {
    #fp .pb-cat .pb-cart[aria-pressed="true"] { background: var(--manila); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
}
/* ============================================================ ROUND 9 · 1 · BOOK AND PANEL (the PC; phones are round 6's)
   The owner's two round 8 picks on one page (2026-10-20).
   - Map and panel's arrangement: "1 single panel that does everything" on the left, one level at a time (the
     contents, a section's parts, the part), the search at its top (the way back: the big Back over the search); the model
     takes all the rest; "the checkout is a hidden panel on the right": Your order slides in over the model's right
     edge when the cart (or "See your order") is tapped; Keep shopping, the cart again or Escape slides it away.
   - Parts book's section tabs, "always on the top" (Contents, then 1 to 15; the open one yellow), in step with the
     panel.
   - Parts book's look on every piece ("the overall sqaured/boxy with cream/off white look great"): warm cream paper,
     warm black ink, a warm desk; squared corners and ruled ink lines; no rounded cards, no soft shadows. */
@media (min-width: 1000px) {
    /* ---- the book: warm cream paper on a warm desk, no drawing-sheet frame (Parts book's tokens) */
    html:root #fp { --sheet-pad: 16px; --pb-apph: max(540px, calc(100vh - var(--pb-barh, 72px) - 56px - 2 * var(--sheet-pad))); }
    html:root #fp:has(.pb-shell[data-view="cat"]) { --peg: #d5ccba; }
    html:root .pb-cat:not(.pb-away)::before, html:root .pb-cat:not(.pb-away)::after { display: none; }
    #fp { --ghost3d: #b3a68c; }
    #fp .pb-cat {
        --paper: #fbf7ee; --paper-2: #f3ecdc; --card: #fffdf8; --card-2: #efe7d4; --drawing: #fffdf8;
        --grid: rgba(60, 45, 20, .07);
        --ink: #1d1a14; --ink2: #5b5244; --ink3: #5b5244;
        --rule: #d8cdb8; --rule2: #e7dfcd; --warm: #1d1a14; --ballr: #1d1a14; --field-rule: #7b705c; --dash: #b4a78d; --dash-ink: #7b705c;
        --frame: #1d1a14; --frame-2: #1d1a14;
        --manila: #f2e9d4; --manila-l: #fffdf8; --manila-d: #a99778; --manila-h: #ebdfc3;
        --tape: #1d1a14; --tape-ink: #fffdf8; --note: #fffdf8; --note-d: #1d1a14;
        --pill: #fffdf8; --pill-ring: #1d1a14; --ball: #fffdf8; --ball-ring: #1d1a14; --lead: #1d1a14; --tag-ring: #fffdf8;
        --in-bg: #e3eedb; --in-box: #ecf3e5; --in-rule: #9cbf91; --in-ink: #23401b;
        --sh-paper: 0 1px 2px rgba(60, 45, 20, .14);
        --sh-sheet: 0 1px 2px rgba(60, 45, 20, .2), 0 16px 32px -16px rgba(60, 45, 20, .55);
        --sh-well: inset 0 1px 2px rgba(60, 45, 20, .08);
        --r-sheet: 2px; --r-page: 2px; --r-card: 2px; --r-btn: 3px; --r-big: 3px; --r-pic: 2px; --r-field: 2px; --r-pill: 3px; --r-well: 2px; --r-seg: 2px;
        --grid-img: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
        --fig-img: var(--grid-img);
        --well-img: linear-gradient(var(--grid) 1px, transparent 1px) -1px -1px / 12px 12px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) -1px -1px / 12px 12px, var(--card);
        --sh-frame: 0 0 0 2px var(--frame), 0 0 0 6px var(--paper), 0 0 0 7px var(--frame-2);
        --sh-pill: 0 0 0 1px var(--pill-ring); --sh-lift: 0 0 0 1px var(--manila-d); --sh-load: 0 0 0 1px var(--frame);
        --ring-was: 0 0 0 3px var(--yel), 0 0 0 4.5px var(--ink); --sh-was: 0 0 0 1.5px var(--ink); --sh-ref: 0 0 0 1.5px var(--ballr);
        --sh-cur: 0 0 0 1px var(--ink); --sh-step: 0 0 0 6px var(--paper); --sh-tag: 0 0 0 2px var(--tag-ring);
        --ruler-img: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 11.5px);
        /* ---- round 9: the panel's width (the model takes the rest) and the page rule */
        --r9-panelw: 320px; --r9-rule: 1.5px solid var(--ink);
    }
    html:root #fp .pb-bar { padding: 2px 4px 10px; }

    /* ---- the app: the tabs along the top; under them one ink-ruled box, the panel's page | the model's page */
    #fp .pb-cat .pb-app {
        position: relative; grid-template-columns: var(--r9-panelw) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
        grid-template-areas: "tabs tabs" "find stage" "list stage"; gap: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    }

    /* ---- the section tabs along the top edge (Parts book's): paper tabs, the open one yellow. Contents and up to 18
       sections (2025 and 2026; 2023 has 17, the 1st Gen 15) */
    #fp .r8-tabs {
        grid-area: tabs; display: flex; align-items: stretch; gap: 2px; margin: 0 2px; padding: 12px 8px 0;
        overflow-x: auto; overflow-y: hidden; scrollbar-width: thin;
    }
    #fp .r8-tab {
        position: relative; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0;
        min-width: 70px; max-width: 128px; min-height: 52px; padding: 5px 8px 6px; border: 1.5px solid var(--ink); border-bottom: 0;
        border-radius: 9px 9px 0 0; background: var(--card-2); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800;
        line-height: 1.15; text-align: center; cursor: pointer; transition: background-color .15s;
    }
    #fp .r8-tab b { font-size: 16px; }
    #fp .r8-tab b:empty { display: none; }
    /* a name that takes two lines breaks only between its words, never inside one ("Side boom 1" keeps "boom 1"
       together: findParts.js puts a no-break space before the number) */
    #fp .r8-tab span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
    #fp .r8-tab:hover { background: var(--manila); }
    /* the closed tabs stand level, each as tall as the tallest (the owner, 2026-10-20: tabs whose names ran onto a
       second line "stick out more and i dont like that"); the open one, yellow, stands 8px above the row */
    #fp .r8-tab.is-cur { margin-top: -8px; background: var(--yel); }
    #fp .r8-tab:focus-visible { z-index: 2; }
    /* under 1280 there is no room for 19 names in one row (a scrolling strip cuts the last tab's words): the closed tabs
       show their section's number (as on the drawing and in the contents), 36px wide and 2px apart, so 19 fit at 1000
       with the longest name open; Contents and the open tab keep their words (the open one on two lines when it needs
       them), and every tab names its section when pointed at (its title) */
    #fp .r8-tab:not(.is-cur):not([data-tab="home"]) span { display: none; }
    #fp .r8-tab:not(.is-cur):not([data-tab="home"]) { min-width: 36px; padding-left: 6px; padding-right: 6px; }

    /* ---- the panel: one cream page, ruled in ink (the search at its top, then one level at a time) */
    #fp .pb-find {
        grid-area: find; min-width: 0; padding: 14px 14px 12px; background: var(--paper);
        border: var(--r9-rule); border-width: 1.5px 0 0 1.5px; border-radius: var(--r-page) 0 0 0;
    }
    #fp .pb-comps, #fp .pb-body {
        grid-area: list; background: var(--paper); border: var(--r9-rule); border-width: 0 0 1.5px 1.5px; border-radius: 0 0 0 var(--r-page);
    }
    /* one level at a time (Map and panel's): the contents; then the open section's parts; then the part */
    #fp .pb-shell[data-screen="home"] .pb-body, #fp .pb-shell:not([data-screen="home"]) .pb-comps { display: none; }
    #fp .pb-shell:not([data-screen="home"]) .pb-body { display: block; }
    #fp .pb-shell.has-detail .pb-list { display: none; }

    /* ---- level 1, the contents: number, name, a dotted leader to how many parts, a small CAD picture at the end */
    #fp .pb-comps { padding: 0 14px 14px; }
    #fp .pb-comps-head { margin: 0 -14px 4px; padding: 12px 14px 10px; background: var(--paper); border-bottom: 2px solid var(--ink); }
    #fp .pb-comps-head .pb-lh { font-size: 22px; }
    #fp .pb-comps .pb-secs { gap: 0; }
    #fp .pb-comps .pb-sec {
        gap: 10px; min-height: 0; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none;
    }
    #fp .pb-comps .pb-sec:hover, #fp .pb-comps .pb-sec.is-lit { background: var(--manila); box-shadow: none; }
    #fp .pb-comps .pb-sec-pic { order: 2; width: 64px; max-width: none; height: 44px; aspect-ratio: auto; }
    #fp .pb-comps .pb-sec-txt { gap: 10px; }
    #fp .pb-comps .pb-sec-txt .pb-ball { position: static; width: 30px; height: 30px; font-size: 15px; }
    #fp .pb-comps .pb-sec-name { flex: 1; flex-direction: row; align-items: flex-end; }
    #fp .pb-comps .pb-sec-name b { flex: 0 1 auto; font-size: 17px; overflow-wrap: normal; }
    #fp .pb-comps .pb-sec-n { display: flex; flex: 1 1 auto; align-items: flex-end; justify-content: flex-end; white-space: nowrap; font-size: 15px; }
    #fp .pb-comps .pb-sec-n::before { content: ''; flex: 1 1 14px; min-width: 14px; margin: 0 8px 5px; border-bottom: 2px dotted var(--ink2); }

    /* ---- level 2, a section's parts: a printed index; a dotted leader from each name to how many are on the machine */
    #fp .pb-body { padding: 0 14px 14px; }
    #fp .pb-ptitle { margin: 0 -14px 4px; padding: 12px 14px 10px; background: var(--paper); border-bottom: 2px solid var(--ink); }
    #fp .pb-ptitle-t .pb-lh { font-size: 20px; }
    #fp .pb-rows { gap: 0; }
    #fp .pb-row { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
    #fp .pb-row:hover, #fp .pb-row.is-lit { background: var(--manila); }
    /* the open part's row, and the one you come Back to: tinted and ringed all round (never a stripe) */
    #fp .pb-row.is-open, #fp .pb-body .pb-row.is-came { background: var(--manila); border-color: var(--rule); box-shadow: inset 0 0 0 1.5px var(--ink); }
    #fp .pb-body .pb-row { grid-template-columns: 30px 44px minmax(0, 1fr); gap: 10px; min-height: 58px; padding: 6px 4px; }
    #fp .pb-body .pb-row.is-ref { grid-template-columns: auto 44px minmax(0, 1fr); }
    #fp .pb-body .pb-row-pic { width: 44px; height: 44px; }
    #fp .pb-body .pb-row-go { display: none; }
    #fp .pb-body .pb-row-main { flex-direction: row; flex-wrap: wrap; align-items: flex-end; column-gap: 0; }
    #fp .pb-body .pb-row-name { order: 1; flex: 0 1 auto; max-width: 100%; font-size: 17px; }
    #fp .pb-body .pb-row-meta { order: 2; display: flex; flex: 1 1 auto; align-items: flex-end; justify-content: flex-end; min-width: 0; text-align: right; }
    #fp .pb-body .pb-row:not(.is-ref) .pb-row-meta { white-space: nowrap; }
    #fp .pb-body .pb-row:not(.is-ref) .pb-row-meta::before { content: ''; flex: 1 1 14px; min-width: 14px; margin: 0 8px 5px; border-bottom: 2px dotted var(--ink2); }
    #fp .pb-body .pb-row.is-ref .pb-row-meta { justify-content: flex-start; text-align: left; }
    #fp .pb-body .pb-row-meta:empty { display: none; }
    #fp .pb-body .pb-row-main::after { content: ''; order: 3; flex: 0 0 100%; height: 0; }
    #fp .pb-body .pb-row-ask, #fp .pb-body .pb-row-note { order: 4; flex: 0 0 100%; }
    #fp .pb-body .pb-row-in { order: 5; }
    #fp .pb-ig-h { background: var(--paper-2); border-color: var(--rule); }

    /* ---- level 3, the part, in the panel: its big picture in a ruled box, then its name, Add to order, the quote, the call */
    #fp .pb-body .pb-detail { padding-top: 10px; }
    #fp .pb-body .pb-d-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 4px; }
    #fp .pb-body .pb-d-fig, #fp .pb-body .pb-d-fig.is-photo { padding: 6px; border: 1px solid var(--ink); border-radius: var(--r-pic); }
    #fp .pb-body .pb-d-fig img { height: 180px; }
    #fp .pb-body .pb-d-fig.is-sec { flex-direction: row; }
    #fp .pb-body .pb-d-fig.is-sec img { width: 120px; height: 86px; }
    #fp .pb-body .pb-d-name { font-size: 22px; }
    #fp .pb-body .pb-d-more { flex-direction: column; gap: 8px; }
    #fp .pb-body .pb-d-more .pb-btn { flex: none; }

    /* ---- the model's page: cream, ruled in ink; the big printed section number in a double-ruled box */
    #fp .pb-platepage {
        grid-area: stage; padding: 14px 18px 10px; background: var(--paper); border: var(--r9-rule); border-radius: 0 var(--r-page) var(--r-page) 0;
    }
    #fp .pb-plate-head .pb-ball {
        width: auto; min-width: 54px; height: 54px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 0; background: var(--card);
        font-size: 32px; box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4.5px var(--ink); transform: none;
    }
    #fp .pb-plate-name { gap: 14px; }
    #fp .pb-plate-title { font-size: 28px; }
    /* a pressed toggle on the drawing (Exploded view, Zoom in on it) is tinted and ringed like the open cart, never black */
    #fp .pb-explode[aria-pressed="true"], #fp .pb-zoom[aria-pressed="true"] {
        background: var(--manila); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink);
    }

    /* ---- your order: a ruled cream order-form page that slides in over the model's right edge (the cart opens it).
       Placed in the model's grid area, so it starts under the tabs and covers the model's page only; its left edge
       double-ruled, like a page laid on top */
    #fp .pb-cat .pb-right {
        position: absolute; grid-area: stage; top: 0; right: 0; bottom: 0; left: auto; z-index: 8; width: min(420px, 62%);
        background: var(--paper); border: var(--r9-rule); border-radius: 0 var(--r-page) var(--r-page) 0;
        box-shadow: -4px 0 0 0 var(--paper), -5.5px 0 0 0 var(--ink);
        transform: translateX(calc(100% + 8px)); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s;
        /* port: a closed drawer is out of the layout (display:none once it has slid away), so it never widens the
           page's own box off to the right; it still slides in and out (allow-discrete + @starting-style below) */
        display: none; transition: transform .28s ease, visibility 0s linear .28s, display 0s linear .28s; transition-behavior: allow-discrete;
    }
    #fp .pb-shell.r8-drawer .pb-right { display: flex; transform: none; visibility: visible; transition: transform .28s ease; }
    @starting-style { #fp .pb-shell.r8-drawer .pb-right { transform: translateX(calc(100% + 8px)); } }
    #fp .pb-cat .pb-partpanel { display: none !important; }
    #fp .r8-keep { flex: none; align-self: flex-start; margin: 14px 18px 0; }
    html:root #fp .pb-orderpanel { padding: 12px 18px 18px; }
    /* the order form: the heading ruled off, Part / Qty over ruled lines, Checkout in sight, then the quote and the call */
    html:root #fp .pb-op-head { padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
    #fp .pb-op-h { font-size: 24px; }
    #fp .pb-op-cols { display: flex; justify-content: space-between; padding: 4px 2px 6px; border-bottom: 1.5px solid var(--ink); font-size: 14px; font-weight: 800; color: var(--ink2); }
    #fp .pb-op-lines { gap: 0; }
    html:root #fp .pb-op-line, html:root #fp .pb-op-line + .pb-op-line { border-top: 0; border-bottom: 1px solid var(--rule); }
    html:root #fp .pb-op-btn { min-height: 58px; padding: 6px 2px; border: 0; border-radius: 0; background: none; }
    html:root #fp .pb-op-btn:hover { background: var(--manila); }
    #fp .pb-op-x { display: none; }
    #fp .pb-op-n { min-width: 28px; font-size: 17px; text-align: right; }
    /* Checkout stays in sight while a long order scrolls; its paper halo reaches the drawer's foot, so no sliver of a
       line shows under it */
    #fp .pb-op-co { bottom: 8px; box-shadow: var(--sh-go), 0 0 0 8px var(--paper); }
    /* one green action: while a part's Add to order shows in the panel, Checkout steps back to an outline */
    #fp.pb-adding .pb-op-co { box-shadow: var(--sh-btn), 0 0 0 8px var(--paper); }
    /* under Checkout, Request a quote and the call are the same buttons as the part's in the panel, not green
       underlined words (the owner, 2026-10-20: "why cant it be button like on the left panel") */
    html:root #fp .pb-op-foot { gap: 8px; margin-top: 14px; }
    html:root #fp .pb-op-foot .pb-btn-line {
        justify-content: center; min-height: 48px; padding: 8px 18px; border: 1px solid var(--warm); border-radius: var(--r-btn);
        background: var(--manila-l); color: var(--ink); box-shadow: var(--sh-btn); font-size: 16px; text-decoration: none;
    }
    html:root #fp .pb-op-foot .pb-btn-line:hover { background: var(--manila); border-color: var(--ink); color: var(--ink); }
    /* the headings the page moves the focus to (the order's, the part's name) are not buttons: no focus ring on them */
    #fp .pb-op-h:focus-visible, #fp .pb-d-name:focus-visible { outline: none; box-shadow: none; }
}
/* the panel grows with the window; the model keeps the rest */
@media (min-width: 1000px) and (max-width: 1279px) { #fp .pb-cat { --r9-panelw: 340px; } }
@media (min-width: 1280px) {
    #fp .pb-cat { --r9-panelw: 360px; }
    #fp .pb-body .pb-d-fig img { height: 200px; }
    /* 1280 and up every tab is named ("Names on two lines", the owner 2026-10-21): Contents and 18 sections cannot
       keep their names on one line at any width (the book stops at 1600px), so each tab is at least as wide as its
       longest word and the tabs share the rest of the row; a name breaks between its words onto at most two lines.
       Every tab is as tall as the tallest: the numbers stand in one row along the top, the names along the bottom */
    #fp .r8-tabs { gap: 1px; padding-left: 2px; padding-right: 2px; }
    #fp .r8-tab, #fp .r8-tab:not(.is-cur):not([data-tab="home"]) { flex: 1 1 auto; min-width: min-content; max-width: none; padding-left: 3px; padding-right: 3px; }
    #fp .r8-tab:not(.is-cur):not([data-tab="home"]) span { display: inline; }
    #fp .r8-tab:not([data-tab="home"]) { justify-content: space-between; }
    /* the open tab stands 8px higher: its number 8px lower inside it keeps the numbers in one row */
    #fp .r8-tab.is-cur:not([data-tab="home"]) { padding-top: 13px; }
}
@media (min-width: 1600px) {
    #fp .pb-cat { --r9-panelw: 400px; }
    #fp .pb-comps .pb-sec { gap: 12px; }
    #fp .pb-comps .pb-sec-pic { width: 78px; height: 52px; }
    #fp .pb-comps .pb-sec-txt .pb-ball { width: 32px; height: 32px; }
    #fp .pb-comps .pb-sec-name b { font-size: 18px; }
    #fp .pb-body .pb-row { grid-template-columns: 30px 48px minmax(0, 1fr); gap: 12px; }
    #fp .pb-body .pb-row.is-ref { grid-template-columns: auto 48px minmax(0, 1fr); }
    #fp .pb-body .pb-row-pic { width: 48px; height: 48px; }
    #fp .pb-body .pb-d-fig img { height: 220px; }
}
/* phones: no tabs, no drawer (round 6's screens and cart page) */
@media (max-width: 999px) { #fp .r8-tabs, #fp .r8-keep { display: none; } }

/* ======================================================================== PORT ADDITIONS (not in the mockup) */
/* a hiller (the owner, 2026-10-20: "keep today's 3D viewer"): its view (#pbHiller, findPartsHiller.js) stands under
   the machine bar in place of the parts book; no tabs, no cart, no order for a hiller */
#fp .pb-shell[data-machine="hiller"] .pb-cartw { display: none; }
/* the parts book steps aside, never display:none: its 3D frame may still be loading a digger, and a hidden frame
   stops drawing (findPartsKit.js: never display:none it, never move it while it loads) */
#fp .pb-shell[data-machine="hiller"] .pb-app { position: absolute; left: -200vw; top: 0; width: 100%; visibility: hidden; pointer-events: none; }
/* checkout's third step holds Google's own "I'm not a robot" box (reCAPTCHA v2, findPartsKit.js C.robotBox()): no
   box of ours round it; a red ring when it was not ticked */
#fp .pb-robot.is-g { display: inline-block; min-height: 78px; padding: 0; border: 0; border-radius: 3px; background: none; cursor: default; }
#fp .pb-robot.is-g.is-bad { box-shadow: 0 0 0 2px var(--red); }

/* ======== END OF THE PORT. port_findparts.py writes everything above this line; anything below it is kept as it is when the port runs again ======== */
/* ======================================================================== THE HILLER VIEW (hand-written, kept by the port)
   Today's hiller drill-down (findPartsHiller.js + partsCatalog.js + drillDownMixin.js; the markup is in #pbHiller in
   FindParts.cshtml), re-coloured from today's dark --cat-* look to the page's own tokens. #pbHiller sits inside
   #fp .pb-cat, so the PC (1000+) gets the parts book's cream tokens (#fp .pb-cat) and phones round 6's (#fp) by
   themselves. Every rule is under #pbHiller. Buttons are the page's outline buttons (.pb-btn.pb-btn-line in the
   markup: 48px, a 1px ink line, the cream fill, 16px bold); lines are ruled, not shadows; corners are the page's
   2-3px; Atkinson at 14px and up; no style capitals, no stripes, no "...".
   PC: the 3D (the trail of where you are, the drawing, its tools) | the parts list (search, numbered rows), one
   ink-ruled box as tall as the parts book's. Phones: the trail, the 3D (it stays under the machine bar while the list
   scrolls, on a screen tall enough), its tools, then the parts list. */
#pbHiller {
    /* partsCatalog.js's inline styles name this one (the sub-assembly folder, the footer note's link) */
    --cat-accent: var(--green-d);
    color: var(--ink);
}
/* the model list on its way */
#pbHiller .fph-wait {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; margin: 0; padding: 24px 16px;
    background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-page);
    font-size: 18px; font-weight: 800; color: var(--ink2); text-align: center;
}
/* no model: the engine's no-model card (.pb-whiller), straight under the bar */
#pbHiller .fph-note .pb-whiller { margin-top: 0; }
#pbHiller .fph-note .pb-whiller.fph-nofig { grid-template-columns: minmax(0, 1fr); }

/* ---- the 3D column */
#pbHiller .fph-main { min-width: 0; }
#pbHiller .cat-drill-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; }
#pbHiller .drill-breadcrumb-trail { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 2px 4px; min-width: 0; }
#pbHiller .drill-breadcrumb-item {
    display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; border: 0; border-radius: var(--r-btn);
    background: none; color: var(--green-d); font: inherit; font-size: 16px; font-weight: 800; line-height: 1.25; text-align: left;
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; overflow-wrap: anywhere; cursor: pointer;
}
#pbHiller .drill-breadcrumb-item:hover:not(.drill-breadcrumb-active) { background: var(--manila); color: var(--green-dd); }
#pbHiller .drill-breadcrumb-active { color: var(--ink); text-decoration: none; cursor: default; }
#pbHiller .drill-breadcrumb-sep { display: inline-flex; align-items: center; font-size: 14px; color: var(--ink2); }
#pbHiller .fph-stage {
    position: relative; isolation: isolate; min-width: 0; min-height: 0;
    background: var(--drawing); box-shadow: 0 0 0 1px var(--frame); border-radius: var(--r-drawing);
}
#pbHiller .cat-canvas-wrapper { position: absolute; inset: 0; overflow: visible; }
#pbHiller .cat-canvas-wrapper canvas { display: block; width: 100%; height: 100%; touch-action: none; }
/* the leader lines and their dots in ink (the pointed-at one keeps partsCatalog.js's green) */
#pbHiller svg.leader-lines path[stroke="#aaa"] { stroke: var(--ink2); }
#pbHiller svg.leader-lines circle[fill="#ccc"] { fill: var(--ink); }
/* the numbered callouts: the parts book's balloons; yellow when pointed at or picked */
#pbHiller .catalog-callout {
    position: absolute; z-index: 100; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 50%; background: var(--ball); border: 1.5px solid var(--ballr); color: var(--ink);
    font-size: 15px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
    cursor: pointer; user-select: none; transform: translate(-50%, -50%); transition: transform .15s ease, background-color .15s ease;
}
/* a finger-sized target round the 30px balloon */
#pbHiller .catalog-callout::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
#pbHiller .catalog-callout:hover, #pbHiller .catalog-callout.hovered { background: var(--yel); border-color: var(--ink); transform: translate(-50%, -50%) scale(1.15); }
#pbHiller .catalog-callout.active { z-index: 200; background: var(--yel); border: 2px solid var(--ink); transform: translate(-50%, -50%) scale(1.24); }
/* the callout's name on hover: a black tag that wraps (never cut) */
#pbHiller .cat-callout-tip {
    position: absolute; z-index: 110; display: none; width: max-content; max-width: 260px; padding: 6px 10px;
    background: var(--tape); color: var(--tape-ink); border-radius: var(--r-tape);
    font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; white-space: normal; overflow-wrap: anywhere; pointer-events: none;
}
#pbHiller .cat-callout-tip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--tape);
}
/* the model on its way: the parts book's loader card over the drawing (the overlay's first span is partsCatalog.js's
   words, kept hidden in the markup) */
#pbHiller .cat-loading {
    position: absolute; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 16px;
    background: var(--drawing);
}
#pbHiller .fph-load-art {
    position: absolute; left: 7%; top: 8%; width: 86%; height: 84%; object-fit: contain; opacity: .2; filter: grayscale(1) contrast(1.3);
}
/* the part you picked: a ruled card on the drawing, its piece turning in a well */
#pbHiller .cat-detail-card {
    position: absolute; right: 10px; bottom: 10px; z-index: 300; display: none; width: min(300px, calc(100% - 20px)); padding: 10px;
    background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-card);
}
#pbHiller .cat-detail-card.visible { display: block; }
#pbHiller .cat-detail-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 44px; height: 44px; min-height: 44px; padding: 0; }
#pbHiller .cat-detail-holo {
    position: relative; height: 150px; overflow: hidden;
    background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--r-pic);
}
#pbHiller .cat-detail-holo canvas { display: block; width: 100%; height: 100%; }
#pbHiller .cat-detail-footer { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-top: 8px; }
#pbHiller .cat-detail-title { font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
#pbHiller .cat-detail-info { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; color: var(--ink2); }
#pbHiller .cat-detail-info:empty { display: none; }
#pbHiller .cat-detail-info strong { color: var(--ink); }
/* the drawing's tools: the page's outline buttons in a row that wraps */
#pbHiller .fph-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#pbHiller .fph-tools .pb-btn { padding-left: 14px; padding-right: 14px; }
#pbHiller .fph-tools .fph-sq { width: 48px; padding: 0; }
#pbHiller .fph-angle { min-width: 196px; justify-content: flex-start; }
#pbHiller .fph-tools [data-action][aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }
#pbHiller .fph-hint { flex: 1 1 180px; min-width: 0; margin-left: 4px; }

/* ---- the parts column */
#pbHiller .fph-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); }
#pbHiller .cat-parts-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px; }
#pbHiller .fph-h { font-size: 20px; font-weight: 800; line-height: 1.2; }
#pbHiller .cat-parts-count {
    display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding: 0 8px;
    border: 1.5px solid var(--ink); border-radius: var(--r-pill); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
#pbHiller .cat-search-box { padding: 0 14px 12px; border-bottom: 1px solid var(--rule); }
#pbHiller .cat-parts-list { min-width: 0; }
#pbHiller .cat-empty-msg { margin: 0; padding: 32px 16px; text-align: center; font-size: 16px; line-height: 1.4; color: var(--ink2); }
#pbHiller .cat-empty-msg i { display: block; margin-bottom: 8px; font-size: 26px; opacity: .5; }
#pbHiller .cat-parts-table { width: 100%; border-collapse: collapse; font-size: 16px; }
#pbHiller .cat-parts-table thead th {
    padding: 8px 10px; background: var(--paper); box-shadow: inset 0 -1.5px 0 var(--ink);
    text-align: left; font-size: 14px; font-weight: 800; color: var(--ink2);
}
#pbHiller .cat-parts-table thead th:first-child { width: 52px; text-align: center; }
#pbHiller .cat-parts-table thead th:last-child { width: 64px; text-align: center; }
#pbHiller .cat-parts-table tbody tr { border-bottom: 1px solid var(--rule2); cursor: pointer; transition: background-color .15s; }
#pbHiller .cat-parts-table tbody tr:hover, #pbHiller .cat-parts-table tbody tr.hovered { background: var(--manila); }
#pbHiller .cat-parts-table tbody tr.active { background: var(--manila); box-shadow: inset 3px 0 0 var(--ink); }
#pbHiller .cat-parts-table tbody tr.filter-hidden { display: none; }
#pbHiller .cat-parts-table td { padding: 9px 10px; vertical-align: middle; }
#pbHiller .cat-num-cell { width: 52px; text-align: center; }
#pbHiller .cat-num-badge {
    display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--ball); border: 1.5px solid var(--ballr); color: var(--ink);
    font-size: 15px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color .15s ease;
}
#pbHiller .cat-parts-table tbody tr:hover .cat-num-badge, #pbHiller .cat-parts-table tbody tr.hovered .cat-num-badge,
#pbHiller .cat-parts-table tbody tr.active .cat-num-badge { background: var(--yel); border-color: var(--yel-d); }
#pbHiller .cat-desc-cell { color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
#pbHiller .cat-parts-table tbody tr.active .cat-desc-cell { font-weight: 800; }
#pbHiller .cat-qty-cell { width: 64px; text-align: center; }
#pbHiller .cat-multiplier {
    display: inline-block; padding: 1px 6px; border: 1px solid var(--ink); border-radius: var(--r-pill);
    font-size: 14px; font-weight: 800; white-space: nowrap;
}
/* a sub-assembly's way in (its chevron): a finger-sized target */
#pbHiller .cat-drill-icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px -6px -10px 2px; vertical-align: middle;
    border-radius: var(--r-btn); color: var(--green-d); font-size: 16px; cursor: pointer;
}
#pbHiller .cat-drill-icon:hover { background: var(--manila-h); }
#pbHiller .cat-parts-footer-note { padding: 12px 14px 14px; border-top: 1px solid var(--rule2); text-align: center; font-size: 14px; line-height: 1.4; color: var(--ink2); }

/* ---- PC (1000+): the 3D | the parts, one ink-ruled box as tall as the parts book's */
@media (min-width: 1000px) {
    #pbHiller { margin-top: 2px; }
    #pbHiller .fph {
        display: grid; grid-template-columns: minmax(0, 1fr) var(--r9-panelw, 360px); grid-template-rows: minmax(0, 1fr);
        height: var(--pb-apph, 640px); background: var(--paper);
        border: var(--r9-rule, 1.5px solid var(--ink)); border-radius: var(--r-page);
    }
    #pbHiller .fph-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 12px 14px 14px; }
    #pbHiller .cat-drill-breadcrumbs, #pbHiller .fph-tools { flex: none; }
    #pbHiller .fph-stage { flex: 1 1 auto; }
    #pbHiller .fph-panel { border-left: var(--r9-rule, 1.5px solid var(--ink)); }
    #pbHiller .cat-parts-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    #pbHiller .cat-parts-table thead th { position: sticky; top: 0; z-index: 2; }
}

/* ---- phones (under 1000): the trail, the 3D, its tools, then the parts list, one under the other */
@media (max-width: 999px) {
    #pbHiller {
        margin-top: 12px;
        /* the 3D's height; where it stops under the sticky machine bar (the site's 22px hose rail above it here) */
        --fph-stageh: clamp(240px, 44vh, 440px);
        --fph-top: calc(22px + var(--pb-barh, 64px));
    }
    #pbHiller .fph { display: flex; flex-direction: column; gap: 10px; }
    /* the 3D column's pieces become the page's own rows, so the 3D can stay on screen over the whole list */
    #pbHiller .fph-main { display: contents; }
    #pbHiller .fph-stage { flex: none; height: var(--fph-stageh); overflow: hidden; }
    #pbHiller .fph-panel { border: 1px solid var(--rule); border-radius: var(--r-page); }
    /* the part you picked: one strip along the drawing's foot (its piece on the left, its name beside it) */
    #pbHiller .cat-detail-card { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 8px 56px 8px 8px; }
    #pbHiller .cat-detail-card.visible { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; }
    #pbHiller .cat-detail-holo { height: 96px; }
    #pbHiller .cat-detail-footer { margin-top: 0; }
    #pbHiller .cat-detail-close { top: 50%; right: 6px; margin-top: -22px; }
}
@media (max-width: 768px) {
    #pbHiller { --fph-top: var(--pb-barh, 64px); }
}
/* a screen tall enough: the 3D stays under the machine bar while the list scrolls, and a row the model points at
   scrolls into view under it, not behind it */
@media (max-width: 999px) and (min-height: 600px) {
    #pbHiller .fph-stage { position: sticky; top: var(--fph-top); z-index: 5; }
    #pbHiller .cat-parts-table tbody tr { scroll-margin-top: calc(var(--fph-top) + var(--fph-stageh) + 8px); }
}

/* ============================================================ THE PARTS BOOK (2026-10-22)
   "View drawings" (a section or a part open) and "Download parts book" (the Contents, and right next to View drawings:
   the owner, 2026-11-17) in the plate head, in Exploded view's look. The two are one pair that wraps as a whole, so
   Download never lands on another row than View drawings: on the PC after Exploded view, before the way back; on
   phones at the right, and on a phone too narrow for both, Download under View drawings, still at the right. */
.pb-book-pair { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: inherit; max-width: 100%; }
@media (min-width: 1000px) { .pb-book-pair { order: 1; } }
#fp .pb-plate-head .pb-book { margin-left: 0; }
#fp .pb-plate-head .pb-book[aria-busy="true"] { cursor: progress; background: var(--manila); }
/* phones: the name keeps the left, the buttons gather at the right -- on the name's row, and under it when they wrap
   (the PC already lays the head out this way) */
@media (max-width: 999px) {
    .pb-plate-head { justify-content: flex-end; }
    .pb-plate-name { margin-right: auto; }
    #fp .pb-plate-head .pb-explode { margin-left: 0; }
}

/* ============================================================ A MOTOR'S PART NUMBER, ON ONE LINE (2026-11-17)
   "112-1067-006 Motor / 112-1107-006 Secondary Motor" wraps at its spaces, never inside a number ("112-1107-" ending
   a line, "006" starting the next): findParts.js nameParts puts each number in this span. */
#fp .pb-nw { white-space: nowrap; }
