/* ==========================================================================
   Second Shift Supply Co. — design tokens & styles
   Vintage industrial signage, reimagined for a modern B2B marketplace.
   ========================================================================== */

:root {
  /* Paper & ink */
  --paper: #ECE4D3;
  --paper-2: #E3D9C4;
  --card: #F6F1E6;
  --ink: #1B2036;
  --ink-2: #474B5E;
  --ink-3: #5C5D66;
  --line: #1B2036;
  --hair: rgba(27, 32, 54, 0.18);

  /* Signage palette (from reference) */
  --navy: #22336B;
  --red: #C2382B;
  --red-dark: #A42D22;
  --mustard: #D9A527;
  --mustard-soft: #E9C566;
  --mustard-ink: #8C6A12; /* mustard dark enough for text on cream */
  /* Supporting industry tones — restrained, print-like */
  --olive: #66632F;
  --rust: #9E4B26;
  --slate: #475861;
  --brown: #6A4A30;

  /* Type */
  --f-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --f-script: 'Yellowtail', 'Brush Script MT', cursive;

  --border: 2px solid var(--line);
  --shadow: 4px 4px 0 var(--line);
  --radius: 2px;
  --gutter: 24px;
  --maxw: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  /* Subtle print grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

/* ---------- Type utilities ---------- */
.display {
  font-family: var(--f-sans);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: var(--card); box-shadow: 3px 3px 0 var(--line); }
.btn--primary:hover { background: var(--red-dark); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--line); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--card); }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--sm { padding: 8px 12px; font-size: 12px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  background: var(--card);
  white-space: nowrap;
}
.chip:hover { background: var(--mustard-soft); }
.chip.is-active { background: var(--ink); color: var(--card); }
.chip--x span[aria-hidden] { font-size: 15px; line-height: 1; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: var(--paper); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
@media (max-width: 760px) { .topbar__right { display: none; } .topbar__inner > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; } }

