/* AmeriAutoworx — auction lot-sheet look: concrete paper, navy ink, one flag-red accent.
   Layout idea: condensed signage type over a ruled "lot sheet" grid; mono for lot numbers & money. */
:root {
  --paper: #EDEFF1;
  --card: #FFFFFF;
  --ink: #0E1B2C;
  --steel: var(--c-556273);
  --line: #C9D0D8;
  --red: #C8102E;
  --red-ink: #A50D25;
  --navy-2: #182A40;
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --r: 4px;
  --night: #0E1B2C;   /* dark surfaces (selected buttons, badges) */
  --edge: #0E1B2C;    /* strong borders and hard shadows */
  --soft: #F3F5F7;
  --c-145C2E: #145C2E;
  --c-16A34A: #16A34A;
  --c-1A55B0: #1A55B0;
  --c-1B7A3E: #1B7A3E;
  --c-1E4C8A: #1E4C8A;
  --c-556273: #556273;
  --c-7A5300: #7A5300;
  --c-8A1F1F: #8A1F1F;
  --c-8A5A00: #8A5A00;
  --c-A9DDBC: #A9DDBC;
  --c-B42318: #B42318;
  --c-B45309: #B45309;
  --c-B7CDEB: #B7CDEB;
  --c-DCE1E6: #DCE1E6;
  --c-DCE3EA: #DCE3EA;
  --c-DDF5E5: #DDF5E5;
  --c-E3E7EC: #E3E7EC;
  --c-E3ECFA: #E3ECFA;
  --c-E4EAF0: #E4EAF0;
  --c-E7EEFA: #E7EEFA;
  --c-E8B923: #E8B923;
  --c-E9F6EE: #E9F6EE;
  --c-EAF1FB: #EAF1FB;
  --c-EEF0F3: #EEF0F3;
  --c-F2B8B8: #F2B8B8;
  --c-F2F6FC: #F2F6FC;
  --c-F3F5F7: #F3F5F7;
  --c-FDE2E5: #FDE2E5;
  --c-FDE8EB: #FDE8EB;
  --c-FDECEC: #FDECEC;
  --c-FFF1CC: #FFF1CC;
  --c-FFF1D6: #FFF1D6;
  --c-FFF4CC: #FFF4CC;
  --c-FFF5F6: #FFF5F6;
  --c-FFF6D6: #FFF6D6;
  --c-FFF8E1: #FFF8E1;
  --c-f3f4f6: #f3f4f6;
  --c-F0C77E: #F0C77E;
  --c-7A3E06: #7A3E06;
  --c-F2A9B4: #F2A9B4;
  --c-B5C9EC: #B5C9EC;
  --c-123F86: #123F86;
  --c-E2F3E8: #E2F3E8;
  --c-E3E8EE: #E3E8EE;
  --c-EEF2F6: #EEF2F6;
  --c-EEF8F1: #EEF8F1;
  --c-F6F8FA: #F6F8FA;
  --c-FCF3F4: #FCF3F4;
  --c-FFF7D6: #FFF7D6;
  --c-FFF7E6: #FFF7E6;
  --c-FFFBEB: #FFFBEB;
  --c-26313F: #26313F;
  --c-2F6B45: #2F6B45;
  --c-3D4A5C: #3D4A5C;
  --c-4A2504: #4A2504;
  --c-6B4E00: #6B4E00;
  --c-B3122A: #B3122A;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--red-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1; text-wrap: balance; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.6rem; font-weight: 700; text-transform: uppercase; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--red); }
.lede { font-size: 1.2rem; max-width: 60ch; color: var(--navy-2); }
.muted { color: var(--steel); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; border-bottom: 4px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand-word b { color: #fff; font-weight: 800; }
.brand-word span { color: #FF5A6E; }
.nav { display: flex; gap: .3rem; align-items: center; }
.nav a { color: #DCE3EA; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .8rem; border-radius: var(--r); }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; font: 600 .9rem var(--font-body); padding: .45rem .8rem; border-radius: var(--r); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  padding: .85rem 1.3rem; border-radius: var(--r); border: 2px solid transparent;
  transition: transform .12s ease, background .12s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-ink); }
.btn-line { border-color: var(--edge); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--night); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.nav .btn { padding: .55rem 1rem; font-size: .92rem; color: #fff; }
.btn:active { transform: translateY(1px); }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; max-width: 760px; }
.rule-top { border-top: 1px solid var(--line); }
.band-ink { background: var(--night); color: #fff; }
.band-ink .eyebrow { color: #9FB0C3; }
.band-ink .lede { color: #C9D4E0; }
.band-white { background: var(--card); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::after { /* ruled lot-sheet lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(14,27,44,.06) 39px 40px);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-copy { display: grid; gap: 1.5rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 1.6rem; flex-wrap: wrap; padding-top: .5rem; }
.hero-facts div { display: grid; }
.hero-facts strong { font-family: var(--font-mono); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: .85rem; color: var(--steel); }

/* Lot tag card */
.lot {
  background: var(--card); border: 2px solid var(--edge); border-radius: var(--r);
  box-shadow: 10px 10px 0 var(--edge); font-family: var(--font-mono); font-size: .9rem;
  transform: rotate(1.2deg);
}
.lot-head { display: flex; justify-content: space-between; align-items: center; background: var(--night); color: #fff; padding: .7rem 1rem; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.lot-head b { background: var(--red); padding: .15rem .5rem; border-radius: 2px; }
.lot-body { padding: 1.1rem 1.1rem .6rem; display: grid; gap: .25rem; }
.lot-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: .4rem; }
.lot-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.lot-row span:first-child { color: var(--steel); }
.lot-row.total { border-bottom: 0; font-weight: 700; font-size: 1rem; }
.lot-row.credit span:last-child { color: var(--c-1B7A3E); font-weight: 700; }
.lot-foot { padding: .6rem 1.1rem .9rem; font-size: .72rem; color: var(--steel); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 2px solid var(--edge); }
.step { padding: 1.6rem 1.4rem 1.8rem 0; display: grid; gap: .7rem; align-content: start; border-bottom: 1px solid var(--line); }
.step + .step { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.step-n { font-family: var(--font-mono); font-size: .85rem; color: var(--red); font-weight: 700; letter-spacing: .1em; }
.step p { color: var(--navy-2); font-size: .98rem; }
.steps-long { grid-template-columns: 1fr; border-top: 0; counter-reset: s; }
.steps-long .step { grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
.steps-long .step + .step { padding-left: 0; border-left: 0; }
.steps-long .step-n { font-family: var(--font-display); font-size: 3.6rem; line-height: .9; letter-spacing: 0; }
.steps-long .step div { display: grid; gap: .6rem; max-width: 68ch; }
.steps-long ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--navy-2); }

/* Estimator */
.estimator { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--edge); background: var(--card); border-radius: var(--r); }
.est-in { padding: clamp(20px, 3vw, 36px); display: grid; gap: 1.2rem; align-content: start; border-right: 2px solid var(--edge); }
.est-in label { font-weight: 700; }
.money-input { display: flex; align-items: stretch; border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; background: var(--card); }
.money-input span { font-family: var(--font-mono); padding: 0 .9rem; display: flex; align-items: center; background: var(--paper); border-right: 2px solid var(--edge); font-size: 1.4rem; }
.money-input input { border: 0; font: 700 2rem var(--font-mono); padding: .6rem .8rem; width: 100%; min-width: 0; color: var(--ink); background: var(--card); font-variant-numeric: tabular-nums; }
.money-input input:focus { outline: none; }
.money-input:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--red); }
.quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.quick button { font: 600 .85rem var(--font-mono); border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: .35rem .6rem; border-radius: 2px; cursor: pointer; }
.quick button:hover { border-color: var(--edge); }
.est-out { padding: clamp(20px, 3vw, 36px); display: grid; gap: 1rem; align-content: start; background: var(--night); color: #fff; }
.est-out .label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0C3; }
.est-fee { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 9vw, 6.5rem); line-height: .9; font-variant-numeric: tabular-nums; }
.est-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; }
.est-grid strong { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.est-grid .credit strong { color: #6FE09A; }
.est-note { font-size: .82rem; color: #9FB0C3; }

/* Fee table */
.table-wrap { overflow-x: auto; border: 2px solid var(--edge); border-radius: var(--r); background: var(--card); }
table.fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
table.fees th, table.fees td { padding: .8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.fees th { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; background: var(--night); color: #fff; font-weight: 600; }
table.fees td { font-family: var(--font-mono); }
table.fees td:first-child { font-family: var(--font-body); font-weight: 600; }
table.fees td.num, table.fees th.num { text-align: right; }
table.fees tr:last-child td { border-bottom: 0; }
table.fees tr.hit td { background: var(--c-FDE8EB); }
table.fees td.credit { color: var(--c-1B7A3E); font-weight: 700; }

/* Membership */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.plan { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 2rem; display: grid; gap: 1.1rem; align-content: start; position: relative; }
.plan.featured { box-shadow: 10px 10px 0 var(--red); }
.plan-tag { position: absolute; top: -14px; left: 1.6rem; background: var(--red); color: #fff; font: 700 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; }
.plan-price { font-family: var(--font-display); font-size: 4.4rem; font-weight: 800; line-height: .9; }
.plan-price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--steel); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; background: var(--night); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.plan .btn { justify-self: start; }

/* Two-col facts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid currentColor; }
.fact-list li { padding: 1.1rem 0; border-bottom: 1px solid rgba(127,140,155,.35); display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; }
.fact-list .mark { font-family: var(--font-mono); font-weight: 700; }
.fact-list .yes { color: #6FE09A; }
.fact-list .no { color: #FF7A8A; }
.band-white .fact-list .yes, .fact-list.light .yes { color: var(--c-1B7A3E); }
.band-white .fact-list .no, .fact-list.light .no { color: var(--red); }
.fact-list strong { display: block; }

/* CTA band */
.cta { background: var(--red); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { max-width: 18ch; }
.cta .btn { background: var(--night); color: #fff; }
.cta .btn:hover { background: #000; }

/* Page header */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 2px solid var(--edge); background: var(--card); }
.page-head .wrap { display: grid; gap: 1.2rem; }

/* FAQ */
.faq { display: grid; border-top: 2px solid var(--edge); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 700; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.05rem; font: 700 1.5rem var(--font-mono); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 1.4rem; color: var(--navy-2); display: grid; gap: .7rem; max-width: 70ch; }
.faq-group { display: grid; gap: 1.2rem; margin-bottom: 3rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
form.contact { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--steel); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input, .field select, .field textarea { font: 1rem var(--font-body); padding: .75rem .85rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--edge); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { display: none; border-left: 4px solid var(--c-1B7A3E); background: var(--c-E9F6EE); padding: 1rem 1.1rem; font-size: .95rem; }
.form-status.show { display: grid; gap: .6rem; }
.form-status pre { white-space: pre-wrap; font: .85rem var(--font-mono); background: var(--card); border: 1px solid var(--line); padding: .8rem; margin: 0; max-height: 220px; overflow: auto; }
.contact-card { background: var(--night); color: #fff; border-radius: var(--r); padding: 2rem; display: grid; gap: 1.4rem; }
.contact-card .k { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0C3; }
.contact-card .v { font-size: 1.15rem; font-weight: 600; }
.contact-card a { color: #fff; }

/* Footer */
.site-footer { background: var(--night); color: #C2CDD9; padding: 56px 0 32px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer h4 { font: 600 .75rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #8597AB; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: #E4EAF0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { padding-top: 1.4rem; display: grid; gap: .5rem; font-size: .8rem; color: #8597AB; }
.dev-credit { margin-top: .4rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.08); }
.dev-credit a { display: inline-flex; align-items: center; gap: .45rem; color: #A9B7C6 !important; font-size: .82rem; text-decoration: none !important; }
.dev-credit a:hover .anx-word { color: #fff; }
.dev-credit .anx-icon { flex: none; }
.anx-word { color: #E4EAF0; font-weight: 400; letter-spacing: .01em; transition: color .15s; }
.anx-word b { font-weight: 700; }

/* Load motion: one orchestrated moment on the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lede { animation: rise .7s .08s cubic-bezier(.2,.7,.2,1) both; }
  .lot { animation: drop .8s .15s cubic-bezier(.2,.8,.25,1.15) both; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
  @keyframes drop { from { transform: rotate(-4deg) translateY(-18px); } to { transform: rotate(1.2deg); } }
}

/* Responsive */
@media (max-width: 920px) {
  .hero .wrap, .split, .contact-grid, .estimator { grid-template-columns: 1fr; }
  .est-in { border-right: 0; border-bottom: 2px solid var(--edge); }
  .lot { max-width: 440px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; border-bottom: 4px solid var(--red); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .nav .btn { margin: .4rem 0 0; }
}
@media (max-width: 560px) {
  .step + .step { padding-left: 0; border-left: 0; }
  .steps-long .step { grid-template-columns: 1fr; gap: .4rem; }
  .row-2, .est-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .plan-price { font-size: 3.6rem; }
}

/* ---------- Signup ---------- */
.reg-section { padding-top: clamp(32px, 4vw, 48px); }
.preview-banner { border: 2px dashed var(--ink); background: var(--c-FFF6D6); padding: .8rem 1rem; font-size: .92rem; margin-bottom: 1.6rem; border-radius: var(--r); }
.reg-progress { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--edge); scroll-margin-top: 90px; }
.reg-progress li { padding: .8rem .6rem .8rem 0; font-weight: 600; color: var(--steel); border-top: 4px solid transparent; margin-top: -3px; font-size: .95rem; }
.reg-progress li .mono { margin-right: .35rem; font-size: .8rem; }
.reg-progress li.active { color: var(--ink); border-top-color: var(--red); }
.reg-progress li.done { color: var(--ink); border-top-color: var(--ink); cursor: pointer; }
.reg-progress li.done .mono::after { content: " ✓"; color: var(--c-1B7A3E); }
.reg-form { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: clamp(20px, 3.5vw, 44px); }
.reg-step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.reg-step.active { display: grid; gap: 1.15rem; }
.reg-step legend { padding: 0; margin-bottom: .4rem; }
.reg-step h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.reg-sub { font-size: 1.3rem; margin-top: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.field-label { font-weight: 700; font-size: .95rem; }
.check { display: grid; grid-template-columns: 1.3rem 1fr; gap: .6rem; align-items: start; font-size: .95rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--red); }
.mail-block { display: grid; gap: 1rem; padding: 1rem; background: var(--paper); border-radius: var(--r); }
.upload input[type="file"] { padding: .6rem; border-style: dashed; }
.thumb { min-height: 0; font: .85rem var(--font-mono); color: var(--steel); }
.thumb img { max-height: 140px; border: 1px solid var(--line); border-radius: var(--r); margin-top: .3rem; }
.reg-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; border-top: 1px solid var(--line); margin-top: .4rem; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: grid; gap: .15rem; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); height: 100%; }
.pick em { font-style: normal; font-size: .85rem; color: var(--steel); font-family: var(--font-mono); }
.pick input:checked + span { border-color: var(--edge); box-shadow: inset 0 0 0 1px var(--edge), 4px 4px 0 var(--red); }
.pick input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.bp-box { display: grid; grid-template-columns: 1fr 1.1fr; border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.bp-in { padding: clamp(18px, 2.5vw, 28px); display: grid; gap: 1rem; align-content: start; border-right: 2px solid var(--edge); }
.bp-in label { font-weight: 700; }
.bp-out { padding: clamp(18px, 2.5vw, 28px); background: var(--night); color: #fff; display: grid; gap: .8rem; align-content: start; }
.bp-out .label, .bp-rules .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0C3; }
.bp-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; }
.bp-rules div { display: grid; gap: .2rem; align-content: start; transition: opacity .15s; }
.bp-rules strong { font: 700 1.4rem var(--font-mono); font-variant-numeric: tabular-nums; }
.bp-rules small { font-size: .78rem; color: #B5C2D0; line-height: 1.45; }
.bp-rules .off { opacity: .35; }
.callout { border-left: 4px solid var(--red); background: var(--paper); padding: 1rem 1.1rem; font-size: .95rem; }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.review-sum { border: 2px solid var(--edge); border-radius: var(--r); padding: .4rem 1.1rem; font-family: var(--font-mono); font-size: .92rem; align-self: start; }
.review-who { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .92rem; }
.review-who dt { color: var(--steel); }
.review-who dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.terms { display: grid; gap: .8rem; padding: 1.2rem; background: var(--paper); border-radius: var(--r); }
.pay-box { display: grid; gap: .5rem; }
@media (max-width: 920px) {
  .bp-box, .review { grid-template-columns: 1fr; }
  .bp-in { border-right: 0; border-bottom: 2px solid var(--edge); }
}
@media (max-width: 640px) {
  .row-3, .bp-rules { grid-template-columns: 1fr; }
  .reg-progress { grid-template-columns: repeat(2, 1fr); }
}

.est-grid .wide { grid-column: 1 / -1; }
[hidden] { display: none !important; }

/* Auction sides: Copart blue, IAA red */
.side-copart, body[data-side="copart"] { --side: #1A55B0; --side-ink: var(--c-123F86); --side-tint: var(--c-E7EEFA); }
.side-iaa, body[data-side="iaa"] { --side: #D2202F; --side-ink: #A51824; --side-tint: #FCE9EB; }
@media screen { :root[data-theme="dark"] .side-iaa, :root[data-theme="dark"] body[data-side="iaa"] { --side-ink: #FF8A95; --side-tint: #2A0F14; } }

/* Signup: per-auction buying power */
.bp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.bp-card { border: 2px solid var(--side); border-top-width: 8px; border-radius: var(--r); padding: 1.2rem; display: grid; gap: .8rem; align-content: start; background: var(--card); }
.bp-card label { font-weight: 700; }
.bp-card input[type="range"] { accent-color: var(--side); }
.bp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.bp-card-head strong { font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; color: var(--side); line-height: 1; }
.bp-card-head span { font-size: .75rem; color: var(--steel); }
.bp-dep { display: flex; justify-content: space-between; align-items: baseline; background: var(--side-tint); padding: .7rem .9rem; border-radius: var(--r); }
.bp-dep strong { font: 700 1.8rem var(--font-mono); color: var(--side-ink); font-variant-numeric: tabular-nums; }
.bp-dep .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--side-ink); }
.bp-msg { font-size: .85rem; color: var(--steel); min-height: 1.3em; }
.bp-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--night); color: #fff; padding: 1rem 1.2rem; border-radius: var(--r); font-weight: 600; flex-wrap: wrap; }
.bp-total strong { font-size: 1.8rem; }
.bank-box { display: grid; gap: .5rem; }
.bank-line { display: grid; gap: .25rem; border: 2px solid var(--edge); border-radius: var(--r); padding: .9rem 1rem; box-shadow: 4px 4px 0 var(--red); }
.bank-line span { font-size: .9rem; color: var(--steel); }

/* Account */
.side-bar { position: sticky; top: 72px; z-index: 15; background: var(--side); color: #fff; transition: background .2s; }
.side-bar-in { display: flex; align-items: center; gap: 1rem; min-height: 60px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.side-bar-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.side-switch { display: inline-flex; background: rgba(0,0,0,.25); border-radius: 999px; padding: 4px; }
.side-switch button { font: 800 1.05rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; border: 0; background: transparent; color: #fff; padding: .45rem 1.4rem; border-radius: 999px; cursor: pointer; min-width: 100px; }
.side-switch button[aria-selected="true"] { background: var(--card); color: var(--side-ink); }
.side-bar-id { margin-left: auto; font-size: .8rem; opacity: .9; }
.acct { padding-top: clamp(24px, 3vw, 40px); }
.acct-grid { display: grid; gap: 1.4rem; }
.acct-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.acct-title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-top: .5rem; }
body[data-side] .eyebrow::before { background: var(--side); }
.alerts { display: grid; gap: .7rem; }
.alerts:empty { display: none; }
.alert { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r); flex-wrap: wrap; }
.alert div { display: grid; gap: .2rem; max-width: 70ch; }
.alert-bad { background: var(--c-FFF1D6); border: 2px solid var(--c-B45309); color: var(--c-4A2504); }
.alert-nudge { background: var(--card); border: 2px dashed var(--ink); color: var(--ink); font: 600 .95rem var(--font-body); text-align: left; cursor: pointer; }
.countdown.big { font-size: 1.8rem; font-weight: 700; color: var(--c-B45309); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.1rem 1.2rem; display: grid; gap: .3rem; align-content: start; }
.tile .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.tile strong { font: 700 2rem var(--font-mono); font-variant-numeric: tabular-nums; }
.tile small { font-size: .82rem; color: var(--steel); }
.tile-side { background: var(--side); border-color: var(--side); color: #fff; }
.tile-side .label, .tile-side small { color: rgba(255,255,255,.85); }
.exposure { display: grid; gap: .5rem; }
.exposure-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; font-weight: 600; flex-wrap: wrap; }
.exposure-bar { height: 12px; background: var(--card); border: 2px solid var(--edge); border-radius: 999px; overflow: hidden; }
.exposure-fill { height: 100%; background: var(--side); transition: width .3s; }
.acct-main { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; align-items: start; }
.panel { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.3rem; display: grid; gap: 1rem; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.panel h2 { font-size: 1.9rem; }
.veh-wrap { border: 0; }
table.veh { width: 100%; border-collapse: collapse; min-width: 620px; }
table.veh th { text-align: left; font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); padding: .5rem .6rem; border-bottom: 2px solid var(--edge); }
table.veh td { padding: .85rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .95rem; }
table.veh .num { text-align: right; }
table.veh td strong { display: block; }
table.veh .sub { display: block; font-size: .78rem; color: var(--steel); }
table.veh tr.row-grace td { background: var(--c-FFF7E6); }
table.veh .act { text-align: right; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--c-B45309); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pill { display: inline-block; font: 700 .72rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill-bid { background: var(--side-tint); color: var(--side-ink); }
.pill-won { background: var(--night); color: #fff; }
.pill-grace { background: #B45309; color: #fff; }
.pill-paid { background: var(--c-E3E8EE); color: var(--ink); }
.pill-done { background: var(--c-E2F3E8); color: var(--c-1B7A3E); }
.btn-side { background: var(--side); color: #fff; }
.btn-side:hover { background: var(--side-ink); }
.btn-side:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.bp-manage { display: grid; gap: .8rem; }
.bp-manage label { font-weight: 700; }
.bp-manage .money-input input { font-size: 1.5rem; }
.bp-manage-out { font-family: var(--font-mono); font-size: .9rem; display: grid; }
.bp-err { color: var(--red-ink); font: 600 .88rem var(--font-body); }
.timeline { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .7rem; }
.timeline h3 { font-size: 1.2rem; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .6rem; font-size: .88rem; padding-left: .6rem; border-left: 4px solid var(--c-1B7A3E); }
.timeline li.warn { border-left-color: var(--c-B45309); }
.timeline li.bad { border-left-color: var(--red); }
@media (max-width: 1000px) {
  .acct-main { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) { .side-bar { top: 68px; } }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .side-bar-id { margin-left: 0; width: 100%; }
}
.hint { font-size: .82rem; color: var(--steel); }
.btn-sm { white-space: nowrap; }

/* Launch notice */
.launch-bar { background: #FFD24A; color: var(--ink); font-size: .9rem; font-weight: 500; }
.launch-bar .wrap { padding-top: .55rem; padding-bottom: .55rem; text-align: center; }
.launch-bar .mono { font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: var(--night); color: #FFD24A; padding: .15rem .45rem; border-radius: 2px; margin-right: .5rem; }
.launch-bar a { color: var(--ink); font-weight: 700; }
html.signed-in .launch-bar { display: none; } /* members with a session don't need the launch notice */
.next-list { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: #DCE3EA; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.warn { border-left-color: var(--c-B45309); background: var(--c-FFF1D6); }

/* PWA install */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #E4EAF0; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.install-dialog { border: 2px solid var(--edge); border-radius: var(--r); padding: 1.6rem; max-width: 420px; width: calc(100% - 32px); color: var(--ink); background: var(--card); }
.install-dialog::backdrop { background: rgba(14,27,44,.6); }
.install-dialog h2 { font-size: 2rem; margin-bottom: 1rem; }
.install-dialog ol { padding-left: 1.2rem; display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.install-dialog p { margin-bottom: 1.2rem; }
@media (display-mode: standalone) { .launch-bar { padding-top: env(safe-area-inset-top); } }

/* ---------- Lot search ---------- */
.search-head { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); background: var(--card); border-bottom: 2px solid var(--edge); }
.search-head .wrap { display: grid; gap: .8rem; }
.search-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.search-section { padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 80px); }
.access-card { max-width: 480px; margin: 0 auto; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 2rem; display: grid; gap: 1rem; box-shadow: 8px 8px 0 var(--red); }
.access-card h2 { font-size: 2.2rem; }
.access-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.access-form input { flex: 1 1 200px; font: 1rem var(--font-body); padding: .75rem .85rem; border: 2px solid var(--line); border-radius: var(--r); }
.access-form input:focus { border-color: var(--edge); }
.search-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1.6rem; align-items: start; }
.filters { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.2rem; display: grid; gap: .9rem; position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow: auto; }
.filters .field input, .filters .field select { padding: .6rem .7rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: .55rem .3rem; font: 800 .95rem var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.seg label + label span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--night); color: #fff; }
.seg .seg-copart input:checked + span { background: #1A55B0; }
.seg .seg-iaa input:checked + span { background: #D2202F; }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: -3px; }
.results { display: grid; gap: 1rem; min-width: 0; }
.results-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.quota { font-size: .8rem; color: var(--steel); }
.search-msg { border-left: 4px solid var(--edge); background: var(--card); padding: .9rem 1rem; font-size: .95rem; }
.search-msg.bad { border-left-color: var(--red); background: var(--c-FDE8EB); }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.lot-card { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; border-top: 6px solid var(--side); }
.lot-card:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--side); }
.lot-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.lot-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-card-img.noimg::after { content: "No photo"; position: absolute; inset: 0; display: grid; place-items: center; font: .8rem var(--font-mono); color: var(--steel); }
.lot-card-img .pill { position: absolute; top: .6rem; left: .6rem; z-index: 1; }
.pill-side { background: var(--side); color: #fff; }
.lot-card-body { padding: .9rem 1rem 1rem; display: grid; gap: .5rem; align-content: start; }
.lot-card-body h3 { font-size: 1.35rem; }
.lot-card-body .sub { font-size: .75rem; color: var(--steel); overflow-wrap: anywhere; }
.lot-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; font-size: .85rem; }
.lot-facts li { display: flex; justify-content: space-between; gap: .6rem; }
.lot-facts span { color: var(--steel); }
.lot-facts strong { text-align: right; font-weight: 600; }
.lot-card-foot { display: flex; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .2rem; }
.lot-card-foot .label { display: block; font: .68rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.lot-card-foot strong { font-size: 1.05rem; }
.lot-card-foot .when { text-align: right; }
.load-more { justify-self: center; }
/* Lot detail */
.lot-detail-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin: .6rem 0 1.2rem; }
.lot-detail-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .5rem 0 .3rem; }
.lot-countdown { display: grid; text-align: right; background: var(--side); color: #fff; padding: .8rem 1.1rem; border-radius: var(--r); }
.lot-countdown .label { font: .7rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.lot-countdown strong { font-size: 1.8rem; }
.lot-countdown small { opacity: .9; }
.lot-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.4rem; align-items: start; }
.lot-detail-grid > div { display: grid; gap: 1.4rem; min-width: 0; }
.lot-side { display: grid; gap: 1.4rem; position: sticky; top: 88px; }
.gallery { display: grid; gap: .6rem; }
.gallery-main { aspect-ratio: 4 / 3; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
.thumb-btn { flex: 0 0 auto; width: 84px; height: 63px; padding: 0; border: 2px solid var(--line); border-radius: 3px; overflow: hidden; cursor: pointer; background: var(--paper); }
.thumb-btn:hover, .thumb-btn:focus-visible { border-color: var(--side); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; font-size: .95rem; }
.specs dt { color: var(--steel); }
.specs dd { margin: 0; font-weight: 600; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.price-row strong { font-size: 1.4rem; }
.bid-link { width: 100%; }
.fee-panel label { font-weight: 700; }
.fee-rows { font-family: var(--font-mono); font-size: .9rem; display: grid; }
.fee-rows .credit span:last-child { color: var(--c-1B7A3E); font-weight: 700; }
.debug { white-space: pre-wrap; font: .75rem var(--font-mono); background: var(--card); border: 1px solid var(--line); padding: 1rem; max-height: 500px; overflow: auto; }
@media (max-width: 960px) {
  .search-layout, .lot-detail-grid { grid-template-columns: 1fr; }
  .filters, .lot-side { position: static; max-height: none; }
}

/* Lot check */
.lot-check { margin-bottom: 1.4rem; }
.flags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.flags:empty { display: none; }
.flag { border-left: 5px solid var(--steel); background: var(--paper); padding: .7rem .9rem; border-radius: 3px; display: grid; gap: .2rem; font-size: .9rem; }
.flag strong { font-size: .98rem; }
.flag span { color: var(--navy-2); }
.flag-bad { border-left-color: var(--red); background: var(--c-FDE8EB); }
.flag-bad strong::before { content: "⚑ "; color: var(--red); }
.flag-warn { border-left-color: var(--c-B45309); background: var(--c-FFF1D6); }
.flag-good { border-left-color: var(--c-1B7A3E); background: var(--c-E9F6EE); }
.flag-info { border-left-color: var(--side, var(--steel)); }
.history { display: grid; gap: .6rem; }
.history:empty { display: none; }
.hist-item { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem; display: grid; gap: .6rem; }
.hist-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.hist-head > div { display: grid; gap: .15rem; }
.hist-head .mono { font-size: .78rem; }
.hist-price { font-size: 1.2rem; white-space: nowrap; }
.hist-photos { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; }
.val-bad { color: var(--red-ink); }
.val-bad::before { content: "⚑ "; }
/* Gallery button */
button.gallery-main { padding: 0; cursor: zoom-in; position: relative; width: 100%; color: var(--steel); font: inherit; }
button.gallery-main:disabled { cursor: default; }
.g-hint { position: absolute; right: .6rem; bottom: .6rem; background: rgba(14,27,44,.75); color: #fff; font-size: .72rem; padding: .25rem .5rem; border-radius: 2px; opacity: 0; transition: opacity .15s; }
button.gallery-main:hover .g-hint, button.gallery-main:focus-visible .g-hint { opacity: 1; }
/* Fee panel groups */
.fee-group { font: 600 .7rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); padding: .8rem 0 .2rem; border-bottom: 1px solid var(--edge); }
.fee-rows .strong span { font-weight: 700; }
.fee-panel .row-2 { gap: .6rem; }
.fee-panel .field select { padding: .5rem .55rem; font-size: .9rem; }
/* Lightbox (Picasa-style) */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: linear-gradient(#000, transparent); }
.lb-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { color: #aab4c0; font-size: .85rem; }
.lb-actions { display: flex; gap: .4rem; }
.lb-btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; padding: .4rem .8rem; font: 600 .9rem var(--font-body); cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s ease; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 96px; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav:hover { background: rgba(0,0,0,.6); }
.lb-prev { left: 0; border-radius: 0 4px 4px 0; }
.lb-next { right: 0; border-radius: 4px 0 0 4px; }
.lightbox.zoomed .lb-nav { opacity: .25; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: .6rem 1rem .9rem; background: linear-gradient(transparent, #000); justify-content: safe center; }
.lb-thumb { flex: 0 0 auto; width: 92px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: .55; background: #222; transition: opacity .15s, border-color .15s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .9; }
.lb-thumb.on { opacity: 1; border-color: #fff; }
.lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) { .lb-nav { width: 40px; height: 72px; font-size: 2.2rem; } .lb-thumb { width: 64px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .lb-stage img { transition: none; } }

/* Lightbox: frosted glass over the page */
.lightbox { background: rgba(12, 16, 22, .55); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); opacity: 0; transition: opacity .18s ease; }
.lightbox.in { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lightbox { background: rgba(11, 13, 16, .94); } }
.lb-top { background: none; }
.lb-title, .lb-count { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.lb-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; padding: .45rem 1rem; }
.lb-stage img { transform-origin: 50% 50%; transition: transform .22s cubic-bezier(.2,.7,.2,1); box-shadow: 0 24px 80px rgba(0,0,0,.45); border-radius: 6px; will-change: transform; }
.lightbox.no-anim .lb-stage img { transition: none; }
.lightbox.zoomed .lb-stage img { cursor: grab; border-radius: 0; }
.lightbox.panning .lb-stage img { cursor: grabbing; }
.lb-nav { background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; margin: 0 1rem; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev, .lb-next { border-radius: 50%; }
.lb-strip { background: none; }
.lb-thumb { border-radius: 6px; opacity: .6; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.lb-thumb.on { border-color: #fff; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lb-stage img { transition: none; } }

/* Fee rows: keep amounts on one line */
.fee-rows .lot-row { align-items: baseline; }
.fee-rows .lot-row span:last-child { white-space: nowrap; padding-left: .8rem; text-align: right; }

/* Header search icon (always visible, also on phones) */
.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.search-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #DCE3EA; border: 1px solid rgba(255,255,255,.22); }
.search-icon:hover, .search-icon[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.site-header .wrap { gap: .8rem; }
@media (min-width: 921px) { .header-tools { order: 3; margin-left: 0; } .nav { order: 2; margin-left: auto; } }
/* U.S. badge in footer */
.us-badge { margin-top: .8rem; display: inline-flex; gap: .45rem; align-items: center; font: 600 .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #E4EAF0; border: 1px solid rgba(255,255,255,.2); padding: .35rem .6rem; border-radius: 2px; }
.us-badge span { color: #FF5A6E; }
/* Reward credit highlight */
.reward-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: .7rem; padding: .7rem .9rem; border-radius: var(--r); background: var(--c-E9F6EE); border: 1px solid var(--c-A9DDBC); border-left: 5px solid var(--c-1B7A3E); }
.reward-label { font: 700 .95rem var(--font-body); color: var(--c-145C2E); display: inline-flex; align-items: center; gap: .45rem; }
.reward-label::before { content: "★"; color: var(--c-1B7A3E); }
.reward-amt { font-size: 1.25rem; font-weight: 700; color: var(--c-1B7A3E); white-space: nowrap; }
.brand { min-width: 0; }
.brand svg { flex-shrink: 0; }
@media (max-width: 520px) {
  .site-header .wrap { gap: .5rem; min-height: 60px; }
  .brand { gap: .45rem; }
  .brand svg { width: 28px; height: 28px; }
  .brand-word { font-size: 1.3rem; }
  .search-icon { width: 36px; height: 36px; }
  .nav-toggle { padding: .4rem .6rem; font-size: .85rem; }
}
@media (max-width: 360px) { .brand-word { font-size: 1.1rem; } }

/* Search button: same shape and scale as the Menu button */
.search-icon { width: auto; height: auto; border-radius: var(--r); display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; font: 600 .9rem var(--font-body); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); line-height: 1.2; }
.search-icon svg { flex-shrink: 0; }
.search-icon:hover, .search-icon[aria-current="page"] { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.nav-toggle { line-height: 1.2; }
@media (min-width: 921px) { .search-icon { padding: .55rem .9rem; font-size: .92rem; } }
@media (max-width: 520px) { .search-icon { padding: .4rem .6rem; font-size: .85rem; } }
.header-tools { flex-shrink: 0; }
.brand-word { white-space: nowrap; overflow: hidden; text-overflow: clip; }
@media (max-width: 420px) {
  .brand-word { font-size: 1.15rem; }
  .brand svg { width: 26px; height: 26px; }
  .header-tools { gap: .35rem; }
  .search-icon, .nav-toggle { padding: .38rem .55rem; font-size: .82rem; }
}
@media (max-width: 350px) { .search-icon span { display: none; } }

/* ---------- Mobile polish ---------- */
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .filters-toggle { display: inline-flex; justify-self: start; gap: .5rem; padding: .6rem 1rem; }
  .filters.closed { display: none; }
  .search-layout { gap: 1rem; }
  .results-bar { scroll-margin-top: 80px; }
  /* Lot page: photos, then bidding & cost, then vehicle details */
  .lot-detail-grid { display: flex; flex-direction: column; gap: 1.2rem; }
  .lot-detail-grid > div { display: contents; }
  .lot-detail-grid .gallery { order: 1; }
  .lot-detail-grid .lot-side { order: 2; }
  .lot-detail-grid > div > .panel { order: 3; }
}
@media (max-width: 640px) {
  /* Home hero numbers: three across */
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .hero-facts strong { font-size: 1.1rem; }
  .hero-facts span { font-size: .75rem; line-height: 1.3; }
  /* Example lot sheet: keep it inside the screen */
  .lot { transform: none !important; box-shadow: 6px 6px 0 var(--edge); max-width: 100%; animation: none !important; }
  .hero { overflow: hidden; }
  /* Fee tables fit without sideways scrolling */
  table.fees { min-width: 0; }
  table.fees th, table.fees td { padding: .6rem .5rem; font-size: .8rem; }
  table.fees th { font-size: .62rem; letter-spacing: .06em; }
  table.fees td:first-child { font-size: .82rem; }
  /* Auction choice: three compact options in one row */
  .plan-pick { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .pick span { padding: .6rem .5rem; text-align: center; }
  .pick strong { font-size: .92rem; }
  .pick em { font-size: .72rem; }
  .pay-box .plan-pick, .bank-box .plan-pick { grid-template-columns: 1fr; }
  /* Lot page header */
  .lot-detail-head { align-items: stretch; }
  .lot-countdown { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; text-align: left; width: 100%; padding: .6rem .9rem; }
  .lot-countdown strong { font-size: 1.4rem; }
  .lot-check .panel-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .flags { grid-template-columns: 1fr; }
  .fee-panel .row-2 { grid-template-columns: 1fr 1fr; }
  .panel { padding: 1rem; }
  .cta h2 { font-size: 2rem; }
}

/* ---------- Search: badges, compare, views ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.badge { font: 700 .68rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: .2rem .45rem; border-radius: 3px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.b-good { background: var(--c-E9F6EE); border-color: var(--c-A9DDBC); color: var(--c-145C2E); }
.b-warn { background: var(--c-FFF1D6); border-color: var(--c-F0C77E); color: var(--c-7A3E06); }
.b-bad { background: var(--c-FDE8EB); border-color: var(--c-F2A9B4); color: var(--red-ink); }
.b-info { background: var(--c-E7EEFA); border-color: var(--c-B5C9EC); color: var(--c-123F86); }
.b-muted { background: var(--paper); color: var(--steel); }
.b-side { background: var(--side); border-color: var(--side); color: #fff; }
.photo-count { position: absolute; right: .5rem; bottom: .5rem; background: rgba(14,27,44,.78); color: #fff; font-size: .68rem; padding: .2rem .45rem; border-radius: 3px; }
.lot-card { position: relative; display: flex; flex-direction: column; }
.lot-card-link { color: inherit; text-decoration: none; display: grid; grid-template-rows: auto 1fr; flex: 1; }
.lot-card-link:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.compare-chip { position: absolute; top: .55rem; right: .55rem; z-index: 2; font: 700 .72rem var(--font-body); padding: .3rem .6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(14,27,44,.72); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.compare-chip.on { background: #1B7A3E; border-color: var(--c-1B7A3E); }
.results-tools { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.results-tools select { font: .9rem var(--font-body); padding: .45rem .6rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.view-toggle { display: inline-flex; border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.view-toggle button { font: 700 .82rem var(--font-body); padding: .4rem .8rem; border: 0; background: var(--card); color: var(--ink); cursor: pointer; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button[aria-pressed="true"] { background: var(--night); color: #fff; }
.lot-grid.as-list { grid-template-columns: 1fr; }
.lot-grid.as-list .lot-card-link { grid-template-columns: 260px 1fr; grid-template-rows: auto; }
.lot-grid.as-list .lot-card-img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 640px) { .lot-grid.as-list .lot-card-link { grid-template-columns: 130px 1fr; } .lot-grid.as-list .lot-facts li:nth-child(3) { display: none; } }
/* Compare tray + dialog */
body.has-tray { padding-bottom: 96px; }
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(14,27,44,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; border-top: 3px solid var(--red); }
.compare-tray-in { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
.compare-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; flex: 1; min-width: 0; }
.compare-slot { position: relative; display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); padding: .35rem 1.6rem .35rem .35rem; min-width: 0; font-size: .8rem; font-weight: 600; }
.compare-slot img { width: 54px; height: 40px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.compare-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-slot.empty { justify-content: center; color: #8597AB; border-style: dashed; padding-right: .35rem; min-height: 52px; }
.slot-x { position: absolute; top: 2px; right: 4px; background: none; border: 0; color: #C2CDD9; cursor: pointer; font-size: .85rem; }
.compare-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.compare-actions .btn:disabled { opacity: .6; cursor: not-allowed; }
.link-dark { background: none; border: 0; color: #C2CDD9; font: 600 .85rem var(--font-body); cursor: pointer; text-decoration: underline; }
.compare-dialog { --cols: 3; width: min(calc(220px + var(--cols) * 400px), calc(100% - 24px)); max-height: calc(100vh - 32px); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.1rem 1.2rem .8rem; color: var(--ink); background: var(--card); }
.compare-dialog::backdrop { background: rgba(14,27,44,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.compare-head h2 { font-size: 2rem; }
.compare-scroll { overflow: auto; max-height: calc(100vh - 170px); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: calc(130px + var(--cols, 3) * 230px); font-size: .9rem; }
.compare-table th { position: sticky; left: 0; z-index: 2; background: var(--card); text-align: left; color: var(--steel); font: 600 .7rem var(--font-mono); letter-spacing: .09em; text-transform: uppercase; padding: .55rem .6rem .55rem 0; width: 150px; vertical-align: top; }
.compare-table td { padding: .55rem .7rem; border-left: 1px solid var(--line); vertical-align: top; font-weight: 600; overflow-wrap: anywhere; }
.compare-table tr + tr th, .compare-table tr + tr td { border-top: 1px solid var(--line); }
.compare-table td.best { background: var(--c-E9F6EE); color: var(--c-145C2E); }
.compare-table td.best > .cmp-two > :first-child::after { content: " ★"; color: var(--c-1B7A3E); }
.compare-table td.best:not(:has(.cmp-two))::after { content: " ★"; color: var(--c-1B7A3E); }
.compare-table tr.cmp-key th { color: var(--ink); }
.compare-table tr.cmp-key td { font-size: 1.05rem; }
.compare-table tr.cmp-photos td { padding-top: 0; }
.cmp-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--paper); border-top: 4px solid var(--steel); }
.cmp-photo.side-copart { border-top-color: #1E5BB8; }
.cmp-photo.side-iaa { border-top-color: var(--red); }
.cmp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-photo .pill-go { position: absolute; top: .5rem; left: .5rem; z-index: 2; }
.cmp-photo .photo-open { border: 0; cursor: pointer; z-index: 2; }
.cmp-photo .photo-open:hover { background: rgba(14,27,44,.95); }
.cmp-two { display: grid; gap: .2rem; justify-items: start; }
.cmp-two small { font-weight: 500; color: var(--steel); font-size: .78rem; }
.compare-table td.best .cmp-two small { color: var(--c-2F6B45); }
.cmp-title { font-weight: 700; }
.cmp-media { display: flex; flex-wrap: wrap; gap: .35rem; }
.cmp-media .badge { cursor: pointer; }
.cmp-media .muted { font-weight: 500; color: var(--steel); }
@media (max-width: 700px) {
  .compare-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; padding: .8rem .7rem .5rem; }
  .compare-scroll { max-height: calc(100vh - 130px); }
  .compare-table { min-width: calc(92px + var(--cols, 3) * 190px); font-size: .84rem; }
  .compare-table th { width: 92px; font-size: .62rem; letter-spacing: .05em; }
  .compare-table td { padding: .45rem .5rem; }
  .compare-head h2 { font-size: 1.5rem; }
  .compare-dialog > .hint { font-size: .72rem; margin: .4rem 0 0; }
}
.compare-add { width: 100%; margin-top: .6rem; }
.compare-add.on { border-color: var(--c-1B7A3E); color: var(--c-1B7A3E); }
@media (max-width: 640px) {
  .compare-tray-in { flex-direction: column; align-items: stretch; gap: .5rem; }
  .compare-slot { padding: .3rem 1.4rem .3rem .3rem; }
  .compare-slot img { width: 40px; height: 30px; }
  .compare-slot span { display: none; }
  .compare-actions { justify-content: space-between; }
  body.has-tray { padding-bottom: 150px; }
}
/* ---------- Lot: calculator tabs, max bid, factory, recalls ---------- */
.calc-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.calc-tabs button { font: 800 1.05rem var(--font-display); letter-spacing: .05em; text-transform: uppercase; padding: .55rem; border: 0; background: var(--card); color: var(--ink); cursor: pointer; }
.calc-tabs button + button { border-left: 2px solid var(--edge); }
.calc-tabs button[aria-selected="true"] { background: var(--night); color: #fff; }
#mode-total, #mode-max { display: grid; gap: .5rem; }
#mode-max[hidden], #mode-total[hidden] { display: none; }
.money-input.small input { font-size: 1.2rem; padding: .45rem .7rem; }
.money-input.small span { font-size: 1.1rem; }
.maxbid { display: grid; font-family: var(--font-mono); font-size: .9rem; }
.maxbid-big { display: flex; justify-content: space-between; align-items: baseline; background: var(--side, var(--ink)); color: #fff; padding: .8rem 1rem; border-radius: var(--r); margin: .4rem 0 .3rem; }
.maxbid-big .label { font: .72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.maxbid-big strong { font-size: 1.9rem; }
.maxbid .hint, .maxbid .bp-err { font-family: var(--font-body); margin-top: .5rem; }
.src-tag { font-size: .72rem; }
.equip-title { font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin: .6rem 0 .4rem; }
.equip .badges { gap: .35rem; }
.safety-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.safety-stats .stat { background: var(--paper); border-radius: var(--r); padding: .6rem .7rem; display: grid; gap: .1rem; }
.safety-stats strong { font-size: 1.5rem; }
.safety-stats span { font-size: .76rem; color: var(--steel); line-height: 1.3; }
.bars { display: grid; gap: .35rem; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 44px; gap: .6rem; align-items: center; font-size: .85rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--side, var(--ink)); border-radius: 999px; }
.bar-n { text-align: right; font-size: .8rem; color: var(--steel); }
details.recall { border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .8rem; margin-bottom: .4rem; }
details.recall summary { cursor: pointer; font-size: .92rem; }
details.recall p { font-size: .88rem; margin-top: .5rem; color: var(--navy-2); }
.nhtsa-link { display: inline-block; margin-top: .8rem; font-weight: 600; }
@media (max-width: 640px) { .safety-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Print report ---------- */
.lot-head-side { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
.print-btn { gap: .45rem; padding: .5rem .9rem; font-size: .9rem; }
.print-report { display: none; }
@media (max-width: 640px) { .lot-head-side { width: 100%; } }

@page { size: letter; margin: 12mm 12mm 14mm; }
@media print {
  html, body { background: var(--card) !important; }
  body { padding: 0 !important; font-size: 10pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .launch-bar, .site-header, .site-footer, .lot-page, .compare-tray, .compare-dialog, .lightbox, .install-dialog { display: none !important; }
  .print-report { display: block !important; color: #0E1B2C; font-family: var(--font-body); }
  .print-report h1, .print-report h2 { font-family: var(--font-display); text-transform: uppercase; margin: 0; line-height: 1; }
  .pr-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3pt solid #C8102E; padding-bottom: 6pt; margin-bottom: 10pt; }
  .pr-brand { display: flex; align-items: center; gap: 6pt; }
  .pr-word { font: 800 18pt var(--font-display); letter-spacing: .02em; }
  .pr-word span { color: #C8102E; }
  .pr-head-r { display: grid; text-align: right; font-size: 8.5pt; color: #556273; }
  .pr-head-r strong { font: 800 14pt var(--font-display); text-transform: uppercase; color: #0E1B2C; letter-spacing: .04em; }
  .pr-title { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12pt; align-items: end; margin-bottom: 10pt; }
  .pr-pill { display: inline-block; background: var(--side); color: #fff; font: 700 7.5pt var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 2pt 6pt; border-radius: 2pt; }
  .pr-title h1 { font-size: 24pt; margin: 4pt 0 3pt; }
  .pr-ids { font: 8.5pt var(--font-mono); color: #556273; }
  .pr-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6pt 10pt; border-left: 3pt solid var(--side); padding-left: 10pt; }
  .pr-facts div { display: grid; }
  .pr-facts span { font: 7pt var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #556273; }
  .pr-facts strong { font: 700 10.5pt var(--font-mono); }
  .pr-photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 4pt; margin-bottom: 10pt; break-inside: avoid; }
  .pr-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2pt; display: block; }
  .pr-photos .pr-main { grid-column: span 2; grid-row: span 2; }
  .pr-sec { margin-bottom: 10pt; break-inside: avoid; }
  .pr-sec h2 { font-size: 12pt; letter-spacing: .03em; border-bottom: 1.5pt solid #0E1B2C; padding-bottom: 3pt; margin-bottom: 5pt; }
  .pr-flags ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4pt 8pt; }
  .pr-flag { border-left: 3pt solid #556273; background: #F3F5F7; padding: 4pt 6pt; display: grid; gap: 1pt; font-size: 8.5pt; break-inside: avoid; }
  .pr-flag strong { font-size: 9pt; }
  .pr-bad { border-left-color: #C8102E; background: #FDE8EB; }
  .pr-warn { border-left-color: #B45309; background: #FFF1D6; }
  .pr-good { border-left-color: #1B7A3E; background: #E9F6EE; }
  .pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12pt; }
  .pr-kv { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
  .pr-kv th { text-align: left; color: #556273; font-weight: 500; padding: 2.2pt 6pt 2.2pt 0; width: 38%; vertical-align: top; }
  .pr-kv td { font-weight: 600; padding: 2.2pt 0; }
  .pr-kv tr + tr th, .pr-kv tr + tr td { border-top: .5pt solid #DCE1E6; }
  .pr-label { font: 600 7pt var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #556273; margin: 6pt 0 2pt; }
  .pr-equip { font-size: 8.5pt; line-height: 1.45; }
  .pr-note { font-size: 8.5pt; color: #556273; margin-bottom: 4pt; }
  .pr-table { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
  .pr-table th { text-align: left; font: 600 7pt var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #0E1B2C; padding: 3pt 5pt; }
  .pr-table td { padding: 3pt 5pt; border-bottom: .5pt solid #DCE1E6; }
  .pr-table tr { break-inside: avoid; }
  .pr-table .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
  .pr-total td { font-weight: 800; border-top: 1.2pt solid #0E1B2C; border-bottom: none; font-size: 10pt; }
  .pr-credit td { color: #1B7A3E; font-weight: 700; }
  .pr-max { font-weight: 700; margin-top: 5pt; font-size: 9.5pt; }
  .pr-cost .pr-table { max-width: 70%; }
  .pr-recall { border-left: 2pt solid #DCE1E6; padding: 2pt 0 2pt 7pt; margin: 5pt 0; font-size: 8.5pt; break-inside: avoid; }
  .pr-recall p { margin-top: 2pt; color: #23324A; }
  .pr-safety { break-inside: auto; }
  .pr-foot { border-top: 1pt solid #DCE1E6; padding-top: 6pt; margin-top: 12pt; font-size: 7.5pt; color: #556273; display: grid; gap: 2pt; break-inside: avoid; }
}
@media print {
  .print-report section { padding: 0 !important; }
  .pr-flags { break-inside: auto; }
  .pr-photos { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; }
}

/* Engine video, listen button, 360 */
.media-tiles { display: flex; gap: .5rem; flex-wrap: wrap; }
.media-tile { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem .5rem .5rem; border: 2px solid var(--edge); border-radius: var(--r); background: var(--card); color: var(--ink); font: 700 .88rem var(--font-body); cursor: pointer; }
.media-tile:hover { background: var(--night); color: #fff; }
.mt-icon { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .3rem; border-radius: 3px; background: var(--side, var(--ink)); color: #fff; font: 800 .85rem var(--font-mono); }
.listen-btn { display: inline-flex; align-items: center; gap: .35rem; margin-left: .6rem; padding: .2rem .55rem; border: 1px solid var(--side, var(--ink)); border-radius: 999px; background: transparent; color: var(--side-ink, var(--ink)); font: 700 .8rem var(--font-body); cursor: pointer; vertical-align: middle; }
.listen-btn:hover { background: var(--side, var(--ink)); color: #fff; }
.mv-stage { padding: 0 1rem; }
.mv-video { max-width: min(1200px, 100%); max-height: 100%; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.45); background: #000; }
.mv-audio { width: min(560px, 90%); }
.mv-err { color: #fff; text-align: center; margin-top: 1rem; }
.mv-err a { color: #fff; }
.mv-spin { max-width: 100%; max-height: 100%; object-fit: contain; cursor: grab; user-select: none; border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.mv-spin.grabbing { cursor: grabbing; }
.mv-pano { width: min(1400px, 100%); height: min(70vh, 640px); background-size: auto 100%; background-repeat: repeat-x; background-position: 0 50%; border-radius: 8px; cursor: grab; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.mv-hint { justify-content: center; color: #C2CDD9; font-size: .8rem; padding-bottom: 1.2rem; }

/* make / model / generation */
.filters select:disabled { background: var(--c-f3f4f6); color: var(--muted, #6b7280); cursor: not-allowed; }
.gen-hint { font-size: .78rem; color: var(--muted, #6b7280); margin-top: .3rem; }
@media (max-width: 640px) { .row-2.row-2-keep { grid-template-columns: 1fr 1fr; gap: .6rem; } }

/* max miles: slider + number */
.odo-row { display: grid; grid-template-columns: 1fr 6.6rem; gap: .6rem; align-items: center; }
.filters .odo-row input#f-odo { padding: .55rem .5rem; text-align: right; font-size: .9rem; }
.odo-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--red) 0, var(--red) var(--pct, 100%), var(--line) var(--pct, 100%)); outline: none; padding: 0; border: 0; margin: 0; }
.odo-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--edge); cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.odo-row input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 3px solid var(--edge); cursor: grab; }
.odo-row input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--red); outline-offset: 2px; }
.odo-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--steel); margin: .3rem 7.2rem 0 0; }

/* yard location */
.seg.seg-sm { grid-template-columns: 1fr 1fr; margin-bottom: .55rem; }
.seg.seg-sm span { font-size: .8rem; padding: .45rem .3rem; }
.state-pick { border: 2px solid var(--line); border-radius: var(--r); background: var(--card); }
.state-pick[open] { border-color: var(--edge); }
.state-pick summary { list-style: none; cursor: pointer; padding: .6rem .7rem; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.state-pick summary::-webkit-details-marker { display: none; }
.state-pick summary::after { content: "▾"; color: var(--steel); }
.state-pick[open] summary::after { content: "▴"; }
.state-tools { display: flex; justify-content: space-between; padding: 0 .7rem .4rem; }
.linkish { background: none; border: 0; padding: 0; font: 700 .8rem var(--font-body); color: var(--red); cursor: pointer; }
.linkish:disabled { color: var(--line); cursor: default; }
@media screen { :root[data-theme="dark"] .linkish:disabled { color: #4A5360; } }
.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; padding: 0 .55rem .6rem; max-height: 210px; overflow: auto; }
.state-grid label { position: relative; cursor: pointer; }
.state-grid input { position: absolute; opacity: 0; inset: 0; }
.state-grid span { display: block; text-align: center; font: 600 .78rem var(--font-mono); padding: .35rem 0; border: 1px solid var(--line); border-radius: 3px; }
.state-grid input:checked + span { background: var(--night); color: #fff; border-color: var(--edge); }
.state-grid input:focus-visible + span { outline: 2px solid var(--red); }

/* platform tag = direct link to the auction */
.lot-card .pill-go { position: absolute; top: .6rem; left: .6rem; z-index: 2; text-decoration: none; cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.lot-card .pill-go:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* ended lots */
.ended-ribbon { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; background: rgba(14,27,44,.82); color: #fff; font: 800 .8rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: .35rem; }
.lot-card.is-ended .lot-card-img img { filter: grayscale(.55) brightness(.92); }
.lot-card.is-ended .photo-count { bottom: 2.2rem; }
.sold-price { color: var(--c-1B7A3E); }
.grid-divider { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; border-top: 2px solid var(--edge); padding-top: .9rem; margin-top: .4rem; }
.grid-divider strong { font: 800 1.35rem var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.grid-divider .muted { font-size: .85rem; color: var(--steel); }

.filters .zip-input { margin-bottom: .7rem; }
.radius-row { grid-template-columns: 1fr 4.6rem; }
.radius-out { display: block; text-align: right; font-weight: 700; font-size: .95rem; }
.radius-scale { margin-right: 5.2rem; }

.dist-note { font-size: .82rem; color: var(--steel); margin: -.3rem 0 .8rem; }
.transport-box { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; display: grid; gap: .35rem; }
.transport-box .tb-head { font: 800 .8rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.transport-box .tb-zip { display: flex; gap: .4rem; align-items: center; font-size: .85rem; }
.transport-box .tb-zip input { width: 5.6rem; padding: .35rem .45rem; font: .9rem var(--font-mono); border: 2px solid var(--line); border-radius: var(--r); }
.transport-box .tb-big { font: 700 1.25rem var(--font-mono); }
.transport-box .hint { margin: 0; }

/* search button: shows when the make/model/years changed and a new search is needed */
.filters button[type=submit].is-current { background: var(--card); color: var(--steel); border: 2px solid var(--line); box-shadow: none; }
.filters button[type=submit].needs-search { animation: needSearch 1.6s ease-in-out infinite; }
@keyframes needSearch { 0%,100% { box-shadow: 0 0 0 0 rgba(200,16,46,.45); } 50% { box-shadow: 0 0 0 6px rgba(200,16,46,0); } }
@media (prefers-reduced-motion: reduce) { .filters button[type=submit].needs-search { animation: none; } }
.live-hint { font-size: .78rem; color: var(--steel); margin: -.4rem 0 0; text-align: center; }

.tb-split { display: grid; gap: .45rem; margin: .2rem 0 .3rem; }
.tb-line { background: var(--paper); border-radius: var(--r); padding: .5rem .65rem; }
.tb-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; font-weight: 600; }
.tb-top strong { font-size: .9rem; }
.tb-line small { display: block; font-size: .74rem; color: var(--steel); line-height: 1.35; margin-top: .15rem; }

/* public trending */
.trend-line { font: 600 .78rem var(--font-mono); color: var(--steel); margin: -.2rem 0 .5rem; }
.trend-line.is-hot { color: var(--red); }
.public-banner { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; background: var(--c-FFF6D6); border: 2px solid var(--edge); border-radius: var(--r); padding: .8rem 1rem; margin-bottom: 1rem; }
.public-banner strong { font: 800 1.05rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.public-banner span { grid-column: 1; font-size: .9rem; }
.public-banner .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 640px) { .public-banner { grid-template-columns: 1fr; } .public-banner .btn { grid-column: 1; grid-row: auto; } }
.member-lock { background: var(--paper); border-radius: var(--r); padding: .9rem 1rem; }
.member-lock p { margin: 0 0 .3rem; font-size: .92rem; }

.mv-frame { width: min(92vw, 1100px); aspect-ratio: 4 / 3; max-height: 74vh; background: #000; border-radius: 6px; overflow: hidden; }
.mv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mv-alt { display: block; text-align: center; color: #fff; font-size: .85rem; margin-top: .6rem; opacity: .85; }

/* card shortcuts */
.photo-open { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; padding: .3rem .55rem; font-size: .72rem; transition: background .15s ease; }
.photo-open:hover, .photo-open:focus-visible { background: rgba(14,27,44,.95); outline: none; }
.badge-act { cursor: pointer; transition: background .15s ease, color .15s ease, transform .1s ease; }
.badge-act:hover, .badge-act:focus-visible { background: #1A55B0; color: #fff; border-color: var(--c-1A55B0); outline: none; transform: translateY(-1px); }

/* viewer: the photo always fits between the top bar and the thumbnail strip */
.lb-stage { display: block; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 24px); max-height: calc(100% - 16px); width: auto; height: auto; }
.lb-strip { position: relative; z-index: 2; }

/* media viewer: content centered; videos are sized by script to fill the window */
.lb-stage.mv-stage { display: grid; place-items: center; }
.mv-video { max-width: none; max-height: none; width: min(90vw, 1200px); height: auto; object-fit: contain; }

/* Wide layouts on desktop: results and lot pages use the window's width (they shrink back on smaller windows) */
body.page-wide { --wrap: 100%; }  /* no cap: any monitor width gets more columns */
body.page-lot { --wrap: 1560px; }
body.page-wide .lot-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
@media (min-width: 1600px) {
  body.page-wide .search-layout { grid-template-columns: 310px 1fr; gap: 2rem; }
}
/* keep long text readable even when the page is wide */
body.page-wide .search-head .lede, body.page-lot .lede { max-width: 72ch; }

/* card facts: seller / odometer status / distance tags */
.lot-facts strong.f-good { color: var(--c-1B7A3E); }
.lot-facts strong.f-bad { color: var(--red); }
.fact-tag { font-style: normal; font: 700 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; margin-left: .35rem; padding: .08rem .3rem; border-radius: 3px; vertical-align: 1px; white-space: nowrap; }
.fact-tag.t-good { background: var(--c-DDF5E5); color: var(--c-1B7A3E); }
.fact-tag.t-bad { background: var(--c-FDE2E5); color: var(--red); }
.fact-tag.t-warn { background: var(--c-FFF1CC); color: var(--c-8A5A00); }
.fact-tag.t-info { background: var(--c-E3ECFA); color: var(--c-1A55B0); }
.fact-tag.t-muted { background: none; color: var(--steel); font-weight: 500; text-transform: none; letter-spacing: 0; padding: 0; font-family: var(--font-body); font-size: .72rem; }
.lot-facts strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buy Now: a real button that opens the lot on Copart / IAA */
.buy-now-btn { display: inline-flex; flex-direction: column; gap: .05rem; padding: .35rem .7rem .4rem; border-radius: 6px; cursor: pointer;
  background: var(--side, #1A55B0); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.25); transition: transform .1s ease, box-shadow .1s ease, filter .15s ease; }
.lot-card.side-copart .buy-now-btn { background: #1A55B0; }
.lot-card.side-iaa .buy-now-btn { background: #D2202F; }
.buy-now-btn .label { color: rgba(255,255,255,.85) !important; font-weight: 700; }
.buy-now-btn strong { color: #fff; }
.buy-now-btn:hover, .buy-now-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.25); filter: brightness(1.08); outline: none; }
.buy-now-btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* estimated sale price */
.est-strip { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; background: var(--c-F2F6FC); border-left: 3px solid var(--c-1A55B0); border-radius: 3px; padding: .4rem .6rem; margin: .1rem 0 .7rem; }
.lot-card.side-iaa .est-strip { border-left-color: #D2202F; background: var(--c-FCF3F4); }
.est-strip .label { font: 700 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); width: 100%; }
.est-strip strong { font-size: .95rem; }
.est-strip small { font-size: .72rem; color: var(--steel); }
.est-box { background: var(--c-F2F6FC); border-radius: var(--r); padding: .7rem .8rem; margin: .5rem 0 .8rem; display: grid; gap: .2rem; }
.est-box .est-big { font-size: 1.3rem; }
.est-box .hint { margin: 0; }
.est-box .est-last { color: var(--ink); font-weight: 600; }

/* cards: price area always pinned to the bottom so rows line up */
.lot-grid:not(.as-list) .lot-card-body { display: flex; flex-direction: column; gap: .5rem; }
.lot-grid:not(.as-list) .card-bottom { margin-top: auto; display: grid; gap: .5rem; }
.est-strip small { width: 100%; }
.est-strip { margin: 0; }
.foot-left { display: flex; align-items: center; gap: .55rem; min-width: 0; }

/* Buy Now deal rating */
.deal { display: inline-grid; line-height: 1.15; padding: .28rem .45rem; border-radius: 5px; font-size: .72rem; }
.deal b { font: 800 .74rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.deal small { font: .64rem var(--font-mono); opacity: .9; white-space: nowrap; }
.deal-great { background: #1B7A3E; color: #fff; }
.deal-good { background: var(--c-DDF5E5); color: var(--c-1B7A3E); }
.deal-fair { background: var(--c-EEF0F3); color: var(--c-3D4A5C); }
.deal-high { background: var(--c-FDE2E5); color: var(--c-B3122A); }
#d-bn-row { flex-wrap: wrap; align-items: center; }
.deal-inline { margin-left: auto; margin-top: .3rem; }

/* compact, aligned card footer */
.lot-grid:not(.as-list) .lot-card-foot { min-height: 64px; align-items: center; }
.lot-card-foot .when strong, .buy-now-btn .label, .buy-now-btn strong { white-space: nowrap; }
.buy-now-btn { padding: .3rem .6rem .35rem; }
.lot-card-foot .when { flex-shrink: 0; }
.deal { padding: .25rem .4rem; }
.deal b { font-size: .7rem; white-space: nowrap; }

.odo-note { display: block; font-size: .78rem; color: var(--steel); font-weight: 400; margin-top: .15rem; }
.odo-note a { color: inherit; text-decoration: underline; }
dd .fact-tag { font-size: .66rem; }

/* sale details */
dd.val-good { color: var(--c-1B7A3E); font-weight: 600; }
dd.val-bad { color: var(--red); font-weight: 600; }
dd.val-warn { color: var(--c-8A5A00); font-weight: 600; }
/* sales history (bid.cars style) */
.hist-ask { background: var(--paper); border-radius: var(--r); padding: 1rem; display: grid; gap: .5rem; justify-items: start; }
.hist-ask p { margin: 0; }
.hist-title { font: 800 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .03em; margin: .6rem 0 .4rem; }
.hist-table-wrap { overflow-x: auto; }
.hist-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hist-table th { text-align: left; font: 700 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); padding: .5rem .6rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.hist-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hist-table .num { text-align: right; }
.hist-table .pill.side-copart { background: #1A55B0; color: #fff; }
.hist-table .pill.side-iaa { background: #D2202F; color: #fff; }
.hist-bid { display: inline-block; background: var(--c-E3ECFA); color: var(--c-1A55B0); font-weight: 700; padding: .15rem .45rem; border-radius: 4px; }
.hist-status { display: inline-block; padding: .15rem .45rem; border-radius: 4px; font-size: .78rem; font-weight: 600; }
.hist-status.st-yes { background: var(--c-DDF5E5); color: var(--c-1B7A3E); }
.hist-status.st-no { background: var(--c-FDE2E5); color: var(--c-B3122A); }
.hist-status.st-unk { background: var(--c-FFF1CC); color: var(--c-8A5A00); }

.hist-lot { color: var(--c-1A55B0); text-decoration: underline; font-weight: 600; }
.hist-foot { margin-top: .5rem; }
.earlier-banner { background: var(--c-E3ECFA); }

.hist-bid.no-bids { background: var(--c-EEF0F3); color: var(--steel); font-weight: 600; }

.bn-gap { margin: -.2rem 0 .6rem; font-size: .8rem; }

/* Today's auctions: status tabs + live cards */
.phase-tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid #D6DCE3; margin: 0 0 .9rem; }
.phase-tabs button { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: .6rem .9rem; font: 600 .95rem var(--font-body, inherit); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.phase-tabs button .n { color: var(--steel); font-weight: 400; font-size: .85rem; }
.phase-tabs button:hover { color: var(--red); }
.phase-tabs button[aria-selected="true"] { border-bottom-color: var(--red); color: var(--red); }
.phase-tabs button.is-empty:not([aria-selected="true"]) { opacity: .5; }
.phase-tabs button[data-phase="live"] { color: #12803A; }
.phase-tabs button[data-phase="live"][aria-selected="true"] { border-bottom-color: var(--c-16A34A); }
.live-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); flex: none; margin-right: .1rem; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: livepulse 1.6s ease-out infinite; } }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 .45rem rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.live-ribbon { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; background: rgba(22,128,58,.92); color: #fff; font: 800 .8rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: .35rem; }
.live-ribbon .live-dot { background: #BBF7D0; }
.lot-card.is-live { box-shadow: 0 0 0 2px var(--c-16A34A), 0 6px 18px rgba(22,163,74,.18); }
.lot-card.is-live .photo-count { bottom: 2.2rem; }
.when-live strong { color: #12803A; display: inline-flex; align-items: center; gap: .35rem; }
.check-hint { color: var(--steel); font-size: .78rem; margin-left: .2rem; }

/* Pure sale (no reserve): gold, so it stands out from every other badge */
.b-pure { background: var(--c-FFF4CC); border-color: var(--c-E8B923); color: var(--c-7A5300); }
.pure-flag { position: absolute; left: .55rem; bottom: .55rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; background: linear-gradient(180deg, #FFD54A, #F2B705); color: #3D2A00; font: 800 .78rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pure-flag::before { content: "★"; font-size: .8rem; }
.lot-card.is-pure { box-shadow: 0 0 0 2px #F2B705, 0 6px 18px rgba(242,183,5,.2); }
.lot-card.is-pure.is-live { box-shadow: 0 0 0 2px var(--c-16A34A), 0 0 0 4px #F2B705, 0 6px 18px rgba(22,163,74,.18); }
.lot-card.is-live .pure-flag { bottom: 2.25rem; }

/* Search membership (research tools only) */
.search-plan { margin-top: 2rem; background: var(--card); border: 2px dashed var(--ink); border-radius: var(--r); padding: 2rem; display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 2rem; align-items: start; }
.search-plan h3 { margin: .3rem 0 .5rem; }
.sp-prices { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1rem; align-items: flex-end; }
.sp-prices .plan-price { font-size: 2.8rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.sp-save { font: 700 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--c-E9F6EE); color: var(--c-145C2E); border: 1px solid var(--c-A9DDBC); padding: .2rem .45rem; border-radius: 3px; align-self: center; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sp-list li { padding-left: 1.6rem; position: relative; }
.sp-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; background: var(--night); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.sp-upgrade { background: var(--paper); border-left: 4px solid var(--red); padding: 1rem 1.1rem; display: grid; gap: .6rem; }
.sp-upgrade p { margin: 0; font-size: .92rem; }
.sp-upgrade .btn { justify-self: start; }
@media (max-width: 1000px) { .search-plan { grid-template-columns: 1fr; } }
.fee-tr { margin: .2rem 0 .5rem; font-size: .9rem; }

/* ---------- Member accounts ---------- */
.acct-link { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--r); font: 600 .9rem var(--font-body); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); line-height: 1.2; }
.acct-link:hover, .acct-link[aria-current="page"] { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.acct-link.is-in { border-color: rgba(34,197,94,.6); }
.acct-link.is-in svg { color: #4ADE80; }
@media (min-width: 921px) { .acct-link { padding: .55rem .9rem; font-size: .92rem; } }
@media (max-width: 520px) { .acct-link { padding: .4rem .55rem; font-size: .85rem; } .acct-link span { display: none; } }

.page-head-tight { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.auth-section, .member-section { padding: 2.5rem 0 4rem; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 3rem; align-items: start; }
.auth-card { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.6rem; box-shadow: 8px 8px 0 var(--red); display: grid; gap: 1.1rem; }
.auth-tabs { grid-template-columns: 1fr 1fr; }
.auth-tabs button { appearance: none; border: 0; background: var(--card); padding: .65rem .3rem; font: 800 .95rem var(--font-display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.auth-tabs button + button { border-left: 1px solid var(--line); }
.auth-tabs button[aria-selected="true"] { background: var(--night); color: #fff; }
.auth-form { display: grid; gap: .9rem; }
.auth-form .btn { justify-self: start; }
.linkish { appearance: none; background: none; border: 0; padding: 0; color: var(--red); font: 600 .9rem var(--font-body); text-decoration: underline; cursor: pointer; justify-self: start; }
.auth-msg { margin: 0; padding: .7rem .9rem; border-left: 4px solid var(--red); background: var(--c-FDECEC); color: var(--c-8A1F1F); font-weight: 600; font-size: .92rem; }
.auth-msg.ok { border-left-color: var(--c-1B7A3E); background: var(--c-E9F6EE); color: var(--c-145C2E); }
.auth-done { display: grid; gap: .8rem; }
.auth-done h2 { font-size: 1.8rem; }
.auth-side { display: grid; gap: 1rem; padding-top: .4rem; }
.auth-side h2 { font-size: 2.2rem; }
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; gap: 2rem; } }

.acct-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.acct-top-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.m-signedout { max-width: 560px; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 2rem; display: grid; gap: .8rem; }
.m-alerts { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.m-alerts:empty { display: none; }
.m-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1rem; border-left: 4px solid var(--steel); background: var(--card); border-radius: 3px; font-weight: 600; }
.m-alert-ok { border-left-color: var(--c-1B7A3E); background: var(--c-E9F6EE); color: var(--c-145C2E); }
.m-alert-warn { border-left-color: var(--c-E8B923); background: var(--c-FFF8E1); color: var(--c-6B4E00); }
.m-alert-bad { border-left-color: var(--red); background: var(--c-FDECEC); color: var(--c-8A1F1F); }
.m-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; margin-bottom: 1.4rem; }
@media (max-width: 960px) { .m-grid { grid-template-columns: 1fr; } }
.member-section .panel { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.4rem; display: grid; gap: 1rem; align-content: start; }
.member-section .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.member-section .panel-head h2 { font-size: 1.7rem; }
.m-status { font: 700 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 3px; border: 1px solid var(--line); }
.m-status:empty { display: none; }
.m-status.ok { background: var(--c-E9F6EE); border-color: var(--c-A9DDBC); color: var(--c-145C2E); }
.m-status.warn { background: var(--c-FFF4CC); border-color: var(--c-E8B923); color: var(--c-7A5300); }
.m-status.bad { background: var(--c-FDECEC); border-color: var(--c-F2B8B8); color: var(--c-8A1F1F); }
.m-status.muted { color: var(--steel); }
.m-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.m-plan-card { border: 2px solid var(--edge); border-radius: var(--r); padding: 1.1rem; display: grid; gap: .6rem; align-content: start; justify-items: start; }
.m-plan-card.featured { box-shadow: 6px 6px 0 var(--red); }
.m-plan-card .plan-price { font-size: 2.8rem; }
.m-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 0; }
.m-dl dt { color: var(--steel); }
.m-dl dd { margin: 0; font-weight: 600; }
.m-offer { background: var(--paper); border-left: 4px solid var(--red); padding: .9rem 1rem; display: grid; gap: .4rem; }
.m-offer p { margin: 0; font-size: .92rem; }
.m-bar { height: 8px; background: var(--c-DCE1E6); border-radius: 4px; overflow: hidden; }
.m-bar i { display: block; height: 100%; background: var(--red); }
.m-form { display: grid; gap: .9rem; }
.m-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.m-saved { color: var(--c-1B7A3E); font-weight: 700; font-size: .9rem; }
.m-pass summary { cursor: pointer; font-weight: 600; color: var(--steel); }
.m-pass[open] summary { margin-bottom: .8rem; }
.m-favs { margin-bottom: 1.2rem; }
.m-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.m-fav { position: relative; border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; background: var(--card); border-top-width: 4px; }
.m-fav.side-copart { border-top-color: #1E5BB8; }
.m-fav.side-iaa { border-top-color: var(--red); }
.m-fav-link { color: inherit; text-decoration: none; display: block; }
.m-fav-img { position: relative; aspect-ratio: 4 / 3; background: var(--paper); }
.m-fav-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-fav-img .pill { position: absolute; top: .5rem; left: .5rem; }
.m-fav-body { padding: .8rem .9rem 1rem; display: grid; gap: .3rem; }
.m-fav-body h3 { font-size: 1.15rem; }
.m-fav-meta { margin: 0; font-size: .85rem; color: var(--steel); }
.m-fav-x { position: absolute; top: .5rem; right: .5rem; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(14,27,44,.75); color: #fff; cursor: pointer; }
.m-preview-link { margin-top: 1.5rem; }
.gate-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .2rem 0; }

/* Saved-lot heart */
.fav-btn { appearance: none; border: 0; cursor: pointer; display: inline-grid; place-items: center; color: #fff; }
.fav-card { position: absolute; top: .5rem; right: .5rem; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(14,27,44,.72); border: 1px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fav-card svg path { fill: none; stroke: #fff; stroke-width: 2; }
.fav-card.on { background: var(--red); border-color: var(--red); }
.fav-card.on svg path { fill: #fff; stroke: #fff; }
.lot-card:has(.fav-card) .compare-chip { right: 2.9rem; }
.fav-wide { width: 100%; margin-top: .6rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; color: var(--ink); }
.fav-wide svg path { fill: none; stroke: currentColor; stroke-width: 2; }
.fav-wide::after { content: attr(data-label); }
.fav-wide.on { border-color: var(--red); color: var(--red); }
.fav-wide.on svg path { fill: currentColor; }
.nav a, .nav .btn, .acct-link, .search-icon { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1520px) { body:not(.page-wide) .acct-link span { display: none; } body:not(.page-wide) .acct-link { padding: .55rem .65rem; } }
@media (min-width: 921px) and (max-width: 1240px) { .page-wide .acct-link span { display: none; } .page-wide .acct-link { padding: .55rem .65rem; } }
@media (min-width: 921px) and (max-width: 1180px) { .search-icon span { display: none; } .search-icon { padding: .55rem .65rem; } }
.m-form .row-2, .auth-form .row-2 { align-items: start; }
@media (min-width: 921px) and (max-width: 1520px) { body:not(.page-wide) .nav a { padding: .5rem .6rem; } body:not(.page-wide) .nav { gap: .15rem; } }
.sp-trial { margin: .8rem 0 0; font-size: .92rem; }
.m-plan-card small.muted { color: var(--steel); font-size: .82rem; }
#m-plan-body { display: grid; gap: 1.1rem; }
#m-plan-body .m-offer { margin: .2rem 0; padding: 1rem 1.15rem; }
#m-plan-body .m-form-actions { padding-top: .2rem; }

/* Payment dialogs (Stripe forms inside our page) */
.pay-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 2px solid var(--edge); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: 10px 10px 0 var(--red); overflow: auto; }
.pay-dialog.wide { width: min(1000px, calc(100% - 24px)); }
.pay-dialog::backdrop { background: rgba(14,27,44,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pay-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--night); color: #fff; border-bottom: 4px solid var(--red); }
.pay-head h2 { font-size: 1.4rem; color: #fff; }
.pay-x { appearance: none; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.pay-x:hover { background: rgba(255,255,255,.12); }
.pay-body { padding: 1.2rem; display: grid; gap: .9rem; }
.pay-foot { padding: 0 1.2rem 1.2rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: flex-end; }
.pay-foot:empty { display: none; }
.pay-foot .pay-note { flex-basis: 100%; text-align: right; }
.pay-mount { min-height: 120px; }
.pay-note { margin: 0; font-size: .92rem; }
.pay-note.muted { color: var(--steel); font-size: .8rem; }
.pay-note.bad { padding: .7rem .9rem; border-left: 4px solid var(--red); background: var(--c-FDECEC); color: var(--c-8A1F1F); font-weight: 600; }
.pay-wait { display: flex; align-items: center; gap: .8rem; padding: 2.5rem 0; justify-content: center; color: var(--steel); font-weight: 600; }
.pay-spin { width: 22px; height: 22px; border: 3px solid var(--c-DCE1E6); border-top-color: var(--red); border-radius: 50%; animation: payspin .8s linear infinite; }
@keyframes payspin { to { transform: rotate(360deg); } }
.pay-body select, .pay-body textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.btn-danger { border-color: var(--c-B42318) !important; color: var(--c-B42318) !important; }
.btn-danger:hover { background: var(--c-FDECEC) !important; }
.m-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.m-inline { margin-left: .6rem; font-size: .85rem; }
.m-more { margin: 0; }
.m-receipts { margin-bottom: 1.2rem; }
.m-rec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.m-rec th { text-align: left; color: var(--steel); font: 600 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.m-rec td { padding: .6rem; border-bottom: 1px solid var(--line); }
.m-rec .num { text-align: right; }
@media (max-width: 600px) { .pay-dialog, .pay-dialog.wide { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; } }

/* Admin panel */
.mgr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.mgr-tile { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: .9rem 1rem; display: grid; gap: .2rem; }
.mgr-tile .label { font: 600 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.mgr-tile strong { font: 800 2rem var(--font-display); line-height: 1; }
.mgr-tile small { color: var(--steel); font-size: .78rem; min-height: 1em; }
.mgr-tools { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: .9rem; }
.mgr-tools input[type="search"] { flex: 1 1 280px; padding: .65rem .8rem; border: 2px solid var(--edge); border-radius: var(--r); font: inherit; background: var(--card); }
.mgr-tools select { padding: .6rem .7rem; border: 2px solid var(--edge); border-radius: var(--r); font: inherit; background: var(--card); }
.mgr-panel { padding: 0 !important; overflow: hidden; }
.mgr-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mgr-table th { text-align: left; color: var(--steel); font: 600 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .7rem .9rem; border-bottom: 2px solid var(--edge); background: var(--paper); }
.mgr-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mgr-table td strong { display: block; }
.mgr-table td small { color: var(--steel); font-size: .8rem; }
.mgr-row { cursor: pointer; }
.mgr-row:hover, .mgr-row:focus { background: var(--c-F6F8FA); outline: none; }
.mgr-row.s-banned td { color: var(--c-8A1F1F); }
.mgr-row.s-restricted { background: var(--c-FFFBEB); }
.mgr-badge { display: inline-block; font: 700 .68rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; padding: .2rem .45rem; border-radius: 3px; border: 1px solid var(--line); white-space: nowrap; }
.mgr-badge.ok { background: var(--c-E9F6EE); border-color: var(--c-A9DDBC); color: var(--c-145C2E); }
.mgr-badge.info { background: var(--c-EAF1FB); border-color: var(--c-B7CDEB); color: var(--c-1E4C8A); }
.mgr-badge.warn { background: var(--c-FFF4CC); border-color: var(--c-E8B923); color: var(--c-7A5300); }
.mgr-badge.bad { background: var(--c-FDECEC); border-color: var(--c-F2B8B8); color: var(--c-8A1F1F); }
.mgr-badge.dark { background: var(--night); border-color: var(--edge); color: #fff; }
.mgr-badge.muted { color: var(--steel); }
.mgr-tags { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.mgr-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem .9rem; }
.mgr-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .mgr-detail { grid-template-columns: 1fr; } .mgr-table th:nth-child(2), .mgr-table td:nth-child(2), .mgr-table th:nth-child(3), .mgr-table td:nth-child(3) { display: none; } }
.mgr-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: .7rem; align-content: start; }
.mgr-card h3 { font-size: 1.15rem; }
.mgr-stripe { justify-self: start; }
.mgr-note { display: grid; gap: .5rem; }
.mgr-note textarea, .mgr-card textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r); }
.mgr-note .btn { justify-self: start; }
.mgr-history { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mgr-history li { border-left: 3px solid var(--line); padding: .1rem 0 .1rem .7rem; }
.mgr-history li.h-ban { border-left-color: var(--red); }
.mgr-history li.h-restrict { border-left-color: var(--c-E8B923); }
.mgr-history li.h-unban, .mgr-history li.h-unrestrict { border-left-color: var(--c-1B7A3E); }
.mgr-history li p { margin: .2rem 0 0; font-size: .9rem; }

/* Account menu (header) */
.header-tools { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: 290px; background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 6px 6px 0 var(--red); display: grid; padding: .4rem 0; }
.acct-menu[hidden] { display: none; }
.acct-menu-head { padding: .7rem 1rem .8rem; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; margin-bottom: .3rem; }
.acct-menu-head strong { font-size: 1rem; }
.acct-menu-head small { color: var(--steel); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu-plan { justify-self: start; margin-top: .35rem; font: 700 .68rem var(--font-mono); letter-spacing: .05em; text-transform: uppercase; padding: .2rem .45rem; border-radius: 3px; border: 1px solid var(--line); color: var(--steel); }
.acct-menu-plan.ok { background: var(--c-E9F6EE); border-color: var(--c-A9DDBC); color: var(--c-145C2E); }
.acct-menu-plan.info { background: var(--c-EAF1FB); border-color: var(--c-B7CDEB); color: var(--c-1E4C8A); }
.acct-menu-plan.warn { background: var(--c-FFF4CC); border-color: var(--c-E8B923); color: var(--c-7A5300); }
.acct-menu-plan.bad { background: var(--c-FDECEC); border-color: var(--c-F2B8B8); color: var(--c-8A1F1F); }
.acct-menu-plan.dark { background: var(--night); border-color: var(--edge); color: #fff; }
.acct-menu a, .acct-menu-out { display: block; padding: .6rem 1rem; color: var(--ink); text-decoration: none; font: 600 .95rem var(--font-body); text-align: left; background: none; border: 0; cursor: pointer; width: 100%; }
.acct-menu a:hover, .acct-menu a:focus, .acct-menu-out:hover, .acct-menu-out:focus { background: var(--c-F3F5F7); outline: none; }
.acct-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
.acct-menu a.is-cta { color: var(--red); }
.acct-menu a.is-admin { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .7rem; }
.acct-menu-out { border-top: 1px solid var(--line) !important; margin-top: .3rem; color: var(--c-B42318); }
@media (max-width: 520px) { .acct-menu { width: min(320px, calc(100vw - 16px)); right: -4px; } }
#membership, #profile, #saved, #billing, .m-receipts { scroll-margin-top: 90px; }
.anchor { display: block; position: relative; top: -90px; visibility: hidden; height: 0; }

/* ---------- My account pages ---------- */
.acct-headbar { padding-bottom: 0 !important; }
.acct-headbar .m-sub { margin: .3rem 0 0; }
.m-sub:empty { display: none; }
.m-col { display: grid; gap: 1.4rem; align-content: start; }

/* Overview */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.ov-card { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.1rem 1.2rem; display: grid; gap: .3rem; align-content: start; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.ov-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }
.ov-card .label { font: 600 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.ov-card strong { font: 800 1.6rem var(--font-display); line-height: 1.1; }
.ov-card small { color: var(--steel); font-size: .85rem; min-height: 1.2em; }
.ov-go { margin-top: .5rem; color: var(--red); font-weight: 700; font-size: .88rem; }
.ov-next { margin-bottom: 1.4rem; }
.ov-list { display: grid; }
.ov-row { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ov-row:first-child { border-top: 0; }
.ov-row:hover strong { color: var(--red); }
.ov-thumb { width: 72px; height: 54px; border-radius: 3px; overflow: hidden; background: var(--paper); }
.ov-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ov-txt { display: grid; gap: .15rem; min-width: 0; }
.ov-txt strong, .ov-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-txt small { color: var(--steel); font-size: .78rem; }
.ov-when { font-size: .85rem; white-space: nowrap; }
@media (max-width: 560px) { .ov-row { grid-template-columns: 56px 1fr; } .ov-when { grid-column: 2; } .ov-thumb { width: 56px; height: 42px; } }
.ov-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Membership */
.rw-balance { display: flex; justify-content: space-between; align-items: baseline; background: var(--paper); border-radius: var(--r); padding: .9rem 1rem; }
.rw-balance .label { font: 600 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.rw-balance strong { font: 800 2rem var(--font-display); color: var(--c-1B7A3E); }
.rw-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rw-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.rw-list li span { color: var(--c-1B7A3E); font-weight: 700; }
.bid-plans { margin-top: 1.4rem; }
.bp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.bp-item { border: 2px dashed var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: .25rem; }
.bp-item .plan-price { font-size: 2.6rem; }
.bp-item small { color: var(--steel); }
.bp-item .bp-yours { color: var(--c-1B7A3E); font-weight: 700; }
.bp-item .bp-yours:empty { display: none; }
.m-receipts { margin-top: 1.4rem; }

/* Watchlist */
.wl-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.wl-filters { position: sticky; top: 1rem; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1.2rem; display: grid; gap: 1rem; }
.wl-filters .seg { grid-template-columns: repeat(3, 1fr); }
.wl-filters input[type="search"], .wl-filters select { width: 100%; }
.wl-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.2rem; }
.wl-card { position: relative; }
.wl-card .pill-side { position: absolute; top: .55rem; left: .55rem; z-index: 2; }
.wl-foot { margin-top: auto; }
.wl-saved { margin: .6rem 0 0; font-size: .78rem; color: var(--steel); }
.wl-none { grid-column: 1 / -1; }
.wl-empty { max-width: 560px; }
@media (max-width: 900px) { .wl-layout { grid-template-columns: 1fr; } .wl-filters { position: static; } }

/* Profile */
.id-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; color: var(--ink); }
.m-close { margin-top: 1.4rem; }
#wl-sort { padding: .55rem .7rem; border: 2px solid var(--edge); border-radius: var(--r); font: inherit; background: var(--card); min-width: 220px; }
.soon { font: 700 .62rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-style: normal; background: var(--c-FFF4CC); border: 1px solid var(--c-E8B923); color: var(--c-7A5300); padding: .1rem .35rem; border-radius: 3px; margin-left: .3rem; vertical-align: middle; white-space: nowrap; }

/* Legal pages */
.legal-section { padding: 2.5rem 0 4rem; }
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 3rem; align-items: start; }
.legal-nav { position: sticky; top: 1.2rem; display: grid; gap: .2rem; border-left: 3px solid var(--line); }
.legal-nav a { padding: .45rem .9rem; color: var(--steel); text-decoration: none; font-weight: 600; font-size: .95rem; margin-left: -3px; border-left: 3px solid transparent; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--red); }
.legal-doc { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 2rem 2.2rem; line-height: 1.65; }
.legal-doc h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.legal-doc h2:first-of-type { margin-top: 1.2rem; }
.legal-doc p, .legal-doc li { color: var(--c-26313F); }
.legal-doc ul { padding-left: 1.2rem; display: grid; gap: .45rem; }
.legal-intro { font-size: 1.05rem; color: var(--ink) !important; }
.legal-links { margin-left: .6rem; }
.legal-links a { color: #C2CDD9; }
@media (max-width: 860px) { .legal-wrap { grid-template-columns: 1fr; gap: 1.2rem; } .legal-nav { position: static; display: flex; flex-wrap: wrap; border-left: 0; } .legal-nav a { border-left: 0; margin: 0; padding: .4rem .6rem; } .legal-doc { padding: 1.4rem 1.2rem; } }
.mgr-utable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mgr-utable th { text-align: left; font: 600 .66rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); padding: .5rem .6rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.mgr-utable td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.mgr-utable .num { text-align: right; }
.mgr-utable td.hl { background: var(--c-FFF8E1); font-weight: 700; }
.mgr-usage .hint { margin: .6rem 0 0; }

/* Click to copy (lot number / VIN) */
.copy-id { cursor: copy; border-bottom: 1px dashed currentColor; border-bottom-color: rgba(85,98,115,.45); padding-bottom: 1px; transition: background .15s, color .15s; border-radius: 2px; }
.copy-id:hover, .copy-id:focus { background: var(--c-EEF2F6); color: var(--ink); outline: none; border-bottom-color: var(--ink); }
.copy-id.copied { background: var(--c-E9F6EE); color: var(--c-145C2E); border-bottom-color: var(--c-1B7A3E); }
.aaw-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 2000; background: var(--night); color: #fff; font: 600 .9rem var(--font-body); padding: .65rem 1rem; border-radius: var(--r); border-left: 4px solid #22C55E; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: calc(100% - 32px); }
.aaw-toast.in { opacity: 1; transform: translate(-50%, 0); }
body.has-tray .aaw-toast { bottom: 96px; }

/* Get the app page */
.app-section { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.app-card { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 1.8rem); display: grid; gap: 1rem; }
.app-card h2 { font-size: 1.9rem; }
.app-card p { margin: 0; }
.app-icon-row { display: flex; gap: .9rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.app-icon-row img { border-radius: 14px; box-shadow: 0 2px 6px rgba(14,27,44,.25); }
.app-icon-row strong { display: block; font-size: 1.15rem; }
.app-icon-row small { color: var(--steel); font-family: var(--font-mono); font-size: .8rem; }
.app-state { display: none; gap: .9rem; }
.app-install[data-state="installed"] [data-for="installed"],
.app-install[data-state="prompt"] [data-for="prompt"],
.app-install[data-state="android"] [data-for="android"],
.app-install[data-state="ios"] [data-for="ios"],
.app-install[data-state="inapp"] [data-for="inapp"],
.app-install[data-state="desktop"] [data-for="desktop"] { display: grid; }
.app-install[data-state="loading"] [data-for="desktop"] { display: grid; }
.btn-big { font-size: 1.1rem; padding: 1rem 1.6rem; justify-self: start; }
.app-fallback { font-size: .92rem; color: var(--steel); }
.app-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: .8rem; }
.app-steps li { counter-increment: st; position: relative; padding-left: 2.6rem; min-height: 1.9rem; line-height: 1.45; }
.app-steps li::before { content: counter(st); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .9rem; }
.ios-share { display: inline-flex; vertical-align: -3px; color: #1F6FEB; }
.app-qr-big svg { width: min(240px, 100%); height: auto; display: block; border: 1px solid var(--line); border-radius: var(--r); }
.app-link { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .5rem .5rem .8rem; background: var(--paper); }
.app-link code { flex: 1; font-family: var(--font-mono); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-share-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.app-qr-small { display: flex; gap: .9rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.app-qr-small svg { width: 110px; height: auto; flex: none; border: 1px solid var(--line); border-radius: var(--r); }
.app-qr-small small { color: var(--steel); }
.app-install[data-state="desktop"] ~ .app-share .app-qr-small, .app-install[data-state="loading"] ~ .app-share .app-qr-small { display: none; }
.app-perks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.app-perks li { border-top: 3px solid var(--red); padding-top: .8rem; display: grid; gap: .3rem; }
.app-perks span { color: var(--steel); font-size: .93rem; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } .app-perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .app-perks { grid-template-columns: 1fr; } .app-share-btns .btn { flex: 1 1 calc(50% - .6rem); text-align: center; } }

/* Phone install banner */
.app-banner { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80; display: flex; align-items: center; gap: .7rem; background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 10px; padding: .6rem .6rem .6rem .7rem; box-shadow: 0 8px 24px rgba(14,27,44,.3); }
.app-banner img { border-radius: 9px; flex: none; }
.app-banner div { flex: 1; min-width: 0; line-height: 1.2; }
.app-banner strong { display: block; font-size: .95rem; }
.app-banner small { color: var(--steel); font-size: .8rem; }
.app-banner-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; padding: .2rem .4rem; color: var(--steel); cursor: pointer; }
@media print { .app-banner { display: none !important; } }

/* ---------- Motion (iOS-style). Everything here is skipped when the device asks for reduced motion. ---------- */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.3, 1.25, .5, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1); }
}
/* Skeleton cards (static gray when motion is reduced) */
.lot-card.skel { border-top-color: var(--line); border-color: var(--line); pointer-events: none; }
.skel .sk-img { aspect-ratio: 4 / 3; background: var(--c-E3E7EC); }
.skel .sk-body { padding: 1rem; display: grid; gap: .6rem; }
.skel .sk-body i { display: block; height: .9rem; border-radius: 3px; background: var(--c-E3E7EC); }
.skel .sk-body i:first-child { height: 1.3rem; width: 85%; }
.skel .sk-body i.sk-short { width: 45%; }
.lot-grid.as-list .skel .sk-img { aspect-ratio: auto; min-height: 120px; }
/* Sliding tab line */
.phase-tabs { position: relative; }
.phase-tabs.has-ink button, .phase-tabs.has-ink button[aria-selected="true"] { border-bottom-color: transparent; }
.tab-ink { position: absolute; left: 0; top: 0; height: 3px; background: var(--red); border-radius: 2px; pointer-events: none; }
.tab-ink.is-live { background: var(--c-16A34A); }

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: content fades and rises, header stays put */
  @view-transition { navigation: auto; }
  .launch-bar { view-transition-name: launch-bar; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .16s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .34s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
  /* v155: direction like an app. Forward: the new page slides in from the right over the old one.
     Back (a "←" link or the browser button): the old page slides away to the right, the earlier one comes back from the left.
     The iPhone's own back swipe keeps only its native animation (set in the <head> script). */
  .acct-bar { view-transition-name: acct-bar; }
  html[data-vt="fwd"]::view-transition-old(root) { animation: vt-push-old .34s cubic-bezier(.2,.7,.2,1) both; }
  html[data-vt="fwd"]::view-transition-new(root) { animation: vt-push-new .34s cubic-bezier(.2,.7,.2,1) both; box-shadow: -10px 0 24px rgba(0,0,0,.18); }
  html[data-vt="back"]::view-transition-old(root) { animation: vt-pop-old .32s cubic-bezier(.2,.7,.2,1) both; z-index: 2; box-shadow: -10px 0 24px rgba(0,0,0,.18); }
  html[data-vt="back"]::view-transition-new(root) { animation: vt-pop-new .32s cubic-bezier(.2,.7,.2,1) both; z-index: 1; }
  @keyframes vt-push-old { to { transform: translateX(-28%); opacity: .7; } }
  @keyframes vt-push-new { from { transform: translateX(100%); } }
  @keyframes vt-pop-old { to { transform: translateX(100%); } }
  @keyframes vt-pop-new { from { transform: translateX(-28%); opacity: .7; } }

  /* Press feedback */
  .btn, .copy-id, .fav-btn, .acct-link, .search-icon, .nav-toggle, .view-toggle button, .phase-tabs button, .calc-tabs button, .link-btn, .app-banner-x {
    transition: transform .22s var(--spring), background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  }
  .btn:active, .acct-link:active, .search-icon:active, .nav-toggle:active, .view-toggle button:active, .calc-tabs button:active { transform: scale(.96); transition-duration: .08s; }
  .phase-tabs button:active, .copy-id:active, .link-btn:active { transform: scale(.94); transition-duration: .08s; }
  .lot-card { transition: transform .28s var(--spring), box-shadow .2s var(--ease-out); }
  .lot-card:active { transform: scale(.985); transition-duration: .1s; }
  @media (hover: none) { .lot-card:hover { transform: none; box-shadow: none; } .lot-card:active { transform: scale(.975); } }

  /* Cards cascade in */
  .lot-card.enter { animation: card-in .46s var(--spring) both; animation-delay: calc(var(--i, 0) * 40ms); }
  #wl-grid > .lot-card, #wl-grid > article { animation: card-in .46s var(--spring) both; }
  #wl-grid > :nth-child(2) { animation-delay: 40ms; } #wl-grid > :nth-child(3) { animation-delay: 80ms; } #wl-grid > :nth-child(4) { animation-delay: 120ms; }
  #wl-grid > :nth-child(5) { animation-delay: 160ms; } #wl-grid > :nth-child(6) { animation-delay: 200ms; } #wl-grid > :nth-child(n+7) { animation-delay: 240ms; }
  @keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

  /* Skeleton shimmer */
  .skel .sk-img, .skel .sk-body i { background: linear-gradient(100deg, var(--c-E3E7EC) 30%, var(--c-F3F5F7) 50%, var(--c-E3E7EC) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .lot-card.skel { animation: fade-in .25s ease both; }
  @keyframes fade-in { from { opacity: 0; } }

  /* Tab line glides */
  .tab-ink[data-ready] { transition: transform .38s var(--spring), width .38s var(--spring), background-color .2s; }

  /* Watchlist heart pop */
  .fav-btn.pop svg { animation: heart-pop .5s var(--spring); }
  @keyframes heart-pop { 0% { transform: scale(1); } 30% { transform: scale(.7); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

  /* Dialogs and sheets open with a spring */
  dialog[open] { animation: dlg-in .36s var(--spring); }
  dialog[open]::backdrop { animation: fade-in .25s ease; }
  @keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }

  /* Account menu drops from the button */
  .acct-menu:not([hidden]) { animation: menu-in .3s var(--spring); transform-origin: top right; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.95); } }

  /* Toast and install banner */
  .aaw-toast { transition: opacity .2s, transform .4s var(--spring); }
  .app-banner { animation: app-up .5s var(--spring); }
  @keyframes app-up { from { transform: translateY(130%); } }
  .copy-id.copied { animation: copied .4s var(--spring); }
  @keyframes copied { 40% { transform: scale(1.08); } }
}

/* Photo viewer on phones: arrows + counter in their own bar under the photo */
.lightbox { grid-template-rows: auto 1fr auto auto; }
.lb-ctrl { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .5rem 1rem .1rem; position: relative; z-index: 2; }
.lb-ctrl[hidden] { display: none; }
.lb-ctrl .lb-nav { position: static; transform: none; margin: 0; width: 46px; height: 46px; font-size: 1.8rem; display: grid; place-items: center; padding: 0 0 .15rem; }
.lb-ctrl .lb-count { min-width: 4.5rem; text-align: center; font-size: .95rem; color: #fff; }
.lightbox.zoomed .lb-ctrl .lb-nav { opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .lb-stage img.lb-in-next { animation: lb-in-next .34s var(--ease-out); }
  .lb-stage img.lb-in-prev { animation: lb-in-prev .34s var(--ease-out); }
  @keyframes lb-in-next { from { translate: 48px 0; opacity: .2; } }
  @keyframes lb-in-prev { from { translate: -48px 0; opacity: .2; } }
}

/* Hamburger menu button (turns into an X when open) */
.nav-toggle { width: 38px; height: 36px; padding: 0 !important; display: none; align-items: center; justify-content: center; }
@media (max-width: 920px) { .nav-toggle { display: inline-flex; } }
.burger { position: relative; width: 18px; height: 14px; display: block; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--spring, ease), opacity .2s, top .3s var(--spring, ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (max-width: 420px) { .nav-toggle { width: 36px; height: 34px; } }
/* Small phones: Search is just the icon so the logo fits */
@media (max-width: 430px) { .search-icon span { display: none; } .search-icon { width: 36px; height: 34px; justify-content: center; padding: 0 !important; } }
@media (prefers-reduced-motion: reduce) { .burger i { transition: none; } }
@media (prefers-reduced-motion: no-preference) { .nav.open { animation: menu-in .3s var(--spring); transform-origin: top; } }
@media (max-width: 430px) { .acct-link { width: 36px; height: 34px; justify-content: center; padding: 0 !important; } .acct-link span { display: none; } }

/* Language picker */
.lang-pick { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: .4rem .6rem; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r); background: none; color: #fff; font: 600 .82rem var(--font-mono); cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.lang-flag { width: 20px; height: 15px; border-radius: 2px; object-fit: fill; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: none; display: block; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 190px; background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 6px 6px 0 var(--red); padding: .35rem 0; display: grid; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-menu a:hover { background: var(--paper); }
.lang-menu a[aria-current] { color: var(--red); }
.lang-menu a[aria-current]::after { content: "✓"; margin-inline-start: auto; }
.lang-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.lang-foot a { display: inline-flex; align-items: center; gap: .45rem; color: #C9D3DE; text-decoration: none; font-size: .88rem; }
.lang-foot a:hover, .lang-foot a[aria-current] { color: #fff; }
@media (max-width: 520px) { .lang-btn span { display: none; } .lang-btn { width: 36px; height: 34px; justify-content: center; padding: 0; } }
@media (prefers-reduced-motion: no-preference) { .lang-menu:not([hidden]) { animation: menu-in .3s var(--spring); transform-origin: top right; } }
html[lang="en"] .legal-lang-note { display: none; }
.legal-lang-note { background: var(--c-FFF7D6); border: 1px solid #E8D27A; border-radius: var(--r); padding: .8rem 1rem; margin: 0 0 1.2rem; }
/* Header room for the language picker and longer labels in other languages */
@media (min-width: 921px) and (max-width: 1480px) { .lang-btn span { display: none; } .lang-btn { padding: .4rem .55rem; } }
@media (min-width: 921px) and (max-width: 1360px) { .search-icon span { display: none; } .search-icon { padding: .55rem .65rem; } }
html:not([lang="en"]) .nav a { padding-left: .5rem; padding-right: .5rem; font-size: .92rem; }
@media (min-width: 921px) and (max-width: 1180px) { html:not([lang="en"]) .nav a { padding-left: .35rem; padding-right: .35rem; font-size: .86rem; } html:not([lang="en"]) .nav .btn { padding-left: .7rem; padding-right: .7rem; } }
@media (min-width: 921px) and (max-width: 1100px) { html:not([lang="en"]) .brand-word { font-size: 1.35rem; } }
@media (min-width: 921px) and (max-width: 1480px) { .lang-btn { width: 40px; justify-content: center; padding: 0; height: 38px; } }
@media (min-width: 921px) and (max-width: 1060px) { html:not([lang="en"]) .nav-wrap, html:not([lang="en"]) .nav { gap: 0; } html:not([lang="en"]) .nav .btn { font-size: .84rem; } }
/* Longer menu labels in other languages: switch to the hamburger a bit earlier */
@media (min-width: 921px) and (max-width: 1360px) {
  html:not([lang="en"]) .nav-toggle { display: inline-flex; }
  html:not([lang="en"]) .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; border-bottom: 4px solid var(--red); }
  html:not([lang="en"]) .nav.open { display: flex; }
  html:not([lang="en"]) .nav a { font-size: .95rem; padding: .5rem .8rem; }
  html:not([lang="en"]) .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  html:not([lang="en"]) .nav .btn { margin: .4rem 0 0; }
  html:not([lang="en"]) .brand-word { font-size: 1.7rem; }
  html:not([lang="en"]) .site-header .wrap { position: relative; }
}
/* Phones: search first, then the language flag */
@media (max-width: 920px) { .header-tools > * { order: 3; } .header-tools > .search-icon { order: 1; } .header-tools > .lang-pick { order: 2; } }

/* Address: opens the maps app; small US map with the yard on hover */
.map-wrap { position: relative; display: inline-block; }
.map-link { color: inherit; text-decoration: underline dotted rgba(14,27,44,.45); text-underline-offset: 3px; cursor: pointer; }
.map-link:hover, .map-link:focus-visible { color: var(--red); text-decoration-color: var(--red); }
.map-pin { margin-inline-end: .3rem; font-size: .9em; }
.map-pop { position: absolute; z-index: 40; left: 0; bottom: calc(100% + 10px); width: 300px; padding: .7rem .7rem .6rem; display: grid; gap: .3rem;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(14,27,44,.18); border-radius: 12px; box-shadow: 0 14px 40px rgba(14,27,44,.25); pointer-events: none;
  opacity: 0; transform: translateY(6px) scale(.97); transform-origin: bottom left; transition: opacity .2s ease, transform .3s var(--spring, ease); }
.map-pop.in { opacity: 1; transform: none; }
.map-pop[hidden] { display: none; }
.map-pop svg { width: 100%; height: auto; display: block; }
.usm-land { fill: var(--c-DCE3EA); stroke: none; }
.usm-borders { fill: none; stroke: #FFFFFF; stroke-width: 1.4; stroke-linejoin: round; }
.usm-dot { fill: var(--red); stroke: #fff; stroke-width: 3; }
.usm-halo { fill: rgba(200,16,46,.22); }
.map-pop-city { font-weight: 700; font-size: .92rem; color: var(--ink); }
.map-pop-hint { font-size: .78rem; color: var(--steel); }
.map-pop-load { font-size: .85rem; color: var(--steel); padding: 2rem 0; text-align: center; }
@media (prefers-reduced-motion: no-preference) { .usm-halo { animation: usm-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; } @keyframes usm-pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } } }
@media (prefers-reduced-motion: reduce) { .map-pop { transition: none; } }

/* Sharing: compare dialog button, share sheet, shared page */
.compare-head-btns { display: flex; gap: .5rem; align-items: center; }
.compare-head-btns .btn, .wl-share { display: inline-flex; align-items: center; gap: .4rem; }
.wl-bar { gap: .6rem; }
.share-link { display: flex; gap: .5rem; margin: .9rem 0; }
.share-link input { flex: 1; min-width: 0; font: 500 .9rem var(--font-mono); padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-section { padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 6vw, 64px); }
.share-tools { margin-bottom: 1rem; }
.share-body { --cols: 3; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 1rem 1.1rem; }
.share-body:has(.share-grid) { background: none; border: 0; padding: 0; }
.share-body .compare-scroll { max-height: none; }
.share-hint { margin-top: .8rem; }
.share-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; background: var(--night); color: #fff; border-radius: var(--r); padding: 1.4rem 1.6rem; }
.share-cta h2 { font-size: 1.8rem; color: #fff; margin-bottom: .3rem; }
.share-cta p { margin: 0; color: #C9D3DE; max-width: 60ch; }
.share-cta-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.share-cta .btn-line { color: #fff; border-color: rgba(255,255,255,.6); }
.share-card .noimg { display: grid; place-items: center; height: 100%; color: var(--steel); font: .8rem var(--font-mono); }
@media (max-width: 600px) { .compare-head-btns .btn { padding: .45rem .7rem; font-size: .85rem; } }

/* Friends */
.fr-grid { align-items: start; }
.fr-code { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: .06em; margin: .2rem 0 .6rem; color: var(--ink); }
.fr-code-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.fr-add { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.fr-add .field { flex: 1; min-width: 180px; margin: 0; }
.fr-add input { text-transform: uppercase; letter-spacing: .05em; }
.fr-msg { margin: .7rem 0 0; font-size: .92rem; }
.fr-msg.ok { color: var(--c-1B7A3E); }
.fr-msg.bad { color: var(--red); }
.fr-list, .fr-inbox { list-style: none; margin: 0; padding: 0; display: grid; }
.fr-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.fr-row:first-child { border-top: 0; }
.fr-person { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; }
.fr-person strong { display: block; }
.fr-person small { color: var(--steel); }
.fr-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.fr-acts { display: flex; gap: .4rem; }
.fr-since { font-size: .82rem; }
.fr-sub { font-size: 1rem; margin: 1.2rem 0 .3rem; text-transform: none; }
.fr-item { position: relative; border-top: 1px solid var(--line); }
.fr-item:first-child { border-top: 0; }
.fr-item-link { display: flex; gap: .8rem; padding: .8rem 2rem .8rem 0; color: var(--ink); text-decoration: none; }
.fr-item-link:hover strong { color: var(--red); }
.fr-thumb { width: 84px; height: 63px; border-radius: 6px; overflow: hidden; background: var(--paper); flex: none; }
.fr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-item-text { display: grid; gap: .15rem; min-width: 0; }
.fr-item-title { font-size: .88rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-note { font-size: .88rem; font-style: italic; }
.fr-item.is-new .fr-item-link strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-inline-end: .4rem; vertical-align: middle; }
.fr-x { position: absolute; right: 0; top: .7rem; border: 0; background: none; color: var(--steel); font-size: 1rem; cursor: pointer; padding: .3rem; }
.fr-x:hover { color: var(--red); }
/* Counters for new items */
.acct-link { position: relative; }
.acct-link.has-news::after { content: attr(data-news); position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 .68rem/18px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--edge); }
.menu-badge { margin-inline-start: .5rem; background: var(--red); color: #fff; border-radius: 9px; padding: 0 .4rem; font-size: .72rem; font-weight: 700; }
.menu-badge[hidden] { display: none; }
/* Share sheet: send to friends */
.share-friends { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.share-friends h3 { font-size: 1.1rem; text-transform: none; margin: 0; }
.share-friend-list { display: grid; gap: .35rem; max-height: 180px; overflow: auto; }
.share-friend small { color: var(--steel); margin-inline-start: .3rem; }
.share-note { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r); font: inherit; }
.share-send-row { display: flex; align-items: center; gap: .7rem; }
.share-sent { font-size: .88rem; color: var(--steel); }
.share-friend { display: flex !important; align-items: center; gap: .5rem; grid-template-columns: none; }
.share-friend small { white-space: nowrap; }
.pay-foot .link-btn { color: var(--red); }

/* Notifications bell */
.bell-wrap { position: relative; }
.bell-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r); background: none; color: #fff; cursor: pointer; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.bell-count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 700 .68rem/18px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--edge); }
.bell-count[hidden] { display: none; }
.bell-panel { position: absolute; right: -60px; top: calc(100% + 12px); z-index: 65; width: min(380px, calc(100vw - 24px)); background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 6px 6px 0 var(--red); display: grid; }
.bell-panel[hidden] { display: none; }
.bell-head { padding: .75rem 1rem; font: 800 1.15rem var(--font-display); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.bell-list { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 440px); overflow: auto; }
.bell-item a { display: flex; gap: .7rem; padding: .7rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.bell-item a:hover { background: var(--paper); }
.bell-item.is-new a { background: var(--c-FFF5F6); }
.bell-item.is-new strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-inline-end: .4rem; vertical-align: middle; }
.bell-ic { width: 42px; height: 42px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; font-size: 1.2rem; overflow: hidden; flex: none; }
.bell-ic img { width: 100%; height: 100%; object-fit: cover; }
.bell-tx { display: grid; gap: .15rem; min-width: 0; font-size: .9rem; }
.bell-sub { color: var(--steel); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-tx small { color: var(--steel); font-size: .78rem; }
.bell-empty { padding: 1.2rem 1rem; color: var(--steel); font-size: .9rem; }
.bell-foot { padding: .6rem 1rem; text-align: right; font-size: .86rem; }
.bell-foot a { color: var(--red); }
@media (max-width: 520px) { .bell-btn { width: 36px; height: 34px; } .bell-panel { width: min(360px, calc(100vw - 16px)); } }
@media (max-width: 920px) { .header-tools > .bell-wrap { order: 3; } }
@media (prefers-reduced-motion: no-preference) { .bell-panel:not([hidden]) { animation: menu-in .3s var(--spring); transform-origin: top right; } }
/* Profile: notifications + devices */
.dev-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.dev-row { display: flex; align-items: center; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.dev-row:first-child { border-top: 0; }
.dev-ic { width: 36px; height: 36px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.dev-tx { flex: 1; min-width: 0; display: grid; }
.dev-tx small { color: var(--steel); }
.dev-here { font-size: .72rem; font-weight: 700; color: var(--c-1B7A3E); background: var(--c-E9F6EE); border-radius: 999px; padding: .1rem .5rem; margin-inline-start: .4rem; }

/* Admin: devices, sharing */
button.mgr-tile { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.mgr-tile.mgr-flag { border-color: var(--red); background: var(--c-FFF5F6); }
.mgr-tile.mgr-flag strong { color: var(--red); }
.mgr-dev small { display: block; color: var(--steel); font-size: .76rem; }
.mgr-dev.is-flag strong, .mgr-dev.is-flag small { color: var(--red); }
.mgr-warn { background: var(--c-FDE8EB); border-left: 4px solid var(--red); padding: .6rem .8rem; border-radius: 3px; font-weight: 600; margin: 0 0 .6rem; }
.mgr-mini { width: 100%; border-collapse: collapse; font-size: .85rem; margin: .4rem 0 .8rem; }
.mgr-mini th { text-align: left; font: 600 .68rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid var(--edge); padding: .35rem .4rem; }
.mgr-mini td { padding: .4rem; border-bottom: 1px solid var(--line); }
.mgr-h4 { font-size: .95rem; text-transform: none; margin: .9rem 0 .4rem; }
.mgr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.mgr-chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; font-size: .82rem; }
.mgr-chips li.is-pending { opacity: .65; }
.mgr-shares-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.mgr-shares { margin-top: 1.4rem; }
.mgr-shares .panel-head { display: flex; justify-content: space-between; align-items: center; }
.mgr-table small.mono { display: block; }

/* Signed in (bell + account), English: hamburger a little earlier too */
@media (min-width: 921px) and (max-width: 1080px) {
  html[lang="en"] body:has(.bell-wrap) .nav-toggle { display: inline-flex; }
  html[lang="en"] body:has(.bell-wrap) .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; border-bottom: 4px solid var(--red); }
  html[lang="en"] body:has(.bell-wrap) .nav.open { display: flex; }
  html[lang="en"] body:has(.bell-wrap) .site-header .wrap { position: relative; }
}
.mgr-shares .panel-head { padding: .8rem 1rem; margin: 0; }

/* ---------- Header fit: the AmeriAutoworx name never gets cut ---------- */
.site-header .wrap { max-width: 1440px; }
.brand { flex-shrink: 0; }
.brand-word { overflow: visible; }
/* "Join waitlist" lives in the menu (the yellow bar already links to it) */
@media (min-width: 921px) { .nav > .btn { display: none; } .nav.open > .btn { display: inline-flex; justify-content: center; } }
/* Medium screens: language, search and account as icons */
@media (min-width: 921px) and (max-width: 1599px) {
  .search-icon span, .acct-link span, .lang-btn span { display: none; }
  .search-icon, .acct-link, .lang-btn { width: 40px; height: 38px; padding: 0 !important; justify-content: center; }
  .bell-btn { width: 40px; height: 38px; }
}
/* Phones: language moves into the menu; compact buttons */
.nav-langs { display: none; }
@media (max-width: 920px) {
  .nav-langs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; padding: .7rem .8rem .3rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: .4rem; }
  .nav-langs a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0 !important; font-size: .88rem; color: #C9D3DE; box-shadow: none !important; }
  .nav-langs a[aria-current] { color: #fff; font-weight: 700; }
}
@media (max-width: 560px) {
  .header-tools > .lang-pick { display: none; }
  .header-tools { gap: .3rem; }
  .search-icon, .acct-link, .bell-btn, .nav-toggle { width: 34px !important; height: 34px !important; }
  .site-header .wrap { gap: .4rem; }
}
@media (max-width: 380px) { .brand-word { font-size: 1.02rem !important; } .brand svg { width: 24px; height: 24px; } }

/* ---------- Shared lists (v91) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ls-inv-panel { margin-bottom: 1.4rem; border-color: var(--red); }
.ls-avatar { background: var(--paper); font-size: 1.1rem; }
.ls-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ls-h { margin: 0; }
.ls-new { display: flex; gap: .5rem; flex: 1 1 360px; max-width: 520px; }
.ls-new input { flex: 1; min-width: 0; font: 1rem var(--font-body); padding: .65rem .8rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.ls-card { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.ls-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); }
.ls-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 9; background: var(--paper); }
.ls-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.ls-thumbs[data-n="1"] img { grid-column: 1 / -1; grid-row: 1 / -1; }
.ls-thumbs[data-n="2"] img { grid-row: 1 / -1; }
.ls-thumbs[data-n="3"] img:first-child { grid-row: 1 / -1; }
.ls-thumbs-empty { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; color: var(--steel); font-size: .9rem; }
.ls-card-body { padding: .9rem 1rem 1rem; display: grid; gap: .45rem; position: relative; }
.ls-card-body h3 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ls-card-body p { margin: 0; font-size: .9rem; }
.ls-new-badge { background: var(--red); color: #fff; font: 700 .72rem var(--font-body); padding: .15rem .45rem; border-radius: 99px; letter-spacing: 0; }
.ls-people-mini { display: flex; align-items: center; }
.ls-people-mini .fr-avatar { width: 28px; height: 28px; font-size: .78rem; border: 2px solid var(--card); margin-left: -6px; }
.ls-people-mini .fr-avatar:first-child { margin-left: 0; }
.ls-more { font-size: .8rem; color: var(--steel); margin-left: .35rem; }
.ls-card { position: relative; }
.ls-owner { position: absolute; top: .6rem; right: .6rem; font-size: .7rem; background: var(--card); color: var(--ink); z-index: 2; }
.ls-empty { background: var(--card); border: 2px dashed var(--line); border-radius: var(--r); padding: 1.4rem; max-width: 640px; }
.ls-empty p { margin: 0 0 .5rem; }
.ls-back { display: inline-block; margin-bottom: .8rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.ls-back:hover { color: var(--red); }
.ls-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ls-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); overflow-wrap: anywhere; }
.ls-head .muted { margin: .2rem 0 0; }
.ls-head-btns { display: flex; gap: .45rem; flex-wrap: wrap; }
.ls-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.6rem; align-items: start; }
.ls-side { display: grid; gap: 1.2rem; position: sticky; top: 90px; }
.ls-bar { margin-bottom: .9rem; }
.ls-items { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ls-item.is-new { box-shadow: 0 0 0 3px rgba(200, 16, 46, .25); }
.ls-new-tag { position: absolute; top: .55rem; right: .55rem; z-index: 2; background: var(--red); color: #fff; font: 700 .72rem var(--font-body); padding: .2rem .5rem; border-radius: 99px; }
.ls-item-foot { padding: .7rem 1rem .85rem; border-top: 1px solid var(--line); display: grid; gap: .45rem; }
.ls-note { margin: 0; font-style: italic; color: var(--ink); font-size: .92rem; overflow-wrap: anywhere; }
.ls-note.is-empty { display: none; }
.ls-note-edit { justify-self: start; font-size: .85rem; }
.ls-item-acts { display: flex; align-items: center; gap: .6rem; }
.ls-vote { display: inline-flex; align-items: center; gap: .35rem; border: 2px solid var(--line); background: var(--card); color: var(--steel); border-radius: 99px; padding: .3rem .7rem; font: 700 .9rem var(--font-body); cursor: pointer; }
.ls-vote:hover { border-color: var(--edge); color: var(--ink); }
.ls-vote.on { border-color: var(--red); background: var(--red); color: #fff; }
.ls-voters { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.ls-remove { margin-left: auto; font-size: .85rem; }
.fr-row.is-invited { opacity: .7; }
.wl-actions { padding: 0 1rem .9rem; }
.wl-card .wl-actions .btn { width: 100%; justify-content: center; }
/* "Add to a shared list" dialog */
.atl-car { font-weight: 700; color: var(--ink); }
.atl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; max-height: 300px; overflow: auto; }
.atl-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .8rem; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: .65rem .8rem; cursor: pointer; color: var(--ink); font: inherit; }
.atl-row:hover:not(:disabled) { border-color: var(--edge); }
.atl-row.on { border-color: var(--c-1B7A3E); background: var(--c-EEF8F1); cursor: default; }
.atl-name { font-weight: 700; display: grid; }
.atl-name small { font-weight: 400; color: var(--steel); font-size: .82rem; }
.atl-state { font-weight: 700; font-size: .88rem; white-space: nowrap; color: var(--red); }
.atl-row.on .atl-state { color: var(--c-1B7A3E); }
.atl-empty { color: var(--steel); font-size: .92rem; }
.atl-new { display: flex; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.atl-new input { flex: 1; min-width: 0; font: 1rem var(--font-body); padding: .55rem .7rem; border: 2px solid var(--line); border-radius: var(--r); }
.atl-note { width: 100%; }
.list-wide { margin-top: .5rem; }
@media (max-width: 980px) {
  .ls-layout { grid-template-columns: 1fr; }
  .ls-side { position: static; }
}
@media (max-width: 560px) {
  .ls-new { flex-basis: 100%; max-width: none; }
  .atl-new { flex-wrap: wrap; } .atl-new .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .ls-vote.pop svg { animation: heart-pop .5s var(--spring); }
  .ls-card { animation: card-in .35s var(--spring) both; }
}
.ls-remove, .ls-note-edit { color: var(--steel); text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; font-weight: 600; }
.ls-remove:hover { color: var(--red); } .ls-note-edit:hover { color: var(--ink); }
.ls-side .fr-person small { white-space: nowrap; }
#ls-sort { font: .9rem var(--font-body); padding: .4rem .6rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.ls-thumbs { grid-template-rows: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.ls-thumbs img { position: relative; }
@media (max-width: 560px) {
  .ls-new { flex: 1 1 100%; width: 100%; }
  .ls-new .btn { flex: none; padding-left: .9rem; padding-right: .9rem; }
  #ls-inv .fr-row { flex-wrap: wrap; }
  #ls-inv .fr-acts { width: 100%; padding-left: 3.1rem; }
}
/* v92: search first, then language, then the rest (all screen sizes); icon-only search on phones and tablets */
.header-tools > * { order: 3; }
.header-tools > .search-icon { order: 1; }
.header-tools > .lang-pick { order: 2; }
@media (max-width: 920px) {
  .search-icon span { display: none; }
  .search-icon { width: 38px; height: 38px; padding: 0 !important; justify-content: center; }
}
/* v94: keep the photo viewer exactly as wide as the screen. A long lot title used to stretch the grid,
   pushing the photo, the arrows and the Zoom / close buttons past the right edge on phones. */
.lightbox { grid-template-columns: minmax(0, 1fr); width: 100vw; max-width: 100%; }
.lightbox > * { min-width: 0; max-width: 100%; }
.lb-actions { flex-shrink: 0; }
@media (max-width: 600px) { .lb-title { font-size: .95rem; } .lb-top { gap: .6rem; padding: .6rem .8rem; } }

/* v95: "More filters" chips built from the loaded lots */
.more-filters { display: grid; gap: .9rem; padding-top: .2rem; }
.more-filters[hidden] { display: none; }
.chip-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.chip-group legend { padding: 0; margin-bottom: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font: 600 .84rem var(--font-body); color: var(--ink); cursor: pointer; user-select: none; transition: border-color .12s, background .12s; }
.chip:hover { border-color: var(--edge); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--night); border-color: var(--edge); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.chip-n { font: 500 .72rem var(--font-mono); color: var(--steel); }
.chip:has(input:checked) .chip-n { color: #AFC0D0; }
.chip-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex-shrink: 0; }
.chip-dot-other { background: conic-gradient(#b3202a, #f2d21b, #2e7d32, #1f5fbf, #b3202a); }
.chip:has(input:checked) .chip-dot { border-color: rgba(255,255,255,.7); }
/* v100: a long value (seller "North Carolina Farm Bureau Insurance") used to widen its card past the column,
   which also made the photo taller and pushed the text out of line. Cards now keep the column width and cut long values with "…". */
.lot-grid > * { min-width: 0; }
.lot-card, .lot-card-link, .lot-card-body { min-width: 0; }
.lot-facts li { min-width: 0; }
.lot-facts span { flex-shrink: 0; }
.lot-facts strong { min-width: 0; }
/* v101: titles never take more than 2 lines; the trim menu glows when the search is waiting for it */
.lot-card-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#f-trim.needs-pick { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
/* v102: filters open step by step (make → model → generation → trim), the rest once there are results */
.filters .is-off { opacity: .5; }
.filters .is-off, .filters .is-off * { cursor: not-allowed !important; }
.filters .is-off input[type="range"] { filter: grayscale(1); }
.filters .is-off .state-pick summary { color: var(--steel); background: var(--c-f3f4f6); }
.filters select:disabled, .filters input:disabled { background: var(--c-f3f4f6); }
.filters .is-off select:disabled { background: var(--card); }
/* v105: compact search header: one short band instead of a quarter of the screen */
.search-head { padding: .9rem 0 .8rem; }
.search-head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.1rem; row-gap: .2rem; }
.search-head .eyebrow { order: 2; margin: 0; }
.search-head h1 { order: 1; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; margin: 0; }
.search-head .lede { order: 3; flex-basis: 100%; margin: 0; font-size: .95rem; color: var(--steel); }
@media (max-width: 700px) { .search-head .eyebrow { display: none; } .search-head .lede { font-size: .88rem; } }
.search-head .lede, body.page-wide .search-head .lede { max-width: none; flex: 1 1 100%; }

/* v106: full screen search */
.results-bar { align-items: center; }
.fs-btn { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: .35rem .7rem; font: 600 .82rem var(--font-body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.fs-btn:hover { border-color: var(--edge); }
.quota + .fs-btn { margin-left: .8rem; }
.fs-strip { display: none; }
body.search-full .launch-bar, body.search-full .site-header, body.search-full .search-head, body.search-full .site-footer, body.search-full .app-banner { display: none !important; }
body.search-full .search-section { padding: 22px 0 24px; }
body.search-full .search-section > .wrap { max-width: none; padding-left: 18px; padding-right: 18px; }
body.search-full .filters { top: 18px; max-height: calc(100vh - 30px); }
body.search-full .fs-btn { display: none; }
body.search-full .fs-strip { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 7px; justify-content: center; align-items: center; background: var(--night); border-bottom: 2px solid var(--red); cursor: pointer; transition: height .18s ease; overflow: hidden; }
body.search-full .fs-strip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
body.search-full .fs-strip.open, body.search-full .fs-strip:focus-within { height: 42px; cursor: default; }
.fs-strip button { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: .3rem .9rem; font: 600 .85rem var(--font-body); cursor: pointer; opacity: 0; transition: opacity .15s; }
.fs-strip.open button, .fs-strip:focus-within button { opacity: 1; }
.fs-strip button:hover { background: rgba(255,255,255,.12); }
.fs-strip kbd { font: 600 .68rem var(--font-mono); border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 .3rem; opacity: .8; }
@media (max-width: 960px) { .fs-btn { display: none; } }

/* v108: slide photos on cards (phones) */
.lot-card-img { touch-action: pan-y; overflow: hidden; }
.lot-card-img img { will-change: transform; }
.card-idx { position: absolute; left: .5rem; bottom: .5rem; background: rgba(14,27,44,.78); color: #fff; font-size: .68rem; padding: .2rem .45rem; border-radius: 3px; z-index: 3; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.card-idx.show { opacity: 1; transition-duration: .12s; } /* shows while sliding, fades 1.5 s after */
.lot-card.is-ended .card-idx { bottom: 2.2rem; }

/* v108: photo viewer on a phone turned sideways: the photo takes the whole screen, controls float over it */
@media (orientation: landscape) and (max-height: 520px) {
  .lightbox { grid-template-rows: minmax(0, 1fr); }
  .lightbox .lb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: .35rem max(.8rem, env(safe-area-inset-right)) .35rem max(.8rem, env(safe-area-inset-left)); background: linear-gradient(rgba(0,0,0,.55), transparent); }
  .lightbox .lb-title { font-size: .85rem; }
  .lightbox .lb-stage { grid-row: 1; height: 100vh; height: 100dvh; }
  .lightbox .lb-stage img { max-width: 100%; max-height: 100%; border-radius: 0; box-shadow: none; }
  .lightbox .lb-strip { display: none; }
  .lightbox .lb-ctrl { position: absolute; left: 0; right: 0; bottom: max(.3rem, env(safe-area-inset-bottom)); z-index: 3; padding: 0; gap: .8rem; pointer-events: none; }
  .lightbox .lb-ctrl > * { pointer-events: auto; }
  .lightbox .lb-ctrl .lb-nav { width: 36px; height: 36px; opacity: .75; }
}

/* v108: lot page photos first. Desktop: the lot check sits under the photos (left column) */
.lot-main > .lot-check { margin-bottom: 0; }
@media (max-width: 960px) {
  .lot-detail-grid .gallery { order: 1; }
  .lot-detail-grid .lot-check { order: 2; }
  .lot-detail-grid .lot-side { order: 3; }
  .lot-detail-grid > div > .panel:not(.lot-check) { order: 4; }
}
@media (max-width: 640px) {
  /* Title, lot and VIN, then a slim auction line, then the photos right away */
  .lot-page .wrap > p:first-child { margin: 0 0 .2rem; font-size: .9rem; }
  .lot-detail-head { margin: .2rem 0 .7rem; gap: .5rem; }
  .lot-detail-head h1 { font-size: 1.7rem; line-height: 1.05; margin: .35rem 0 .2rem; }
  .lot-head-side { width: 100%; }
  .lot-head-side .print-btn { display: none; }
  .lot-countdown { padding: .45rem .8rem; }
  .lot-countdown strong { font-size: 1.15rem; }
  /* Photos edge to edge, thumbnails as a slim strip */
  .lot-page .gallery { margin: 0 calc(-1 * var(--gutter, 16px)); gap: .4rem; }
  .lot-page .gallery-main { border-left: 0; border-right: 0; border-radius: 0; aspect-ratio: 4 / 3; }
  .lot-page .gallery-thumbs { padding: 0 var(--gutter, 16px) .2rem; }
  .lot-page .gallery-thumbs img, .lot-page .gallery-thumbs button { width: 64px; height: 48px; flex: 0 0 auto; }
}
/* v109: card photo strip (prev · current · next) that follows the finger */
.card-track { position: absolute; inset: 0; display: flex; transform: translate3d(-100%, 0, 0); will-change: transform; }
.card-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-card-img img { will-change: auto; }
/* v114: the hamburger menu opens as a white card, same look as the account and notification menus */
html body .site-header .nav.open {
  top: calc(100% + 8px); left: auto; right: clamp(12px, 4vw, 36px); width: min(290px, calc(100vw - 16px));
  background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--red); padding: .4rem 0; gap: 0; z-index: 60; transform-origin: top right;
  max-height: calc(100dvh - 140px); overflow-y: auto;
}
html body .site-header .nav.open > a:not(.btn) { color: var(--ink); font: 600 .95rem var(--font-body); padding: .6rem 1rem; border-radius: 0; }
html body .site-header .nav.open > a:not(.btn):hover, html body .site-header .nav.open > a:not(.btn):focus { background: var(--c-F3F5F7); color: var(--ink); outline: none; }
html body .site-header .nav.open > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
html body .site-header .nav.open .btn { margin: .5rem 1rem .4rem; text-align: center; }
html body .site-header .nav.open .nav-langs { border-top: 1px solid var(--line); margin-top: .3rem; padding: .6rem 1rem .3rem; }
html body .site-header .nav.open .nav-langs a { color: var(--steel); }
html body .site-header .nav.open .nav-langs a:hover, html body .site-header .nav.open .nav-langs a[aria-current] { color: var(--ink); background: none; }
/* v122: account icon bar, part of the page (light), fixed just under the header while scrolling */
.acct-headbar { padding-bottom: 1.4rem !important; }
.acct-out { margin-top: .9rem; }
.acct-bar { position: sticky; top: var(--hdr, 64px); z-index: 17; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(14,27,44,.06); }
.acct-bar .wrap { display: flex; justify-content: flex-start; gap: 0; padding-top: .25rem; padding-bottom: 0; }
.acct-bar a { position: relative; display: grid; justify-items: center; align-content: center; gap: .2rem; flex: 0 0 104px; padding: .45rem 0 .5rem;
  color: var(--steel); text-decoration: none; font: 600 .7rem/1.1 var(--font-body); text-align: center; white-space: nowrap; }
.acct-bar a[hidden] { display: none; }
.acct-bar a svg { width: 21px; height: 21px; }
.acct-bar a:hover { color: var(--ink); }
.acct-bar a[aria-current="page"] { color: var(--ink); }
/* the red line is exactly as long as the name, centred under it, inside its own (equal-width) section */
.acct-bar a span { position: relative; }
.acct-bar a[aria-current="page"] span::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-.5rem - 1px); height: 3px; border-radius: 3px 3px 0 0; background: var(--red); }
.acct-bar a[aria-current="page"] svg { color: var(--red); }
.acct-bar .menu-badge { position: absolute; top: .15rem; left: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font: 700 .6rem/16px var(--font-body); box-shadow: 0 0 0 2px var(--card); }
.acct-bar .menu-badge[hidden] { display: none; }
@media (max-width: 620px) {
  .acct-bar .wrap { gap: 0; padding-left: 4px; padding-right: 4px; }
  .acct-bar a { flex: 1 1 0; min-width: 0; padding: .45rem 0 .5rem; font-size: .62rem; } /* every section the same width */
  .acct-bar:has(#acct-tab-admin:not([hidden])) a { font-size: .56rem; letter-spacing: -.01em; } /* admins get a 7th section: slightly smaller names so all fit */
}
@media (max-width: 374px) {
  .acct-bar .wrap { padding-left: 0; padding-right: 0; }
  .acct-bar:has(#acct-tab-admin:not([hidden])) a { font-size: .52rem; letter-spacing: -.02em; }
}

/* v131: theme switch with three stops: Dark (left) · Auto (middle, default) · Light (right). Tap a stop or slide the knob */
.theme-pick { display: flex; align-items: center; gap: .6rem; font: 600 .82rem var(--font-body); }
.theme-switch { position: relative; display: inline-grid; grid-template-columns: repeat(3, 34px); height: 32px; padding: 2px; border-radius: 999px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); touch-action: none; user-select: none; -webkit-user-select: none; }
.theme-switch button { position: relative; z-index: 1; display: grid; place-items: center; border: 0; background: none; padding: 0; color: var(--steel); cursor: pointer; border-radius: 999px; }
.theme-switch button[aria-checked="true"] { color: #fff; }
.ts-auto { font: 800 .8rem var(--font-body); }
.ts-knob { position: absolute; top: 2px; left: 2px; width: 34px; height: 28px; border-radius: 999px; background: var(--red); box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.theme-switch[data-pos="auto"] .ts-knob { transform: translateX(34px); }
.theme-switch[data-pos="light"] .ts-knob { transform: translateX(68px); }
.theme-switch.dragging .ts-knob { transition: none; }
.theme-now { min-width: 3.2em; color: inherit; }
.nav-theme { display: none; }
.site-header .nav.open .nav-theme { display: flex; color: var(--steel); padding: .65rem 1rem; border-top: 1px solid var(--line); margin-top: .3rem; }
html body .site-header .nav.open .nav-theme + .nav-langs { margin-top: 0; } /* the theme row sits exactly between its two lines */
.foot-theme { color: #C9D3DE; margin: 0; padding: 1rem 0; } /* same space above and below, between the two footer lines */
.foot-theme .theme-switch { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.foot-theme .theme-switch button { color: #9FB0C3; }
.foot-theme .theme-switch button[aria-checked="true"] { color: #fff; }

/* v129: night theme for OLED screens: true black page, near-black cards, soft grey edges, same red */
@media screen {
  :root[data-theme="dark"] {
    --paper: #000000;
    --card: #0C0E11;
    --ink: #E8ECF1;
    --steel: #97A3B2;
    --line: #262C34;
    --red: #D7193A;
    --red-ink: #FF6B7D;
    --navy-2: #C3CCD6;   /* secondary text */
    --night: #2A313B;
    --edge: #3A434F;
    --soft: #14181D;
  --c-145C2E: #4CC97A;
  --c-16A34A: #3ED07A;
  --c-1A55B0: #82B1FF;
  --c-1B7A3E: #4CC97A;
  --c-1E4C8A: #82B1FF;
  --c-556273: #8F9BAA;
  --c-7A5300: #F2C14E;
  --c-8A1F1F: #FF8C8C;
  --c-8A5A00: #F2C14E;
  --c-A9DDBC: #1E4A2E;
  --c-B42318: #FF7B7B;
  --c-B45309: #F59E4B;
  --c-B7CDEB: #23406B;
  --c-DCE1E6: #1C2128;
  --c-DCE3EA: #1C2128;
  --c-DDF5E5: #0D2417;
  --c-E3E7EC: #1C2128;
  --c-E3ECFA: #0E1A2E;
  --c-E4EAF0: #1C2128;
  --c-E7EEFA: #0E1A2E;
  --c-E8B923: #7A5F14;
  --c-E9F6EE: #0D2417;
  --c-EAF1FB: #0E1A2E;
  --c-EEF0F3: #14181D;
  --c-F2B8B8: #5C2229;
  --c-F2F6FC: #0B1524;
  --c-F3F5F7: #14181D;
  --c-FDE2E5: #2A0F14;
  --c-FDE8EB: #2A0F14;
  --c-FDECEC: #2A0F14;
  --c-FFF1CC: #2A2108;
  --c-FFF1D6: #2A2108;
  --c-FFF4CC: #2A2108;
  --c-FFF5F6: #1F0B0F;
  --c-FFF6D6: #2A2108;
  --c-FFF8E1: #221B07;
  --c-f3f4f6: #14181D;
    --c-F0C77E: #6B5412;
    --c-7A3E06: #F2B45A;
    --c-F2A9B4: #5C2229;
    --c-B5C9EC: #23406B;
    --c-123F86: #82B1FF;
    --c-E2F3E8: #0D2417;
    --c-E3E8EE: #1C2128;
    --c-EEF2F6: #14181D;
    --c-EEF8F1: #0D2417;
    --c-F6F8FA: #14181D;
    --c-FCF3F4: #1F0B0F;
    --c-FFF7D6: #2A2108;
    --c-FFF7E6: #221B07;
    --c-FFFBEB: #221B07;
    --c-26313F: #D3DAE2;
    --c-2F6B45: #6FD69A;
    --c-3D4A5C: #B5BFCB;
    --c-4A2504: #FFB37A;
    --c-6B4E00: #F2C14E;
    --c-B3122A: #FF7B8A;
    color-scheme: dark;
  }
  :root[data-theme="dark"] body { background: #000; }
  :root[data-theme="dark"] .site-header { background: #000; }
  :root[data-theme="dark"] .site-footer { background: #000; border-top: 1px solid var(--line); }
  :root[data-theme="dark"] .band-ink, :root[data-theme="dark"] .contact-card, :root[data-theme="dark"] .lot-head,
  :root[data-theme="dark"] .est-out, :root[data-theme="dark"] .bp-out, :root[data-theme="dark"] .bp-total, :root[data-theme="dark"] .pay-head { background: #101419; }
  :root[data-theme="dark"] .launch-bar, :root[data-theme="dark"] .launch-bar a { color: #0E1B2C; }
  :root[data-theme="dark"] .launch-bar .mono { background: #0E1B2C; }
  :root[data-theme="dark"] input:not(:disabled), :root[data-theme="dark"] select:not(:disabled), :root[data-theme="dark"] textarea:not(:disabled) { background-color: #0C0E11; color: var(--ink); }
  /* fields that are not open yet look switched off, like in the light theme */
  :root[data-theme="dark"] input:disabled, :root[data-theme="dark"] select:disabled, :root[data-theme="dark"] textarea:disabled { background-color: #07080A; color: #59636F; border-color: #1C2128; }
  :root[data-theme="dark"] ::placeholder { color: #6B7684; }
  :root[data-theme="dark"] img { color-scheme: normal; }
}

/* v134: on phones the app screens (search, lot, account, admin) have no site footer, like an app */
@media (max-width: 760px) {
  body.app-screen .site-footer { display: none; }
  body.app-screen main { padding-bottom: env(safe-area-inset-bottom); }
}

/* v136: phones: compact page titles on the app screens (the icon bar already says where you are) */
.acct-out-row { margin: 1.6rem 0 .6rem; }
@media (max-width: 760px) {
  body.app-screen .page-head, body.app-screen .search-head { padding: .85rem 0 .75rem !important; }
  body.app-screen .page-head .wrap, body.app-screen .search-head .wrap { gap: .15rem; }
  body.app-screen .page-head .eyebrow, body.app-screen .search-head .eyebrow { display: none; }
  body.app-screen .page-head h1, body.app-screen .search-head h1 { font-size: 2rem; line-height: 1.05; }
  body.app-screen .page-head p.muted, body.app-screen .search-head .lede { display: none; }
  body.app-screen .acct-headbar.is-overview .m-sub { display: block; font-size: .85rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* v137: phones: only Overview keeps its title block; on the other account sections (and Admin) the icon bar already names the page */
@media (max-width: 760px) {
  body.app-screen:has(.acct-bar) .page-head:not(.is-overview) { display: none; }
}
/* v139: Search lots stays off until a make or a VIN / lot / keyword is given */
.filters button[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }

/* v143: "Advanced filters" fold in the search form (everything after the years); Search stays close by */
.adv-filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: .2rem 0; }
.adv-filters > summary { list-style: none; display: flex; align-items: center; gap: .5rem; padding: .8rem 0; cursor: pointer; font-weight: 700; color: var(--ink); -webkit-user-select: none; user-select: none; }
.adv-filters > summary::-webkit-details-marker { display: none; }
.adv-filters .adv-chev { margin-left: auto; transition: transform .25s cubic-bezier(.2,.7,.2,1); color: var(--steel); }
.adv-filters[open] .adv-chev { transform: rotate(90deg); }
.adv-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.adv-count[hidden] { display: none; }
.adv-body { display: grid; gap: inherit; padding: 0 0 1rem; }
.filters .adv-body { gap: .9rem; }
@media (prefers-reduced-motion: no-preference) { .adv-filters[open] .adv-body { animation: adv-in .28s cubic-bezier(.2,.7,.2,1); } }
@keyframes adv-in { from { opacity: 0; transform: translateY(-6px); } }
/* v144: the first label's line box adds ~7px of air above the letters: trim it so the filter box looks even on top, sides and bottom */
.filters { padding-top: calc(1.2rem - 7px); }

/* v149: sales history: "this lot" runs get a red edge and a small tag; on phones each run is a two-line row (no sideways scroll) */
.hist-table tr.is-this td { background: var(--soft); }
.hist-table tr.is-this td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.hist-this { display: inline-block; margin-left: .45rem; padding: .05rem .4rem; border-radius: 3px; background: var(--red); color: #fff; font: 700 .62rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
@media (max-width: 620px) {
  .hist-table-wrap { overflow: visible; }
  .hist-table, .hist-table tbody { display: block; }
  .hist-table thead { display: none; }
  .hist-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .6rem .6rem; border-bottom: 1px solid var(--line); }
  .hist-table tr.is-this { background: var(--soft); box-shadow: inset 3px 0 0 var(--red); }
  .hist-table tr.is-this td, .hist-table tr.is-this td:first-child { background: none; box-shadow: none; }
  .hist-table td { padding: 0; border: 0; white-space: nowrap; }
  .hist-table td:nth-child(1) { order: 1; }
  .hist-table td:nth-child(2) { order: 2; font-size: .85rem; }
  .hist-table td:nth-child(4) { order: 3; margin-left: auto; }
  .hist-table tr::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
  .hist-table td:nth-child(3) { order: 5; font-size: .78rem; }
  .hist-table td:nth-child(5) { order: 6; font-size: .78rem; color: var(--steel); }
  .hist-table td:nth-child(6) { order: 7; }
  .hist-table td:nth-child(7) { order: 8; font-size: .78rem; color: var(--steel); white-space: normal; }
  .hist-table td:nth-child(8) { order: 9; font-size: .78rem; }
  .hist-table td:empty, .hist-table td.hist-none { display: none; } /* no dashes for missing data on phones */
  .hist-table .pill { font-size: .62rem; padding: .12rem .45rem; }
  .hist-table .hist-status { font-size: .7rem; padding: .08rem .4rem; }
}

/* v150: "Below a past bid" chip on cards (Buy Now at or under a bid this lot already got) */
.deal-bid { background: var(--c-DDF5E5); color: var(--c-1B7A3E); box-shadow: inset 0 0 0 1px var(--c-A9DDBC); }
/* v154: "Estimate my fee" lands with the whole calculator box just under the sticky header */
#estimate { scroll-margin-top: calc(var(--hdr, 64px) + 16px); }
/* v156: phones, app screens: the header (and the account icon bar) slide away while scrolling down and come back on the first move up */
@media (max-width: 760px) {
  body.app-screen .site-header, body.app-screen .acct-bar { transition: transform .26s cubic-bezier(.2,.7,.2,1); }
  html.hdr-hide body.app-screen .site-header { transform: translateY(-100%); }
  html.hdr-hide body.app-screen .acct-bar { transform: translateY(calc(-100% - var(--hdr, 64px))); }
}
/* v158: shared links use the search card; the estimated total sits under the price row */
.share-total { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .5rem .7rem; border: 1px dashed var(--line); border-radius: 8px; }
.share-total .label { font-size: .72rem; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
/* Same card width as the search results, so the price row (Buy Now + deal chip + auction) fits */
.share-grid, .wl-grid, .ls-items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
/* Phones: the watchlist filters never push the page sideways; the count stays on one line */
@media (max-width: 900px) { .wl-layout { grid-template-columns: minmax(0, 1fr); } }
.wl-filters select { min-width: 0; }
#wl-count, #ls-count { white-space: nowrap; }
.wl-bar { flex-wrap: wrap; }
/* Watchlist: "Share list" sits right before Full screen */
.results-bar .wl-share { margin-left: auto; }
.results-bar .wl-share + .fs-btn { margin-left: 0; }

/* v161: share one car. Cards: round button between Compare and the heart; lot page: on the photo and in the Bidding panel */
.share-btn { display: inline-grid; place-items: center; cursor: pointer; padding: 0; color: #fff; }
.share-card-btn { position: absolute; top: .5rem; right: .5rem; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(14,27,44,.72); border: 1px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lot-card:has(.fav-card) .share-card-btn { right: 2.9rem; }
.lot-card:has(.share-card-btn) .compare-chip { right: 2.9rem; }
.lot-card:has(.share-card-btn):has(.fav-card) .compare-chip { right: 5.3rem; }
.share-card-btn:active, .g-share:active { transform: scale(.92); }
.gallery { position: relative; }
.g-share { position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(14,27,44,.72); border: 1px solid rgba(255,255,255,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.g-share svg { width: 20px; height: 20px; }
.share-wide { width: 100%; margin-top: .6rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ink); }
.share-wide svg { color: var(--red); }
.share-hint { margin: .35rem 0 0; text-align: center; }

/* v163: share sheet. Compact everywhere; on phones a bottom sheet that slides up (swipe down or tap outside to close) */
.sheet-grip { display: none; }
.share-sheet .pay-head { padding: .7rem 1rem; }
.share-sheet .pay-head h2 { font-size: 1.2rem; }
.share-sheet .pay-x { width: 30px; height: 30px; font-size: .85rem; }
.share-sheet .pay-body { padding: .9rem 1rem 1rem; gap: .7rem; }
.share-sheet .pay-foot { padding: 0 1rem .9rem; }
.share-what { margin: 0; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-sheet .pay-note { margin: 0; font-size: .82rem; color: var(--steel); }
.share-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: .4rem; margin-top: .2rem; }
.share-tile { display: grid; justify-items: center; gap: .3rem; padding: .2rem 0; border: 0; background: none; color: var(--ink); text-decoration: none; font: 600 .72rem var(--font-body); cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
.st-ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); transition: transform .12s ease; }
.st-ic svg { width: 24px; height: 24px; }
.share-tile:active .st-ic { transform: scale(.9); }
.st-share .st-ic { background: var(--red); border-color: var(--red); color: #fff; }
.st-wa .st-ic { background: #25D366; border-color: #25D366; color: #fff; }
.st-sms .st-ic { background: #34C759; border-color: #34C759; color: #fff; }
.st-lb { line-height: 1.15; max-width: 72px; }
.share-friends-chips { margin-top: .3rem; padding-top: .8rem; gap: .5rem; }
.share-friends-chips h3 { font-size: .95rem; }
.share-friends-chips .share-friend-list { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 112px; }
.share-friends-chips .share-friend { position: relative; display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .35rem .7rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; cursor: pointer; }
.share-friends-chips .share-friend input { position: absolute; opacity: 0; pointer-events: none; }
.share-friends-chips .share-friend small { color: var(--steel); font-size: .72rem; }
.share-friends-chips .share-friend:has(input:checked) { border-color: var(--red); background: var(--red); color: #fff; }
.share-friends-chips .share-friend:has(input:checked) small { color: rgba(255,255,255,.8); }
.share-friends-chips .share-friend:has(input:checked)::before { content: "✓"; font-weight: 800; }
.share-friends-chips .share-send-row { display: flex; gap: .5rem; align-items: stretch; }
.share-friends-chips .share-send-row .share-note { flex: 1; min-width: 0; margin: 0; padding: .5rem .7rem; font-size: .9rem; }
.share-friends-chips .share-sent { font-size: .82rem; color: var(--steel); min-height: 0; }
.share-friends-chips .share-sent:empty { display: none; }
@media (max-width: 600px) {
  .pay-dialog.is-sheet { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; height: auto; max-height: 88vh; margin: 0; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.35); padding-bottom: env(safe-area-inset-bottom); transition: transform .22s cubic-bezier(.2,.7,.2,1); }
  .pay-dialog.is-sheet[open] { animation: sheet-up .28s cubic-bezier(.2,.8,.2,1); }
  .pay-dialog.is-sheet.sheet-out { transform: translateY(100%) !important; }
  .pay-dialog.is-sheet .sheet-grip { display: block; position: absolute; top: 6px; left: 50%; z-index: 3; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255,255,255,.45); }
  .pay-dialog.is-sheet .pay-head { border-radius: 18px 18px 0 0; padding-top: 1.1rem; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .pay-dialog.is-sheet[open] { animation: none; } }

/* v164: share in the photo viewer (round, next to Zoom) and at the top of the lot page in the auction's own colour */
.lb-share { display: inline-grid; place-items: center; padding: 0; align-self: stretch; aspect-ratio: 1; min-width: 2.3rem; border-radius: 50%; }
.lb-share svg { width: 17px; height: 17px; }
.lb-share[hidden] { display: none; }
.g-share { display: none !important; }
.lot-head-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.lot-share-top { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .95rem .42rem .8rem; border: 0; border-radius: 999px; background: var(--side, var(--red)); color: #fff; font: 700 .85rem var(--font-body); letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--side, #D2202F) 22%, transparent), 0 6px 18px color-mix(in srgb, var(--side, #D2202F) 40%, transparent); transition: transform .12s ease, box-shadow .2s ease; }
.lot-share-top svg { width: 16px; height: 16px; }
.lot-share-top:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px color-mix(in srgb, var(--side, #D2202F) 28%, transparent), 0 8px 22px color-mix(in srgb, var(--side, #D2202F) 50%, transparent); }
.lot-share-top:active { transform: scale(.95); }
@media (prefers-reduced-motion: no-preference) {
  .lot-share-top { animation: share-glow 2.6s ease-in-out 1s 2; }
  @keyframes share-glow { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--side, #D2202F) 12%, transparent), 0 6px 22px color-mix(in srgb, var(--side, #D2202F) 55%, transparent); } }
}
@media (min-width: 761px) { .lot-head-top { justify-content: flex-start; } }
/* Phones: the title block takes the whole width, so Share sits on the right edge */
@media (max-width: 760px) { .lot-head-main { flex: 1 1 100%; min-width: 0; } }

/* v166: back to the list the lot came from: a pill in the page's style, with the auction's colour */
.back-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .9rem .38rem .45rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .88rem var(--font-body); text-decoration: none; transition: border-color .15s ease, transform .12s ease; }
.back-pill svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--side, var(--night)); color: #fff; flex: none; }
.back-pill:hover { border-color: var(--side, var(--ink)); }
.back-pill:active { transform: scale(.96); }
/* The arrow circle fills the pill's whole height and left corner */
.back-pill { box-sizing: border-box; height: 2.4rem; padding: 0 1rem 0 0; gap: .55rem; overflow: hidden; }
.back-pill svg { box-sizing: border-box; width: 2.4rem; height: 2.4rem; padding: .6rem; margin: 0 0 0 -1.5px; }
.back-pill { overflow: visible; }
.back-pill svg { margin: -1.5px 0 -1.5px -1.5px; }
