/* Meridian Fire Doors (VPK Ltd)
   Layout concept: an architectural ironmongery catalogue. Photo-real renders sit on stone-grey stages, the brand's
   charcoal and signal red frame the page, and every specification is set like the label on a certified fire door. */
:root {
  --ink: #17181A;
  --ink-2: #3A3C40;
  --mute: #686B70;
  --faint: #9B9EA3;
  --paper: #FFFFFF;
  --mist: #F5F5F3;
  --stone: #ECEBE8;
  --stage: #E7E4DF;
  --line: #E2E1DD;
  --line-2: #CDCBC6;
  --red: #C8161D;
  --red-deep: #A3121A;
  --red-tint: #FBEDED;
  --steel: #8E9398;
  --sign: #1E4C9A;
  --night: #1B1C1F;
  --night-2: #26282C;
  --on-night: #F2F2F1;
  --on-night-mute: #A9ACB1;
  --ok: #1D7A4D; --ok-tint: #E7F3EC;
  --warn: #96580A; --warn-tint: #FBF1E1;
  --bad: #B42318; --bad-tint: #FCECEB;
  --info: #285E9E; --info-tint: #EAF1FA;
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Instrument Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --r-s: 3px; --r-m: 6px; --r-l: 12px;
  --shadow-1: 0 1px 2px rgba(23, 24, 26, .06), 0 4px 14px rgba(23, 24, 26, .05);
  --shadow-2: 0 2px 6px rgba(23, 24, 26, .08), 0 22px 56px rgba(23, 24, 26, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-body); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas, video { display: block; max-width: 100%; }
/* html2canvas measures font baselines with a 1×1 inline image; keep it inline or PDF text is drawn too low */
img[width="1"][height="1"][src^="data:image/gif"] { display: inline !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; letter-spacing: -.015em; line-height: 1.08; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(32px, 3.7vw, 54px); }
h2 { font-size: clamp(26px, 2.7vw, 40px); }
h3 { font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -.01em; line-height: 1.2; }
h4 { font-size: 16px; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: 0; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.micro { font-size: 12px; }
.eyebrow { font: 500 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--red); }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(22px, 2vw, 28px); color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); }
.stack > * + * { margin-top: var(--stack, 16px); }
.stack > span:not(.pill):not(.tag):not(.plate):not(.btn), .stack > b, .stack > small, .stack > strong { display: block; }

/* ---------- buttons ---------- */
.btn { --b: var(--red); --bf: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--b); background: var(--b); color: var(--bf); font: 600 15px/1 var(--f-body); letter-spacing: .01em; border-radius: var(--r-s); text-decoration: none; white-space: nowrap; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .42; pointer-events: none; }
.btn-dark { --b: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-ghost { --b: transparent; --bf: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { --b: #fff; --bf: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { color: var(--red); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.arrow-link .ic { transition: transform .2s var(--ease); }
.arrow-link:hover .ic { transform: translateX(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; background: transparent; border-radius: var(--r-s); color: var(--ink); }
.icon-btn:hover { background: var(--mist); color: var(--ink); }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- labels: rating plate, pills, tags ---------- */
.plate { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); border-radius: 2px; font: 600 12px/1 var(--f-mono); letter-spacing: .04em; background: #fff; color: var(--ink); overflow: hidden; }
.plate b { background: var(--ink); color: #fff; padding: 5px 7px; font-weight: 600; }
.plate span { padding: 5px 7px; }
.plate.red b { background: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; background: var(--stone); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.info { background: var(--info-tint); color: var(--info); }
.pill.red { background: var(--red-tint); color: var(--red-deep); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.plain::before { display: none; }
.tag { display: inline-block; padding: 4px 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 2px; }
.tag.red { background: var(--red); }
.tag.light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.tag.outline { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- form ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint, .hint { font-size: 13px; color: var(--mute); line-height: 1.45; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff; color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea, textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.field select, select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317181A' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 22, 29, .16); }
.field.invalid input:not([type=checkbox]):not([type=radio]), .field.invalid select, .field.invalid textarea { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(178, 34, 34, .1); }
.field.invalid > label, .field.invalid > .label { color: var(--bad); }
.field.invalid::after { content: "Please complete this field"; font-size: 12.5px; font-weight: 600; color: var(--bad); }
.field.invalid[data-err]::after { content: attr(data-err); }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 3px; gap: 3px; background: #fff; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 2px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-height: 36px; }
.seg button:hover { background: var(--mist); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-s); height: 44px; background: #fff; }
.qty button { width: 40px; border: 0; background: transparent; font-size: 18px; color: var(--ink); }
.qty button:hover { background: var(--mist); }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 36px; } .qty.sm button { width: 32px; } .qty.sm input { width: 38px; }
.dropzone { position: relative; display: block; cursor: pointer; border: 1.5px dashed var(--line-2); border-radius: var(--r-m); padding: 28px; text-align: center; background: var(--mist); transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--red); background: var(--red-tint); }
.files { display: grid; gap: 6px; margin-top: 12px; }
.files li { list-style: none; display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); }

/* ---------- notices, toasts, modal, drawer ---------- */
.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-s); font-size: 14px; line-height: 1.5; background: var(--info-tint); color: #1c3d63; border-left: 3px solid var(--info); }
.notice.ok { background: var(--ok-tint); color: #15553a; border-color: var(--ok); }
.notice.warn { background: var(--warn-tint); color: #6b3f05; border-color: var(--warn); }
.notice.bad { background: var(--bad-tint); color: #8c1b12; border-color: var(--bad); }
.notice a { color: inherit; font-weight: 600; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: var(--r-m); box-shadow: var(--shadow-2); font-size: 14.5px; animation: toastIn .3s var(--ease); }
.toast a, .toast button { color: #fff; margin-left: auto; font-weight: 600; background: none; border: 0; text-decoration: underline; white-space: nowrap; }
.toast .ic { color: #6fd39d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(15, 16, 18, .46); backdrop-filter: blur(2px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-2); padding: 28px; animation: modalIn .25s var(--ease); }
.modal.wide { width: min(880px, calc(100vw - 32px)); }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -48%); } }
.modal-x { position: absolute; top: 14px; right: 14px; }
.drawer { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; box-shadow: var(--shadow-2); display: flex; flex-direction: column; animation: drawerIn .3s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
.drawer.left { right: auto; left: 0; animation-name: drawerInL; }
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes drawerInL { from { transform: translateX(-30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }

/* ---------- header ---------- */
.usp-strip { background: var(--night); color: var(--on-night); font-size: 13px; }
.usp-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.usp-list { display: flex; gap: 28px; align-items: center; overflow: hidden; }
.usp-list li { list-style: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--on-night); }
.usp-list .ic { width: 16px; height: 16px; color: #e7676b; }
.usp-strip .strip-links { display: flex; gap: 18px; white-space: nowrap; }
.usp-strip .strip-links a, .usp-strip .strip-links button { color: var(--on-night-mute); text-decoration: none; background: none; border: 0; font-size: 13px; padding: 0; }
.usp-strip .strip-links a:hover, .usp-strip .strip-links button:hover { color: #fff; }
@media (min-width: 921px) { .usp-list li:nth-child(4) { display: none; } }
@media (min-width: 921px) and (max-width: 1180px) { .usp-list li:nth-child(3) { display: none; } }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(23, 24, 26, .06); }
.masthead .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 78px; }
.brand { display: block; line-height: 0; }
.brand img { height: 50px; width: auto; }
.search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 46px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--mist); font-size: 15px; }
.search input:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 22, 29, .14); }
.search > .ic { position: absolute; left: 15px; top: 14px; color: var(--mute); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-2); max-height: 70vh; overflow: auto; z-index: 60; }
.search-results a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.active { background: var(--mist); color: var(--ink); }
.search-results img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; background: var(--stage); }
.search-results .k { font: 500 11px var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.search-results .none { padding: 18px; color: var(--mute); font-size: 14px; }
.head-actions { display: flex; align-items: center; gap: 4px; }
.head-act { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-s); text-decoration: none; font-size: 14px; font-weight: 600; background: none; border: 0; color: var(--ink); position: relative; }
.head-act:hover { background: var(--mist); color: var(--ink); }
.head-act .ic { width: 22px; height: 22px; }
.head-act .badge { position: absolute; top: 1px; left: 19px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 10.5px/17px var(--f-body); text-align: center; box-shadow: 0 0 0 2px #fff; }
.head-act .badge:not(:empty):not([data-n="0"]) + .lbl { margin-left: 8px; }
.head-act .badge:empty, .head-act .badge[data-n="0"] { display: none; }
.head-phone { display: grid; line-height: 1.2; text-align: right; padding-right: 8px; margin-right: 6px; border-right: 1px solid var(--line); text-decoration: none; color: inherit; }
.head-phone:hover b { color: var(--red); }
a.tel { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
a.tel:hover { color: var(--red); }
.head-phone b { font-size: 15px; font-variant-numeric: tabular-nums; }
.head-phone span { font-size: 12px; color: var(--mute); }
.navband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.navband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; }
.mainnav { display: flex; align-items: stretch; gap: 2px; align-self: stretch; }
.mainnav > li { list-style: none; display: flex; }
.mainnav > li > a, .mainnav > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 15px; font-weight: 600; text-decoration: none; background: none; border: 0; color: var(--ink); position: relative; }
.mainnav > li > a::after, .mainnav > li > button::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.mainnav > li > a:hover::after, .mainnav > li > button:hover::after, .mainnav > li > [aria-expanded=true]::after, .mainnav > li > a.active::after { transform: scaleX(1); }
.mainnav > li > a:hover, .mainnav > li > button:hover { color: var(--ink); }
.mainnav .chev { width: 14px; height: 14px; transition: transform .2s; }
.mainnav [aria-expanded=true] .chev { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.vat-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.vat-switch .seg { padding: 2px; }
.vat-switch .seg button { padding: 4px 10px; min-height: 28px; font-size: 12.5px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(23, 24, 26, .12); z-index: 55; animation: megaIn .22s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.mega .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 1.15fr); gap: 36px; padding-block: 34px 38px; }
.mega h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.mega ul { display: grid; gap: 2px; }
.mega li { list-style: none; }
.mega li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; text-decoration: none; font-size: 15px; color: var(--ink); border-bottom: 1px solid transparent; }
.mega li a:hover { color: var(--red); }
.mega li a small { color: var(--mute); font-size: 12.5px; }
.mega-feature { display: grid; grid-template-rows: auto auto; gap: 12px; text-decoration: none; background: var(--stage); border-radius: var(--r-m); overflow: hidden; }
.mega-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mega-feature div { padding: 0 18px 18px; }
.mega-feature b { display: block; font-family: var(--f-display); font-stretch: 110%; font-size: 18px; }
.mega-feature span { font-size: 14px; color: var(--ink-2); }
.burger { display: none; }
@media (max-width: 1100px) {
  .head-phone { display: none; }
  .mainnav > li > a, .mainnav > li > button { padding: 0 10px; font-size: 14.5px; }
}
@media (max-width: 920px) {
  .navband { display: none; }
  .burger { display: inline-grid; }
  .masthead .wrap { grid-template-columns: auto auto minmax(0, 1fr) auto; min-height: 64px; gap: 10px; }
  .brand img { height: 40px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 10px; }
  .search input { height: 44px; }
  .head-actions { grid-column: 4; justify-self: end; }
  .head-act .lbl { display: none; }
  .usp-strip .strip-links { display: none; }
  .usp-list li { display: none; }
  .usp-list li.show { display: flex; }
}
.mobile-nav .drawer-body { padding: 0; }
.mnav-group { border-bottom: 1px solid var(--line); }
.mnav-group > a, .mnav-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 600; font-size: 17px; text-decoration: none; list-style: none; cursor: pointer; }
.mnav-group > summary::-webkit-details-marker { display: none; }
.mnav-group[open] > summary .chev { transform: rotate(180deg); }
.mnav-group ul { padding: 0 20px 14px; display: grid; }
.mnav-group li { list-style: none; }
.mnav-group li a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-2); }