#header { display: contents; }
.masthead { background: var(--paper); border-bottom: var(--border); position: sticky; top: 0; z-index: 20; }
.masthead__inner { display: flex; align-items: center; gap: 32px; padding-top: 14px; padding-bottom: 14px; }
.mainnav { display: flex; gap: 20px; margin-left: auto; white-space: nowrap; }
.mainnav a { text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.is-active { border-bottom-color: var(--red); }
@media (max-width: 1180px) { .mainnav__how { display: none; } }
@media (max-width: 860px) { .mainnav { display: none; } .masthead__cta { margin-left: auto; } }
.cta__short { display: none; }
@media (max-width: 420px) {
  .masthead__cta { padding: 10px 14px; font-size: 13px; }
  .masthead__cta .cta__long { display: none; }
  .masthead__cta .cta__short { display: inline; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.logo__script { font-family: var(--f-script); font-size: 34px; line-height: 1; color: var(--navy); transform: translateY(-2px); }
.logo__plate {
  font-stretch: 125%; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--red); color: var(--card); padding: 4px 8px 3px; border-radius: 1px;
}
.logo--inverse .logo__script { color: var(--mustard); }
@media (max-width: 420px) { .logo__script { font-size: 28px; } .logo__plate { display: none; } }

.industrybar { border-top: 1px solid var(--hair); background: var(--paper-2); }
.industrybar__inner { display: flex; gap: 2px; }
.navdrop { position: relative; }
.navdrop__top {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; color: var(--ink-2);
}
.navdrop__caret { font-size: 9px; opacity: .6; }
.navdrop:hover .navdrop__top, .navdrop:focus-within .navdrop__top { color: var(--ink); border-bottom-color: var(--mustard); }
.navdrop__top.is-active { color: var(--ink); border-bottom-color: var(--red); }
.navdrop__menu {
  position: absolute; top: 100%; left: 0; z-index: 30; min-width: 250px;
  background: var(--card); border: var(--border); box-shadow: var(--shadow);
  padding: 8px 0; display: none;
}
.navdrop:hover .navdrop__menu, .navdrop:focus-within .navdrop__menu { display: block; }
.navdrop:nth-last-child(-n+2) .navdrop__menu { left: auto; right: 0; }
.navdrop__all { display: block; padding: 8px 16px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--hair); font-weight: 800; font-size: 13px; text-decoration: none; color: var(--red); }
.navdrop__menu ul { list-style: none; margin: 0; padding: 0; }
.navdrop__menu li a { display: block; padding: 6px 16px; font-size: 14px; text-decoration: none; color: var(--ink); }
.navdrop__menu li a:hover, .navdrop__menu li a:focus-visible { background: var(--mustard-soft); }
/* Small screens: horizontal scroll strip, no hover menus */
@media (max-width: 860px) {
  .industrybar__inner { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .industrybar__inner::-webkit-scrollbar { display: none; }
  .navdrop__menu, .navdrop__caret { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 8px; scroll-margin-top: 120px; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 16px; border-bottom: var(--border); padding-bottom: 12px; margin-bottom: 24px; }
.sechead__title { font-size: clamp(24px, 3.2vw, 36px); margin-top: 6px; }
.sechead__action { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.sechead__action:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__title { margin: 14px 0 18px; }
.hero__title .display { display: block; font-size: clamp(34px, 5.2vw, 64px); line-height: .98; color: var(--navy); }
.hero__script { display: block; font-size: clamp(56px, 8.4vw, 108px); line-height: .9; color: var(--red); margin-top: -4px; transform: rotate(-3deg); transform-origin: left; padding-left: 4px; }
.hero__lede { font-size: 18px; color: var(--ink-2); max-width: 36em; margin-bottom: 24px; }
.hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }

/* Search */
.search { display: flex; border: var(--border); background: var(--card); box-shadow: var(--shadow); }
.search__industry { position: relative; flex: 0 0 auto; border-right: var(--border); background: var(--paper-2); }
.search__industry select {
  appearance: none; border: 0; background: transparent; height: 100%;
  padding: 0 34px 0 14px; font-weight: 700; font-size: 14px; cursor: pointer; max-width: 220px;
}
.search__industry::after { content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 12px; }
.search__input { flex: 1; min-width: 0; }
.search__input input { width: 100%; border: 0; background: transparent; padding: 18px 16px; font-size: 16px; }
.search__input input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--mustard); outline-offset: 2px; }
.search__btn { border: 0; border-left: var(--border); box-shadow: none; border-radius: 0; padding: 0 26px; }
.search__btn:active { transform: none; }
@media (max-width: 640px) {
  .search { flex-wrap: wrap; }
  .search__industry { flex-basis: 100%; border-right: 0; border-bottom: var(--border); }
  .search__industry select { width: 100%; max-width: none; padding: 12px 14px; }
  .search__input { flex: 1 1 60%; }
  .search__input input { padding: 14px; }
  .search__btn { padding: 0 18px; }
}

/* Sign card — homage to the reference business card */
.signcard { background: var(--mustard); border: var(--border); box-shadow: 6px 6px 0 var(--line); padding: 14px; color: var(--navy); }
.signcard__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signcard__block { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; color: var(--card); text-decoration: none; font-weight: 700; font-size: 14px; font-stretch: 110%; }
.signcard__block .kicker { color: inherit; opacity: .85; }
.signcard__block:hover span:last-child { text-decoration: underline; }
.bg-red { background: var(--red); }
.bg-navy { background: var(--navy); }
.signcard__main { display: flex; align-items: center; gap: 18px; padding: 26px 6px 20px; }
.signcard__num { font-stretch: 100%; font-weight: 900; font-size: clamp(64px, 8vw, 92px); line-height: .85; letter-spacing: -.03em; }
.signcard__rule { align-self: stretch; width: 3px; background: var(--navy); }
.signcard__label { display: flex; flex-direction: column; line-height: 1; }
.signcard__label .display { font-size: clamp(22px, 2.6vw, 30px); }
.signcard__label .script { color: var(--red); font-size: clamp(34px, 3.8vw, 46px); margin: -6px 0 2px; transform: rotate(-4deg); transform-origin: left; }
.signcard__sub { font-weight: 800; font-stretch: 125%; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; align-self: flex-end; }
.signcard__bar { background: var(--red); color: var(--card); text-align: center; padding: 10px; font-weight: 800; font-stretch: 125%; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.ticker { background: var(--ink); color: var(--paper); border-top: var(--border); border-bottom: var(--border); }
.ticker__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.ticker__inner span:nth-child(even) { color: var(--mustard); }

/* ---------- Industry tiles ---------- */
.igrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--border); border-left: var(--border); }
@media (max-width: 1060px) { .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .igrid { grid-template-columns: 1fr; } }
.itile { position: relative; border-right: var(--border); border-bottom: var(--border); background: var(--card); display: flex; flex-direction: column; }
.itile::before { content: ''; height: 10px; background: var(--tone); border-bottom: var(--border); }
.itile__link { display: block; padding: 18px 18px 8px; text-decoration: none; flex: 1; }
.itile__link:hover .itile__name { color: var(--red); }
.itile__top { display: flex; justify-content: space-between; align-items: baseline; }
.itile__num { font-weight: 900; font-size: 40px; line-height: 1; color: var(--tone); letter-spacing: -.02em; }
.itile__count { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.itile__name { font-stretch: 118%; font-weight: 800; font-size: 18px; text-transform: uppercase; margin: 12px 0 8px; line-height: 1.15; }
.itile__blurb { font-size: 14px; color: var(--ink-2); margin: 0; }
.itile__cats { list-style: none; margin: 0; padding: 10px 18px 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.itile__cats a { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.itile__cats a:hover { text-decoration-color: var(--red); }

/* Tone mapping (used by tiles, plates, rules) */
.tone-navy, .tone-bar-navy, .tone-rule-navy { --tone: var(--navy); --tone-ink: var(--paper); }
.tone-red, .tone-bar-red, .tone-rule-red { --tone: var(--red); --tone-ink: var(--paper); }
.tone-mustard, .tone-bar-mustard, .tone-rule-mustard { --tone: var(--mustard); --tone-ink: var(--navy); }
.tone-olive, .tone-bar-olive, .tone-rule-olive { --tone: var(--olive); --tone-ink: var(--paper); }
.tone-rust, .tone-bar-rust, .tone-rule-rust { --tone: var(--rust); --tone-ink: var(--paper); }
.tone-slate, .tone-bar-slate, .tone-rule-slate { --tone: var(--slate); --tone-ink: var(--paper); }
.tone-brown, .tone-bar-brown, .tone-rule-brown { --tone: var(--brown); --tone-ink: var(--paper); }
.tone-ink, .tone-bar-ink, .tone-rule-ink { --tone: var(--ink); --tone-ink: var(--mustard); }

/* ---------- Photo plates (placeholder imagery) ---------- */
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); container-type: inline-size; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.plate {
  background-color: var(--tone);
  color: var(--tone-ink);
  /* fine diagonal hatching, like a printed halftone plate */
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.07) 0 1px, transparent 1px 7px);
}
.plate__frame {
  position: absolute; inset: 5cqw; border: max(1px, .5cqw) solid currentColor;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 4cqw; opacity: .95;
}
.plate__top, .plate__view {
  position: absolute; left: 3cqw; right: 3cqw; display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: clamp(9px, 3.6cqw, 13px); letter-spacing: .1em; text-transform: uppercase;
}
.plate__top { top: 2.5cqw; justify-content: flex-start; }
.plate__view { bottom: 2.5cqw; justify-content: center; opacity: .8; }
.plate__mark { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(14px, 9.5cqw, 64px); line-height: .95; letter-spacing: -.01em; overflow-wrap: anywhere; }
.plate__model { font-family: var(--f-mono); font-size: clamp(9px, 3.8cqw, 18px); margin-top: 2cqw; opacity: .85; }
.photo--thumb .plate__top, .photo--thumb .plate__view, .photo--thumb .plate__model { display: none; }
.photo--thumb .plate__mark { font-size: 12cqw; }

