/* Pinnacle Garage USA - Dealer Network. Brand tokens follow the Shopify theme (black / #c8102e red / Arimo). */
:root {
  --red: #c8102e; --red-d: #a50d26; --red-soft: #fdecef;
  --ink: #0b0b0c; --ink-2: #1a1b1e; --ink-3: #2a2c31;
  --text: #16171a; --muted: #5d616b; --faint: #8a8f99;
  --bg: #f3f4f6; --panel: #ffffff; --line: #e3e5e9; --line-2: #d3d6dc; --soft: #f7f8fa;
  --green: #12804a; --green-soft: #e6f4ec; --amber: #b25e00; --amber-soft: #fff3e0; --blue: #1f5fbf; --blue-soft: #e8f0fc;
  --shadow: 0 1px 2px rgba(16,18,24,.06), 0 4px 16px rgba(16,18,24,.06);
  --shadow-lg: 0 12px 40px rgba(16,18,24,.18);
  --side: 252px; --top: 64px;
  --font-h: 'Arimo', Arial, Helvetica, sans-serif; --font-b: 'Assistant', 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-b); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 700; margin: 0; line-height: 1.15; letter-spacing: .01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, td.n, .tab-num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.up { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 700; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.red { color: var(--red); } .green { color: var(--green); } .amber { color: var(--amber); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); font-family: var(--font-h); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 2px; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); border-color: var(--red-d); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--soft); border-color: var(--line); }
