/* fitztoppicks.com — light theme, Collector's Shelf layout. */
:root {
  --bg: #ffffff; --alt: #f7f6fb; --card: #ffffff;
  --line: #e4e1ee; --line-soft: #efedf5; --line-strong: #d6d2e3;
  --ink: #17141f; --muted: #4d4860; --dim: #6b6580;
  --pink: #d61f69; --pink-hover: #b8185a; --pink-soft: #fde8f1; --pink-line: #f5c2d7;
  --blue: #06708f; --blue-dark: #054f66; /* ≥ 4.5:1 on white and the pale backgrounds */ --amber: #b45309; --green: #047857; --red: #be123c;
  --active: #f1eef9; --radius: 16px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Chakra Petch', var(--font);
  --pixel: 'Press Start 2P', monospace;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
/* Links inside text are underlined, not just colored (accessibility). */
p a, .crumbs a, .warn-box a, .ok-box a, .error-box a, .dim a:not(.btn), .muted a:not(.btn), .small a:not(.btn):not(.chip) { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.px { font-family: var(--pixel); font-size: 11px; letter-spacing: .06em; color: var(--blue); }
.hd { font-family: var(--display); font-weight: 700; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 14px; } .tiny { font-size: 12px; }
.pink { color: var(--pink); } .green { color: var(--green); } .amber { color: var(--amber); } .red { color: var(--red); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.wrap:not(.card):not(.panel) { padding-left: 0; padding-right: 0; } /* .wrap alone = page gutters; cards keep their padding */ .spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack.tight { gap: 6px; } .stack.loose { gap: 22px; }
.grow { flex: 1 1 auto; min-width: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,20,31,.05); }
.panel { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 20px; } .pad-lg { padding: 26px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  font: 700 15px/1.2 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-pink { background: var(--pink); color: #fff; } .btn-pink:hover { background: var(--pink-hover); color: #fff; }
.btn-line { border: 2px solid var(--blue); color: var(--ink); background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; } .btn-ghost:hover { background: var(--alt); color: var(--ink); }
.btn-danger { border-color: #fecdd3; color: var(--red); background: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
a.chip:hover { text-decoration: none; background: var(--alt); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"], .chip[aria-current] { border-color: var(--pink); background: var(--pink-soft); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-green { background: #dcfce7; color: #166534; } .b-amber { background: #fef3c7; color: #92400e; } .b-pink { background: #fce7f3; color: #9d174d; }
.b-cyan { background: #e0f2fe; color: #075985; } .b-gray { background: #f1eef9; color: var(--muted); } .b-red { background: #ffe4e6; color: #9f1239; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field .hint { font-weight: 400; font-size: 12px; color: var(--dim); }
.input, select.input, textarea.input { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink);
  padding: 10px 12px; font: 400 15px/1.3 var(--font); width: 100%; }
.input:focus { border-color: var(--blue); outline: 2px solid #bae6fd; }
.input.big { font: 700 24px/1.2 var(--display); padding: 12px; }
label.ck { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink); font-weight: 400; }
input[type=checkbox], input[type=radio] { accent-color: var(--pink); width: 16px; height: 16px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.error-box { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.ok-box { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.warn-box { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 14px; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tr.sel td { background: #fdf1f6; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Cartridge placeholder when a product has no photo yet */
.cart-art { width: 112px; height: 84px; border-radius: 10px 10px 4px 4px; background: #e4e1ee; border: 6px solid #d6d2e3;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.cart-art span { width: 64px; height: 30px; border-radius: 4px; background: var(--pink); }
.cart-art.sm { width: 52px; height: 40px; border-width: 4px; border-radius: 6px 6px 3px 3px; padding-bottom: 4px; }
.cart-art.sm span { width: 30px; height: 14px; }
.thumb { border-radius: 12px; background: var(--alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Store layout ---------- */
.site-header { display: flex; align-items: center; gap: 28px; padding: 16px clamp(16px, 4vw, 60px); border-bottom: 1px solid var(--line); background: #fff; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center; font: 13px var(--pixel); }
.logo-text { font: 700 22px var(--display); }
.search { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; }
.search input { border: 0; outline: 0; background: transparent; font: 16px var(--font); flex: 1; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #bae6fd; } /* a clear ring: the input itself has no outline */
.site-nav { display: flex; gap: 20px; align-items: center; font-weight: 600; font-size: 15px; }
.site-nav a { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; color: var(--ink); }
.count { position: absolute; top: -8px; right: -10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.console-bar { display: flex; gap: 24px; padding: 12px clamp(16px, 4vw, 60px); border-bottom: 1px solid var(--line); background: var(--alt);
  font-size: 14px; font-weight: 600; overflow-x: auto; white-space: nowrap; }
.console-bar a { color: var(--muted); }
.wrap { padding-left: clamp(16px, 4vw, 60px); padding-right: clamp(16px, 4vw, 60px); }
.hero { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; align-items: center;
  background: radial-gradient(circle at 85% 20%, #fde8f1 0%, #fff 55%); }
.hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.tile:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.swatch { width: 40px; height: 26px; border-radius: 6px; background: var(--active); border: 1px solid var(--line); }
.shelf { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 20px; padding-bottom: 60px; }
.filters { display: flex; flex-direction: column; gap: 22px; }
.filters-box > summary { list-style: none; margin-bottom: 12px; }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.filters fieldset { display: flex; flex-direction: column; gap: 9px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pcard { overflow: hidden; display: flex; flex-direction: column; }
/* The whole picture, never a random slice: one 4:3 frame for every card, photo contained on a light background. */
.pcard .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f6f5f9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-soft); }
.pcard .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* a tall photo can't stretch the card */
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .title { font-weight: 700; font-size: 17px; color: var(--ink); }
.pcard .price { font: 700 22px var(--display); }
.site-footer { margin-top: 40px; padding-top: 44px; padding-bottom: 36px; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 14px; background: var(--alt); }
.site-footer a { color: var(--muted); }
.apps-strip { padding-top: 48px; padding-bottom: 48px; background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--dim); padding-top: 20px; }

/* ---------- Seller hub layout ---------- */
.hub { display: flex; min-height: 100vh; }
.side { width: 240px; flex: none; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; background: #faf9fc; }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.side a:hover { background: var(--active); color: var(--ink); text-decoration: none; }
.side a[aria-current="page"] { background: var(--active); color: var(--ink); }
.side .badge { margin-left: auto; }
.hub-main { flex: 1; min-width: 0; padding: 26px 32px 60px; display: flex; flex-direction: column; gap: 18px; }
.hub-main h1 { font-size: 32px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--pink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font: 700 30px var(--display); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px;
  padding: 12px 18px; display: flex; gap: 16px; align-items: center; font-weight: 600; box-shadow: 0 12px 30px rgba(23,20,31,.25); z-index: 20; }
.toast a, .toast button { color: #f9a8d4; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.toast[hidden] { display: none; }
.cell { background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--ink); padding: 6px 8px; font: inherit; width: 100%; }
.cell:hover { border-color: var(--line); } .cell:focus { border-color: var(--blue); background: #fff; outline: 0; }
.cell.saving { border-color: var(--amber); } .cell.saved { border-color: var(--green); } .cell.bad { border-color: var(--red); background: #fff1f2; }
.auth-box { max-width: 420px; margin: 10vh auto; padding: 32px; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .site-nav .label { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .shelf { grid-template-columns: 1fr; }
  .filters-box:not([open]) .filters { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard .pic { aspect-ratio: 4 / 3; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .hub { flex-direction: column; }
  .side { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .side .side-logo, .side .side-title { display: none; }
  .side a { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .hub-main { padding: 18px 16px 60px; }
  .hide-phone { display: none; }
  /* Two-column page layouts (main + side panel) stack on phones. */
  [style*="grid-template-columns: minmax(0"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Form rows: each field gets the full width instead of running off the screen. */
  .row.wrap > .field, .row.wrap > .field.grow { flex: 1 1 100%; min-width: 0; width: auto !important; }
}
@media (min-width: 901px) { .show-phone { display: none; } }
@media print {
  .site-header, .console-bar, .site-footer, .side, .no-print { display: none !important; }
  .hub-main { padding: 0; }
}

/* Phones: order tables become compact two-column cards (number and total on top). */
@media (max-width: 600px) {
  table.cards-phone thead { display: none; }
  table.cards-phone tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num total" "buyer status" "items date"; gap: 2px 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
  table.cards-phone td { display: block; padding: 0; border: 0; }
  table.cards-phone td:nth-child(1) { grid-area: num; } table.cards-phone td:nth-child(2) { grid-area: date; text-align: right; }
  table.cards-phone td:nth-child(3) { grid-area: buyer; } table.cards-phone td:nth-child(4) { grid-area: items; }
  table.cards-phone td:nth-child(5) { grid-area: total; font-weight: 700; } table.cards-phone td:nth-child(6) { grid-area: status; text-align: right; }
  table.cards-phone td[colspan] { grid-column: 1 / -1; }
}


/* Big numbers in small cards (e.g. $138,098.59) shrink on phones instead of spilling out. */
@media (max-width: 600px) { .kpi .v { font-size: clamp(20px, 6.5vw, 30px); overflow-wrap: anywhere; } }

/* ---------- Inventory editor ---------- */
.inv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inv-filters .input { width: auto; max-width: 200px; }
.inv-filters .input.grow { flex: 1 1 260px; max-width: none; }
.js .inv-filters [data-nojs] { display: none; }
.js .bulkbar:not(.has-sel) { display: none; }
.bulkbar.has-sel { position: sticky; top: 8px; z-index: 5; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); border-color: var(--pink-line); }
.inv-wrap { padding: 2px 6px; overflow-x: auto; }
.inv-wrap[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
table.inv td { padding: 8px 6px; }
table.inv th { padding-left: 6px; padding-right: 6px; }
table.inv .cell { border-color: var(--line-soft); background: #fff; }
table.inv .cell:hover { border-color: var(--line); }
.inv-thumb { width: 52px; height: 52px; flex: none; }
.inv-name { display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.inv-name a { font-weight: 600; color: var(--ink); }
.inv-addphoto { cursor: pointer; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; width: max-content; }
.inv-addphoto:hover { text-decoration: underline; }
.inv-pair { display: grid; gap: 4px; min-width: 132px; }
.inv-pair .cell, .c-status .cell { padding: 5px 6px; font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper .cell { width: 40px; text-align: center; padding: 6px 2px; }
.step { width: 28px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--alt); color: var(--ink); font: 700 17px/1 inherit; cursor: pointer; }
.step:hover:not(:disabled) { background: var(--pink-soft); border-color: var(--pink-line); }
.step:disabled { opacity: .4; cursor: default; }
.money-cell { display: flex; align-items: center; gap: 2px; color: var(--dim); }
.money-cell .cell { width: 76px; }
.c-spot .cell { width: 68px; }
.c-status .cell { min-width: 92px; font-weight: 600; }
.status-active { color: var(--green); } .status-paused, .status-draft { color: var(--amber); } .status-sold_out, .status-archived { color: var(--dim); }
table.inv tr.drop td { background: var(--pink-soft); }
table.inv tr.drop td:first-child { box-shadow: inset 3px 0 0 var(--pink); }
@media (max-width: 900px) {
  .inv-filters .input, .inv-filters .input.grow { flex: 1 1 45%; max-width: none; }
  .inv-filters .input[type="search"] { flex-basis: 100%; }
  .inv-flags { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; }
  .inv-flags .chip { flex: none; }
  table.inv td.hide-phone { display: none; }
  .inv-wrap { padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
  table.inv, table.inv tbody { display: block; }
  table.inv thead { display: none; }
  /* Each listing becomes a card: photo and title, then the things you change most. */
  table.inv tr { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; padding: 12px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  table.inv td { display: block; padding: 0; border: 0; }
  table.inv td.c-sel { grid-row: 1; grid-column: 1; }
  table.inv td.c-item { grid-row: 1; grid-column: 2 / 4; }
  table.inv td.c-cond { grid-column: 1 / 4; }
  table.inv td.c-cond .inv-pair { grid-template-columns: 1fr 1fr; }
  table.inv td.c-qty, table.inv td.c-price, table.inv td.c-paid, table.inv td.c-spot, table.inv td.c-status { grid-column: span 1; }
  table.inv td.c-qty { grid-column: 1 / 3; }
  table.inv td.c-price { grid-column: 3; }
  table.inv td.c-paid { grid-column: 1 / 3; }
  table.inv td.c-spot { grid-column: 3; }
  table.inv td.c-status { grid-column: 1 / 4; }
  table.inv td[class^="c-"]:not(.c-sel):not(.c-item)::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
  table.inv .cell { font-size: 16px; } /* 16px stops iOS zooming into the field */
  .stepper .cell { width: 56px; }
  .step { width: 44px; height: 44px; font-size: 22px; }
  .money-cell .cell, .c-spot .cell { width: 100%; }
  .c-status .cell { width: 100%; }
  table.inv tr.sel { border-color: var(--pink); }
  table.inv tr.sel td { background: none; }
}

/* ---------- Cart ---------- */
.code-row { gap: 6px; }
.code-row .input { flex: 1 1 auto; min-width: 0; width: auto; padding: 8px; }
details.codes > summary, details.alert-later > summary { cursor: pointer; color: var(--blue); width: max-content; max-width: 100%; }
details.alert-later > summary { display: inline-flex; align-items: center; gap: 6px; }
details.alert-later[open] > summary { margin-bottom: 8px; }
/* Gift message and email only once "This is a gift" is ticked (shown anyway in browsers without :has). */
@supports selector(:has(*)) { .giftbox:not(:has(input[name="is_gift"]:checked)) .gift-more { display: none; } }
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.paybar .btn { padding: 13px 20px; }
@media (max-width: 900px) { body:has(.paybar) { padding-bottom: 76px; } html:has(.paybar) { scroll-padding-bottom: 96px; } }
@media (min-width: 901px) { .paybar { display: none; } }
.paybar-off { transform: translateY(110%); } .paybar { transition: transform .2s; } @media (prefers-reduced-motion: reduce) { .paybar { transition: none; } }
html:has(.bulkbar.has-sel) { scroll-padding-top: 120px; } /* focus never lands under the sticky bulk bar */

/* ---------- Hub on a phone ---------- */
input[type="file"] { max-width: 100%; }
html:has(.labels-bar) { scroll-padding-bottom: 170px; } /* focused fields stay clear of the sticky "Buy postage" bar */
@media (max-width: 900px) {
  /* Label maker: weight and the three box sides share one row instead of four full-width fields. */
  .row.wrap > .field.dimf { flex: 1 1 calc(25% - 9px) !important; min-width: 0; }
  .labels-bar { gap: 8px; padding: 10px 12px; }
  .labels-bar .btn { margin-left: 0 !important; flex: 1 1 100%; }
}
.finish { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; align-items: start; }
.chips .chip:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); font-weight: 600; }
.chips .chip input { accent-color: var(--pink); }
@media (max-width: 900px) { .finish { grid-template-columns: minmax(0, 1fr); } .chips .chip { padding: 10px 14px; } }

/* ---------- Hub sidebar groups ---------- */
.side .navgroup { display: flex; flex-direction: column; }
.side .navgroup .side-title { padding: 10px 12px 4px; }
.side details.navgroup > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.side details.navgroup > summary::-webkit-details-marker { display: none; }
.side details.navgroup > summary::after { content: '▸'; margin-left: auto; transition: transform .15s; }
.side details.navgroup[open] > summary::after { transform: rotate(90deg); }
.side details.navgroup > summary:hover { background: var(--alt); color: var(--ink); }
.side .navmore { display: none; }
@media (max-width: 900px) {
  .side { align-items: center; }
  .side .navgroup.daily { flex-direction: row; }
  .side .navgroup.daily .side-title, .side details.navgroup { display: none; }
  .side .navmore { display: block; position: static; order: -1; } /* first on the strip, so it's always in view */
  .side .navmore > summary { cursor: pointer; padding: 8px 12px; font-weight: 700; white-space: nowrap; border-radius: 10px; border: 1px solid var(--line); list-style: none; }
  .side .navmore > summary::-webkit-details-marker { display: none; }
  .side .navmore[open] .navmore-panel { position: absolute; left: 8px; right: 8px; margin-top: 8px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; max-height: 70vh; overflow: auto; }
  .side .navmore-panel .tag { grid-column: 1 / -1; padding: 8px 4px 2px; }
}

/* ---------- Hub quick find ---------- */
.hubfind { position: relative; padding: 0 4px 8px; }
.hubfind .input { padding: 8px 10px; font-size: 14px; }
.findresults { position: absolute; left: 4px; right: -220px; top: 100%; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 6px; max-height: 70vh; overflow: auto; }
.findresults .findgroup { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 8px 8px 2px; }
.findresults a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--ink); }
.findresults a[aria-selected="true"], .findresults a:hover { background: var(--pink-soft); text-decoration: none; }
@media (max-width: 900px) { .hubfind { order: -2; flex: 0 0 160px; padding: 0; } .findresults { position: fixed; left: 8px; right: 8px; top: 56px; } }
.waitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tile .tile-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #fff; border-radius: 8px; overflow: hidden; }
.tile .tile-pic img { width: 100%; height: 100%; object-fit: contain; }
/* Console tiles: up to eight on one row on a desktop, so a full line-up doesn't leave one tile alone below */
.tiles.console-tiles { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.console-tiles .tile { padding: 12px; }
/* Region menu in Inventory: small, and tinted when the copy isn't the US version */
.inv-pair .cell-region { width: auto; justify-self: start; font-size: 12px; padding: 3px 6px; }
.inv-pair .cell-region.is-import { background: #fff4e5; border-color: #f0b35c; color: #7a4a00; font-weight: 600; }
table.inv td.c-cond .inv-pair .cell-region { grid-column: 1 / -1; }
/* Japanese imports: a badge on cards and the game page, and the language switch on shop pages */
.b-import { background: #fff4e5; color: #7a4a00; }
.pcard .b-import { align-self: flex-start; margin-top: 2px; }
.import-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #fffaf2; border: 1px solid #f5d9a8; color: #5c3b00; }
.langs { gap: 6px; }
/* Sell form: game suggestions under each item line */
.ta { position: relative; display: block; }
.ta-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 6px; max-height: 300px; overflow: auto; }
.ta-list [role="option"] { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ta-list [role="option"][aria-selected="true"], .ta-list [role="option"]:hover { background: var(--pink-soft); }
/* A button that looks like a link ("change" next to the shipping ZIP) */
.linkish { background: none; border: 0; padding: 0 2px; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 24px; }
/* Password fields with a Show/Hide button inside the right edge */
.pw { position: relative; display: block; }
.pw .input { width: 100%; padding-right: 68px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; min-width: 52px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 600 13px/1 inherit; cursor: pointer; }
.pw-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Sell form: the instant estimate under a line */
.ta-est:not(:empty) { display: block; margin: 2px 0 10px; }

/* Promise next to the price (350.27) */
.trust-line { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.trust-line li { display: inline-flex; align-items: center; gap: 6px; }
.trust-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a.badge { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Catalog site tabs (task 360.7) ---------- */
.catalog-nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.gear-table { width: 100%; border-collapse: collapse; }
.gear-table th, .gear-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.gear-table th { width: 30%; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.printable .pic img { object-fit: cover; }
.book-cover { aspect-ratio: 2 / 3; }
@media (max-width: 900px) {
  .catalog-nav { order: 4; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; white-space: nowrap; padding-bottom: 6px; }
  .gear-table th { width: auto; }
  .gear-table th, .gear-table td { display: block; padding: 6px 0; }
  .gear-table td { border-top: 0; }
}
.buy-gumroad .logo-full { display: none; }
.ship.ok, .ship .ok { color: #166534; } /* free shipping on eBay cards and item pages */
/* Our apps (Kevin, Oct 4) */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.app-card { min-height: 100%; }
.app-icon { border-radius: 22%; flex: none; object-fit: cover; display: inline-block; }
.app-icon.mac { border-radius: 0; object-fit: contain; }