/* ---------- Listing cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 440px) { .grid, .grid--3 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; background: var(--card); border: var(--border); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.card .photo { border-bottom: var(--border); }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.card__meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__title { font-size: 16px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--hair); }
.card__loc { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.price { font-weight: 900; font-stretch: 110%; letter-spacing: -.01em; color: var(--ink); }
.price small { font-size: .6em; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.card__price { font-size: 22px; }
.price--xl { font-size: 40px; line-height: 1; }

.cond { display: inline-block; padding: 3px 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--line); white-space: nowrap; }
.cond--new-surplus { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.cond--like-new { background: var(--mustard); color: var(--ink); }
.cond--good { background: var(--card); }
.cond--fair { background: var(--paper-2); color: var(--ink-2); border-style: dashed; }
.cond--for-parts { background: var(--red); color: var(--paper); border-color: var(--red); }

/* ---------- How it works ---------- */
.how { background: var(--paper-2); border-top: var(--border); border-bottom: var(--border); margin-top: 64px; padding-bottom: 56px; }
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .how__grid { grid-template-columns: 1fr; } }
.how__col { border: var(--border); background: var(--card); }
.how__title { padding: 14px 20px; font-size: 20px; color: var(--card); border-bottom: var(--border); }
.how__col--buy .how__title { background: var(--navy); }
.how__col--sell .how__title { background: var(--red); }
.how__steps { list-style: none; margin: 0; padding: 0; }
.how__steps li { display: flex; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--hair); }
.how__steps li:last-child { border-bottom: 0; }
.how__n { font-family: var(--f-mono); font-weight: 600; font-size: 14px; border: 1.5px solid var(--line); border-radius: 50%; width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; }
.how__steps h4 { font-size: 17px; margin: 6px 0 4px; }
.how__steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Sell band ---------- */
.sellband { margin-top: 72px; background: var(--mustard); border-top: var(--border); border-bottom: var(--border); }
.sellband__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.sellband .kicker { color: var(--navy); }
.sellband__title { margin-top: 8px; color: var(--navy); }
.sellband__title .display { font-size: clamp(26px, 3.6vw, 44px); }
.sellband__title .script { color: var(--red-dark); font-size: clamp(38px, 5vw, 60px); display: inline-block; transform: rotate(-3deg); }
@media (max-width: 760px) { .sellband__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.footer__brand p { color: rgba(236, 228, 211, .7); margin-top: 14px; max-width: 28em; font-size: 15px; }
.footer h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); margin-bottom: 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; font-size: 14px; color: rgba(236, 228, 211, .88); }
.footer a:hover { color: var(--paper); text-decoration: underline; }
.footer__base { border-top: 1px solid rgba(236, 228, 211, .2); }
.footer__base-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; font-family: var(--f-mono); font-size: 12px; color: rgba(236, 228, 211, .6); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__base-inner { flex-direction: column; gap: 4px; } }
main { display: block; min-height: 60vh; padding-bottom: 72px; }
main:has(> .sellband:last-child) { padding-bottom: 0; }

/* ---------- Page head & breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs span:last-child { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs__sep { color: var(--ink-3); }

.pagehead { padding: 24px 0 24px; border-bottom: var(--border); margin-bottom: 28px; position: relative; }
.pagehead[class*='tone-rule-']::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 120px; height: 6px; background: var(--tone); }
.pagehead__title { font-size: clamp(30px, 4.6vw, 54px); margin-top: 8px; color: var(--navy); }
.pagehead__title .script { color: var(--red); font-size: 1.25em; display: inline-block; transform: rotate(-3deg); margin-left: 6px; }
.pagehead__lede { color: var(--ink-2); font-size: 17px; max-width: 46em; margin: 12px 0 0; }
.catchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Browse ---------- */
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .browse { grid-template-columns: 1fr; gap: 20px; } }
.browse__side { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
@media (max-width: 860px) { .browse__side { position: static; max-height: none; } }

.filters__details { border: var(--border); background: var(--card); }
.filters__summary { list-style: none; cursor: pointer; padding: 12px 16px; font-size: 16px; border-bottom: var(--border); background: var(--ink); color: var(--card); display: flex; justify-content: space-between; }
.filters__summary::-webkit-details-marker { display: none; }
.filters__summary::after { content: '−'; font-family: var(--f-mono); }
details:not([open]) > .filters__summary { border-bottom: 0; }
details:not([open]) > .filters__summary::after { content: '+'; }
.fgroup { border: 0; border-bottom: 1px solid var(--hair); margin: 0; padding: 14px 16px; }
.fgroup legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.opt { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; cursor: pointer; clear: both; }
.opt input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.opt__label { flex: 1; line-height: 1.3; }
.opt__count { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.opt:hover .opt__label { color: var(--red); }
.pricerange { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; clear: both; }
.pricerange .input { min-width: 0; }
.filters__clear { display: block; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--red); }

.input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); font-size: 15px; clear: both;
}
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--mustard-soft); background: #FBF8F1; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; line-height: 1.5; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.toolbar__count { font-size: 15px; color: var(--ink-2); }
.toolbar__count strong { color: var(--ink); font-size: 18px; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort .input { width: auto; padding: 8px 10px; font-size: 14px; background: var(--card); }
.activechips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.empty { border: 2px dashed var(--line); padding: 48px 24px; text-align: center; background: var(--card); }
.empty__script { font-size: 48px; color: var(--red); line-height: 1.1; margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 32em; margin: 0 auto 20px; }
.empty__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Listing detail ---------- */
.ldetail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); grid-template-areas: "media info" "desc info"; grid-template-rows: auto 1fr; column-gap: 36px; margin-top: 20px; align-items: start; }
.ldetail__media { grid-area: media; }
.ldetail__info { grid-area: info; }
.ldetail__desc { grid-area: desc; }
@media (max-width: 960px) { .ldetail { grid-template-columns: 1fr; grid-template-areas: "media" "info" "desc"; row-gap: 24px; } }

.gallery__main { position: relative; border: var(--border); background: var(--card); }
.gallery__main .photo { aspect-ratio: 4 / 3; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border: var(--border); background: var(--card); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.gallery__nav:hover { background: var(--mustard); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gallery__thumb { padding: 0; border: var(--border); background: none; cursor: pointer; opacity: .6; transition: opacity .15s; }
.gallery__thumb:hover { opacity: .9; }
.gallery__thumb.is-active { opacity: 1; outline: 3px solid var(--red); outline-offset: 1px; }

.ldetail__desc { margin-top: 32px; }
.ldetail__h2 { font-size: 20px; border-bottom: var(--border); padding-bottom: 10px; margin-bottom: 16px; }
.ldetail__desc p { font-size: 17px; line-height: 1.65; max-width: 42em; }

.ldetail__info { display: grid; gap: 20px; }
.panel { border: var(--border); background: var(--card); padding: 18px 20px; }
.panel__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; font-weight: 500; line-height: 1.5; }

.buybox { box-shadow: 6px 6px 0 var(--line); }
.buybox__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.buybox__title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; font-stretch: 105%; line-height: 1.15; margin: 14px 0 12px; }
.buybox__price { display: flex; flex-direction: column; gap: 4px; }
.buybox__note { font-size: 14px; color: var(--ink-2); }
.buybox__cond { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 14px; color: var(--ink-2); }
.buybox__loc { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--hair); font-size: 15px; margin-bottom: 18px; }
.buybox__loc span:last-child { font-size: 14px; color: var(--ink-2); }
.buybox__actions { display: grid; gap: 10px; }
.buybox__fine { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; text-align: center; }

.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--hair); font-size: 14px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-top: 2px; }
.specs dd { margin: 0; font-weight: 600; }

