/* Agena Stringing — customer site and kiosk, in "The Court" as on university.agenasports.com
   (agena-university/DESIGN.md): linen ground, paper panels, warm ink, olive labels, hairline
   rules, square everywhere, no shadows, data in JetBrains Mono, Aventa for headings. Ball-yellow
   is only ever a fill: the selected answer, as on University's quiz. Builds on agena-ui's tokens
   and its .btn / .field / .flash / .panel-dark / .eyebrow; class names here never reuse agena-ui's. */

:root { --g: 16px; --frame: 1120px; --rule: var(--border); --rule2: #E4E3DA; --tap: 56px; }
@media (max-width: 399px) { :root { --g: 14px; } }
html { font-size: 15px; }
body { font-size: 15px; line-height: 1.5; overflow-x: hidden; }
.main { max-width: var(--frame); padding: 0 var(--g) 72px; }
.mono { font-family: var(--font-m); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ext::after { content: " ↗"; font-family: var(--font-m); font-size: .85em; }
.lead { font-size: 16px; color: var(--text-mid); max-width: 34em; }
.num { text-align: right; }
.btn-block { width: 100%; }
.btn-lg { min-height: var(--tap); font-size: 16px; }
.btn-xl { min-height: 88px; padding: 0 48px; font: 700 24px/1.1 var(--font-b); }
.btn-link { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 600 14px/1.3 var(--font-b); text-decoration: underline; text-underline-offset: 4px; color: var(--ink); cursor: pointer; }
.back-row { margin: 16px 0; }

/* Header: one ruled row, the Agena logo and STRINGING in mono, the sections, ID | EN. */
.top { position: sticky; top: 0; z-index: 30; background: var(--linen); border-bottom: 1px solid var(--rule); }
.top-in { max-width: var(--frame); margin: 0 auto; padding: 0 var(--g); min-height: 56px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); }
.brand .agena-logo { height: 13px; width: auto; display: block; }
.brand-tag { font: 500 10.5px/14px var(--font-m); letter-spacing: .18em; border-left: 1px solid var(--ink); padding-left: 10px; }
.unav { display: flex; gap: 18px; align-self: stretch; margin-right: auto; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); margin-left: calc(-1 * var(--g)); margin-right: calc(-1 * var(--g)); padding: 0 var(--g); }
.unav::-webkit-scrollbar { display: none; }
.unav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--text-mid); border-bottom: 2px solid transparent; white-space: nowrap; }
.unav a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.langsw { margin: 0 0 0 auto; }
.acct { margin-left: auto; font-size: 13px; color: var(--text-mid); white-space: nowrap; }
.acct a, a.acct { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.acct + .langsw { margin-left: 0; }
.langsw button { display: inline-flex; border: 1px solid var(--ink); background: transparent; padding: 0; }
.langsw span { font: 500 11px/1 var(--font-m); letter-spacing: .06em; min-width: 36px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.langsw span.on { background: var(--ink); color: var(--linen); }
@media (min-width: 760px) {
  .unav { order: 0; width: auto; border-top: 0; margin: 0 auto 0 24px; padding: 0; overflow: visible; }
  .langsw { margin-left: 0; }
}
.top-kiosk .top-in { min-height: 72px; }
.top-kiosk .brand .agena-logo { height: 18px; }

/* Footer: the shop's olive. */
.foot { background: var(--olive); color: var(--linen); margin-top: 56px; }
.foot-in { max-width: var(--frame); margin: 0 auto; padding: 32px var(--g); display: grid; gap: 20px; }
.foot .agena-logo { height: 14px; width: auto; color: var(--linen); }
.foot-tag { color: #CDCCC2; font-size: 13px; margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; font: 600 12px/1 var(--font-b); letter-spacing: .12em; text-transform: uppercase; }
.foot-legal { color: var(--on-dark-muted); font-size: 12px; border-top: 1px solid rgba(247, 246, 240, .2); padding-top: 16px; }
.foot :focus-visible { outline-color: var(--yellow); }

/* Flash messages sit with the question they are about. */
.flashes { display: grid; gap: 8px; margin: 12px 0; }
.flash-acts { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.flash-info::before { content: "Info"; }

/* ---------------------------------------------------------------- stores (home) */
.hero { padding: 32px 0 24px; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.02; margin: 12px 0 14px; }
.phead { padding: 28px 0 18px; }
.phead h1 { font-size: clamp(28px, 5vw, 40px); margin-top: 10px; }

/* The two numbers: wait and queue, large, in mono. */
.figs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); margin-top: 14px; }
.fig { padding: 12px 12px 4px 0; min-width: 0; }
.fig + .fig { border-left: 1px solid var(--rule); padding-left: 12px; }
.fig-v { display: block; font-family: var(--font-m); white-space: nowrap; }
.fig-v b { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.fig-v small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-left: 4px; color: var(--text-muted); }
.fig-l { display: block; font: 600 11px/1.4 var(--font-b); letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin-top: 6px; }
.figs-big .fig-v b { font-size: clamp(48px, 9vw, 72px); }
.figs-full { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font: 700 22px/1.1 var(--font-d); }
.figs-full small { display: block; font: 400 13px/1.4 var(--font-b); color: var(--text-muted); margin-top: 4px; }
.ready { font-size: 14px; color: var(--text-mid); margin-top: 10px; }

.fastest { position: relative; margin: 24px calc(-1 * var(--g)) 0; padding: 24px var(--g); }
.fastest h2 { font-size: 30px; margin: 10px 0 0; color: var(--linen); }
.fastest .figs { border-top-color: #2E2E28; }
.fastest .fig + .fig { border-left-color: #2E2E28; }
.fastest .fig-v small, .fastest .ready { color: var(--on-dark-muted); }
.fastest .fig-l { color: var(--yellow); }
.fastest-go { margin-top: 14px; font-weight: 700; color: var(--linen) !important; }
@media (min-width: 760px) { .fastest { margin-left: 0; margin-right: 0; padding: 28px; } }

.stretch { color: inherit; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid currentColor; outline-offset: -4px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 12px; }
.rchips { display: flex; gap: 6px; flex-wrap: wrap; }
.rchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); background: var(--paper); font-size: 14px; }
.rchip.on { background: var(--ink); border-color: var(--ink); color: var(--linen); }

.stores { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .stores { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .stores { grid-template-columns: repeat(3, 1fr); } }
.store { position: relative; background: var(--paper); border: 1px solid var(--rule); padding: 16px; display: flex; flex-direction: column; }
.store:has(.stretch):hover { border-color: var(--ink); }
.store:has(.stretch:active) { background: var(--yellow); }
.store.is-full { background: transparent; }
.store.is-full .store-name { color: var(--text-muted); }
.store-top { display: flex; justify-content: space-between; gap: 8px; min-height: 18px; }
.store-name { font-size: 22px; margin-top: 8px; }
.store-area { font-size: 13.5px; color: var(--text-muted); }
.store-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.store-go { font-weight: 700; font-size: 14px; }
.store-acts { display: flex; gap: 6px; position: relative; z-index: 2; }
.store-acts .btn { min-height: 36px; font-size: 12.5px; padding: 0 10px; }
.sq { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; text-transform: uppercase; }
.sq::before { content: ""; width: 8px; height: 8px; flex: none; }
.sq-on { color: var(--green); } .sq-on::before { background: var(--green); }
.sq-off { color: var(--ink); } .sq-off::before { outline: 1px solid var(--ink); outline-offset: -1px; }
.distance { font-size: 11px; color: var(--label); }

.rows { display: block; border-top: 1px solid var(--ink); margin-top: 32px; background: var(--paper); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; min-height: 64px; border-bottom: 1px solid var(--rule); }
.row b { display: block; font: 700 18px/1.15 var(--font-d); }
.row small { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.row:active { background: var(--yellow); }
@media (hover: hover) { .row:hover { background: #FDFBE3; } }

/* ---------------------------------------------------------------- one question per screen */
.flow { max-width: 760px; margin: 0 auto; }
.qhead { padding-top: 6px; }
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qback { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.qcount { font-size: 11px; color: var(--text-muted); text-transform: uppercase; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog { display: flex; gap: 3px; }
.prog i { flex: 1; height: 3px; background: var(--rule); }
.prog i.on { background: var(--ink); }
.q { padding: 24px 0 0; }
.qt { font-size: clamp(28px, 6vw, 38px); line-height: 1.06; margin-bottom: 8px; }
.q-lead { color: var(--text-mid); margin: 4px 0 16px; }
.q-hint { color: var(--text-muted); font-size: 13.5px; margin: 8px 0; }
.q-saved { font-size: 12px; color: var(--label); margin: 4px 0 8px; }
.q-or { margin: 24px 0 8px; font-weight: 600; }

/* Answer rows, as University's quiz: ruled, 56px, a square box that fills ink; the chosen row is yellow. */
.opts { margin: 16px 0; border-top: 1px solid var(--ink); background: var(--paper); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px; border-bottom: 1px solid var(--rule); min-height: var(--tap); cursor: pointer; position: relative; }
.opt input, .bchip input, .spick > input, .cpick > input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-t { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.opt-s { display: block; font-size: 13px; font-weight: 400; color: var(--text-muted); margin-top: 2px; letter-spacing: 0; }
.opt .box { width: 20px; height: 20px; border: 1.5px solid var(--ink); flex: none; display: grid; place-items: center; }
.opt:has(input:checked) { background: var(--yellow); }
.opt:has(input:checked) .box { background: var(--ink); }
.opt:has(input:checked) .box::after { content: ""; width: 6px; height: 6px; background: var(--yellow); }
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.opt-off { cursor: not-allowed; color: var(--text-muted); }
.opt-off .box { border-color: var(--rule); }
@media (hover: hover) { .opt:not(.opt-off):hover { background: #FDFBE3; } .opt:has(input:checked):hover { background: var(--yellow); } }
.tag { display: inline-flex; align-items: center; font: 500 10px/1 var(--font-m); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 5px; margin: 0 4px 4px 0; }
.tag-rec { background: var(--ink); color: var(--linen); vertical-align: 3px; margin-left: 6px; }
.tag-arm { border-color: var(--green); color: var(--green); }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; min-height: 44px; cursor: pointer; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--ink); }
.check-dark input { accent-color: var(--yellow); }
.field label, .sub-h { font: 600 11px/1.4 var(--font-b); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.field input, .field select, .field textarea { min-height: 52px; font-size: 16px; border-color: var(--ink); }
.field textarea { min-height: 88px; }
.sub { border: 0; padding: 0; margin: 16px 0; min-width: 0; }
.sub-h { display: block; margin: 20px 0 8px; }

/* The bar with Next, stuck to the bottom of a phone's screen. */
.step-actions { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; margin: 24px calc(-1 * var(--g)) 0; padding: 12px var(--g) calc(12px + env(safe-area-inset-bottom)); background: var(--linen); border-top: 1px solid var(--ink); }
.step-actions .btn-primary, .step-actions .btn-secondary:not(.st-back) { flex: 1; }
.st-back { flex: none; width: var(--tap); padding: 0; font-family: var(--font-m); font-size: 18px; }
@media (min-width: 760px) { .step-actions { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; border-top-color: var(--rule); } .step-actions .btn-primary { flex: 0 1 320px; margin-left: auto; } }
.layout-switch { text-align: center; margin: 24px 0 0; }
@media (max-width: 759px) { .flow .layout-switch { display: none; } }

/* Phone: the country code right beside the number. */
.phone { display: flex; margin: 12px 0 4px; border: 1px solid var(--ink); background: var(--paper); }
.phone-cc { flex: none; min-height: var(--tap); padding: 0 8px 0 12px; border: 0; border-right: 1px solid var(--ink); background: var(--linen); font: 500 16px/1 var(--font-m); }
.phone input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 14px; border: 0; background: transparent; font: 500 20px/1 var(--font-m); letter-spacing: .04em; }
.phone input:focus-visible, .phone-cc:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.phone:has(input[aria-invalid="true"]) { border-color: var(--red); }
.q-hint.is-bad { color: var(--red); font-weight: 600; }

/* Agena Club: the one black panel. */
.club-pitch { margin: 20px calc(-1 * var(--g)) 0; padding: 22px var(--g); }
.club-pitch h2 { color: var(--linen); font-size: 24px; margin: 10px 0 14px; }
.perks { list-style: none; display: grid; gap: 10px; margin-bottom: 8px; }
.perks li { display: grid; grid-template-columns: 18px 1fr; color: var(--linen); font-size: 15px; }
.perks li::before { content: ""; width: 9px; height: 9px; background: var(--yellow); margin-top: 7px; }
.club-pitch .check span { color: var(--linen); }
@media (min-width: 760px) { .club-pitch { margin-left: 0; margin-right: 0; padding: 24px; } }

/* Racket: brand chips, then the model list as you type. */
.brands { display: flex; flex-wrap: wrap; gap: 6px; }
.bchip { position: relative; cursor: pointer; }
.bchip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--ink); background: var(--paper); font-weight: 600; }
.bchip input:checked + span { background: var(--ink); color: var(--linen); }
.bchip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.autocomplete { position: relative; }
.suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--ink); border-top: 0; max-height: 320px; overflow-y: auto; }
.suggestions li { padding: 12px 14px; min-height: 48px; cursor: pointer; border-bottom: 1px solid var(--rule2); display: flex; justify-content: space-between; gap: 10px; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--yellow); }
.suggestions .mono { color: var(--text-muted); font-size: 12px; }
.manual { margin: 8px 0; }
.manual summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* String setup: two square cells. */
.seg { display: inline-flex; border: 1px solid var(--ink); margin: 8px 0; }
.seg label { position: relative; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 600; }
.seg label + label span { border-left: 1px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--linen); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -4px; }
.hybrid-only[hidden] { display: none !important; }

/* Strings: a dense grid, two to a row on a phone, three on a wider screen. */
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 20px; }
@media (min-width: 620px) { .sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.scard-s { background: var(--paper); border: 1px solid var(--rule); display: flex; flex-direction: column; height: 100%; }
.scard-s a { color: inherit; }
.s-photo { aspect-ratio: 4 / 3; background: var(--linen); border-bottom: 1px solid var(--rule); overflow: hidden; }
.s-photo img { width: 100%; height: 100%; object-fit: cover; }
.bed { width: 100%; height: 100%; display: block; }
.bed-lines line { stroke: rgba(21, 21, 15, .55); stroke-width: 1.6; }
.bed.swatch-black .bed-lines line, .bed.swatch-blue .bed-lines line, .bed.swatch-purple .bed-lines line, .bed.swatch-green .bed-lines line, .bed.swatch-red .bed-lines line { stroke: rgba(247, 246, 240, .65); }
.bed.swatch-none { background: var(--linen); }
.s-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.s-brand { font-size: 10.5px; text-transform: uppercase; color: var(--label); }
.s-name { font-size: 17px; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.s-meta { font-size: 12.5px; color: var(--text-mid); }
.s-tags { margin-top: 2px; }
.s-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; font-size: 12.5px; }
.s-price { font-size: 13px; }
.s-where { font-size: 12px; color: var(--text-muted); }
.swatch-row { display: inline-flex; align-items: center; gap: 6px; }
.sw, .dot { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--rule); flex: none; vertical-align: -1px; margin-right: 6px; }
.swatch-row .sw { margin-right: 0; }
.spick { position: relative; display: block; cursor: pointer; }
.spick:has(input:checked) .scard-s { outline: 2px solid var(--ink); outline-offset: -2px; }
.spick:has(input:checked) .s-body { background: var(--yellow); }
.spick:has(input:focus-visible) .scard-s { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch-black { background: #111; } .swatch-white { background: #fff; } .swatch-natural { background: #e8d9b5; }
.swatch-yellow { background: #f2e23a; } .swatch-blue { background: #2f6fd6; } .swatch-red { background: #c8322a; }
.swatch-green { background: #2e8d52; } .swatch-pink { background: #f08bb8; } .swatch-purple { background: #7b4fc4; }
.swatch-orange { background: #f08a24; } .swatch-grey { background: #9a9a9a; } .swatch-silver { background: #c9ccd1; }

/* Tension: the drawing, then a − n + stepper in whole pounds. */
.tension-art { margin: 12px 0 16px; background: var(--paper); border: 1px solid var(--rule); padding: 14px; }
.tension-art svg { width: 100%; height: auto; color: var(--ink); }
.tension-art .ball { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; }
.tension-art .mark { fill: var(--ink); }
.tension-art .tx { font: 500 10px var(--font-m); fill: var(--text-muted); letter-spacing: .06em; }
.tension-art figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; color: var(--text-mid); margin-top: 8px; }
.tension-art figcaption span:last-child { text-align: right; }
.tension-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.tension-lbl { font: 600 11px/1.4 var(--font-b); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); background: var(--paper); }
.st-btn { width: var(--tap); min-height: var(--tap); font: 500 24px/1 var(--font-m); color: var(--ink); background: var(--linen); }
.st-btn:first-child { border-right: 1px solid var(--ink); } .st-btn:last-child { border-left: 1px solid var(--ink); }
.st-btn:active { background: var(--yellow); }
.stepper input { width: 72px; border: 0; text-align: center; font: 500 26px/1 var(--font-m); background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.st-unit { align-self: center; font-size: 11px; color: var(--text-muted); padding-right: 8px; }

/* Overgrips and balls: picture cards. */
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
@media (min-width: 620px) { .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cpick { position: relative; display: block; cursor: pointer; }
.ccard { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--rule); padding: 0 0 10px; height: 100%; }
.ccard > :not(.c-photo):not(.stepper) { padding: 0 10px; }
.ccard .stepper { margin: 6px 10px 0; align-self: flex-start; }
.ccard .stepper input { width: 48px; font-size: 20px; }
.ccard .st-btn { width: 44px; min-height: 44px; }
.ccard-none { justify-content: center; min-height: 120px; padding: 10px; }
.c-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--linen); border-bottom: 1px solid var(--rule); overflow: hidden; margin-bottom: 6px; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; }
.c-photo .art { width: 70%; height: auto; color: var(--text-muted); }
.c-t { display: block; font: 700 18px/1.1 var(--font-d); }
.c-s { display: block; font-size: 12.5px; color: var(--text-mid); }
.c-p { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.c-p .mono { color: var(--ink); }
.cpick:has(input:checked) .ccard { outline: 2px solid var(--ink); outline-offset: -2px; background: var(--yellow); }
.cpick:has(input:checked) .c-photo { background: var(--paper); }
.cpick:has(input:focus-visible) .ccard { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Review */
.rv { border-top: 1px solid var(--ink); margin: 16px 0; background: var(--paper); }
.rv-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rv-row dt { font: 600 11px/1.4 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.rv-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rv-edit { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.lines { width: 100%; border-collapse: collapse; margin: 8px 0; }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--rule2); vertical-align: top; }
.lines td.num { padding-left: 12px; white-space: nowrap; }
.lines .total td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 12px; font-size: 18px; }

/* ---------------------------------------------------------------- the one page (laptop) */
.opage { padding-top: 8px; }
.ohead { padding: 24px 0 8px; }
.ohead h1 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 6px; }
.ogrid { display: grid; gap: 24px; counter-reset: sec; }
@media (min-width: 960px) { .ogrid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } }
.sec { border: 0; border-top: 1px solid var(--ink); padding: 20px 0 28px; margin: 0; min-width: 0; counter-increment: sec; }
.sec-h { display: flex; align-items: baseline; gap: 12px; font: 700 24px/1.1 var(--font-d); letter-spacing: -.02em; padding: 0 0 4px; float: left; width: 100%; }
.sec-h ~ * { clear: both; }
.sec-n::before { content: counter(sec, decimal-leading-zero); font-size: 12px; color: var(--label); }
.js .sec[data-off] { display: none; }
.sec-bad { border-top-color: var(--red); }
.sec .opts { margin-top: 12px; }
.sec .step-actions { display: none; }
.osum { background: var(--paper); border: 1px solid var(--rule); padding: 20px; }
@media (min-width: 960px) { .osum { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; } }
.sum { margin: 12px 0; border-top: 1px solid var(--ink); }
.sum div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule2); font-size: 14px; }
.sum dt { font: 600 10.5px/1.6 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.sum dd { margin: 0; overflow-wrap: anywhere; }
.sum-lines { list-style: none; font-size: 13px; color: var(--text-mid); }
.sum-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); margin: 10px 0 14px; padding-top: 10px; font-weight: 700; }
.sum-total b { font-size: 24px; font-weight: 500; }

