/* spareparts.allcut.in — same look as allcut.in: white paper, black text, one red, thin lines, square corners, Roboto.
   No words under 15px (only the numbers in dots, 13px, and in row chips, 14px). Dots are the only round things.
   Phone layout below 768px. Print layout at the end (used by "Download list (PDF)"). */

/* Roboto, served from this site (same files Google Fonts sends). Apache License 2.0. */
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/roboto-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/roboto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #15130f; --ink-2: #3b3732;
  --paper: #fafaf8; --white: #fff; --tint: #f3f2ee; --photo: #ecebe6;
  --rule: #e5e3de; --rule-2: #d3d0c9;
  --red: #e1251b; --red-ink: #c41d13;
  --dark-1: #f6f4ef; --dark-2: #d6d2cb; --dark-line: #3a3630;
  --wrap: 1440px; --gut: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 92px; }   /* 76px sticky header + 16px */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, textarea { border-radius: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.num { font-variant-numeric: tabular-nums; }
.red { color: var(--red); }
.muted { color: var(--ink-2); }
.ph-only { display: none; }
.noscript { padding: 40px var(--gut); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.ico--16 { width: 16px; height: 16px; }
.ico--20 { width: 20px; height: 20px; }
main:focus { outline: none; }

/* ---------- top strip + header ---------- */
.strip { background: var(--ink); color: var(--dark-2); font-size: 15px; }
.strip__in { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-block: 8px; }
.strip__links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
body[data-view]:not([data-view="home"]) .strip__tag { display: none; }   /* the 1991 line is for the home page only */
.strip a { color: var(--dark-1); text-decoration: none; font-weight: 600; }
.strip a:hover { text-decoration: underline; }

.head { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 60; }
.head__in { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
/* logo: same size as allcut.in (web/static/css/site.css): 46px, 42px up to 1200px wide, 34px on phones */
.brand img { height: 46px; width: auto; }
@media (max-width: 1200px) { .brand img { height: 42px; } }
@media (max-width: 1000px) { .head__in { column-gap: 24px; } .nav { column-gap: 20px; } }   /* tablets: tighter gaps so the bigger logo, nav and Enquiry still fit on one row (820px wide) */
.brand span { border-left: 1px solid var(--rule-2); padding-left: 14px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 25px 2px; }   /* link fills the 76px bar, so the red line sits on its bottom edge */
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.enqbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 8px 0 18px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.enqbtn__n { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.enqbtn:hover { background: #000; }
.enqbtn[aria-current] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--red); }
@media (max-width: 767px) { .enqbtn[aria-current] { box-shadow: none; } }

/* ---------- small parts: label, buttons, badges, chips ---------- */
.label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.label::before { content: ""; width: 28px; height: 3px; background: var(--red); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--rule-2); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.25; text-align: center; }
.btn:hover { border-color: var(--ink); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn--black { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--black:hover { background: #000; border-color: #000; }
.btn--ink-line { border-color: var(--ink); }
.btn--clear { background: transparent; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
.linkbtn { border: 0; background: transparent; padding: 0; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.ulink { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ulink:hover { color: var(--red-ink); }

.badge { display: inline-block; font-weight: 600; font-size: 15px; line-height: 1.5; padding: 2px 10px; white-space: nowrap; }
.badge--chart { background: var(--ink); color: #fff; }
.badge--ask { background: var(--white); color: var(--ink-2); border: 1px solid var(--rule-2); padding: 1px 9px; }
.badge--new { background: var(--red); color: #fff; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--rule-2); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- step bar ---------- */
.steps { background: var(--white); border-bottom: 1px solid var(--rule); }
.steps ol { margin: 0 auto; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: flex; gap: 14px; padding: 16px 20px 18px 0; border-top: 3px solid var(--rule); }
.steps li.on { border-top-color: var(--red); }
.steps__n { font-weight: 800; font-size: 15px; color: var(--ink-2); padding-top: 2px; }
.steps li.on .steps__n { color: var(--red-ink); }
.steps__t { display: block; font-weight: 700; font-size: 17px; }
.steps__s { display: block; font-size: 15px; color: var(--ink-2); }
.steps__s a { color: var(--ink); font-weight: 600; }
.stepline { display: none; }

/* ---------- home: hero ---------- */
.hero { background: var(--ink); color: var(--dark-1); }
.hero__in { padding-block: 60px 64px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-end; }
.hero__text { flex: 1 1 640px; min-width: 0; }
.hero .label { color: var(--dark-1); }
.hero h1 { margin-top: 20px; font-size: 52px; line-height: 1.02; letter-spacing: -0.025em; }
.hero__lead { margin-top: 20px; max-width: 580px; font-size: 19px; color: var(--dark-2); }
.search { margin-top: 28px; max-width: 640px; position: relative; }
.search > label { display: block; font-size: 15px; font-weight: 600; color: var(--dark-2); margin-bottom: 8px; }
.search__box { display: flex; background: var(--white); border: 1px solid var(--white); }
.search__icon { display: grid; place-items: center; width: 52px; color: var(--ink-2); flex: none; }
.search__box input { flex: 1; min-width: 0; border: 0; padding: 16px 8px; font-size: 17px; color: var(--ink); background: transparent; }
.search__box input::placeholder { color: #6b665e; }
.search__box button { border: 0; padding: 0 28px; background: var(--red); color: #fff; font-weight: 600; font-size: 16px; }
.search__box button:hover { background: var(--red-ink); }
.search__box button .ico { display: none; }
.results { margin-top: 8px; background: var(--white); color: var(--ink); border: 1px solid var(--rule); max-height: 420px; overflow: auto; }
.results__msg { padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.res { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 2px 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.res:last-child { border-bottom: 0; }
.res:hover, .res:focus-visible { background: var(--tint); }
.res__k { grid-row: span 2; font-size: 15px; font-weight: 700; color: var(--ink-2); padding-top: 1px; }
.res__t { font-weight: 700; font-size: 16px; }
.res__t b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.res__s { font-size: 15px; color: var(--ink-2); }

.how { flex: 1 1 420px; min-width: 0; }
.how__t { font-weight: 700; font-size: 15px; color: var(--dark-2); padding-bottom: 12px; }
.how ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dark-line); }
.how li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--dark-line); }
.how__n { font-weight: 800; font-size: 15px; color: var(--dark-1); padding-top: 2px; }
.how b { display: block; font-weight: 700; font-size: 18px; }
.how span span { display: block; font-size: 15px; color: var(--dark-2); }
.how__ph { display: none; font-style: normal; }

/* ---------- home: machines ---------- */
.machines { padding: 64px 0 88px; }
.machines__head { max-width: 760px; }
.machines h2 { margin-top: 14px; font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; }
.machines__head p { margin-top: 12px; color: var(--ink-2); }
.machines__bar { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.legend-b { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }
.legend-b > span { display: flex; align-items: center; gap: 8px; }
.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.mcard { position: relative; display: flex; flex-direction: column; padding: 18px 18px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); text-decoration: none; color: var(--ink); }
.mcard:hover { background: var(--white); }
.mcard__pic { height: 190px; display: grid; place-items: center; background: var(--photo); padding: 12px; }
.mcard__pic img { max-height: 166px; width: auto; object-fit: contain; }
.mcard .badge--new { position: absolute; top: 18px; left: 18px; padding: 2px 10px; }
.mcard__s { margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.mcard__n { margin-top: 2px; font-weight: 700; font-size: 21px; line-height: 1.15; }
.mcard__b { margin-top: 10px; display: flex; }
.mcard__i { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.mlist { display: none; }
.askbox { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 24px 28px; background: var(--tint); border: 1px solid var(--rule); }
.askbox__t { font-weight: 800; font-size: 22px; }
.askbox__s { color: var(--ink-2); }

/* ---------- footers ---------- */
.foot { background: var(--ink); color: var(--dark-2); font-size: 15px; }
.foot__in { padding-block: 64px 32px; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.foot__logo { font-weight: 900; font-size: 28px; color: var(--dark-1); letter-spacing: .03em; line-height: 1.2; }
.foot__logo span, .sfoot__logo span { color: var(--red); }
.foot__h { font-weight: 700; color: var(--dark-1); }
.foot__grid p { margin-top: 10px; }
.foot__links { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--dark-1); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.sfoot { background: var(--ink); color: var(--dark-2); font-size: 15px; }
.sfoot__in { padding-block: 26px; display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; justify-content: space-between; }
.sfoot__logo { font-weight: 900; font-size: 20px; color: var(--dark-1); letter-spacing: .03em; }
.sfoot a { color: var(--dark-1); text-decoration: none; }
.sfoot a:hover { text-decoration: underline; }
.pfoot { margin-top: 20px; padding: 18px var(--gut); border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.pfoot a { color: var(--ink); font-weight: 600; }

/* ---------- machine page ---------- */
.crumbs { padding-top: 18px; font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-2); }
.crumbs b { color: var(--ink); font-weight: 600; }
.back { display: none; }
.mhead { padding-block: 28px 56px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.mhead--top { align-items: flex-start; }
.mhead__pic { flex: 0 1 380px; min-width: 0; height: 440px; display: grid; place-items: center; background: var(--photo); padding: 20px; }
.mhead__pic img { max-height: 400px; width: auto; object-fit: contain; }
.mhead__info { flex: 1 1 520px; min-width: 0; }
.mhead__s { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.mhead h1 { margin-top: 4px; font-size: 60px; line-height: 1; letter-spacing: -0.025em; }
.mhead__b { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--ink-2); }
.mhead__p { margin-top: 18px; max-width: 560px; color: var(--ink-2); }
.docs { margin-top: 26px; }
.docs__t { font-weight: 700; font-size: 15px; }
.docs__row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.mhead__other { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.plate { margin-top: 14px; font-size: 15px; color: var(--ink-2); }


.allparts { padding-block: 48px 56px; }
.allparts__h { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.allparts__h h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; }
.allparts__h span { font-size: 15px; color: var(--ink-2); }

/* ---------- unit view: machine line + unit switch ---------- */
.uview { padding-block: 22px 56px; }
.uapp__top { display: none; }   /* phones only: the title row of the drawing screen */
.allparts .label { margin-bottom: 8px; }
.unit { scroll-margin-top: 92px; }   /* ?u=stand scrolls here: keep the heading clear of the 76px header */

/* ---------- a unit: drawing + list ---------- */
.unit + .unit { margin-top: 28px; }
.mode-stack { padding-top: 24px; border-top: 2px solid var(--ink); }
.unit__h { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.unit__h h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; }
.unit__h h2 span { font-weight: 500; color: var(--ink-2); font-size: 20px; letter-spacing: 0; }
.unit__h a { font-weight: 600; font-size: 15px; color: var(--ink); }
.unit__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }

.viewer { flex: 1 1 640px; min-width: 0; background: var(--white); border: 1px solid var(--rule); position: relative; display: flex; flex-direction: column; }
.vbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--rule); }
.vbar__t { font-weight: 800; font-size: 19px; }
.vbar__hint { font-size: 15px; color: var(--ink-2); }
.tools { display: flex; gap: 6px; align-items: center; }
.tool { width: 44px; height: 44px; border: 1px solid var(--rule-2); background: var(--white); display: grid; place-items: center; padding: 0; color: var(--ink); }
.tool:hover { border-color: var(--ink); }
.tool--txt { width: auto; padding: 0 14px; font-weight: 600; font-size: 15px; }
.tool--txt .ico { display: none; }
.tool[disabled] { opacity: .4; cursor: default; }
.zoomtxt { min-width: 56px; text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.mode-stack .tool { width: 40px; height: 40px; }
.mode-stack .tool--txt { width: auto; height: 40px; padding: 0 12px; }

.stage { position: relative; height: 780px; overflow: hidden; background: var(--paper); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stage.is-drag { cursor: grabbing; }
.mode-stack .stage { height: auto; aspect-ratio: var(--ar, 1); max-height: 780px; min-height: 380px; touch-action: pan-y; }
.mode-stack .stage.is-zoomed { touch-action: none; }
.board { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: var(--white); will-change: transform; }
.board img { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.dots { position: absolute; inset: 0; pointer-events: none; }
.is-anim .board, .is-anim .dot { transition: transform .28s ease; }
.dot {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0;
  border-radius: 50%; border: 2px solid var(--red); background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  pointer-events: auto; z-index: 2; transition: box-shadow .15s, opacity .15s; touch-action: none;
}
.dot--in { background: var(--ink); border-color: var(--ink); }
.dot--on { --k: 1.3; z-index: 5; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); }   /* picked: same colour, 1.3x, with a ring */
.dot--in.dot--on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.dot:hover { --k: 1.3; z-index: 4; }
/* glow ring: red on red dots, black on black dots. Child of the dot, so it keeps the same size on screen while zooming; never catches taps. */
.dot::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--red); border-radius: 50%; animation: pulse 2.4s ease-out infinite; pointer-events: none; }
.dot--in::after { border-color: var(--ink); }
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *::after { animation: none !important; } }
.dot--dim { opacity: .25; }
.dot.is-hide { visibility: hidden; }
.dot[data-w="3"] { width: 30px; margin-left: -15px; }
.vover, .listbtn, .vopen { display: none; }

.nodraw { padding: 48px 28px; background: var(--paper); text-align: center; display: grid; place-items: center; gap: 8px; min-height: 280px; }
.nodraw b { font-weight: 800; font-size: 22px; }
.nodraw p { max-width: 460px; color: var(--ink-2); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.legend > span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 50%; background: var(--red); flex: none; }
.legend i.k { background: var(--ink); }
.mode-stack .legend { display: none; }
.mode-stack .list__top { display: none; }   /* the unit title is already above (design B and D) */

/* picked part */
.pick { border-top: 1px solid var(--rule); background: var(--tint); padding: 16px 18px; min-height: 124px; }
.mode-stack .pick { min-height: 0; padding: 12px 18px; }
.pick__none b { display: block; font-weight: 700; font-size: 19px; }
.pick__none span { color: var(--ink-2); }
.mode-stack .pick__none span { font-size: 15px; }
.pick__row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.pick__dot { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.pick__txt { flex: 1 1 240px; min-width: 0; }
.pick__where { font-size: 15px; color: var(--ink-2); }
.pick__name { font-weight: 800; font-size: 22px; line-height: 1.2; }
.pick__p { color: var(--ink-2); }
.pick__code { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pick__code > span { font-size: 15px; color: var(--ink-2); }
.pick__code b { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .02em; user-select: all; -webkit-user-select: all; }
.pick__nodot { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.copybtn { min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-2); background: var(--white); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.copybtn:hover { border-color: var(--ink); }
.copybtn .ico { width: 15px; height: 15px; }
.pick__close { display: none; }
.pick__qty { display: flex; flex-direction: column; gap: 4px; }
.pick__qty > label, .pick__qty > span { font-size: 15px; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-2); background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; line-height: 1; padding: 0; }
.qty button:hover { background: var(--tint); }
.qty output, .qty span { min-width: 40px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.pick__add { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pick__add .btn { min-height: 48px; padding: 0 22px; }
.pick__in { font-size: 15px; font-weight: 600; }
.pick__wa { display: none; }
.subs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.subs > span { color: var(--ink-2); }
.subs button { min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-2); background: var(--white); font-weight: 600; font-size: 15px; }
.subs button:hover { border-color: var(--ink); }

/* parts list */
.list { flex: 1 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.list__grab, .list__x, .list__foot .btn { display: none; }
.list__head { padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.list__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list__top h2, .list__top h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.list__top > span { font-size: 15px; color: var(--ink-2); }
.list__sub { display: none; }
.list__head label { display: block; margin-top: 12px; font-weight: 600; font-size: 15px; }
.sbox { margin-top: 6px; display: flex; align-items: center; border: 1px solid var(--rule-2); background: var(--paper); }
.sbox:focus-within { border-color: var(--ink); }
.sbox > span { width: 44px; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.sbox input { flex: 1; min-width: 0; border: 0; padding: 12px 12px 12px 0; font-size: 16px; background: transparent; }
.sbox input:focus-visible { outline: none; }
.lhead, .lrow { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; }
.lhead { border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 15px; }
.lhead > div, .lrow__b { display: grid; grid-template-columns: 60px minmax(0, 1fr) 112px; gap: 0 10px; align-items: center; }
.lhead > div { padding: 10px 12px 10px 16px; }
.lhead > span { padding: 10px 0; text-align: center; }
.lrow { border-bottom: 1px solid var(--rule); background: var(--white); }
.lrow.is-grp { background: var(--paper); }
.lrow.is-on { background: var(--tint); box-shadow: inset 4px 0 0 var(--red); }
.lrow__b { min-height: 46px; padding: 6px 12px 6px 16px; border: 0; background: transparent; text-align: left; width: 100%; }
.lrow__b:hover { background: var(--tint); }
.lrow.is-on .lrow__b:hover { background: transparent; }
.lrow__p { display: flex; }
.lrow.is-sub .lrow__p { padding-left: 14px; }
/* list numbers are plain squares: white = normal, black = in the enquiry, red = picked row */
.chipn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 0; background: var(--white); border: 1px solid var(--rule); color: var(--ink); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.chipn--off { color: var(--ink-2); }
.chipn--in, .chipn--off.chipn--in { background: var(--ink); border-color: var(--ink); color: #fff; }
.lrow.is-on .chipn, .lrow.is-on .chipn--in { background: var(--red); border-color: var(--red); color: #fff; }
.lrow__n { font-size: 16px; min-width: 0; }
.lrow.is-on .lrow__n { font-weight: 700; }
.lrow__n small { display: block; font-size: 15px; color: var(--ink-2); font-weight: 400; }
.lrow__c { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lrow__a { display: grid; place-items: center; }
.addb { width: 40px; height: 40px; border: 1px solid var(--rule-2); background: var(--white); display: grid; place-items: center; color: var(--ink); padding: 0; }
.addb:hover { border-color: var(--ink); }
.addb .ico { stroke-width: 2.4; }
.addb--in { width: auto; min-width: 40px; padding: 0 6px; border: 0; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 3px; font-weight: 700; font-size: 15px; }
.addb--in .ico { width: 14px; height: 14px; stroke-width: 3; }
.mode-stack .lrow__b { min-height: 44px; padding-block: 4px; }
.mode-stack .addb { width: 34px; height: 34px; }
.mode-stack .addb--in { width: auto; min-width: 34px; }
.list__none { padding: 28px 18px; color: var(--ink-2); }
.list__foot { padding: 14px 18px; font-size: 15px; color: var(--ink-2); background: var(--paper); }
.list__foot p + p { margin-top: 6px; }
.list__more { display: none; }
.sheetback { display: none; }

/* full screen drawing (button in the toolbar) */
.viewer.is-full { position: fixed; inset: 0; z-index: 300; border: 0; }
.viewer.is-full .stage { flex: 1; height: auto; max-height: none; aspect-ratio: auto; min-height: 0; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

/* ---------- on request ---------- */
.req { margin-top: 26px; background: var(--white); border: 1px solid var(--rule); padding: 28px; }
.req__t { font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; max-width: 640px; }
.req__p { margin-top: 10px; color: var(--ink-2); max-width: 640px; }
.req__btns { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.req__btns .btn { min-height: 52px; padding: 0 22px; }
.req__btns .btn--red { padding: 0 24px; font-size: 17px; }
.req__add { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.req__add > span { flex: 1 1 280px; font-size: 15px; color: var(--ink-2); }
.others { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.others__in { padding-block: 48px 56px; }
.others h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; }
.others__p { margin-top: 8px; color: var(--ink-2); max-width: 760px; }
.ocards { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.ocard { display: flex; gap: 16px; align-items: center; padding: 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); text-decoration: none; color: var(--ink); }
.ocard:hover { background: var(--white); }
.ocard__pic { width: 84px; height: 104px; flex: none; display: grid; place-items: center; background: var(--photo); padding: 6px; }
.ocard__pic img { max-height: 92px; width: auto; }
.ocard__t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ocard__t b { font-weight: 700; font-size: 19px; line-height: 1.15; }
.ocard__i { font-size: 15px; color: var(--ink-2); }
.ocard .ico { display: none; }

/* ---------- enquiry ---------- */
.enq { padding-block: 40px 56px; }
.enq h1 { margin-top: 12px; font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; }
.enq__p { margin-top: 10px; color: var(--ink-2); max-width: 760px; }
.enq__grid { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.enq__list { flex: 1 1 680px; min-width: 0; }
.enq__side { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.egrp + .egrp { margin-top: 28px; }
.egrp__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.egrp__h h2 { font-size: 22px; }
.egrp__h a { font-size: 15px; font-weight: 600; color: var(--ink); }
.eitem { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.eitem__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.eitem__dot { width: 40px; height: 40px; padding: 0; flex: none; display: grid; place-items: center; border-radius: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.eitem__txt { flex: 1 1 240px; min-width: 0; }
.eitem__n { font-weight: 700; font-size: 18px; line-height: 1.3; }
.eitem__s { font-size: 15px; color: var(--ink-2); }
.eitem__s b { color: var(--ink); font-variant-numeric: tabular-nums; }
.eitem__ctl { display: flex; align-items: center; gap: 18px; }
.eitem .qty span { min-width: 32px; }
.xbtn { width: 44px; height: 44px; flex: none; border: 1px solid var(--rule-2); background: transparent; display: grid; place-items: center; padding: 0; color: var(--ink); }
.xbtn:hover { border-color: var(--ink); }
.eitem__more { margin: 8px 0 0 58px; }
.eitem__note { margin: 10px 0 0 58px; display: flex; flex-direction: column; gap: 6px; }
.eitem__note label { font-size: 15px; font-weight: 600; }
.eitem__note input { width: 100%; max-width: 520px; border: 1px solid var(--rule-2); background: var(--white); padding: 10px 12px; font-size: 16px; }
.eitem__note input:focus { border-color: var(--ink); }
.enq__sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 700; }
.enq__sum a { font-weight: 600; color: var(--ink); }
.enq__empty { padding: 28px 24px; background: var(--white); border: 1px solid var(--rule); }
.enq__empty b { display: block; font-weight: 800; font-size: 22px; }
.enq__empty p { margin-top: 6px; color: var(--ink-2); }
.enq__empty a { display: inline-block; margin-top: 14px; }
.form { background: var(--white); border: 1px solid var(--rule); padding: 28px; }
.form h2 { font-size: 22px; }
.fields { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f--wide { margin-top: 14px; }
.serialfields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.serialfields:empty { display: none; }
.f label { font-weight: 600; font-size: 15px; }
.f input, .f textarea { width: 100%; border: 1px solid var(--rule-2); background: var(--paper); padding: 12px 14px; font-size: 16px; }
.f textarea { resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--ink); }
.f input[aria-invalid="true"] { border-color: var(--red-ink); box-shadow: inset 0 0 0 1px var(--red-ink); }
.form__must { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.form__err { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--red-ink); background: var(--white); color: var(--red-ink); font-weight: 600; font-size: 15px; }
.send { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.send .btn--wa { min-height: 56px; font-weight: 700; font-size: 18px; }
.send__more { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.send__more .btn { min-height: 48px; padding: 0 10px; font-size: 15px; gap: 8px; background: transparent; }
.send__more .ico { width: 17px; height: 17px; }
.send__info { font-size: 15px; color: var(--ink-2); }

/* ---------- phone bottom bar, toast ---------- */
.bbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translate(-50%, 16px); max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.printarea { display: none; }

/* =====================================================================
   PHONE (below 768px)
   ===================================================================== */
@media (max-width: 767px) {
  :root { --gut: 16px; }
  body { line-height: 1.5; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 16px; }
  .dt-only { display: none !important; }
  .ph-only { display: revert; }
  .strip, .nav { display: none; }
  .head { position: static; }
  .head__in { min-height: 62px; padding: 0 12px 0 16px; gap: 10px; flex-wrap: nowrap; }
  .brand { gap: 8px; }
  .brand img { height: 34px; }
  .brand span { padding-left: 8px; font-size: 15px; }   /* 8px gaps: "Spare parts" stays on one line down to 360px wide */
  .enqbtn { min-height: 44px; padding: 0 6px 0 12px; gap: 8px; font-size: 15px; }
  .enqbtn__n { min-width: 28px; height: 28px; padding: 0 6px; }

  .steps { display: none; }
  .stepline { display: block; padding: 10px 16px 12px; background: var(--white); border-bottom: 1px solid var(--rule); }
  .stepline__t { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
  .stepline__t b { font-weight: 700; }
  .stepline__t span { color: var(--ink-2); text-align: right; }
  .stepline__bars { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .stepline__bars i { height: 4px; background: var(--rule); }
  .stepline__bars i.on { background: var(--red); }

  .bbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--ink); }
  .bbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--dark-2); text-decoration: none; font-size: 15px; font-weight: 600; }
  .bbar a[aria-current] { color: #fff; box-shadow: inset 0 3px 0 var(--red); }
  .bbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* home */
  .hero__in { padding-block: 24px 26px; gap: 18px; }
  .hero h1 { margin-top: 14px; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
  .hero__lead { margin-top: 12px; font-size: 17px; }
  .search { margin-top: 18px; }
  .search > label { margin-bottom: 6px; }
  .search__box { border: 0; }
  .search__icon { display: none; }
  .search__box input { padding: 14px 12px; font-size: 16px; }
  .search__box button { width: 56px; padding: 0; display: grid; place-items: center; }
  .search__box button .ico { display: block; width: 20px; height: 20px; stroke-width: 2.2; }
  .search__box button .t { display: none; }
  .res { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
  .res__k { grid-row: auto; }
  .how { flex-basis: 100%; }
  .how__t { display: none; }
  .how ol { border: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--dark-2); }
  .how li { display: block; padding: 0; border: 0; }
  .how__n { padding: 0; }
  .how b, .how span span { display: inline; font-size: 15px; font-weight: 400; color: var(--dark-2); }
  .how .how__n { font-weight: 700; color: var(--dark-1); font-size: 0; }
  .how .how__n::after { content: attr(data-ph); font-size: 15px; }
  .how__ph { display: inline; }
  .how li > span:last-child > span { display: none; }
  .how li > span:last-child::before { content: " · "; }
  .machines { padding: 22px 0 8px; }
  .machines h2 { margin: 0; font-size: 26px; line-height: 1.12; letter-spacing: -0.015em; }
  .machines .label { display: none; }
  .machines__head p { margin-top: 6px; font-size: 15px; }
  .machines__bar { margin: 14px calc(-1 * var(--gut)) 0; display: block; }
  .machines__bar .chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
  .machines__bar .chips::-webkit-scrollbar { display: none; }
  .machines__bar .chip { flex: none; padding: 0 16px; }
  .legend-b { display: none; }
  .cards { display: none; }
  .mlist { display: block; }
  .mgrp { margin-top: 18px; }
  .mgrp h3 { padding: 0 0 8px; font-size: 17px; font-weight: 800; border-bottom: 2px solid var(--ink); }
  .mrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
  .mrow__pic { width: 52px; height: 60px; flex: none; display: grid; place-items: center; background: var(--photo); padding: 3px; }
  .mrow__pic img { max-height: 54px; width: auto; }
  .mrow__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mrow__n { font-weight: 700; font-size: 17px; line-height: 1.2; }
  .mrow__n .badge { padding: 0 6px; margin-left: 4px; }
  .mrow__i { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 15px; color: var(--ink-2); }
  .mrow__i .badge { padding: 0 8px; }
  .mrow__i .badge--ask { padding: 0 7px; }
  .mrow .ico { stroke: var(--ink-2); }
  .askbox { margin-top: 22px; padding: 18px; display: block; }
  .askbox__t { font-size: 19px; }
  .askbox__s { margin-top: 4px; font-size: 15px; }
  .askbox .btn { margin-top: 12px; width: 100%; }

  .foot__in { padding-block: 32px 24px; }
  .foot__grid { gap: 22px; }
  .foot__bottom { margin-top: 26px; }
  .sfoot__in { padding-block: 18px; gap: 6px 20px; }

  /* machine page */
  .crumbs { display: none; }
  .back { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .mhead { padding-block: 0 0; gap: 16px; display: block; }
  .mhead__pic { height: 240px; padding: 12px; }
  .mhead__pic img { max-height: 216px; }
  .mhead__info { padding-top: 16px; }
  .mhead h1 { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
  .mhead__b { margin-top: 10px; gap: 8px 10px; font-size: 15px; }
  .mhead__b .badge { padding: 1px 8px; }
  .mhead__b--req .btn { flex: 1 1 100%; justify-content: center; }
  .mhead__p { display: none; }
  .docs { margin-top: 14px; }
  .docs__t { display: none; }
  .docs__row { margin: 0; gap: 8px; flex-wrap: nowrap; }
  .docs__row .btn { flex: 1; min-height: 48px; padding: 0 8px; font-size: 15px; gap: 8px; }
  .docs__row .ico { width: 16px; height: 16px; }
  .mhead__other { margin-top: 12px; }
  .mhead__other { display: none; }
  .allparts { padding-block: 22px 24px; }
  .allparts__h { display: block; }
  .allparts__h h2 { font-size: 20px; letter-spacing: 0; }
  .allparts__h span { display: block; margin-top: 2px; }

  /* units, stacked (machine page): small preview + first 5 rows */
  .mode-stack { margin-inline: calc(-1 * var(--gut)); padding: 16px 16px 0; }
  .unit + .unit { margin-top: 18px; }
  .unit:first-child.mode-stack { margin-top: 14px; }
  .unit__h { margin-bottom: 10px; display: block; }
  .unit__h h2 { font-size: 22px; line-height: 1.2; letter-spacing: 0; }
  .unit__h h2 span { font-size: 17px; }
  .unit__h a { display: none; }
  .unit__grid { display: block; }
  .mode-stack .viewer { border: 0; background: transparent; }
  .mode-stack .vbar, .mode-stack .pick { display: none; }
  .mode-stack .stage { min-height: 200px; max-height: 300px; background: var(--tint); border: 1px solid var(--rule); touch-action: auto; }
  .mode-stack .dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; font-size: 0; border-width: 1.5px; pointer-events: none; box-shadow: none; --k: 1; }
  .mode-stack .dot::after { display: none; }   /* tiny phone previews: no glow */
  .mode-stack .vopen { display: block; position: absolute; inset: 0; z-index: 6; text-decoration: none; color: var(--ink); }
  .vopen__l { position: absolute; left: 10px; top: 10px; font-size: 15px; color: var(--ink-2); background: rgba(255, 255, 255, .9); padding: 0 6px; }
  .vopen__b { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
  .mode-stack .nodraw { min-height: 0; padding: 22px 16px; border: 1px solid var(--rule); }
  .mode-stack .list { margin-top: 12px; border: 0; background: transparent; }
  .mode-stack .list__head { display: none; }
  .mode-stack .lhead, .mode-stack .lrow { grid-template-columns: minmax(0, 1fr) 44px; gap: 0 8px; background: transparent; }
  .mode-stack .lhead > div, .mode-stack .lrow__b { grid-template-columns: 46px minmax(0, 1fr) 80px; gap: 0 8px; }
  .mode-stack .lhead > div { padding: 6px 0; }
  .mode-stack .lhead > span { padding: 6px 0; }
  .mode-stack .lrow__b { min-height: 54px; padding: 4px 0; }
  .mode-stack .lrow.is-sub .lrow__p { padding-left: 8px; }
  .mode-stack .addb, .mode-stack .addb--in { width: 44px; height: 44px; min-width: 44px; }
  .mode-stack .lrow.is-cut { display: none; }
  .mode-stack .list__foot { display: none; }
  .mode-stack .list__more { display: flex; margin-top: 12px; width: 100%; }
  .mode-stack .list__none { padding: 16px 0; }

  /* unit view: the drawing fills the screen (an app-like screen) */
  .uapp { display: flex; flex-direction: column; height: calc(100dvh - 62px - 64px - env(safe-area-inset-bottom)); min-height: 460px; }   /* 62px header, 64px bottom bar */
  .uapp .stepline { flex: none; }
  .uapp .crumbs { display: none; }
  .uapp__top { flex: none; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 4px 16px 4px 4px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .uapp__back { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
  .uapp__t { font-weight: 800; font-size: 18px; line-height: 1.2; }
  .uapp__s { font-size: 15px; color: var(--ink-2); line-height: 1.3; }
  .unit { scroll-margin-top: 0; }
  .uapp .uview { flex: 1; min-height: 0; padding: 0; max-width: none; display: flex; }
  .uapp .unit { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .uapp .unit__grid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; }   /* stretch: full screen width */
  .uapp .viewer { flex: 1; min-height: 0; border: 0; }
  .uapp .vbar { position: absolute; left: 0; right: 0; top: 0; z-index: 8; padding: 0; border: 0; display: block; pointer-events: none; }
  .uapp .vbar__t { display: none; }
  .uapp .vbar__hint { padding: 6px 12px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--rule); line-height: 1.3; }
  .uapp .tools { position: absolute; right: 12px; top: 44px; flex-direction: column; gap: 6px; pointer-events: auto; }
  .uapp .tool--out { order: 2; }
  .uapp .tool--in { order: 1; }
  .uapp .tool--reset { order: 3; width: 44px; padding: 0; }
  .uapp .tool--reset .t { display: none; }
  .uapp .tool--reset .ico { display: block; }
  .uapp .tool--full { order: 4; }
  .uapp .zoomtxt { order: 5; min-width: 44px; background: var(--white); border: 1px solid var(--rule); line-height: 1.5; }
  .uapp .stage { flex: 1; height: auto; min-height: 0; }
  .uapp .nodraw { flex: 1; padding: 60px 20px 70px; }
  .uapp .legend { display: none; }
  .uapp .listbtn { display: inline-flex; position: absolute; left: 12px; bottom: 12px; z-index: 8; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--ink); color: #fff; border: 0; font-weight: 600; font-size: 15px; }
  .uapp .pick { flex: none; min-height: 0; padding: 12px 16px 14px; background: var(--white); border-top: 2px solid var(--ink); }
  .uapp .pick__none { font-size: 15px; color: var(--ink-2); line-height: 1.35; }
  .uapp .pick__none b { display: none; }
  .uapp .pick__row { gap: 10px 12px; }
  .uapp .pick__dot { width: 44px; height: 44px; font-size: 17px; }
  .uapp .pick__txt { flex: 1 1 calc(100% - 112px); }
  .uapp .pick__where { line-height: 1.3; }
  .uapp .pick__name { font-size: 20px; }
  .uapp .pick__p { margin-top: 2px; font-size: 15px; line-height: 1.4; flex-basis: 100%; order: 4; }
  .uapp .pick__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: transparent; padding: 0; align-self: flex-start; }
  .uapp .pick__code { gap: 8px 10px; }
  .uapp .pick__qty { order: 5; }
  .uapp .pick__qty > label, .uapp .pick__qty > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .uapp .pick__qty .qty button { height: 46px; }
  .uapp .pick__qty .qty output { min-width: 26px; }
  .uapp .pick__add { order: 6; flex: 1; }
  .uapp .pick__add .btn { width: 100%; font-weight: 700; padding: 8px 12px; }
  .uapp .pick__wa { display: flex; order: 7; flex-basis: 100%; justify-content: center; align-items: center; min-height: 40px; margin-top: -4px; }
  .uapp .subs { margin-top: 8px; }
  .uapp .list { display: none; }
  .uapp .list.is-open { display: flex; position: fixed; left: 0; right: 0; top: 20px; bottom: 0; z-index: 320; border: 0; }
  .uapp .sheetback.is-open { display: block; position: fixed; inset: 0; z-index: 310; background: var(--ink-2); }
  .uapp .list__grab { display: grid; place-items: center; padding-top: 8px; flex: none; }
  .uapp .list__grab span { width: 44px; height: 4px; background: var(--rule-2); }
  .uapp .list__head { flex: none; border: 0; padding: 4px 8px 12px 16px; }
  .uapp .list__top { align-items: center; gap: 10px; }
  .uapp .list__top > span { display: none; }
  .uapp .list__sub { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
  .uapp .list__x { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: transparent; padding: 0; }
  .uapp .list__head label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .uapp .sbox { margin: 10px 8px 0 0; }
  .uapp .lhead { flex: none; }
  .uapp .lhead, .uapp .lrow { grid-template-columns: minmax(0, 1fr) 44px; gap: 0 8px; padding-right: 12px; }
  .uapp .lhead > div, .uapp .lrow__b { grid-template-columns: 48px minmax(0, 1fr) 84px; gap: 0 8px; }
  .uapp .lhead > div { padding: 8px 0 8px 16px; }
  .uapp .lrow__b { min-height: 54px; padding: 4px 0 4px 16px; }
  .uapp .addb, .uapp .addb--in { width: 44px; height: 44px; }
  .uapp .list__rows { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .uapp .list__foot { flex: none; padding: 10px 16px 14px; border-top: 1px solid var(--rule); line-height: 1.35; }
  .uapp .list__foot .btn { display: flex; width: 100%; margin-top: 10px; }
  .uapp + .sfoot { margin-top: 0; }

  /* on request */
  .req { margin-top: 18px; padding: 16px; }
  .req__t { font-size: 20px; line-height: 1.25; }
  .req__p { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .req__btns { margin-top: 14px; flex-direction: column; gap: 8px; }
  .req__btns .btn { min-height: 48px; }
  .req__btns .btn--red { min-height: 52px; font-weight: 700; }
  .req__add { margin-top: 16px; padding-top: 16px; display: block; }
  .req__add .btn { width: 100%; }
  .req__add > span { display: block; margin-top: 8px; }
  .others { background: transparent; border: 0; }
  .others__in { padding-block: 22px 24px; }
  .others h2 { font-size: 19px; letter-spacing: 0; }
  .others__p { margin-top: 2px; font-size: 15px; }
  .ocards { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; border: 0; }
  .ocard { gap: 12px; padding: 10px; border: 1px solid var(--rule-2); background: var(--white); }
  .ocard__pic { width: 52px; height: 60px; padding: 3px; }
  .ocard__pic img { max-height: 54px; }
  .ocard__t { flex: 1; gap: 3px; }
  .ocard__t b { font-size: 17px; }
  .ocard .ico { display: block; stroke: var(--ink-2); }

  /* enquiry */
  .enq { padding-block: 20px 24px; }
  .enq .label { display: none; }
  .enq h1 { margin: 0; font-size: 30px; line-height: 1.1; }
  .enq__p { margin-top: 6px; font-size: 15px; }
  .enq__grid { margin-top: 0; display: block; }
  .egrp { margin-top: 20px; }
  .egrp + .egrp { margin-top: 20px; }
  .egrp__h { padding-bottom: 8px; }
  .egrp__h h2 { font-size: 19px; }
  .eitem { padding: 12px 0; }
  .eitem__row { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
  .eitem__dot { width: 36px; height: 36px; }
  .eitem__n { font-size: 17px; line-height: 1.25; }
  .eitem__ctl { display: contents; }
  .eitem__ctl .qty { display: none; }
  .eitem__ph { margin-top: 8px; padding-left: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .eitem__ph .qty span { min-width: 28px; }
  .eitem__more { display: none; }
  .eitem__note { margin: 8px 0 0; padding-left: 48px; gap: 4px; }
  .enq__sum { flex-direction: column; gap: 6px; padding: 12px 0 0; }
  .enq__sum a { font-size: 15px; }
  .enq__side { margin-top: 22px; }
  .form { padding: 18px 16px; }
  .form h2 { font-size: 20px; }
  .fields { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
  .f { gap: 4px; }
  .f--wide { margin-top: 12px; }
  .f input, .f textarea { padding: 12px; }
  .form__must { margin-top: 6px; }
  .send { margin-top: 16px; gap: 8px; }
  .send__more { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .send__more .btn:first-child { font-size: 16px; }
  .egrp__h a { display: none; }
}
@media (min-width: 768px) {
  .eitem__ph { display: none; }
}

/* ---------- serial number, optional email, one-click send ---------- */
.opt { font-weight: 400; color: var(--ink-2); }
.f__hint { font-size: 15px; color: var(--ink-2); }
.send__note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; background: var(--tint); font-size: 15px; line-height: 1.4; }
.send__note .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.send__note a { font-weight: 600; color: var(--ink); }
.f__err { font-size: 15px; font-weight: 600; color: var(--red-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send__more .btn.is-busy { background: var(--tint); color: var(--ink-2); cursor: default; pointer-events: none; }
.spin { animation: spin 1s linear infinite; transform-origin: center; stroke-width: 2.4; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.send--fail #sendWa, .send--fail #sendMail { display: none; }
.send--fail .send__more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.failp { padding: 20px; border: 2px solid var(--red-ink); background: var(--white); }
.failp__top { display: flex; gap: 16px; align-items: flex-start; }
.failp__i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--red-ink); color: var(--red-ink); font-weight: 800; font-size: 22px; }
.failp__h { font-weight: 800; font-size: 22px; line-height: 1.2; }
.failp__p { margin-top: 4px; color: var(--ink-2); }
.failp__b { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.failp__b .btn { flex: 1 1 220px; min-height: 52px; }
.failp .btn--wa { font-size: 17px; }
.failp__call { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.failp .linkbtn { margin-top: 8px; min-height: 44px; }
.sentp { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--tint); border: 1px solid var(--rule); }
.sentp__t { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); }
.sentp__t .ico { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.6; }
.sentp__h { font-weight: 800; font-size: 22px; line-height: 1.2; }
.sentp__p { margin-top: 4px; color: var(--ink-2); }
.sentp__a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; font-size: 15px; color: var(--ink); }
.send--sent .send__note, .send--sent #sendWa, .send--sent .send__more, .send--sent .send__info { display: none; }

/* ---------- print: "Download list (PDF)" prints only the enquiry list ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; padding: 0; font-size: 12pt; }
  body > *:not(.printarea) { display: none !important; }
  .printarea { display: block !important; color: #000; }
  .printarea h1 { font-size: 20pt; margin: 0 0 4pt; }
  .printarea p { margin: 0 0 6pt; }
  .printarea table { width: 100%; border-collapse: collapse; margin: 10pt 0; font-size: 11pt; }
  .printarea th, .printarea td { border-bottom: 1px solid #999; padding: 5pt 6pt 5pt 0; text-align: left; vertical-align: top; }
  .printarea th { border-bottom: 2px solid #000; }
  .printarea .pr-logo { height: 28px; width: auto; margin-bottom: 10pt; }
}

/* ---------- sticky drawing: left column stays under the header while the list scrolls ---------- */
/* Only when drawing and list sit side by side and the screen is tall enough; no overflow:hidden on any parent. */
@media (min-width: 900px) and (min-height: 720px) {
  .unit__grid { flex-wrap: nowrap; }
  .unit__grid > .viewer { flex: 1 1 54%; position: sticky; top: 92px; height: calc(100vh - 108px); max-height: calc(100vh - 108px); }
  .unit__grid > .list { flex: 1 1 46%; }
  .unit__grid > .viewer .stage, .mode-stack .unit__grid > .viewer .stage { flex: 1 1 0; height: auto; min-height: 380px; max-height: none; aspect-ratio: auto; }
  .unit__grid > .viewer .nodraw { flex: 1 1 0; }
  .unit__grid > .viewer .pick { flex: none; }
  .unit__grid > .viewer.is-full { position: fixed; top: 0; height: auto; max-height: none; }
}