.seller__head { display: flex; gap: 14px; align-items: center; }
.seller__mono { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; background: var(--navy); color: var(--mustard); font-weight: 900; font-stretch: 125%; font-size: 18px; border: var(--border); }
.seller__name { font-weight: 800; font-size: 18px; line-height: 1.2; }
.seller__type { font-size: 14px; color: var(--ink-2); }
.seller__stats { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0; border-top: 1px solid var(--hair); }
.seller__stats div { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.seller__stats div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--hair); }
.seller__stats div:nth-child(even) { padding-left: 12px; }
.seller__stats dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.seller__stats dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.seller__more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--red); }

.notice { margin-top: 20px; padding: 14px 18px; border: var(--border); background: var(--mustard); font-size: 15px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(27, 32, 54, .55); }
.modal__panel { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border: var(--border); box-shadow: 8px 8px 0 var(--line); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--navy); color: var(--card); border-bottom: var(--border); }
.modal__head h2 { font-size: 18px; }
.modal__x { background: none; border: 0; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal__body { padding: 20px 18px; }
.modal__ref { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper-2); border-left: 4px solid var(--red); margin-bottom: 16px; font-size: 14px; }
.sent { text-align: center; padding: 12px 0; }
.sent__script { font-size: 52px; color: var(--red); line-height: 1.1; }
.sent p { color: var(--ink-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; font-size: 14px; }
.field__label em { font-weight: 400; font-style: normal; color: var(--ink-3); }
.field__hint { font-size: 13px; color: var(--ink-3); }
.field__error { font-size: 13px; font-weight: 600; color: var(--red); }
.field__error:empty { display: none; }
.has-error .input { border-color: var(--red); background: #FBEDEA; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .field-row, .field-row--3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); }
.input-prefix .input { padding-left: 26px; }

/* ---------- Sell ---------- */
.sellhead { margin-bottom: 32px; }
.sell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .sell { grid-template-columns: 1fr; } .sell__preview { order: -1; } .sell__preview .tips { display: none; } .sell__preview .card { max-width: 340px; } }
.sell__form { gap: 24px; }
.formsec { border: var(--border); background: var(--card); margin: 0; padding: 0; min-width: 0; }
.formsec__legend { display: flex; align-items: center; gap: 12px; width: 100%; float: left; padding: 12px 20px; border-bottom: var(--border); background: var(--paper-2); }
.formsec__n { font-family: var(--f-mono); font-weight: 600; font-size: 13px; background: var(--ink); color: var(--mustard); padding: 2px 8px; }
.formsec__legend .display { font-size: 17px; }
.formsec__body { clear: both; display: grid; gap: 18px; padding: 20px; }

.condpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.condpick__opt { position: relative; cursor: pointer; }
.condpick__opt input { position: absolute; opacity: 0; }
.condpick__card { display: grid; gap: 4px; height: 100%; padding: 12px; border: 1.5px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-2); transition: background .12s; }
.condpick__card strong { color: var(--ink); font-size: 15px; }
.condpick__opt:hover .condpick__card { background: var(--paper-2); }
.condpick__opt input:checked + .condpick__card { background: var(--navy); color: rgba(246, 241, 230, .8); border-color: var(--navy); box-shadow: 3px 3px 0 var(--line); }
.condpick__opt input:checked + .condpick__card strong { color: var(--card); }
.condpick__opt input:focus-visible + .condpick__card { outline: 3px solid var(--mustard); outline-offset: 2px; }
.condpick .field__error { grid-column: 1 / -1; }
.has-error .condpick__card { border-color: var(--red); }

.dropzone { display: grid; gap: 6px; place-items: center; text-align: center; padding: 32px 20px; border: 2px dashed var(--line); background: var(--paper); cursor: pointer; color: var(--ink-2); font-size: 14px; transition: background .12s; }
.dropzone:hover, .dropzone.is-over { background: var(--mustard-soft); }
.dropzone__title { font-size: 18px; color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; border: var(--border); background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--mustard); font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; }
.thumb__x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; line-height: 1; font-size: 16px; padding: 0; }
.thumb__x:hover { background: var(--red); color: var(--card); }

.sell__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sticky { position: sticky; top: 140px; display: grid; gap: 20px; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }

/* ---------- Film grain overlay ----------
   Sits above everything (including cards and plates) for a printed look.
   Tune strength with --grain-opacity. */
:root { --grain-opacity: .22; }
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .55'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Buying flows: delivery, sheets, inbox, deal cards
   ========================================================================== */

/* Header messages link */
.inboxlink { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 2px; border-bottom: 2px solid transparent; }
.inboxlink:hover, .inboxlink.is-active { border-bottom-color: var(--red); }
.inboxlink__badge { position: absolute; top: -4px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--card); font-size: 11px; font-family: var(--f-mono); display: grid; place-items: center; border: 1.5px solid var(--paper); }
@media (max-width: 1060px) { .inboxlink__label { display: none; } }
@media (max-width: 860px) { .inboxlink { margin-left: auto; } .masthead__cta { margin-left: 0; } .masthead__inner { gap: 16px; } }

/* Card tags */
.card__media { position: relative; }
.card__ship, .card__status { position: absolute; top: 10px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border: 1.5px solid var(--line); }
.card__ship { right: 10px; background: var(--card); color: var(--ink); }
.card__status { left: 10px; background: var(--red); color: var(--card); }

/* Listing: delivery block */
.delivery { display: grid; gap: 0; border: 1px solid var(--hair); background: var(--paper-2); margin-bottom: 16px; }
.delivery__opt { display: flex; gap: 12px; padding: 12px 14px; }
.delivery__opt + .delivery__opt { border-top: 1px solid var(--hair); }
.delivery__icon { font-size: 18px; line-height: 1.3; }
.delivery__opt div { display: grid; gap: 1px; font-size: 14px; }
.delivery__opt small { color: var(--ink-3); font-size: 12.5px; }
.statusflag { padding: 10px 14px; margin-bottom: 14px; font-weight: 700; font-size: 14px; border: var(--border); }
.statusflag--pending { background: var(--mustard); }
.statusflag--sold { background: var(--navy); color: var(--card); }

