
:root {
  --primary: #e57255;
  --primary-rgb: 229, 114, 85;
  --bg: #fffdfa;
  --card: #fffdfa;
  --fg: #282624;
  --muted: #67625d;
  --surface: #f6f3ef;
  --border: #e6e0da;
  --live: #009f31;
  --sidebar: #fbfaf7;
  --top-wash: rgba(229, 114, 85, 0.14);
  --radius: 0.875rem;
  --radius-xl: 1rem;
  --shadow: 0 1px 2px rgba(40,38,36,.04), 0 8px 24px rgba(40,38,36,.04);
  --font: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-bg: rgba(255,253,250,.92);
  --input-bg: #f6f3ef;
  --claim-disabled: rgba(229, 114, 85, 0.38);
}
html.dark {
  --bg: #1a1512;
  --card: #231e1b;
  --fg: #f5f1ec;
  --muted: #a39e98;
  --surface: #231e1b;
  --border: #3a332e;
  --sidebar: #231e1b;
  --top-wash: rgba(229, 114, 85, 0.18);
  --header-bg: rgba(26,21,18,.92);
  --input-bg: #2a2420;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.25);
  --claim-disabled: rgba(229, 114, 85, 0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 8px 0; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; color: var(--fg); flex-shrink: 0; }
.brand:hover { color: var(--fg); }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px 5px 10px;
  color: var(--muted); font-size: .78rem; white-space: nowrap; min-width: 0;
}
.live-pill .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(0,159,49,.45);
  animation: pulse 1.6s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,159,49,.45); }
  70% { box-shadow: 0 0 0 7px rgba(0,159,49,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,159,49,0); }
}
.live-pill a { color: var(--primary); font-weight: 600; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav a { color: var(--muted); font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--fg); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.icon-btn:hover { color: var(--fg); border-color: var(--primary); }

.cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: transparent; color: var(--fg);
  border-radius: 999px; padding: 7px 14px; font-size: .86rem;
  white-space: nowrap; cursor: pointer; font-weight: 500;
}
.pill:hover { border-color: rgba(var(--primary-rgb), .45); }
.pill.active {
  background: rgba(var(--primary-rgb), 0.16); border-color: transparent;
  color: var(--primary); font-weight: 700;
}
.pill.solid {
  background: var(--primary); color: #fff; border-color: transparent; font-weight: 700;
}

