/* Enclosure builder (/build/): a big 3D stage and every option on one list (owner 2026-10-26), ready-made builds, a
   section nav and a summary bar. From 1024 px (landscape) the stage is a sticky column as tall as the window beside the options
   (desktop buyers come first); elsewhere, or when "model above" is chosen, it stays stuck on top of the list.
   Uses site.css tokens; designer.css for the RFQ form, file picker and chips. */
.bxpage { background: var(--s50); }
.bxhead { padding-top: 18px; padding-bottom: 14px; }
.bxhead .crumbs { margin: 0 0 8px; }
.bxhead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 28px; }
.bxhead h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0; letter-spacing: -.02em; }
.bxhead .lead { margin: 6px 0 0; max-width: 64ch; color: var(--muted); font-size: 1rem; }
.bxhead__trust { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .86rem; color: var(--s700); font-weight: 600; }
.bxhead__trust li { display: inline-flex; align-items: center; gap: 7px; }
.bxhead__trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bxwrap { padding-bottom: 8px; }
.bx { min-height: 70vh; position: relative; }
/* stage and nav heights live on the root so the page's scroll padding can clear the sticky chrome: anchors, and
   keyboard focus, land below the header + nav (+ the stage when it is stuck on top) and above the summary bar
   (WCAG 2.4.11, focus not obscured) */