/* Sheets */
.sheetitem { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--paper-2); border: 1px solid var(--hair); }
.sheetitem__photo { width: 64px; flex: 0 0 64px; border: 1.5px solid var(--line); }
.sheetitem div:last-child { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.sheetitem span { color: var(--ink-2); font-size: 13px; }
.quickchips { display: flex; flex-wrap: wrap; gap: 6px; }
.quickchips .chip { cursor: pointer; font-family: inherit; }
.quickchips--center { justify-content: center; }
.quickchips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.privacy-note { font-size: 12.5px; color: var(--ink-3); margin: 0; text-align: center; }
.center { text-align: center; }
.offerinput { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 0; }
.offerinput span { font-size: 40px; font-weight: 900; color: var(--ink-2); }
.offerinput input { width: 7ch; font-size: 48px; font-weight: 900; font-stretch: 110%; border: 0; border-bottom: 3px solid var(--line); background: transparent; text-align: center; padding: 0; }
.offerinput input:focus { outline: none; border-bottom-color: var(--red); }
.deliverypick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.deliverypick legend { margin-bottom: 8px; }
.deliverypick__opt, .deliveryset__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; }
.deliverypick__opt:has(input:checked), .deliveryset__opt:has(input:checked) { background: var(--mustard-soft); }
.deliverypick__opt input, .deliveryset__opt input { accent-color: var(--red); margin-top: 3px; width: 16px; height: 16px; }
.deliverypick__opt span, .deliveryset__opt span { display: grid; gap: 2px; font-size: 14px; }
.deliverypick__opt small, .deliveryset__opt small { color: var(--ink-2); font-size: 13px; }
.deliveryset { display: grid; gap: 10px; }
.deliveryset__cost { max-width: 220px; }
.summary { margin: 0; border-top: 1px solid var(--hair); }
.summary div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.summary dd { margin: 0; font-weight: 700; }
.summary__total { font-size: 18px !important; border-bottom: var(--border) !important; }
.summary__total dd { font-weight: 900; }
.demo-box { font-size: 13.5px; color: var(--ink-2); background: var(--paper-2); border: 1.5px dashed var(--line); padding: 12px 14px; }
.demo-box strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* Inbox layout */
.pagehead--tight { padding: 16px 0 12px; margin-bottom: 16px; }
.pagehead--tight .pagehead__title { font-size: 30px; margin-top: 4px; }
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); border: var(--border); background: var(--card); height: min(720px, calc(100vh - 220px)); min-height: 480px; }
.inbox__list { border-right: var(--border); overflow-y: auto; }
.inbox__thread { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.inbox__placeholder { flex: 1; display: grid; place-items: center; color: var(--ink-3); }
.inbox__placeholder .script { font-size: 40px; }
.inbox__empty { padding: 32px 20px; text-align: center; }
.inbox__empty .script { font-size: 36px; color: var(--red); }
.inbox__empty p { color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .inbox__list { border-right: 0; }
  .inbox.has-thread .inbox__list { display: none; }
  .inbox:not(.has-thread) .inbox__thread { display: none; }
  .inbox.has-thread { height: calc(100vh - 190px); }
}

.tlist { list-style: none; margin: 0; padding: 0; }
.tlist__item { position: relative; display: flex; gap: 12px; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--hair); }
.tlist__item:hover { background: var(--paper); }
.tlist__item.is-active { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--red); }
.tlist__photo { width: 56px; flex: 0 0 56px; border: 1.5px solid var(--line); align-self: flex-start; }
.tlist__body { min-width: 0; flex: 1; display: grid; gap: 1px; }
.tlist__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.tlist__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlist__top span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tlist__title, .tlist__preview { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlist__title { color: var(--ink-2); }
.tlist__preview { color: var(--ink-3); }
.is-unread .tlist__preview { color: var(--ink); font-weight: 700; }
.tlist__dot { position: absolute; right: 14px; bottom: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.tlist__item .pill { align-self: flex-start; margin-top: 22px; }
.tlist__dot { top: 16px; bottom: auto; }

.pill { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1.5px solid var(--line); background: var(--card); white-space: nowrap; }
.pill--countered, .pill--accepted, .pill--shipped { background: var(--mustard); }
.pill--paid { background: var(--navy); color: var(--card); border-color: var(--navy); }
.pill--completed { background: var(--ink); color: var(--card); }
.pill--declined { color: var(--ink-3); border-style: dashed; }

/* Thread */
.thread { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.thread__head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: var(--border); background: var(--paper-2); }
.thread__back { display: none; font-size: 28px; text-decoration: none; padding: 0 8px 0 0; line-height: 1; }
@media (max-width: 860px) { .thread__back { display: block; } }
.thread__item { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.thread__item:hover strong { color: var(--red); }
.thread__photo { width: 52px; flex: 0 0 52px; border: 1.5px solid var(--line); }
.thread__item div:last-child { display: grid; min-width: 0; font-size: 13px; color: var(--ink-2); }
.thread__item strong { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread__delivery { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.thread__msgs { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }

.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg time { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.msg--me { align-self: flex-end; align-items: flex-end; }
.msg--them { align-self: flex-start; align-items: flex-start; }
.msg--sys { align-self: center; align-items: center; max-width: 92%; }
.bubble { padding: 9px 13px; font-size: 15px; line-height: 1.4; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px 14px 14px 3px; }
.msg--me .bubble { background: var(--navy); color: var(--card); border-color: var(--navy); border-radius: 14px 14px 3px 14px; }
.bubble--typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.bubble--typing span:nth-child(2) { animation-delay: .2s; }
.bubble--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.dealcard { border: var(--border); background: var(--card); padding: 10px 14px; min-width: 220px; box-shadow: 3px 3px 0 var(--line); }
.dealcard__title { font-weight: 900; font-stretch: 110%; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.dealcard p { margin: 4px 0 0; font-size: 14px; }
.dealcard .muted, .muted { color: var(--ink-2); font-size: 13px; }
.dealcard--offer { border-left: 6px solid var(--navy); }
.dealcard--counter { border-left: 6px solid var(--mustard); }
.dealcard--accept { background: var(--mustard); }
.dealcard--decline { background: var(--paper-2); border-style: dashed; box-shadow: none; }
.dealcard--info { border-left: 6px solid var(--red); text-align: left; }
.sysline { align-self: center; text-align: center; font-size: 13px; color: var(--ink-2); padding: 6px 12px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); max-width: 92%; }
.sysline--warn { background: #FBEDEA; border: 1.5px solid var(--red); color: var(--ink); }
.sysline--done { font-weight: 700; color: var(--ink); }
.mono { font-family: var(--f-mono); }

.dealbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: var(--border); background: var(--card); font-size: 14px; }
.dealbar--hot { background: var(--mustard-soft); }
.dealbar--done { background: var(--ink); color: var(--card); font-weight: 700; }
.dealbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.composer { display: grid; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hair); background: var(--card); }
.composer__row { display: flex; gap: 8px; }
.composer__row .input { flex: 1; min-width: 0; }
.composer .privacy-note { text-align: left; }

/* ==========================================================================
   Seller side: onboarding, shop dashboard, shipping, ratings, policy
   ========================================================================== */

.pagehead--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pagehead__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section--tight { padding-top: 40px; }

/* Tabs */
.tabs { display: flex; border: var(--border); background: var(--card); }
.tabs__tab { padding: 8px 18px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.tabs__tab + .tabs__tab { border-left: var(--border); }
.tabs__tab.is-active { background: var(--ink); color: var(--card); }
.tabs__count { background: var(--red); color: var(--card); font-family: var(--f-mono); font-size: 11px; padding: 0 6px; border-radius: 9px; }

/* Onboarding */
.onboard { display: grid; grid-template-columns: 280px minmax(0, 620px); gap: 40px; padding-top: 40px; justify-content: center; align-items: start; }
@media (max-width: 860px) { .onboard { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--hair); font-weight: 700; font-size: 15px; color: var(--ink-3); background: transparent; }
.steps li span { font-family: var(--f-mono); font-size: 12px; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.steps li.is-current { border: var(--border); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.steps li.is-current span { background: var(--red); color: var(--card); border-color: var(--red); }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done span { background: var(--navy); color: var(--card); border-color: var(--navy); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { flex-direction: column; font-size: 11px; text-align: center; gap: 4px; padding: 8px 4px; } }
.onboard__card { padding: 28px; box-shadow: 6px 6px 0 var(--line); }
.onboard__title { font-size: clamp(26px, 3vw, 36px); color: var(--navy); }
.onboard__card .pagehead__lede { margin: 0 0 4px; font-size: 16px; }
.onboard__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--hair); }
.privacy-callout { font-size: 14px; padding: 10px 14px; background: var(--paper-2); border-left: 4px solid var(--navy); }
.agreements { display: grid; gap: 12px; }
.agreements .check { align-items: flex-start; font-weight: 500; font-size: 15px; }
.agreements .check input { margin-top: 3px; flex-shrink: 0; }
.has-error.agreements .check { color: var(--red); }

/* Shop dashboard */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--border); background: var(--card); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 18px 20px; border-right: 1px solid var(--hair); }
.stat:last-child { border-right: 0; }
@media (max-width: 760px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hair); } }
.stat__value { font-weight: 900; font-stretch: 110%; font-size: 34px; line-height: 1; color: var(--navy); }
.stat__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.stat__sub { font-size: 13px; margin-top: 4px; color: var(--ink-3); }
.stat__sub a { color: var(--red); font-weight: 700; }
.mylistings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mylisting { position: relative; display: flex; flex-direction: column; border: var(--border); background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.mylisting__photo { display: block; border-bottom: var(--border); }
.mylisting__status { position: absolute; top: 10px; right: 10px; }
.mylisting__body { flex: 1; display: grid; gap: 4px; align-content: start; padding: 12px 14px; }
.mylisting__title { font-weight: 800; font-size: 16px; line-height: 1.25; text-decoration: none; }
.mylisting__title:hover { color: var(--red); }
.mylisting__price { font-weight: 900; font-size: 20px; }
.mylisting__meta, .mylisting__activity { font-size: 13px; color: var(--ink-2); }
.mylisting__activity a { color: var(--ink); }
.mylisting__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
@media (max-width: 1100px) { .mylistings { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 860px) { .mylistings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sell form: shipping box */
.shipbox { display: grid; gap: 14px; padding: 16px; border: 1.5px solid var(--line); background: var(--paper); }
.shipbox__head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.shipbox__head a { font-size: 13px; font-weight: 600; color: var(--red); }
.shipbox__warn { margin: 0; font-size: 13.5px; padding: 10px 12px; background: var(--mustard-soft); border: 1px solid var(--hair); }
.field-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .field-row--4 { grid-template-columns: 1fr 1fr; } }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); pointer-events: none; }
.input-suffix .input { padding-right: 30px; }
.summary .is-warn dd, .summary .is-warn dt { color: var(--red); }
.summary--sm div { font-size: 13.5px; padding: 5px 0; }
.summary--sm .summary__total { font-size: 15px !important; }
.free { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--olive); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* Ratings */
.stars { color: var(--mustard); letter-spacing: 1px; -webkit-text-stroke: .5px var(--ink); }
.starpick { display: flex; gap: 2px; }
.starpick button { background: none; border: 0; padding: 0 2px; font-size: 28px; line-height: 1; cursor: pointer; color: var(--paper-2); -webkit-text-stroke: 1px var(--ink); transition: color .1s, transform .1s; }
.starpick:hover button { color: var(--mustard); }
.starpick button:hover ~ button { color: var(--paper-2); }
.starpick button:hover { transform: scale(1.12); }
.dealbar--done .stars { -webkit-text-stroke: 0; }

/* Policy page */
.policy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 760px) { .policy__grid { grid-template-columns: 1fr; } }
.policy__section { margin-bottom: 20px; }
.policy__h { font-size: 18px; margin: 4px 0 12px; }
.policy__h:not(:first-child) { margin-top: 24px; }
.policy .policy__big { font-size: 64px; font-weight: 900; line-height: 1; margin: 0 0 8px; color: var(--red); }
.policy p { font-size: 15.5px; }
.policy__steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15.5px; }
.policy__example { margin-top: 18px; padding: 12px 16px; background: var(--mustard-soft); border-left: 4px solid var(--mustard); font-size: 15px; }
.ratetable { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 15px; }
.ratetable th { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: var(--border); padding: 6px 0; }
.ratetable td { padding: 7px 0; border-bottom: 1px dashed var(--hair); }
.ratetable td:last-child, .ratetable th:last-child { text-align: right; font-weight: 700; }

