
@font-face { font-family: "Teko"; src: url(/assets/fonts/Teko.woff) format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/assets/fonts/Montserrat.woff) format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #111214; --ink-2: #1b1d20; --steel: #2a2e33; --graphite: #4b5058; --muted: #646a73; --mist: #9aa0a8;
  --line: #e1e4e8; --line-strong: #c9cdd3; --bg: #f3f4f5; --paper: #ffffff; --surface: #ffffff; --surface-2: #eef0f2;
  --brand: #111214; --brand-ink: #ffffff; --brand-soft: #eceef1; --accent: #111214;
  --ok: #1c6b3f; --ok-soft: #e4f2ea; --warn: #8a5300; --warn-soft: #fbf0dc; --bad: #a3261b; --bad-soft: #fbe7e4;
  --info: #1f4a7d; --info-soft: #e6eef8;
  --radius: 4px; --radius-sm: 3px;
  --display: "Teko", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: .95; letter-spacing: .01em; margin: 0 0 .45rem; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); } h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); } h3 { font-size: 1.35rem; }
p { margin: 0 0 .9rem; }
.muted { color: var(--muted); } .small { font-size: .84rem; } .mono { font-family: var(--mono); font-size: .88em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.lede { font-size: 1.02rem; color: var(--graphite); max-width: 62ch; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--paper); padding: 8px 12px; }
::selection { background: var(--ink); color: #fff; }

/* banners */
.banner { padding: 7px 16px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.banner.sandbox { background: #ffd84d; color: #2b2200; }
.banner.preview { background: var(--steel); color: #e9ecef; text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: .8rem; }

/* layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 4px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); }

/* cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card h2 { font-size: 1.55rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2.wide-left { grid-template-columns: 2fr 1fr; } }
@media (min-width: 960px) and (max-width: 1199px) { .office .grid-2, .office .grid-2.wide-left { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; background: var(--surface-2); transform: rotate(35deg); }
.stat .label { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; position: relative; z-index: 1; padding-right: 22px; }
.stat .value { font-family: var(--display); font-size: 2.3rem; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }

/* product cards (shop) */
.product-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.product-card .img { aspect-ratio: 1/1; background: var(--surface-2) center/contain no-repeat; display: grid; place-items: center; color: var(--mist); }
.product-card .body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.product-card strong { font-family: var(--display); font-size: 1.45rem; font-weight: 600; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
.product-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(17,18,20,.45); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; background: var(--surface-2); }
tbody tr:hover { background: #f8f9fa; }

dl.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 7px 18px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .86rem; } dl.kv dd { margin: 0; }

/* badges */
.badge { display: inline-block; padding: 3px 8px; border-radius: 2px; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--surface-2); color: var(--graphite); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--ink); color: #fff; }

/* alerts */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border-left: 3px solid currentColor; background: var(--surface); }
.alert.ok { background: var(--ok-soft); color: var(--ok); } .alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.bad { background: var(--bad-soft); color: var(--bad); } .alert.info { background: var(--info-soft); color: var(--info); }
.alert a { color: inherit; }

/* forms */
form.stack { display: grid; gap: 16px; max-width: 660px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, legend { font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.field .hint { color: var(--muted); font-size: .82rem; }
.field .error, .error { color: var(--bad); font-size: .84rem; font-weight: 600; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=tel], input[type=search], input[type=url], input[type=password], input:not([type]), select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(17,18,20,.12); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--bad); }
textarea { min-height: 100px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; font-size: .92rem !important; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; }
legend { padding: 0 6px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.size-grid label { font-size: .72rem; letter-spacing: .1em; color: var(--muted); display: grid; gap: 4px; text-transform: uppercase; font-weight: 600; }

/* product edit: stock grid, sectioned form, side column */
.product-edit { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1200px) { .product-edit { grid-template-columns: minmax(0, 1fr) 300px; } .pe-side { position: sticky; top: 16px; } }
.pe-side .card h2 { font-size: 1.3rem; }
.pe-side dl.kv { grid-template-columns: 92px 1fr; font-size: .9rem; }
.pe-photo { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; }
.pe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-photo img.stand-in { opacity: .5; filter: grayscale(1); }
.pe-photo .badge { position: absolute; top: 10px; left: 10px; }
.pe-upload { display: grid; gap: 8px; margin-top: 12px; }
.pe-upload input[type=file] { font: inherit; font-size: .82rem; width: 100%; }
.pe-upload .btn { justify-self: start; }
.product-form { display: grid; grid-template-columns: minmax(0, 1fr); }
.product-edit > *, .product-form > * { min-width: 0; }
.pf-section + .pf-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pf-section h3 { font-size: 1.1rem; letter-spacing: .04em; margin: 0 0 12px; color: var(--graphite); }
.pf-section > .form-grid + .field { margin-top: 14px; }
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: start; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 640px) { .form-grid .span-2 { grid-column: span 2; } }
.savebar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -10px 24px -18px rgba(17,18,20,.45); }
.card .savebar { margin: 16px 0 0; }
.offer-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 10px; }
.offer-group summary, .variant-more summary { cursor: pointer; font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.offer-grid { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 12px; }
.stock-stats { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
@media (min-width: 640px) { .stock-stats { grid-template-columns: repeat(4, 1fr); } }
.stock-stats > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 2px; }
.stock-stats b { font-family: var(--display); font-size: 1.9rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.stock-stats b small { font-size: 1.1rem; color: var(--muted); }
.stock-stats span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stock-stats .warn b { color: var(--warn); }
.stock-grid table { width: auto; min-width: 100%; }
.stock-grid th, .stock-grid td { vertical-align: middle; padding: 6px 8px; }
.stock-grid th.num, .stock-grid td.num { text-align: center; }
.stock-grid td { text-align: center; font-variant-numeric: tabular-nums; }
.stock-grid th[scope=row] { position: sticky; left: 0; z-index: 1; background: var(--surface); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .9rem; text-align: left; padding-right: 16px; }
.stock-grid tfoot th[scope=row] { background: var(--surface-2); text-transform: uppercase; font-size: .68rem; letter-spacing: .16em; color: var(--muted); }
.stock-grid tbody tr:hover th[scope=row] { background: #f8f9fa; }
.stock-grid .total { font-weight: 700; background: var(--surface-2); min-width: 64px; }
.stock-grid input.qty { width: 64px; height: 38px; padding: 6px 4px; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stock-grid input.qty::-webkit-outer-spin-button, .stock-grid input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-grid td.zero input.qty { border-color: var(--warn); background: var(--warn-soft); }
.stock-grid td.off, .legend-line .key.off { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 12px); }
.stock-grid td.off input { opacity: .6; }
.stock-grid td.na { color: var(--mist); }
.legend-line { margin: 10px 0 0; }
.legend-line .key { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line-strong); vertical-align: -2px; margin: 0 4px 0 10px; }
.legend-line .key.zero { background: var(--warn-soft); border-color: var(--warn); }
.variant-more { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.variant-more > p { margin: 10px 0; }
.cost-cell { display: grid; gap: 4px; justify-items: center; }
.cost-cell input[type=text] { width: 84px; height: 36px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.cost-cell input[type=text]::placeholder { color: var(--mist); }
.cost-cell .sold { display: flex; gap: 5px; align-items: center; font-size: .72rem; color: var(--muted); cursor: pointer; }
.cost-cell .sold input { width: 16px; height: 16px; accent-color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 2px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font: 700 .74rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; min-height: 44px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--steel); border-color: var(--steel); }
.btn.danger { color: var(--bad); border-color: var(--bad); } .btn.danger:hover { background: var(--bad); color: #fff; }
.btn.small { padding: 6px 12px; min-height: 32px; font-size: .66rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arrow { transition: transform .2s var(--ease); } .btn:hover .arrow { transform: translateX(4px); }
.inline-form { display: inline; }

/* tabs and filters */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; }
.filters .field { min-width: 170px; }

/* job board */
.board { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); overflow-x: auto; padding-bottom: 8px; }
.board .col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.board .col h3 { font-size: 1.1rem; color: var(--graphite); }
.board .job { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px; }

.empty { text-align: center; color: var(--muted); padding: 36px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.price { font-family: var(--display); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px 24px; margin-bottom: 24px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; } .hero p { color: #c9cdd3; max-width: 640px; }

/* office shell: compact top bar below 960px, sticky sidebar from 960px */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.office { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.office main { padding: 20px 16px 56px; min-width: 0; width: 100%; max-width: 1640px; }
.office main > .banner { border-radius: var(--radius-sm); margin-bottom: 16px; }
.sidebar { display: none; }
.office-top, .sidebar { --nav-fg: #dfe2e6; --nav-dim: #9aa0a8; --nav-line: #2f3338; }
.office-top :focus-visible, .sidebar :focus-visible { outline-color: #fff; }
.office-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--ink); color: #c9cdd3; }
.office-top .brand-logo { color: #fff; display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; padding: 4px 0; }
.office-top .brand-logo .logo-sym svg { height: 22px; width: auto; } .office-top .brand-logo .logo-word svg { height: 13px; width: auto; }
.office-top .office-search { flex: 1; min-width: 0; }
@media (max-width: 479px) { .office-top .brand-logo .logo-word { display: none; } .office-top .office-search button { display: none; } .office-top .office-search input[type=search] { border-radius: var(--radius-sm); } }
.office-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #4b5058; border-radius: 2px; color: #fff; font: 700 .68rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; user-select: none; }
.office-menu > summary::-webkit-details-marker { display: none; }
.office-menu > summary::before { content: ""; width: 14px; height: 10px; background: linear-gradient(currentColor 0 0) top/100% 2px no-repeat, linear-gradient(currentColor 0 0) center/100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat; }
.office-menu[open] > summary { background: #fff; color: var(--ink); border-color: #fff; }
.office-menu-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 60px); overflow-y: auto; overscroll-behavior: contain; background: var(--ink); border-top: 1px solid var(--nav-line); padding: 4px 12px 16px; box-shadow: 0 24px 40px -16px rgba(0,0,0,.55); }
.office-menu-panel .office-nav { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.office-menu-panel .office-nav a { padding-top: 9px; padding-bottom: 9px; }
.office-menu-panel .whoami { margin-top: 12px; }

/* shared by the sidebar and the mobile menu */
.office-search { display: flex; }
.office-search input[type=search] { min-width: 0; padding: 8px 10px; font-size: .84rem; color: #fff; background: var(--ink-2); border: 1px solid #3a3f46; border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.office-search input[type=search]::placeholder { color: #8b919a; }
.office-search input[type=search]:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
.office-search button { flex: none; padding: 0 12px; background: #fff; color: var(--ink); border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: 700 .62rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.office-search button:hover { background: #dfe2e6; }
.office-nav ul { list-style: none; margin: 0; padding: 0; }
.office-nav .group { font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3em; color: #8b919a; margin: 16px 10px 5px; }
.office-nav a { display: block; color: var(--nav-fg); text-decoration: none; padding: 6px 10px; border-radius: 2px; font-size: .85rem; line-height: 1.4; border-left: 2px solid transparent; }
.office-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.office-nav a[aria-current="page"] { background: rgba(255,255,255,.1); border-left-color: #fff; color: #fff; font-weight: 600; }
.office-nav .nav-more > summary { list-style: none; cursor: pointer; padding: 5px 10px; border-left: 2px solid transparent; color: var(--nav-dim); font-size: .72rem; letter-spacing: .06em; }
.office-nav .nav-more > summary::-webkit-details-marker { display: none; }
.office-nav .nav-more > summary::after { content: " +"; } .office-nav .nav-more[open] > summary::after { content: " \2212"; }
.office-nav .nav-more > summary:hover { color: #fff; }
.office-nav .nav-more a { padding-left: 18px; font-size: .82rem; }
.whoami { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 10px; align-items: start; font-size: .74rem; line-height: 1.35; color: var(--nav-dim); border-top: 1px solid var(--nav-line); padding: 12px 4px 4px; }
.whoami .avatar { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font: 600 1.05rem/1 var(--display); padding-top: 2px; }
.whoami .who { min-width: 0; display: grid; }
.whoami .who strong { color: #fff; font-weight: 600; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami .mfa { color: #ffd84d; }
.whoami .signout { justify-self: start; margin-top: 6px; color: var(--nav-fg); text-decoration: none; border: 1px solid #4b5058; border-radius: 2px; padding: 6px 10px; font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.whoami .signout:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 960px) {
  .office-top { display: none; }
  .office { grid-template-columns: 244px minmax(0, 1fr); }
  .sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #c9cdd3; padding: 18px 12px 0; }
  .sidebar .side-brand { padding: 4px 6px 0; }
  .sidebar .brand-logo { color: #fff; display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .sidebar .brand-logo .logo-sym svg { height: 24px; width: auto; } .sidebar .brand-logo .logo-word svg { height: 15px; width: auto; }
  .sidebar .office-tag { font-size: .6rem; letter-spacing: .3em; color: var(--mist); text-transform: uppercase; margin-top: 6px; }
  .sidebar .office-nav { flex: 1; }
  .sidebar .office-nav .group:first-child { margin-top: 2px; }
  .sidebar .whoami { position: sticky; bottom: 0; background: var(--ink); padding-bottom: 14px; }
  .office main { padding: 28px 36px 72px; }
}
@media (min-width: 1600px) { .office main { padding-left: 48px; padding-right: 48px; } }

/* staff sign-in */
.signin-body { background: var(--ink); }
.signin { position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--ink); color: #c9cdd3; }
.signin > .blades { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.signin :focus-visible { outline-color: #fff; }
.signin .signin-card :focus-visible { outline-color: var(--ink); }
.signin-box { position: relative; width: 100%; max-width: 440px; display: grid; gap: 20px; }
.signin-brand { display: grid; justify-items: center; gap: 10px; }
.signin-brand .brand-logo { color: #fff; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.signin-brand .brand-logo .logo-sym svg { height: 36px; width: auto; } .signin-brand .brand-logo .logo-word svg { height: 21px; width: auto; }
.signin-brand .office-tag { font-size: .64rem; letter-spacing: .42em; color: var(--mist); text-transform: uppercase; padding-left: .42em; }
.signin-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.signin-card h1 { font-size: 2.5rem; margin-bottom: 6px; }
.signin-card h2 { font-size: 1.3rem; margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.signin-card .btn { width: 100%; }
.signin-card form.stack { gap: 8px; max-width: none; }
.signin-card .alert { font-size: .84rem; }
.signin-foot { text-align: center; font-size: .78rem; margin: 0; }
.signin-foot a { color: #dfe2e6; }

/* ==== office pages: one rhythm for headers, forms, filters, tables and side columns ==== */
/* page header: title block grows, actions stay right and level with the title */
.office .page-head { align-items: flex-start; row-gap: 12px; }
.office .page-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.office .page-head h1 { overflow-wrap: anywhere; }
.office .page-head > .actions { flex: 0 1 auto; justify-content: flex-end; padding-top: 6px; }
.office .page-head:has(.crumbs) > .actions { padding-top: 24px; }
@media (max-width: 700px) { .office .page-head > .actions { justify-content: flex-start; padding-top: 0 !important; } }
/* controls: inputs, selects and buttons share one height so rows line up */
.office main input[type=text], .office main input[type=email], .office main input[type=number], .office main input[type=date], .office main input[type=tel],
.office main input[type=search], .office main input[type=url], .office main input[type=password], .office main input:not([type]), .office main select { height: 44px; padding: 9px 12px; }
.office main input[type=file] { font: inherit; font-size: .84rem; max-width: 100%; }
.office main .field > input[type=file] { min-height: 44px; padding: 10px 0; }
.office dl.kv dd .badge { white-space: normal; }
.office main .field .hint, .office main .field .error { line-height: 1.45; }
/* one-button forms and small inline forms (input + button) sit on one line */
.office .inline-form { display: inline-flex; vertical-align: middle; gap: 8px; align-items: center; }
.office main > form.inline-form { display: flex; flex-wrap: wrap; margin-bottom: 14px; }
.office .actions > .inline-form, .office .actions > form { display: flex; margin: 0; }
.office main form.inline-form:has(> input:not([type=hidden]), > select) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.office main form.inline-form:has(> input:not([type=hidden]), > select) > :is(input, select) { flex: 1 1 160px; width: auto; min-width: 0; height: 38px; padding: 6px 10px; }
.office main form.inline-form:has(> input:not([type=hidden]), > select) > .btn.small { min-height: 38px; }
.office main td form.inline-form:has(> input:not([type=hidden]), > select) { margin: 0; gap: 6px; min-width: 12em; }
.office main td form.inline-form > input[type=number] { width: 5.5em; flex: none; }
.office main td form.inline-form > input[type=date] { width: 10.5em; flex: none; }
.office main td form.inline-form > label.small { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.office main td form.inline-form:has(> input:not([type=hidden]), > select) > :is(input, select) { flex: 0 1 auto; height: 34px; }
.office main td form.inline-form:has(> input:not([type=hidden]), > select) > .btn.small { min-height: 34px; }
td .inline-form + .inline-form, td .btn + .inline-form, td .inline-form + .btn, td .btn + .btn { margin-left: 6px; }
/* vertical rhythm between stacked form blocks in cards and plain forms */
.office :is(.card, form:not(.row):not(.filters):not(.stack):not(.inline-form):not(.form-grid), details, fieldset) > :is(.row, .field, .form-grid, fieldset, .table-wrap, .filters, form:not(.inline-form), dl.kv, .empty, .alert)
  + :is(.row, .field, .form-grid, fieldset, .table-wrap, form, .actions, .btn, button, details, dl.kv, .check, p, .alert, .empty) { margin-top: 14px; }
.office .card > :is(.inline-form, .btn) + :is(form, .field, .row, h3) { margin-top: 12px; }
.office .card > :is(form, .actions, .btn, .inline-form, .table-wrap, .row) + :is(h3, h4) { margin-top: 22px; }
.office .card h3 { font-size: 1.2rem; }
.office .card > form.stack + form.stack { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.office form.stack > h3 { margin: 0; }
.office .btn { line-height: 1.25; text-align: center; }
.office .row.qty-row { grid-template-columns: minmax(0, 1fr) 120px; }
.office .card > dl.kv + p, .office .card > dl.kv + div { margin-top: 12px; }
.office .row { gap: 12px 14px; }
.office .row > :is(.btn, button, .actions, .inline-form), .office .row > div:has(> .btn:only-child) { align-self: end; }
.office .row > .field:has(> .check) { align-self: end; min-height: 44px; align-content: center; }
/* fields side by side: labels, inputs and hints each share a track, so a label that wraps to two lines
   no longer pushes its input below its neighbours'; buttons and checkboxes line up with the inputs */
@supports (grid-template-rows: subgrid) {
  .office :is(.row, .form-grid) { row-gap: 8px; }
  .office :is(.row, .form-grid) > .field:not(:has(> .check)):not(:has(> :nth-child(4))) { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; }
  .office :is(.row, .form-grid) > .field:not(:has(> .check)):not(:has(> :nth-child(4))) > label { align-self: end; }
  .office :is(.row, .form-grid) > :not(.field), .office :is(.row, .form-grid) > .field:has(> .check) { grid-row: span 2; }
}
.office fieldset { padding: 12px 16px 16px; }
.office form.stack:has(.table-wrap, table) { max-width: none; }
.office form.stack > :is(.btn, button) { justify-self: start; }
/* filter bars: fields grow to a sensible width, the button and checkboxes line up with the inputs */
.office .filters { gap: 10px 12px; }
.office form.inline-form.filters { display: flex; }
.office .filters > .field { flex: 1 1 170px; min-width: 150px; max-width: 280px; }
.office .filters > .field:has(> .check) { flex: 0 0 auto; min-width: 0; min-height: 44px; align-content: center; }
.office .filters > :is(.btn, button) { flex: none; }
.office .filters > .field:has(> input[type=file]) { flex-basis: 260px; max-width: 380px; }
.office .card > .filters:last-child { margin-bottom: 0; }
/* tables: denser type, ids and dates on one line, controls inside cells sized to the row */
.office table { font-size: .9rem; line-height: 1.45; }
.office th, .office td { padding: 10px 12px; }
.office td.nowrap, .office th.nowrap, .office td .mono, .office td.mono { white-space: nowrap; }
.office td .badge { vertical-align: 1px; }
.office td :is(input[type=text], input[type=number], input:not([type]), input[type=date], select) { height: 36px; padding: 6px 8px; min-width: 64px; }
.office td .btn.small { white-space: nowrap; }
.office .card > .table-wrap:last-child { margin-bottom: 0; }
.office .card > .table-wrap + .small, .office .card > .table-wrap + p { margin-top: 10px; }
/* stats: values never wrap; tighter labels; stat rows fill the width */
.office .stat .label { letter-spacing: .14em; }
.office .stat .value { white-space: nowrap; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.office .card .stat .value { font-size: 1.75rem; }
.office .grid:has(> .stat) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.office .grid:not(:last-child) { margin-bottom: 16px; }
/* cards laid out in a .grid share the row instead of leaving empty columns */
.office .grid:has(> .card) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.office .grid > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.office .grid > .card > .btn:last-child { margin-top: auto; align-self: flex-start; }
/* detail pages: main + side; cards in a column keep their own height */
.office .grid-2 { align-items: start; }
.office .grid-2 > div > .card:last-child { margin-bottom: 0; }
.office .grid-2 { margin-bottom: 16px; }
.office .grid-2 > .card { margin-bottom: 0; }
@media (min-width: 1200px) { .office .grid-2.wide-left { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); } }
.office .grid-2 > * { min-width: 0; }
.office :is(.row, .form-grid, form.stack, .grid, .filters) > *, .office .card { min-width: 0; }
.office pre { overflow-wrap: anywhere; max-width: 100%; }
.office .field { grid-template-columns: minmax(0, 1fr); }
.office .grid-2.wide-left > :last-child table { font-size: .82rem; }
.office .grid-2.wide-left > :last-child :is(th, td) { padding: 8px 9px; }
.office td.sizes { min-width: 7.5em; }
.office td.line-main { min-width: 15em; }
.nowrap:not(td):not(th) { white-space: nowrap; }
.office dl.kv { gap: 8px 18px; }
.office dl.kv dd { min-width: 0; overflow-wrap: break-word; }
.office .tabs { margin-bottom: 20px; }
.office .empty { padding: 28px 16px; }
@media (max-width: 600px) {
  .office .card { padding: 16px; }
  .office .filters > .field { max-width: none; flex-basis: 100%; }
  .office .filters > :is(.btn, button) { width: 100%; }
  .office dl.kv { grid-template-columns: minmax(96px, 40%) 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .office-top, .site-header, .site-footer, .banner, .actions, .no-print { display: none !important; } body { background: #fff; } .office { display: block; } .office main { padding: 0; max-width: none; } .card { border-color: #ccc; } }

/* ==== purchasing (areas/admin/purchasing.tsx) ==== */
.btn.plain { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.plain:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.office main td input.cell-num { width: 7em; height: 38px; padding: 6px 10px; text-align: right; }
.office main td input.cell-short { width: 7em; min-width: 5em; height: 38px; padding: 6px 10px; }
.office main table.po-entry td { vertical-align: middle; padding-top: 6px; padding-bottom: 6px; }
.office main table.po-entry td select, .office main table.po-entry td input:not(.cell-num):not(.cell-short) { width: 100%; min-width: 11em; height: 38px; padding: 6px 10px; }
/* manual PO lines: a table on wide screens, one small form per line below that */
@media (max-width: 1199px) {
  .office main table.po-entry thead { display: none; }
  .office main table.po-entry, .office main table.po-entry tbody { display: block; }
  .office main table.po-entry tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .office main table.po-entry td { display: block; padding: 0; border: 0; text-align: left; }
  .office main table.po-entry td::before { content: attr(data-label); display: block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .office main table.po-entry td.po-entry-no { grid-column: 1 / -1; font-weight: 700; }
  .office main table.po-entry td.po-entry-no::before { content: "Line"; display: inline; margin-right: 6px; }
  .office main table.po-entry td[data-label="Catalogue product"], .office main table.po-entry td[data-label="Description"] { grid-column: span 2; }
  .office main table.po-entry td input, .office main table.po-entry td select { width: 100% !important; min-width: 0 !important; text-align: left; }
}
@media (max-width: 560px) {
  .office main table.po-entry tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.short-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.short-actions > .btn, details.resolve > summary { white-space: nowrap; }
.short-actions > .small { align-self: center; white-space: nowrap; }
details.resolve > summary { list-style: none; cursor: pointer; }
details.resolve > summary::-webkit-details-marker { display: none; }
details.resolve[open] { align-self: stretch; }
details.resolve[open] > summary { margin-bottom: 10px; }
details.resolve form.stack { min-width: 240px; gap: 10px; }

/* ==== price calculator — the price workbench (areas/catalogue/calculator.tsx) ==== */
.calc { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: 20px; }
@media (min-width: 1100px) { .calc { grid-template-columns: minmax(0, 1fr) 380px; } .calc-side { position: sticky; top: 16px; } }
.calc-build { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.calc-step + .calc-step { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-step h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.calc-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font); font-size: .78rem; font-weight: 700; }
.calc-tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .calc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.calc-tile { position: relative; cursor: pointer; }
.calc-tile input, .calc-item input { position: absolute; opacity: 0; pointer-events: none; }
.calc-tile-in { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 12px 11px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .15s, background .15s, transform .15s var(--ease); }
.calc-tile-in svg { color: var(--graphite); margin-bottom: 4px; }
.calc-tile-in strong { font-size: .86rem; line-height: 1.2; }
.calc-tile-in small { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.calc-tile:hover .calc-tile-in { border-color: var(--line-strong); transform: translateY(-1px); }
.calc-tile input:checked + .calc-tile-in { border-color: var(--ink); background: var(--ink); color: #fff; }
.calc-tile input:checked + .calc-tile-in svg, .calc-tile input:checked + .calc-tile-in small { color: #c9cdd3; }
.calc-tile input:focus-visible + .calc-tile-in, .calc-item input:focus-visible + span { outline: 2px solid var(--info); outline-offset: 2px; }
.calc [data-for] { display: none; }
.calc:has(input[name=process][value=EMB]:checked) [data-for~=EMB], .calc:has(input[name=process][value=DTF]:checked) [data-for~=DTF],
.calc:has(input[name=process][value=HTV]:checked) [data-for~=HTV], .calc:has(input[name=process][value=SUB]:checked) [data-for~=SUB],
.calc:has(input[name=process][value=SCR]:checked) [data-for~=SCR], .calc:has(input[name=process][value=CMT]:checked) [data-for~=CMT],
.calc:has(input[name=process][value=SUP]:checked) [data-for~=SUP], .calc:has(input[name=process][value=SIGN]:checked) [data-for~=SIGN] { display: block; }
.calc [data-for] + [data-for], .calc [data-for] + .row, .calc .row + [data-for] { margin-top: 12px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.calc-chip { font: inherit; font-size: .76rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--graphite); cursor: pointer; }
.calc-chip:hover { border-color: var(--ink); color: var(--ink); }
.calc-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc-items { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 14px; }
.calc-item { position: relative; cursor: pointer; }
.calc-item span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); height: 100%; }
.calc-item strong { font-size: .84rem; } .calc-item small { font-size: .74rem; color: var(--muted); }
.calc-item input:checked + span { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.calc-more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.calc-more > summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--graphite); }
.calc-more[open] > summary { margin-bottom: 14px; }
.calc-more .row + .row, .calc-more .row + .field { margin-top: 12px; }
.calc-go { display: flex; gap: 14px; align-items: center; margin-top: 20px; }

/* the price ticket */
.calc-client { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; margin: 0 0 10px; cursor: pointer; }
.calc-client input { width: 18px; height: 18px; accent-color: var(--ink); }
.calc-ticket { background: var(--ink); color: #f3f4f5; border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: 0 10px 30px rgba(17,18,20,.18); }
.calc-ticket.empty { background: var(--surface); color: var(--ink); border: 1.5px dashed var(--line-strong); box-shadow: none; }
.calc-ticket .muted, .calc-ticket .small.muted { color: #9aa0a8; }
.calc-ticket a { color: #fff; }
.calc-what { font-size: .8rem; letter-spacing: .02em; color: #c9cdd3; line-height: 1.45; }
.calc-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; flex-wrap: wrap; }
.calc-price .price { font-family: var(--display); font-size: 4rem; line-height: .95; font-weight: 600; color: #fff; letter-spacing: .01em; }
.calc-price span { color: #9aa0a8; font-size: .84rem; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 14px; border-bottom: 1px dashed #3a3f45; font-size: .86rem; color: #c9cdd3; }
.calc-total strong { color: #fff; font-size: 1.15rem; }
.calc-ticket .alert { margin: 12px 0 0; }
.calc-meter { padding: 14px 0 4px; }
.calc-meter-head { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #c9cdd3; }
.calc-meter-head strong { color: #fff; font-size: 1.05rem; }
.calc-meter-head .badge { margin-left: auto; }
.calc-meter-track { position: relative; height: 10px; border-radius: 5px; background: #2a2e33; margin: 10px 0 4px; }
.calc-meter-track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #5fbf8a; }
.calc-meter.below .calc-meter-track .fill { background: #e66767; }
.calc-meter-track .floor { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; }
.calc-meter-scale { position: relative; height: 16px; font-size: .68rem; color: #9aa0a8; }
.calc-meter-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.calc-meter-scale span:first-child { transform: none; left: 0; }
.calc-ticket .bad-text { color: #ff9b94; margin: 6px 0 0; }
.calc-anatomy { padding: 12px 0 4px; }
.calc-sub { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9aa0a8; margin-bottom: 8px; }
.calc-stack { display: flex; gap: 2px; height: 14px; }
.calc-stack span { min-width: 3px; }
.calc-stack span:first-child { border-radius: 4px 0 0 4px; } .calc-stack span:last-child { border-radius: 0 4px 4px 0; }
.calc-legend { list-style: none; padding: 0; margin: 10px 0 8px; display: grid; gap: 4px; font-size: .78rem; color: #c9cdd3; }
.calc-legend li { display: flex; align-items: center; gap: 6px; }
.calc-legend i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.calc-legend span { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.calc-legend em { font-style: normal; color: #9aa0a8; width: 3em; text-align: right; font-variant-numeric: tabular-nums; }
.calc-nudge { margin-top: 14px; padding: 11px 13px; border-radius: var(--radius); background: #fff3c4; color: #3d2f00; font-size: .82rem; line-height: 1.45; }
.calc-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.calc-ticket .btn { border-color: #fff; color: #fff; background: transparent; }
.calc-ticket .btn:hover { background: #fff; color: var(--ink); }
.calc-ticket .btn.plain { border-color: #4b5058; }
body:has(#calc-client:checked) .internal { display: none; }
body:has(#calc-client:checked) .calc-ticket { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
body:has(#calc-client:checked) .calc-ticket .price, body:has(#calc-client:checked) .calc-total strong { color: var(--ink); }
body:has(#calc-client:checked) .calc-ticket .btn { border-color: var(--ink); color: var(--ink); }
body:has(#calc-client:checked) .calc-what, body:has(#calc-client:checked) .calc-total { color: var(--graphite); }

/* insights */
.calc-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.calc-grid > .card { margin: 0; }
.calc-insights > .card, .calc-insights > .alert, .calc-insights > .internal { margin-top: 16px; }
.calc-insights > :first-child { margin-top: 0; }
.calc-curve { width: 100%; max-width: 860px; height: auto; display: block; overflow: visible; }
.calc-pills { display: none; list-style: none; margin: 0; padding: 0; gap: 6px; flex-wrap: wrap; }
.calc-pills a { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-pills a span { font-size: .68rem; font-weight: 500; color: var(--muted); }
.calc-pills li.here a { background: var(--ink); color: #fff; border-color: var(--ink); } .calc-pills li.here a span { color: #c9cdd3; }
.calc-mini { display: none; }
@media (max-width: 1099px) {
  .calc-mini { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 -6px 20px rgba(17,18,20,.25); }
  .calc-mini span { font-size: .74rem; color: #c9cdd3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .calc-mini strong { font-family: var(--display); font-size: 1.7rem; line-height: 1; white-space: nowrap; }
  .calc-mini small { font-family: var(--font); font-size: .72rem; color: #c9cdd3; }
  body:has(.calc-mini) main { padding-bottom: 72px; }
}
@media (max-width: 640px) { .calc-curve { display: none; } .calc-pills { display: flex; } }
.calc-curve .grid { stroke: var(--line); stroke-width: 1; }
.calc-curve .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.calc-curve .axis.here { fill: var(--ink); font-weight: 700; }
.calc-curve .line { fill: none; stroke: #2a78d6; stroke-width: 2; stroke-linejoin: round; }
.calc-curve .dot { fill: #2a78d6; stroke: var(--surface); stroke-width: 2; }
.calc-curve .dot.here { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.calc-curve .hit { fill: transparent; cursor: pointer; }
.calc-curve a:hover .dot { r: 6; }
.calc-curve .label { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font); }
.calc-table { margin-top: 10px; } .calc-table > summary { cursor: pointer; font-size: .8rem; color: var(--graphite); font-weight: 600; }
.calc-table[open] > summary { margin-bottom: 10px; }
.calc-bars { list-style: none; margin: 0; padding: 0; }
.calc-bars li { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(60px, 1.4fr) auto 38px; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.calc-bars li:first-child { border-top: 0; }
.calc-bar-name { display: flex; flex-direction: column; gap: 3px; font-size: .84rem; }
.calc-bar-name span { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.calc-bar-track { height: 12px; background: var(--surface-2); border-radius: 0 4px 4px 0; }
.calc-bar-track span { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }
.calc-bars li.current .calc-bar-track span { background: var(--ink); }
.calc-bar-val { display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; font-size: .84rem; white-space: nowrap; }
.calc-bar-val span { font-size: .72rem; color: var(--muted); }
.calc-bar-use { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: right; }
.calc-bar-skip { grid-column: 2 / -1; font-size: .78rem; color: var(--muted); }
.calc-bar-note { grid-column: 1 / -1; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.calc-bars li.off .calc-bar-name strong { color: var(--muted); }
.calc-band + .calc-band { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-band-head { font-size: .86rem; margin-bottom: 12px; }
.calc-band-head.ok strong { color: var(--ok); } .calc-band-head.warn strong { color: var(--warn); } .calc-band-head.bad strong { color: var(--bad); } .calc-band-head.info strong { color: var(--info); }
.calc-band-track { position: relative; height: 22px; background: var(--surface-2); border-radius: 4px; margin: 0 6px; }
.calc-band-track .range { position: absolute; top: 4px; bottom: 4px; background: #b9d3f2; border-radius: 3px; }
.calc-band-track .ref { position: absolute; top: 0; bottom: 0; width: 2px; background: #2a78d6; transform: translateX(-1px); }
.calc-band-track .ours { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--ink); }
.calc-band-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 6px; color: var(--graphite); }
.calc-band-key i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; border-radius: 2px; }
.calc-band-key .k-ours { background: var(--ink); border-radius: 50%; } .calc-band-key .k-range { background: #b9d3f2; } .calc-band-key .k-ref { background: #2a78d6; width: 3px; }
@media (max-width: 560px) {
  .calc-build { padding: 16px; }
    .calc-price .price { font-size: 3.2rem; }
  .calc-bars li { grid-template-columns: minmax(0, 1fr) auto 34px; }
  .calc-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ==== dispatch (areas/production/dispatch.tsx) ==== */
.warn-text { color: var(--warn); }
.disp-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.disp-search { margin-bottom: 16px !important; max-width: 520px; }
.disp-tag { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--graphite); }
.disp-tag.courier { background: var(--info-soft); border-color: transparent; color: var(--info); }
.disp-tag.collection { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.disp-list { list-style: none; margin: 0; padding: 0; }
.disp-list > li { display: grid; gap: 10px 18px; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.disp-list > li:first-child { border-top: 0; padding-top: 4px; }
.disp-list > li.held { box-shadow: inset 3px 0 0 var(--bad); padding-left: 12px; }
.disp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.disp-client { font-weight: 600; margin: 2px 0; }
.disp-main { min-width: 0; overflow-wrap: anywhere; }
.disp-facts { display: flex; gap: 22px; }
.disp-facts > div { display: flex; flex-direction: column; gap: 3px; font-size: .86rem; white-space: nowrap; }
.disp-facts > div > span { font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.disp-facts small { color: var(--muted); }
.disp-acts { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 900px) { .disp-list > li { grid-template-columns: minmax(0, 1fr); } .disp-acts { justify-content: flex-start; } .disp-facts { flex-wrap: wrap; gap: 14px; } }
.disp-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .disp-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.disp-layout > .card, .disp-layout > aside > .card { margin: 0; }
.disp-methods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.disp-method { position: relative; cursor: pointer; }
.disp-method input { position: absolute; opacity: 0; pointer-events: none; }
.disp-method span { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); height: 100%; }
.disp-method small { color: var(--muted); font-size: .78rem; }
.disp-method input:checked + span { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--ink); }
.disp-method input:focus-visible + span { outline: 2px solid var(--info); outline-offset: 2px; }
.disp-form .only-courier, .disp-form .only-collection { display: none; }
.disp-form:has(input[name=method][value=courier]:checked) .only-courier { display: grid; }
.disp-form:has(input[name=method][value=collection]:checked) .only-collection { display: block; }
.disp-items-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.disp-items-head h3 { margin: 0; }
.disp-line { padding: 12px 0; border-top: 1px solid var(--line); }
.disp-line-name { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.disp-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.disp-size { display: grid; grid-template-columns: auto 72px; grid-template-rows: auto auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.disp-size-name { font-weight: 800; font-size: 1rem; min-width: 2.2em; }
.disp-size input { height: 36px; padding: 4px 8px; text-align: right; width: 72px; }
.disp-size small { grid-column: 1 / -1; font-size: .7rem; color: var(--muted); }
.disp-size.done { opacity: .55; }
/* delivery note (printable) */
main:has(.dn-sheet) { max-width: 820px !important; }
.dn-sheet { background: #fff; color: #111; padding: 8px 0; font-size: .92rem; }
.dn-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #111; padding-bottom: 14px; margin-bottom: 16px; }
.dn-brand { font-family: var(--display); font-size: 2rem; line-height: 1; letter-spacing: .04em; }
.dn-title { text-align: right; }
.dn-title h1 { font-size: 1.8rem; margin: 0 0 4px; }
.dn-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.dn-label { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #555; margin-bottom: 4px; }
.dn-items { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.dn-items th, .dn-items td { border-bottom: 1px solid #ccc; padding: 7px 6px; text-align: left; }
.dn-items th { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #555; }
.dn-items .num { text-align: right; }
.dn-items td:nth-child(3), .dn-items td:first-child { white-space: nowrap; }
.dn-items tfoot td { font-weight: 700; border-bottom: 2px solid #111; }
.dn-sign { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 18px; margin: 34px 0 14px; }
.dn-sign div { border-top: 1px solid #111; padding-top: 4px; font-size: .74rem; color: #555; }
@media print { .dn-sheet { padding: 0; } }

/* ==== office dashboard (areas/dashboard.tsx) — owned by the dashboard area; keep at the end ==== */
.dash-actions { margin: -6px 0 18px; }
.dash-group { margin-top: 26px; }
.dash-group-title { font-size: 1.05rem; letter-spacing: .24em; color: var(--muted); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dash-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 8px; }
/* one column on phones, two or three on wide screens, highest-priority list first */
.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; margin-bottom: 12px; }
.dash-card { margin: 0; padding: 16px 18px 14px; display: flex; flex-direction: column; min-width: 0; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dash-head h3 { font-size: 1.3rem; margin: 0; }
.dash-count { font-family: var(--display); font-size: 1.6rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-note { margin: 0 0 6px; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.dash-list li:first-child { border-top: 0; }
.dash-main { min-width: 0; overflow-wrap: anywhere; }
.dash-main > a { font-weight: 600; color: var(--ink); text-decoration: none; }
.dash-main > a:hover { text-decoration: underline; }
.dash-tags .badge { vertical-align: 1px; }
.dash-aside { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-aside .small { font-weight: 400; }
.dash-more { margin-top: auto; padding-top: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.dash-more:hover { text-decoration: underline; }
.dash-clear { margin: 0; }
.dash-allclear { background: var(--ok-soft); color: var(--ok); border-radius: var(--radius); padding: 14px 16px; }
.dash-allclear .muted { color: var(--ok); opacity: .8; }
.bad-text { color: var(--bad); }
@media (max-width: 520px) { .dash-list li { flex-wrap: wrap; } .dash-aside { text-align: left; } }

/* ---------- public site chrome ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 22px; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-lockup .logo-sym svg { height: 26px; width: auto; display: block; }
.brand-lockup .logo-word svg { height: 17px; width: auto; display: block; }
.site-nav { display: none; margin-left: auto; gap: 4px; align-items: center; }
.site-nav a { padding: 8px 10px; text-decoration: none; color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-tools a { text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; color: var(--ink); }
.site-tools .cart-link { border: 1.5px solid var(--ink); border-radius: 2px; display: inline-flex; gap: 8px; align-items: center; }
.site-tools .cart-link .badge { background: var(--ink); color: #fff; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 2px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--ink); color: #fff; min-width: 240px; padding: 10px; display: grid; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.menu[open] > nav a { color: #fff; text-decoration: none; padding: 11px 12px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid #2a2e33; }
@media (min-width: 980px) { .site-nav { display: flex; } .site-tools { margin-left: 8px; } .menu { display: none; } }
.ticker { background: var(--ink); color: #d5d8dc; font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.ticker .track { display: inline-flex; gap: 48px; padding: 8px 0; animation: ticker 38s linear infinite; }
.ticker span::before { content: "◢"; margin-right: 14px; color: #6a7078; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-main { min-height: 60vh; }
.site-main.wrap { padding-top: 32px; }

.site-footer { background: var(--ink); color: #b9bec5; position: relative; overflow: hidden; margin-top: 40px; }
.site-footer .blades { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.site-footer .inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 56px 20px 28px; }
.site-footer .foot-top { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .site-footer .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand-logo { color: #fff; } .site-footer .logo-stack svg { width: 150px; height: auto; }
.site-footer h4 { font: 700 .66rem/1 var(--font); letter-spacing: .3em; text-transform: uppercase; color: #fff; margin: 4px 0 14px; }
.site-footer a { color: #b9bec5; text-decoration: none; display: block; padding: 4px 0; font-size: .88rem; } .site-footer a:hover { color: #fff; }
.site-footer .tagline { font-family: var(--display); font-size: 2.2rem; line-height: .9; color: #fff; text-transform: uppercase; margin: 18px 0 8px; letter-spacing: .02em; }
.site-footer .legalline { border-top: 1px solid #2a2e33; margin-top: 40px; padding-top: 18px; font-size: .74rem; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; color: #7d838c; }

/* ---------- editorial sections ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0; }
.section-head .lede { margin: 10px 0 0; }
.band { padding: 64px 0; }
/* two light bands in a row read as one section run; a change of background always gets the full padding */
.band:not(.dark):not(.paper) + .band:not(.dark):not(.paper) { padding-top: 8px; }
.band.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; } .band.dark .eyebrow { color: #9aa0a8; } .band.dark .lede { color: #c9cdd3; }
.band.dark .btn { color: #fff; border-color: #fff; } .band.dark .btn:hover { background: #fff; color: var(--ink); }
.band.dark .btn.primary { background: #fff; color: var(--ink); border-color: #fff; } .band.dark .btn.primary:hover { background: transparent; color: #fff; }
.band .inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; }
.band.dark .blades { position: absolute; inset: 0; width: 100%; height: 100%; }
.full-bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* hero */
.kv-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.kv-hero .blades { position: absolute; inset: 0; width: 100%; height: 100%; }
.kv-hero .inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 56px 20px 0; display: grid; gap: 28px; }
@media (min-width: 980px) { .kv-hero .inner { grid-template-columns: 1.05fr 1fr; align-items: end; padding-top: 72px; } }
.kv-hero h1 { font-size: clamp(3.6rem, 10vw, 7.6rem); line-height: .82; color: #fff; margin: 0; letter-spacing: .005em; }
.kv-hero h1 .thin { font-weight: 300; color: #9aa0a8; display: block; }
.kv-hero .eyebrow { color: #9aa0a8; }
.kv-hero p { color: #c9cdd3; max-width: 52ch; font-size: 1.02rem; margin: 22px 0 26px; }
.kv-hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 48px; }
.kv-hero .btn { color: #fff; border-color: #fff; } .kv-hero .btn:hover { background: #fff; color: var(--ink); }
.kv-hero .btn.primary { background: #fff; color: var(--ink); } .kv-hero .btn.primary:hover { background: transparent; color: #fff; }
.kv-hero .range { align-self: end; position: relative; }
.kv-hero .range img { width: 100%; border-radius: 3px 3px 0 0; filter: contrast(1.02); }
.kv-hero .range .tag { position: absolute; left: 14px; top: 14px; background: var(--ink); color: #fff; font-size: .62rem; letter-spacing: .3em; font-weight: 700; text-transform: uppercase; padding: 7px 10px; }
/* visible by default; the animation only fades it in when motion is allowed (never hidden for reduced-motion users) */
.reveal { animation: reveal .8s var(--ease) backwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .18s; } .reveal.d3 { animation-delay: .3s; } .reveal.d4 { animation-delay: .45s; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 0 max(0px, calc((100% - 1240px) / 2)); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillars div { padding: 18px 20px; border-right: 1px solid var(--line); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.pillars div:last-child { border-right: 0; }
@media (max-width: 899px) { .pillars div:nth-child(2n) { border-right: 0; } .pillars div:nth-child(n+3) { border-top: 1px solid var(--line); } .pillars div { padding: 16px 20px; letter-spacing: .2em; } }
.pillars b { font-family: var(--display); font-size: 1.7rem; letter-spacing: 0; font-weight: 500; color: var(--mist); }

/* services */
.svc-grid { display: grid; gap: 1px; padding: 1px; grid-template-columns: minmax(0, 1fr); }
.svc-grid > * { box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 560px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* four across for 4, 8 or 12 services (service pages); nine stays 3 × 3 (home, /services) */
@media (min-width: 1100px) { .svc-grid:not(:has(> :nth-child(9):last-child)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc { background: var(--paper); padding: 24px 22px 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; position: relative; min-height: 220px; transition: background .25s var(--ease), color .25s var(--ease); }
.svc .no { font-family: var(--display); font-size: 1rem; color: var(--mist); letter-spacing: .1em; }
.svc h3 { font-size: 2rem; margin: 0; }
.svc p { color: var(--muted); font-size: .9rem; margin: 0; }
.svc .go { margin-top: auto; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.svc .badge { position: absolute; right: 16px; top: 18px; }
.svc:hover { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .svc { min-height: 0; padding: 18px 18px 16px; gap: 6px; } .svc h3 { font-size: 1.7rem; } .band { padding: 44px 0; } .kv-hero .inner { padding-top: 40px; } } .svc:hover p, .svc:hover .no { color: #b9bec5; }

/* categories with imagery */
.cat-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cat-tiles { grid-template-columns: repeat(5, 1fr); } }
.cat-tile { position: relative; background: var(--surface-2); aspect-ratio: 3/4; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; align-items: flex-end; border-radius: var(--radius); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.cat-tile .label { position: relative; padding: 14px; width: 100%; background: linear-gradient(to top, rgba(243,244,245,.98) 40%, rgba(243,244,245,0)); }
.cat-tile .label b { font-family: var(--display); font-size: 1.6rem; font-weight: 600; text-transform: uppercase; display: block; line-height: .95; }
.cat-tile .label span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile.noimg { background: var(--ink); color: #fff; } .cat-tile.noimg .label { background: none; } .cat-tile.noimg .label span { color: #9aa0a8; }

/* how it works */
.how { display: grid; gap: 1px; background: #2a2e33; grid-template-columns: 1fr; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how div { background: var(--ink); padding: 26px 22px; }
.how b { font-family: var(--display); font-size: 3.4rem; line-height: .9; font-weight: 300; color: #5a6068; display: block; }
.how h3 { color: #fff; font-size: 1.7rem; margin: 10px 0 6px; } .how p { color: #b9bec5; font-size: .9rem; margin: 0; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split .media { background: var(--surface-2); aspect-ratio: 4/3; position: relative; overflow: hidden; border-radius: var(--radius); }
.split .media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ticks { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; } .ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: currentColor; }

/* ---------- shop pages (catalogue, product, cart, checkout, legal) ---------- */
.shop-hero { display: grid; gap: 20px; }
.shop-hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ways { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 8px 0 28px; }
.way { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.way .tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .26em; color: var(--muted); font-weight: 700; }
.shop-section { margin: 34px 0; }
.cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat-grid a { display: block; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; }
.cat-grid a:hover { border-color: var(--ink); } .cat-grid .n { color: var(--muted); font: 400 .78rem var(--font); text-transform: none; }
.product-card .img.placeholder span { font-family: var(--display); font-size: 2.4rem; color: var(--mist); }
.product-card .img.photo { background-size: contain; mix-blend-mode: multiply; }
.product-card .meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 8px; }
.product-card .from { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.product-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 5fr 7fr; align-items: start; } .sticky { position: sticky; top: 84px; } }
.product-media .img { aspect-ratio: 1/1; border-radius: var(--radius); background: var(--surface-2) center/contain no-repeat; display: grid; place-items: center; }
.product-media .img.placeholder span { font-family: var(--display); font-size: 5rem; color: var(--mist); }
fieldset.pills { border: 0; padding: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 2px; background: var(--paper); cursor: pointer; font-weight: 600; font-size: .84rem; transition: border-color .15s; }
.pill:hover { border-color: var(--ink); }
.pill:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.pill input { accent-color: var(--ink); }
.price-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; }
.price-box .muted, .price-box dl.kv dt { color: #9aa0a8; }
.price-box .big { font-family: var(--display); font-size: 3rem; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-box dl.kv { margin-top: 10px; }
.price-box a { color: #fff; }
.hint-break { background: #fff; color: var(--ink); border-radius: 2px; padding: 6px 10px; font-weight: 700; display: inline-block; margin: 8px 0; font-size: .8rem; }
.cart-line { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.summary .row-total { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .grand { font-family: var(--display); font-size: 1.9rem; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; }
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 22px; flex-wrap: wrap; counter-reset: s; border: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 10px 16px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; flex: 1; min-width: 150px; border-right: 1px solid var(--line); background: var(--paper); }
.steps li:last-child { border-right: 0; }
.steps li::before { content: "0" counter(s) "  "; color: var(--mist); }
.steps li[aria-current=step] { background: var(--ink); color: #fff; }
.steps li.done { color: var(--ink); }
.legal h2 { margin-top: 26px; } .legal li { margin-bottom: 4px; } .legal { max-width: 860px; }
.pay-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; background: var(--paper); }
.trust { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font-size: .9rem; }
.trust div { padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--paper); }
.bigspec { display: grid; gap: 1px; background: #2a2e33; grid-template-columns: repeat(3, 1fr); align-self: center; }
.bigspec div { background: var(--ink); padding: 22px 16px; }
.bigspec b { font-family: var(--display); font-size: clamp(3rem, 7vw, 5.2rem); line-height: .85; font-weight: 600; color: #fff; display: block; }
.bigspec span { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: #9aa0a8; font-weight: 700; }
.dec-block { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }

/* ================= brand pages ================= */
.site-main { overflow-x: clip; }
/* the full nav needs ~1180 px; below that the Menu button carries it (no wrapped two-line links) */
.site-nav a { white-space: nowrap; }
@media (min-width: 980px) and (max-width: 1239px) { .site-nav { display: none; } .menu { display: block; } .site-tools { margin-left: auto; } }
/* header fits a 360 px phone: tighter tools, account lives in the menu */
@media (max-width: 979px) { .site-header .inner { gap: 10px; padding: 0 16px; } .site-tools { gap: 4px; } }
@media (max-width: 480px) {
  .site-tools > a[href="/account"] { display: none; }
  .site-tools a, .menu > summary { padding: 8px 9px; letter-spacing: .12em; }
  .brand-lockup .logo-word svg { height: 14px; } .brand-lockup .logo-sym svg { height: 22px; }
}
.band .inner.narrow { max-width: 920px; }
.band.tight { padding: 40px 0; }
.band.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- interior page hero ---------- */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero .blades { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero .inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 40px 20px 44px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) {
  .page-hero .inner { padding: 64px 20px 68px; }
  .page-hero.has-aside .inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
}
.page-hero.compact .inner { padding: 30px 20px 32px; }
@media (min-width: 980px) { .page-hero.compact .inner { padding: 44px 20px 46px; } }
.page-hero h1 { color: #fff; font-size: clamp(3rem, 10vw, 6.6rem); line-height: .84; margin: 0; letter-spacing: .005em; }
.page-hero.compact h1 { font-size: clamp(2.6rem, 7.5vw, 4.8rem); }
.page-hero h1 .thin { display: block; font-weight: 300; color: #a3a9b1; }
.page-hero .eyebrow { color: #a3a9b1; }
.page-hero .crumbs { margin-bottom: 18px; color: #6f757e; }
.page-hero .crumbs a { color: #a3a9b1; } .page-hero .crumbs a:hover { color: #fff; }
.page-hero .hero-lede { color: #cfd3d8; max-width: 56ch; font-size: 1.02rem; margin: 20px 0 0; }
.page-hero.compact .hero-lede { margin-top: 14px; }
.page-hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.page-hero .btn { color: #fff; border-color: #fff; } .page-hero .btn:hover { background: #fff; color: var(--ink); }
.page-hero .btn.primary { background: #fff; color: var(--ink); } .page-hero .btn.primary:hover { background: transparent; color: #fff; }
.page-hero .aside { min-width: 0; }
.hero-photo { margin: 0; position: relative; background: #e9ebee; aspect-ratio: 4/3; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 84%, 88% 100%, 0 100%); }
@media (min-width: 980px) { .hero-photo { aspect-ratio: 1/1; max-height: 520px; margin-left: auto; } }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-photo figcaption { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; font-size: .6rem; letter-spacing: .3em; font-weight: 700; text-transform: uppercase; padding: 7px 10px; }

/* ---------- spec numbers ---------- */
.spec-strip { display: grid; gap: 1px; background: #2f3338; border: 1px solid #2f3338; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 700px) { .spec-strip { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.spec-strip > div { background: var(--ink); padding: 20px 16px 18px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; min-width: 0; }
.spec-strip dt { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: #a3a9b1; font-weight: 700; line-height: 1.4; }
.spec-strip dd { margin: 0; font-family: var(--display); color: #fff; line-height: .82; white-space: nowrap; }
.spec-strip b { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 600; }
.spec-strip b.long { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.spec-strip .unit { font-size: 1.5rem; color: #a3a9b1; margin-left: 4px; font-weight: 500; }
.page-hero .spec-strip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.page-hero .spec-strip > div { background: rgba(17,18,20,.88); }

/* ---------- best-for / good-to-know ---------- */
.split.top { align-items: start; }
.note-panel { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 22px 22px 6px; }
.note-panel .ticks { margin-top: 10px; font-size: .94rem; color: var(--graphite); }
.ticks.big li { font-size: 1.02rem; }

/* ---------- pricing ---------- */
.price-rules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 700px) { .price-rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .price-rules { grid-template-columns: repeat(4, 1fr); } }
.price-rules > div { background: var(--paper); padding: 22px 20px 24px; }
.price-rules b { font-family: var(--display); font-size: 2.6rem; font-weight: 300; color: #7d838c; line-height: .9; display: block; }
.price-rules h3 { font-size: 1.55rem; margin: 10px 0 6px; }
.price-rules p { color: var(--graphite); font-size: .9rem; margin: 0; }
.price-drivers { display: grid; gap: 0; grid-template-columns: 1fr; margin-top: 22px; border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .price-drivers { grid-template-columns: 1fr 1fr; } .price-drivers > div + div { border-left: 1px solid var(--line); } }
.price-drivers > div { padding: 18px 20px 8px 0; }
@media (min-width: 760px) { .price-drivers > div + div { padding-left: 20px; } }
.price-drivers p { margin: 4px 0 10px; font-size: .98rem; }
.examples { margin-top: 26px; background: var(--ink); color: #fff; padding: 22px 20px 12px; position: relative; overflow: hidden; }
.examples::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; background: rgba(255,255,255,.05); transform: rotate(35deg); pointer-events: none; }
.examples-title { color: #fff; font-size: 1.7rem; margin: 0; }
.examples-title span { font: 500 .78rem/1.4 var(--font); letter-spacing: .04em; text-transform: none; color: #a3a9b1; }
.examples ul { list-style: none; margin: 8px 0 14px; padding: 0; }
.examples li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 13px 0; border-bottom: 1px solid #2f3338; flex-wrap: wrap; }
.examples li:last-child { border-bottom: 0; }
.examples .what { font-weight: 600; font-size: .95rem; }
.examples .from { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #a3a9b1; white-space: nowrap; font-weight: 700; }
.examples .from b { font-family: var(--display); font-size: 2.3rem; color: #fff; letter-spacing: 0; font-weight: 600; margin: 0 2px; vertical-align: -.12em; font-variant-numeric: tabular-nums; }
.examples .each { letter-spacing: .18em; }
.examples .muted, .examples .price-basis { color: #a3a9b1; }
.soon { margin-top: 26px; display: flex; gap: 18px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 22px 20px; border: 2px solid var(--ink); background: var(--paper); }
.soon > div { flex: 1 1 320px; }
.soon-title { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.4rem); text-transform: uppercase; line-height: .95; margin: 4px 0 10px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 2px; min-height: 52px; font-weight: 600; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.faq .pm { width: 14px; height: 14px; position: relative; flex: none; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); transition: transform .2s var(--ease); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .answer { padding: 0 2px 18px; color: var(--graphite); max-width: 70ch; }

/* ---------- closing CTA ---------- */
.cta-band h2 { font-size: clamp(2.6rem, 7vw, 4.8rem); color: #fff; margin: 0; line-height: .88; }
.cta-band .lede { margin-top: 14px; }
.cta-band .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.svc[aria-current="page"] { background: var(--ink); color: #fff; }

/* ================= shop listing ================= */
.shop-intro { padding-top: 8px; }
.filter-bar { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: end; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 14px; margin: 0 0 22px; }
@media (min-width: 760px) { .filter-bar { grid-template-columns: 2fr 1fr 1fr auto; } }
.filter-bar .field { min-width: 0; }
.filter-bar .btn { width: 100%; }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 14px; margin-bottom: 4px; scrollbar-width: thin; }
.cat-chips a { flex: none; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 2px; text-decoration: none; color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--paper); min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.cat-chips a:hover { border-color: var(--ink); }
.cat-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chips .n { color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.cat-chips a[aria-current="page"] .n { color: #c9cdd3; }
.result-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; margin: 0 0 14px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.product-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.product-card { border-radius: 0; }
.product-card .img { position: relative; }
.product-card .way { position: absolute; left: 10px; top: 10px; }
.product-card .cat { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.product-card .body { padding: 12px 14px 16px; }
.product-card .from { font-size: .86rem; }
@media (max-width: 520px) { .product-card strong { font-size: 1.2rem; } .product-card .body { padding: 10px 10px 12px; } }
.empty-panel { border: 2px solid var(--ink); background: var(--paper); padding: 26px 22px; }
.empty-panel h2 { margin-bottom: 8px; }

/* ================= product page ================= */
.pdp { display: grid; gap: 26px; padding-top: 6px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 44px; align-items: start; } .pdp .media-col { position: sticky; top: 84px; } }
.pdp .crumbs { margin-bottom: 14px; }
.pdp .media-panel .img { aspect-ratio: 1/1; background: #e9ebee center/contain no-repeat; display: grid; place-items: center; position: relative; }
.pdp .media-panel .img.photo { background-blend-mode: multiply; }
.pdp .media-panel .img.placeholder span { font-family: var(--display); font-size: 6rem; color: #7d838c; }
.pdp .media-panel { position: relative; }
.pdp .media-panel .tag { position: absolute; left: 14px; top: 14px; z-index: 1; }
.pdp .facts { border-top: 2px solid var(--ink); margin-top: 18px; padding-top: 14px; }
.pdp .facts dl.kv { font-size: .9rem; }
.pdp-title .eyebrow { margin-bottom: 8px; }
.pdp-title h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: .86; margin: 0 0 12px; }
.pdp-title .from-line { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.pdp-title .from-line .price { font-size: 2.4rem; line-height: 1; }
.pdp-title .desc { color: var(--graphite); max-width: 60ch; }
.cfg-step { background: var(--paper); border: 1px solid var(--line); padding: 20px 18px; margin: 0 0 12px; }
.cfg-step > h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.7rem; margin: 0 0 14px; }
.cfg-step > h2 b { font-weight: 300; color: #7d838c; font-size: 2rem; }
.pdp .price-box { padding: 22px 20px; position: relative; overflow: hidden; }
.pdp .price-box::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 110px; height: 110px; background: rgba(255,255,255,.05); transform: rotate(35deg); pointer-events: none; }
.pdp .price-box .big { font-size: 3.6rem; }
.pdp .price-box .muted { color: #a3a9b1; }
.price-table-wrap { margin-top: 6px; }
.price-table-wrap table th { background: var(--ink); color: #fff; }
.buy-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy-actions .btn { min-width: 200px; }
.pill:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.pill { position: relative; min-height: 44px; }
.size-grid input { text-align: center; font-weight: 600; }
/* D12 "both on one page": plain or decorated, chosen with real radios; CSS-only switching (no script), both panels show where :has() is unsupported */
.way-tabs { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .way-tabs { grid-template-columns: 1fr 1fr; } }
.way-tabs legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.way-tab { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 2px; background: var(--paper); cursor: pointer; }
.way-tab:hover { border-color: var(--ink); }
.way-tab input { accent-color: var(--ink); margin-top: 3px; }
.way-tab span { display: grid; gap: 2px; }
.way-tab small { color: var(--graphite); font-size: .8rem; }
.way-tab:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.way-tab:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.way-choice:has(input[name="pdp_way"][value="plain"]:checked) .way-decorate { display: none; }
.way-choice:has(input[name="pdp_way"][value="decorate"]:checked) .way-plain { display: none; }
.product-card .from .or-logo { font-weight: 500; color: var(--graphite); }

/* ================= cart & checkout ================= */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 6px 0 22px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.shop-head h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: .86; margin: 0; }
.shop-head .eyebrow { margin-bottom: 8px; }
.shop-head p { margin: 8px 0 0; color: var(--graphite); }
.cart-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; } .cart-layout .summary-col { position: sticky; top: 84px; } }
.cart-lines { background: var(--paper); border: 1px solid var(--line); padding: 4px 18px; }
.cart-line { grid-template-columns: 1fr; }
.cart-line .thumb { width: 72px; height: 72px; flex: none; background: #e9ebee center/contain no-repeat; background-blend-mode: multiply; }
.cart-line .head { display: flex; gap: 14px; align-items: flex-start; }
.cart-line .head strong { font-family: var(--display); font-size: 1.5rem; font-weight: 600; text-transform: uppercase; line-height: 1; }
.cart-line .head a { text-decoration: none; }
.cart-line .line-total { font-family: var(--display); font-size: 1.6rem; font-weight: 600; white-space: nowrap; }
.cart-line .line-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cart-line details summary { cursor: pointer; font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.summary-box { background: var(--ink); color: #fff; padding: 22px 20px; position: relative; overflow: hidden; }
.summary-box h2 { color: #fff; font-size: 1.8rem; }
.summary-box .muted, .summary-box .price-basis { color: #a3a9b1; }
.summary-box a:not(.btn) { color: #fff; }
.summary-box .summary .grand { border-top-color: #fff; }
.summary-box .btn { width: 100%; color: #fff; border-color: #fff; margin-top: 6px; }
.summary-box .btn.primary { background: #fff; color: var(--ink); } .summary-box .btn.primary:hover { background: transparent; color: #fff; }
.summary-box .btn:not(.primary):hover { background: #fff; color: var(--ink); }
.summary-box .alert { background: #1f2226; color: #e3e6ea; border-left-color: #fff; }
.summary-box .alert a { color: #fff; }
.checkout-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); align-items: start; } .checkout-grid .pay-col { position: sticky; top: 84px; } }
.form-section { background: var(--paper); border: 1px solid var(--line); padding: 20px 18px; margin: 0 0 14px; }
.form-section > h2 { display: flex; gap: 12px; align-items: baseline; font-size: 1.7rem; margin: 0 0 14px; }
.form-section > h2 b { font-weight: 300; color: #7d838c; font-size: 2rem; }
.pay-box { border-width: 2px; border-radius: 0; padding: 20px; }
.pay-box .summary .grand { font-size: 2.2rem; }
.steps { border-radius: 0; }
@media (max-width: 640px) { .steps li { min-width: 0; padding: 10px 10px; font-size: .6rem; letter-spacing: .12em; } }

/* ================= quote request ================= */
.quote-layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .quote-layout { grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); align-items: start; } .quote-layout .quote-side { position: sticky; top: 84px; } }
.quote-form { display: grid; gap: 14px; }
.quote-form .form-section { margin: 0; }
.quote-form .stack-inner { display: grid; gap: 14px; }
.chosen { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 2px solid var(--ink); background: var(--paper); padding: 14px 16px; }
.chosen .label { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: block; }
.chosen strong { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; font-weight: 600; line-height: 1; }
.quote-side .side-panel { background: var(--ink); color: #fff; padding: 22px 20px; }
.quote-side .side-panel h2 { color: #fff; font-size: 1.8rem; }
.quote-side .side-panel .ticks { color: #cfd3d8; font-size: .92rem; }
.quote-side .side-panel .muted { color: #a3a9b1; }
.quote-side .side-panel a { color: #fff; }
.file-drop { border: 1.5px dashed var(--line-strong); padding: 16px; background: var(--surface-2); }
.file-drop input[type=file] { width: 100%; font: inherit; }
.submit-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.submit-row .btn { min-width: 220px; }

/* ================= team stores ================= */
.store-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; border-bottom: 6px solid var(--store-2, #fff); }
.store-hero .tint { position: absolute; inset: 0; width: 100%; height: 100%; }
.store-hero .blades { position: absolute; inset: 0; width: 100%; height: 100%; }
.store-hero .inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 30px 20px 30px; }
@media (min-width: 900px) { .store-hero .inner { padding: 48px 20px 44px; } }
.store-hero .id { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.store-hero .crest { width: 76px; height: 76px; background: #fff; object-fit: contain; padding: 6px; flex: none; }
.store-hero .eyebrow { color: #cfd3d8; margin: 0 0 6px; }
.store-hero h1 { color: #fff; margin: 0; font-size: clamp(2.6rem, 8vw, 5rem); line-height: .86; }
.store-hero .welcome { color: #e3e6ea; max-width: 60ch; margin: 16px 0 0; }
.store-hero .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 16px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #e3e6ea; }
.store-hero .meta span { border-left: 2px solid var(--store-2, #fff); padding-left: 10px; }
.store-body { padding-top: 22px; }
.store-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 14px 16px; margin-bottom: 16px; position: sticky; top: 64px; z-index: 6; }
.store-bar .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.store-bar .btn.primary:hover { background: transparent; color: #fff; }
.age-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 14px 16px; margin-bottom: 16px; }
.age-panel { background: var(--paper); border: 2px solid var(--ink); padding: 22px 20px; margin-bottom: 18px; }
.age-panel h2 { font-size: 1.9rem; }
.age-panel .actions .btn { flex: 1 1 200px; }
.store-items { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .store-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .store-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.store-item { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 18px 18px 20px; display: grid; gap: 4px; align-content: start; }
.store-item h2 { font-size: 1.9rem; margin: 0; }
.store-item .price { font-size: 2.2rem; line-height: 1; margin: 6px 0 4px; }
.store-item form { margin-top: 10px; gap: 12px; }
.store-item form .btn { width: 100%; }
.code-panel { background: var(--paper); border: 2px solid var(--ink); padding: 22px 20px; max-width: 520px; }
.code-panel h2 { font-size: 1.9rem; }
.code-panel input[name=code] { font-family: var(--display); font-size: 1.8rem; letter-spacing: .18em; text-transform: uppercase; padding: 8px 12px; }
.store-cart-line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; flex-wrap: wrap; }
.store-cart-line strong { font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; font-weight: 600; }
.store-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; margin-top: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.store-landing-grid { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .store-landing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* ================= legal (long-form reading) ================= */
.legal-layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .legal-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; } .legal-nav { position: sticky; top: 84px; } }
.legal-nav { border-top: 2px solid var(--ink); padding-top: 10px; }
.legal-nav .eyebrow { margin: 4px 0 8px; }
.legal-nav a { display: block; padding: 9px 0 9px 12px; text-decoration: none; color: var(--graphite); font-size: .86rem; border-left: 2px solid var(--line); }
.legal-nav a:hover { color: var(--ink); border-left-color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-left-color: var(--ink); }
@media (max-width: 979px) { .legal-nav nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; } .legal-nav a { flex: none; border: 1.5px solid var(--line-strong); padding: 8px 12px; font-size: .74rem; } .legal-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); } }
.legal { max-width: 74ch; font-size: 1rem; line-height: 1.75; color: #24272b; }
.legal .shop-head { max-width: none; }
.legal h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1; }
.legal h3 { font-size: 1.35rem; margin: 26px 0 8px; }
.legal p, .legal li { max-width: 72ch; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 6px; } .legal li::marker { color: var(--muted); }
.legal table { font-size: .92rem; }
.legal dl.kv { gap: 8px 22px; }
.legal a { text-underline-offset: 3px; }
.legal .alert { line-height: 1.6; }

/* ================= account (portal) header ================= */
.site-main > nav.tabs[aria-label="Account"] { background: var(--ink); border: 0; margin: 0 0 24px; padding: 0 6px; gap: 0; }
.site-main > nav.tabs[aria-label="Account"] a { color: #c9cdd3; padding: 15px 14px 13px; border-bottom: 3px solid transparent; font-size: .7rem; }
.site-main > nav.tabs[aria-label="Account"] a:hover { color: #fff; }
.site-main > nav.tabs[aria-label="Account"] a[aria-current="page"] { color: #fff; border-color: #fff; }
.site-main .page-head { border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.site-main .page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: .88; }
.site-main .page-head .crumbs { margin-bottom: 10px; }
.site-main .card { border-radius: 0; }
.site-main .card > h2:first-child { font-size: 1.7rem; }

/* ================= product pictures (photos and drawings) ================= */
.product-card .img img, .pdp .media-panel .img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card .img.photo img, .pdp .media-panel .img.photo img { mix-blend-mode: multiply; }
.product-card .img.art img { padding: 6%; box-sizing: border-box; }
.pdp .media-panel .img.art img { padding: 7%; box-sizing: border-box; }
.pdp .img-note { margin: 8px 0 0; }
.cat-tile.art img { object-fit: contain; padding: 10% 10% 26%; box-sizing: border-box; mix-blend-mode: normal; }

/* ================= team kit range (made to order) ================= */
.kit-range { margin: 40px 0 10px; border-top: 2px solid var(--ink); padding-top: 22px; }
.kit-range-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.kit-range-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0; line-height: .95; }
.kit-range-head .lede { max-width: 62ch; margin: 10px 0 0; }
.kit-range-head .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.kit-group { margin: 22px 0 6px; }
.kit-sport { font-size: 1.7rem; margin: 0 0 10px; text-transform: uppercase; }
.kit-card .made { font-size: .78rem; color: var(--graphite); }
.kit-card .kit-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.kit-card .kit-actions .btn { flex: 1 1 auto; justify-content: center; }
.kit-card:hover { transform: none; }
.kit-strip { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .kit-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .band .kit-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kit-strip a { background: var(--surface-2); text-decoration: none; color: var(--ink); display: grid; padding: 10px; gap: 6px; border: 1px solid transparent; }
.kit-strip a:hover { border-color: var(--ink); }
.kit-strip img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: contain; }
.kit-strip span { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kit-promo { display: grid; gap: 20px; margin: 36px 0 8px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ink); }
@media (min-width: 900px) { .kit-promo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; } .kit-promo .kit-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kit-promo h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 4px 0 8px; line-height: .95; }
.kit-promo p { color: var(--graphite); margin: 0 0 14px; }

/* ================= service and page illustrations ================= */
.svc .svc-img { display: block; margin: -24px -22px 6px; background: var(--surface-2); aspect-ratio: 16/10; overflow: hidden; }
.svc .svc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.svc .svc-img.photo img { mix-blend-mode: multiply; }
.svc:hover .svc-img { background: #2a2e33; }
.svc:hover .svc-img.photo img { mix-blend-mode: normal; }
@media (max-width: 640px) { .svc .svc-img { margin: -18px -18px 6px; aspect-ratio: 2/1; } }
.hero-photo.art img { mix-blend-mode: normal; padding: 6%; box-sizing: border-box; }
.hero-art-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-art-row img { width: 100%; height: auto; aspect-ratio: 1/1; background: #e9ebee; display: block; }
.hero-art-row img.photo { mix-blend-mode: normal; object-fit: contain; }
.page-hero.compact .hero-photo { aspect-ratio: 16/10; max-height: 340px; }
@media (min-width: 980px) { .page-hero.compact .hero-photo { aspect-ratio: 4/3; } .page-hero.compact .hero-art-row { max-width: 460px; margin-left: auto; } }

/* =====================================================================
   Design pass (Oct 2026): alignment and rhythm fixes for every public page.
   Overrides only public classes / .site-main descendants; the office is untouched.
   ===================================================================== */

/* ---- home hero: three calls to action fit on one line on desktop, stack evenly on phones ---- */
@media (min-width: 980px) { .kv-hero .inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.kv-hero .ctas .btn { padding-left: 18px; padding-right: 18px; }
@media (max-width: 559px) {
  .kv-hero .ctas, .page-hero .ctas, .cta-band .ctas { display: grid; grid-template-columns: minmax(0, 1fr); }
  .kv-hero .ctas .btn, .page-hero .ctas .btn, .cta-band .ctas .btn { width: 100%; }
}

/* ---- product cards: the way-to-buy tag sits on the picture, the price line runs the full width and sits at the bottom ---- */
.product-card { position: relative; }
.product-card .body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card .body > strong { margin-bottom: 4px; }
.product-card .meta { margin-top: auto; padding-top: 6px; display: block; }
.product-card .meta .badge { position: absolute; left: 10px; top: 10px; z-index: 1; }
.product-card .meta .badge { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.product-card .meta .badge.brand { background: var(--ink); color: #fff; box-shadow: none; }
.product-card .from { display: block; line-height: 1.45; }
.product-card .from .or-logo { font-size: .8rem; }
.kit-card .made { margin-top: 2px; }
.kit-card .kit-actions { margin-top: auto; padding-top: 10px; }

/* ---- listing filter: labels on one baseline ---- */
.filter-bar .field label { min-height: 1.2em; line-height: 1.2; }

/* ---- forms inside public panels: no box-in-a-box, legends flush with the fields ---- */
.cfg-step fieldset:not(.pills):not(.way-tabs), .form-section fieldset:not(.pills):not(.kd-seg):not(.kd-choice) { border: 0; padding: 0; margin: 0; min-width: 0; }
.site-main legend { padding: 0; margin-bottom: 8px; }
.cfg-step .dec-block, .form-section .dec-block { border: 0; border-left: 3px solid var(--line-strong); border-radius: 0; padding: 4px 0 4px 14px; background: transparent; }
/* sizes: one row on desktop (up to 8), 4 across on phones */
.site-main .size-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
@media (max-width: 559px) { .site-main .size-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-main .size-grid input { padding-left: 4px; padding-right: 4px; }

/* ---- product page: on phones the title follows the picture, the facts follow the form ---- */
@media (max-width: 899px) {
  .pdp .media-col { display: contents; }
  .pdp .media-panel { order: 1; }
  .pdp > div:not(.media-col) { order: 2; min-width: 0; }
  .pdp .facts { order: 3; margin-top: 0; }
}
.pdp .facts dl.kv { grid-template-columns: 84px minmax(0, 1fr); }
@media (max-width: 559px) { .buy-actions .btn { flex: 1 1 100%; min-width: 0; } }

/* ---- key/value lists: a label column that never squeezes the values on a phone ---- */
.site-main dl.kv { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
@media (max-width: 559px) { .site-main dl.kv { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 6px 12px; } }
.price-box dl.kv, .site-main .price-box dl.kv { grid-template-columns: minmax(0, 1fr) minmax(0, max-content); gap: 8px 16px; }
.price-box dl.kv dd { text-align: right; }
.price-box dl.kv dd strong, .price-box dl.kv dd .num { white-space: nowrap; }
@media (max-width: 559px) { .site-main .price-box dl.kv { grid-template-columns: minmax(0, 1fr) minmax(0, 52%); } }

/* ---- cart: line details line up under the product name; the price wraps below on a phone ---- */
.cart-line .top { flex-wrap: wrap; row-gap: 6px; }
.cart-line .top .head { flex: 1 1 240px; min-width: 0; }
.cart-line .head > div { min-width: 0; }
@media (min-width: 640px) { .cart-line > :not(.top) { margin-left: 86px; } }
@media (max-width: 639px) { .cart-line .top .line-total { flex: 1 0 100%; text-align: left; padding-left: 86px; font-size: 1.4rem; } }
.cart-line .alert { margin-bottom: 0; }
.cart-line details form { max-width: 520px; }

/* ---- checkout steps on phones: one line each ---- */
@media (max-width: 559px) { .steps li { flex: 1 1 33%; padding: 9px 8px; line-height: 1.3; } .steps li::before { display: block; } }

/* ---- team stores ---- */
.store-item { display: flex; flex-direction: column; }
.store-item form { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.store-item form > button, .store-item form > .btn { margin-top: auto; }
.store-landing-grid { align-items: stretch; }
.store-landing-grid > div { display: flex; flex-direction: column; }
.store-landing-grid .code-panel { max-width: none; flex: 1; }
.store-landing-grid .age-panel { margin-bottom: 0; }
.store-bar { flex-wrap: wrap; }
@media (max-width: 559px) { .store-bar .btn, .age-panel .actions .btn { width: 100%; } }

/* ---- monochrome notices on public pages (blue "info" is an office colour) ---- */
.site-main .alert.info, .notice-panel .alert.info { background: #eceef1; color: var(--ink); border-left-color: var(--ink); }
.site-main .alert { border-radius: 0; }
.site-main .summary-box .alert, .site-main .quote-side .alert, .site-main .price-box .alert { background: #1f2226; color: #e3e6ea; border-left-color: #fff; }

/* ---- account (portal): brand chrome, not office chrome ---- */
.site-main > nav.tabs[aria-label="Account"] { position: relative; scrollbar-width: none; }
.site-main > nav.tabs[aria-label="Account"]::-webkit-scrollbar { display: none; }
@media (max-width: 979px) { .site-main > nav.tabs[aria-label="Account"] { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); } }
.site-main > nav.tabs[aria-label="Account"] a[href="/account/logout"] { margin-left: auto; color: #9aa0a8; }
.site-main .page-head { margin-bottom: 24px; }
.site-main .page-head .muted { color: var(--graphite); }
.site-main .card { border-top: 3px solid var(--ink); padding: 22px 20px; }
.site-main .card > h2:first-child { margin-bottom: 14px; }
.site-main .table-wrap { border-radius: 0; border-top: 3px solid var(--ink); }
.site-main .card .table-wrap { border-top-width: 1px; border-top-color: var(--line); }
.site-main th { background: var(--paper); color: var(--graphite); border-bottom: 2px solid var(--line); }
.site-main td { padding-top: 12px; padding-bottom: 12px; vertical-align: middle; }
.site-main tfoot td { background: var(--surface-2); }
.site-main .table-wrap + dl.kv, .site-main .table-wrap + p, .site-main .table-wrap + .actions, .site-main .table-wrap + form { margin-top: 16px; }
.site-main .empty { border-radius: 0; background: var(--paper); }
.site-main .grid-2 { gap: 18px; align-items: start; }
.site-main .grid-2 > * > .card:last-child, .site-main .grid-2 > .card { margin-bottom: 0; }
.site-main .grid-2 > div:has(> .card) { display: grid; gap: 18px; align-content: start; }
.site-main .grid-2 > div > .card { margin: 0; }
.site-main .grid:has(> .stat) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* phones: tables scroll sideways as whole rows instead of wrapping word by word */
@media (max-width: 559px) { .site-main .table-wrap th, .site-main .table-wrap td { white-space: nowrap; } .site-main .table-wrap td { padding-top: 10px; padding-bottom: 10px; } }
.site-main .stat { border-radius: 0; }
.site-main .stat::after { display: none; }
/* order progress: a segmented track instead of loose text */
.site-main ol.tabs[aria-label="Progress"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 4px; border: 0; margin: 0 0 22px; overflow: visible; }
.site-main ol.tabs[aria-label="Progress"] li { padding: 10px 2px 0 !important; border-top: 4px solid var(--line-strong); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.site-main ol.tabs[aria-label="Progress"] li:has(~ li[aria-current="step"]) { border-top-color: var(--graphite); color: var(--graphite); }
.site-main ol.tabs[aria-label="Progress"] li[aria-current="step"] { border-top-color: var(--ink); color: var(--ink); }
/* proof pictures: the whole proof fits on screen, centred on white */
.site-main img[src^="/files/"][alt^="Proof "] { width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; background: #fff; border-radius: 0 !important; padding: 8px; }
.site-main p:has(> img[src^="/files/"][alt^="Proof "]) { background: var(--surface-2); padding: 12px; text-align: center; }
/* overview */
.account-clients { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 24px; }
.account-clients .card { margin: 0; }
.account-tiles { display: grid; gap: 1px; padding: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .account-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.account-tiles a { box-shadow: 0 0 0 1px var(--line); background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 88px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1; text-transform: uppercase; transition: background .2s var(--ease), color .2s var(--ease); }
.account-tiles a .arrow { font-family: var(--font); font-size: 1rem; transition: transform .2s var(--ease); }
.account-tiles a:hover { background: var(--ink); color: #fff; }
.account-tiles a:hover .arrow { transform: translateX(4px); }

/* ---- sign-in (customer): form beside a short "why", centred ---- */
.account-gate { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); max-width: 980px; margin: 8px auto 0; }
@media (min-width: 860px) { .account-gate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; } }
.account-gate .gate-card { margin: 0; padding: 30px 28px; }
.account-gate .gate-card h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: .9; margin-bottom: 10px; }
.account-gate .gate-card form.stack { max-width: none; }
.account-gate .gate-card .btn { width: 100%; }
.gate-aside { background: var(--ink); color: #cfd3d8; padding: 30px 28px; position: relative; overflow: hidden; }
.gate-aside::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 160px; height: 160px; background: rgba(255,255,255,.05); transform: rotate(35deg); pointer-events: none; }
.gate-aside .eyebrow { color: #9aa0a8; }
.gate-aside h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0 0 6px; }
.gate-aside .ticks { margin-bottom: 0; }

/* ---- quote thanks and other short pages: the footer does not ride up ---- */
.site-main { min-height: 62vh; }

/* ---- notice pages (404, payment, EFT): brand header, one panel, slim footer ---- */
.notice-body { min-height: 100vh; display: flex; flex-direction: column; }
.notice-body .site-header { position: static; }
.notice-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.notice-nav a { padding: 8px 10px; text-decoration: none; color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.notice-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) { .notice-nav a:not([href="/shop"]):not([href="/account"]) { display: none; } }
.notice-main { flex: 1; display: grid; place-items: center; padding: 48px 16px 64px; }
.notice-panel { width: 100%; max-width: 600px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 32px 28px 28px; }
.notice-panel h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: .9; margin-bottom: 12px; }
.notice-panel .eyebrow { margin-bottom: 8px; }
.notice-panel dl.kv { margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
.notice-panel .actions, .notice-panel > .btn { margin-top: 18px; }
.notice-foot { background: var(--ink); color: #7d838c; font-size: .74rem; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.notice-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.notice-foot a { color: #b9bec5; text-decoration: none; } .notice-foot a:hover { color: #fff; }

/* ================= kit designer ================= */
.kd { --k1: #102b46; --k2: #25d9b1; --k3: #f7fafc; }
.kd [hidden] { display: none !important; }
.kd-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "steps"; }
.kd-stage { grid-area: stage; position: sticky; top: 64px; z-index: 5; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 10px 10px 8px; }
.kd-steps { grid-area: steps; display: grid; gap: 14px; min-width: 0; }
.kd-steps .form-section { margin: 0; }
.kd-views { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kd-views figure { margin: 0; background: var(--bg); display: grid; justify-items: center; padding: 6px 4px 4px; }
.kd-views svg { display: block; width: 100%; height: auto; max-height: 26vh; }
.kd-views figcaption { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.kd-place { font-size: .8rem; color: var(--graphite); margin: 8px 2px 0; display: none; }
.kd-preview[aria-busy=true] svg { opacity: .82; transition: opacity .2s; }
.kd-stage-tools { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.kd-stage-tools .btn { flex: 1 1 auto; }
.kd-toggle { position: relative; display: inline-flex; cursor: pointer; }
.kd-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kd-toggle span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--ink); font: 700 .68rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.kd-toggle input:checked + span { background: var(--ink); color: #fff; }
.kd-toggle input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.kd-warn { margin: 8px 2px 0; padding: 8px 10px; background: var(--warn-soft); color: var(--warn); font-size: .82rem; font-weight: 600; border-left: 3px solid var(--warn); }
@media (min-width: 980px) {
  .kd-layout { grid-template-columns: minmax(0, 6fr) minmax(360px, 6fr); grid-template-areas: "steps stage"; align-items: start; gap: 26px; }
  .kd-stage { top: 84px; padding: 16px; }
  .kd-views { gap: 10px; }
  .kd-views svg { max-height: 62vh; }
  .kd-place { display: block; }
}

.kd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kd-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.kd-opts.garments { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.kd-opts.garments .kd-face b { font-size: 1rem; line-height: 1.05; }
@media (max-width: 559px) { .kd-opts.garments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .kd-opts.garments .kd-face { padding: 6px; } .kd-opts.garments .kd-face b { font-size: .9rem; } }
.kd-opts.layouts { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.kd-opts.patterns { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.kd-opts.patterns .kd-face { padding: 4px; }
.kd-opts.patterns .tag { font-size: .55rem; letter-spacing: .06em; }
.kd-sub { font-size: 1.15rem; margin: 18px 0 8px; color: var(--graphite); }
.kd-filter { display: grid; gap: 8px; margin-bottom: 12px; }
.kd-filter input[type=search] { width: 100%; }
.kd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kd-chip { min-height: 34px; padding: 4px 10px; border: 1.5px solid var(--line); background: var(--paper); font: 600 .66rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 2px; color: var(--ink); }
.kd-chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kd-combos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kd-combo { text-align: left; }
.kd-combo { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px 6px 6px; border: 1.5px solid var(--line); background: var(--paper); font: 600 .68rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; border-radius: 2px; }
.kd-combo:hover { border-color: var(--ink); }
.kd-combo .chips, .kd-swatch .chips { display: inline-flex; }
.kd-combo i { width: 12px; height: 24px; display: block; border: 1px solid rgba(17,18,20,.18); }
.kd-pattern-settings { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kd-seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.kd-seg legend { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; padding: 0; }
.kd-seg > div { display: flex; flex-wrap: wrap; }
.kd-seg label { position: relative; cursor: pointer; }
.kd-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kd-seg span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1.5px solid var(--line); margin: 0 -1.5px -1.5px 0; background: var(--paper); font-size: .82rem; }
.kd-seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; z-index: 1; }
.kd-seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; position: relative; z-index: 2; }
.kd-mark-note { margin: 0; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--ink); }
.kd-opt { position: relative; display: block; cursor: pointer; min-width: 0; }
.kd-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kd-face { display: grid; gap: 4px; align-content: start; height: 100%; border: 1.5px solid var(--line); background: var(--paper); padding: 8px; transition: border-color .15s; }
.kd-opt:hover .kd-face { border-color: var(--line-strong); }
.kd-opt input:checked + .kd-face { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.kd-opt input:focus-visible + .kd-face { outline: 3px solid var(--ink); outline-offset: 2px; }
.kd-face img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.kd-face svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.kd-face b { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1; text-transform: uppercase; }
.kd-face small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.kd-face .tag { overflow-wrap: anywhere; hyphens: auto; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

.kd-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kd-swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px 6px 6px; border: 1.5px solid var(--line); background: var(--paper);
  font: 600 .7rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; border-radius: 2px; }
.kd-swatch:hover { border-color: var(--ink); }
.kd-swatch[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.kd-swatch .chips { display: inline-flex; }
.kd-swatch i { width: 16px; height: 26px; display: block; border: 1px solid rgba(17,18,20,.18); }
.kd-colours { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kd-colour { display: grid; gap: 4px; justify-items: start; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.kd-colour input[type=color] { width: 100%; height: 48px; padding: 2px; border: 1.5px solid var(--line-strong); background: var(--paper); cursor: pointer; }
.kd-colour code { font: 500 .78rem var(--mono); letter-spacing: 0; color: var(--muted); }
.kd-choice { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; }
.kd-choice legend { padding: 0; margin-bottom: 6px; }
.kd-choice label { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; cursor: pointer; }
.kd-choice input { width: 18px; height: 18px; accent-color: var(--ink); }
.kd-dot { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line-strong); vertical-align: -2px; }
.kd-ways { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kd-ways .kd-face { padding: 12px 14px; }
.kd-total { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.kd-logo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.kd-actions { display: grid; gap: 12px; }
.kd-actions .downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.kd-next { background: var(--ink); color: #fff; padding: 20px; }
.kd-next h2 { color: #fff; font-size: 1.6rem; }
.kd-next .ticks { color: #cfd3d8; font-size: .9rem; margin: 0; }
.kd-next a { color: #fff; }