/* ---------- footer ---------- */
.trustbar { background: var(--mist); border-top: 1px solid var(--line); }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 34px; }
.trust { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.trust .ic { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.trust b { display: block; font-size: 15.5px; }
.trust span { font-size: 14px; color: var(--mute); line-height: 1.45; display: block; margin-top: 2px; }
.site-foot { background: var(--night); color: var(--on-night); }
.site-foot a { color: var(--on-night); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 36px; padding-block: 56px 40px; }
.foot-brand img { height: 150px; width: auto; margin: -14px 0 0 -10px; }
.foot-brand p { margin-top: 18px; color: var(--on-night-mute); font-size: 14.5px; max-width: 36ch; }
.foot-brand .contact { margin-top: 18px; display: grid; gap: 6px; font-size: 15px; }
.site-foot h4 { color: #fff; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-foot ul { display: grid; gap: 9px; }
.site-foot li { list-style: none; font-size: 14.5px; color: var(--on-night-mute); }
.certs-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.certs-row .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-block: 22px; }
.cert-chip { display: inline-flex; align-items: center; gap: 12px; color: var(--on-night-mute); font-size: 13px; }
.cert-chip img { height: 38px; width: auto; background: #fff; border-radius: 3px; padding: 4px 6px; }
.cert-chip b { color: #fff; font: 600 12.5px var(--f-mono); display: block; }
.paychips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.paychips span { font: 600 11px/1 var(--f-body); padding: 7px 9px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; color: #e8e8e8; letter-spacing: .02em; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--on-night-mute); }
.foot-base .wrap > div { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 1000px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } .trustbar .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trustbar .wrap { grid-template-columns: minmax(0, 1fr); } .paychips { margin-left: 0; } }

/* ---------- page furniture ---------- */
main { min-height: 60vh; }
.page-head { padding-block: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 36px); }
.page-head.band { background: var(--mist); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 16px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--faint); }
.section { padding-block: clamp(48px, 6vw, 92px); }
.section.tight { padding-block: clamp(32px, 4vw, 56px); }
.section.mist { background: var(--mist); }
.section.night { background: var(--night); color: var(--on-night); }
.section.night h2, .section.night h3 { color: #fff; }
.section.night .lede, .section.night .muted { color: var(--on-night-mute); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head > div { max-width: 64ch; display: grid; gap: 12px; }
.grid { display: grid; gap: var(--g, 24px); grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid.c4 { --c: 2; } }
@media (max-width: 900px) { .grid { --c: 2 !important; } }
@media (max-width: 560px) { .grid { --c: 1 !important; } .grid.keep2 { --c: 2 !important; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(18px, 2.2vw, 28px); }
.panel.mist { background: var(--mist); border-color: transparent; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); border-top: 1px solid var(--line); }
.kv > * { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv dt { color: var(--mute); padding-right: 16px; }
.kv dd { margin: 0; color: var(--ink); }
.ticks { display: grid; gap: 10px; }
.ticks li { list-style: none; position: relative; padding-left: 28px; line-height: 1.5; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 50%; background: var(--red-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23C8161D' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.section.night .ticks li::before { background-color: rgba(200, 22, 29, .25); }
.empty-state { text-align: center; padding: clamp(36px, 6vw, 72px) 20px; display: grid; justify-items: center; gap: 14px; color: var(--mute); }
.empty-state .ic { width: 40px; height: 40px; color: var(--faint); }
.empty-state h3 { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.t th { text-align: left; font: 600 12px/1.2 var(--f-body); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--mist); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: #FAFAF8; }
table.t .r { text-align: right; }
table.t .c { text-align: center; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--mute); width: 36%; padding-right: 16px; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .ic { transition: transform .2s; }
details.acc[open] > summary .ic { transform: rotate(45deg); }
details.acc > .acc-body { padding-bottom: 20px; color: var(--ink-2); font-size: 15px; }

/* ---------- product imagery & cards ---------- */
.stage-img { background: var(--stage); position: relative; overflow: hidden; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: #fff; }
.pcard .stage-img { aspect-ratio: 4 / 5; border-radius: var(--r-s); }
.pcard .stage-img img + img { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .stage-img img + img { opacity: 1; }
.pcard:hover .stage-img img { transform: scale(1.025); }
.pcard .flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.pcard .side-hint { position: absolute; right: 12px; bottom: 12px; z-index: 2; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .88); padding: 5px 8px; border-radius: 2px; opacity: 0; transition: opacity .3s; }
.pcard:hover .side-hint { opacity: 1; }
.pcard .body { padding: 14px 2px 4px; display: grid; gap: 6px; align-content: start; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pcard h3 { font-size: 17px; font-stretch: 105%; line-height: 1.25; }
.pcard:hover h3 { color: var(--red); }
.pcard .price { font-size: 15px; color: var(--ink-2); }
.pcard .price b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 5px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.part-card .stage-img { aspect-ratio: 1; background: #F3F2EF; border-radius: var(--r-s); }
.part-card .stage-img img { object-fit: contain; }
.part-card .body { gap: 4px; }
.part-card .sku { font: 500 11.5px var(--f-mono); color: var(--mute); letter-spacing: .04em; }
.part-card .add { margin-top: 8px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 72px) / 4)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (max-width: 900px) { .scroller { grid-auto-columns: minmax(230px, 46%); } }
@media (max-width: 560px) { .scroller { grid-auto-columns: 78%; } }

/* ---------- home ---------- */
.hero { position: relative; background: var(--mist); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(24px, 3.4vw, 44px) clamp(20px, 2.6vw, 32px); }
.hero h1 { font-size: clamp(34px, 3.9vw, 56px); font-stretch: 112%; letter-spacing: -.025em; line-height: 1; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts b { font: 600 22px/1.1 var(--f-display); font-stretch: 110%; }
.hero-facts span { font-size: 13px; color: var(--mute); }
.hero-visual { position: relative; }
.hero-visual .stage-img { aspect-ratio: 5 / 4.1; border-radius: var(--r-m); box-shadow: var(--shadow-1); }
.hero-visual .stage-img img { position: absolute; inset: 0; }
.hero-visual .stage-img img.out { opacity: 0; }
.hero-label { position: absolute; left: clamp(-24px, -2vw, -10px); bottom: 28px; background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-2); padding: 16px 18px 14px; display: grid; gap: 10px; width: 300px; }
.hero-label .row.foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; align-items: center; white-space: nowrap; }
.hero-label .row.foot span { color: var(--ink-2); font-weight: 600; }
.hero-label .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13.5px; }
.hero-label .row span { color: var(--mute); }
.hero-label .ttl { font: 600 16px/1.25 var(--f-display); font-stretch: 108%; }
.hero-swatches { display: flex; gap: 8px; }
.hero-swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); padding: 0; }
.hero-swatches button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }
.hero-spin { position: absolute; right: 16px; top: 16px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-label { left: 12px; bottom: 12px; min-width: 0; max-width: calc(100% - 24px); }
}
.usp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.usp-cards > div { padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; }
.usp-cards > div + div { border-left: 1px solid var(--line); }
.usp-cards .ic { width: 26px; height: 26px; color: var(--red); }
.usp-cards b { font-size: 16px; }
.usp-cards span { font-size: 14px; color: var(--mute); line-height: 1.5; }
@media (max-width: 900px) { .usp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .usp-cards > div:nth-child(3) { border-left: 0; } .usp-cards > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .usp-cards { grid-template-columns: minmax(0, 1fr); } .usp-cards > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.style-tile { position: relative; display: block; text-decoration: none; color: var(--ink); }
.style-tile .stage-img { aspect-ratio: 3 / 4; border-radius: var(--r-s); }
.style-tile:hover .stage-img img { transform: scale(1.03); }
.style-tile .tcap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 12px; }
.style-tile b { font: 600 18px var(--f-display); font-stretch: 108%; }
.style-tile span { font-size: 13px; color: var(--mute); }
.feature-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature-band .stage-img { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
.feature-band .ticks { margin-top: 26px; }
.feature-band .ticks li { color: var(--on-night); }
@media (max-width: 900px) { .feature-band { grid-template-columns: minmax(0, 1fr); } }
.svc-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.svc-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--ink); }
.svc-card .stage-img { aspect-ratio: 16 / 10; }
.svc-card .body { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; }
.svc-card .no { font: 500 12px var(--f-mono); color: var(--red); letter-spacing: .08em; }
.svc-card p { font-size: 14.5px; color: var(--mute); }
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.who > a { padding: 26px 24px 28px 0; text-decoration: none; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.who > a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.who b { font: 600 20px var(--f-display); font-stretch: 108%; }
.who span { color: var(--mute); font-size: 14.5px; }
.who .arrow-link { margin-top: 6px; font-size: 14px; }
@media (max-width: 900px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } .who > a:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .who { grid-template-columns: minmax(0, 1fr); } .who > a + a { padding-left: 0; border-left: 0; } }
.cert-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cert-list { display: grid; gap: 12px; }
.cert-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.cert-item .seal { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); font: 600 11px/1.1 var(--f-mono); text-align: center; letter-spacing: .02em; }
.cert-item img { width: 60px; height: auto; }
.cert-item b { display: block; font-size: 15.5px; }
.cert-item span { font-size: 13.5px; color: var(--mute); }
.cert-item code { font: 600 12.5px var(--f-mono); color: var(--ink); background: var(--mist); padding: 4px 8px; border-radius: 2px; white-space: nowrap; }
@media (max-width: 900px) { .cert-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .cert-item { grid-template-columns: 52px minmax(0, 1fr); } .cert-item code { grid-column: 2; justify-self: start; } }
.article-card { display: grid; gap: 12px; text-decoration: none; color: var(--ink); align-content: start; }
.article-card .stage-img { aspect-ratio: 3 / 2; border-radius: var(--r-s); }
.article-card .k { font: 500 11.5px var(--f-mono); color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.article-card b { font: 600 19px/1.25 var(--f-display); font-stretch: 106%; }
.article-card:hover b { color: var(--red); }
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(28px, 4vw, 44px); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.4vw, 34px); }
.cta-band p { color: rgba(255, 255, 255, .86); margin-top: 8px; }

/* ---------- collection ---------- */
.collection { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.filters { position: sticky; top: 150px; display: grid; gap: 4px; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 14px; }
.filters legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filters legend + * { clear: both; }
.filters .check { font-size: 14.5px; margin-top: 8px; }
.filters .check .n { margin-left: auto; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.results-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.results-bar select { min-height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; border: 0; }
.chip .ic { width: 14px; height: 14px; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .collection { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; position: static; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
}

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.gallery { position: sticky; top: 150px; display: grid; gap: 12px; }
.gallery .main { aspect-ratio: 4 / 5; border-radius: var(--r-m); }
.gallery .main svg.door-drawing { width: 100%; height: 100%; background: #fff; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery .thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--stage); aspect-ratio: 1; overflow: hidden; position: relative; }
.gallery .thumbs button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); border-color: var(--ink); }
.gallery .thumbs img, .gallery .thumbs svg { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs .lbl { position: absolute; left: 4px; bottom: 4px; font: 600 9.5px var(--f-mono); background: rgba(255, 255, 255, .9); padding: 2px 4px; border-radius: 2px; text-transform: uppercase; letter-spacing: .04em; }
.gallery .live3d { position: absolute; inset: 0; }
.buybox { display: grid; gap: 22px; }
.buybox h1 { font-size: clamp(28px, 2.6vw, 40px); }
.buybox .sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.buybox .from { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buybox .from b { font: 600 34px/1 var(--f-display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.opt-block { display: grid; gap: 10px; }
.opt-block > .label { display: flex; justify-content: space-between; gap: 10px; }
.opt-block > .label span { font-weight: 400; color: var(--mute); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-row button { display: grid; justify-items: center; gap: 6px; padding: 0; background: none; border: 0; width: 64px; font-size: 11.5px; line-height: 1.2; color: var(--ink-2); text-align: center; }
.swatch-row button i { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); border: 3px solid #fff; outline: 1px solid var(--line-2); }
.swatch-row button[aria-pressed=true] i { outline: 2px solid var(--ink); }
.size-rows { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.size-row:last-child { border-bottom: 0; }
.size-row .sz b { display: block; font-variant-numeric: tabular-nums; }
.size-row .sz span { font-size: 12.5px; color: var(--mute); }
.size-row .pr { text-align: right; font-variant-numeric: tabular-nums; }
.size-row .pr b { display: block; font-size: 17px; }
.size-row .pr span { font-size: 12px; color: var(--mute); }
.size-row.sel { background: #FBFBFA; }
@media (max-width: 520px) { .size-row { grid-template-columns: minmax(0, 1fr) auto; } .size-row .qty { grid-column: 1 / -1; justify-self: start; } }
.delivery-box { display: grid; gap: 10px; padding: 16px 18px; background: var(--mist); border-radius: var(--r-m); font-size: 14.5px; }
.delivery-box div { display: flex; gap: 10px; align-items: flex-start; }
.delivery-box .ic { color: var(--red); margin-top: 2px; }
@media (max-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr); } .gallery { position: static; } }

/* ---------- configurator ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); min-height: calc(100vh - 170px); border-top: 1px solid var(--line); }
.cfg-stage { position: sticky; top: 132px; height: calc(100vh - 132px); background: var(--stage); overflow: hidden; }
.cfg-stage .vpk3d-canvas { width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.cfg-stage .vpk3d-canvas:active { cursor: grabbing; }
.cfg-stage .drawing-view { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; padding: 84px 20px 86px; }
.cfg-stage.drawing-mode .stage-hint, .cfg-stage.drawing-mode .side-flag, .cfg-stage.drawing-mode [data-reset] { display: none; }
@media (max-width: 600px) { .side-flag { top: auto; bottom: 66px; } .cfg-stage .drawing-view { padding: 96px 10px 70px; } }
.cfg-stage .drawing-view svg { max-height: 100%; width: auto; }
.stage-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; pointer-events: none; z-index: 3; }
.stage-top > * { pointer-events: auto; }
.stage-bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); padding: 6px; border-radius: 999px; box-shadow: var(--shadow-1); z-index: 3; white-space: nowrap; }
.stage-bar button { border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; color: var(--ink); }
.stage-bar button:hover { background: var(--mist); }
.stage-bar button[aria-pressed=true] { background: var(--ink); color: #fff; }
.stage-bar .sep { width: 1px; height: 22px; background: var(--line); }
.stage-label { background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-1); padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.stage-label .dim { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.stage-hint { position: absolute; right: 16px; top: 70px; font: 500 11.5px var(--f-mono); letter-spacing: .05em; color: var(--ink-2); background: rgba(255, 255, 255, .8); padding: 6px 9px; border-radius: 3px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--stage); z-index: 4; transition: opacity .4s; }
.stage-loading.done { opacity: 0; pointer-events: none; }
.stage-loading .spin { width: 34px; height: 34px; border: 2px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.side-flag { position: absolute; top: 74px; left: 16px; z-index: 3; font: 600 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 2px; transition: opacity .3s; }
.cfg-panel { display: flex; flex-direction: column; min-width: 0; background: #fff; border-left: 1px solid var(--line); }
.cfg-steps { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 132px; background: #fff; z-index: 4; }
.cfg-steps::-webkit-scrollbar { display: none; }
.cfg-steps button { flex: none; border: 0; background: none; padding: 14px 12px 12px; font-size: 13px; font-weight: 600; color: var(--mute); display: grid; justify-items: start; gap: 2px; border-bottom: 2px solid transparent; min-width: 0; }
.cfg-steps button .n { font: 500 10.5px var(--f-mono); color: var(--faint); }
.cfg-steps button.done { color: var(--ink-2); }
.cfg-steps button.done .n { color: var(--ok); }
.cfg-steps button.bad .n { color: var(--bad); }
.cfg-steps button[aria-current=step] { color: var(--ink); border-bottom-color: var(--red); }
.cfg-body { padding: 26px clamp(18px, 2.4vw, 32px) 32px; display: grid; gap: 26px; align-content: start; flex: 1; }
.cfg-body h2 { font-size: clamp(24px, 2vw, 30px); }
.cfg-body .q-help { color: var(--mute); margin-top: 8px; font-size: 15px; }
.cfg-body h3 { font-size: 15px; font-family: var(--f-body); font-stretch: 100%; letter-spacing: 0; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cfg-body h3 small { font-weight: 400; color: var(--mute); font-size: 13px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts.one { grid-template-columns: minmax(0, 1fr); }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px 14px 14px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: #fff; min-height: 64px; transition: border-color .15s, box-shadow .15s, background .15s; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FBFBFA; }
.opt[aria-pressed=true]::after { content: ''; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }
.opt[disabled] { opacity: .45; cursor: not-allowed; background: var(--mist); }
.opt .ot { font-weight: 600; font-size: 15px; line-height: 1.3; padding-right: 22px; }
.opt .od { font-size: 13px; color: var(--mute); line-height: 1.4; }
.opt .big-r { font: 600 22px/1 var(--f-display); font-stretch: 110%; }
.opt .tagline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.opt .thumb { margin: -6px -6px 8px; aspect-ratio: 4 / 5; background: var(--stage); border-radius: 4px; overflow: hidden; display: grid; place-items: center; }
.opt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.opt .thumb svg { height: 92%; width: auto; }
.opts.styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.styles .opt { padding: 8px 8px 12px; }
.opts.styles .ot { font-size: 14px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.swatch { display: grid; gap: 4px; text-align: left; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: #fff; font-size: 12.5px; line-height: 1.25; }
.swatch:hover { border-color: var(--ink); }
.swatch[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch .chip-c { height: 46px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swatch .chip-c.wood { background-image: repeating-linear-gradient(95deg, rgba(0, 0, 0, .0) 0 7px, rgba(60, 30, 10, .12) 7px 8px, rgba(0, 0, 0, 0) 8px 13px, rgba(60, 30, 10, .08) 13px 15px); }
.swatch .sn { font-weight: 600; }
.swatch .sc { font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.req { border: 1px dashed var(--line-2); border-radius: var(--r-m); padding: 12px 14px; }
.req summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.req textarea { margin-top: 10px; width: 100%; min-height: 80px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 10px; font-size: 14px; }
.measure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin-top: 14px; }
.measure div { background: #fff; padding: 12px 14px; display: grid; gap: 2px; }
.measure span { font-size: 12px; color: var(--mute); }
.measure b { font: 600 15px var(--f-mono); }
.cfg-foot { position: sticky; bottom: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px clamp(18px, 2.4vw, 32px) calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; z-index: 5; }
.cfg-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cfg-price .amt { font: 600 26px/1 var(--f-display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.cfg-price .per { font-size: 12.5px; color: var(--mute); display: block; margin-top: 4px; }
.cfg-nav { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.cfg-msg { font-size: 13px; }
@media (max-width: 1000px) {
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .cfg-stage { position: relative; top: 0; height: min(64vh, 560px); }
  .cfg-panel { border-left: 0; }
  .cfg-steps { top: 120px; }
  .stage-bar { bottom: 12px; max-width: calc(100% - 24px); overflow-x: auto; }
  .stage-hint { display: none; }
}
@media (max-width: 520px) { .opts, .opts.styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .opts.one { grid-template-columns: minmax(0, 1fr); } .stage-bar button span.t { display: none; } }

/* ---------- basket & checkout ---------- */
.basket { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.bline { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bline .th { aspect-ratio: 4 / 5; background: var(--stage); border-radius: var(--r-s); overflow: hidden; display: grid; place-items: center; }
.bline .th.sq { aspect-ratio: 1; background: #F3F2EF; }
.bline .th img { width: 100%; height: 100%; object-fit: cover; }
.bline .th.sq img { object-fit: contain; }
.bline .th svg { height: 90%; width: auto; }
.bline .info { display: grid; gap: 4px; min-width: 0; }
.bline .info b { font-size: 16px; }
.bline .info .small { color: var(--mute); }
.bline .acts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.bline .acts button, .bline .acts a { font-size: 13.5px; }
.bline .pr { text-align: right; display: grid; gap: 8px; justify-items: end; }
.bline .pr b { font-size: 17px; font-variant-numeric: tabular-nums; }
.summary { position: sticky; top: 150px; display: grid; gap: 14px; background: var(--mist); border-radius: var(--r-m); padding: 22px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.summary .row span:last-child { font-variant-numeric: tabular-nums; }
.summary .row.grand { font-size: 19px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line-2); }
.summary .row.dim { color: var(--mute); font-size: 13.5px; }
@media (max-width: 960px) { .basket { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }
@media (max-width: 520px) { .bline { grid-template-columns: 72px minmax(0, 1fr); } .bline .pr { grid-column: 2; justify-items: start; text-align: left; } }
.steps-line { display: flex; gap: 0; margin-bottom: 28px; counter-reset: s; flex-wrap: wrap; }
.steps-line li { list-style: none; flex: 1 1 0; min-width: 110px; padding: 10px 0; border-top: 3px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--mute); counter-increment: s; }
.steps-line li::before { content: counter(s, decimal-leading-zero) '  '; font-family: var(--f-mono); font-weight: 500; }
.steps-line li.done { border-color: var(--ink); color: var(--ink-2); }
.steps-line li.cur { border-color: var(--red); color: var(--ink); }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-m); cursor: pointer; background: #fff; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input { accent-color: var(--red); width: 18px; height: 18px; }
.pay-opt b { display: block; }
.pay-opt span { font-size: 13.5px; color: var(--mute); }
.pay-opt .brands { display: flex; gap: 4px; }
.pay-opt .brands i { font: 700 10px/1 var(--f-body); font-style: normal; border: 1px solid var(--line-2); border-radius: 3px; padding: 5px 6px; color: var(--ink-2); }
.timeline { display: grid; gap: 0; }
.timeline li { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; z-index: 1; }
.timeline .dot .ic { width: 14px; height: 14px; }
.timeline li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.timeline li.done::before { background: var(--ink); }
.timeline li.cur .dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.timeline b { display: block; font-size: 15px; }
.timeline span { font-size: 13.5px; color: var(--mute); }

/* ---------- account ---------- */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.acct-nav { display: grid; gap: 2px; position: sticky; top: 150px; }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.acct-nav a:hover { background: var(--mist); color: var(--ink); }
.acct-nav a.active { background: var(--ink); color: #fff; }
.acct-nav a .n { margin-left: auto; font-size: 12px; opacity: .7; }
@media (max-width: 900px) { .acct { grid-template-columns: minmax(0, 1fr); } .acct-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .acct-nav a { white-space: nowrap; } }
.order-card { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.order-card .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.track { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 4px; }
.track i { height: 6px; border-radius: 3px; background: var(--line); }
.track i.done { background: var(--ink); }
.track i.cur { background: var(--red); }
.track-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); gap: 8px; }

/* ---------- auth modal ---------- */
.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 6px 0 20px; }
.auth-tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; border-bottom: 2px solid transparent; color: var(--mute); }
.auth-tabs button[aria-pressed=true] { color: var(--ink); border-color: var(--red); }

/* ---------- back office ---------- */
.bo { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: #F6F6F4; }
.bo-side { background: var(--night); color: var(--on-night); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.bo-brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }
.bo-brand img { width: 38px; height: 38px; }
.bo-brand b { font: 600 15px/1.1 var(--f-display); font-stretch: 110%; display: block; }
.bo-brand span { font: 500 10.5px var(--f-mono); color: var(--on-night-mute); letter-spacing: .08em; text-transform: uppercase; }
.bo-nav { padding: 12px 10px; display: grid; gap: 1px; }
.bo-nav h5 { font: 500 10.5px var(--f-mono); color: #7f8288; letter-spacing: .1em; text-transform: uppercase; margin: 14px 10px 6px; }
.bo-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-s); color: #C9CBCF; text-decoration: none; font-size: 14px; font-weight: 500; }
.bo-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.bo-nav a.active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 2px 0 0 var(--red); }
.bo-nav a .ic { width: 18px; height: 18px; opacity: .85; }
.bo-nav a .n { margin-left: auto; font: 600 11px var(--f-body); background: var(--red); color: #fff; border-radius: 9px; padding: 1px 7px; }
.bo-nav a.locked { opacity: .38; }
.bo-side .who-am-i { margin-top: auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 8px; font-size: 13px; }
.bo-side .who-am-i select { width: 100%; background: var(--night-2); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-s); padding: 8px 10px; font-size: 13px; }
.bo-main { min-width: 0; display: flex; flex-direction: column; }
.bo-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 2.4vw, 32px); background: rgba(246, 246, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bo-top h1 { font-size: 21px; font-stretch: 108%; }
.bo-top .sp { flex: 1; }
.bo-top .sample { font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-tint); padding: 6px 10px; border-radius: 3px; white-space: nowrap; }
.bo-body { padding: clamp(16px, 2.4vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.bo-body .stack > *, .bo-body .box { min-width: 0; }
.bo-burger, .bo-close, .bo-scrim { display: none; }
@media (max-width: 1000px) {
  .bo { grid-template-columns: minmax(0, 1fr); }
  .bo-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(284px, 86vw); z-index: 70; transform: translateX(-100%); transition: transform .25s var(--ease), visibility 0s linear .25s; visibility: hidden; }
  .bo-side.open { transform: none; box-shadow: var(--shadow-2); visibility: visible; transition: transform .25s var(--ease), visibility 0s linear 0s; }
  .bo-burger { display: inline-grid; }
  .bo-brand { padding-right: 56px; position: relative; }
  .bo-close { display: inline-grid; place-items: center; position: absolute; top: 14px; right: 12px; width: 40px; height: 40px; border-radius: var(--r-s); border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; cursor: pointer; z-index: 2; }
  .bo-close:hover { background: rgba(255, 255, 255, .08); }
  .bo-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(14, 15, 17, .48); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
  .bo-side.open + .bo-scrim { opacity: 1; pointer-events: auto; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--ink-2); color: var(--ink); }
.kpi span { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.kpi b { font: 600 28px/1 var(--f-display); font-stretch: 106%; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; color: var(--mute); }
.kpi small.up { color: var(--ok); }
.bo-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1200px) { .bo-grid { grid-template-columns: minmax(0, 1fr); } }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.box-head h2 { font-size: 16px; font-family: var(--f-body); font-stretch: 100%; letter-spacing: 0; font-weight: 700; }
.box-body { padding: 16px 18px; }
.box-body.flush { padding: 0; }
.box .t th { background: #FAFAF8; }
.bo-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.bo-tabs button, .bo-tabs a { border: 0; background: none; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.bo-tabs button[aria-pressed=true], .bo-tabs a.active { color: var(--ink); border-color: var(--red); }
.bo-tabs .n { font-size: 12px; color: var(--faint); margin-left: 4px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input { min-height: 38px; padding: 7px 12px; font-size: 14px; max-width: 280px; }
.toolbar select.input { padding-right: 34px; }
.stage-track { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; }
.stage-track > div { position: relative; padding: 12px 8px 0 0; border-top: 3px solid var(--line); font-size: 12.5px; color: var(--mute); display: grid; gap: 2px; }
.stage-track > div b { font-size: 13px; color: var(--ink-2); }
.stage-track > div.done { border-color: var(--ink); }
.stage-track > div.cur { border-color: var(--red); }
.stage-track > div.cur b { color: var(--red); }
@media (max-width: 760px) { .stage-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } }
.log { display: grid; gap: 0; }
.log li { list-style: none; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.log b { font-weight: 600; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcard .kmove { padding: 4px 8px; min-height: 0; gap: 4px; font-size: 12px; }
.kcard .kmove .ic { width: 14px; height: 14px; }
.kcard .row:last-child { align-items: center; color: inherit; }
.band-row { display: flex; align-items: center; gap: 10px; min-height: 40px; flex-wrap: wrap; }
.band-row .sp { flex: 1; }
.zone { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; background: #FBFBFA; }
.zone-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) { .zone-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .zone-top .field:first-child { grid-column: 1 / -1; } }
.zone textarea { min-height: 54px; font: 500 13px var(--f-mono); }
.add-staff { padding: 16px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: #FBFBFA; }
.add-staff h3 { font-size: 16px; }
.kcol { background: #EFEFEC; border-radius: var(--r-m); padding: 10px; display: grid; gap: 8px; min-height: 200px; align-content: start; }
.kcol.over { background: #E6E6E1; box-shadow: inset 0 0 0 2px var(--line-2); }
.kcol h3 { font: 700 13px var(--f-body); letter-spacing: 0; display: flex; justify-content: space-between; padding: 4px 4px 6px; }
.kcol h3 span { color: var(--mute); font-weight: 600; }
.kcard { background: #fff; border-radius: var(--r-s); padding: 12px; display: grid; gap: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); border: 1px solid var(--line); cursor: grab; font-size: 13.5px; }
.kcard:active { cursor: grabbing; }
.kcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kcard b { font-size: 14px; }
.kcard .row { display: flex; justify-content: space-between; gap: 8px; color: var(--mute); font-size: 12.5px; }
.kcard .prog { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.kcard .prog i { display: block; height: 100%; background: var(--ok); }
.kcard.late { box-shadow: inset 3px 0 0 var(--bad); }
.shipment { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.shipment:last-child { border-bottom: 0; }
.shipment .when b { font: 600 17px var(--f-display); font-stretch: 106%; display: block; }
.shipment .when span { font-size: 12.5px; color: var(--mute); }
.cap { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; display: flex; }
.cap i { display: block; height: 100%; background: var(--ink); }
.cap i.over { background: var(--bad); }
.cap i.pend { background: repeating-linear-gradient(45deg, #9aa0a6 0 4px, #b9bec3 4px 8px); }
.alloc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alloc span { font: 500 11.5px var(--f-mono); background: var(--mist); border: 1px solid var(--line); padding: 3px 6px; border-radius: 2px; }
@media (max-width: 860px) { .shipment { grid-template-columns: minmax(0, 1fr); } }
.cal { display: grid; grid-template-columns: 120px repeat(var(--days, 10), minmax(84px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-m); overflow: auto; background: #fff; }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 64px; padding: 6px; font-size: 12.5px; position: relative; }
.cal .hd { background: #FAFAF8; font-weight: 600; min-height: 0; padding: 8px 6px; text-align: center; color: var(--ink-2); }
.cal .hd.we { color: var(--faint); }
.cal .crew { background: #FAFAF8; font-weight: 600; display: grid; align-content: center; gap: 2px; }
.cal .crew span { font-weight: 400; color: var(--mute); font-size: 11.5px; }
.cal .we { background: repeating-linear-gradient(135deg, #F7F7F5 0 6px, #F2F2EF 6px 12px); }
.cal .job { display: grid; gap: 2px; background: var(--ink); color: #fff; border-radius: 3px; padding: 5px 6px; font-size: 11.5px; line-height: 1.3; cursor: pointer; }
.cal .job.sugg { background: #fff; color: var(--ink); border: 1.5px dashed var(--red); }
.cal .job.done { background: var(--ok); }
.cal .gap { color: var(--faint); font-size: 11px; display: grid; place-items: center; height: 100%; }
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix input { width: 18px; height: 18px; accent-color: var(--ink); }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); }
.meter i.warn { background: var(--warn); }
.meter i.bad { background: var(--bad); }
.bars { display: grid; gap: 10px; }
.bars .bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 13.5px; }
.bars .bar .tr { height: 12px; background: var(--mist); border-radius: 2px; overflow: hidden; }
.bars .bar .tr i { display: block; height: 100%; background: var(--ink); }
.bars .bar b { text-align: right; font-variant-numeric: tabular-nums; }
.door-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.door-row:last-child { border-bottom: 0; }
.door-row .th { height: 86px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.door-row .th svg { height: 80px; width: auto; }

/* ---------- portals (factory & installer) ---------- */
.portal-head { background: var(--night); color: #fff; }
.portal-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.portal-head img { width: 38px; height: 38px; }
.portal-head b { font: 600 16px var(--f-display); font-stretch: 108%; }
.portal-head span { color: var(--on-night-mute); font-size: 13px; }
.portal-head .sp { flex: 1; }
.portal-head select { background: var(--night-2); color: #fff; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-s); padding: 7px 10px; font-size: 13px; }
.job-card { display: grid; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
.job-card:hover { border-color: var(--ink-2); color: var(--ink); }
.job-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.checklist { display: grid; gap: 0; }
.checklist label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.checklist input { width: 20px; height: 20px; accent-color: var(--ok); }
.sigpad { border: 1px solid var(--line-2); border-radius: var(--r-m); background: #fff; touch-action: none; width: 100%; height: 180px; }

/* ---------- A4 documents (quotes, manufacturing sheets, certificates) ---------- */
.docs-preview { display: grid; gap: 24px; justify-items: center; padding: 24px; background: #D9D8D4; border-radius: var(--r-m); overflow: auto; }
.a4 { width: 794px; min-height: 1123px; background: #fff; color: #17181A; box-shadow: 0 6px 30px rgba(0, 0, 0, .18); padding: 46px 50px 40px; font: 400 11px/1.45 var(--f-body); position: relative; display: flex; flex-direction: column; letter-spacing: .01px; }
/* the PDF renderer draws each glyph where the page put it when letter-spacing isn't zero, which keeps spacing exact */
.a4 * { font-variant-numeric: normal !important; font-stretch: 100% !important; }
.a4 * { font-size: inherit; }
.a4 .dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid #17181A; }
.a4 .dh img { height: 52px; width: auto; }
.a4 .dh .dt { text-align: right; }
.a4 .dh .dt b { display: block; font: 600 22px/1.25 var(--f-display); letter-spacing: -.01em; margin-bottom: 2px; }
.a4 .dh .dt span { display: block; font: 500 11px/1.4 var(--f-mono); color: #555; }
.a4 .addr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.a4 .addr h6 { font: 600 9px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #777; margin: 0 0 5px; }
.a4 .addr div { font-size: 11px; }
.a4 table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.a4 th { text-align: left; font: 600 9px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #666; padding: 7px 6px; border-bottom: 1px solid #17181A; }
.a4 td { padding: 8px 6px; border-bottom: 1px solid #E2E1DD; vertical-align: top; font-size: 10.5px; }
.a4 .r { text-align: right; }
.a4 .doorline { display: grid; grid-template-columns: 112px minmax(0, 1fr) 120px; gap: 14px; padding: 12px 0; border-bottom: 1px solid #E2E1DD; break-inside: avoid; }
.a4 .doorline .img { width: 112px; height: 140px; background: #E7E4DF; border-radius: 2px; overflow: hidden; display: grid; place-items: center; }
.a4 .doorline .img img { width: 100%; height: 100%; object-fit: cover; }
.a4 .doorline .img img.dimg { width: auto; height: auto; }
.a4 .doorline h5 { font: 600 12.5px/1.25 var(--f-display); font-stretch: 106%; margin: 0 0 4px; }
.a4 .doorline .spec { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1px 8px; font-size: 9.5px; color: #333; }
.a4 .doorline .spec span:nth-child(odd) { color: #777; }
.a4 .doorline .amt { text-align: right; font-variant-numeric: tabular-nums; }
.a4 .doorline .amt b { display: block; font-size: 12.5px; }
.a4 .totals { margin-left: auto; width: 300px; margin-top: 14px; display: grid; gap: 4px; }
.a4 .totals div { display: flex; justify-content: space-between; font-size: 11px; }
.a4 .totals .g { font-size: 14px; font-weight: 700; border-top: 2px solid #17181A; padding-top: 6px; margin-top: 4px; }
.a4 .note { font-size: 9.5px; color: #555; }
.a4 .df { margin-top: auto; padding-top: 14px; border-top: 1px solid #E2E1DD; display: flex; justify-content: space-between; gap: 16px; font-size: 8.5px; color: #777; }
.a4 .stamp { display: inline-block; border: 1.5px solid #17181A; font: 600 9.5px/14px var(--f-mono); letter-spacing: .04em; white-space: nowrap; }
.a4 .stamp b { display: inline-block; vertical-align: top; background: #17181A; color: #fff; padding: 3px 6px; line-height: 14px; }
.a4 .stamp span { display: inline-block; vertical-align: top; padding: 3px 6px; line-height: 14px; }
.a4 .redrule { width: 3px; background: var(--red); align-self: stretch; }
.a4 .box2 { border: 1px solid #CFCDC8; padding: 10px 12px; border-radius: 2px; }
.a4 .grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.a4 .sheet-draw { border: 1px solid #CFCDC8; display: grid; place-items: center; padding: 8px; height: 470px; }
.a4 .sheet-draw img, .a4 .dc-draw img { display: block; }
.a4 .qc label { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dotted #ccc; font-size: 10px; }
.a4 .qc i { width: 11px; height: 11px; border: 1px solid #17181A; display: inline-block; flex: none; }
.a4 h4 { font: 600 10px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; margin: 14px 0 6px; color: #444; }
.doc-wrap { max-width: 100%; overflow-x: auto; }

/* drawing (shared with the engine's SVG elevation) */
.door-drawing { width: 100%; height: auto; }
.dw-frame { fill: #EEECE8; stroke: #17181A; stroke-width: 3; }
.dw-leaf { stroke: #17181A; stroke-width: 3; }
.dw-op { fill: #F3F2EF; stroke: #17181A; stroke-width: 3; }
.dw-glass { fill: #CFE0E8; stroke: #6F8F9E; stroke-width: 3; }
.dw-wired { fill: #CFE0E8; stroke-dasharray: 10 6; }
.dw-obscure { fill: #DDE6EA; }
.dw-glint { stroke: #fff; stroke-width: 6; opacity: .7; }
.dw-bead { stroke: #17181A; stroke-width: 2; }
.dw-hw { fill: #9EA3A8; stroke: #444; stroke-width: 2; }
.dw-groove { stroke: rgba(0, 0, 0, .32); stroke-width: 6; }
.dw-groove.dw-on-dark { stroke: rgba(255, 255, 255, .22); }
.dw-moulding { fill: none; stroke: rgba(0, 0, 0, .22); }
.dw-moulding.dw-on-dark { stroke: rgba(255, 255, 255, .2); }
.dw-kick { fill: #B9BCBE; stroke: #6c7176; stroke-width: 2; }
.dw-sign { fill: #1E4C9A; stroke: #fff; stroke-width: 6; }
.dw-num { font: 600 90px var(--f-body); }
.dw-dim { stroke: #C8161D; stroke-width: 2.5; }
.dw-txt { fill: #C8161D; font: 600 40px var(--f-mono); }
.dw-floor { stroke: #17181A; stroke-width: 4; }
.dw-kick.far { fill: none; stroke: #6c7176; stroke-dasharray: 14 10; }
.dw-wall { fill: #D9D6CF; stroke: #17181A; stroke-width: 2; }
.dw-leafplan { fill: #17181A; }
.dw-leafplan.second { fill: #6c7176; }
.dw-swing { fill: none; stroke: #17181A; stroke-width: 2.5; stroke-dasharray: 12 9; }
.dw-pivot { fill: #C8161D; }
.dw-cap { fill: #17181A; font: 700 42px var(--f-body); letter-spacing: 2px; }
.dw-cap.sub { fill: #686B70; font: 500 36px var(--f-body); letter-spacing: 0; }
.door-scene .dw-frame, .door-scene .dw-leaf { stroke: rgba(0, 0, 0, .25); }

/* utility */
.hide { display: none !important; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.space-between { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.anim-in { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: .001; transform: translateY(10px); } }
[id] { scroll-margin-top: 150px; }
.door-row .th img { height: 84px; width: auto; border-radius: 2px; }
.vat-sfx { font-size: .8em; color: var(--mute); font-weight: 400; }
.portal main, .portal #main { background: #F6F6F4; min-height: 100vh; }

/* ---------- responsive helpers added in QA ---------- */
.duo { display: grid; grid-template-columns: minmax(0, var(--duo, 200px)) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 600px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo > :first-child { max-width: 240px; } }
.art-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.art-aside { position: sticky; top: 150px; }
@media (max-width: 900px) { .art-split { grid-template-columns: minmax(0, 1fr); } .art-aside { position: static; } }
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .kpis.kpis-3 { gap: 8px; } .kpis-3 .kpi { padding: 12px; } .kpis-3 .kpi b { font-size: 21px; } .kpis-3 .kpi span { font-size: 11.5px; } }
@media (max-width: 720px) {
  .bo-top { flex-wrap: wrap; row-gap: 10px; padding-block: 10px; }
  .bo-top h1 { font-size: 19px; }
  .bo-top #boActions { order: 9; flex: 1 1 100%; }
  .bo-top #boActions:empty { display: none; }
  .bo-top .sample { padding: 4px 8px; font-size: 10px; }
}
/* tables with four or more columns turn into labelled cards on phones (labels come from U.labelTables) */
@media (max-width: 640px) {
  table.t.rt thead { display: none; }
  table.t.rt, table.t.rt tbody, table.t.rt tr { display: block; width: 100%; }
  table.t.rt tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.t.rt tbody tr:last-child { border-bottom: 0; }
  table.t.rt td { display: block; position: relative; padding: 4px 0 4px calc(36% + 12px); border: 0; text-align: left; min-height: 26px; }
  table.t.rt td::before { content: attr(data-label); position: absolute; left: 0; top: 6px; width: 36%; font: 600 11px/1.4 var(--f-body); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
  table.t.rt td[data-label=""] { padding-left: 0; }
  table.t.rt td[data-label=""]::before { display: none; }
  table.t.rt td .input, table.t.rt td input { max-width: 100%; }
  table.t.rt tbody tr.click:hover td { background: none; }
  table.t.rt tbody tr.click:active { background: #FAFAF8; }
}
.scroll-btns { display: flex; gap: 8px; }
.icon-btn.round { border-radius: 50%; border-color: var(--line-2); background: #fff; }
.icon-btn.round:hover { border-color: var(--ink); background: #fff; }
.hero-label .ttl { color: var(--ink); }
/* the header carries the VAT switch on desktop; listing copies are for phones and tablets */
@media (min-width: 921px) { .section-head .vat-switch, .results-bar .vat-switch { display: none; } }
@media (max-width: 920px) { .scroll-btns { display: none; } }
/* the designer is an app: on desktop it fills the window under the header and the options scroll inside the panel */
#app.app-mode .site-foot { display: none; }
@media (min-width: 1001px) {
  .app-mode .cfg { height: calc(100vh - var(--head-h, 172px)); min-height: 560px; }
  .app-mode .cfg-stage { position: relative; top: 0; height: 100%; }
  .app-mode .cfg-panel { height: 100%; min-height: 0; overflow: hidden; }
  .app-mode .cfg-steps { position: static; flex: none; }
  .app-mode .cfg-body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }
  .app-mode .cfg-foot { position: static; flex: none; }
}
.a4 .drawcard { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid #E2E1DD; break-inside: avoid; }
.a4 .drawcard:last-child { border-bottom: 0; }
.a4 .dc-draw { border: 1px solid #CFCDC8; height: 400px; display: grid; place-items: center; padding: 8px; background: #fff; }

.a4 .dc-info h5 { font: 600 13px/1.25 var(--f-display); font-stretch: 106%; margin: 2px 0 6px; }
.a4 .dc-info .spec { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 3px 10px; font-size: 10px; color: #333; }
.a4 .dc-info .spec span:nth-child(odd) { color: #777; }
table.t td.mono { white-space: nowrap; }
@media (min-width: 1300px) { .kpis.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 701px) and (max-width: 1299px) { .kpis.kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.kpis-6, .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi b { font-size: 22px; } }
.cal .hd.today { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.cal > div.today:not(.hd) { background: #FFF9F8; }
.cal .job span { overflow-wrap: anywhere; }
.ready-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
/* remedial pricing lines */
.rlines { display: grid; gap: 10px; }
.rline { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #FCFCFB; }
.rline .rl-n { font: 600 12px var(--f-mono); color: var(--mute); padding-top: 10px; }
.rl-top { display: grid; grid-template-columns: minmax(0, 1fr) 130px 36px; gap: 8px; align-items: center; }
.rl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.rl-body label { display: grid; gap: 4px; }
.rl-body label > span { font-size: 11.5px; font-weight: 600; color: var(--mute); }
.rline .input { min-height: 36px; padding: 7px 10px; font-size: 14px; width: 100%; }
.rline textarea.input { resize: vertical; line-height: 1.4; }
.rl-price { position: relative; }
.rl-price span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: 14px; pointer-events: none; }
.rl-price .input { padding-left: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.rl-foot { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-top: 14px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 520px; }
.qchip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; color: var(--ink-2); }
.qchip:hover { border-color: var(--ink); }
.qchip b { color: var(--mute); font-weight: 600; margin-left: 2px; }
.rl-total { display: grid; justify-items: end; gap: 2px; }
.rl-total b { font: 600 22px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .rl-body { grid-template-columns: minmax(0, 1fr); } .rl-top { grid-template-columns: minmax(0, 1fr) 110px 36px; } }
/* office quotes: lines with type, qty, price and our cost */
.qlines { display: grid; gap: 10px; }
.qline { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #FCFCFB; }
.qline .rl-n { font: 600 12px var(--f-mono); color: var(--mute); padding-top: 10px; }
.qline .input { min-height: 36px; padding: 7px 10px; font-size: 14px; width: 100%; }
.qline textarea.input { resize: vertical; line-height: 1.4; }
.ql-row { display: grid; grid-template-columns: minmax(130px, 1.3fr) 76px minmax(100px, 1fr) minmax(100px, 1fr) minmax(90px, 1fr) 36px; gap: 8px; align-items: end; }
.ql-row label { display: grid; gap: 4px; min-width: 0; }
.ql-row label > span, .ql-tot > span { font-size: 11.5px; font-weight: 600; color: var(--mute); }
.ql-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.ql-tot { display: grid; gap: 4px; justify-items: end; padding-bottom: 8px; }
.ql-tot b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ql-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ql-row label:first-child { grid-column: 1 / -1; } .ql-tot { justify-items: start; padding-bottom: 0; } .ql-row .icon-btn { grid-column: 2; justify-self: end; } }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flist li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.flist li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.flist li > svg { flex: none; color: var(--mute); }
/* factory: workshop stage track */
.prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 470px); gap: 8px 20px; align-items: center; padding: 6px 0; }
.ptrack { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ptrack button { position: relative; border: 0; background: none; padding: 2px 0 0; display: grid; justify-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--faint); cursor: pointer; min-width: 0; }
.ptrack button::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.ptrack button:first-child::before { display: none; }
.ptrack button i { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; transition: transform .15s; }
.ptrack button:hover:not(:disabled) i { transform: scale(1.15); border-color: var(--ink-2); }
.ptrack button.done { color: var(--ink-2); }
.ptrack button.done i { background: var(--ok); border-color: var(--ok); }
.ptrack button.done::before, .ptrack button.cur::before { background: var(--ok); }
.ptrack button.cur { color: var(--ink); }
.ptrack button.cur i { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 24, 26, .12); }
.ptrack button:disabled { cursor: default; }
.ptrack button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 760px) { .prow { grid-template-columns: minmax(0, 1fr); } .ptrack button { font-size: 10px; } }
.next-job .job-card { border: 1.5px solid var(--ink); box-shadow: var(--shadow-1); }
/* parts dispatch queue */
.pqs { display: grid; gap: 12px; }
.pq { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; display: grid; gap: 8px; background: #fff; }
.pq-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.pq-top a { color: var(--ink); text-decoration: none; }
.pq-send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .pq-send { grid-template-columns: minmax(0, 1fr); } }
table.t tr.sub td { background: #FAFAF8; }
/* uploads: report files and photos */
.dropzone.big { padding: 36px 24px; border-width: 2px; }
.dropzone.big .ic { width: 30px; height: 30px; color: var(--red); }
.upl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.upl.sm { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.upl-i { position: relative; display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; min-width: 0; }
.upl-i img, .upl-doc { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: var(--mist); }
.upl-doc { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--mute); }
.upl-doc b { font: 600 11px var(--f-mono); letter-spacing: .06em; }
.upl-n { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upl-i .icon-btn { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; background: rgba(255, 255, 255, .92); border-color: var(--line); }
.order-card.req .rq-price { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.order-card.req .rq-price h4 { font: 700 15px var(--f-body); margin: 0; }
.order-card.req tr.off td { color: var(--faint); text-decoration: line-through; }
.rq-tot { display: grid; gap: 4px; max-width: 320px; margin-left: auto; width: 100%; }
.rq-tot .row { display: flex; justify-content: space-between; font-size: 14.5px; }
.rq-tot .row.grand { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 6px; }
.rline.acc { border-color: var(--ok); }


/* customer records: photos from installs and remedial visits */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--mist); }
.rq-done { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.rq-done h4 { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 15px; }
.rq-done h4 .ic { width: 18px; height: 18px; }
.report-cta { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-top: 8px; border-color: var(--line-2); }
.report-cta:hover { border-color: var(--ink-2); color: inherit; }
.report-cta > .ic:first-child { width: 28px; height: 28px; color: var(--red); flex: none; }
.report-cta > span { display: grid; gap: 4px; flex: 1; min-width: 0; }
.cal [data-cell] { cursor: copy; }
.cal [data-cell]:hover { background: #FAFAF7; }

.money-in { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ok-line { display: flex; align-items: center; gap: 6px; color: var(--ok); }
.ok-line .ic { width: 16px; height: 16px; flex: none; }

.sugg-btn { justify-content: space-between !important; white-space: normal; text-align: left; height: auto; gap: 8px; flex-wrap: wrap; }
.sugg-btn small { font-weight: 500; color: var(--mute); }
.sugg-btn small.warn { color: var(--warn); }

/* designer: hinge side plans and glass position */
.hand-opts .opt .thumb { aspect-ratio: 5 / 4; background: #fff; border: 1px solid var(--line); }
.hand-opts .opt .thumb svg { height: 94%; width: auto; }
.hand-plan .hp-wall { fill: #D9D6CF; stroke: #17181A; stroke-width: 1.2; }
.hand-plan .hp-leaf { fill: #17181A; }
.hand-plan .hp-leaf.second { fill: #9EA3A8; }
.hand-plan .hp-swing { fill: none; stroke: #17181A; stroke-width: 1.2; stroke-dasharray: 4 3; }
.hand-plan .hp-hinge { fill: var(--red); }
.hand-plan .hp-you { font: 700 10px var(--f-mono); letter-spacing: .08em; fill: var(--red); }
.hand-plan .hp-eye { fill: var(--red); }
.glz-custom { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; background: #FBFBFA; }
.glz-rules { border-left: 3px solid var(--ink); padding: 8px 0 8px 12px; display: grid; gap: 6px; }
.glz-rules b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.glz-rules b .ic { width: 16px; height: 16px; }
.glz-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); }

/* measuring guide */
.mguide { display: grid; gap: 14px; }
.mg-lede { margin: 0; }
.mg-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mg-figs figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; display: grid; gap: 6px; }
.mg-figs svg { width: 100%; height: auto; max-width: 260px; justify-self: center; }
.mg-figs figcaption { font-size: 12.5px; color: var(--mute); text-align: center; }
.mg-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.mg-steps li::marker { font-weight: 700; color: var(--red); }
.mg-more { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; background: #FBFBFA; }
.mg-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mg-more p { margin: 8px 0 0; font-size: 14px; }
.mg-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.measure-help { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.measure-help > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.measure-help > summary::-webkit-details-marker { display: none; }
.measure-help > summary .ic { width: 18px; height: 18px; color: var(--red); }
.measure-help > summary::after { content: '+'; margin-left: auto; font-weight: 500; color: var(--mute); }
.measure-help[open] > summary::after { content: '–'; }
.measure-help > .mguide { padding: 0 14px 14px; }
.fit-result { border-left: 3px solid var(--ok); padding: 6px 0 6px 12px; font-size: 14px; display: grid; gap: 2px; }
.fit-result.bad { border-color: var(--bad); }
.fitsize { display: grid; gap: 10px; }
.fitsize .grid-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.size-row .sz .bestfit, .size-row .sz b .bestfit { display: inline-block; vertical-align: 2px; font: 700 10.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ok); border-radius: 3px; padding: 2px 6px; margin-left: 6px; }
@media (max-width: 560px) { .mg-figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .mg-figs figure { padding: 6px; } }
/* measuring sheet (A4) */
.msheet .ms-form { display: grid; gap: 7px; align-content: start; }
.msheet .ms-row { display: grid; grid-template-columns: 128px 1fr; gap: 8px; align-items: stretch; }
.msheet .ms-h { display: grid; align-content: center; gap: 1px; font-size: 11px; }
.msheet .ms-h b { font-size: 11.5px; }
.msheet .ms-h span { color: #686B70; font-size: 9.5px; line-height: 1.25; }
.msheet .ms-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.msheet .ms-box { border: 1px solid #9A9DA2; border-radius: 3px; min-height: 46px; padding: 3px 6px; }
.msheet .ms-box span { font-size: 9px; color: #686B70; text-transform: uppercase; letter-spacing: .04em; }
.msheet .ms-ticks { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px solid #9A9DA2; border-radius: 3px; min-height: 40px; padding: 4px 10px; font-size: 11.5px; }
.msheet .ms-ticks em { color: #686B70; font-size: 10px; font-style: normal; }
.msheet .ms-tick { display: inline-flex; align-items: center; gap: 6px; }
.msheet .ms-tick i { width: 14px; height: 14px; border: 1.5px solid #17181A; border-radius: 2px; display: inline-block; }
.msheet .ms-side { display: grid; gap: 10px; align-content: start; justify-items: center; }
.msheet .ms-side img { border: 1px solid #DDD; border-radius: 4px; }
.msheet .ms-part { font: 600 9px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #444; border-bottom: 1px solid #17181A; padding: 6px 0 3px; margin-top: 2px; }
.msheet .ms-form { gap: 5px; }
.msheet .ms-box { min-height: 36px; }
.msheet .ms-ticks { min-height: 32px; }
.msheet-tight { display: contents; }

/* phones: product and part cards two to a row, sized to fit */
@media (max-width: 560px) {
  .grid.keep2 { --g: 12px !important; }
  .grid.keep2 .pcard .body { padding: 10px 10px 12px; gap: 6px; }
  .grid.keep2 .pcard h3 { font-size: 14px; line-height: 1.3; }
  .grid.keep2 .pcard .meta { flex-wrap: wrap; gap: 4px; }
  .grid.keep2 .pcard .meta .small { font-size: 11.5px; }
  .grid.keep2 .pcard .price { font-size: 13px; }
  .grid.keep2 .pcard .dots i { width: 10px; height: 10px; }
  .grid.keep2 .part-card .add .btn { width: 100%; justify-content: center; padding-inline: 8px; }
  .grid.keep2 .part-card .sku { font-size: 10.5px; }
  .grid.keep2 .style-tile .tcap b { font-size: 14px; }
}

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-s); padding: 10px 14px; font: 600 14px var(--f-body); }
.skip-link:focus { top: 12px; }

.cfg-panel .mg-figs { grid-template-columns: minmax(0, 1fr); }
.cfg-panel .mg-figs svg { max-width: 300px; }

.bo-brand:hover, .bo-brand:hover b { color: #fff; }

.report-band { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: #fff; text-decoration: none; color: var(--ink); }
.report-band:hover { border-color: var(--ink-2); color: var(--ink); }
.report-band > .ic { width: 32px; height: 32px; color: var(--red); flex: none; }
.report-band > span:nth-child(2) { display: grid; gap: 4px; flex: 1; min-width: 0; }
.report-band b { font: 600 19px/1.25 var(--f-display); font-stretch: 105%; }
.report-band > span:nth-child(2) span { color: var(--mute); }
@media (max-width: 640px) { .report-band { flex-wrap: wrap; } .report-band .btn { width: 100%; justify-content: center; } }

/* ---------- home: what we do ---------- */
.svc-intro { padding-bottom: clamp(32px, 4vw, 56px); }
.svc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.svc-grid .svc-card .stage-img { aspect-ratio: 4 / 3; }
.svc-grid .svc-card .body { padding: 18px 18px 20px; gap: 8px; }
.svc-grid .svc-card .ask { font-size: 13.5px; font-weight: 600; color: var(--red); line-height: 1.35; }
.svc-grid .svc-card h3 { font-size: 20px; }
.svc-grid .svc-card p { font-size: 14px; }
.svc-grid .svc-card .arrow-link { align-self: end; margin-top: 4px; color: var(--red); }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc-grid .svc-card { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; } .svc-grid .svc-card .stage-img { aspect-ratio: auto; height: 100%; min-height: 128px; } .svc-grid .svc-card .body { padding: 14px 14px 16px; } .svc-grid .svc-card p { display: none; } }
.help-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding: 16px 20px; border-radius: var(--r-m); background: var(--mist); }
.help-line > .ic { width: 26px; height: 26px; color: var(--red); flex: none; }
.help-line > span { flex: 1 1 320px; min-width: 0; color: var(--ink-2); }

/* ---------- partners ---------- */
.mono-tile { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ink); color: #fff; font: 600 clamp(18px, 2vw, 26px) var(--f-display); font-stretch: 110%; letter-spacing: .04em; border-radius: var(--r-s); }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .partner-grid { grid-template-columns: minmax(0, 1fr); } }
.partner-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.partner-card .logo { width: 148px; height: 96px; display: grid; place-items: center; background: var(--mist); border-radius: var(--r-s); padding: 12px; }
.partner-card .logo img { max-width: 100%; max-height: 72px; object-fit: contain; }
.partner-card .logo .mono-tile { width: 72px; height: 72px; }
.partner-card .body { display: grid; gap: 8px; min-width: 0; }
.partner-card h3 { font-size: 21px; }
.partner-card .muted { font-size: 14.5px; }
.partner-card .arrow-link { overflow-wrap: anywhere; }
@media (max-width: 520px) { .partner-card { grid-template-columns: minmax(0, 1fr); } .partner-card .logo { width: 100%; } }
.partner-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.partner-mini { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; text-decoration: none; color: var(--ink); }
.partner-mini:hover { border-color: var(--ink-2); color: var(--ink); }
.partner-mini .logo { width: 88px; height: 56px; display: grid; place-items: center; }
.partner-mini .logo img { max-width: 100%; max-height: 52px; object-fit: contain; }
.partner-mini .logo .mono-tile { width: 52px; height: 52px; font-size: 17px; }
.partner-mini b { display: block; font-size: 15.5px; }
.partner-mini span span { display: block; font-size: 13.5px; color: var(--mute); margin-top: 2px; }

/* ---------- back office: finishes, website ---------- */
.ic.up { transform: rotate(180deg); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn[disabled] { opacity: .3; cursor: not-allowed; }
.fin-head, .fin-row { display: grid; grid-template-columns: auto minmax(0, .9fr) minmax(0, 1.1fr) auto auto; gap: 10px; align-items: center; }
.fin-first { display: flex; gap: 8px; align-items: center; min-width: 40px; }
.fin-row .fin-desc { grid-column: 2 / -1; font-size: 13px; min-height: 34px; }
.smp-card .smp-desc { display: block; color: #444; line-height: 1.4; margin-top: 2px; }
.fin-photo { display: inline-flex; align-items: center; gap: 4px; }
.fin-photo i { display: block; width: 54px; height: 38px; border-radius: 4px; background-size: cover; background-position: center; border: 1px solid rgba(0, 0, 0, .14); }
.fin-photo .btn { min-height: 32px; padding: 4px 10px; }
.swatch .chip-c.photo, .smp-sw.photo { background-size: cover; background-position: center; }
.fin-head { margin-top: 12px; padding: 0 0 6px; font-size: 12px; }
.fin-head span:nth-child(3) { grid-column: 3 / -1; }
.fin-list { display: grid; gap: 8px; }
.fin-row { padding: 8px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.fin-row.incomplete { border-style: dashed; border-color: var(--warn); }
.fin-row .input { min-height: 38px; padding: 7px 10px; font-size: 14px; }
.fin-row .fin-opt { width: auto; }
.fin-row select.fin-opt { padding-right: 30px; }
.fin-row .check { font-size: 13.5px; white-space: nowrap; }
.fin-sw { position: relative; width: 38px; height: 38px; cursor: pointer; }
.fin-sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.fin-sw i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); box-shadow: inset 0 0 0 3px #fff; pointer-events: none; }
.fin-sw:focus-within i { outline: 2px solid var(--ink); outline-offset: 2px; }
.fin-acts { display: inline-flex; gap: 2px; justify-content: flex-end; }
.fin-warn { grid-column: 2 / -1; color: var(--warn); }
.fin-row:has(select.fin-opt) { grid-template-columns: 40px minmax(0, .8fr) minmax(0, 1fr) auto auto auto; }
@media (max-width: 720px) {
  .fin-head { display: none; }
  .fin-row, .fin-row:has(select.fin-opt) { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .fin-row > .input:nth-of-type(2) { grid-column: 2 / 3; }
  .fin-row .fin-opt { grid-column: 2 / 3; }
  .fin-row .fin-acts { grid-column: 3; grid-row: 1; }
}
.toggle-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; }
.toggle-row > span { display: grid; gap: 3px; }
.toggle-row b { font-size: 15px; }
.switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; margin: 0; border-radius: 12px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .18s var(--ease); }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.partner-edit { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); }
.pe-logo { display: grid; gap: 8px; justify-items: start; align-content: start; }
.pe-logo > img { width: 150px; height: 84px; object-fit: contain; background: var(--mist); border-radius: var(--r-s); padding: 8px; }
.pe-logo > .mono-tile { width: 84px; height: 84px; }
.box .partner-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
.box .partner-card .logo { width: 100%; height: 84px; }
.pe-logo label.btn { cursor: pointer; }
.pe-fields { display: grid; gap: 12px; min-width: 0; }
.pe-fields .field textarea { min-height: 96px; }
@media (max-width: 640px) { .partner-edit { grid-template-columns: minmax(0, 1fr); } }
.foot-top.no-shop { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .foot-top.no-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- designer: detailing a door for one of our projects ---------- */
.cfg-project { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--info-tint); color: #1c3d63; font-size: 13.5px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cfg-project .ic { width: 18px; height: 18px; flex: none; }
.cfg-project > span { flex: 1 1 200px; min-width: 0; }
/* ---------- back office: door schedule table ---------- */
.t.sched td { vertical-align: top; }
.t.sched td .pill { white-space: nowrap; }
.t.sched td.chk { min-width: 240px; max-width: 320px; }

/* ---------- back office: set-up steps ---------- */
.steps-list { counter-reset: st; display: grid; gap: 14px; padding: 0; margin: 0; }
.steps-list li { list-style: none; counter-increment: st; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.55; }
.steps-list li::before { content: counter(st); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 13px var(--f-mono); }
.steps-list code, code.copyable { font: 500 12.5px var(--f-mono); background: var(--mist); padding: 2px 6px; border-radius: 3px; overflow-wrap: anywhere; }
code.copyable { cursor: copy; }

/* ---------- team app: sign-in, who's signed in, crews ---------- */
.spin { display: inline-block; width: 18px; height: 18px; flex: none; border: 2px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; vertical-align: -3px; }
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 18px; background: var(--night); padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.gate-card { width: min(420px, 100%); background: var(--paper); border-radius: var(--r-l); padding: clamp(22px, 5vw, 32px); box-shadow: var(--shadow-2); display: grid; gap: 10px; }
.gate-card h1 { font-size: clamp(26px, 6vw, 32px); }
.gate-card > .pill { justify-self: start; }
.gate-card .notice { margin-top: 6px; }
.gate-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.gate-brand img { width: 48px; height: 48px; }
.gate-brand b { display: block; font: 600 16px/1.2 var(--f-display); font-stretch: 110%; }
.gate-brand span { font-size: 13px; color: var(--mute); }
.gate-load { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; color: var(--mute); }
.gate-foot { margin: 0; font-size: 13.5px; color: var(--on-night-mute); text-align: center; }
.gate-foot a, .gate-foot .link-btn { color: var(--on-night); }
.gate-foot .link-btn { font-size: inherit; }
.staff-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.staff-bar .sb-who { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; font-size: 13px; color: inherit; }
.staff-bar .sb-who > span { color: inherit; font-size: inherit; min-width: 0; }
.staff-bar .sb-who .ic { width: 18px; height: 18px; flex: none; }
.staff-bar .sb-who b { display: block; font: 600 13.5px/1.25 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.staff-bar .sb-who small { display: block; color: var(--mute); font-size: 12px; }
.staff-bar.dark { color: var(--on-night); }
.staff-bar.dark .sb-who small { color: var(--on-night-mute); }
.staff-bar.dark .btn-ghost { --bf: var(--on-night); border-color: rgba(255, 255, 255, .22); }
.staff-bar.dark .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.bo-side .who-am-i .staff-bar { gap: 10px; }
.portal-head .staff-bar .sb-who b { max-width: 140px; }
@media (max-width: 560px) { .portal-head .staff-bar .sb-who { display: none; } }
.crew-edit .crew-row { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.crew-edit .crew-row .grid-fields { gap: 10px; }
.guide-text { width: 100%; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; min-height: 260px; }
.nowrap { white-space: nowrap; }
.portal-head .portal-bo { --bf: var(--on-night); border-color: rgba(255, 255, 255, .22); }
.portal-head .portal-bo:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- delete and other risky actions ---------- */
.btn.btn-ghost.btn-danger { --bf: var(--bad); color: var(--bad); border-color: rgba(180, 35, 24, .35); }
.btn.btn-ghost.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ---------- one person's access ---------- */
.pa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; }
.pa-grid h5 { margin: 0 0 6px; font: 600 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pa-grid .check { margin-top: 6px; }

/* finance: sales and profit by month */
.fin-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; }
.fc-col { flex: 1; min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; justify-items: center; }
.fc-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; height: 100%; }
.fc-bars i { width: 42%; max-width: 18px; border-radius: 2px 2px 0 0; min-height: 1px; }
.fc-s { background: var(--ink); }
.fc-p { background: var(--red); }
.fc-col span { font-size: 11px; color: var(--mute); }
.fc-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
/* finish samples */
.smp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.smp-card { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; align-content: start; }
.smp-sw.wood { background-image: repeating-linear-gradient(93deg, rgba(0, 0, 0, 0) 0 9px, rgba(60, 30, 10, .10) 9px 10px, rgba(0, 0, 0, 0) 10px 17px, rgba(60, 30, 10, .07) 17px 19px), linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .05)); }
.smp-sw { aspect-ratio: 4 / 3; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); max-width: 100%; }
.smp-b { display: grid; gap: 2px; min-width: 0; }
.smp-b b { font-size: 15px; }
.smp-card .btn { justify-self: start; }
.a4 .prose-doc h2 { font: 600 13.5px/1.3 var(--f-display); margin: 14px 0 4px; }
.a4 .prose-doc p { margin: 0 0 6px; }
.a4 .prose-doc ul { margin: 0 0 6px; padding-left: 16px; }
.a4 .prose-doc li { margin: 0 0 3px; }
.thumb-up { position: relative; display: inline-block; cursor: pointer; }
.thumb-up > span { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; }
.thumb-up > span svg { width: 12px; height: 12px; }
.thumb-up:hover img { outline: 2px solid var(--ink); }
.smp-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.smp-row > div:first-child { min-width: 0; }
.smp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
/* home: the five services straight under the headline */
.hero-svc-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); padding-bottom: clamp(24px, 3vw, 40px); }
.hero-svc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hero-svc a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.hero-svc a:hover { border-color: var(--ink); transform: translateY(-1px); }
.hero-svc a > svg { flex: none; width: 22px; height: 22px; color: var(--red); }
.hero-svc span { display: grid; gap: 1px; min-width: 0; }
.hero-svc b { font: 600 15px/1.2 var(--f-display); font-stretch: 106%; }
.hero-svc small { font-size: 12.5px; color: var(--mute); line-height: 1.3; }
@media (max-width: 1100px) { .hero-svc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hero-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .hero-svc a { padding: 12px; gap: 10px; align-items: flex-start; } .hero-svc a:last-child { grid-column: 1 / -1; } .hero-svc small { font-size: 12px; } }
.dw-far { fill: none !important; stroke: #6c7176; stroke-dasharray: 10 8; }
/* manufacturing and installation packs */
.a4 table.tight th { padding: 5px 5px; font-size: 8.5px; }
.a4 table.tight td { padding: 4px 5px; font-size: 9.5px; line-height: 1.35; }
.a4 table.tight td.n { font-family: var(--f-mono); white-space: nowrap; }
.a4 table.tight tr.hl td { background: #FFF6DA; }
.a4 .mfg-img { border: 1px solid #CFCDC8; display: grid; place-items: center; padding: 6px; }
.a4 .mfg-img img { display: block; }
.a4 .steps { counter-reset: st; margin: 0; padding: 0; list-style: none; }
.a4 .steps > li { counter-increment: st; position: relative; padding: 0 0 6px 24px; font-size: 10.5px; }
.a4 .steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #17181A; color: #fff; font: 700 9px/16px var(--f-mono); text-align: center; }
.a4 .warnbox { border-left: 3px solid #C8161D; background: #FBF2F2; padding: 7px 10px; font-size: 10px; }
.a4 .kv2 { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 3px 10px; font-size: 10.5px; align-content: start; }
.a4 .kv2 > span:nth-child(odd) { color: #666; }
.a4 .spec-q { font: 400 9.5px/1.45 var(--f-mono); background: #F5F4F0; border: 1px solid #E2E1DD; padding: 7px 9px; white-space: pre-wrap; }
.a4 .mfg-stamps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* illustrated guides: a picture beside each step */
.a4 .gstep { display: grid; grid-template-columns: 328px minmax(0, 1fr); gap: 16px; align-items: start; padding: 10px 0 12px; border-bottom: 1px solid #E2E1DD; break-inside: avoid; }
.a4 .gstep:last-child { border-bottom: 0; }
.a4 .gs-pic { border: 1px solid #CFCDC8; padding: 4px; background: #fff; display: grid; place-items: center; }
.a4 .gs-pic img { display: block; }
.a4 .gstep h5 { font: 600 13.5px/1.25 var(--f-display); font-stretch: 106%; margin: 2px 0 7px; display: flex; gap: 9px; align-items: center; }
.a4 .gstep h5 i { width: 21px; height: 21px; border-radius: 50%; background: #17181A; color: #fff; font: 700 11px/21px var(--f-mono); text-align: center; font-style: normal; flex: none; }
.a4 .gstep h5 .pg { margin-left: auto; font: 500 8.5px var(--f-mono); color: #888; letter-spacing: .04em; }
.a4 .gstep ul { margin: 0; padding-left: 15px; font-size: 10.5px; line-height: 1.42; }
.a4 .gstep li { margin: 0 0 4px; }
.a4 .gstep li b { font-weight: 600; }
.a4 .gstep .must { border-left: 3px solid #C8161D; padding: 4px 8px; margin-top: 6px; font-size: 10px; background: #FBF2F2; }
.a4 .gpart { border-bottom: 2px solid #17181A; margin-top: 14px; padding-bottom: 6px; }
.a4 .gpart h3 { font: 600 15px/1.2 var(--f-display); margin: 0 0 3px; }
.a4 .gpart p { margin: 0; font-size: 10.5px; color: #444; }
.a4 .gintro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; align-items: start; padding: 6px 0 10px; border-bottom: 2px solid #17181A; }
.a4 .gintro h2 { font: 600 22px/1.15 var(--f-display); letter-spacing: -.01em; margin: 0 0 8px; }
.a4 .gintro p { margin: 0 0 6px; font-size: 11px; }
.a4 .gkit { background: #F5F4F0; border: 1px solid #E2E1DD; padding: 9px 11px; font-size: 10px; }
.a4 .gkit > b { display: block; font: 600 9px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #666; margin-bottom: 5px; }
.a4 .gkit ul { margin: 0; padding-left: 14px; }
/* materials for remedial lines */
.mats { display: grid; gap: 6px; margin-top: 8px; padding: 8px 10px; background: var(--mist); border-radius: var(--r-m); }
.mats > .small.muted { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.mat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px 32px; gap: 8px; align-items: center; }
.mat-row .input { min-height: 34px; padding: 4px 8px; }
.mat-row .mat-n { min-width: 0; font-size: 13px; }
.mat-add { min-height: 34px; padding: 4px 8px; }
.mat-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mat-line:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .mat-row { grid-template-columns: minmax(0, 1fr) 64px 32px; } .mat-row > :nth-child(2) { grid-column: 1 / -1; } }

/* Costs & margins: items we don't supply */
.t tr.is-off td { color: var(--mute); }
.t tr.is-off td:first-child { text-decoration: line-through; text-decoration-color: var(--line-2); }
.t tr.is-off td:first-child .pill { text-decoration: none; }
.t td.c, .t th.c { text-align: center; }
.t td.c input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; }
/* ironmongery photo slots (Back office → Finishes) */
.iron-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.iron-cell { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.iron-pic { aspect-ratio: 1; border-radius: 4px; background: var(--mist); display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.iron-pic img { width: 100%; height: 100%; object-fit: cover; }
.iron-pic svg { width: 28px; height: 28px; }

/* quality records: factory stages and the installers' checks, with notes, photos and label numbers */
.qa-card { display: grid; gap: 8px; }
.qa-stage { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.qa-stage > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.qa-stage > summary::-webkit-details-marker { display: none; }
.qa-stage > summary i { width: 24px; height: 24px; border-radius: 50%; background: var(--stone); color: var(--ink); font: 700 12px/24px var(--f-mono); text-align: center; font-style: normal; flex: none; }
.qa-stage.done > summary i { background: var(--ok); color: #fff; }
.qa-stage > summary b { flex: 1; min-width: 0; }
.qa-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.qa-body .checklist label { align-items: flex-start; }
.qa-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.qa-ph { margin: 0; }
.qa-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.qa-ph figcaption { font-size: 11px; margin-top: 2px; line-height: 1.3; }
.qa-labels td { padding: 6px 8px; vertical-align: middle; }
.qa-labels td:first-child { white-space: nowrap; }
.qa-lblform { flex-wrap: wrap; }
.qa-inst .qa-item { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.qa-inst .qa-item:last-child { border-bottom: 0; }
.qa-item-x { display: flex; gap: 8px; align-items: center; padding-left: 30px; }
.qa-item-x .input { flex: 1; min-width: 0; }
.qa-sum > summary { cursor: pointer; padding: 6px 0; }
.qa-sum .qa-card { margin: 6px 0 12px; }
/* stock page sections */
.stock-sec { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); }
.stock-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.stock-sec > summary::-webkit-details-marker { display: none; }
.stock-sec > summary b { flex: 1; min-width: 0; }
.stock-sec > summary svg { width: 16px; height: 16px; transition: transform .15s; color: var(--mute); }
.stock-sec[open] > summary { border-bottom: 1px solid var(--line); }
.stock-sec[open] > summary svg { transform: rotate(180deg); }
/* visitors a day */
.vbars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 6px 0 0; border-bottom: 1px solid var(--line); }
.vbars span { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.vbars i { display: block; width: 100%; min-height: 2px; background: var(--ink-2); border-radius: 2px 2px 0 0; }
.vbars i.ord { background: var(--red); }
/* quality page progress bars */
.qbar { display: inline-block; width: 90px; height: 8px; background: var(--stone); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.qbar i { display: block; height: 100%; border-radius: 4px; }

.bo-ver { padding: 10px 18px 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; opacity: .7; }