/* Publish-time account sheet */
.miniprog { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.miniprog li { counter-increment: s; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 8px; border-top: 4px solid var(--paper-2); }
.miniprog li::before { content: counter(s) ". "; }
.miniprog li.is-current { color: var(--ink); border-top-color: var(--red); }
.miniprog li.is-done { color: var(--ink-2); border-top-color: var(--navy); }
.acct__lede { font-size: 15px; margin: 0 0 14px; }
.codeinput { font-family: var(--f-mono); font-size: 24px; letter-spacing: .4em; text-align: center; }
.linkbtn { background: none; border: 0; padding: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; cursor: pointer; justify-self: center; }
.notice--soft { background: var(--paper-2); margin-bottom: 16px; }
.verified { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: var(--card); padding: 2px 6px; vertical-align: 2px; }

/* Sign-in */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; background: #fff; color: #1f1f1f; border: 1.5px solid #747775; border-radius: 4px; font-family: 'Roboto', var(--f-sans); font-weight: 600; font-size: 15px; cursor: pointer; }
.gbtn:hover { background: #f6f6f6; }
.orline { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.orline::before, .orline::after { content: ''; flex: 1; border-top: 1px solid var(--hair); }
.signinlink { background: none; border: 0; padding: 6px 2px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.signinlink:hover { border-bottom-color: var(--red); }

/* Account menu */
.acctmenu { position: relative; }
.acctmenu__btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 2px; cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.acctmenu__avatar { width: 32px; height: 32px; display: grid; place-items: center; background: var(--navy); color: var(--mustard); font-weight: 900; font-size: 12px; border: var(--border); border-radius: 50%; letter-spacing: 0; }
.acctmenu__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctmenu__btn.is-active .acctmenu__avatar { background: var(--red); color: var(--card); }
@media (max-width: 1200px) { .acctmenu__name { display: none; } }
.acctmenu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; background: var(--card); border: var(--border); box-shadow: var(--shadow); padding: 6px 0; display: none; }
.acctmenu:hover .acctmenu__panel, .acctmenu:focus-within .acctmenu__panel { display: block; }
.acctmenu__panel::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.acctmenu__who { display: grid; gap: 2px; padding: 8px 16px 10px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; font-size: 14px; }
.acctmenu__who span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.acctmenu__panel a, .acctmenu__panel button { display: block; width: 100%; text-align: left; padding: 8px 16px; font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
.acctmenu__panel a:hover, .acctmenu__panel button:hover { background: var(--mustard-soft); }
.acctmenu__panel button[data-signout] { border-top: 1px solid var(--hair); margin-top: 4px; color: var(--red); font-weight: 700; }

/* ==========================================================================
   Seller photos: catalog mount + shot list + enhance tools
   ========================================================================== */

/* Real photos: unified grade + paper mat + lot tag, so phone photos sit in the brand */
.photo--real { background: var(--card); }
.photo--real img {
  filter: saturate(.9) contrast(1.04) sepia(.08) brightness(1.02);
}
.photo--real::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 max(4px, 1.6cqw) var(--card), inset 0 0 0 calc(max(4px, 1.6cqw) + 1.5px) var(--line);
}
.photo__tag {
  position: absolute; left: max(4px, 1.6cqw); bottom: max(4px, 1.6cqw);
  font-family: var(--f-mono); font-size: clamp(9px, 2.6cqw, 12px); letter-spacing: .08em; text-transform: uppercase;
  background: var(--card); color: var(--ink); padding: 3px 8px 2px; border-top: 1.5px solid var(--line); border-right: 1.5px solid var(--line);
}
.photo--thumb .photo__tag { display: none; }
.photo--thumb.photo--real::after { box-shadow: none; }

/* Shot list */
.shotlist { border: 1.5px solid var(--line); background: var(--paper); padding: 14px 16px; display: grid; gap: 10px; }
.shotlist__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.shotlist__head span { font-size: 13px; color: var(--ink-2); }
.shotlist ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .shotlist ol { grid-template-columns: 1fr 1fr; } }
.shotlist li { display: grid; gap: 4px; padding: 10px; background: var(--card); border: 1px solid var(--hair); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.shotlist li span { font-family: var(--f-mono); font-size: 11px; color: var(--red); }
.shotlist li small { font-weight: 400; color: var(--ink-3); }
.shotlist__tips { margin: 0; font-size: 13px; color: var(--ink-2); }
.check--sm { font-size: 14px; font-weight: 500; }

/* Upload thumbnails with tools */
.thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.thumb { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--card); }
.thumb img { aspect-ratio: 4 / 3; height: auto; }
.thumb figcaption { top: 0; bottom: auto; }
.thumb__tools { display: flex; border-top: 1.5px solid var(--line); }
.thumb__tools button { flex: 1; padding: 6px 4px; background: var(--card); border: 0; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.thumb__tools button + button { border-left: 1px solid var(--hair); }
.thumb__tools button:hover { background: var(--mustard-soft); }
.thumb__tools button[aria-pressed="true"] { color: var(--navy); }

/* Form alignment: fields in a row line up at the top even when one has a hint,
   and text inputs and dropdowns share one height. */
.field { align-content: start; }
.field-row { align-items: start; }
input.input, select.input { height: 44px; }
.input-prefix .input, .input-suffix .input { height: 44px; }
.codeinput { height: auto; }

/* ---------- Legal pages ---------- */
.legal__body { max-width: 46em; display: grid; gap: 28px; }
.legal__section { border-top: 1px solid var(--hair); padding-top: 20px; }
.legal__section ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal__section li { margin-bottom: 6px; }
.legal__section a, .legal__nav a { color: var(--navy); }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 40px 0 56px; padding-top: 20px; border-top: var(--border); font-family: var(--f-mono); font-size: 14px; }

/* Featured row: always one row of 4 on wider screens, 2 × 2 on phones */
@media (max-width: 1100px) { .grid--row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 760px) { .grid--row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- Photo flipper on listing cards ---------- */
.flip { position: relative; }
.flip__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0 0 3px;
  font-size: 24px; line-height: 1; font-weight: 700; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 50%;
  opacity: 0; transition: opacity .12s ease;
}
.flip__btn--prev { left: 8px; }
.flip__btn--next { right: 8px; }
.flip__btn:hover { background: var(--mustard); }
.flip:hover .flip__btn, .flip__btn:focus-visible { opacity: 1; }
.flip__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; z-index: 2; }
.flip__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--line); opacity: .7; }
.flip__dots span.is-on { background: var(--ink); opacity: 1; }
/* Touch screens: swipe instead of arrows. */
@media (hover: none) { .flip__btn { display: none; } }
.flip .plate__view { bottom: 20px; }

