/* Cardboard Pilot platform — the CBP system.
   Contract: white/silver ground, black ink, and the logo's royal blue
   (#021aaa) as the ONLY accent, spent on links and brand moments. Primary
   actions are black. Structure comes from 1px hairlines and silver panel
   shifts, never shadows/glows; mono for codes/kickers; Inter everywhere;
   sharp 4px radii. Dark looks survive only as per-card themes below. */

:root {
  --bg: #f4f4f6;          /* silver-white page */
  --panel: #ffffff;       /* raised room */
  --panel-2: #ebedf0;     /* inputs, wells (silver) */
  --ink: #0b0c0f;         /* black */
  --muted: #4e535d;
  --faint: #6c717c;       /* AA floor for small text on --bg */
  --line: rgba(12, 14, 20, 0.10);
  --line-strong: rgba(12, 14, 20, 0.24);
  --blue: #0a12c2;        /* the logo blue (#020bc4) — links + brand moments only */
  --blue-hi: #212ade;
  --btn-bg: #0b0c0f;      /* primary action: black */
  --btn-fg: #ffffff;
  --btn-bg-hi: #24262c;
  --danger: #bf3038;
  --ok: #1e7d45;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 2px;
  border-radius: 3px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Inter", -apple-system, system-ui, sans-serif;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* --- top bar --- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.topbar .brand:hover { text-decoration: none; }
.topbar .brand img { height: 26px; width: auto; display: block; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 16px; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; flex: none; }
@media (max-width: 640px) { .topbar { padding: 12px 14px; gap: 10px; } .topbar nav { gap: 13px; }
  .topbar nav .lg { display: none; } }
.topbar nav a.you { color: var(--ink); }

/* --- layout --- */
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 28px 18px 60px; flex: 1; }
.wrap.wide { max-width: 920px; }

.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 10px 0 6px; }
.sub { color: var(--muted); font-size: 15px; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; margin-top: 22px;
}
.hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* --- forms --- */
label.f { display: block; margin-top: 16px; }
label.f span, .flabel {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em; margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 11px 12px; font: inherit; font-size: 16px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b0c0f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 14px; }
body[data-ctheme="carbon"] select, body[data-ctheme="slate"] select, body[data-ctheme="navy"] select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23eef1f7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--danger); }

/* Buttons — one recipe, three heights. Sharp 2px corners, Inter 600 at 14px,
   grayscale only: black fill = primary, ink outline = secondary. Hover stays
   in the gray scale; blue is for links. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; padding: 0 18px; margin-top: 20px;
  border-radius: 2px; border: 1px solid var(--btn-bg);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--btn-bg-hi); border-color: var(--btn-bg-hi); text-decoration: none; }
.btn:active { background: #000; border-color: #000; }
.btn:disabled, .btn.ghost:disabled {
  background: var(--panel-2); color: var(--faint); border-color: var(--line); cursor: default; }
.btn.ghost {
  background: #e3e5ea; color: var(--ink); border-color: #e3e5ea;
}
.btn.ghost:hover { background: #d8dbe1; border-color: #d8dbe1; }
.btn.ghost:active { background: #cdd0d8; border-color: #cdd0d8; }
.btn.danger { background: #e3e5ea; color: var(--danger); border-color: #e3e5ea; }
.btn.danger:hover { background: rgba(191, 48, 56, 0.10); border-color: rgba(191, 48, 56, 0.10); }
.btn.slim { width: auto; height: 36px; padding: 0 14px; margin-top: 0; }
.btn.tiny { width: auto; height: 28px; padding: 0 10px; margin-top: 0; font-size: 12.5px; }

.formerr {
  display: none; margin-top: 16px; padding: 11px 12px;
  border: 1px solid var(--danger); border-radius: var(--r);
  color: var(--danger); font-size: 14px; background: rgba(229, 72, 77, 0.06);
}
.formerr.show { display: block; }

/* --- photo pickers --- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.shot {
  position: relative; border: 1px dashed var(--line-strong); border-radius: var(--r);
  background: var(--panel-2); aspect-ratio: 3 / 4.2; overflow: hidden;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .ph { text-align: center; color: var(--faint); font-size: 13px; padding: 10px; }
.shot .ph b { display: block; color: var(--muted); font-size: 22px; font-weight: 400; }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* --- card display --- */
.cardhero {
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 18px;
}
.cardhero .imgframe {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  min-height: 220px;
}
.cardhero .imgframe img { max-height: 68svh; width: auto; max-width: 100%; }
.cardhero .noimg { color: var(--faint); font-size: 14px; padding: 60px 20px; }
.flip { margin-top: 10px; text-align: center; }
.flip button {
  background: none; border: 0; color: var(--muted); font-size: 13px;
  cursor: pointer; font-family: var(--mono); letter-spacing: 0.06em;
}
.flip button:hover { color: var(--ink); }
.cardname { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 16px; line-height: 1.25; }
.cardmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 4px 8px;
}
.chip.blue { color: var(--blue-hi); border-color: var(--blue); }
.ownerline { margin-top: 14px; color: var(--muted); font-size: 14.5px; }

/* --- state block (unclaimed / disabled / unknown ...) --- */
.state { text-align: center; padding: 48px 20px 40px; }
.state .glyph {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 20px; color: var(--muted);
}

