:root {
  --bg: #E7ECED;
  --surface: #F6F8F8;
  --surface-2: #DCE3E4;
  --ink: #162024;
  --muted: #56666A;
  --line: #C5CFD1;
  --primary: #162024;
  --primary-ink: #F6F8F8;
  --sticker: #F2C75C;
  --sticker-ink: #2A1E03;
  --trade: #9FDCCB;
  --trade-ink: #0B2B24;
  --flag: #2F63D6;
  --flag-ink: #FFFFFF;
  --sheet: #D2DADC;
  --sheet-edge: #BAC5C8;
  --pocket: rgba(255,255,255,.55);
  --pocket-edge: rgba(22,32,36,.12);
  --sheen: rgba(255,255,255,.55);
  --spine: #B4C0C3;
  --card-face: #FBFAF5;
  --card-ink: #1D2224;
  --card-muted: #6B7275;
  --focus: #2F63D6;
  --danger: #B3372F;
  --shadow: 0 1px 2px rgba(22,32,36,.08), 0 8px 24px rgba(22,32,36,.08);

  --fury: #C8423B;
  --calm: #3C8C59;
  --mind: #3A6DB5;
  --body: #D27A2A;
  --chaos: #7C4BAA;
  --order: #C79E1E;
  --colorless: #8A9497;

  --f-display: "Big Shoulders", "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111618;
    --surface: #1A2124;
    --surface-2: #232C2F;
    --ink: #E3EAEB;
    --muted: #93A2A5;
    --line: #2E393C;
    --primary: #E3EAEB;
    --primary-ink: #111618;
    --sticker: #E9BC4E;
    --trade: #7FCBB7;
    --flag: #6F97F0;
    --flag-ink: #0B1330;
    --sheet: #1B2225;
    --sheet-edge: #2A3438;
    --pocket: rgba(255,255,255,.035);
    --pocket-edge: rgba(255,255,255,.09);
    --sheen: rgba(255,255,255,.10);
    --spine: #0B0F10;
    --card-face: #E6E3D9;
    --card-ink: #1D2224;
    --card-muted: #62696C;
    --focus: #7EA3F5;
    --danger: #E7766C;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
    --fury: #D4524A;
    --calm: #4B9D68;
    --mind: #4C7FC7;
    --body: #DB8738;
    --chaos: #8D5DBB;
    --order: #D2AA2C;
    --colorless: #939DA0;
  }
}
:root[data-theme="dark"] {
  --bg: #111618;
  --surface: #1A2124;
  --surface-2: #232C2F;
  --ink: #E3EAEB;
  --muted: #93A2A5;
  --line: #2E393C;
  --primary: #E3EAEB;
  --primary-ink: #111618;
  --sticker: #E9BC4E;
  --trade: #7FCBB7;
  --flag: #6F97F0;
  --flag-ink: #0B1330;
  --sheet: #1B2225;
  --sheet-edge: #2A3438;
  --pocket: rgba(255,255,255,.035);
  --pocket-edge: rgba(255,255,255,.09);
  --sheen: rgba(255,255,255,.10);
  --spine: #0B0F10;
  --card-face: #E6E3D9;
  --card-ink: #1D2224;
  --card-muted: #62696C;
  --focus: #7EA3F5;
  --danger: #E7766C;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
  --fury: #D4524A;
  --calm: #4B9D68;
  --mind: #4C7FC7;
  --body: #DB8738;
  --chaos: #8D5DBB;
  --order: #D2AA2C;
  --colorless: #939DA0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  padding-inline: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.label {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- chrome ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
  flex-wrap: wrap; padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; grid-template-columns: repeat(3, 7px); gap: 2px;
  padding: 4px; border-radius: 4px; background: var(--primary);
}
.brand-mark i { width: 7px; height: 9px; border-radius: 1.5px; background: color-mix(in oklab, var(--primary-ink) 28%, transparent); }
.brand-mark i:nth-child(5) { background: var(--sticker); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; padding: 7px 13px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px; color: var(--muted);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--primary); color: var(--primary-ink); }

main { flex: 1; padding-block: 32px 56px; }
footer {
  border-top: 1px solid var(--line); padding-block: 22px 28px;
  font-size: 12.5px; color: var(--muted);
  display: grid; gap: 6px;
}
footer p { margin: 0; max-width: 80ch; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 500; font-size: 14px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn.danger { color: var(--danger); background: transparent; border-color: transparent; }
.btn.danger:hover { background: color-mix(in oklab, var(--danger) 10%, transparent); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); min-height: 40px;
}
textarea.input { min-height: 72px; resize: vertical; }
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 22%, transparent); }
.input:disabled { opacity: .5; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; cursor: pointer; font-weight: 500;
}
.chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--surface) 60%, transparent); }
.chip .ct { font-family: var(--f-mono); font-size: 12px; opacity: .7; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 9px; gap: 2px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }

/* terms tags (sticker vocabulary, used in lists) */
.tag {
  display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 3px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  white-space: nowrap;
}
.tag.sale { background: var(--sticker); color: var(--sticker-ink); }
.tag.trade { background: var(--trade); color: var(--trade-ink); }
.tag.plain { background: var(--surface-2); color: var(--muted); }
.tag.flag { background: var(--flag); color: var(--flag-ink); }

/* ---------- the card (rendered without art) ---------- */
.card {
  display: block; width: 100%; aspect-ratio: 63 / 88;
  border-radius: 5.5% / 4%;
  padding: 2.4%;
  background: linear-gradient(135deg, var(--d1) 0 50%, var(--d2) 50% 100%);
  container-type: inline-size;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  color: var(--card-ink);
  text-align: left;
}
.face {
  height: 100%; border-radius: 4cqw; background: var(--card-face);
  display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden;
}
.c-top { display: flex; align-items: center; gap: 3cqw; padding: 3.6cqw 4cqw 2.6cqw; min-height: 17cqw; }
.pip {
  flex: none; width: 12.5cqw; height: 12.5cqw; border-radius: 50%;
  background: var(--d1); color: #fff; display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 500; font-size: 7.4cqw; line-height: 1;
}
.c-name {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: 8.2cqw; line-height: .98; letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-art {
  position: relative; margin: 0 3.6cqw; border-radius: 2.4cqw; overflow: hidden;
  background:
    linear-gradient(var(--a), transparent 0 47%, rgba(255,255,255,.6) 47.6% 48.6%, transparent 49.4%),
    radial-gradient(120% 80% at 70% 20%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(calc(var(--a) + 90deg), var(--d1), color-mix(in oklab, var(--d2) 72%, #0b0b0b));
}
.c-glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 48cqw; line-height: 1;
  color: rgba(255,255,255,.2); text-transform: uppercase;
}
.ribbon {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(10,12,14,.72); color: #fff;
  font-family: var(--f-mono); font-size: 5.2cqw; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: 1.4cqw 0;
}
.c-type {
  padding: 2.4cqw 4cqw 0; font-size: 5.6cqw; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--card-muted);
}
.c-foot { display: flex; align-items: center; gap: 2.4cqw; padding: 1.4cqw 4cqw 3.4cqw; }
.c-no { font-family: var(--f-mono); font-size: 5.4cqw; color: var(--card-muted); flex: 1; white-space: nowrap; }
.rar {
  width: 8.6cqw; height: 8.6cqw; border-radius: 1.6cqw; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 5.4cqw; font-weight: 500; line-height: 1;
  border: .6cqw solid var(--card-muted); color: var(--card-muted);
}
.rar.r-rare { background: var(--card-ink); border-color: var(--card-ink); color: var(--card-face); }
.rar.r-epic { background: #B98A2C; border-color: #B98A2C; color: #fff; }
.rar.r-showcase { background: linear-gradient(135deg, #d46fa9, #e9c75a, #5dc3d6); border-color: transparent; color: #1b1b1b; }
.rar.r-promo { border-style: dashed; }
.might {
  width: 9.4cqw; height: 9.4cqw; transform: rotate(45deg); background: var(--card-ink);
  display: grid; place-items: center; border-radius: 1.2cqw; margin-right: .6cqw;
}
.might b { transform: rotate(-45deg); color: var(--card-face); font-family: var(--f-mono); font-weight: 500; font-size: 5.4cqw; }
.card.foil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,80,170,.22), rgba(255,230,90,.2) 30%, rgba(80,230,255,.22) 60%, rgba(170,90,255,.22));
  background-size: 220% 220%; mix-blend-mode: overlay;
  animation: foil 6s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.card.mini { width: 42px; flex: none; border-radius: 4px; padding: 2px; }
.card.mini .face { grid-template-rows: 1fr; border-radius: 2px; }
.card.mini .c-top, .card.mini .c-type, .card.mini .c-foot, .card.mini .ribbon { display: none; }
.card.mini .c-art { margin: 0; border-radius: 0; }

/* ---------- binder sheets & pockets ---------- */
.spread { display: grid; grid-template-columns: 1fr; gap: 22px; position: relative; }
@media (min-width: 980px) {
  .spread { grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .spread.two::before {
    content: ""; position: absolute; top: 26px; bottom: 0; left: 50%; width: 26px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--spine) 35% 65%, transparent);
    border-radius: 3px; opacity: .8;
  }
}
.sheet-wrap { display: grid; gap: 8px; }
.sheet-label { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.sheet {
  background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 10px;
  padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.pocket {
  position: relative; display: block; padding: 5%; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--pocket); box-shadow: inset 0 0 0 1px var(--pocket-edge);
  container-type: inline-size; text-align: left;
  transition: transform .15s ease;
}
.pocket::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(112deg, transparent 28%, var(--sheen) 40%, transparent 52%);
}
.pocket:hover { transform: translateY(-2px); }
.pocket.dim { opacity: .28; }
.pocket.empty { cursor: default; }
.pocket.empty:hover, .pocket.add:hover { transform: none; }
.pocket .ghost-card { display: block; aspect-ratio: 63 / 88; border-radius: 5.5% / 4%; }
.pocket.add .ghost-card {
  border: 2px dashed color-mix(in oklab, var(--muted) 60%, transparent);
  display: grid; place-items: center; align-content: center; gap: 4px;
  color: var(--muted); font-weight: 600; font-size: clamp(11px, 9cqw, 15px); text-align: center;
}
.pocket.add .ghost-card b { font-size: clamp(22px, 22cqw, 40px); font-weight: 400; line-height: 1; }
.pocket.add { cursor: pointer; }
.pocket.add:hover .ghost-card { border-color: var(--ink); color: var(--ink); }
.stickers { position: absolute; top: 25%; right: -2%; display: grid; justify-items: end; gap: 3px; z-index: 2; pointer-events: none; }
.sticker {
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(9.5px, 8cqw, 14px); line-height: 1;
  padding: .45em .55em; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transform: rotate(3deg);
}
.sticker.sale { background: var(--sticker); color: var(--sticker-ink); }
.sticker.trade { background: var(--trade); color: var(--trade-ink); transform: rotate(-2deg); }
.qty {
  position: absolute; left: 3%; top: 25%; z-index: 2; pointer-events: none;
  font-family: var(--f-mono); font-size: clamp(9.5px, 7.5cqw, 13px); line-height: 1;
  background: rgba(12,15,16,.82); color: #fff; padding: .35em .5em; border-radius: 3px;
}
.pflag {
  position: absolute; left: 7%; top: -4px; z-index: 2; pointer-events: none;
  font-size: clamp(9.5px, 7cqw, 12.5px); font-weight: 600; line-height: 1;
  background: var(--flag); color: var(--flag-ink); padding: .4em .6em; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2); white-space: nowrap;
}

/* ---------- market ---------- */
.page-head { display: grid; gap: 8px; margin-bottom: 26px; }
.page-head h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 6vw, 56px); line-height: .92; letter-spacing: .005em; }
.page-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.statline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.statline b { color: var(--ink); font-family: var(--f-mono); font-weight: 500; }