/* ---------- Contact topics ---------- */
.pagehead__lede a { color: var(--navy); font-weight: 700; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.contact__card { display: grid; gap: 4px; padding: 14px 16px; border: var(--border); background: var(--card); text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.contact__card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.contact__card strong { font-size: 16px; }
.contact__card span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Branded scrollbars (inbox, browse filters, pop-ups) ---------- */
.thread__msgs, .inbox__list, .modal__panel, .browse__side {
  scrollbar-width: thin;
  scrollbar-color: var(--navy) var(--paper-2);
}
.thread__msgs::-webkit-scrollbar, .inbox__list::-webkit-scrollbar, .modal__panel::-webkit-scrollbar, .browse__side::-webkit-scrollbar { width: 12px; }
.thread__msgs::-webkit-scrollbar-track, .inbox__list::-webkit-scrollbar-track, .modal__panel::-webkit-scrollbar-track, .browse__side::-webkit-scrollbar-track {
  background: var(--paper-2); border-left: 1.5px solid var(--line);
}
.thread__msgs::-webkit-scrollbar-thumb, .inbox__list::-webkit-scrollbar-thumb, .modal__panel::-webkit-scrollbar-thumb, .browse__side::-webkit-scrollbar-thumb {
  background: var(--navy); border: 3px solid var(--paper-2); border-left-width: 4px;
}
.thread__msgs::-webkit-scrollbar-thumb:hover, .inbox__list::-webkit-scrollbar-thumb:hover, .modal__panel::-webkit-scrollbar-thumb:hover, .browse__side::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ---------- Hero time card (replaces the old sign card) ---------- */
.timecard-wrap { position: relative; justify-self: center; width: min(400px, 100%); isolation: isolate; }
.timecard {
  position: relative;
  background: var(--card); color: var(--navy);
  border: var(--border); box-shadow: 8px 8px 0 var(--line);
  padding: 30px 22px 18px; transform: rotate(2deg);
  transition: transform .2s ease;
}
.timecard:hover { transform: rotate(.5deg); }
/* A second card peeking out behind, in mustard */
.timecard-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--mustard); border: var(--border);
  transform: rotate(-5deg) translate(-14px, 6px);
}
.timecard__hole { position: absolute; top: 10px; left: 50%; width: 44px; height: 12px; margin-left: -22px; border-radius: 6px; background: var(--paper); border: 2px solid var(--line); }
.timecard__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 3px double var(--line); }
.timecard__title { font-weight: 900; font-stretch: 125%; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.timecard__no { font-family: var(--f-mono); font-size: 13px; color: var(--red); letter-spacing: .08em; }
.timecard__name { display: flex; align-items: baseline; gap: 10px; padding: 10px 0 6px; border-bottom: 1.5px solid var(--line); }
.timecard__name .script { color: var(--red); font-size: 28px; line-height: 1; transform: rotate(-2deg); }
.timecard__rows { margin: 0; }
.timecard__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.timecard__row dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.timecard__row dd { margin: 0; display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 15px; }
/* Numbers look machine-punched: mono, slightly off-register */
.timecard__punch { font-family: var(--f-mono); font-weight: 600; font-size: 40px; line-height: 1; color: var(--navy); text-shadow: 1.5px 1px 0 rgba(194, 56, 43, .35); }
.timecard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.timecard__btn { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; color: var(--card); text-decoration: none; font-weight: 700; font-size: 14px; border: 2px solid var(--line); transition: transform .12s ease, box-shadow .12s ease; }
.timecard__btn .kicker { color: inherit; opacity: .85; }
.timecard__btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--line); }
.timecard__foot { margin-top: 14px; text-align: left; padding-right: 64px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
/* Rubber stamp */
.timecard__stamp {
  position: absolute; right: -26px; bottom: -30px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; color: var(--red);
  border: 3px solid var(--red); outline: 1.5px solid var(--red); outline-offset: -8px;
  transform: rotate(14deg); background: rgba(246, 241, 230, .6); mix-blend-mode: multiply; pointer-events: none;
}
.timecard__stamp span { font-weight: 900; font-stretch: 125%; font-size: 22px; text-transform: uppercase; line-height: 1; }
.timecard__stamp small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 960px) { .timecard { transform: rotate(1deg); } .timecard-wrap::before { transform: rotate(-3deg) translate(-6px, 6px); } .timecard-wrap { margin: 8px 12px 0; } .timecard__stamp { right: -6px; } }
@media (max-width: 420px) { .timecard__actions { grid-template-columns: 1fr; } .timecard__punch { font-size: 32px; } }