:root:has(.bxpage) { --bx-h: clamp(260px, 42vh, 540px); --bx-nav: 52px; scroll-padding-top: calc(var(--hdr) + var(--bx-nav) + 12px); scroll-padding-bottom: 84px; }
:root:has(.bxpage:not(.bxpage--side)) { scroll-padding-top: calc(var(--hdr) + var(--bx-h) + var(--bx-nav) + 12px); }
.bx__fail, .bx__loading { padding: 48px 0; }
.bx-ic { width: 40px; height: 40px; flex: none; }
.bx-ic--xl { width: 150px; height: 150px; stroke-width: 1.1; }
.bx-ic--sm { width: 18px; height: 18px; stroke-width: 2.6; }
.bx-eyebrow { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 8px; }
.bx-muted { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- stage (light studio, like the product photos) */
.bx__stagewrap { height: var(--bx-h); position: relative; z-index: 6; }
.bx__stage { position: relative; height: 100%; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--s200);
  background: radial-gradient(120% 95% at 50% 18%, #ffffff 0%, #f1f3f5 48%, #dde1e5 100%); box-shadow: var(--shadow); }
.bx__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.bx__boot { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--s400); }
.bx__wire { opacity: .55; }
.bx-vb { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(15,17,19,.12); background: rgba(255,255,255,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); font-weight: 650; font-size: .82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s; }
.bx-vb:hover { border-color: rgba(15,17,19,.32); background: #fff; }
.bx-vb[aria-pressed="true"] { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.bx-vb--ic { width: 34px; padding: 0; justify-content: center; }
.bx__views { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 300px); }
.bx__tools { position: absolute; top: 14px; right: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bx__hud { position: absolute; left: 18px; bottom: 14px; right: 18px; pointer-events: none; color: var(--text); }
.bx__dims { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 16px; margin: 0; font: 800 clamp(1.35rem, 2.3vw, 2rem)/1.05 var(--font-display); letter-spacing: -.02em; }
.bx__dims i { font: 600 .68rem/1 var(--mono); letter-spacing: .12em; color: var(--accent-text); margin-right: 5px; font-style: normal; vertical-align: .55em; }
.bx__dims em { font: 500 .78rem/1 var(--mono); color: var(--muted); font-style: normal; text-transform: uppercase; letter-spacing: .1em; }
.bx__sub { margin: 5px 0 0; font-size: .86rem; color: var(--s700); }
.bx__hint { position: absolute; right: 18px; bottom: 16px; margin: 0; font-size: .78rem; color: var(--s600); pointer-events: none; transition: opacity .4s; }
.bx__hint.is-gone { opacity: 0; }
.bx__stage:not(.is-3d) .bx__views, .bx__stage:not(.is-3d) .bx__tools, .bx__stage:not(.is-3d) .bx__hint { visibility: hidden; }
.bx__stage:fullscreen { border-radius: 0; border: 0; width: 100vw; height: 100vh; }
.bx__stage:fullscreen .bx__hud { bottom: 24px; left: 28px; }

/* stacked (phones, portrait tablets, windows under 1024 px, desktops that chose "model above"): the stage stays stuck on top while the
   options scroll under it; the wrapper is opaque so rows never show through its rounded corners */
.bxpage:not(.bxpage--side) .bx__stagewrap { position: sticky; top: var(--hdr); z-index: 25; background: var(--s50); }
.bxpage:not(.bxpage--side) .bx__nav { top: calc(var(--hdr) + var(--bx-h)); }
/* "model above" on a wide screen: the stage uses the full window width, the list keeps a readable width */
.bxpage--stack > .bxwrap { max-width: none; }
.bxpage--stack .bx__main { max-width: 1176px; margin-inline: auto; }

/* beside (from 1024 px, landscape): one grid for the page head, the stage and the options; .bxwrap and .bx drop their
   boxes (display: contents) so all three share it. The stage spans the head and the list, sticky under the site header.
   The stage gets about two thirds of the width (live configurators measured 2026-10-26: Apple 64 %, indEx 67 %); the
   option rows stay two-column down to the 400 px column floor; the shell stops at 2600 px on ultrawide screens. */
@media (min-width: 1024px) and (orientation: landscape) {
  .bxpage--side { --bx-lw: clamp(400px, 28vw, 620px); --bx-gap: clamp(16px, 1.5vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) var(--bx-lw);
    column-gap: var(--bx-gap); align-items: start; max-width: 2600px; margin-inline: auto; padding: 12px var(--bx-gap) 0; }
  .bxpage--side > .bxwrap, .bxpage--side .bx { display: contents; }
  .bxpage--side > .bxhead { grid-column: 2; grid-row: 1; max-width: none; margin: 0; padding: 4px 0 0; }
  .bxpage--side .bx__stagewrap, .bxpage--side .bx__loading { grid-column: 1; grid-row: 1 / span 2; }
  .bxpage--side .bx__stagewrap { position: sticky; top: calc(var(--hdr) + 12px); height: calc(100vh - var(--hdr) - 24px); height: calc(100svh - var(--hdr) - 24px); min-height: 440px; }
  .bxpage--side .bx__main { grid-column: 2; grid-row: 2; }
  .bxpage--side .bx__fail, .bxpage--side noscript { grid-column: 1 / -1; }
  .bxpage--side .bxhead h1 { font-size: clamp(1.6rem, 1.8vw, 2.2rem); }
  .bxpage--side .bxhead .lead { font-size: .94rem; }
  .bxpage--side .bxhead__trust { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .82rem; }
  .bxpage--side .bx__nav { margin-top: 10px; }
  .bxpage--side .bx__presets { padding-top: 20px; }
  .bxpage--side .bx__views { max-width: calc(100% - 340px); }
  .bxpage--side .bx__hud { left: 24px; bottom: 20px; }
  .bxpage--side .bx__hint { right: 24px; bottom: 22px; }
  .bxpage--side .bx__toast { left: calc(50vw - (var(--bx-gap) + var(--bx-lw)) / 2); bottom: 40px; }
  /* the site header spans the same width, so the logo lines up with the stage and the cart with the options */
  body:has(.bxpage--side) .hdr__in { max-width: 2600px; padding-inline: clamp(16px, 1.5vw, 32px); }
}
/* short or narrow desktop windows (1080p at 150 %, small laptops): the intro gives its room to the options, and the
   stage keeps the view buttons on one line */
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 660px) {
  .bxpage--side .bxhead .lead, .bxpage--side .bxhead .crumbs { display: none; }
  .bxpage--side .bxhead h1 { font-size: 1.5rem; }
}
@media (min-width: 1024px) and (max-width: 1199px) and (orientation: landscape) {
  .bxpage--side .bx__views [data-view="back"], .bxpage--side .bx__views [data-view="top"] { display: none; }
}

/* ---------------------------------------------------------------- section nav */
.bx__nav { position: sticky; top: var(--hdr); z-index: 20; margin: 14px 0 0; background: rgba(245,246,247,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s200); }
.bx__navin { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; height: var(--bx-nav); align-items: stretch; }
.bx__navin::-webkit-scrollbar { display: none; }
.bx__navin a { flex: none; display: flex; align-items: center; padding: 0 12px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 650; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.bx__navin a:hover { color: var(--text); }
.bx__navin a.is-on { color: var(--text); border-bottom-color: var(--accent); }
.bx__navin a[data-navk="quote"] { margin-left: auto; color: var(--accent-text); }
[data-sec] { scroll-margin-top: 8px; }

/* ---------------------------------------------------------------- ready-made builds */
.bx__presets { padding: 26px 0 8px; }
.bx__presetshead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.bx__presetshead h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 4px; }
.bx__files { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bx-open { position: relative; }
.bx-presets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 228px); gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bx-pre { scroll-snap-align: start; display: grid; grid-template-rows: auto auto 1fr; text-align: left; padding: 0; border-radius: 16px; border: 1.5px solid var(--s200); background: #fff; cursor: pointer; overflow: hidden; color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.bx-pre:hover { border-color: var(--s400); transform: translateY(-2px); box-shadow: var(--shadow); }
.bx-pre.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,137,44,.18); }
.bx-pre__img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--s300); background: radial-gradient(120% 95% at 50% 18%, #fff 0%, #f1f3f5 50%, #dde1e5 100%); }
.bx-pre__img .bx-ic { width: 70px; height: 70px; stroke-width: 1.3; }
.bx-pre__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-pre__t { padding: 11px 13px 2px; font: 750 .96rem/1.25 var(--font-display); }
.bx-pre__s { padding: 0 13px 12px; font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* ---------------------------------------------------------------- option rows (a listed spec: header left, controls right) */
.bx__list { border-top: 1px solid var(--s200); margin-top: 12px; }
.bx-row { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 12px 40px; padding: 30px 0; border-bottom: 1px solid var(--s200); }
.bx-row__h { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 2px 12px; position: sticky; top: calc(var(--hdr) + var(--bx-nav) + 18px); align-self: start; }
.bx-row__n { grid-row: span 2; margin: 3px 0 0; font: 600 .78rem/1 var(--mono); color: var(--accent-text); letter-spacing: .06em; }
.bx-row__h h2 { font-size: 1.3rem; margin: 0; letter-spacing: -.01em; }
.bx-row__hint { margin: 4px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.bx-row__v { grid-column: 2; justify-self: start; margin: 10px 0 0; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--s200); font-size: .8rem; font-weight: 700; color: var(--s700); }
.bx-row__b { min-width: 0; display: grid; gap: 16px; align-content: start; }
.bx-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 24px; align-items: start; }
.bx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; align-items: start; }
.bx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; align-items: end; }
.bx-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 12px; }