.market { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .market { grid-template-columns: 1fr; gap: 22px; } }
.filters { display: grid; gap: 18px; position: sticky; top: 16px; }
@media (max-width: 860px) { .filters { position: static; } }
.filters .group { display: grid; gap: 8px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters .field > span { font-size: 12px; }
.search { position: relative; }
.search .input { padding-left: 34px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.results-head .count { font-size: 13.5px; color: var(--muted); }
.results-head .count b { color: var(--ink); font-family: var(--f-mono); font-weight: 500; }
.results-head select { width: auto; min-height: 34px; padding: 5px 9px; font-size: 13.5px; }
.rlist { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.row {
  width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; text-align: left;
}
.row:hover { border-color: var(--muted); }
.row-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.row-name .v { font-weight: 500; color: var(--muted); font-size: 13px; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.row-meta .mono { font-size: 12px; }
.ddots { display: inline-flex; gap: 3px; }
.ddots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.avail { display: grid; justify-items: end; gap: 5px; text-align: right; }
.avail .ask { font-family: var(--f-mono); font-size: 15px; font-weight: 500; }
.avail .ask small { font-family: var(--f-body); font-size: 11.5px; color: var(--muted); font-weight: 500; margin-right: 4px; }
.avail .who { font-size: 12.5px; color: var(--muted); }
.avail .tags { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 520px) {
  .row { grid-template-columns: 42px minmax(0, 1fr); }
  .avail { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; gap: 8px; justify-content: start; }
}
.empty-state {
  border: 1px dashed var(--line); border-radius: 12px; padding: 32px 22px; text-align: center; color: var(--muted);
  display: grid; gap: 10px; justify-items: center;
}
.empty-state h3 { color: var(--ink); font-size: 17px; }

/* ---------- binder directory ---------- */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cover {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none;
}
.cover:hover { border-color: var(--muted); }
.cover-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 5px;
  background: var(--sheet); border: 1px solid var(--sheet-edge); border-radius: 6px;
}
.cover-grid i { aspect-ratio: 63 / 88; border-radius: 2px; background: linear-gradient(135deg, var(--d1) 0 50%, var(--d2) 50%); }
.cover-grid i.e { background: var(--pocket); box-shadow: inset 0 0 0 1px var(--pocket-edge); }
.cover h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; }
.cover .handle { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cover .facts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.cover .meet { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.you { font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .06em; vertical-align: middle; padding: 2px 6px; border-radius: 4px; background: var(--flag); color: var(--flag-ink); margin-left: 6px; text-transform: uppercase; }

/* ---------- binder page ---------- */
.bhead {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start;
  margin-bottom: 26px;
}
@media (max-width: 860px) { .bhead { grid-template-columns: 1fr; gap: 18px; } }
.bhead h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 7vw, 68px); line-height: .9; }
.bhead .handle { font-family: var(--f-mono); color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.bhead blockquote { margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--sticker); max-width: 60ch; font-size: 15.5px; }
.bhead .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.bhead .meta b { color: var(--ink); font-weight: 600; }
.contact {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px;
  display: grid; gap: 12px;
}
.contact .dh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact .dh .mono { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.contact p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btoolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.wants { margin-top: 40px; display: grid; gap: 12px; }
.wants-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wants-head h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.wants-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.witem {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.witem .n { font-weight: 600; font-size: 14px; line-height: 1.25; }
.witem .m { font-size: 12px; color: var(--muted); font-family: var(--f-mono); margin-top: 2px; }
.witem .n button { all: unset; cursor: pointer; }
.witem .n button:hover { text-decoration: underline; }
.witem .n button:focus-visible { outline: 2px solid var(--focus); }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(8,12,13,.5); }
.drawer {
  margin: 0 0 0 auto; width: min(460px, 100%); height: 100%; max-height: 100%; max-width: 100%;
  box-shadow: var(--shadow); overflow-y: auto;
}
.drawer-in { padding: 22px 22px 40px; display: grid; gap: 22px; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.dhero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 400px) { .dhero { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; } }
.dhero h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: .95; }
.dhero .v { display: inline-block; margin-top: 8px; }
.facts-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 13px; }
.facts-dl dt { color: var(--muted); }
.facts-dl dd { margin: 0; font-weight: 500; }
.section-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.section-t h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.offer {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 12px 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center;
}
.offer .who a { font-weight: 600; text-decoration: none; }
.offer .who a:hover { text-decoration: underline; }
.offer .det { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.offer .price { font-family: var(--f-mono); font-size: 16px; font-weight: 500; text-align: right; }
.offer .row2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: space-between; }
.offer .note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); font-style: italic; margin: 0; }
.wanted-by { display: flex; flex-wrap: wrap; gap: 6px; }
.wanted-by a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-weight: 500; }