/* ---------------------------------------------------------------- strings page, helper */
/* The catalogue. Phone: search, brands scrolling sideways, facets in a full-screen sheet.
   Tablet and kiosk: facets as rows of chips above the results. Laptop: a column beside them. */
.cat-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.cat-q { min-height: 48px; border: 1px solid var(--ink); background: var(--paper); padding: 0 14px; font: 400 16px var(--font-b); width: 100%; }
.cat-sort { grid-column: 1 / -1; min-height: 44px; border: 1px solid var(--rule); background: var(--paper); padding: 0 10px; font: 400 14px var(--font-b); justify-self: start; }
.cat-open { min-height: 48px; gap: 8px; }
.cat-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; background: var(--ink); color: var(--linen); font-size: 12px; }
.cat-brands { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g) 4px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.fchip { position: relative; cursor: pointer; flex: none; }
.fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fchip span { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); background: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; }
.fchip small { color: var(--text-mid); font-weight: 400; }
.fchip .dot { margin-right: 2px; }
.fchip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.fchip input:checked + span small { color: inherit; }
.fchip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.facet { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.facet-h { font: 600 11px/1.4 var(--font-b); letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin-bottom: 8px; }
.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-facets { margin: 16px 0; }
.cat-sheet-h { display: none; }
.cat-sheet-f { display: flex; gap: 8px; }
.cat-live .cat-sheet-f [data-cat-apply] { display: none; }
.cat-count { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 0; font: 500 13px/1.4 var(--font-m); letter-spacing: .04em; color: var(--text-mid); }
.cat-clear-inline { font-family: var(--font-b); font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cat-item[hidden] { display: none; }
@media (max-width: 759px) {
  .cat-live .cat-top { grid-template-columns: minmax(0, 1fr) auto; }
  .cat-live .cat-facets { display: none; }
  .cat-live.cat-sheet-open .cat-facets { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 50; margin: 0; background: var(--linen); overflow-y: auto; padding: 0 var(--g); }
  .cat-sheet-open .cat-sheet-h { display: flex; justify-content: space-between; align-items: center; min-height: 64px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; font-size: 18px; position: sticky; top: 0; background: var(--linen); }
  .cat-sheet-open .cat-sheet-f { margin-top: auto; position: sticky; bottom: 0; background: var(--linen); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); }
  .cat-sheet-open .cat-sheet-f .btn { flex: 1; }
  .cat-live.cat-sheet-open .cat-sheet-f [data-cat-apply] { display: inline-flex; }
  .cat-sheet-open .fchip span { min-height: 48px; font-size: 15px; }
  body.no-scroll { overflow: hidden; }
}
@media (min-width: 760px) {
  .cat-top { grid-template-columns: minmax(0, 1fr) 220px; }
  .cat-sort { grid-column: auto; justify-self: stretch; min-height: 48px; }
  .cat-open { display: none; }
  .cat-scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .cat-facets { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .cat-facets .facet { margin: 0; }
  .cat-sheet-f { align-self: end; margin-left: auto; }
}
@media (min-width: 960px) {
  body:not(.kiosk) .cat-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
  body:not(.kiosk) .cat-facets { display: block; position: sticky; top: 72px; border: 0; padding: 0; margin: 16px 0 0; max-height: calc(100vh - 88px); overflow-y: auto; }
  body:not(.kiosk) .cat-facets .facet { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  body:not(.kiosk) .cat-sheet-f { margin: 0; }
  body:not(.kiosk) .sgrid-browse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1240px) { body:not(.kiosk) .sgrid-browse { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.kiosk .cat-q, body.kiosk .cat-sort { min-height: 72px; font-size: 22px; }
body.kiosk .fchip span { min-height: 64px; padding: 0 22px; font-size: 19px; }
body.kiosk .facet-h { font-size: 14px; }
.string-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; }
.string-detail .card h2 { font-size: 20px; margin: 16px 0 6px; }
.string-detail .card h2:first-child { margin-top: 0; }
@media (max-width: 720px) { .string-detail { grid-template-columns: 1fr; } }
.plain { list-style: none; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--rule2); }
.helper { max-width: 760px; }
.hq { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.hq-t { font: 700 24px/1.1 var(--font-d); letter-spacing: -.02em; float: left; width: 100%; }
.hq-t ~ * { clear: both; }
.helper-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.helper-more form { margin: 0; }
.why { font-size: 13px; color: var(--text-mid); margin: 6px 0; }
/* Helper picks, ranked: 1 (best match), 2, 3. */
.picks { list-style: none; display: grid; gap: 16px; margin: 16px 0; padding: 0; }
@media (min-width: 760px) { .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.pick-n { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.pick-n .mono { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ink); font-size: 18px; font-weight: 500; }
.pick-best .pick-n .mono { background: var(--yellow); }
.pick-best .scard-s { border-color: var(--ink); }
.pick-r form { margin: 8px 0 0; }
body.kiosk .pick-n .mono { width: 52px; height: 52px; font-size: 26px; }

/* ---------------------------------------------------------------- pay and status */
.narrow { max-width: 560px; margin: 24px auto; }
.center { text-align: center; }
.big { font: 500 30px/1.1 var(--font-m); letter-spacing: -.03em; margin: 12px 0; }
.qr img, .qr svg, img.qr { width: min(320px, 80vw); height: auto; margin: 16px auto; }
.pay-wait .waiting::after { content: ''; display: inline-block; width: .8em; height: .8em; margin-left: .5em; border: 2px solid var(--rule); border-top-color: var(--ink); animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-wait .waiting::after { animation: none; } }
.status-page { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.status-page > h1 { font-size: clamp(30px, 6vw, 44px); margin: 8px 0 16px; }
.status-page .card { margin: 16px 0; }
.status-page .card h2 { font-size: 22px; margin-bottom: 8px; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.summary dt { font: 600 11px/1.8 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.summary dd { margin: 0; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.muted { color: var(--text-muted); } .small { font-size: 13px; }
.timeline { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--ink); background: var(--paper); }
.timeline li { position: relative; padding: 12px 12px 12px 40px; color: var(--text-muted); border-bottom: 1px solid var(--rule); min-height: 48px; }
.timeline li::before { content: ''; position: absolute; left: 14px; top: 17px; width: 12px; height: 12px; outline: 1.5px solid var(--rule); outline-offset: -1.5px; }
.timeline li.done { color: var(--ink); } .timeline li.done::before { background: var(--ink); outline-color: var(--ink); }
.timeline li.now { color: var(--ink); font-weight: 700; background: var(--yellow); } .timeline li.now::before { background: var(--ink); outline-color: var(--ink); }
.timeline li.hold::before { outline-color: var(--orange); }
.timeline small { display: block; font-weight: 400; color: var(--text-mid); font-family: var(--font-m); font-size: 12px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.photos img { width: 100%; }
.label-text { font-family: var(--font-m); font-size: 16px; padding: 12px; border: 1.5px dashed var(--ink); margin: 8px 0; }

/* ---------------------------------------------------------------- kiosk: very large targets */
body.kiosk { --tap: 80px; font-size: 18px; }
body.kiosk .main { max-width: 1200px; padding-bottom: 32px; }
body.kiosk .flow { max-width: 960px; }
body.kiosk .qt { font-size: clamp(40px, 5vw, 56px); }
body.kiosk .q-lead, body.kiosk .q-hint { font-size: 18px; }
body.kiosk .opt { padding: 18px 20px; }
body.kiosk .opt-t { font-size: 24px; }
body.kiosk .opt-s { font-size: 16px; }
body.kiosk .opt .box { width: 28px; height: 28px; }
body.kiosk .btn-lg { min-height: 80px; font-size: 22px; }
body.kiosk .bchip span, body.kiosk .seg span { min-height: 72px; font-size: 20px; padding: 0 24px; }
body.kiosk .field input, body.kiosk .field textarea { min-height: 72px; font-size: 22px; }
body.kiosk .phone input { font-size: 28px; }
body.kiosk .phone-cc { font-size: 22px; }
body.kiosk .check { font-size: 20px; min-height: 64px; align-items: center; }
body.kiosk .check input { width: 32px; height: 32px; }
body.kiosk .stepper input { width: 110px; font-size: 40px; }
body.kiosk .s-name { font-size: 20px; }
body.kiosk .suggestions li { min-height: 64px; font-size: 20px; align-items: center; }
body.kiosk .qback { font-size: 18px; min-height: 64px; }
body.kiosk .layout-switch { display: none; }
.kiosk-hero { text-align: center; padding: 48px 0 24px; max-width: 900px; margin: 0 auto; }
.kiosk-hero h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1; margin: 12px 0 8px; }
.kiosk-hero .figs { text-align: left; margin: 24px 0 8px; }
.kiosk-hero .figs-big .fig-v b { font-size: clamp(72px, 12vw, 128px); }
.kiosk-hero .ready { font-size: 22px; margin-bottom: 32px; }
.kiosk-hero .btn-xl { width: 100%; max-width: 640px; }
.kiosk-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.read-only .store { cursor: default; }
.idle-overlay { position: fixed; inset: 0; background: rgba(17, 17, 17, .8); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.idle-overlay[hidden] { display: none; }
.idle-box { background: var(--paper); padding: 40px; text-align: center; max-width: 480px; width: 100%; border: 1px solid var(--ink); }
.idle-count { font: 500 96px/1 var(--font-m); margin: 16px 0 24px; }

/* TV board */
body.board { background: var(--black); color: var(--linen); padding: 40px; }
body.board header h1 { font-size: 56px; margin: 0; color: var(--linen); }
body.board header p { font: 500 24px/1.3 var(--font-m); color: var(--yellow); margin-top: 8px; }
.board-table { width: 100%; border-collapse: collapse; font-size: 36px; margin-top: 32px; }
.board-table th { text-align: left; font: 600 14px/1.4 var(--font-b); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.board-table td, .board-table th { padding: 16px 12px; border-bottom: 1px solid #2E2E28; }
.board-table td:nth-child(2), .board-table td:nth-child(4) { font-family: var(--font-m); }
.board-table .st-in_progress td { color: var(--yellow); } .board-table .st-ready td { color: #5FD39E; }

/* ---------------------------------------------------------------- fixes, Dec 2026 */
.js .nojs { display: none; }
/* Racket: typed by hand folds the picker away. */
.manual-on { display: none; }
.manual[open] .manual-on { display: inline; }
.manual[open] .manual-off { display: none; }
/* Tension: our pick right at the stepper. */
.tension-box { border: 1px solid var(--ink); background: var(--paper); padding: 12px 14px; margin: 16px 0; }
.tension-box .tension-row { margin: 8px 0; }
.tension-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.tension-rec b { font-size: 22px; font-weight: 500; background: var(--yellow); padding: 2px 8px; }
.tension-range { font-size: 12px; color: var(--text-mid); }
.tension-rec .btn { margin-left: auto; }
body.kiosk .tension-rec b { font-size: 30px; }
/* Overgrip: search every grip. */
.grip-all { margin: 16px 0; }
.grip-all summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.grip-all .field { margin: 8px 0; }
.grip-all input[type="search"] { width: 100%; min-height: 48px; }
.opts-tight { max-height: 420px; overflow-y: auto; }
.opt[hidden] { display: none; }
/* Strings inside the order: a search and the brands. */
.sfilter { z-index: 5; background: var(--linen); padding: 8px 0; margin: 8px 0 0; border-bottom: 1px solid var(--rule); }
.sfilter-q { width: 100%; min-height: 44px; border: 1px solid var(--ink); background: var(--paper); padding: 0 12px; font: 400 16px var(--font-b); }
.brands-sm { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 8px; padding-bottom: 2px; }
.brands-sm::-webkit-scrollbar { display: none; }
.bchip-b { flex: none; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); background: var(--paper); font: 600 14px var(--font-b); color: var(--ink); cursor: pointer; white-space: nowrap; }
.bchip-b[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.spick[hidden] { display: none; }
@media (min-width: 760px) { .sfilter { position: sticky; top: 56px; } }   /* below that the header has two rows */
body.kiosk .sfilter-q { min-height: 64px; font-size: 20px; }
body.kiosk .bchip-b { min-height: 56px; font-size: 18px; padding: 0 18px; }
/* Hybrid: what each does, the two choices on top, one list at a time. */
.hy-explain { border-left: 3px solid var(--ink); padding: 4px 0 4px 12px; margin: 12px 0; }
.hy-explain p { margin: 4px 0; }
.hy-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.hy-slot { text-align: left; border: 1px solid var(--rule); background: var(--paper); padding: 10px 12px; min-height: var(--tap); cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: 600 15px/1.3 var(--font-b); color: var(--ink); }
.hy-slot[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--yellow); }
.hy-off { display: none; }
/* "Help me choose" on the one page. */
.help-go { border: 1px solid var(--ink); background: var(--paper); padding: 14px; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.help-go[hidden] { display: none; }
.help-go p { margin: 0; max-width: 32em; }
/* Review: the contact block. */
.rv-h { margin: 24px 0 0; }
/* Payment not available: two clear ways on. */
.pay-down { max-width: 760px; margin: 24px auto; }
.pay-down h1 { font-size: clamp(26px, 5vw, 36px); margin: 8px 0; }
.pay-ways { display: grid; gap: 12px; margin: 20px 0; }
@media (min-width: 700px) { .pay-ways { grid-template-columns: 1fr 1fr; } }
.pay-way { border: 1px solid var(--ink); background: var(--paper); padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pay-way h2 { font-size: 22px; margin: 0; }
.pay-way p { margin: 0; }
.pay-code { font-size: 28px; font-weight: 500; background: var(--yellow); padding: 4px 10px; }
.pay-again { color: var(--text-mid); }
.pay-again a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