/* tiles (type, location, mounting) */
.bx-tiles { display: grid; gap: 10px; }
.bx-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bx-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-tiles--mount { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.bx-tile { position: relative; display: grid; align-content: start; justify-items: start; gap: 6px; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--s200); background: #fff; cursor: pointer; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.bx-tile:hover { border-color: var(--s400); }
.bx-tile:active { transform: scale(.985); }
.bx-tile.is-on { border-color: var(--accent); background: #fffaf5; box-shadow: 0 0 0 3px rgba(232,137,44,.16); }
.bx-tile.is-on::after { content: ""; position: absolute; top: 11px; right: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bx-tile .bx-ic { color: var(--s600); }
.bx-tile.is-on .bx-ic { color: var(--accent-text); }
.bx-tile__t { font: 750 1rem/1.2 var(--font-display); padding-right: 20px; }
.bx-tile__s { font-size: .8rem; color: var(--muted); line-height: 1.38; }
.bx-tiles--row .bx-tile { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.bx-tiles--row .bx-tile .bx-ic { grid-row: span 2; }
.bx-tiles--mount .bx-tile .bx-ic { width: 36px; height: 36px; }

/* chips (one of a set), exposures (any of a set) */
.bx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--s300); background: #fff; cursor: pointer; font-weight: 650; font-size: .86rem; color: var(--text); transition: background .15s, border-color .15s; }
.bx-chip:hover { border-color: var(--s600); }
.bx-chip.is-on { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.bx-exp { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.bx-x { min-height: 38px; padding: 0 13px 0 31px; position: relative; border-radius: 999px; border: 1px solid var(--s300); background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--text); }
.bx-x::before { content: ""; position: absolute; left: 11px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 4px; border: 1.5px solid var(--s400); }
.bx-x.is-on { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.bx-x.is-on::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.bx-x--warn.is-on { background: #8a1c1c; border-color: #8a1c1c; }

/* recommendation */
.bx-rec { border-radius: 14px; padding: 16px 18px; background: linear-gradient(135deg, #1b2025, #262c32); color: var(--on-dark); }
.bx-rec.is-block { background: #3b1414; }
.bx-rec__k { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 8px; }
.bx-rec__v { font: 800 1.35rem/1.15 var(--font-display); margin: 0 0 8px; }
.bx-rec__v span { font-weight: 500; color: var(--on-dark-2); font-size: .95rem; }
.bx-rec ul { margin: 0 0 12px; padding-left: 18px; color: var(--on-dark-2); font-size: .88rem; }
.bx-rec ul:last-child { margin-bottom: 0; }
.bx-tips { display: grid; gap: 6px; }
.bx-tip { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(243,160,78,.6); background: rgba(243,160,78,.08); color: inherit; cursor: pointer; font-size: .85rem; line-height: 1.4; }
.bx-tip b { color: var(--accent-hi); margin-right: 4px; }
.bx-tip.is-on { border-style: solid; background: rgba(22,163,74,.14); border-color: rgba(22,163,74,.55); }
.bx-tip.is-on b { color: #4ade80; }
.bx-tips--light .bx-tip { color: var(--text); background: #fff6ee; }
.bx-tips--light .bx-tip b { color: var(--accent-text); }

/* fields, switches, steppers, ranges */
.bx-f { display: grid; gap: 0; min-width: 0; }
.bx-f__l { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 7px; display: block; }
.bx-f select, .bx-f input[type=text], .bx-f input[type=number] { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--s300); background: #fff; font: inherit; color: inherit; }
.bx-f select:focus, .bx-f input:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(232,137,44,.25); }
.bx-sws { display: grid; gap: 4px 22px; align-content: start; }
.bx-sws--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bx-sw { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 7px 0; position: relative; }
.bx-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bx-sw__k { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--s300); position: relative; transition: background .15s; margin-top: 1px; }
.bx-sw__k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.bx-sw input:checked + .bx-sw__k { background: var(--accent); }
.bx-sw input:checked + .bx-sw__k::after { transform: translateX(18px); }
.bx-sw input:focus-visible + .bx-sw__k { outline: 3px solid var(--accent); outline-offset: 2px; }
.bx-sw b { display: block; font-weight: 650; }
.bx-sw small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.bx-sw.is-dis { opacity: .5; cursor: not-allowed; }
.bx-step { display: grid; gap: 0; }
.bx-step .bx-f__l { margin-bottom: 4px; }
.bx-step__c { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.bx-step__c b { font: 800 1.3rem/1 var(--font-display); min-width: 26px; text-align: center; }
.bx-rng { display: flex; align-items: center; gap: 12px; }
.bx-rng input { flex: 1; accent-color: var(--accent); }
.bx-rng output { font: 700 1rem/1 var(--font-display); min-width: 74px; text-align: right; }
.bx-more { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--s200); }
.bx-note { font-size: .86rem; color: var(--muted); margin: 0; }
.bx-note--ok { background: #ecfdf3; color: #14532d; padding: 10px 12px; border-radius: 10px; }
.bx-note--ok a { color: inherit; font-weight: 700; }
.bx-warn { font-size: .88rem; background: #fff7e6; color: #7a4a00; border: 1px solid #f5d38a; padding: 10px 12px; border-radius: 10px; margin: 0; }
.bx-grp { border: 0; border-top: 1px solid var(--s200); margin: 0; padding: 16px 0 4px; min-width: 0; display: grid; gap: 12px; }
.bx-grp:first-of-type { border-top: 0; padding-top: 0; }
.bx-grp legend { font: 800 1.02rem/1 var(--font-display); padding: 0 0 12px; float: left; width: 100%; }
.bx-grp[disabled] { opacity: .55; }

/* size */
.bx-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-sz { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 10px; border: 1.5px solid var(--s200); background: #fff; cursor: pointer; color: var(--text); transition: border-color .15s; }
.bx-sz svg { width: 24px; height: 24px; fill: var(--s100); stroke: var(--s600); stroke-width: 1.5; }
.bx-sz b { font: 700 .9rem/1 var(--font-display); white-space: nowrap; }
.bx-sz:hover { border-color: var(--s400); }
.bx-sz.is-on { border-color: var(--accent); background: #fffaf5; }
.bx-sz.is-on svg { fill: rgba(232,137,44,.25); stroke: var(--accent-text); }
.bx-sz--disp { padding: 0 14px; min-width: 64px; justify-content: center; }
.bx-sz--disp b { font-size: 1rem; }
.bx-dims { display: grid; gap: 12px; }
.bx-dim { display: grid; grid-template-columns: 64px minmax(0, 1fr) 118px; align-items: center; gap: 12px; }
.bx-dim label { font: 800 1rem/1 var(--font-display); }
.bx-dim input[type=range] { width: 100%; accent-color: var(--accent); }
.bx-dim__n { display: flex; align-items: center; border: 1px solid var(--s300); border-radius: 10px; background: #fff; overflow: hidden; }
.bx-dim__n input { width: 100%; min-height: 42px; border: 0; background: none; padding: 0 4px 0 12px; font: 700 1.05rem/1 var(--font-display); color: inherit; min-width: 0; }
.bx-dim__n input:focus { outline: none; }
.bx-dim__n:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(232,137,44,.25); }
.bx-dim__n i { font: 500 .74rem/1 var(--mono); color: var(--muted); padding-right: 10px; font-style: normal; }
.bx-units { margin-top: 2px; }
.bx-units .bx-chip { min-height: 34px; font-size: .8rem; }
.bx-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0; background: var(--s200); border: 1px solid var(--s200); border-radius: 12px; overflow: hidden; }
.bx-facts div { background: #fff; padding: 9px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bx-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.bx-facts dd { margin: 0; font-weight: 700; font-family: var(--font-display); font-size: .98rem; text-align: right; }
.bx-facts small { display: block; font-family: var(--font); font-weight: 500; color: var(--muted); font-size: .74rem; }
.bx-fit { border: 1px solid var(--s200); border-radius: 12px; padding: 0 14px; background: #fff; }
.bx-fit summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style-position: inside; }
.bx-fit p { color: var(--muted); font-size: .9rem; }
.bx-fit[open] { padding-bottom: 14px; }
.bx-std { border-radius: 12px; background: #f1f7f3; border: 1px solid #cfe5d7; padding: 14px; }
.bx-std__k { font-weight: 750; margin: 0 0 10px; color: #14532d; }
.bx-std ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.bx-std a { display: flex; align-items: center; gap: 10px; text-decoration: none; background: #fff; border: 1px solid #d7e9de; border-radius: 10px; padding: 6px; color: var(--text); }
.bx-std a:hover { border-color: #16a34a; }
.bx-std img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--s100); }
.bx-std b { display: block; font-family: var(--font-display); }
.bx-std small { color: var(--muted); }
.bx-std__s { font-size: .82rem; color: #3f6b50; margin: 10px 0 0; }

/* material + colour swatches */
.bx-mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bx-mat { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-content: center; text-align: left; padding: 10px; border-radius: 14px;
  border: 1.5px solid var(--s200); background: #fff; cursor: pointer; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.bx-mat:hover { border-color: var(--s400); }
.bx-mat.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,137,44,.16); }
.bx-mat__sw { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 -6px 10px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.12); }
.bx-mat__sw--304 { background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, rgba(0,0,0,.04) 1px 3px), linear-gradient(135deg, #f1f3f4, #b9bfc4 42%, #eef0f1 58%, #a6adb3); }
.bx-mat__sw--316L { background: repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1px, rgba(0,0,0,.05) 1px 3px), linear-gradient(135deg, #e4e8ec, #a9b1b9 42%, #dfe4e8 58%, #96a0a9); }
.bx-mat__sw--al { background: radial-gradient(circle at 35% 30%, #fbfbfc, #d6d9dc 55%, #b4b9be); }
.bx-mat__sw--pc { background: radial-gradient(circle at 35% 30%, #ffffff, #dcdfe1 60%, #c4c8cb); }
.bx-mat__sw--frp { background: repeating-linear-gradient(35deg, rgba(0,0,0,.05) 0 2px, transparent 2px 5px), radial-gradient(circle at 35% 30%, #e6e7df, #c6c9c2 60%, #aeb2a8); }
.bx-mat__t { font: 750 .95rem/1.2 var(--font-display); }
.bx-mat__t em { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e7f7ed; color: #15803d; font: 700 .64rem/1.5 var(--font); font-style: normal; text-transform: uppercase; letter-spacing: .05em; vertical-align: 2px; }
.bx-mat__s { font-size: .78rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.bx-ral { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bx-ral__c { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; text-align: left; padding: 7px 9px; border-radius: 12px; border: 1.5px solid var(--s200); background: #fff; cursor: pointer; font-weight: 700; font-size: .8rem; color: var(--text); }
.bx-ral__c span { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 0 -5px 8px rgba(0,0,0,.12); }
.bx-ral__c small { color: var(--muted); font-weight: 500; }
.bx-ral__c.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,137,44,.16); }

/* cutouts */
.bx-cutlist { border-radius: 14px; border: 1px solid var(--s200); background: #fff; padding: 14px; }
.bx-cutlist__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bx-cutlist__h h3 { margin: 0; font-size: 1.05rem; }
.bx-cutlist__h span { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.is-err { color: #b91c1c; } .is-warn { color: #92400e; } .is-ok { color: #15803d; }
.bx-cutlist__h .is-err { background: #fdeaea; } .bx-cutlist__h .is-warn { background: #fff4db; } .bx-cutlist__h .is-ok { background: #e7f7ed; }
.bx-cutlist ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; max-height: 280px; overflow-y: auto; }
.bx-cutlist li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--s50); font-size: .86rem; }
.bx-cutlist li small { display: block; font-size: .76rem; }
.bx-cutlist__f { font: 500 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bx-cutlist .bx-note { margin-top: 10px; }
.bx-dz { margin-top: 14px; flex-direction: column; gap: 2px; min-height: 64px; text-align: center; }
.bx-dz small { font-weight: 500; opacity: .75; font-size: .78rem; }

/* ---------------------------------------------------------------- quote */
.bx-quote { padding: 34px 0 30px; }
.bx-quote__h h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 6px; }
.bx-quote__h { margin-bottom: 18px; max-width: 70ch; }
.bx-quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.bx-sheet { border: 1px solid var(--s300); border-radius: 14px; overflow: hidden; background: #fff; }
.bx-sheet__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 16px; background: var(--ink-2); color: #fff; }
.bx-sheet__h span { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.bx-sheet__h b { font-family: var(--font-display); font-size: 1rem; }
.bx-sheet dl { margin: 0; }
.bx-sheet dl div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 9px 16px; border-top: 1px solid var(--s200); }
.bx-sheet dl div:nth-child(odd) { background: var(--s50); }
.bx-sheet dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.bx-sheet dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.bx-sheet dd small { display: block; color: var(--muted); font-size: .76rem; }
.bx-sheet__cuts { border-top: 1px solid var(--s200); padding: 0 16px; }
.bx-sheet__cuts summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.bx-sheet__cuts pre { margin: 0 0 12px; font: .76rem/1.45 Consolas, ui-monospace, monospace; white-space: pre-wrap; background: var(--s100); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }
.bx-sheet__b { border-top: 1px solid var(--s200); padding: 10px 16px; font-size: .88rem; }
[data-sheet] > * + * { margin-top: 12px; }
.bx-chk { border-radius: 12px; padding: 12px 14px; border: 1px solid; font-size: .88rem; }
.bx-chk.is-ok { background: #ecfdf3; border-color: #bfe6cd; color: #14532d; }
.bx-chk.is-warn { background: #fff8eb; border-color: #f5d38a; color: #7a4a00; }
.bx-chk.is-err { background: #fdf0f0; border-color: #f1b4b4; color: #8a1c1c; }
.bx-chk__h { margin: 0; } .bx-chk__h b { margin-right: 6px; }
.bx-chk__k { margin: 10px 0 4px; font: 700 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.bx-chk ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; color: var(--text); }
.bx-chk__s { margin: 10px 0 0; color: var(--muted); font-size: .82rem; } .bx-chk__s a { color: inherit; font-weight: 700; }
.bx-rfq { background: #fff; border: 1px solid var(--s200); border-radius: 14px; padding: clamp(16px, 2vw, 24px); }
.bx-rfq__h { grid-column: 1 / -1; margin: 0; font-size: 1.2rem; }

/* summary bar (wrap-wide with rounded top corners on wide screens; edge to edge on phones) */
.bx__sum { position: sticky; bottom: 0; z-index: 30; margin: 0 calc(-1 * clamp(16px, 4vw, 32px)); padding: 0 clamp(16px, 4vw, 32px) env(safe-area-inset-bottom, 0px);
  background: rgba(22,25,28,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; transition: transform .25s, opacity .25s; }
@media (min-width: 900px) { .bx__sum { margin: 0; border-radius: 16px 16px 0 0; } }
.bx__sum.is-away { transform: translateY(110%); opacity: 0; pointer-events: none; }
.bx__sumin { display: flex; align-items: center; gap: 10px 14px; min-height: 68px; }
.bx__sumt { flex: 1; min-width: 0; }
.bx__sumt b { display: block; font: 750 1rem/1.25 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx__sumt span { display: block; font-size: .8rem; color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx__sumshare { color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .88rem; }

.bx__toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; max-width: min(560px, calc(100vw - 32px)); background: var(--ink-2); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: .9rem; }
.bx__toast .linkbtn { color: var(--accent-hi); }
.bx-copy { width: 100%; margin-top: 6px; padding: 6px 8px; border-radius: 6px; border: 0; font: .8rem/1.3 ui-monospace, monospace; }

/* the page sections under the app */
.bxhow { padding-top: 40px; }
.bxhow .steps { margin-top: 8px; }

/* thumbnail capture (?shot=<id>, site/builder_shots.py): the stage alone, full window */
.bx--shot .bx__stagewrap { z-index: 9999; }
.bx--shot .bx__stage { position: fixed; inset: 0; z-index: 9999; border-radius: 0; border: 0; box-shadow: none; }
.bx--shot .bx__views, .bx--shot .bx__tools, .bx--shot .bx__hud, .bx--shot .bx__hint, .bx--shot .bx__sum { display: none !important; }

/* the option rows, presets, quote and summary adapt to the width of their own column (container queries), so the same
   rows work full width, beside a big 3D view on desktop and on phones */
.bx__main { container: bxmain / inline-size; min-width: 0; }
@container bxmain (max-width: 1000px) {
  .bx-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .bx-row__h { position: static; grid-template-columns: auto 1fr auto; align-items: baseline; }
  .bx-row__n { grid-row: auto; }
  .bx-row__hint { grid-column: 2 / -1; grid-row: 2; }
  .bx-row__v { grid-column: 3; grid-row: 1; margin: 0; }
}
@container bxmain (max-width: 760px) {
  .bx-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-split, .bx-quote__grid { grid-template-columns: minmax(0, 1fr); }
  .bx-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-presets { grid-auto-columns: minmax(170px, 190px); }
  .bx__sumshare { display: none; }
}
@container bxmain (max-width: 520px) {
  .bx-grid2, .bx-grid3, .bx-sws--2, .bx-tiles--2 { grid-template-columns: minmax(0, 1fr); }
  .bx-grid3 { align-items: start; }
  .bx-tiles--mount { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-dim { grid-template-columns: 52px minmax(0, 1fr) 96px; gap: 8px; }
  .bx-sheet dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bx-tile { padding: 12px; }
  .bx-tile__s { font-size: .76rem; }
  .bx-row__h { grid-template-columns: auto 1fr; }
  .bx-row__v { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 6px; }
  .bx-mats, .bx-ral { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-mat { grid-template-columns: 36px minmax(0, 1fr); padding: 9px; column-gap: 9px; }
  .bx-mat__sw { width: 36px; height: 36px; }
  .bx-mat__t em { display: block; margin: 3px 0 0; width: max-content; }
  .bx__sumt span { display: none; }
}
@media (max-width: 1100px) {
  .bxhead__trust { display: flex; flex-wrap: wrap; gap: 6px 18px; }
}
@media (max-width: 899px) {
  /* the stage stays on top while the options scroll under it */
  :root:has(.bxpage) { --bx-h: max(220px, 36svh); --bx-nav: 46px; }
  .bx__stagewrap { margin: 0 calc(-1 * clamp(16px, 4vw, 32px)); }
  .bx__stage { border-radius: 0; border-left: 0; border-right: 0; box-shadow: 0 6px 18px rgba(15,17,19,.08); }
  .bx__nav { margin: 0 calc(-1 * clamp(16px, 4vw, 32px)); padding: 0 clamp(8px, 3vw, 24px); }
  .bx__views { top: 8px; left: 8px; gap: 4px; max-width: calc(100% - 170px); }
  .bx__views [data-view="top"], .bx__views [data-view="back"] { display: none; }
  .bx__tools { top: 8px; right: 8px; gap: 4px; }
  .bx__tools [data-act="dims"], .bx__hint { display: none; }
  .bx-vb { min-height: 32px; padding: 0 10px; font-size: .78rem; }
  .bx-vb--ic { width: 32px; padding: 0; }
  .bx__hud { left: 12px; bottom: 9px; }
  .bx__dims { font-size: 1.15rem; }
  .bx__sub { font-size: .74rem; }
  .bxhead { padding-top: 12px; padding-bottom: 10px; }
  .bxhead .lead { font-size: .92rem; }
  .bx__sumin { min-height: 60px; }
  .bx__toast { bottom: 72px; }
}
@media (max-width: 600px) {
  .bxhead .lead { display: none; }
  .bxhead h1 { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-tile, .bx-pre, .bx-sw__k, .bx-sw__k::after, .bx__sum { transition: none; }
}