.btn-line-w { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-line-w:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 11px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--panel); border-radius: 2px; cursor: pointer; color: var(--text); position: relative; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { color: var(--red); border-color: var(--red); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; line-height: 1.3; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge.solid-red { background: var(--red); color: #fff; border-color: var(--red); }
.pill-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-h); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .lbl { font-family: var(--font-h); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.field > label b { color: var(--red); }
.field small { color: var(--muted); font-size: 12.5px; }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 2px; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.input-sm, .select-sm { height: 34px; font-size: 14px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; line-height: 1.45; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin: 1px 0 0; flex: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.form-msg { padding: 12px 14px; font-size: 14px; border-left: 3px solid var(--red); background: var(--red-soft); color: #7b0a1c; }
.form-msg.ok { border-color: var(--green); background: var(--green-soft); color: #0b5a33; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: 2px; height: 34px; background: var(--panel); }
.qty button { width: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--muted); }
.qty button:hover { color: var(--red); }
.qty input { width: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- panels, tables ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.panel-h a { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.panel-b { padding: 18px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 12px; font-family: var(--font-h); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfc; }
.tbl .r, .tbl th.r { text-align: right; }
.tbl .c { text-align: center; }
.tbl a.row-link { font-weight: 700; text-decoration: none; }
.tbl a.row-link:hover { color: var(--red); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: var(--line-2); margin: 0 auto 10px; }
.empty b { display: block; color: var(--text); font-family: var(--font-h); font-size: 15px; margin-bottom: 4px; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-2); }
.kpi.hl::before { background: var(--red); }
.kpi .lbl { color: var(--muted); }
.kpi b { display: block; margin-top: 6px; font-family: var(--font-h); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }

/* ---------- toast / modal ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 420px; padding: 12px 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--green); font-size: 14px; animation: tin .25s ease; }
.toast.err { border-left-color: var(--red); }
.toast a { color: #fff; font-weight: 700; margin-left: auto; white-space: nowrap; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(8,9,12,.55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .2s; }
.modal { width: 100%; max-width: 640px; background: var(--panel); box-shadow: var(--shadow-lg); border-top: 3px solid var(--red); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.modal-b { padding: 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--soft); }
@keyframes fade { from { opacity: 0; } }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 54px; height: 25px; display: block; flex: 0 0 auto; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand-t b { font-family: var(--font-h); font-size: 15px; letter-spacing: .14em; }
.brand-t small { font-size: 10px; font-weight: 700; letter-spacing: .32em; color: var(--red); margin-top: 3px; }

/* =========================================================
   PUBLIC LAYOUT
   ========================================================= */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.util { background: var(--ink); color: rgba(255,255,255,.72); font-size: 12.5px; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.util a { color: #fff; text-decoration: none; font-weight: 700; }
.util .util-l { display: flex; gap: 20px; align-items: center; overflow: hidden; white-space: nowrap; }
.util .util-l span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--red); margin-right: 8px; vertical-align: middle; }
.pub-h { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.pub-h .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.pub-nav { display: flex; gap: 4px; margin-left: 12px; }
.pub-nav a { padding: 8px 12px; font-family: var(--font-h); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-3); position: relative; }
.pub-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.pub-nav a:hover::after, .pub-nav a.on::after { transform: scaleX(1); }
.pub-h .acts { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; }
.pub-f { background: var(--ink); color: rgba(255,255,255,.7); margin-top: 0; font-size: 14px; }
.pub-f .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.pub-f h4 { color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.pub-f a { color: rgba(255,255,255,.75); text-decoration: none; display: block; padding: 3px 0; }
.pub-f a:hover { color: #fff; }
.pub-f .brand-t b { color: #fff; }
.pub-f .legal { border-top: 1px solid rgba(255,255,255,.1); }
.pub-f .legal .wrap { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-size: 12.5px; grid-template-columns: none; }

/* hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -180px; top: -160px; width: 640px; height: 640px; border-radius: 50%; border: 80px solid rgba(200,16,46,.14); }
.hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.018) 46px 47px); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-h); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.eyebrow i { width: 26px; height: 3px; background: var(--red); }
.eyebrow.dark { color: var(--muted); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: .02em; text-transform: uppercase; margin-top: 18px; line-height: 1.02; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 600px; margin: 22px 0 0; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--red); }
.hero-card { background: #fff; color: var(--text); box-shadow: 0 30px 70px rgba(0,0,0,.45); border-top: 4px solid var(--red); }
.hero-card .hc-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.hero-card .hc-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.hero-card .hc-row img { width: 54px; height: 54px; object-fit: contain; background: var(--soft); }
.hero-card .hc-row b { font-size: 13.5px; display: block; line-height: 1.3; }
.hero-card .hc-row small { color: var(--muted); font-size: 12px; }
.hero-card .hc-p { text-align: right; font-variant-numeric: tabular-nums; }
.hero-card .hc-p s { color: var(--faint); font-size: 12px; display: block; }
.hero-card .hc-p b { color: var(--red); font-size: 15px; }
.hero-card .hc-f { padding: 14px 20px; background: var(--soft); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; }

.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-band .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 26px 20px; border-left: 1px solid var(--line); }
.stat:last-child { border-right: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-h); font-size: 30px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.sec { padding: 84px 0 0; }
.sec:last-of-type { padding-bottom: 84px; }
.sec-h { max-width: 760px; margin-bottom: 36px; }
.sec-h h2 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; position: relative; padding-bottom: 16px; }
.sec-h h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--red); }
.sec-h p { margin: 16px 0 0; font-size: 17px; color: var(--muted); line-height: 1.65; }
.sec-h.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-h.center h2::after { left: 50%; margin-left: -28px; }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat { background: #fff; padding: 28px 24px; transition: background .2s; }
.feat:hover { background: #fcfcfd; }
.feat .ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.feat .ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); padding: 26px 22px; counter-increment: s; position: relative; }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--font-h); font-size: 38px; font-weight: 700; color: var(--red); display: block; line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { background: #fff; border: 1px solid var(--line); padding: 28px 24px; position: relative; }
.tier.feat-t { border: 2px solid var(--ink); }
.tier .flag { position: absolute; top: -12px; left: 24px; }
.tier h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .08em; }
.tier .req { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 14.5px; position: relative; }
.tier li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.style-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.style-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.style-card:hover b { color: var(--red); }
.style-card .im { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.style-card .im img { width: 100%; height: 100%; object-fit: cover; }
.style-card b { padding: 10px 2px 2px; font-family: var(--font-h); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.style-card small { padding: 0 2px 4px; color: var(--muted); font-size: 12.5px; }

.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; left: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(200,16,46,.18); }
.cta-band .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; letter-spacing: .04em; }
.cta-band p { color: rgba(255,255,255,.75); margin: 10px 0 0; font-size: 16px; }

.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 12px; font-size: 26px; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 20px 20px; color: var(--muted); line-height: 1.7; max-width: 900px; }

.page-hero { background: var(--ink); color: #fff; padding: 52px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(200,16,46,.14); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.page-hero p { color: rgba(255,255,255,.76); max-width: 680px; font-size: 16.5px; margin: 14px 0 0; line-height: 1.6; }

/* policy doc */
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 48px 0 84px; }
.doc-toc { position: sticky; top: 96px; align-self: start; background: #fff; border: 1px solid var(--line); }
.doc-toc b { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-h); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.doc-toc a { display: block; padding: 8px 16px; font-size: 14px; text-decoration: none; color: var(--muted); border-left: 3px solid transparent; }
.doc-toc a:hover, .doc-toc a.on { color: var(--text); border-left-color: var(--red); background: var(--soft); }
.doc-body { background: #fff; border: 1px solid var(--line); padding: 40px 48px; }
.doc-body section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.doc-body section:first-of-type { border-top: 0; padding-top: 0; }
.doc-body h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.doc-body h2 span { color: var(--red); font-size: 15px; }
.doc-body h3 { font-size: 15px; margin: 18px 0 8px; }
.doc-body p, .doc-body li { font-size: 15px; line-height: 1.75; color: #33363d; }
.doc-body ul { padding-left: 20px; }
.callout { border-left: 3px solid var(--red); background: var(--soft); padding: 14px 18px; margin: 16px 0; font-size: 14.5px; }
.callout.info { border-color: var(--blue); }
.kv { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); margin: 14px 0; }
.kv > div { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv > div:nth-child(odd) { background: var(--soft); font-weight: 700; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }

/* auth / forms */
.auth { min-height: calc(100vh - 108px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 64px 56px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-side::after { content: ''; position: absolute; right: -160px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; border: 64px solid rgba(200,16,46,.16); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h1 { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; letter-spacing: .03em; margin-top: 16px; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; }
.auth-side li { padding: 10px 0 10px 28px; position: relative; color: rgba(255,255,255,.82); border-top: 1px solid rgba(255,255,255,.08); }
.auth-side li::before { content: ''; position: absolute; left: 0; top: 18px; width: 14px; height: 3px; background: var(--red); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .05em; }
.auth-box > p { color: var(--muted); margin: 8px 0 24px; }
.auth-box form { display: grid; gap: 16px; }
.form-card { background: #fff; border: 1px solid var(--line); }
.form-card fieldset { border: 0; margin: 0; padding: 28px 32px; border-bottom: 1px solid var(--line); }
.form-card legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-family: var(--font-h); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.form-card legend span { width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; }
.form-card legend + * { clear: both; }
.form-card .form-f { padding: 22px 32px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--soft); }

/* =========================================================
   PORTAL LAYOUT
   ========================================================= */
body.portal { background: var(--bg); }
.side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); background: var(--ink); color: rgba(255,255,255,.75); display: flex; flex-direction: column; z-index: 60; }
.side .brand { padding: 0 20px; height: var(--top); border-bottom: 1px solid rgba(255,255,255,.07); color: #fff; }
.side-acct { margin: 14px; padding: 12px 14px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); }
.side-acct b { display: block; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-acct small { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; }
.tier-chip { padding: 2px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--red); color: #fff; }
.tier-chip.t-preferred { background: #8a6b1e; } .tier-chip.t-elite { background: linear-gradient(90deg, #111, #444); border: 1px solid #777; }
.side nav { flex: 1; overflow-y: auto; padding: 6px 0 16px; }
.side nav .grp { padding: 16px 22px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 22px; color: rgba(255,255,255,.76); text-decoration: none; font-size: 14.5px; font-weight: 600; border-left: 3px solid transparent; }
.side nav a svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .8; }
.side nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side nav a.on { color: #fff; background: rgba(200,16,46,.14); border-left-color: var(--red); }
.side nav a .pill-count { margin-left: auto; }
.side nav a .tag { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 2px 6px; background: var(--red); color: #fff; }
.side-help { margin: 0 14px 14px; padding: 14px; border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.side-help b { color: #fff; display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.side-help a { color: #fff; font-weight: 700; text-decoration: none; }

.topbar { position: sticky; top: 0; z-index: 40; height: var(--top); margin-left: var(--side); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px; }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border: 1px solid var(--line-2); background: var(--soft); border-radius: 2px; font-size: 14.5px; }
.search input:focus { outline: none; border-color: var(--red); background: #fff; }
.search > svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--faint); }
.search kbd { position: absolute; right: 10px; top: 9px; font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); }
.sugg { position: absolute; left: 0; right: 0; top: 46px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); max-height: 440px; overflow-y: auto; z-index: 80; }
.sugg a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.sugg a:hover, .sugg a.on { background: var(--soft); }
.sugg img { width: 44px; height: 44px; object-fit: contain; background: var(--soft); }
.sugg b { font-size: 13.5px; display: block; line-height: 1.3; }
.sugg small { color: var(--muted); font-size: 12px; }
.sugg .p { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.top-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.veh-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px dashed var(--line-2); background: #fff; cursor: pointer; font-size: 13.5px; font-weight: 700; max-width: 260px; }
.veh-chip svg { width: 18px; height: 18px; color: var(--red); flex: 0 0 18px; }
.veh-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh-chip.set { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 13.5px; }
.cart-btn:hover { background: var(--red); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn .pill-count { background: var(--red); }
.cart-btn:hover .pill-count { background: #fff; color: var(--red); }

.ticker { margin-left: var(--side); background: var(--red); color: #fff; font-size: 13px; font-weight: 700; overflow: hidden; white-space: nowrap; height: 34px; display: flex; align-items: center; }
.ticker .lab { flex: 0 0 auto; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--ink); font-family: var(--font-h); font-size: 11px; letter-spacing: .18em; }
.ticker .lab i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
.ticker .run { display: inline-flex; gap: 48px; padding-left: 24px; animation: tick 45s linear infinite; }
.ticker:hover .run { animation-play-state: paused; }
.ticker a { color: #fff; text-decoration: none; }
.ticker a b { background: rgba(0,0,0,.2); padding: 2px 6px; margin-left: 6px; font-variant-numeric: tabular-nums; }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .3; } }

.main { margin-left: var(--side); padding: 24px; min-height: calc(100vh - var(--top)); }
.main-in { max-width: 1480px; margin: 0 auto; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ph h1 { font-size: 24px; text-transform: uppercase; letter-spacing: .05em; }
.ph p { margin: 6px 0 0; color: var(--muted); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: var(--red); }
.ph-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.lock-note { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); margin-bottom: 18px; }
.lock-note p { margin: 0; flex: 1; font-size: 14.5px; }

/* catalog */
.cat { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 20px; align-items: start; }
.filters { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; background: #fff; border: 1px solid var(--line); }
.f-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.f-h b { font-family: var(--font-h); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.f-h button { border: 0; background: none; color: var(--red); font-weight: 700; font-size: 12px; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.f-g { border-bottom: 1px solid var(--line); }
.f-g > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 0; background: none; cursor: pointer; font-family: var(--font-h); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.f-g > button::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.f-g.closed > button::after { transform: rotate(-45deg); margin-top: 0; }
.f-g.closed .f-b { display: none; }
.f-b { padding: 0 16px 14px; }
.f-opt { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.f-opt input { width: 16px; height: 16px; accent-color: var(--red); }
.f-opt span { flex: 1; } .f-opt small { color: var(--faint); font-variant-numeric: tabular-nums; }
.f-opt.zero { opacity: .4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 44px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; border-radius: 2px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:disabled { opacity: .35; cursor: default; }
.f-more { border: 0; background: none; color: var(--red); font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 6px 0 0; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #fff; border: 1px solid var(--line); margin-bottom: 12px; }
.toolbar .count { font-size: 14px; color: var(--muted); margin-right: auto; }
.toolbar .count b { color: var(--text); }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { height: 34px; padding: 0 12px; border: 0; background: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.on { background: var(--ink); color: #fff; }
.seg svg { width: 16px; height: 16px; }
.active-f { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-f button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: var(--ink); color: #fff; border: 0; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.active-f button::after { content: '\00d7'; font-size: 16px; opacity: .7; }
.fit-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; background: var(--green-soft); border: 1px solid #bfe3cd; font-size: 14px; }
.fit-bar b { font-weight: 700; } .fit-bar .sp { margin-left: auto; display: flex; gap: 8px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 0; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard .im { position: relative; aspect-ratio: 1; background: var(--soft); display: block; overflow: hidden; }
.pcard .im img { width: 100%; height: 100%; object-fit: cover; }
.pcard .tl { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard .fav { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; }
.pcard .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .code { font-family: var(--font-h); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--red); }
.pcard h3 { font-size: 14.5px; line-height: 1.3; font-family: var(--font-b); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard h3 a { text-decoration: none; } .pcard h3 a:hover { color: var(--red); }
.pcard .fin { font-size: 13px; color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.specs span { font-size: 11.5px; padding: 2px 6px; background: var(--soft); border: 1px solid var(--line); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pcard .stock { font-size: 12.5px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot.low { background: var(--amber); } .dot.out { background: var(--faint); }
.price-box { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price-box .msrp { font-size: 12px; color: var(--muted); }
.price-box .msrp s { color: var(--faint); }
.price-box .yours { font-family: var(--font-h); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-box .yours.deal { color: var(--red); }
.price-box .lbl2 { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-box .save { font-size: 11.5px; font-weight: 700; color: var(--green); }
.login-price { font-size: 12.5px; font-weight: 700; color: var(--red); text-decoration: none; }
.pcard .add { margin-top: 10px; display: flex; gap: 6px; }
.pcard .add .select { height: 34px; font-size: 13px; padding-left: 8px; }

.vt td.img img { width: 52px; height: 52px; object-fit: contain; background: var(--soft); }
.vt .nm { font-weight: 700; line-height: 1.3; font-size: 13.5px; }
.vt .nm a { text-decoration: none; } .vt .nm a:hover { color: var(--red); }
.vt .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.vt .sz { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.vt .sz small { display: block; color: var(--muted); font-weight: 500; }
.group-row td { background: var(--ink) !important; color: #fff; font-family: var(--font-h); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; }

.countdown { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; font-family: var(--font-h); font-weight: 700; }
.countdown span { background: var(--ink); color: #fff; padding: 3px 6px; min-width: 30px; text-align: center; font-size: 13px; }
.countdown span small { display: block; font-size: 8.5px; letter-spacing: .1em; opacity: .7; font-family: var(--font-b); }
.countdown.sm span { padding: 2px 5px; min-width: 0; font-size: 11.5px; }
.countdown.sm span small { display: none; }

.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.deal { background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; position: relative; overflow: hidden; }
.deal::before { content: 'FLASH'; position: absolute; top: 14px; left: -30px; transform: rotate(-45deg); background: var(--red); color: #fff; font-family: var(--font-h); font-size: 10px; font-weight: 700; letter-spacing: .2em; padding: 3px 34px; z-index: 1; }
.deal .im { background: var(--soft); padding: 12px; display: flex; align-items: center; }
.deal .im img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.deal .bd { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.deal h3 { font-size: 15px; line-height: 1.3; }
.deal .bar { height: 6px; background: var(--line); margin-top: 4px; }
.deal .bar i { display: block; height: 100%; background: var(--red); }

/* product page */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.gal { background: #fff; border: 1px solid var(--line); position: sticky; top: calc(var(--top) + 16px); }
.gal-main { aspect-ratio: 1; background: var(--soft); position: relative; cursor: zoom-in; overflow: hidden; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.gal-main.zoom img { transform: scale(2); cursor: zoom-out; }
.gal-th { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gal-th button { flex: 0 0 72px; height: 72px; border: 2px solid transparent; background: var(--soft); padding: 4px; cursor: pointer; }
.gal-th button.on { border-color: var(--red); }
.gal-th img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: 26px; line-height: 1.2; margin: 6px 0; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.pd-desc { font-size: 15px; line-height: 1.7; color: #3a3d44; }
.pd-desc ul { padding-left: 20px; }
.pd-desc p { margin: 0 0 10px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 0; overflow-x: auto; }
.tabs button { padding: 12px 16px; border: 0; background: none; cursor: pointer; font-family: var(--font-h); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--red); }
.tabs button .pill-count { margin-left: 6px; }

/* messages */
.msg-app { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - var(--top) - 150px); min-height: 520px; background: #fff; border: 1px solid var(--line); }
.msg-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.msg-list-h { padding: 12px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.msg-items { overflow-y: auto; flex: 1; }
.msg-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 12px 14px; cursor: pointer; border-left: 3px solid transparent; }
.msg-item:hover { background: var(--soft); }
.msg-item.on { background: var(--soft); border-left-color: var(--red); }
.msg-item .t1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.msg-item b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; }
.msg-item time { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.msg-item p { margin: 4px 0 6px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-pane { display: flex; flex-direction: column; min-height: 0; }
.msg-pane-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.msg-pane-h h3 { font-size: 16px; }
.msg-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--soft); display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 74%; padding: 12px 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.bubble.sys { align-self: center; background: transparent; border: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.bubble .who { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; opacity: .65; }
.bubble time { display: block; font-size: 11px; margin-top: 6px; opacity: .6; }
.rma-card { align-self: stretch; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 12px 14px; font-size: 13.5px; }
.msg-compose { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 10px; align-items: flex-end; background: #fff; }
.msg-compose textarea { flex: 1; min-height: 46px; max-height: 200px; }
.quick-replies { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; background: #fff; border-top: 1px solid var(--line); }
.quick-replies button { border: 1px solid var(--line-2); background: #fff; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.quick-replies button:hover { border-color: var(--ink); }

/* order timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin: 6px 0; }
.timeline::before { content: ''; position: absolute; left: 10%; right: 10%; top: 15px; height: 3px; background: var(--line); }
.tl-step { text-align: center; position: relative; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tl-step i { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto 8px; position: relative; font-style: normal; }
.tl-step.done i { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.done i::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.tl-step.now i { border-color: var(--red); }
.tl-step.now { color: var(--text); }
.prog { height: 8px; background: var(--line); position: relative; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--red), #e8405b); }

/* admin */
.adm-tabs { display: flex; gap: 2px; overflow-x: auto; }
.adm-tabs a { padding: 0 16px; height: var(--top); display: flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(255,255,255,.72); font-family: var(--font-h); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 3px solid transparent; white-space: nowrap; }
.adm-tabs a.on, .adm-tabs a:hover { color: #fff; border-bottom-color: var(--red); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 10px; }
.bars div { flex: 1; background: var(--red); min-height: 2px; position: relative; opacity: .85; }
.bars div:hover { opacity: 1; }
.bars div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; background: var(--ink); color: #fff; font-size: 11px; padding: 3px 6px; white-space: nowrap; z-index: 2; }

/* skeleton */
.sk { background: linear-gradient(90deg, #eceef1 25%, #f6f7f9 37%, #eceef1 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* print (invoices, price lists) */
@media print {
  .side, .topbar, .ticker, .no-print, .toasts, .pub-h, .util, .pub-f { display: none !important; }
  .main { margin: 0; padding: 0; }
  body { background: #fff; }
  .panel { border: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(4, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .side { transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
  .topbar, .main, .ticker { margin-left: 0; }
  .burger { display: inline-flex; }
  .cat { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: 320px; max-width: 88vw; max-height: none; z-index: 70; transform: translateX(-105%); transition: transform .25s; top: 0; }
  body.filters-open .filters { transform: none; box-shadow: var(--shadow-lg); }
  body.filters-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 65; }
  .pd { grid-template-columns: 1fr; }
  .gal { position: static; }
  .msg-app { grid-template-columns: 1fr; height: auto; }
  .msg-app.has-t .msg-list { display: none; }
  .msg-app:not(.has-t) .msg-pane { display: none; }
  .msg-body { min-height: 50vh; }
  .hero .wrap { grid-template-columns: 1fr; }
  .pub-nav { display: none; }
  body.pub-open .pub-nav { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .steps, .tiers { grid-template-columns: 1fr 1fr; }
  .stats-band .wrap { grid-template-columns: repeat(3, 1fr); }
  .doc { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 24px; }
  .pub-f .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .main { padding: 16px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .veh-chip span, .cart-btn .ct-txt, .search kbd { display: none; }
  .veh-chip { padding: 0 10px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 21px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .steps, .tiers, .feat-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--line); }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard .bd { padding: 10px; }
  .price-box { flex-direction: column; align-items: flex-start; }
  .deal { grid-template-columns: 110px 1fr; }
  .doc-body { padding: 24px 18px; }
  .kv { grid-template-columns: 1fr; }
  .form-card fieldset, .form-card .form-f { padding: 20px 16px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .timeline { font-size: 11px; }
  .bubble { max-width: 90%; }
  .util .util-l span:nth-child(n+2) { display: none; }
  .pub-f .wrap { grid-template-columns: 1fr; }
  .pub-f .legal .wrap { flex-direction: column; gap: 6px; }
  .pub-h .acts .btn:not(.btn-red) { display: none; }
}

/* ---------- fixes from browser QA ---------- */
.cat > *, .cols > *, .pd > *, .stack > * { min-width: 0; }
.kv { grid-template-columns: 200px minmax(0, 1fr); }
.kv > div { min-width: 0; overflow-wrap: anywhere; }
.panel-h h2 svg, .panel-h h3 svg { width: 16px; height: 16px; vertical-align: -2px; color: var(--red); }
.panel-b > .tbl { display: block; overflow-x: auto; }
.pd-desc h1, .pd-desc h2, .pd-desc h3, .pd-desc h4 { font-size: 15px; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.pd-desc table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0; display: block; overflow-x: auto; }
.pd-desc td, .pd-desc th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.ticker .tk { background: rgba(0,0,0,.25); padding: 2px 6px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.toolbar > * { min-width: 0; }
@media (max-width: 720px) { .toolbar .count { width: 100%; } .ph-acts .btn { flex: 1 1 auto; } }

/* PG Wheels Wholesale logo image */
.brand-logo { display: block; height: 34px; width: auto; }
.brand-logo.on-light { display: none; }
.pub-h .brand-logo { display: none; }
.pub-h .brand-logo.on-light { display: block; }
.side .brand-logo { height: 30px; }
.pub-nav a { white-space: nowrap; }
.pub-h .brand-logo.on-light { height: 30px; }

/* Horizontal scrollers: scrollbar stays invisible until the pointer is over the section (space is kept, so nothing jumps) */
.rail, .chiprow, .sp-thumbs, .gal-th, .tabs, .adm-tabs, .tbl-wrap, .help nav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.rail:hover, .chiprow:hover, .sp-thumbs:hover, .gal-th:hover, .tabs:hover, .adm-tabs:hover, .tbl-wrap:hover, .help nav:hover { scrollbar-color: #b9bcc4 transparent; }
:is(.rail, .chiprow, .sp-thumbs, .gal-th, .tabs, .adm-tabs, .tbl-wrap, .help nav)::-webkit-scrollbar { height: 6px; background: transparent; }
:is(.rail, .chiprow, .sp-thumbs, .gal-th, .tabs, .adm-tabs, .tbl-wrap, .help nav)::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
:is(.rail, .chiprow, .sp-thumbs, .gal-th, .tabs, .adm-tabs, .tbl-wrap, .help nav):hover::-webkit-scrollbar-thumb { background: #b9bcc4; }