.hero { text-align: center; padding: 26px 0 6px; }
.scope {
  display: inline-flex; gap: 8px; margin-bottom: 16px;
}
.scope .pill { min-width: 88px; justify-content: center; }
.scope .pill.active {
  background: var(--primary); color: #fff; border-color: transparent;
}
.scope .pill:not(.active) {
  background: transparent; color: var(--muted); border-color: var(--border);
}
.hero-title {
  font-size: clamp(1.55rem, 3.8vw, 2.2rem); font-weight: 700; letter-spacing: -.03em;
  margin: 0 0 18px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.hero-title .price { color: var(--primary); font-weight: 800; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.step-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(var(--primary-rgb), 0.15); color: var(--primary);
  cursor: pointer; font-size: 1.05rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.step-btn:hover { background: rgba(var(--primary-rgb), 0.28); }

.claim-row {
  display: flex; gap: 10px; align-items: stretch; max-width: 860px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.claim-row .field {
  flex: 1 1 280px; display: flex; align-items: center; gap: 8px;
  background: var(--input-bg); border-radius: var(--radius);
  padding: 0 14px; min-height: 50px; border: 1px solid var(--border);
}
.claim-row .field:focus-within { border-color: rgba(var(--primary-rgb), .55); background: var(--card); }
.claim-row .field input, .claim-row .field select {
  border: 0; background: transparent; outline: none; width: 100%;
  font-size: .95rem; color: var(--fg); font-family: inherit;
}
.claim-row .cat-field { flex: 0 1 190px; }
.btn-claim {
  flex: 0 0 auto; min-width: 120px; height: 50px; padding: 0 22px;
  background: var(--claim-disabled); color: #fff; border: 0;
  border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: background .15s ease;
}
.btn-claim.enabled { background: var(--primary); }
.btn-claim.enabled:hover { filter: brightness(1.05); }
.hint { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }

.layout {
  display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px;
  margin-top: 28px; align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static !important; order: -1; }
  .live-pill span.txt { display: none; }
  .live-pill { padding: 5px 8px; }
}

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
}
.rank-row.top {
  background: var(--top-wash);
  border-bottom-color: transparent;
  margin-bottom: 8px;
  grid-template-columns: 52px 72px minmax(0, 1fr);
}
.rank-row:not(.top) {
  grid-template-columns: 52px 56px minmax(0, 1fr);
}
.rank-row:not(.top):hover { background: rgba(var(--primary-rgb), 0.04); }
.rank-num {
  font-family: var(--mono); font-weight: 700; font-size: 1.1rem;
  color: var(--muted); padding-top: 4px;
}
.rank-row.top .rank-num { color: var(--primary); font-size: 1.2rem; }
.logo {
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--fg); overflow: hidden;
  border: 1px solid rgba(40,38,36,.08);
  flex-shrink: 0; font-size: 1.1rem;
  box-shadow: 0 1px 2px rgba(40,38,36,.05), 0 4px 14px rgba(40,38,36,.06);
}
.rank-row.top .logo {
  width: 70px; height: 70px; border-radius: 16px; font-size: 1.35rem;
  box-shadow: 0 2px 4px rgba(40,38,36,.06), 0 8px 22px rgba(40,38,36,.08);
}
.logo img, .logo .logo-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  padding: 8px; box-sizing: border-box;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  filter: saturate(1.1) contrast(1.06) brightness(1.02);
}
html.dark .logo {
  background: #2a2420;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 4px 14px rgba(0,0,0,.2);
}
.info { min-width: 0; position: relative; z-index: 2; pointer-events: none; }
.title-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start;
}
.title {
  font-weight: 700; font-size: 1.02rem; color: var(--fg); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.blurb {
  margin: 4px 0 6px; color: var(--muted); font-size: .9rem; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.info .meta {
  margin: 0; font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.info .meta .dot::before { content: "·"; margin-right: 6px; color: #c4beb6; }
.info .meta a.details {
  position: relative; z-index: 3; color: var(--primary); font-weight: 600;
  pointer-events: auto;
}
.info .meta a.details:hover { text-decoration: underline; }
.bid-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 110px; position: relative; z-index: 3; }
.bid { color: var(--primary); font-weight: 800; font-size: 1.12rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Keep hover pill out of flow so it never expands title-row / pushes blurb */
.outbid-pill {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 4;
  display: inline-flex; font-size: .72rem; font-weight: 700; color: #fff;
  background: var(--primary); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .12s ease;
}
.rank-row:hover .outbid-pill { opacity: 1; visibility: visible; pointer-events: auto; }
.row-hit {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

.divider-pill {
  display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .78rem; font-weight: 700;
}
.divider-pill::before, .divider-pill::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.divider-pill span {
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; background: var(--card);
}

.activity {
  margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-xl); background: var(--surface);
}
.activity h3 { margin: 0 0 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.activity-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 10px 4px 4px; font-size: .78rem; color: var(--muted);
}
.chip .mini {
  width: 22px; height: 22px; border-radius: 8px; background: #fff; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
  border: 1px solid rgba(40,38,36,.06);
}
html.dark .chip .mini { background: #2a2420; border-color: rgba(255,255,255,.08); }
.chip .mini img {
  width: 100%; height: 100%; object-fit: contain; padding: 2px; box-sizing: border-box;
  image-rendering: -webkit-optimize-contrast; filter: saturate(1.08) contrast(1.04);
}
.chip .amt { color: var(--primary); font-weight: 700; }

.side { position: sticky; top: 72px; }
.side-card {
  background: var(--sidebar); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 14px; box-shadow: var(--shadow);
}
.side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.side-head h2 { margin: 0; font-size: .95rem; }
.side-head a { font-size: .8rem; color: var(--primary); font-weight: 600; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  display: grid; grid-template-columns: 28px 22px 1fr auto; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .86rem;
}
.side-list li:last-child { border-bottom: 0; }
.side-list .num { font-family: var(--mono); font-weight: 700; color: var(--muted); font-size: .82rem; }
.side-list .logo { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.side-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.side-list .bid { font-size: .88rem; }

.pager {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 22px 0 8px; color: var(--muted); font-size: .85rem;
}
.pager .pages { display: flex; gap: 6px; align-items: center; }
.pager .pg {
  width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); font-weight: 600; font-size: .85rem;
}
.pager .pg.active { background: var(--primary); color: #fff; border-color: transparent; }

.stats-block {
  background: var(--surface); border-radius: calc(var(--radius-xl) + 4px);
  padding: 28px 22px; margin: 36px 0 16px;
}
.stats-block .intro { text-align: center; margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.stats-block .intro strong { color: var(--primary); font-weight: 700; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.stat {
  background: var(--card); border-radius: var(--radius-xl); padding: 18px 14px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat .v {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.stat .v .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.stat .v .cash { color: var(--primary); font-weight: 800; }
.stat .l { color: var(--muted); font-size: .85rem; margin-top: 4px; }
@media (max-width: 640px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px) + 16px);
    padding-right: max(16px, env(safe-area-inset-right, 0px) + 12px);
  }
  .top .bar { padding-left: 4px; }
  .brand { margin-left: 0; padding-left: 2px; }
  .stats { grid-template-columns: 1fr; }
  .rank-row, .rank-row.top, .rank-row:not(.top) { grid-template-columns: 36px 48px minmax(0,1fr); }
  .rank-row.top .logo { width: 48px; height: 48px; border-radius: 12px; }
  .logo { width: 48px; height: 48px; }
  .title-row { grid-template-columns: 1fr; }
  .bid-col { align-items: flex-start; }
  .nav a { display: none; }
  .nav a.keep { display: inline; }
}

.foot {
  padding: 18px 0 40px; color: var(--muted); font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.foot a { color: var(--primary); font-weight: 600; }
.foot nav { display: flex; gap: 12px; flex-wrap: wrap; }

.flash {
  margin: 12px auto 0; max-width: 820px; padding: 10px 14px; border-radius: 10px; font-size: .92rem;
}
.flash.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
html.dark .flash.ok { background: #052e1c; color: #86efac; border-color: #166534; }
html.dark .flash.error { background: #3f1212; color: #fecaca; border-color: #7f1d1d; }

.page { max-width: 720px; margin: 28px auto 40px; }
.page h1 { font-size: 1.55rem; margin: 0 0 16px; }
.page h3 { margin: 18px 0 6px; }
.page ul { padding-left: 1.2em; }
.page p, .page li { color: var(--muted); }
.page p strong, .page li { color: var(--fg); }
.card-box {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 22px; background: var(--card); box-shadow: var(--shadow);
}
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; }
.dl dt { color: var(--muted); }
.dl .big { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.placeholder {
  margin: 16px 0; padding: 14px; border: 1px dashed var(--border);
  border-radius: 10px; background: var(--surface);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); padding: 10px 18px; border: 1px solid var(--border);
  background: var(--card); font-weight: 600; cursor: pointer; font-size: .95rem; color: var(--fg);
}
.btn.primary { background: var(--primary); color: #fff; border-color: transparent; }
.btn.ghost { margin-top: 10px; }
.ico { opacity: .55; flex-shrink: 0; }

.listing-detail .ld-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.listing-detail .ld-head .logo { width: 72px; height: 72px; border-radius: 16px; }
.listing-detail h1 { margin: 0 0 4px; font-size: 1.35rem; }
.listing-detail .ld-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.listing-detail .ld-blurb { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.listing-detail .ld-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.listing-detail .ld-actions .ghost { margin-top: 0; }

/* —— Product / listing detail (outbid-style) —— */
.product-page {
  max-width: 820px;
  margin: 18px auto 48px;
  padding-bottom: 24px;
}
.prod-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  margin: 8px 0 18px;
}
.prod-back:hover { color: var(--primary); }

.prod-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.prod-hero .logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}
.prod-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.prod-meta {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}
.prod-meta a { color: var(--primary); font-weight: 600; }
.prod-meta .sep { margin: 0 8px; color: #c4beb6; }

.prod-blurb {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 62ch;
}

.prod-bid-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: var(--top-wash);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  margin-bottom: 18px;
}
.prod-bid-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.prod-bid-amt {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.prod-bid-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}
.prod-bid-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.prod-cta {
  min-width: 160px;
  height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff !important;
}
.prod-open {
  height: 52px;
  padding: 0 18px;
  background: var(--card);
}

.prod-rank-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.prod-rank-card {
  display: block;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.prod-rank-card:hover {
  border-color: rgba(var(--primary-rgb), .45);
  color: inherit;
  transform: translateY(-1px);
}
.prod-rank-kicker {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.prod-rank-num {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.04em;
  margin: 4px 0 2px;
  line-height: 1.1;
}
.prod-rank-of {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 10px;
}
.prod-rank-link {
  color: var(--primary);
  font-size: .86rem;
  font-weight: 700;
}

.prod-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.prod-stat {
  text-align: center;
  padding: 16px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.prod-stat-v {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.prod-stat-l {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
}

.prod-about {
  margin-bottom: 28px;
}
.prod-about h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.prod-about h3 {
  margin: 18px 0 6px;
  font-size: 1rem;
}
.prod-about p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}
.prod-about p strong { color: var(--fg); }
.prod-about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px !important;
}
.prod-about-cta .ghost { margin-top: 0; }

.prod-nearby h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.prod-nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
}
.prod-nearby-list li {
  display: grid;
  grid-template-columns: 48px 36px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.prod-nearby-list li:last-child { border-bottom: 0; }
.prod-nearby-list li.is-self {
  background: var(--top-wash);
}
.prod-nearby-list .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--muted);
}
.prod-nearby-list .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: .85rem;
}
.prod-nearby-list .logo img { padding: 5px; }
.side-list .logo img { padding: 3px; }
.prod-nearby-list .name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-nearby-list .name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: .82rem;
}
.prod-nearby-list .bid {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .prod-hero { align-items: flex-start; }
  .prod-hero .logo { width: 64px; height: 64px; border-radius: 16px; }
  .prod-rank-cards { grid-template-columns: 1fr; }
  .prod-stats { grid-template-columns: 1fr; }
  .prod-bid-bar { align-items: flex-start; }
  .prod-bid-right { width: 100%; }
  .prod-cta, .prod-open { flex: 1 1 auto; }
}


/* Site search + category directory (nav sections) */
.search-panel { padding: 0 0 12px; }
.search-panel[hidden] { display: none !important; }
.search-panel.open { display: block; }
.site-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--input-bg); border: 1.5px solid rgba(var(--primary-rgb), .55);
  border-radius: 999px; padding: 8px 10px 8px 16px;
}
.site-search .search-ico { color: var(--muted); flex-shrink: 0; }
.site-search input[type="search"] {
  flex: 1; border: 0; outline: none; background: transparent;
  color: var(--fg); font: inherit; font-size: .95rem; min-width: 0;
}
.site-search input[type="search"]::placeholder { color: var(--muted); }
.search-go {
  border: 0; border-radius: 999px; background: var(--primary); color: #fff;
  font-weight: 700; font-size: .86rem; padding: 8px 14px; cursor: pointer; flex-shrink: 0;
}
.search-go:hover { filter: brightness(1.05); }
#search-toggle svg { display: block; }

.page-wide { max-width: 900px; }
.page .lead { color: var(--muted); margin-top: -6px; }
.page .muted-note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.mail-link { color: var(--primary); font-weight: 700; font-size: 1.05rem; }
.page-hero { justify-content: center; margin-bottom: 8px; }

.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-top: 18px;
}
.cat-card {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 16px 16px 14px;
  transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: rgba(var(--primary-rgb), .5); color: inherit; transform: translateY(-1px); }
.cat-name { font-weight: 700; font-size: 1.05rem; }
.cat-count { color: var(--muted); font-size: .86rem; }
.cat-go { color: var(--primary); font-weight: 600; font-size: .86rem; margin-top: 4px; }

.search-results { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.search-item {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  background: var(--card);
}
.search-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.search-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-title { font-weight: 700; }
.search-sub { color: var(--muted); font-size: .82rem; }
.search-blurb { color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 640px) {
  .nav a.keep { display: inline; }
  .site-search { padding-right: 8px; }
  .search-item { flex-wrap: wrap; }
  .bar { gap: 8px; }
  .live-pill .txt { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
  .nav { gap: 8px; }
}

/* —— public /stats page —— */
.stats-page { padding-bottom: 48px; }
.stats-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin: 18px 0 22px; flex-wrap: wrap;
}
.stats-kicker {
  margin: 0 0 4px; color: var(--primary); font-weight: 700; font-size: .82rem;
  letter-spacing: .02em;
}
.stats-title {
  margin: 0; font-size: 1.85rem; letter-spacing: -.03em; font-weight: 800;
}
.stats-sub { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.stats-metrics {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px;
  margin-bottom: 18px;
}
.stats-metrics .stat { padding: 16px 12px; }
.stats-metrics .stat .v { font-size: 1.25rem; }
.stats-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: 18px 18px 14px; margin-bottom: 16px;
}
.stats-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.stats-card-head h2 { margin: 0; font-size: 1.05rem; }
.stats-card-head p { margin: 0; color: var(--muted); font-size: .82rem; }
.stats-chart-wrap { height: 260px; position: relative; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stats-table th, .stats-table td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.stats-table th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.stats-table td:nth-child(2), .stats-table td:nth-child(3),
.stats-table th:nth-child(2), .stats-table th:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.stats-table .path { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-table a { color: var(--fg); font-weight: 600; }
.stats-table a:hover { color: var(--primary); }
.stats-empty { color: var(--muted); margin: 8px 0 4px; }
.stats-more { text-align: center; margin: 18px 0 0; }
.stats-more a { color: var(--primary); font-weight: 700; }
.stats-biz .stats { margin-top: 4px; }
@media (max-width: 960px) {
  .stats-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-title { font-size: 1.45rem; }
  .stats-chart-wrap { height: 220px; }
}
