/* Kind of a Big Deal — a storefront for graded cards.
 *
 * The design follows the grading houses: a light, quiet ground, one accent used
 * sparingly, and the slab itself as the only thing allowed to be loud. Trust here
 * is not decoration — it comes from showing the grade, the cert you can verify,
 * and the photographs of the card itself, in plain type with room around it.
 *
 * The :root block below is generated from shop/palette.py; edit the tokens there.
 */

:root {
  --paper: #faf8f3;
  --panel: #f4f1ea;
  --panel-edge: #e9e4d8;
  --ink: #0f1720;
  --body: #33404f;
  --muted: #626c78;
  --line: #e3ded2;
  --accent: #1b4480;
  --accent-ink: #0b1f3a;
  --verified: #1b7046;
  --verified-wash: #e6f4ec;
  --white: #ffffff;
  --navy-800: #0b1f3a;
  --navy-900: #071429;
  --navy-100: #e6ecf5;
  --gold-500: #c9a227;
  --gold-400: #dcb84a;
  --gold-700: #8a6d12;
  --warning: #8a5900;
  --danger: #b3261e;
  --on-brand-muted: #c9d5e8;
  --focus: #2a5aa3;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow-slab: 0 10px 18px rgba(7, 20, 41, 0.25);
  --shadow-lift: 0 16px 28px rgba(7, 20, 41, 0.2);
  --measure: 62ch;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/jakarta-c46a510ab43925a5.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/jakarta-b275d1258601dda2.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/jakarta-38e3b8fd8045048e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/jakarta-153fc85b70298bee.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }

/* The browser hides [hidden] with display:none from its own stylesheet, which any
 * author `display` beats. /shop.js hides several elements by that attribute — the
 * cart count among them, and it needs display:inline-flex to centre its number — so
 * without this the empty badge would sit on every page. */
[hidden] { display: none !important; }

body {
  background: var(--paper);
  color: var(--body);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.021em;
  margin: 0;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }

.icon { display: block; flex: none; width: 24px; height: 24px; }

/* Skip past the chrome rather than tabbing through it. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- chrome ---------- */

