/* Poke6s storefront. Mobile-first: one column on phones, more as the screen widens.
   Colour and type tokens are copied from market.poke6s.com (scripts/dashboards/desktop_theme.css,
   owner decision D4) so the two sites read as one brand. Copied, not linked: the store runs
   in its own container and mustn't depend on the market app being up. */
:root {
  --bg: #08111d;
  --panel: #0e1828;
  --panel-2: #132036;
  --panel-3: #0a1322;
  --line: rgba(136, 162, 205, 0.16);
  --line-strong: rgba(136, 162, 205, 0.3);
  --text: #eaf1ff;
  --muted: #93a6c8;
  --faint: #6f82a6;
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.16);
  --good: #3ddc97;
  --good-soft: rgba(61, 220, 151, 0.14);
  --bad: #ff7d7d;
  --bad-soft: rgba(255, 125, 125, 0.14);
  --warn: #f5b94a;
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1280px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--accent); }
a:hover { color: #7cbcff; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--panel-2); padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 16px; padding-bottom: 48px; min-height: 60vh; }
main section { margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--text); text-decoration: none; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04121f; }
.btn.primary:hover { background: #7cbcff; }

/* header */
/* Poke6s family bar (Phase 3 step 9a, 2026-11-20): one slim strip across the top of all three
   Poke6s sites (Shop = poke6s.com, Market = market.poke6s.com, Admin = the store admin on the
   home network) so moving between them feels like one site. Keep the copies in step:
   storefront/app/static/store.css, storefront/admin/static/admin.css,
   scripts/dashboards/site_shell.js (market pages) and scripts/dashboards/mobile_app.html. */
.ps-family { display: flex; align-items: center; gap: 2px; padding: 3px 16px; flex: none;
  background: #050b14; border-bottom: 1px solid rgba(136, 162, 205, 0.16);
  font: 600 12.5px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.ps-family a { color: #93a6c8; text-decoration: none; padding: 3px 10px; border-radius: 999px; }
.ps-family a:hover { color: #eaf1ff; }
.ps-family a[aria-current="page"] { color: #eaf1ff; background: rgba(77, 163, 255, 0.16); }
.site-head { background: var(--panel-3); border-bottom: 1px solid var(--line); }
.head-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 120px; height: auto; }
.search { display: flex; gap: 8px; grid-column: 1 / -1; }
.search input {
  flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text);
}
.search input::placeholder { color: var(--faint); }
.search.inline { max-width: 480px; margin: 16px 0; }
.ext-links { display: flex; gap: 14px; justify-content: flex-end; font-size: 0.875rem; grid-row: 1; grid-column: 2; }
.ext-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .ext-links { gap: 10px; font-size: 0.78rem; } }
.ext-links a:hover { color: var(--text); }
.cat-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cat-nav a { flex: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.cat-nav a:hover { color: var(--text); background: var(--panel-2); }
.cat-nav a[aria-current] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.45); }
/* Second row, shop pages only: the product categories, quieter than the main menu. */
.shop-nav { display: flex; gap: 2px; overflow-x: auto; padding-top: 6px; padding-bottom: 8px; border-top: 1px solid var(--line); scrollbar-width: none; }
.shop-nav a { flex: none; padding: 5px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.84rem; }
.shop-nav a:hover { color: var(--text); background: var(--panel-2); }
.shop-nav a[aria-current] { color: var(--text); background: var(--accent-soft); }
/* Phones: all five main-menu links fit without scrolling ("Collector tools" becomes "Tools"). */
.nav-short { display: none; }
@media (max-width: 520px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .cat-nav { gap: 0; }
  .cat-nav a { padding: 8px 9px; }
}
@media (max-width: 380px) { .cat-nav a { padding: 8px 6px; font-size: 0.86rem; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

/* home */
.hero { background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; }
.hero h1 { font-size: 1.8rem; max-width: 22ch; }
.hero p { color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chip { display: inline-flex; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.about-blurb p { color: var(--muted); max-width: 70ch; }

/* product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; }
.card a:hover { border-color: var(--line-strong); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge.out { background: var(--panel-3); color: var(--muted); border: 1px solid var(--line-strong); }
.badge.sale { background: var(--good); color: #04121f; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--muted); font-size: 0.8rem; }
.card-price { margin-top: auto; font-weight: 700; }
.card-price s, .price s { color: var(--faint); font-weight: 400; }

/* listing */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.list-head p { margin: 4px 0 0; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { min-height: 44px; padding: 6px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-strong); }
.list-body { display: grid; gap: 16px; }
.filters { display: flex; gap: 8px; overflow-x: auto; }
.filters section { margin: 0; flex: none; }
.filters h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin: 0 0 6px; }
.filters ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; }
.filters a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; white-space: nowrap; border: 1px solid var(--line); }
.filters a:hover { color: var(--text); }
.filters a[aria-current] { color: var(--text); background: var(--accent-soft); border-color: rgba(77, 163, 255, 0.45); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.empty { text-align: center; padding: 40px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.empty .search { justify-content: center; margin: 16px auto; }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }  /* minmax: long thumb rows scroll instead of widening the page */
.main-img { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; overflow-x: auto; }
.thumbs a { display: block; width: 72px; height: 72px; background: #fff; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.thumbs a[aria-current] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.price { font-size: 1.8rem; font-weight: 700; margin: 0 0 2px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.price .pill { font-size: 0.8rem; }
.byline { margin: -4px 0 10px; font-size: 0.9rem; color: var(--muted); }
.byline a { color: var(--muted); }
.byline a:hover { color: var(--text); }
.market-line { margin: 0 0 14px; font-size: 0.88rem; color: var(--muted); }
.market-line a { color: var(--muted); }
.market-line a:hover { color: var(--text); }
.pill { padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.pill.up { background: var(--good-soft); color: var(--good); }
.pill.down { background: var(--bad-soft); color: var(--bad); }
.pill.good { background: var(--accent-soft); color: var(--accent); }
.stock { font-weight: 600; margin: 0 0 12px; }
.stock .ok { color: var(--good); }
.stock .low { color: var(--warn); }
.stock .out { color: var(--bad); }
.buy-box { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; }
.buy-box p { margin: 0 0 10px; }
.buy-box p:last-child { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; font-size: 0.9rem; }
.specs dt { color: var(--faint); }
.specs dd { margin: 0; }
.description { margin-top: 20px; color: var(--muted); }
.description h2, .description h3 { color: var(--text); }
.zoom { padding: 0; border: 0; background: #fff; border-radius: var(--radius); max-width: min(96vw, 1200px); max-height: 96vh; }
.zoom::backdrop { background: rgba(4, 10, 20, 0.85); }
.zoom img { max-height: 92vh; width: auto; margin: 0 auto; }
.zoom .close { position: absolute; top: 8px; right: 8px; }

/* sets and text pages */
.set-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.set-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.set-list a:hover { border-color: var(--accent); }
.text-page { max-width: 72ch; }
.text-page h2 { margin-top: 28px; }
.text-page p, .text-page li { color: #c9d6ee; }
.draft-note { background: rgba(245, 185, 74, 0.12); border: 1px solid rgba(245, 185, 74, 0.4); color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; }
/* Review queue on draft and scheduled article pages (owner's preview only; live posts don't show it). */
.review-queue { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 8px 0; font-size: 0.9rem; }
.review-queue summary { cursor: pointer; color: var(--muted); }
.review-queue ul { margin: 8px 0 0; padding-left: 18px; }
.review-queue li { padding: 2px 0; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--panel-3); padding: 24px 0 16px; }
.foot-grid { display: grid; gap: 20px; }
.foot-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.foot-grid nav a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.foot-grid nav a:hover { color: var(--text); }
.site-foot .notify-form { margin-top: 14px; max-width: 380px; }
/* The Poke6s family footer: the bottom twin of .ps-family, shared with the market and the admin
   (same colours and type; copies in the market's site_shell.js and mobile_app.html, admin.css). */
.ps-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px 16px; margin-top: 12px;
  background: #050b14; border-top: 1px solid rgba(136, 162, 205, 0.16);
  font: 600 12.5px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #93a6c8; }
.ps-foot a { color: #93a6c8; text-decoration: none; padding: 3px 10px; border-radius: 999px; }
.ps-foot a:hover { color: #eaf1ff; }
.ps-foot span { margin-left: auto; padding: 3px 10px; font-weight: 500; }
.site-foot { padding-bottom: 0; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .head-row { grid-template-columns: auto 1fr auto; }
  .search { grid-column: 2; grid-row: 1; max-width: 560px; }
  .ext-links { grid-column: 3; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .hero { padding: 40px 36px; }
}
@media (min-width: 960px) {
  h1 { font-size: 2rem; }
  /* Tighter menu so every link fits the 1280 px column (Binders added 2026-11-14). */
  .cat-nav { gap: 2px; }
  .cat-nav a { padding: 8px 10px; font-size: 0.875rem; }
  .brand img { width: 150px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .list-body { grid-template-columns: 220px 1fr; align-items: start; }
  .filters { flex-direction: column; gap: 20px; position: sticky; top: 16px; overflow: visible; }
  .filters ul { flex-direction: column; gap: 2px; }
  .filters a { border: 0; }
  .results .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { position: sticky; top: 16px; }
}
@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .results .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* articles */
.article-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.article-card a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; }
.article-card a:hover { border-color: var(--line-strong); }
.article-img { background: var(--panel-2); }
/* The ratio sits on the image itself: on the box, a tall picture would stretch it. */
.article-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.article-cover { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 20px; }
.article-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.article-card-title { font-weight: 700; line-height: 1.3; }
.article-card-text { color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-filters { margin-bottom: 16px; }
.article-head h1 { margin-bottom: 6px; }
.article-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.article-cats a { color: var(--accent); text-decoration: none; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
/* `> text` in an article is a note (data source, method, affiliate links), shown as a small box
   set apart from the post itself; posts don't use it for quotations. */
.article-body blockquote { margin: 16px 0 20px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); color: var(--muted); font-size: 0.9rem; }
.article-body blockquote p { margin: 0; }
.article-body blockquote p + p { margin-top: 8px; }
.article-body a { overflow-wrap: anywhere; }
/* Markdown tables in articles: in a sideways-scrolling box (articles._table_open) so they never
   widen the page on a phone. Columns marked ---: in the Markdown come out right-aligned. */
.article-body .table-scroll { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.article-body th, .article-body td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.article-body th { color: var(--muted); font-weight: 600; font-size: 0.85rem; background: var(--panel); }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body td a { overflow-wrap: normal; }
/* Market boxes in articles (articles.market_boxes): TCGplayer picture, today's price, 30-day change. */
.market-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.market-box { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-body .market-box img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; margin: 0; border-radius: 0; }
.market-box-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.market-box-name { font-size: 0.85rem; line-height: 1.3; }
.market-box-set { color: var(--muted); font-size: 0.8rem; }
.market-box-price { font-size: 1.15rem; font-weight: 700; }
.market-box-trend { color: var(--muted); font-size: 0.85rem; }
.market-box-link { font-size: 0.85rem; margin-top: 4px; }
/* A row of single cards only: bigger, card-shaped, for the art. */
/* A row of 3, 5 or 6 products goes three to a row (3, 3+2, 3+3), so it doesn't end with one
   box alone under a row of four. :has() counts the boxes; browsers without it keep the default. */
@media (min-width: 560px) {
  .market-boxes:not(.market-boxes-cards):has(> .market-box:nth-child(3)):not(:has(> .market-box:nth-child(4))),
  .market-boxes:not(.market-boxes-cards):has(> .market-box:nth-child(5)):not(:has(> .market-box:nth-child(7))) {
    grid-template-columns: repeat(3, 1fr);
  }
}
.market-boxes-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.article-body .market-boxes-cards .market-box img { aspect-ratio: 63 / 88; object-fit: cover; background: var(--panel-2); }
.market-box-pic { display: block; }
.market-box-pic:hover img { opacity: 0.88; }
.market-boxes figcaption { grid-column: 1 / -1; color: var(--muted); font-size: 0.8rem; }
.article-tags { margin: 28px 0 8px; }
.article-tags .chip { font-weight: 500; font-size: 0.85rem; padding: 6px 12px; }
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The category filter on /articles stays a row of tabs at every width (the shop's filter
   column rules above turn .filters into a sidebar from 960 px). */
.article-filters, .article-filters ul { flex-direction: row; flex-wrap: wrap; position: static; gap: 6px; }
.article-filters a { border: 1px solid var(--line); }

/* --- cart and orders (Phase 2) --- */
.cart-link { font-weight: 700; color: var(--text) !important; }
.cart-count { display: inline-block; min-width: 1.4em; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #04121f; font-size: 0.75rem; text-align: center; }
.buy-box p.note, .buy-box p[data-added] { display: block; }
.buy-box p[data-added]:empty { display: none; }
/* The store's promises inside the buy box: label | fact rows, like Amazon's "Ships from / Returns". */
.description h2 { font-size: 1.05rem; margin: 0 0 8px; }
.description { margin-top: 20px; }
.buy-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line); color: var(--muted); }
.buy-facts dt { color: var(--faint); }
.buy-facts dd { margin: 0; }
.buy-facts a { color: var(--muted); }
.buy-facts a:hover { color: var(--text); }
.buy-box p.wish { margin: 12px 0 0; }
.buy-box form.wish { margin: 12px 0 0; }
.add-to-cart [hidden] { display: none; }   /* "View cart" appears only after adding (store.js) */
.wish-link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: var(--muted); cursor: pointer; text-decoration: none; }
.wish-link:hover { color: var(--text); }
.wish-link.saved { color: var(--accent); }
.add-to-cart { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.add-to-cart select, .cart-line select { background: var(--panel); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 8px 10px; font: inherit; }
.notice { background: var(--panel-2); border: 1px solid var(--line-strong); border-left: 4px solid var(--warn);
  border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
ul.notice { list-style: none; }
.cart { display: grid; gap: 4px; }
.cart [data-cart-body] { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cart [data-cart-body] > .notice, .cart [data-cart-body] > p { grid-column: 1 / -1; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 90px; gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--panel); }
.cart-line .what { display: grid; gap: 2px; min-width: 0; }
.cart-line .what a { color: var(--text); font-weight: 600; text-decoration: none; }
.cart-line .qty { display: flex; gap: 8px; align-items: center; }
.cart-line .num, .lines .num { text-align: right; font-variant-numeric: tabular-nums; }
.btn.link { background: none; border: none; color: var(--muted); padding: 4px; text-decoration: underline; cursor: pointer; }
.btn.wide { width: 100%; justify-content: center; }
.cart-summary { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px; }
.cart-summary p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.cart-summary p.small { display: block; }
.cart-summary .total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 8px; }
.cart-summary .good { color: var(--good); }
@media (max-width: 760px) {
  .cart [data-cart-body] { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .cart-line .qty { grid-column: 2; }
  .cart-line .num { grid-column: 3; grid-row: 1; }
}
.order { max-width: 760px; }
.order-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lines { width: 100%; border-collapse: collapse; margin: 14px 0; }
.lines th, .lines td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.lines tfoot th { font-weight: 500; color: var(--muted); text-align: right; }
.lines .total th, .lines .total td { font-weight: 800; color: var(--text); }
.address { line-height: 1.5; }

/* While checkout is off (owner, 2026-11-11): the "we're rebuilding" note under the header and
   the "email me when we open" form (templates/_notify_form.html, notify.html). */
.rebuild-note { background: var(--accent-soft); border-bottom: 1px solid var(--line-strong);
  font-size: 0.9rem; padding: 8px 0; }
.notify-form { margin: 12px 0; }
.notify-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-row input { flex: 1 1 200px; min-width: 0; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--panel-3); color: var(--text); font: inherit; }
.notify-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice.good { border-left-color: var(--good); }
.notice.bad { border-left-color: var(--bad); }
.notify-page { max-width: 640px; }

/* Order page: the tracking number and its "Track package" button (carrier's site). */
.tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* Collector Hub (/collector-hub, templates/collector_hub.html; moved from the market 2026-11-20). */
.hub-head { max-width: 860px; }
.hub-head p { margin: 0 0 12px; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hub-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.hub-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.hub-steps b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.hub-steps strong { display: block; }
.hub-steps span { color: var(--muted); font-size: 0.9rem; }
.hub-section h2 { margin-bottom: 4px; }
.hub-section > p { margin: 0 0 14px; }
.hub-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.hub-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.hub-tile h3 { margin: 0; font-size: 1.05rem; }
.hub-tile p { margin: 0; }
.hub-tile .hub-actions { margin-top: auto; padding-top: 6px; }
.hub-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-tags span { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.hub-legal { margin-top: 32px; }
@media (min-width: 760px) {
  .hub-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Placeholder Library (templates/placeholder_library.html): one row per page or file, with the
   button on the right; on phones the chip and button drop below the text. */
.lib-list { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lib-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lib-row:last-child { border-bottom: 0; }
.lib-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lib-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lib-main span { font-size: 0.9rem; }
.lib-meta { color: var(--muted); font-size: 0.8rem !important; overflow-wrap: anywhere; }
.lib-chip { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .lib-row { grid-template-columns: auto minmax(0, 1fr); }
  .lib-main { grid-column: 1 / -1; }
  .lib-row .btn, .lib-row .lib-btns { justify-self: end; }
}

/* Your account (/account, one Poke6s account): the same column width as the order page. */
.account { max-width: 760px; margin: 0 auto; padding: 24px 0 40px; }
.account-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.my-orders { list-style: none; padding: 0; margin: 0; }
.my-orders li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.my-orders .order-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.my-orders .order-head .num { margin-left: auto; font-weight: 700; }
.my-orders p.small { margin: 4px 0 0; }

/* Wishlist (one Poke6s account, stage 2): the ♡ under the buy box, and the list on /account. */
.wish { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wish-list form { margin: 6px 0 0; }
.btn.small { padding: 4px 10px; font-size: 0.85rem; }

/* Contact page: email, Discord and the message box (one Poke6s account, stage 3). */
.support { margin-top: 28px; }
.support-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.support-way { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  text-decoration: none; color: var(--text); }
.support-way:hover { border-color: var(--accent); }
.support-icon { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.support-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.support-form label { display: grid; gap: 4px; font-weight: 600; align-content: end; }
.support-form .optional { font-weight: 400; }
.support-form .wide { grid-column: 1 / -1; }
.support-form input, .support-form textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--text);
  background: var(--bg, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.support-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); }
.flash.good { border-left: 4px solid var(--good); }
.flash.bad { border-left: 4px solid var(--bad); }

/* Sell to Poke6s (/sell-your-collection, /sell-your-bulk; app/sell.py). The forms reuse the
   Contact form's grid (.support-form); these add the choice lists, the rate table and the notes. */
.sell-page .lead { font-size: 1.05rem; }
.sell-steps li { margin: 6px 0; }
.sell-warning { border-left: 4px solid var(--accent); padding: 8px 12px; background: var(--accent-soft); border-radius: 6px; }
.sell-form-wrap { margin-top: 28px; }
.sell-choices { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; display: grid; gap: 6px; }
.sell-choices legend { font-weight: 600; padding: 0 4px; }
.support-form label.choice { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }
.support-form label.choice input { width: auto; }
.sell-rates { border-collapse: collapse; width: 100%; max-width: 480px; }
.sell-rates th, .sell-rates td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sell-rates td:last-child, .sell-rates th:last-child { text-align: right; white-space: nowrap; }
.sell-estimate strong { font-size: 1.15rem; }
.sell-form label .small { font-weight: 400; }
.sell-form .sell-pay { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sell-form .sell-pay legend, .sell-form .sell-pay p { grid-column: 1 / -1; }
/* --- binders (/binders, binders.py): design tiles, size picker, pre-order list ---
   Light image panels like the product cards; the cover art is SVG drawn from each design's
   colours (templates/_binder_art.html). */
.binder-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.binder-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 14px;
  color: var(--text); text-decoration: none; text-align: center; }
.binder-tile-img { position: relative; width: 100%; aspect-ratio: 1; background: #f4f6fa; border-radius: var(--radius);
  border: 1px solid var(--line); margin-bottom: 10px; transition: transform 0.15s ease; }
.binder-tile:hover .binder-tile-img { transform: translateY(-2px); border-color: var(--line-strong); }
.binder-tile-img .binder-art { width: 100%; height: 100%; }
.badge.list { background: var(--accent); color: #04121f; }
.binder-tile-title { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }
.binder-tile-meta { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.binder-tile-price { color: var(--good); font-weight: 700; font-size: 1.05rem; }
.binder .gallery { display: grid; grid-template-columns: 3fr 1fr; gap: 10px; align-items: start; }
.binder-main, .binder-alt { background: #f4f6fa; border-radius: var(--radius); aspect-ratio: 1; }
.binder-art { display: block; width: 100%; height: 100%; }
.binder-main { grid-row: span 2; }
/* Photos (mock-ups or the sample): the first one across the top, the rest in a row under it. */
.binder .gallery.binder-photos { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.binder .binder-photos .binder-main { grid-column: 1 / -1; grid-row: auto; }
.binder-photos figcaption { grid-column: 1 / -1; margin: 0; }
.binder-main img, .binder-alt img, .binder-tile-img img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.binder-line .pill { margin-left: 6px; letter-spacing: 0; text-transform: none; vertical-align: 1px; }
.pill.plain { background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.price-later { margin: 0 0 12px; font-weight: 700; color: var(--muted); }
.binder-tile-price.later { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.binder-line { margin: 0 0 4px; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.binder h1 { letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.binder-size-name { margin: 0 0 14px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; }
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.size-picker a { min-height: 40px; display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; }
.size-picker a:hover { border-color: var(--accent); }
.size-picker a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.binder-facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 8px; }
.binder-facts li { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px;
  padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.binder-facts strong { font-size: 1.05rem; }
.binder-facts span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.preorder-box { border-left: 4px solid var(--accent); }
@media (min-width: 640px) { .binder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1280px) { .binder-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