/* --- profile / grids --- */
.pagehead { padding: 8px 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pagehead .name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.pagehead .at { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 2px; }
.pagehead .bio { color: var(--muted); font-size: 14.5px; margin: 10px 0 14px; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  overflow: hidden; color: var(--ink); display: block;
}
.tile:hover { border-color: var(--line-strong); text-decoration: none; }
.tile .timg { aspect-ratio: 3 / 4.2; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile .timg img { width: 100%; height: 100%; object-fit: cover; }
.tile .timg span { color: var(--faint); font-size: 12px; }
.tile .tname {
  margin: 10px 12px 6px; padding: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile .tsub { padding: 0 12px 10px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
/* for-sale tiles lead with the price — big, black, unmissable */
.tile .tprice { display: flex; align-items: baseline; gap: 8px; padding: 0 12px 12px;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.tile .tprice .tag { font: 700 10.5px/1 "Inter", system-ui, sans-serif; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ok); border: 1px solid var(--ok); border-radius: 2px;
  padding: 3px 6px; }

/* --- skeleton --- */
.skel { border-radius: var(--r); background: var(--panel-2); position: relative; overflow: hidden; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(12,14,20,0.05) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }

/* --- card page customization (controlled themes/accents/layouts) ---
   "light" is the site default (bare :root). The dark themes define every
   token they touch, including button colors (white-on-dark primaries). */
body[data-ctheme="carbon"], body[data-ctheme="slate"], body[data-ctheme="navy"] {
  --ink: #eef1f7; --muted: #8f97a8; --faint: #7d8496;
  --line: rgba(235, 240, 255, 0.09); --line-strong: rgba(235, 240, 255, 0.2);
  --blue: #3e63dd; --blue-hi: #6d89f0;
  --btn-bg: #eef1f7; --btn-fg: #0b0c0f; --btn-bg-hi: #ffffff;
  --danger: #e5484d; --ok: #46a758;
}
/* On dark themes the blue/black logo needs a white plate to stay legible. */
body[data-ctheme="carbon"] .topbar .brand img,
body[data-ctheme="slate"] .topbar .brand img,
body[data-ctheme="navy"] .topbar .brand img {
  background: #fff; padding: 4px 9px; border-radius: 4px; height: 30px;
}
body[data-ctheme="carbon"] { --bg: #0a0d13; --panel: #10141d; --panel-2: #151b28; }
body[data-ctheme="slate"]  { --bg: #141821; --panel: #1a2030; --panel-2: #202839; }
body[data-ctheme="navy"]   { --bg: #0d1430; --panel: #131b3d; --panel-2: #182252;
                             --line: rgba(200, 215, 255, 0.12); }
body[data-accent="red"]    { --blue: #c23b3b; --blue-hi: #d65252; }
body[data-accent="gold"]   { --blue: #96731c; --blue-hi: #b28821; }
body[data-accent="green"]  { --blue: #1e7d45; --blue-hi: #2f9e5b; }
body[data-accent="purple"] { --blue: #6a48c8; --blue-hi: #8266d8; }
body[data-accent="silver"] { --blue: #667080; --blue-hi: #7e8798; }

body[data-layout="poster"] .cardhero { padding: 0; overflow: hidden; }
body[data-layout="poster"] .cardhero .imgframe { border: 0; border-radius: 0; }
body[data-layout="poster"] .cardhero .imgframe img { max-height: 76svh; }
body[data-layout="poster"] .cardhero .heroinner { padding: 18px; }
body[data-layout="minimal"] .cardhero .imgframe { min-height: 0; }
body[data-layout="minimal"] .cardhero .imgframe img { max-height: 34svh; }

/* --- card page pieces --- */
.linkrow { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.linkbtn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r);
  color: var(--ink); font-weight: 600; font-size: 14.5px; background: var(--panel);
}
.linkbtn:hover { text-decoration: none; border-color: var(--blue); }
.linkbtn .arr { color: var(--faint); font-family: var(--mono); }
.notes { margin-top: 16px; color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; padding: 4px 8px; border-radius: 3px;
  border: 1px solid var(--blue); color: var(--blue-hi);
}
.badge.sold { border-color: var(--faint); color: var(--faint); }

/* --- stat tiles (collection dashboard) --- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 12px 14px;
}
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); }
.stat .v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.stat .v.up { color: var(--ok); }
.stat .v.down { color: var(--danger); }

/* --- inbox --- */
.notif {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 14px; margin-top: 12px; font-size: 14.5px;
}
.notif .when { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 6px; }
.notif.unread { border-left: 3px solid var(--blue); }
.notif .acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.navbadge {
  display: inline-block; min-width: 18px; text-align: center; background: var(--blue);
  color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 1px 5px;
  margin-left: 4px;
}

/* --- modal (history) --- */
.modal {
  position: fixed; inset: 0; background: rgba(5, 7, 12, 0.72);
  display: none; align-items: flex-end; justify-content: center; z-index: 50;
}
.modal.open { display: flex; }
.modal .sheet {
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--r) var(--r) 0 0; width: 100%; max-width: 560px;
  max-height: 78svh; overflow-y: auto; padding: 20px;
}
@media (min-width: 640px) { .modal { align-items: center; }
  .modal .sheet { border-radius: var(--r); } }
.hist { list-style: none; margin-top: 10px; }
.hist li { display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hist li .d { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }

/* --- pickers (customization) --- */
.pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pick button {
  height: 34px; padding: 0 12px; border-radius: 2px; cursor: pointer;
  border: 1px solid #e3e5ea; background: #e3e5ea; color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  transition: background-color .12s, border-color .12s, color .12s;
}
.pick button:hover { background: #d8dbe1; border-color: #d8dbe1; color: var(--ink); }
.pick button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.swatch { width: 34px; height: 34px; border-radius: 2px; padding: 0 !important; }
.pick button.swatch.on { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink); }
.pick .swatch.custom { position: relative; overflow: hidden; display: inline-block; cursor: pointer;
  background: conic-gradient(#c23b3b, #96731c, #1e7d45, #0a12c2, #6a48c8, #c23b3b); }
.pick .swatch.custom input { position: absolute; inset: -6px; width: 46px; height: 46px; opacity: 0; cursor: pointer; }

/* --- private test bench --- */
.testtab {
  position: fixed; right: 0; top: 46%; z-index: 90;
  writing-mode: vertical-rl; letter-spacing: 0.18em;
  font: 600 10.5px var(--mono); color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-strong);
  border-right: 0; border-radius: var(--r) 0 0 var(--r);
  padding: 12px 6px; cursor: pointer;
}
.testtab:hover { color: var(--ink); border-color: var(--blue); }
.testpanel {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); z-index: 95;
  background: var(--panel); border-left: 1px solid var(--line-strong);
  overflow-y: auto; box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
}
.tp-inner { padding: 16px; font-size: 13.5px; color: var(--muted); }
.tp-head { display: flex; justify-content: space-between; align-items: center;
  color: var(--ink); font-size: 15px; }
.tp-x { background: none; border: 0; color: var(--muted); font-size: 22px;
  cursor: pointer; line-height: 1; }
.tp-note { font-size: 12px; color: var(--faint); margin-top: 6px; }
.tp-label { font: 600 10.5px var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin: 16px 0 8px; }
.tp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-acct { border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--muted); border-radius: var(--r); padding: 6px 9px;
  font-size: 12px; cursor: pointer; }
.tp-acct.on { border-color: var(--blue); color: var(--ink); }
.tp-current { margin-top: 10px; font-size: 12.5px; }
.tp-current a { margin-left: 6px; font-size: 11.5px; }
.tp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-stick {
  border: 1px dashed var(--line-strong); background: var(--panel-2);
  border-radius: 50%; aspect-ratio: 1; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tp-stick .n { font: 700 18px var(--mono); color: var(--ink); }
.tp-stick .s { font-size: 9.5px; color: var(--faint); max-width: 90%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-stick.used { border-style: solid; border-color: var(--blue); }
.tp-stick:hover { border-color: var(--blue-hi); }

/* --- footer --- */
.foot {
  border-top: 1px solid var(--line); padding: 22px 18px; text-align: center;
  color: var(--faint); font-size: 12.5px;
}
.foot a { color: var(--muted); }

/* --- card profile: product-page layout, white base ------------------------ */
body.cardpage:not([data-ctheme="carbon"]):not([data-ctheme="slate"]):not([data-ctheme="navy"]) {
  --bg: #ffffff; --panel-2: #f1f2f4;
}
.cp .cp-wrap { max-width: 980px; padding-top: 22px; }
.cp-grid { display: grid; gap: 26px; }
@media (min-width: 860px) {
  .cp-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: start; }
  .cp-media { position: sticky; top: 18px; }
}
.cp-img { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; min-height: 240px; overflow: hidden; }
.cp-img img { max-height: 72svh; width: auto; max-width: 100%; }
.cp-noimg { color: var(--faint); font-size: 14px; padding: 70px 20px; }
.cp-flip { margin-top: 10px; background: none; border: 0; color: var(--muted);
  font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.cp-flip:hover { color: var(--ink); }
.cp-ownerbar { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px;
  align-items: center; margin-bottom: 12px; }
.cp-ownerbar .btn { margin-left: auto; }
.cp-title { font-size: clamp(24px, 5vw, 32px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; }
.cp-owner { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.cp-price { display: flex; align-items: center; gap: 12px; margin-top: 16px; min-height: 42px; }
.cp-price b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.cp-price .cp-muted { font-size: 14px; }
.cp-badge { font: 700 12px/1 "Inter", system-ui, sans-serif; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ok); border: 1px solid var(--ok);
  border-radius: 2px; padding: 5px 8px; }
.cp-badge.sold { color: var(--faint); border-color: var(--line-strong); }
.cp-facts { margin-top: 18px; border-top: 1px solid var(--line); }
.cp-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0;
  align-items: center; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.cp-facts dt { color: var(--muted); }
.cp-facts dd { font-weight: 600; font-size: 14px; }
.cp-links, .cp-contactline, .cp-places { margin-top: 14px; font-size: 14.5px; line-height: 1.8; }
.cp-links a, .cp-contactline a, .cp-report a, .cp-notes a {
  color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cp-sep { color: var(--faint); margin: 0 8px; }
.cp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cp-actions .btn { margin-top: 0; }
.cp-sub { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cp-muted { color: var(--muted); font-size: 13.5px; }
.cp-section { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.cp-section h2, .cp-manage h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.cp-notes { margin-top: 10px; color: var(--muted); font-size: 14.5px; white-space: pre-wrap; line-height: 1.6; }
.cp-hist { list-style: none; margin-top: 10px; }
.cp-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.cp-hist time { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }
.cp-report { margin-top: 22px; font-size: 12.5px; }
.cp-report a { color: var(--faint); }
.cp-manage { margin-top: 44px; padding-top: 26px; border-top: 2px solid var(--ink); }
.cp-manage details { border-bottom: 1px solid var(--line); }
.cp-manage summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15px; list-style: none; }
.cp-manage summary::-webkit-details-marker { display: none; }
.cp-manage summary::before { content: "+"; display: inline-block; width: 22px; color: var(--faint);
  font-family: var(--mono); }
.cp-manage details[open] > summary::before { content: "–"; }
.cp-fields { padding: 0 0 22px 22px; }
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cp-linkrow { display: grid; grid-template-columns: 1fr 150px; gap: 8px; margin-top: 8px; }
@media (max-width: 520px) { .cp-fields { padding-left: 0; } .cp-two { grid-template-columns: 1fr; } }

/* inline text links on profiles too — no boxes */
.textlinks { margin-top: 14px; font-size: 14.5px; line-height: 1.8; max-width: 60ch; }
.textlinks a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cp { flex: 1; }

/* --- link list: stacked rows, site favicon, hairline box (no pill/shadow) -- */
.linklist { display: flex; flex-direction: column; gap: 8px; margin-top: 16px;
  max-width: 460px; }
.linklist a { display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--panel); padding: 11px 14px; text-decoration: none; }
.linklist a:hover { border-color: var(--blue); text-decoration: none; }
.linklist .lfav { width: 20px; height: 20px; border-radius: 3px; flex: none; }
.linklist .llabel { color: var(--blue); font-weight: 600; font-size: 14.5px;
  text-decoration: underline; text-underline-offset: 3px; }
.linklist .larr { margin-left: auto; color: var(--faint);
  font-family: var(--mono); font-size: 13px; }

/* --- card media gallery --------------------------------------------------- */
.cp-img video { max-height: 72svh; width: auto; max-width: 100%; }
.cp-img iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.cp-img.embed { padding: 0; }
.cp-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cp-thumbs button {
  position: relative; width: 58px; height: 58px; padding: 0; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--panel-2); overflow: hidden; }
.cp-thumbs button.on { border-color: var(--ink); border-width: 2px; }
.cp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cp-thumbs .vbadge {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 17px;
  background: rgba(11, 12, 15, 0.45); }
/* manage: media grid */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px; margin-top: 12px; }
.mitem { border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--panel-2); overflow: hidden; position: relative; }
.mitem .mthumb { aspect-ratio: 1; display: flex; align-items: center;
  justify-content: center; overflow: hidden; }
.mitem .mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mitem .mkind { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.mitem .macts { display: flex; border-top: 1px solid var(--line); }
.mitem .macts button { flex: 1; background: none; border: 0; cursor: pointer;
  font-size: 10.5px; padding: 5px 2px; color: var(--muted); }
.mitem .macts button:hover { color: var(--ink); background: var(--panel); }
.mitem .macts button.rm:hover { color: var(--danger); }
.addrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.addrow label.btn { margin-top: 0; }

/* video rows inside the link list */
.linklist .vrow { display: flex; align-items: center; gap: 11px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--panel); padding: 11px 14px; cursor: pointer; text-align: left; }
.linklist .vrow:hover { border-color: var(--blue); }
.vfav { display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-size: 10px; }
.vplayer { margin: 2px 0 4px; }
.vplayer video, .vplayer iframe { width: 100%; border: 1px solid var(--line);
  border-radius: var(--r); }
.vplayer iframe { aspect-ratio: 16/9; }
.vplayer video { max-height: 60svh; background: #000; }

/* media multi-select + link removal */
.mitem { position: relative; }
.msel { position: absolute; top: 5px; left: 5px; z-index: 2; }
.msel input { width: 17px; height: 17px; accent-color: var(--ink); cursor: pointer; }
.selbar { display: flex; gap: 8px; margin-top: 10px; }
.cp-linkrow { grid-template-columns: 1fr 150px 34px !important; }
.lkrm { border: 1px solid #e3e5ea; border-radius: 2px;
  background: #e3e5ea; color: var(--muted); font-size: 17px; line-height: 1;
  cursor: pointer; }
.lkrm:hover { color: var(--danger); border-color: var(--danger); }

/* preview-as-visitor bar */

/* price-history sparkline */
.cp-spark { display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); max-width: 320px; }
.cp-spark svg { flex: none; }
.cp-sparklabel { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cp-sparklabel b { color: var(--ink); }

/* show mode */
.showgrid { display: grid; gap: 6px; margin-top: 12px; max-height: 340px;
  overflow-y: auto; }
.showrow { display: flex; align-items: center; gap: 10px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  background: var(--panel); }
.showrow.live { border-color: var(--blue); }
.showrow input { width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.showthumb { width: 30px; height: 40px; flex: none; background: var(--panel-2);
  border-radius: 3px; overflow: hidden; }
.showthumb img { width: 100%; height: 100%; object-fit: cover; }
.showname { font-size: 13.5px; font-weight: 600; line-height: 1.25; min-width: 0; }
.showsub { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted);
  font-family: var(--mono); }
.showbar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
  align-items: center; }
.showbar input { width: 150px; }

/* ended listing links (owner view only) */
.cp-linkrow.ended .lk-url, .cp-linkrow.ended .lk-label {
  text-decoration: line-through; color: var(--faint); }

/* share button beside the price */
.cp-share { margin-left: auto; gap: 6px; }
.cp-share svg { flex: none; }

/* "More info" — collapsed by default; holds the tag code + history */
.cp-morebtn { gap: 8px; }
.cp-morebtn .chev { font-size: 11px; transition: transform .15s; }
.cp-morebtn.open .chev { transform: rotate(180deg); }

/* gallery swipe: slide-in */
.cp-img { touch-action: pan-y; }
@keyframes cp-slide-l { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes cp-slide-r { from { transform: translateX(-28px); opacity: .4; } to { transform: none; opacity: 1; } }
.cp-img.slide-l > * { animation: cp-slide-l .18s ease-out; }
.cp-img.slide-r > * { animation: cp-slide-r .18s ease-out; }

/* Pilot Tag Journey map */
.cp-map { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 10px; }
.cp-map svg { width: 100%; height: auto; display: block; }
.cp-map .st { fill: var(--panel-2); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.cp-map .st.on { fill: #d9dce3; }
.cp-map .leg { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; opacity: .55;
  stroke-linecap: round; }
.cp-map .stop text { font: 600 17px "Inter", system-ui, sans-serif; fill: var(--ink);
  paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
@media (max-width: 640px) {
  .cp-map { padding: 6px; }
  .cp-map .stop text { font-size: 24px; stroke-width: 6px; }
  .cp-map .leg { stroke-width: 3; stroke-dasharray: 8 8; }
  .cp-map .stop circle[stroke] { stroke-width: 3; }
}
.cp-stop { white-space: nowrap; }
.cp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin-right: 6px; vertical-align: 0; }
[data-ctheme="carbon"] .cp-map, [data-ctheme="slate"] .cp-map, [data-ctheme="navy"] .cp-map {
  background: rgba(255,255,255,.06); }
[data-ctheme="carbon"] .cp-map .st, [data-ctheme="slate"] .cp-map .st, [data-ctheme="navy"] .cp-map .st {
  fill: rgba(255,255,255,.10); stroke: rgba(0,0,0,.5); }
[data-ctheme="carbon"] .cp-map .st.on, [data-ctheme="slate"] .cp-map .st.on, [data-ctheme="navy"] .cp-map .st.on {
  fill: rgba(255,255,255,.26); }
[data-ctheme="carbon"] .cp-map .leg, [data-ctheme="slate"] .cp-map .leg, [data-ctheme="navy"] .cp-map .leg {
  stroke: #fff; }
[data-ctheme="carbon"] .cp-map .stop text, [data-ctheme="slate"] .cp-map .stop text, [data-ctheme="navy"] .cp-map .stop text {
  fill: #fff; stroke: rgba(0,0,0,.75); }

/* brand font picker (settings) */
.fontpick { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
@media (min-width: 460px) { .fontpick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .fontpick { grid-template-columns: repeat(3, 1fr); } }
.fontpick button { height: 64px; padding: 0 12px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink);
  line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fontpick button:hover { border-color: var(--ink); }
.fontpick button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--panel-2); }

/* --- Direct messages --------------------------------------------------------- */
.dm { flex: 1; display: grid; grid-template-columns: 1fr; width: 100%; max-width: 1100px;
  margin: 0 auto; min-height: 0; }
@media (min-width: 860px) {
  .dm { grid-template-columns: 340px minmax(0, 1fr); height: calc(100svh - 57px); }
  .dm-list { border-right: 1px solid var(--line); }
  .dm-list.away, .dm-thread.away { display: flex !important; }
}
.dm-list, .dm-thread { display: flex; flex-direction: column; min-height: 0; }
.dm-list.away, .dm-thread.away { display: none; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); background: var(--panel); }
.dm-head h1 { font-size: 18px; margin: 0; flex: 1; }
.dm-head .back { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer;
  padding: 2px 8px 2px 0; color: var(--ink); }
.dm-head .who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  color: var(--ink); text-decoration: none; }
.dm-head .who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-head .who span { font-size: 12px; color: var(--faint); }
.dm-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  font: 600 15px Inter, sans-serif; color: var(--muted); border: 1px solid var(--line); }
.dm-rows { overflow-y: auto; flex: 1; }
.dm-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; width: 100%;
  text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--panel);
  cursor: pointer; color: var(--ink); font: inherit; }
.dm-row:hover { background: var(--panel-2); }
.dm-row.on { background: var(--panel-2); }
.dm-row .mid { flex: 1; min-width: 0; }
.dm-row .top { display: flex; justify-content: space-between; gap: 8px; }
.dm-row .top b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .top time { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
.dm-row .prev { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; margin-top: 2px; }
.dm-row.unread .prev, .dm-row.unread .top b { color: var(--ink); font-weight: 600; }
.dm-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.dm-empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14.5px; }
.dm-empty .glyph { width: 54px; height: 54px; margin: 0 auto 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 20px; color: var(--muted); }

.dm-msgs { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column;
  gap: 4px; background: var(--bg); }
.dm-day { align-self: center; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); margin: 14px 0 8px; }
.dm-b { max-width: min(78%, 560px); padding: 9px 12px; border-radius: 10px; font-size: 15px;
  line-height: 1.4; word-wrap: break-word; position: relative; }
.dm-b .txt { white-space: pre-wrap; }
.dm-b.them { align-self: flex-start; background: var(--panel); border: 1px solid var(--line);
  border-bottom-left-radius: 3px; }
.dm-b.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; }
.dm-b.pending { opacity: .55; }
.dm-b.failed { outline: 1px solid var(--danger); }
.dm-b .retry { display: block; font-size: 12px; margin-top: 6px; color: #ffd0d0; text-decoration: underline;
  cursor: pointer; background: none; border: 0; padding: 0; }
.dm-t { font-family: var(--mono); font-size: 11px; color: var(--faint); margin: 2px 4px 8px; }
.dm-t.me { align-self: flex-end; } .dm-t.them { align-self: flex-start; }
.dm-card { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; padding: 8px;
  border-radius: 6px; text-decoration: none; color: inherit; background: rgba(127,127,127,.12);
  border: 1px solid rgba(127,127,127,.25); }
.dm-b.me .dm-card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.dm-card img, .dm-card .ph { width: 38px; height: 52px; border-radius: 3px; object-fit: cover;
  background: rgba(127,127,127,.2); flex: none; }
.dm-card .n { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.dm-card .p { font-size: 12px; opacity: .8; margin-top: 2px; }

.dm-compose { border-top: 1px solid var(--line); background: var(--panel); padding: 10px 12px 12px; }
.dm-compose .attach { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  margin-bottom: 8px; }
.dm-compose .attach img { width: 22px; height: 30px; object-fit: cover; border-radius: 2px; }
.dm-compose .attach button { border: 0; background: none; cursor: pointer; color: var(--faint); font-size: 16px; }
.dm-compose .row { display: flex; gap: 8px; align-items: flex-end; }
.dm-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 160px; padding: 10px 12px;
  font-size: 16px; line-height: 1.35; }
.dm-compose .btn { margin-top: 0; height: 42px; padding: 0 16px; width: auto; }
.dm-compose .err { color: var(--danger); font-size: 12.5px; margin-top: 6px; display: none; }
.dm-compose .err.show { display: block; }
.dm-note { padding: 12px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line);
  background: var(--panel); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dm-note .btn { margin-top: 0; }
.dm-menu { position: relative; }
.dm-menu > button { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 2px;
  width: 34px; height: 34px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink); }
.dm-menu .pop { position: absolute; right: 0; top: 40px; z-index: 30; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--r); min-width: 190px; padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.dm-menu .pop button, .dm-menu .pop a { display: block; width: 100%; text-align: left; padding: 9px 14px;
  border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  text-decoration: none; }
.dm-menu .pop button:hover, .dm-menu .pop a:hover { background: var(--panel-2); }
.dm-menu .pop .danger { color: var(--danger); }

/* tagged-card mark on grid tiles + tagless nudge on the owner's card page */
.tile .timg { position: relative; }
/* The PT mark is a holo foil stamp — iridescent, with a slow moving sheen,
   like the foil on the card it's stuck to. */
.ptmark { position: relative; overflow: hidden;
  color: #14161c; font: 800 10px/1 var(--mono); letter-spacing: .08em; padding: 4px 7px;
  border-radius: 5px; border: 1px solid rgba(20, 22, 28, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  background: linear-gradient(115deg,
    #cdd3de 0%, #b9d6ff 14%, #dcc2ff 30%, #ffc9e5 45%,
    #c2ffe3 60%, #fff4b8 74%, #b9d6ff 88%, #cdd3de 100%);
  background-size: 300% 100%;
  animation: pt-holo 7s linear infinite;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.ptmark::after { content: ""; position: absolute; top: -60%; bottom: -60%;
  left: -30%; width: 45%; transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%);
  animation: pt-glare 3.4s ease-in-out infinite; }
@keyframes pt-holo { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@keyframes pt-glare { 0%, 55% { left: -45%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .tile .ptmark, .ptmark::after { animation: none; }
}
.cp-nudge { border: 1px solid var(--line-strong); border-left: 3px solid var(--ink); border-radius: 2px;
  padding: 12px 14px; margin: 0 0 14px; font-size: 14px; color: var(--muted); background: var(--panel); }
.cp-nudge b { color: var(--ink); }
.cp-nudge-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cp-nudge-acts .btn { margin-top: 0; }

/* saved searches + followed sellers on /search */
.ssrow { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.ssrow .ssgo { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 1px solid var(--line); border-radius: 2px; background: var(--panel);
  padding: 11px 14px; font: inherit; cursor: pointer; color: var(--ink); min-width: 0; }
.ssrow .ssgo:hover { border-color: var(--ink); }
.ssrow .ssq { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.newbadge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 10px;
  font: 700 11.5px/1 "Inter", system-ui, sans-serif; letter-spacing: .02em; padding: 4px 8px;
  white-space: nowrap; flex: none; }
.ssrow .ssx { border: 1px solid var(--line); border-radius: 2px; background: var(--panel);
  color: var(--faint); font-size: 16px; width: 40px; cursor: pointer; flex: none; }
.ssrow .ssx:hover { color: var(--danger); border-color: var(--danger); }
.frow { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none; }
.frow::-webkit-scrollbar { display: none; }
.fseller { flex: none; width: 118px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel);
  padding: 12px 8px; text-decoration: none; color: var(--ink); text-align: center; }
.fseller:hover { border-color: var(--ink); text-decoration: none; }
.fseller img, .fseller .ph { width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  font: 600 17px Inter, sans-serif; color: var(--muted); border: 1px solid var(--line); }
.fseller b { font-size: 12.5px; line-height: 1.2; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* search hub: two rooms + a ruled shelf header (kickers, not bold gray labels) */
.hubgrid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 860px) { .hubgrid { grid-template-columns: 1fr 1fr; align-items: start; } }
.hubpanel { margin-top: 0; padding: 16px 16px 14px; }
.hubpanel .ssrow:first-of-type { margin-top: 12px; }
.hubpanel .frow { padding-top: 12px; }
.hubempty { display: flex; gap: 12px; align-items: center; margin-top: 14px;
  font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.hubempty .g { width: 40px; height: 40px; flex: none; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--panel-2); font-size: 17px; color: var(--muted); }
.hubempty span { color: var(--muted); }
.hubempty .minibadge { font: 700 10.5px/1 "Inter", system-ui, sans-serif; font-style: normal;
  background: var(--danger); color: #fff; border-radius: 8px; padding: 2px 6px; }
.shelfhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.shelfhead span { font-size: 12.5px; color: var(--faint); }

/* hub as two expandable buttons + a global back control in the top bar */
.hubbtns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hubbtn { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--panel);
  padding: 13px 14px; font: 600 14.5px/1 "Inter", system-ui, sans-serif; color: var(--ink);
  cursor: pointer; transition: border-color .12s, background-color .12s; }
.hubbtn:hover { border-color: var(--ink); }
.hubbtn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.hubbtn .ic { width: 26px; height: 26px; flex: none; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--panel-2); font-size: 13px; color: var(--muted); }
.hubbtn.on .ic { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.hubbtn .chev { margin-left: auto; font-size: 11px; color: var(--faint); transition: transform .15s; }
.hubbtn.on .chev { transform: rotate(180deg); color: rgba(255,255,255,.7); }
.hubbtn .newbadge { margin-left: 0; }
.hubcount { font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 2px 7px; }
.hubbtn.on .hubcount { color: #fff; border-color: rgba(255,255,255,.4); }
.hubpanel { margin-top: 12px; }
.hubhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.navback { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 2px;
  width: 32px; height: 32px; flex: none; cursor: pointer; font-size: 19px; line-height: 1;
  color: var(--ink); padding: 0 0 2px; }
.navback:hover { border-color: var(--ink); }

/* hearts + pinned saved searches */
.heartbtn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #b6bcc8;
  font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: color .12s, transform .12s; }
.heartbtn:hover { transform: scale(1.08); }
.heartbtn.on { color: var(--danger); }
.cp-heart.on { color: var(--danger); border-color: var(--danger); }
.sspin { border: 1px solid var(--line); border-radius: 2px; background: var(--panel);
  color: var(--faint); font-size: 15px; width: 40px; cursor: pointer; flex: none; }
.sspin:hover { border-color: var(--ink); color: var(--ink); }
.sspin.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ssrow .pinned { color: var(--blue); font-size: 13px; flex: none; }

/* placement variants: absolute on tiles, inline on the card page */
.tile .ptmark { position: absolute; top: 8px; left: 8px; }
.ptmark.inline { display: inline-flex; align-items: center; vertical-align: 1px; margin-left: 6px; }

/* photo zoom */
.cp-img { overflow: hidden; }
.cp-img img { will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .cp-img img { cursor: zoom-in; }
  .cp-img.zoomed img { cursor: zoom-out; }
}


/* sold tiles + the verified-in-hand chip */
.tile .tprice.sold { color: var(--muted); }
.tile .tprice.sold .tag { color: var(--faint); border-color: var(--line-strong); }
.inhand { display: inline-flex; align-items: center; margin-left: 6px; vertical-align: 1px;
  font: 700 10.5px/1 "Inter", system-ui, sans-serif; letter-spacing: .03em;
  color: var(--ok); border: 1px solid var(--ok); border-radius: 5px; padding: 3px 6px;
  white-space: nowrap; }

/* mark-as-sold sheet + links in bubbles */
.dm-soldov { position: fixed; inset: 0; z-index: 80; background: rgba(11,12,15,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.dm-soldov .sheet { background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 16px; width: 100%; max-width: 460px; max-height: 86svh;
  overflow-y: auto; }
.dm-b .dm-link { color: inherit; text-decoration: underline; word-break: break-all; }
.dm-b.me .dm-link { color: #fff; }

/* followed-seller cards woven into the browse shelf */
.tsub .fnew { color: var(--danger); font-weight: 700; letter-spacing: .06em; }

/* search filters panel */
#filterbtn { display: inline-flex; align-items: center; gap: 6px; }
#filterbtn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
#filterbtn.on .hubcount { color: #fff; border-color: rgba(255,255,255,.4); }
#filterpanel { margin-top: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 14px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.fcheck { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.fcheck input { width: 16px; height: 16px; accent-color: var(--ink); }
.shipnote { font-size: 12.5px; color: var(--muted); }
.shipnote.free { color: var(--ok); font-weight: 700; }

/* search: suggestions, recents, results bar, list view */
.suggest { border: 1px solid var(--line-strong); border-radius: 2px; background: var(--panel);
  margin-top: 6px; overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; padding: 10px 14px;
  border: 0; background: none; font: inherit; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.suggest button:hover { background: var(--panel-2); }
.recent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.recent .rlab { font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); }
.recent .rchip { border: 1px solid var(--line); border-radius: 2px; background: var(--panel);
  padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--ink); }
.recent .rchip:hover { border-color: var(--ink); }
.recent .rclear { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 15px; }
.resultsbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.resultsbar b { font-size: 14px; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.fchip { border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: #fff;
  font: 600 12px/1 "Inter", system-ui, sans-serif; padding: 5px 8px; cursor: pointer; }
.fchip:hover { background: #24262c; }
.viewtog { display: flex; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; }
.viewtog button { border: 0; background: var(--panel); width: 34px; height: 30px; cursor: pointer;
  font-size: 14px; color: var(--muted); }
.viewtog button.on { background: var(--ink); color: #fff; }
.grid.aslist { display: flex; flex-direction: column; gap: 10px; }
.grid.aslist .tile { display: flex; align-items: center; gap: 12px; padding-right: 12px; }
.grid.aslist .timg { width: 74px; aspect-ratio: 3/4.2; flex: none; }
.grid.aslist .timg .ptmark { transform: scale(.8); top: 4px; left: 4px; }
.grid.aslist .heartbtn { width: 26px; height: 26px; font-size: 12px; }
.grid.aslist .tname { flex: 1; margin: 0; }
.grid.aslist .tprice, .grid.aslist .tsub { padding: 0; margin: 0; white-space: nowrap; }

/* chunk C/D: attention line, away banner, seller box, top-seller, analytics table */
.cp-attn { margin-top: 8px; font-size: 13px; color: var(--muted); }
.cp-attn span:first-child { color: var(--danger); font-weight: 600; }
.cp-away { border: 1px solid var(--line-strong); border-left: 3px solid var(--faint);
  border-radius: 2px; background: var(--panel-2); color: var(--muted); font-size: 13.5px;
  padding: 10px 12px; margin-bottom: 12px; }
.sellerbox { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sb-id { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.sb-id img, .sb-id .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  font: 600 17px Inter, sans-serif; color: var(--muted); border: 1px solid var(--line); flex: none; }
.sb-id b { font-size: 15.5px; }
.sb-sub { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.sb-stats { font-size: 13.5px; color: var(--muted); }
.sb-stats .stars { color: var(--blue); letter-spacing: 1px; }
.sb-acts { display: flex; gap: 8px; }
.topseller { font: 800 9.5px/1 var(--mono); letter-spacing: .1em; color: #fff;
  background: linear-gradient(115deg, #96731c, #c9a43c); border-radius: 3px;
  padding: 3px 6px; vertical-align: 3px; margin-left: 6px; white-space: nowrap; }
.showsub .attn { color: var(--danger); font-weight: 700; }
.statscroll { overflow-x: auto; margin-top: 14px; }
table.stats { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.stats th { text-align: right; font: 700 11px var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding: 8px 10px; cursor: pointer;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.stats th:first-child { text-align: left; cursor: default; }
table.stats th.on { color: var(--ink); }
table.stats td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.stats td.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
table.stats td a { color: var(--ink); font-weight: 600; }
table.stats td .ok { color: var(--ok); font-weight: 700; }

/* card+profile batch: flip, story, comps, QR, pop chip, announce, shows, featured */
.flipbtn { display: block; margin: 8px auto 0; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.flipbtn:hover { color: var(--ink); }
.cp-img { perspective: 900px; }
.cp-img.flipping > * { transform: rotateY(90deg); transition: transform .22s ease-in; }
.cp-img.flipin > * { animation: flipin .24s ease-out; }
@keyframes flipin { from { transform: rotateY(-90deg); } to { transform: rotateY(0); } }
.cp-thumbs .vbadge { display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 16px; color: var(--muted); }
.certverify { font-size: 12px; margin-left: 6px; }
.popchip { font: 700 10.5px/1 var(--mono); letter-spacing: .05em; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 3px 6px; margin-left: 6px;
  background: var(--panel-2); white-space: nowrap; }
.storyline { list-style: none; margin-top: 14px; position: relative; padding-left: 22px; }
.storyline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line-strong); }
.storyline li { position: relative; padding: 0 0 16px; }
.storyline li:last-child { padding-bottom: 0; }
.storyline .dot { position: absolute; left: -21px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--panel); border: 3px solid var(--ink); }
.storyline time { font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  letter-spacing: .04em; display: block; }
.storyline p { font-size: 14.5px; margin-top: 2px; }
.comps { display: flex; flex-direction: column; }
.comprow { display: flex; align-items: baseline; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.comprow:hover { text-decoration: none; background: var(--panel-2); }
.comprow .n { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.comprow b { font-size: 14.5px; }
.comprow time { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.qrov { position: fixed; inset: 0; z-index: 90; background: rgba(255,255,255,.98);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qrsheet { text-align: center; padding: 24px; max-width: 420px; }
.qrsheet img { width: min(70vw, 380px); height: auto; margin: 0 auto; }
.qrname { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.qrprice { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.announce { border: 1px solid var(--blue); border-radius: 2px; background: var(--panel);
  color: var(--ink); font-size: 14.5px; font-weight: 600; padding: 11px 14px; margin-top: 14px;
  max-width: 60ch; }
.showsched .showdate { display: flex; gap: 12px; align-items: baseline; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.showsched .showdate:first-of-type { margin-top: 10px; }
.showsched time { font-family: var(--mono); font-size: 12px; color: var(--blue-hi);
  font-weight: 700; white-space: nowrap; }
.showsched span { color: var(--muted); font-size: 13px; }
.featgrid .tile { border-color: var(--line-strong); }