.mode-banner {
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-header { background: var(--navy-800); color: #fff; }
.header-inner {
  max-width: 1260px; margin: auto; min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 40px;
}
.site-header a { color: #fff; text-decoration: none; }
.site-header nav a {
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 0.875rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.6); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--gold-500); }
.site-header :focus-visible, .skip-link:focus-visible { outline-color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { display: block; width: 34px; height: 34px; flex: none; }
.trust-bar { background: var(--navy-900); color: var(--on-brand-muted); }
.trust-bar ul { max-width: 1260px; margin: auto; padding: 12px 40px; display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; }
.trust-bar li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; }
.trust-bar .icon { color: var(--gold-400); width: 16px; height: 16px; }

.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.cart-link { display: inline-flex; align-items: center; gap: 0.4375rem; }
.cart-link .icon { width: 20px; height: 20px; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--pill);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ---------- page frame ---------- */

main { max-width: 1260px; margin: 0 auto; padding: 3.5rem 40px 4rem; }
.lede { max-width: 44ch; color: var(--muted); font-size: 1.0625rem; margin: 1rem 0 0; }
.empty {
  margin: 2.5rem 0 0;
  padding: 3rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.catalog-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 16ch; font-weight: 800; }

/* ---------- the assurance strip ---------- */

.assurance {
  list-style: none;
  margin: 4rem 0 0;
  padding: 0;
  border-top: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .assurance { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.assurance li { display: grid; align-content: start; gap: 0.75rem; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.assurance .icon { color: var(--gold-700); width: 26px; height: 26px; }
.assurance h2 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.assurance p { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: 34ch; }

/* ---------- the grid ---------- */

.grid {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.tile a {
  display: grid;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  height: auto;
  align-content: start;
}
.tile-slab {
  margin: 0 0 0.375rem;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}
.tile a:hover .tile-slab { transform: translateY(-3px); }
.tile a:hover .tile-title { text-decoration: underline; }
.tile-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.tile-price, .price { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; margin: 0; }
.tile-price { font-size: 1.0625rem; }
.tile-record { margin: 8px 0 0; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile-record a { display: inline; height: auto; color: var(--accent); text-decoration: underline; }

/* The grade is the headline fact about a graded card, so it gets a chip. */
.grade-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: start;
  justify-self: start; /* a grid child stretches by default; the chip must hug its text */
  width: fit-content;
  margin: 0;
  padding: 0.1875rem 0.5rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.35em;
  display: flex;
  align-items: center;
  gap: 0.4375rem;
}
/* The status dot appears only once /shop.js has an answer. The row keeps its height
 * either way, so learning the status does not shift the page. */
.availability[data-state]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.availability[data-state="available"] { color: var(--verified); font-weight: 700; }
.availability[data-state="held"] { color: var(--warning); font-weight: 700; }
.availability[data-state="sold"], .availability[data-state="unavailable"] { color: var(--danger); font-weight: 700; }

/* ---------- card images ---------- */

/* One panel treatment for every card image, on the grid and on the detail page:
 * the slab rests on a light surface with a soft shadow, the way a grading house
 * photographs it. Both panels must constrain the image — a panel that only styles
 * its box lets the photo render at its natural pixel size and burst the grid. */
.card-image, .tile-slab {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 20px;
}
.card-image { padding: 28px; }
.card-image > img, .card-image > a > img, .card-image > .slab-placeholder,
.tile-slab > img, .tile-slab > .slab-placeholder {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: contain;
  filter: drop-shadow(var(--shadow-slab));
}
.slab-placeholder { color: var(--muted); }
.card-image > a { display: block; text-align: center; font-size: 0.875rem; }
.card-image > a > span { display: block; padding-top: 0.75rem; }
.photo-dialog {
  width: min(96vw, 100rem);
  height: 94dvh;
  max-width: 96vw;
  max-height: 94dvh;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--body);
}
.photo-dialog[open] { display: flex; flex-direction: column; gap: 0.625rem; }
.photo-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.photo-heading, .photo-tools { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.photo-heading h2 { flex: 1; font-size: 1rem; line-height: 1.35; }
.photo-dialog button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.375rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
.photo-dialog button:disabled { opacity: 0.5; cursor: default; }
.photo-tools a { font-size: 0.875rem; padding: 0.5rem; }
.photo-status, .photo-help { margin: 0; font-size: 0.8125rem; }
.photo-viewport {
  flex: 1;
  min-height: 6rem;
  overflow: auto;
  background: var(--panel);
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
}
.photo-viewport:active { cursor: grabbing; }
.photo-viewport img { display: block; max-width: none; margin: auto; user-select: none; }

/* ---------- card detail ---------- */

.card-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 56rem) {
  .card-detail { grid-template-columns: 1.15fr 1fr; column-gap: 3.5rem; }
}
.crumbs { grid-column: 1 / -1; font-size: 0.9375rem; margin: 0 0 -0.75rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.images { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.details h1 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); margin: 0.75rem 0 0; }
.details .price { font-size: 2rem; margin: 1.25rem 0 0.375rem; letter-spacing: -0.02em; }

.listing-workspace { max-width: 68rem; }
.workspace-intro { background: var(--navy-800); color: var(--on-brand-muted); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.workspace-intro h1 { color: var(--white); }
.workspace-intro .eyebrow { color: var(--gold-400); }
.workspace-intro p:last-child { margin-bottom: 0; }
.workspace-intro a { color: var(--white); }
.workspace-intro :focus-visible { outline-color: var(--gold-400); }
.listing-workspace h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.listing-fields, .listing-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.listing-workspace label { display: grid; gap: 0.4rem; margin: 0.75rem 0; font-weight: 700; }
.listing-workspace input:not([type="checkbox"]), .listing-workspace select, .listing-workspace textarea {
  box-sizing: border-box; max-width: 100%; width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: white; color: var(--ink);
}
.listing-panel { background: var(--white); margin: 1.25rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.listing-panel h3 { margin-top: 0; }
.listing-panel details > summary { cursor: pointer; padding: 0.75rem 0; font-weight: 700; }
.listing-panel [data-listing-facts] label { display: flex; align-items: flex-start; gap: 0.75rem; }
.listing-panel [data-listing-facts] input { flex-shrink: 0; margin-top: 0.25rem; }
.listing-panel [data-listing-facts] > div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.listing-panel [data-listing-facts] p { font-size: 0.875rem; color: var(--muted); }
.listing-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.listing-workspace button { font: inherit; padding: 0.75rem 1rem; cursor: pointer; }
.listing-workspace button:disabled { cursor: default; opacity: 0.6; }
.listing-value { font-size: 1.5rem; font-weight: 700; }
.card-sections { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.card-disclosure { border-bottom: 1px solid var(--line); }
.card-disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 0.25rem; cursor: pointer; list-style: none; overflow-wrap: anywhere;
}
.card-disclosure > summary::-webkit-details-marker { display: none; }
.card-disclosure > summary::after {
  content: ''; width: 0.5rem; height: 0.5rem; flex-shrink: 0; margin-right: 0.5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.card-disclosure[open] > summary::after { transform: rotate(225deg); }
.card-disclosure > summary:hover { color: var(--accent); }
.card-disclosure > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.disclosure-title, .disclosure-value, .disclosure-note { display: block; }
.disclosure-title { font-size: 0.8125rem; color: var(--muted); }
.disclosure-value { font-weight: 700; margin-top: 0.25rem; color: var(--ink); }
.disclosure-note { font-size: 0.8125rem; color: var(--muted); margin-top: 0.375rem; }
.disclosure-content { padding: 0 0.25rem 1.25rem; overflow-wrap: anywhere; }
.card-disclosure .verify, .card-disclosure .meta, .card-disclosure .assurance-list {
  margin: 0; border: 0;
}
.card-disclosure .assurance-list { padding: 0; }

/* The verification block: grade, cert, and the link that proves both. */
.verify {
  margin: 1.5rem 0 0;
  padding: 1rem 1.125rem;
  background: var(--verified-wash);
  border: 1px solid #d8e7df;
  border-radius: var(--radius);
  display: grid;
  gap: 0.5rem;
}
.verify-line { display: flex; align-items: center; gap: 0.625rem; margin: 0; font-size: 0.9375rem; color: var(--ink); }
.verify-line .icon { color: var(--verified); width: 20px; height: 20px; }
.verify a { color: var(--verified); font-weight: 700; }
.verify a:hover { color: #0a4d31; }
.verify-note { margin: 0; font-size: 0.8125rem; color: var(--muted); padding-left: 1.875rem; }
.raw-condition { gap: 1rem; overflow-wrap: anywhere; }
.raw-condition h2, .raw-condition h3, .raw-condition p, .raw-condition dl, .raw-condition ul { margin: 0; }
.raw-condition dl { display: grid; gap: 0.75rem; }
.raw-condition dt { font-weight: 700; color: var(--ink); }
.raw-condition dd { margin: 0.25rem 0 0; }
.raw-condition ul { padding-left: 1.25rem; }
.raw-condition .verify-note { padding-left: 0; }

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0 0;
  padding: 0.9375rem 2rem;
  background: var(--navy-800);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: background 180ms cubic-bezier(.2,.7,.2,1);
}
.buy:hover { background: var(--navy-900); color: #fff; }
.buy[aria-disabled="true"] { background: var(--muted); pointer-events: none; }

.fine-print { font-size: 0.875rem; color: var(--muted); max-width: 40ch; margin: 0.875rem 0 0; }

/* Buy now leads; Add to cart is the quieter second choice beside it. */
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.buy-row .buy { margin: 1.25rem 0 0; }
.add {
  margin: 1.25rem 0 0;
  padding: 0.875rem 40px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.add:hover { background: var(--navy-800); color: #fff; }
.add[data-in-cart="true"] { background: var(--verified-wash); border-color: var(--verified); color: var(--verified); }
.add:disabled { border-color: var(--line); color: var(--muted); cursor: default; }

/* ---------- cart ---------- */

.cart h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -0.02em; margin: 0; }
.cart-empty { margin: 1.5rem 0 0; color: var(--muted); font-size: 1.0625rem; }
.cart-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-row a { color: var(--ink); font-weight: 700; text-decoration: none; }
.cart-row a:hover { text-decoration: underline; }
.cart-row-price { font-variant-numeric: tabular-nums; font-weight: 700; }
.cart-row-note { grid-column: 1 / -1; font-size: 0.875rem; color: var(--accent); }
.cart-remove {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.cart-remove:hover { color: var(--accent); }
.cart-total { margin: 1.75rem 0 0; }
.cart-total-line { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 1.125rem; }
.cart-total-line strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--ink); }

.basket-problem-list { margin: 1.25rem 0 0; padding-left: 1.25rem; color: var(--body); }
.basket-problem-list li { margin: 0.375rem 0; }

/* The three promises, repeated where the money decision is made. */
.assurance-list { list-style: none; margin: 1.75rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.assurance-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; }
.assurance-list .icon { color: var(--ink); width: 22px; height: 22px; margin-top: 1px; }
.assurance-list strong { color: var(--ink); display: block; font-weight: 700; }
.assurance-list span { color: var(--muted); }

.meta { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.meta div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.6875rem 0; border-bottom: 1px solid var(--line); }
.meta dt { color: var(--muted); font-size: 0.9375rem; }
.meta dd { margin: 0; color: var(--ink); font-size: 0.9375rem; text-align: right; }

/* ---------- short pages ---------- */

.thanks, .not-found, .checkout-problem { max-width: 42rem; }
.thanks h1, .not-found h1, .checkout-problem h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.thanks p, .not-found p, .checkout-problem p { max-width: var(--measure); }
.thanks [data-order-state] { margin: 1.25rem 0 1.75rem; font-size: 1.0625rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-900);
  border-top: 0;
  padding: 3rem 40px;
  color: var(--on-brand-muted);
  font-size: 0.875rem;
}
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.25rem; }
.footer-assurance { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-assurance li { display: flex; align-items: center; gap: 0.5rem; color: var(--white); }
.footer-assurance .icon { color: var(--gold-400); width: 20px; height: 20px; }
.site-footer p { margin: 0; max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .tile a:hover .tile-slab { transform: none; }
}
.account { max-width: 48rem; margin: 3rem auto; padding: 0 1.5rem; }
.account h2 { margin-top: 2.5rem; }
.account p { line-height: 1.65; }
.google-signin { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 16px; color: #1f1f1f; background: #fff; border: 1px solid #747775; border-radius: 4px; font-family: Arial, sans-serif; font-size: 14px; font-weight: 500; text-decoration: none; }
.google-signin:hover { background: #f8fafd; }
.google-signin:focus-visible { outline: 3px solid #4285f4; outline-offset: 3px; }
/* Seller history has explicit labels, with no synthetic score or rating. */
.seller-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.seller-metrics[hidden] {
  display: none;
}
.seller-metrics > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.seller-metrics dt {
  font-size: 0.9rem;
}
.seller-metrics dd {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.cart-interest { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0; }

/* Guided card photography */
.inspection { max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem; }
.inspection button { font: inherit; font-size: .9rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; }
.inspection button:disabled { opacity: .5; cursor: wait; }
.inspection button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.inspection [data-inspection-send], .inspection [data-inspection-begin] { background: var(--navy-800); color: var(--paper); border-color: var(--ink); }
.inspection .text-button { padding-left: 0; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.inspection-intro { max-width: 650px; margin-bottom: 2rem; }
.inspection-intro h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
.inspection-intro .eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.inspection-tools, .inspection-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.5rem 0; }
.inspection-tools select { max-width: 220px; padding: .5rem; }
.inspection-conversation { display: grid; gap: 1rem; margin: 2rem 0; }
.inspection-bubble { border: 1px solid var(--line, #d8d5ce); border-radius: var(--radius); padding: 1rem 1.25rem; max-width: 92%; overflow-wrap: anywhere; }
.inspection-bubble p:first-child { margin-top: 0; }
.inspection-bubble p:last-child { margin-bottom: 0; }
.inspection-bubble.user { justify-self: end; background: var(--navy-100); }
.inspection-conversation > p { margin: 0; }
.inspection-bubble.assistant { justify-self: start; background: var(--white); }
.inspection-score { font-weight: 650; }
.inspection-next { background: var(--white); padding: 1.4rem; border: 1px solid var(--line, #d8d5ce); border-radius: var(--radius); }
.inspection-next h2 { margin-top: 0; }
.inspection-photo-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.inspection-photo-actions label { position: relative; display: inline-flex; padding: .75rem 1rem; border: 1px solid currentColor; border-radius: 8px; cursor: pointer; }
.inspection-photo-actions input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.inspection-photo-actions label:focus-within { outline: 3px solid currentColor; outline-offset: 3px; }
.inspection-thumbnails { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.inspection-thumbnails figure { width: 95px; margin: 0; }
.inspection-thumbnails img { width: 95px; height: 110px; object-fit: contain; border-radius: 5px; }
.inspection-thumbnails figcaption { font-size: .75rem; }
.inspection-thumbnails button { padding: .3rem; font-size: .7rem; margin-top: .3rem; }
.inspection-compose { display: flex; align-items: flex-end; gap: .75rem; margin: .5rem 0; }
.inspection-compose textarea { flex: 1; min-width: 0; padding: .9rem; font: inherit; font-size: 1rem; border: 1px solid var(--line, #d8d5ce); border-radius: 12px; resize: vertical; }
.inspection-consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.5rem; }
.inspection-consent input { margin-top: .35rem; }
.inspection details summary { cursor: pointer; }
@media (max-width: 480px) { .inspection-compose { flex-direction: column; align-items: stretch; } .inspection-bubble { max-width: 100%; } }


/* Shared production components from the September 2026 design system. */
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: 1rem; }
button, select { min-height: 44px; }
button { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); padding: 0.625rem 1rem; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); padding: 0.625rem; max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 3px var(--navy-100); }
.site-header nav .nav-sell { background: var(--gold-500); color: var(--navy-900); padding: 0.6875rem 1rem; border-radius: var(--radius-sm); border-bottom: 0; font-weight: 700; }
.site-header nav .nav-sell:hover { background: var(--gold-400); }
.catalog-hero { display: grid; gap: 32px; align-items: end; padding-bottom: 36px; border-bottom: 2px solid var(--navy-800); }
.eyebrow { color: var(--gold-700); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px; }
.hero-link { display: inline-flex; margin-top: 20px; padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); background: var(--navy-800); color: var(--white); font-weight: 700; text-decoration: none; }
.hero-link:hover { background: var(--navy-900); color: var(--white); }
.collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 32px; }
.collection-heading span { color: var(--muted); font-size: 0.8125rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold-400); }
.site-footer :focus-visible { outline-color: var(--gold-400); }
.listing-workspace [data-listing-ready], .listing-workspace [data-listing-compare] { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); font-weight: 700; }
.account-order { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.inspection-score, .listing-value, .seller-metrics dd { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 740px) { .catalog-hero { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
@media (max-width: 739px) {
  .header-inner { flex-wrap: wrap; padding: 16px 20px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 8px 14px; }
  .site-header nav a { font-size: 0.8125rem; }
  main { padding: 32px 20px 48px; }
  .site-footer { padding: 32px 20px; }
  .trust-bar ul { padding: 12px 20px; gap: 10px 20px; }
  .workspace-intro { padding: 24px; }
}

.population-scroll { overflow-x: auto; max-width: 100%; }
.population-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.population-table th, .population-table td { padding: .65rem; border-bottom: 1px solid var(--line); text-align: right; }
.population-table th:first-child, .population-table caption { text-align: left; }
.population-table caption { padding: .5rem 0; }
.knowledge-fact { margin-block: .8rem; }
/* Collector workspace: the collection remains the primary destination at every size. */
.collector-home, .collector-workspace { max-width: 1200px; margin: auto; padding: 3rem 1.5rem 5rem; }
.collector-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; min-height: 560px; }
.collector-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.06; letter-spacing: -.065em; margin: 1rem 0 1.5rem; }
.collector-hero p { max-width: 580px; line-height: 1.8; }
.collector-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.collector-hero-art { position: relative; height: 420px; }
.collector-art-card { width: 240px; height: 345px; border: 8px solid #f1eade; border-radius: 16px; position: absolute; left: 50%; top: 25px; box-shadow: 0 22px 45px #21182c30; }
.collector-art-back { transform: translateX(-65%) rotate(-14deg); background: repeating-linear-gradient(45deg, #ad873f, #ad873f 3px, #c9b37f 3px, #c9b37f 12px); }
.collector-art-front { transform: translateX(-35%) rotate(9deg); background: #37264c; color: #f8edce; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.collector-art-front strong { font-size: 4.6rem; letter-spacing: -.08em; line-height: .95; }
.collector-art-front span { font-size: .58rem; letter-spacing: .16em; }
.collector-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 4rem 0; }
.collector-steps article, .collector-model, .collector-profile, .collector-detail, .collector-save { padding: 2rem; border: 1px solid #d8d0df; border-radius: 18px; background: #fffdf9; }
.collector-model { background: #f3edf7; max-width: 900px; margin: auto; }
.collector-credits { border-left: 4px solid #9c7840; padding: 1rem 1.5rem; background: #faf5e9; margin: 1.5rem 0; line-height: 1.7; }
.collector-intro { margin-bottom: 2rem; }
.collector-profile { margin: 2rem 0; }
.collector-profile label, .collector-detail label, .collector-save label { display: block; margin: 1rem 0; }
.collector-profile input:not([type=checkbox]), .collector-detail input:not([type=checkbox]), .collector-detail textarea, .collector-detail select { display: block; width: 100%; padding: .75rem; margin-top: .5rem; border: 1px solid #c8bed0; border-radius: 8px; font: inherit; }
.collector-profile input:not([type=checkbox]) { max-width: 440px; }
.collector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.collector-tile { min-width: 0; border: 1px solid #dfd8e3; border-radius: 16px; padding: 1rem; background: #fffdf9; }
.collector-tile img, .collector-empty-photo { width: 100%; height: 260px; object-fit: contain; background: #f0edf2; border-radius: 10px; }
.collector-empty-photo { display: grid; place-items: center; color: #655970; }
.collector-tile a span { display: block; font-size: .8rem; margin: .5rem 0; }
.collector-tile button { text-align: left; font-size: 1rem; line-height: 1.5; }
.collector-tile p { font-size: .85rem; }
.collector-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.collector-photos img { width: 100%; height: 420px; object-fit: contain; background: #f2eff5; }
.collector-photos a span { display: block; padding: .5rem 0; }
.collector-detail fieldset { margin: 1rem 0; padding: 1rem; border: 1px solid #d8d0df; border-radius: 10px; }
.collector-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.collector-actions > p, .collector-actions > details { flex-basis: 100%; }
.collector-save { margin-top: 2rem; }
@media (max-width: 760px) { .collector-hero { grid-template-columns: 1fr; gap: 0; } .collector-hero-art { height: 370px; } .collector-steps, .collector-grid { grid-template-columns: 1fr; } .collector-photos img { height: 260px; } .collector-detail, .collector-profile { padding: 1rem; } }

.inspection-progress { padding: 1rem 1.25rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper, #f8f7f3); }
.inspection-progress progress { display: block; width: 100%; height: .7rem; border: 0; border-radius: 1rem; overflow: hidden; appearance: none; background: linear-gradient(90deg, #e5e2db 0%, #ad7a35 45%, #e5e2db 90%); background-size: 200% 100%; animation: inspection-progress 1.8s linear infinite; }
.inspection-progress progress::-webkit-progress-bar { background: transparent; }
.inspection-progress progress::-moz-progress-bar { background: transparent; }
.inspection-progress p { margin: .7rem 0 0; font-size: .9rem; }
@keyframes inspection-progress { to { background-position: -200% 0; } }

.collector-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.collector-tools .listing-panel { margin: 0; }
.collector-tools progress:not([hidden]) { display: block; width: 100%; height: .7rem; margin: 1rem 0; border: 0; border-radius: 1rem; overflow: hidden; appearance: none; background: linear-gradient(90deg, #e5e2db 0%, #ad7a35 45%, #e5e2db 90%); background-size: 200% 100%; animation: inspection-progress 1.8s linear infinite; }
.collector-tools progress::-webkit-progress-bar { background: transparent; }
.collector-tools progress::-moz-progress-bar { background: transparent; }


.identity-options { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.identity-options legend { font-weight: 700; padding: 0 .4rem; }
.identity-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; margin: 1rem 0; }
.identity-choice { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; text-align: left; white-space: normal; overflow-wrap: anywhere; padding: 1rem; border: 2px solid var(--line); border-radius: 10px; background: var(--paper, #f8f7f3); color: var(--ink, #102039); }
.identity-choice span { font-size: .9rem; font-weight: 400; line-height: 1.5; }
.identity-choice[aria-pressed="true"] { border-color: #8a6d32; background: #f6efdc; }
.identity-choice[aria-pressed="true"] strong::before { content: "✓ "; }
.identity-choice:focus-visible { outline: 3px solid #8a6d32; outline-offset: 3px; }

.collector-background { max-width: 80ch; margin: 2rem 0; overflow-wrap: anywhere; }
.collector-background article { margin: 1.5rem 0; padding-bottom: 1.5rem; border-bottom: 1px solid #e5e2db; }
.collector-background h4 { font-size: 1.1rem; margin-bottom: .6rem; }
.collector-background details { font-size: .9rem; }
.collector-background summary { cursor: pointer; }

/* Collection research stays readable while optional tools remain close at hand. */
.collector-background { max-width: none; }
.collector-background > header { padding: 1.25rem 0; border-bottom: 1px solid #d8d0df; }
.collector-background > header > p:first-child { font-size: .75rem; letter-spacing: .12em; font-weight: 700; }
.collector-background > header progress { width: min(100%, 28rem); height: .5rem; accent-color: #4c315e; }
.card-story-group { margin-top: 2rem; }
.card-story-group > h3 { margin-bottom: .3rem; }
.card-story-group > p { margin-top: 0; color: #645a68; }
.collector-background .card-story-detail { border: 1px solid #d8d0df; border-radius: 12px; padding: 1.25rem; margin: 1rem 0; background: #fff; }
.card-story-detail > p, .card-story-turn, .card-story-detail blockquote { max-width: 78ch; line-height: 1.7; }
.card-story-detail h4 { margin-top: 0; font-size: 1.15rem; }
.card-story-decision { font-size: .8rem; color: #51445d; font-weight: 650; }
.card-story-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.card-story-actions button { min-height: 44px; padding: .55rem .9rem; }
.card-story-actions button[aria-pressed=true] { background: #eee8f2; color: #372343; opacity: 1; }
.card-story-chat { border-top: 1px solid #d8d0df; margin-top: 1rem; padding-top: 1rem; }
.card-story-chat h5 { font-size: 1rem; margin: 0; }
.card-story-turn { padding: 1rem; border-radius: 10px; background: #f6f2f8; margin: 1rem 0; }
.card-story-turn > p:first-child { font-weight: 650; }
.card-story-detail blockquote { margin: .75rem 0; border-left: 3px solid #c0a6cc; padding-left: 1rem; }
.card-story-detail > details { margin-top: 1rem; }
.card-story-gaps, .card-story-settings { padding: 1rem 0; border-top: 1px solid #d8d0df; }
.collector-detail summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 600; }
.collector-photos img { height: 300px; }
.card-story-chat progress { width: 100%; height: .6rem; }
@media (max-width: 760px) {
  .collector-photos img { height: 200px; }
  .collector-background .card-story-detail { padding: 1rem; }
  .card-story-actions button { flex: 1 1 auto; }
}