/* ---------- Starter kits ---------- */
.igrid--kits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.igrid--kits3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tone-bar-mustard .kit__from { color: var(--navy); }
@media (max-width: 1060px) { .igrid--kits, .igrid--kits3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .igrid--kits, .igrid--kits3 { grid-template-columns: 1fr; } }
.kit__from { font-weight: 900; font-size: 24px; line-height: 1; color: var(--tone); letter-spacing: -.01em; }
.kit__note { margin: 28px 0 0; font-size: 14px; color: var(--ink-2); }
.kit__note a { color: var(--navy); font-weight: 700; }
.kit__total { display: grid; gap: 2px; padding: 14px 18px; background: var(--card); border: var(--border); box-shadow: var(--shadow); min-width: 200px; }
.kit__total strong { font-size: 40px; font-weight: 900; line-height: 1; color: var(--navy); }
.kit__total span:last-child { font-size: 13px; color: var(--ink-2); }
.kitlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.kitlist__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: var(--border); }
.kitlist__n { font-family: var(--f-mono); font-size: 13px; color: var(--red); }
.kitlist__label { font-stretch: 118%; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.kitlist__meta { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.kitlist__more { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--navy); }
.kitlist__empty { margin: 0; padding: 18px; border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 14px; }

/* ---------- Seller landing page ---------- */
.sellerhero { padding: 56px 0 24px; }
.sellerhero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sellerhero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sellerstats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: var(--border); background: var(--card); box-shadow: 8px 8px 0 var(--line); }
.sellerstats div { padding: 20px; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.sellerstats div:nth-child(2n) { border-right: 0; }
.sellerstats div:nth-child(n+3) { border-bottom: 0; }
.sellerstats dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sellerstats dd { margin: 6px 0 0; font-weight: 900; font-size: 44px; line-height: 1; color: var(--navy); }
.sellerstats div:nth-child(-n+2) dd { color: var(--red); }
@media (max-width: 960px) { .sellerhero__grid { grid-template-columns: 1fr; } }
.sellsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sellsteps li { border-top: 6px solid var(--navy); padding-top: 14px; }
.sellsteps__n { font-weight: 900; font-size: 36px; line-height: 1; color: var(--red); }
.sellsteps h3 { font-stretch: 118%; font-weight: 800; font-size: 17px; text-transform: uppercase; margin: 10px 0 6px; }
.sellsteps p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 960px) { .sellsteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sellsteps { grid-template-columns: 1fr; } }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reasons__item { padding: 20px 22px; border: var(--border); background: var(--card); }
.reasons__item h3 { font-size: 18px; margin-bottom: 8px; color: var(--navy); }
.reasons__item p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }
.faq { max-width: 46em; border-top: var(--border); }
.faq__item { border-bottom: 1.5px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--f-mono); color: var(--red); font-size: 20px; line-height: 1; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { margin: 0 0 16px; color: var(--ink-2); }
.faq__item a { color: var(--navy); font-weight: 700; }
.sellband__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sellband__link { font-weight: 700; color: var(--navy); font-size: 14px; }
@media (max-width: 760px) { .sellband__actions { align-items: flex-start; } }
.igrid--kits .itile__top { flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- Accessibility ---------- */
/* Mustard is too light for text on cream; use the deeper shade for text. */
.tone-bar-mustard .itile__num, .tone-bar-mustard .kit__from { color: var(--mustard-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skiplink { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; background: var(--navy); color: var(--card); font-weight: 700; text-decoration: none; border: 2px solid var(--line); }
.skiplink:focus { top: 12px; }
.footer__h { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); margin: 0 0 14px; font-weight: 500; line-height: 1.1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