.modal { width: min(560px, calc(100% - 32px)); border-radius: 14px; box-shadow: var(--shadow); max-height: calc(100% - 32px); overflow-y: auto; }
.modal-in { padding: 22px; display: grid; gap: 18px; }
.modal h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.modal .sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.picklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 330px; overflow-y: auto; }
.pick {
  width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 6px 10px 6px 6px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left;
}
.pick:hover, .pick:focus-visible { background: var(--surface-2); }
.pick .n { font-weight: 600; font-size: 14px; }
.pick .m { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.chosen { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.chosen .n { font-weight: 600; }
.chosen .m { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 440px) { .grid2 { grid-template-columns: 1fr; } }
.stepper { display: flex; align-items: stretch; }
.stepper .input { text-align: center; border-radius: 0; min-width: 0; }
.stepper button { width: 40px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 18px; }
.stepper button:first-child { border-radius: 8px 0 0 8px; border-right: 0; }
.stepper button:last-child { border-radius: 0 8px 8px 0; border-left: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.price-in { position: relative; }
.price-in .input { padding-left: 24px; }
.price-in::before { content: "$"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--f-mono); }
.err { color: var(--danger); font-size: 13px; margin: 0; }
.modal-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.modal-foot .right { display: flex; gap: 8px; margin-left: auto; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow); pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); z-index: 50;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 520px) {
  body { padding-inline: 16px; }
  .sheet { padding: 8px; gap: 7px; }
  main { padding-block: 24px 44px; }
}

/* ---------- live-site additions ---------- */
.card.has-art { padding: 0; background: var(--surface-2); }
.card.has-art img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.card.mini.has-art { padding: 0; }
.nav .btn { margin-left: 6px; }
.nav .btn.primary { color: var(--primary-ink); }
.nav .btn.primary:hover { color: var(--primary-ink); background: var(--primary); }
.loading { color: var(--muted); padding-block: 40px; }
.signin {
  max-width: 560px; margin: 24px auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); display: grid; gap: 12px; justify-items: start;
}
.signin h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 6vw, 48px); line-height: .95; }
.signin p { margin: 0; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.readonly { padding: 9px 11px; border-radius: 8px; background: var(--surface-2); font-family: var(--f-mono); font-size: 14px; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.preview-note {
  margin-top: 16px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
  background: color-mix(in oklab, var(--sticker) 20%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--sticker) 60%, transparent);
}
.preview-note .tag { vertical-align: 1px; }
