/* Public site styles. Tokens come from /shared/theme.css (light and dark). See docs/ui-design-system.md. */
:root {
    --band-bg: #141312; --band-ink: #f5f3ee; --band-muted: #c9c5bd; --band-line: #3a3836; --band-tile: #26231f;
    --body-ink: #3a3733;
    --spot-shadow: 12px 12px 0 var(--rebel-ink);
    --card-lift: 6px 6px 0 var(--rebel-ink);
    --wrap: 77.5rem;
}
/* Same pattern as theme.css: device dark unless forced light, or forced dark. Keep both blocks identical. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --band-bg: #161514; --band-ink: #f2efe8; --band-muted: #a8a39a; --band-line: #2a2826; --band-tile: #23211e; --body-ink: #d6d2ca;
        /* A solid light block is harsh on a dark page, so the offset fades to a faint tint. */
        --spot-shadow: 12px 12px 0 rgb(242 239 232 / .07), 12px 12px 24px rgb(0 0 0 / .45);
        --card-lift: 6px 6px 0 rgb(242 239 232 / .1), 6px 6px 18px rgb(0 0 0 / .45); }
}
:root[data-theme="dark"] { --band-bg: #161514; --band-ink: #f2efe8; --band-muted: #a8a39a; --band-line: #2a2826; --band-tile: #23211e; --body-ink: #d6d2ca;
        /* A solid light block is harsh on a dark page, so the offset fades to a faint tint. */
        --spot-shadow: 12px 12px 0 rgb(242 239 232 / .07), 12px 12px 24px rgb(0 0 0 / .45);
        --card-lift: 6px 6px 0 rgb(242 239 232 / .1), 6px 6px 18px rgb(0 0 0 / .45); }

html { overflow-x: clip; }
body { color: var(--rebel-ink); font-size: 1rem; line-height: 1.5; overflow-x: clip; }
img { max-width: 100%; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--rebel-gutter))); }
.h { font: 900 clamp(1.6rem, 4vw, 2.5rem)/1.02 var(--rebel-display); text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
h1.h { font-size: clamp(2.2rem, 7vw, 4.25rem); line-height: .98; }
h3.h { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-top: .75rem; }
h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
.k { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rebel-muted); margin: 0; }
.k.red { color: var(--rebel-danger); }
.k.green { color: var(--rebel-success-ink); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--body-ink); max-width: 40rem; }
.muted { color: var(--rebel-muted); }
.small { font-size: .875rem; }
.num { font-family: var(--rebel-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.section.rule { border-top: 2px solid var(--rebel-ink); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.split { display: grid; gap: 2rem 3rem; }
@media (min-width: 900px) {
    .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
    .split.top { align-items: start; }
    .split.narrow-left { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
}

/* Owner placeholders: easy to spot until the owner supplies the content. */
.owner-todo { background: var(--rebel-warning-surface); color: var(--rebel-warning-ink); outline: 1px dashed currentColor; padding: 0 .25em; font-weight: 600; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .5rem 1.375rem; font: 700 .9375rem/1.2 var(--rebel-font);
    text-decoration: none; text-align: center; border: 2px solid var(--rebel-primary); background: var(--rebel-primary); color: var(--rebel-on-primary); cursor: pointer; }
.btn:hover { background: var(--rebel-primary-hover); border-color: var(--rebel-primary-hover); color: var(--rebel-on-primary); }
.btn.ghost { background: transparent; color: var(--rebel-ink); border-color: var(--rebel-ink); }
.btn.ghost:hover { background: var(--rebel-surface-muted); color: var(--rebel-ink); }
.btn.charge { background: var(--rebel-accent); border-color: var(--rebel-accent); color: #fff; }
.btn.charge:hover { background: var(--rebel-accent-hover); border-color: var(--rebel-accent-hover); }
.btn.light { background: var(--band-ink); border-color: var(--band-ink); color: var(--band-bg); }
.btn:disabled { opacity: .6; cursor: wait; }
.text-link { font-weight: 600; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--rebel-primary); color: var(--rebel-on-primary); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: .375rem; }
.badge { font: 800 .6875rem/1 var(--rebel-display); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .45rem; }
.badge.sale { background: var(--rebel-accent); color: #fff; }
.badge.rebate { background: var(--rebel-success-surface); color: var(--rebel-success-ink); box-shadow: inset 0 0 0 1px var(--rebel-success-ink); }
.badge.disc { font: 600 .75rem/1.2 var(--rebel-font); letter-spacing: 0; text-transform: none; background: var(--rebel-warning-surface); color: var(--rebel-warning-ink); }

/* Header */
.topbar { background: var(--band-bg); color: var(--band-ink); font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: .25rem 1rem; flex-wrap: wrap; min-height: 2.5rem; padding-block: .35rem; }
.topbar a { color: var(--band-ink); }
.site-head { border-bottom: 2px solid var(--rebel-ink); background: var(--rebel-canvas); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap; min-height: 4.25rem; padding-block: .6rem; }
.logo { display: inline-flex; }
.logo img { display: block; height: clamp(2.25rem, 6vw, 2.875rem); width: auto; filter: var(--rebel-logo-filter); }
.menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .25rem .8rem; background: transparent; color: var(--rebel-ink); border: 1px solid var(--rebel-control-line); font-size: .9375rem; }
.menu-toggle:hover:not(:disabled) { background: var(--rebel-surface-muted); border-color: var(--rebel-ink); }
.menu-toggle svg { stroke: currentColor; }
.site-nav { display: flex; align-items: center; gap: .5rem 1.75rem; flex-wrap: wrap; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin: 0; padding: 0; list-style: none; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--rebel-ink); }
.site-nav ul a:hover { text-decoration: underline; }
.site-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
@media (max-width: 1023px) {
    .js .menu-toggle { display: inline-flex; }
    .js .site-nav { display: none; width: 100%; }
    .js .site-nav.open { display: flex; flex-direction: column; align-items: stretch; padding-bottom: .75rem; }
    .site-nav ul { flex-direction: column; width: 100%; }
    .site-nav ul a { width: 100%; border-bottom: 1px solid var(--rebel-line); }
    .site-nav .btn { width: 100%; }
}

/* Footer */
.site-foot { background: var(--band-bg); color: var(--band-muted); font-size: .875rem; margin-top: 0; }
.site-foot a { color: var(--band-muted); }
.site-foot a:hover { color: var(--band-ink); }
.site-foot strong { color: var(--band-ink); }
.site-foot a:focus-visible, .band a:focus-visible, .band button:focus-visible { outline-color: var(--band-ink); }
.foot-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.foot-grid > div { display: flex; flex-direction: column; gap: .5rem; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); } .foot-brand { grid-column: auto; } }
.foot-logo { height: 2.75rem; width: auto; align-self: flex-start; filter: invert(1); }
.foot-base { display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; border-top: 1px solid var(--band-line); padding-block: 1.1rem 2rem; }
.site-foot .owner-todo { color: var(--rebel-warning-ink); }

/* Dark bands */
.band { background: var(--band-bg); color: var(--band-ink); }
.band .k, .band .muted { color: var(--band-muted); }
.band a { color: var(--band-ink); }

/* Cards and panels */
.card { background: var(--rebel-surface); border: 1px solid var(--rebel-line); display: flex; flex-direction: column; }
.card.pad { padding: clamp(1.1rem, 3vw, 1.75rem); gap: .6rem; }
.card.strong { border: 2px solid var(--rebel-ink); }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-2 { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.ruled { border-top: 2px solid var(--rebel-ink); }
.ruled > * { padding-block: 1.25rem; border-bottom: 1px solid var(--rebel-line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); border-top: 2px solid var(--rebel-ink); }
.steps li { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.25rem 1.25rem 0; }
.steps .num { font-size: 2.25rem; color: var(--rebel-danger); }
.numlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rebel-ink); }
.numlist li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rebel-line); }
.numlist .num { font-size: 1.75rem; line-height: 1; }
.ticks { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }

/* State messages */
.state { padding: 1.25rem; border: 1px solid var(--rebel-line); background: var(--rebel-surface); }
.state.error { border-color: var(--rebel-danger); }
.state.error strong { color: var(--rebel-danger); }
.state.loading { color: var(--rebel-muted); }
/* Waiting for a supplier check on a new size: a strip of board tiles (animated by size-results.js). */
.play-wait { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.game-host:empty { display: none; }
.pothole-run, .forklift-shift { display: block; max-width: 100%; touch-action: manipulation; cursor: pointer; }
.pothole-run:focus-visible, .forklift-shift:focus-visible { outline: 3px solid var(--rebel-focus); outline-offset: 3px; }
.checking-tiles { --tw: clamp(1.4rem, 6vw, 2rem); display: inline-flex; gap: 2px; padding: .5rem; background: #0b0a09; align-self: flex-start; }
.state.loading::before { content: ''; display: inline-block; width: .75rem; height: .75rem; margin-right: .6rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.05rem; }
@media (prefers-reduced-motion: no-preference) { .state.loading::before { animation: spin .8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label, .field .label { font-size: .875rem; font-weight: 600; color: var(--rebel-muted); margin: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; font-size: 1rem; }
.field textarea { min-height: 6rem; resize: vertical; }
.field .hint { font-size: .8125rem; color: var(--rebel-muted); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.request-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.form-status:empty { display: none; }
.form-status { font-weight: 600; }
.form-status.error { color: var(--rebel-danger); }
.form-done { padding: 1.25rem; border: 2px solid var(--rebel-success-ink); background: var(--rebel-success-surface); color: var(--rebel-success-ink); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.method-list { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.method-list legend { font-size: .875rem; font-weight: 600; color: var(--rebel-muted); margin-bottom: .4rem; padding: 0; }
.method { position: relative; display: block; }
.method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.method > span { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .85rem; border: 1px solid var(--rebel-control-line); background: var(--rebel-surface); cursor: pointer; }
.method input:checked + span { border: 2px solid var(--rebel-ink); padding: calc(.65rem - 1px) calc(.85rem - 1px); }
.method input:focus-visible + span { outline: 3px solid var(--rebel-focus); outline-offset: 3px; }
.segs { border: 0; margin: 0; padding: 0; min-width: 0; }
.segs legend { font-size: .875rem; font-weight: 600; color: var(--rebel-muted); margin-bottom: .4rem; padding: 0; }
.segs .opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg { position: relative; display: inline-flex; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; font-weight: 600; font-size: .9375rem; border: 1px solid var(--rebel-control-line); background: var(--rebel-surface); color: var(--rebel-muted); cursor: pointer; }
.seg input:checked + span { border: 2px solid var(--rebel-ink); color: var(--rebel-ink); padding: 0 calc(1rem - 1px); }
.seg input:focus-visible + span { outline: 3px solid var(--rebel-focus); outline-offset: 3px; }
.check { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-size: .9375rem; font-weight: 600; color: var(--rebel-ink); margin: 0; }
.check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; accent-color: var(--rebel-ink); }

/* Size helper */
.size-help { font-size: .9375rem; }
.size-help summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.size-help .inner { padding: .5rem 0 .25rem; display: flex; flex-direction: column; gap: .5rem; color: var(--body-ink); }
.size-help code { font-family: var(--rebel-mono); font-weight: 700; color: var(--rebel-ink); }

/* Home hero */
.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.5rem, 7vw, 5rem); }
.hero .stack { gap: 1.4rem; }
.size-form { background: var(--rebel-surface); border: 2px solid var(--rebel-ink); padding: clamp(1rem, 3vw, 1.25rem); display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.size-search { display: flex; flex-direction: column; gap: 1rem; }
/* Vehicle lookup first in the size box, then "or enter your tire size". */
.vehicle-lookup { display: flex; flex-direction: column; gap: .75rem; }
.vehicle-form { display: flex; flex-direction: column; gap: .5rem; }
.vehicle-form .form-status:empty { display: none; }
.or-divider { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: .875rem; font-weight: 600; color: var(--rebel-muted); }
.or-divider::before, .or-divider::after { content: ''; flex: 1; border-top: 1px solid var(--rebel-line); }
/* Home and Shop: vehicle lookup and tire size side by side across the full width, with a vertical "or" between. */
.size-form.finder { max-width: none; }
@media (min-width: 900px) {
    .finder { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.75rem; align-items: start; }
    .finder .or-divider { flex-direction: column; align-self: stretch; }
    .finder .or-divider::before, .finder .or-divider::after { border-top: 0; border-left: 1px solid var(--rebel-line); flex: 1; }
}
.size-form .row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.size-form .row .field { flex: 1 1 12rem; }
.size-form .btn { flex: 0 0 auto; min-height: 3rem; }
@media (max-width: 479px) { .size-form .btn { width: 100%; } }
.deal-spot { background: var(--rebel-surface); border: 1px solid var(--rebel-line); box-shadow: var(--spot-shadow); margin-right: 12px; }
.deal-spot-head { padding: 1.1rem 1.35rem; border-bottom: 3px solid var(--rebel-ink); display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; }
.deal-spot-body { padding: 1.35rem; display: flex; flex-direction: column; gap: .75rem; }

/* Deal cards (home and deals page) */
.deal-card { position: relative; background: var(--rebel-surface); border: 1px solid var(--rebel-line); display: flex; flex-direction: column; min-width: 0; }
/* The whole card opens the deal: the card's main button stretches over it. */
.deal-card .body .btn::after { content: ''; position: absolute; inset: 0; }
.deal-card:focus-within { border-color: var(--rebel-ink); box-shadow: var(--card-lift); }
@media (hover: hover) {
    .deal-card:hover { border-color: var(--rebel-ink); box-shadow: var(--card-lift); }
    .deal-card:hover .btn { background: var(--rebel-primary-hover); border-color: var(--rebel-primary-hover); color: var(--rebel-on-primary); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .deal-card { transition: transform var(--rebel-motion-fast) var(--rebel-motion-ease), box-shadow var(--rebel-motion-fast) var(--rebel-motion-ease); }
    .deal-card:hover { transform: translate(-3px, -3px); }
}
.deal-card .photo { height: 11rem; background: var(--rebel-surface-muted); display: flex; align-items: center; justify-content: center; }
.deal-card .photo img { max-height: 10rem; width: auto; object-fit: contain; }
.deal-card .photo .ph { width: 5rem; opacity: .25; filter: var(--rebel-logo-filter); }
.deal-card .body { padding: 1.35rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.deal-card .body .btn { margin-top: auto; align-self: flex-start; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; }
.price-row .num { font-size: 1.75rem; }
.name .brand, .tire-name .brand { color: var(--rebel-muted); font-weight: 400; }
.rebate-line { color: var(--rebel-success-ink); font-weight: 600; font-size: .9375rem; }
.stock { font-size: .875rem; font-weight: 600; }
.stock.low { color: var(--rebel-danger); }

/* Flip board */
.board-band { padding-block: clamp(2.5rem, 6vw, 3rem); }
.board-band .wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.board-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bseg { min-height: 2.75rem; padding: 0 .9rem; font: 600 .875rem var(--rebel-font); border: 1px solid #8a857c; background: transparent; color: var(--band-muted); cursor: pointer; }
.bseg:hover:not(:disabled) { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }
.bseg[aria-pressed="true"] { border: 2px solid var(--band-ink); color: var(--band-ink); background: transparent; }
.board-frame { background: #0b0a09; border: 1px solid var(--band-line); padding: 1rem 1.25rem; container-type: inline-size; }
.board-head, .board-row { --tw: min(1.5rem, calc((100cqw - 36px) / 45)); display: grid; grid-template-columns: calc(9 * var(--tw)) calc(17 * var(--tw)) calc(9 * var(--tw)) calc(10 * var(--tw)); column-gap: 12px; align-items: center; }
.board-head span { font: 700 .75rem var(--rebel-font); letter-spacing: .12em; text-transform: uppercase; color: #c9c5bd; padding-bottom: .3rem; }
.board-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.board-row { text-decoration: none; color: #f5f3ee; padding: 3px 0; }
.board-row:focus-visible { outline: 3px solid #f5f3ee; outline-offset: 3px; }
.board-row { position: relative; border-radius: 3px; }
.board-row::after { content: '›'; position: absolute; right: -1.05rem; top: 50%; transform: translate(-.4rem, -50%); font: 700 1.25rem/1 var(--rebel-font); color: #f5f3ee; opacity: 0; }
.board-row:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.board-row:focus-visible .t { background: #3d3832; }
@media (hover: hover) {
    .board-row:hover { box-shadow: 0 0 0 2px #f5f3ee; }
    .board-row:hover .t { background: #3d3832; }
    .board-row:hover::after { opacity: 1; transform: translate(0, -50%); }
    .board-list a:hover { background: #26231f; }
}
/* Hover or focus on a row: the highlight eases in and the arrow slides in. home.js flips the Deal cell to CLICK HERE. */
@media (prefers-reduced-motion: no-preference) {
    .board-row { transition: box-shadow .2s ease; }
    .board-row .t { transition: background-color .2s ease; }
    .board-row::after { transition: opacity .2s ease, transform .2s ease; }
    .board-list a { transition: background-color .2s ease; }
}
.tiles { display: inline-flex; gap: 2px; }
.t { position: relative; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--tw) - 2px); height: calc(var(--tw) * 1.5);
    background: #26231f; color: #f5f3ee; font: 700 calc(var(--tw) * .82)/1 var(--rebel-mono); border-radius: 2px; overflow: hidden; }
.t::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0b0a09; }
.t.r { color: #ff8a80; }
.t.g { color: #8fd9ae; }
.t.v { color: #f2d58a; }
.t.m { color: #c9c5bd; }
.t.w { color: #ffffff; }
@media (prefers-reduced-motion: no-preference) {
    .t.m::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: #3a3631; transform-origin: bottom; animation: flap .09s linear infinite; }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0); } }
.board-list { list-style: none; margin: 0; padding: 0; display: none; border-top: 1px solid var(--band-line); }
.board-list a { display: grid; gap: .15rem; padding: .85rem 0; border-bottom: 1px solid var(--band-line); text-decoration: none; color: var(--band-ink); }
.board-list .size { font: 800 1rem var(--rebel-display); }
.board-list .deal.g { color: #8fd9ae; font-weight: 700; }
.board-list .deal.r { color: #ff8a80; font-weight: 700; }
.board-list .deal.v { color: #f2d58a; font-weight: 700; }
@media (max-width: 899px) {
    .board-frame { display: none; }
    .board-list { display: block; }
}
.board-foot { display: flex; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; font-size: .875rem; color: var(--band-muted); }
.board-empty { padding: 1.25rem; border: 1px solid var(--band-line); color: var(--band-muted); }

/* Rebel Code */
.code-band { position: relative; overflow: hidden; }
.code-band .moose { position: absolute; right: -3rem; top: 1.25rem; width: min(38rem, 70%); filter: invert(1); opacity: .07; pointer-events: none; }
.code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); border-top: 2px solid var(--band-ink); position: relative; }
.code-grid > div { padding: 1.4rem 1.5rem 0 0; }
.code-grid .num.big { font-size: 2.5rem; color: var(--rebel-accent); }
.code-grid .num.title { font-size: 1.2rem; text-transform: uppercase; margin-top: .35rem; line-height: 1.2; }
.code-grid p { margin-top: .5rem; color: var(--band-muted); }

/* Shop */
.page-top { padding-block: clamp(2rem, 6vw, 3rem) clamp(2rem, 5vw, 2.5rem); border-bottom: 2px solid var(--rebel-ink); }
.page-top .stack { gap: 1rem; }
.shop-form { background: var(--rebel-surface); border: 2px solid var(--rebel-ink); padding: clamp(1rem, 3vw, 1.25rem); display: flex; flex-direction: column; gap: 1rem; }
.shop-form .row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.shop-form .row .field { flex: 1 1 14rem; max-width: 22rem; }
.shop-form .row .btn { min-height: 3rem; }
@media (max-width: 479px) { .shop-form .row .btn { width: 100%; } }
/* Vehicle lookup on /shop: factory sizes found by AI, each a button that runs the size search. */
.vehicle-form .row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.vehicle-form .row .field { flex: 1 1 14rem; max-width: 22rem; }
.vehicle-form .row .btn { min-height: 3rem; }
@media (max-width: 479px) { .vehicle-form .row .btn { width: 100%; } }
.badge.ai { background: var(--rebel-ink); color: var(--rebel-canvas); margin-right: .35rem; }
.fitment-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem; }
.fitment-pick { width: 100%; min-height: 3rem; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .7rem .85rem; text-align: left;
    background: var(--rebel-surface); color: var(--rebel-ink); border: 1px solid var(--rebel-line); font: inherit; cursor: pointer; }
.fitment-pick .size { font: 800 1.0625rem var(--rebel-display); }
.fitment-pick:hover { border-color: var(--rebel-ink); }
.fitment-pick:focus-visible { outline: 3px solid var(--rebel-ink); outline-offset: 2px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.options { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.opt { background: var(--rebel-surface); border: 1px solid var(--rebel-line); padding: clamp(1.1rem, 3vw, 1.5rem); display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.opt.recommended { border: 2px solid var(--rebel-ink); }
.opt h3 { font-size: 1.2rem; }
.opt .savings { color: var(--rebel-danger); font-weight: 700; }
.promo { display: grid; gap: .2rem; font-size: .875rem; padding: .6rem .75rem; background: var(--rebel-success-surface); color: var(--rebel-success-ink); }
.promo a { color: inherit; overflow-wrap: anywhere; }
.promo .muted { color: var(--rebel-muted); }
.lines { border-top: 1px solid var(--rebel-line); padding-top: .35rem; font-size: .9375rem; color: var(--rebel-muted); }
.line { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .6rem; border-top: 2px solid var(--rebel-ink); font-weight: 700; }
.total .num { font-size: 1.6rem; }
.after-rebate { color: var(--rebel-success-ink); font-weight: 650; }
.opt .btn { margin-top: .4rem; }
.fineprint { margin-top: 1.5rem; font-size: .875rem; color: var(--rebel-muted); max-width: 60rem; }

/* Choose dialog */
dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 2px solid var(--rebel-ink); background: var(--rebel-surface); color: var(--rebel-ink); padding: 0; }
dialog::backdrop { background: var(--rebel-backdrop); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rebel-line); }
.dialog-head h2 { margin: 0; font-size: 1.15rem; }
.dialog-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.close { min-height: 2.75rem; min-width: 2.75rem; padding: 0 .75rem; background: transparent; color: var(--rebel-ink); border: 1px solid var(--rebel-control-line); }
.close:hover:not(:disabled) { background: var(--rebel-surface-muted); }

/* Found it cheaper */
.cheaper { background: var(--band-bg); color: var(--band-ink); padding: clamp(1.25rem, 3vw, 1.75rem); }
.cheaper .field label, .cheaper .field .hint, .cheaper .muted { color: var(--band-muted); }
.cheaper .form-status.error { color: #ff8a80; }
.cheaper .btn { background: var(--band-ink); border-color: var(--band-ink); color: var(--band-bg); }
.cheaper a, .cheaper button { outline-color: var(--band-ink); }

/* Deals page */
.count-box { background: var(--band-bg); color: var(--band-ink); padding: 1.25rem 1.5rem; min-width: min(100%, 16rem); }
.count-box .num { font-size: 2.75rem; line-height: 1.1; }
.count-box .k, .count-box .muted { color: var(--band-muted); }

/* Pricing */
.example { background: var(--rebel-surface); border: 1px solid var(--rebel-line); margin: 0; }
.example-head { padding: 1rem 1.35rem; border-bottom: 3px solid var(--rebel-ink); display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.example-body { padding: 1.35rem; display: flex; flex-direction: column; gap: .5rem; }
.example .line { color: var(--rebel-ink); }
.mk { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; flex: 0 0 auto; background: var(--rebel-ink); color: var(--rebel-canvas); font: 800 .75rem var(--rebel-display); margin-right: .6rem; }
.example .line > span:first-child { display: flex; align-items: center; }
table.levy { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--rebel-surface); }
.levy th, .levy td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--rebel-line); }
.levy thead th { border-bottom: 2px solid var(--rebel-ink); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rebel-muted); }
.faq { border-top: 1px solid var(--rebel-line); }
.faq details { border-bottom: 1px solid var(--rebel-line); padding: .6rem 0; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; }
.faq details p { color: var(--rebel-muted); padding-bottom: .5rem; }

/* About */
.about-mark { background: var(--rebel-surface-muted); min-height: 16rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; }
.about-mark img { width: min(18rem, 70%); filter: var(--rebel-logo-filter); }

/* Dispatch */
.empty-hero { border: 1px dashed var(--rebel-control-line); padding: clamp(1.5rem, 5vw, 3rem); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }

/* 404 */
.notfound { padding-block: clamp(3rem, 10vw, 6rem); }
.big-step { font-size: 2.75rem; line-height: 1; color: var(--rebel-danger); }
.badge.ink { background: var(--rebel-ink); color: var(--rebel-canvas); }
.seg-btn { min-height: 2.75rem; padding: 0 1rem; }
.seg-btn[aria-pressed="true"] { background: var(--rebel-primary); color: var(--rebel-on-primary); }
.deal-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }

/* Delivery area lookup (/pricing#delivery) */
.town-lookup { max-width: 28rem; }
.town-result { min-height: 1.5rem; font-weight: 600; max-width: 44rem; }
.town-result.covered { color: var(--rebel-success-ink); }
.town-result.outside { color: var(--rebel-ink); }
.town-list summary { cursor: pointer; font-weight: 600; }
.town-list ul { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.town-list li { overflow-wrap: anywhere; }

/* About: one block per person */
.person { border-top: 1px solid var(--rebel-line); padding-top: 1rem; }
.person p { max-width: 42rem; }
.person-photo { width: 100%; max-width: 32rem; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rebel-line); }

/* Theme switch (Auto, Light, Dark) in the main navigation */
.theme-switch .opts { flex-wrap: nowrap; gap: .25rem; }
.theme-switch .seg span { min-height: 2.25rem; padding: 0 .65rem; font-size: .8125rem; }
.theme-switch .seg input:checked + span { padding: 0 calc(.65rem - 1px); }

/* Shop opened from a deals board tire: the page top is tucked away (its title stays for screen readers) so the tire is
   the first thing on screen, with buttons under it to see the rest. */
.page-top.is-focused { padding: 0; border: 0; }
.page-top.is-focused > .wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-top.is-focused + .section { padding-top: clamp(1.25rem, 4vw, 2rem); }
.focus-bar { margin-top: 1.25rem; }

/* Policy pages (terms, returns, privacy): a readable measure with clear section headings. */
.policy { max-width: 46rem; }
.policy h2 { font: 800 1.125rem/1.3 var(--rebel-font); margin: 2rem 0 .5rem; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { line-height: 1.6; }
.policy ul { padding-left: 1.25rem; display: grid; gap: .4rem; }

/* ---- Your Shed (Shed accounts, docs/public-site-plan.md "Phase 2c"; layout approved 2026-11-26) ---- */
.head-tools { display: flex; align-items: center; gap: .5rem; }
.shed-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .25rem .7rem; border: 1px solid var(--rebel-control-line); color: var(--rebel-ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.shed-link:hover, .shed-link[aria-current="page"] { border-color: var(--rebel-ink); background: var(--rebel-surface-muted); color: var(--rebel-ink); }
.topbar-links { display: inline-flex; gap: .4rem 1.25rem; flex-wrap: wrap; }
.topbar-shed { display: none; font-weight: 700; }
/* Wide screens: the nav fills the header row, so the Sign in / Shed link sits in the top bar instead. */
@media (min-width: 1024px) { .topbar-shed { display: inline; } .head-tools .shed-link { display: none; } }
button.text-link { min-height: 2.75rem; padding: 0; background: none; border: 0; color: var(--rebel-ink); font: 600 .9375rem var(--rebel-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; }
button.text-link:hover { color: var(--rebel-muted); }
.break { overflow-wrap: anywhere; }
.ink { color: var(--rebel-ink); }
.stack-xs { display: flex; flex-direction: column; gap: .3rem; }
.shed-page .wrap > [hidden] { display: none; }
.shed-auth { max-width: 30rem; }
.shed-auth h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.02; }
.shed-moose { width: 3rem; height: auto; filter: var(--rebel-logo-filter); }
.idp-list { display: flex; flex-direction: column; gap: .75rem; }
.btn.idp { background: var(--rebel-surface); color: var(--rebel-ink); border: 1px solid var(--rebel-control-line); font-weight: 600; gap: .65rem; min-height: 3.25rem; }
.btn.idp:hover { border-color: var(--rebel-ink); background: var(--rebel-surface-muted); color: var(--rebel-ink); }
.btn.wide { width: 100%; min-height: 3.25rem; }
.field-error { margin: 0; color: var(--rebel-danger); font-size: .875rem; font-weight: 600; }
.field-error:empty { display: none; }
.field input[aria-invalid="true"] { border: 2px solid var(--rebel-danger); }
.form-status.warn { color: var(--rebel-warning-ink); background: var(--rebel-warning-surface); padding: .75rem .9rem; font-weight: 500; }
.form-status.good { color: var(--rebel-success-ink); background: var(--rebel-success-surface); padding: .75rem .9rem; }
.form-status.error:not(:empty) { border: 1px solid var(--rebel-danger); padding: .75rem .9rem; background: var(--rebel-surface); }
.spin { display: inline-block; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 35%, transparent); border-top-color: currentColor; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin .8s linear infinite; } }
.shed-alert { padding: .8rem .9rem; font-size: .9375rem; font-weight: 600; }
.shed-alert.error { border: 1px solid var(--rebel-danger); color: var(--rebel-danger); background: var(--rebel-surface); }
.shed-alert.good { background: var(--rebel-success-surface); color: var(--rebel-success-ink); }
.fb-who { display: flex; align-items: center; gap: .6rem; margin: 0; }
.digits-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.digits-set legend { padding: 0; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; color: var(--rebel-muted); }
.digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .375rem; max-width: 22rem; }
.dg { width: 100%; min-width: 0; box-sizing: border-box; height: 3.5rem; padding: 0; text-align: center; font: 800 1.5rem var(--rebel-display); border: 1px solid var(--rebel-control-line); background: var(--rebel-surface); color: var(--rebel-ink); }
.dg.bad { border: 2px solid var(--rebel-danger); }
.code-help { border-top: 1px solid var(--rebel-line); padding-top: .9rem; }
.code-one { font: 800 1.25rem var(--rebel-display); letter-spacing: .3em; max-width: 12rem; }
.shed-main { max-width: 46rem; }
.shed-main h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1; }
.shed-h2 { font-size: 1.375rem; margin: 0; }
.shed-h3 { font-size: 1.0625rem; margin: 0; }
.shed-main > section { scroll-margin-top: 1rem; }
.shed-note { margin: 0; padding: .75rem .9rem; background: var(--rebel-surface-muted); font-size: .9375rem; }
.shed-note.good { background: var(--rebel-success-surface); color: var(--rebel-success-ink); font-weight: 600; }
.shed-note.warn { background: var(--rebel-warning-surface); color: var(--rebel-warning-ink); }
.shed-note.error { border: 1px solid var(--rebel-danger); color: var(--rebel-danger); background: var(--rebel-surface); font-weight: 600; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--rebel-line); background: var(--rebel-surface); font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--rebel-ink); }
.jump a:hover { border-color: var(--rebel-ink); }
.cap { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rebel-muted); }
.park-offer { background: var(--rebel-surface-muted); padding: 1rem; }
.offer-title { font-size: 1.0625rem; }
.check-row, .switch-row { display: flex; gap: .65rem; align-items: center; min-height: 2.75rem; font-size: .9375rem; }
.check-row input, .switch-row input { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; accent-color: var(--rebel-ink); margin: 0; }
.switch-row { font-weight: 600; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .5rem; }
.bays { display: grid; gap: .75rem; }
@media (min-width: 700px) { .bays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bay { background: var(--rebel-surface); border: 2px solid var(--rebel-ink); border-top-width: 6px; border-bottom-width: 4px; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.bay.open { background: transparent; border: 2px dashed var(--rebel-control-line); border-bottom: 4px solid var(--rebel-ink); }
.bayno { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rebel-muted); }
.bayno .wheel { fill: var(--rebel-surface); }
.bay-name { margin: 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.bay .size { font: 800 1.75rem/1 var(--rebel-display); }
.watch { border-top: 1px solid var(--rebel-line); padding-top: .5rem; display: flex; flex-direction: column; }
.bay-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.bay-panel { background: var(--rebel-canvas); padding: .75rem; }
.confirm p { margin: 0; }
.box { background: var(--rebel-surface); border: 1px solid var(--rebel-line); padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.box.strong { border: 2px solid var(--rebel-ink); }
.box.empty, .empty { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
#orders, #quotes { display: flex; flex-direction: column; gap: .75rem; }
.badge.b-warn { background: var(--rebel-warning-surface); color: var(--rebel-warning-ink); }
.badge.b-ok { background: var(--rebel-success-surface); color: var(--rebel-success-ink); }
.badge.b-mute { background: var(--rebel-surface-muted); color: var(--rebel-muted); }
.badge.b-info { background: var(--rebel-surface-muted); color: var(--rebel-ink); box-shadow: inset 0 0 0 1px var(--rebel-control-line); }
.box .badge { align-self: flex-start; font: 700 .8125rem/1.2 var(--rebel-font); letter-spacing: 0; text-transform: none; padding: .3rem .55rem; }
.order-title, .quote-title { margin: 0; font-size: 1.0625rem; }
.box p { margin: 0; }
.steps-list { list-style: none; margin: 0; padding: .75rem 0; border-block: 1px solid var(--rebel-line); display: flex; flex-direction: column; gap: .6rem; }
.step { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; }
.dot { width: 1.375rem; height: 1.375rem; flex: 0 0 1.375rem; border-radius: 50%; border: 2px solid var(--rebel-control-line); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; box-sizing: border-box; }
.dot.done { background: var(--rebel-ink); border-color: var(--rebel-ink); color: var(--rebel-canvas); }
.dot.now { border-color: var(--rebel-ink); }
.box details summary { min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.receipt-lines { background: var(--rebel-canvas); padding: .75rem .9rem; font-size: .9375rem; }
.receipt-lines .line.muted { color: var(--rebel-muted); }
.total-line { border-top: 2px solid var(--rebel-ink); margin-top: .4rem; padding-top: .6rem !important; align-items: baseline; }
.num.big { font: 800 1.25rem var(--rebel-display); }
.quote-pick { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; border-top: 1px solid var(--rebel-line); padding-top: .75rem; font-size: .9375rem; }
.quote-pick .num.big { font-size: 1.125rem; white-space: nowrap; }
.quote-sheet-host { overflow-wrap: anywhere; }
.quote-view .results-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
.det-list { margin: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .9375rem; }
.det-list dt { font-size: .875rem; color: var(--rebel-muted); }
.det-list dd { margin: 0; overflow-wrap: anywhere; }
.good-text { color: var(--rebel-success-ink); font-weight: 600; }
.lock-note { display: flex; gap: .6rem; align-items: flex-start; background: var(--rebel-surface-muted); padding: .75rem .9rem; font-size: .875rem; }
.lock-note svg { flex: 0 0 18px; margin-top: 2px; }
.alert-list { margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.alert-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--rebel-line); min-height: 2.75rem; overflow-wrap: anywhere; }
.alert-list li.muted { padding: .6rem 0; }
.acct-actions { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.acct-flow { border-top: 1px solid var(--rebel-line); padding-top: .75rem; }
.save-quote { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; margin-top: .75rem; }
.save-quote-status.error { color: var(--rebel-danger); font-weight: 600; }
@media print {
    body.printing-one .site-head, body.printing-one .topbar, body.printing-one .site-foot, body.printing-one .skip, body.printing-one #v-shed > :not(#p-orders),
    body.printing-one #p-orders > :not(#orders), body.printing-one #orders > :not(.print-me), body.printing-one .print-me button { display: none !important; }
}
.shed-page h1[tabindex="-1"]:focus, .shed-page h2[tabindex="-1"]:focus { outline: none; }
.alert-list li button { flex: 0 0 auto; white-space: nowrap; }
.shed-main { gap: 2rem; }
.shed-main > .stack-sm:first-child, .shed-main > .jump { margin-bottom: -1rem; }

/* ---- Network invite (/network/join) and the garage Workbench (/workbench), Phase 3 ---- */
.join-narrow { max-width: 36rem; }
.join-main { gap: 2.5rem; }
.join-hero { display: grid; gap: 1.25rem; align-items: end; }
.join-hero h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: .98; }
.join-sec { border-top: 2px solid var(--rebel-ink); padding-top: 1.5rem; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.join-steps li { display: flex; gap: .875rem; }
.join-steps .num { font-size: 2rem; line-height: 1; font-weight: 900; }
.join-two { display: grid; gap: 2rem 3rem; align-items: start; }
.join-dl { margin: 0; display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); }
.join-dl dt, .join-dl dd { margin: 0; padding: .75rem 0; border-top: 1px solid var(--rebel-line); }
.join-dl dt { color: var(--rebel-muted); padding-right: 1rem; }
.join-dl dd { font-weight: 600; overflow-wrap: anywhere; }
.join-dl dd.plain { font-weight: 400; }
.join-sample { margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.mini-quote { width: 12.5rem; flex: 0 0 12.5rem; aspect-ratio: 8.5 / 11; box-sizing: border-box; background: #fff; color: #141312; border: 1px solid var(--rebel-control-line); padding: .875rem; display: flex; flex-direction: column; gap: .375rem; font-size: .4375rem; line-height: 1.35; }
.mini-quote .mini-brand { display: flex; gap: .375rem; align-items: center; }
.mini-quote .mini-brand strong { font-size: .5625rem; }
.mini-quote .mini-logo { width: 1.625rem; height: 1.625rem; border: .5px dashed #8a857c; }
.mini-quote .mini-title { font-size: .625rem; margin-top: .375rem; }
.mini-quote .r { display: flex; justify-content: space-between; gap: .375rem; padding: .125rem 0; border-top: .5px solid #ddd8cf; }
.mini-quote .r.total { border-top: 1px solid #141312; font-weight: 700; }
.join-sample figcaption { flex: 1 1 12rem; }
.join-terms { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; font-size: .9375rem; }
.join-check { display: flex; flex-direction: row; gap: .75rem; align-items: flex-start; margin: .5rem 0 0; font-size: 1rem; font-weight: 600; color: var(--rebel-ink); min-height: 2.75rem; cursor: pointer; }
.join-check input { width: 1.375rem; height: 1.375rem; flex: 0 0 1.375rem; margin: .125rem 0 0; accent-color: var(--rebel-ink); }
.join-box { background: var(--rebel-surface); border: 2px solid var(--rebel-ink); padding: clamp(1rem, 4vw, 1.5rem); }
.join-box-title { font-size: 1.25rem; }
.join-box .btn:disabled { opacity: .45; cursor: not-allowed; }
@media (min-width: 900px) {
    .join-hero, .join-two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; }
}

.wb-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; }
.wb-top h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); line-height: 1; }
.wb-layout { display: grid; gap: 1.5rem; align-items: start; }
.wb-box { background: var(--rebel-surface); border: 1px solid var(--rebel-line); padding: clamp(1rem, 3vw, 1.25rem); min-width: 0; }
.wb-h { margin: 0; font-size: 1.125rem; }
.wb-work { min-width: 0; }
.wm-type .opts { display: grid; grid-template-columns: 1fr 1fr; }
.wb-mini { margin: 0; border-top: 1px solid var(--rebel-line); padding-top: .75rem; display: grid; gap: .375rem; font-size: .875rem; }
.wb-mini div { display: flex; justify-content: space-between; gap: 1rem; }
.wb-mini dt { color: var(--rebel-muted); }
.wb-mini dd { margin: 0; text-align: right; }
.wb-search { display: grid; gap: .75rem; align-items: end; }
.wb-search .field-error:empty { display: none; }
.wb-studdable { grid-column: 1 / -1; }
.wb-studdable[hidden] { display: none; }
.wb-results { padding: 0; }
.wb-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding: 1rem 1.25rem; }
.wb-list { list-style: none; margin: 0; padding: 0; }
.wb-row { display: grid; gap: .5rem 1rem; padding: .875rem 1.25rem; border-top: 1px solid var(--rebel-line); grid-template-columns: 1fr 1fr; align-items: center; }
.wb-tire-cell { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.wb-tire { flex: 0 0 2.75rem; color: var(--rebel-muted); background: var(--rebel-surface-muted); }
.wb-cell { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.wb-cell.num { font-family: var(--rebel-font); font-weight: 400; }
.wb-k { font-size: .75rem; font-weight: 700; color: var(--rebel-muted); }
.wb-cell:nth-child(2) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .5rem; }
.wb-headings { display: none; }
@media (min-width: 760px) {
    .wb-search { grid-template-columns: minmax(0, 1fr) 11rem auto; }
    .wb-row { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr) 6.5rem; }
    .wb-tire-cell, .wb-cell:nth-child(2), .wb-add { grid-column: auto; }
    .wb-cell.num { text-align: right; align-items: flex-end; }
    .wb-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .wb-headings { display: grid; background: var(--rebel-surface-muted); font-size: .8125rem; font-weight: 700; color: var(--rebel-muted); padding-block: .625rem; }
    .wb-headings .num { text-align: right; font-family: var(--rebel-font); font-weight: 700; }
}
@media (min-width: 1000px) {
    .wb-layout { grid-template-columns: 18.75rem minmax(0, 1fr); }
}

/* Workbench: picking tires, the quote builder, saved quotes, ordering and orders (Phase 3, part 2) */
.wb-add { grid-column: 1 / -1; }
.wb-pickbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; padding: 1rem 1.25rem; border-top: 2px solid var(--rebel-ink); background: var(--rebel-canvas); }
.wq-layout { display: grid; gap: 1.5rem; align-items: start; }
.wq-pair { display: grid; gap: .875rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.wq-qty select { max-width: 7rem; }
.wq-tires { list-style: none; margin: 0; padding: .75rem 0 0; border-top: 1px solid var(--rebel-line); display: grid; gap: .625rem; }
.wq-tires li { display: flex; gap: .75rem; align-items: center; overflow-wrap: anywhere; }
.field textarea { font: inherit; padding: .625rem .75rem; }
.wq-preview { background: var(--rebel-surface); border: 2px solid var(--rebel-ink); padding: clamp(.75rem, 3vw, 1.25rem); display: grid; gap: .75rem; min-width: 0; }
.wq-preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.wq-sheet { min-width: 0; }
.wq-sheet .sheet { overflow-wrap: anywhere; }
.wq-private { background: var(--rebel-surface-muted); padding: 1rem 1.125rem; display: grid; gap: .375rem; }
.wq-private .line, .wo-pay .line, #wo-lines .line { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; font-variant-numeric: tabular-nums; }
.wq-margin + .wq-margin { border-top: 1px solid var(--rebel-line); padding-top: .375rem; }
.wq-actions { display: grid; gap: .75rem; }
.wq-buttons { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.wq-buttons .btn { justify-content: center; }
.wqs, .wos { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.wqs-item p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.wqs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .375rem 1rem; }
.wqs-actions { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .25rem; }
.wqs-actions .text-link { min-height: 2.75rem; display: inline-flex; align-items: center; }
.wo-total { border-top: 2px solid var(--rebel-ink); margin-top: .375rem; padding-top: .75rem !important; align-items: baseline; }
.wo-total .num { font-size: 1.75rem; }
.wo-methods, .wo-pick { border: 0; margin: 0; padding: 0; display: grid; gap: .625rem; }
.wo-opt { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border: 1px solid var(--rebel-control-line); cursor: pointer; color: var(--rebel-ink); font-size: 1rem; font-weight: 400; margin: 0; }
.wo-opt:has(input:checked) { border: 2px solid var(--rebel-ink); padding: calc(.875rem - 1px) calc(1rem - 1px); }
.wo-opt input { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; margin: .125rem 0 0; accent-color: var(--rebel-ink); }
.wo-opt[hidden] { display: none; }
.wo-howto { background: var(--rebel-canvas); padding: .875rem 1rem; display: grid; gap: .25rem; }
.wo-copy { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--rebel-line); padding: .5rem 0; overflow-wrap: anywhere; }
.wo-copy .btn { min-height: 2.75rem; padding-inline: .875rem; flex: 0 0 auto; }
.wo-steps { list-style: none; margin: 0; padding: .75rem 0 0; border-top: 1px solid var(--rebel-line); display: grid; gap: .625rem; }
.wo-steps li { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; color: var(--rebel-muted); }
.wo-steps li.done, .wo-steps li.now { color: var(--rebel-ink); }
.wo-steps .dot { width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--rebel-control-line); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: none; }
.wo-steps .done .dot { background: var(--rebel-ink); border-color: var(--rebel-ink); color: var(--rebel-canvas); }
.wo-steps .now .dot { border-color: var(--rebel-ink); }
.wd-install { border: 0; margin: 0; padding: 0; display: grid; gap: .25rem; }
.wd-install legend { font-weight: 600; margin-bottom: .25rem; }
.wd-install .join-check { margin: 0; font-weight: 400; }
.wl-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.wl-frame { width: 6rem; height: 6rem; border: 1px dashed var(--rebel-control-line); display: flex; align-items: center; justify-content: center; background: #fff; }
.wl-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wl-pick { cursor: pointer; }
.wl-row:has(input.sr-only:focus-visible) .wl-pick { outline: 3px solid var(--rebel-focus); outline-offset: 2px; }
@media (min-width: 1000px) {
    .wq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
