/* MySetBuddy: built for reading on a phone, at arm's length, at a card show. */
:root {
  /* Dark and vintage: card photos and cream card stock glow against charcoal, like cards in a binder at night. */
  --page: #121519;         /* deep slate */
  --surface: #1b2026;      /* panels */
  --surface-2: #242a31;    /* raised controls */
  --line: #333b44;
  --ink: #ece5d6;          /* aged-paper white */
  --mute: #a69f90;
  --gold: #d2a646;         /* brass: actions, progress */
  --gold-dark: #b38a2e;
  --on-gold: #17130a;
  --stock: #eadfc2;        /* card stock: cards you own */
  --stock-edge: #c9b588;
  --stock-ink: #1d1a14;
  --pennant: #e07a5f;      /* new / attention, softened for dark backgrounds */
  --field: var(--gold);
  --radius-s: 6px;
  --radius-m: 12px;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --tabbar-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  color-scheme: dark;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--slab); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0 0 .8em; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mute { color: var(--mute); }
.small { font-size: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Chrome ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #08090b;
  border-bottom: 1px solid #262b31;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--slab); font-weight: 700; font-size: 23px;
  color: var(--stock); text-decoration: none; letter-spacing: .2px;
}
.brand .mark { width: 26px; height: 26px; }
.brand .mark rect { fill: var(--stock); }
.brand .mark rect.open { fill: none; stroke: var(--gold); stroke-width: 1.4; }
main { max-width: 760px; margin: 0 auto; padding: 18px 16px 32px; outline: none; }
.loading { color: var(--mute); padding: 40px 0; text-align: center; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #0d0f12; border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--mute); text-decoration: none; font-size: 14px; text-align: center; line-height: 1.15;
}
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tabbar a[aria-current="page"] { color: var(--gold); font-weight: 700; }
.tabbar a[aria-current="page"] svg { stroke-width: 2.4; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px; border-radius: var(--radius-m);
  border: 2px solid var(--gold); background: var(--gold); color: var(--on-gold);
  font: 700 18px var(--body); text-decoration: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--gold); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--gold); text-decoration: underline; padding-inline: 6px; }
.btn.danger { background: transparent; border-color: var(--pennant); color: var(--pennant); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 0; }

label.field { display: block; margin: 0 0 18px; }
label.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
label.field small { display: block; color: var(--mute); font-size: 16px; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 52px; padding: 10px 14px;
  font: 18px var(--body); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
input::placeholder, textarea::placeholder { color: #7d776b; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.money input { padding-left: 30px; }

.choice-list { display: grid; gap: 8px; margin: 0 0 18px; border: 0; padding: 0; }
.choice-list legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--surface); cursor: pointer;
}
.choice input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.choice:has(input:checked) { border-color: var(--gold); background: #2a2518; }
.choice small { display: block; color: var(--mute); font-size: 16px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle input { width: 26px; height: 26px; accent-color: var(--gold); flex: none; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface);  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 4px; margin: 0 0 18px; }
.segmented a, .segmented button {
  min-height: 46px; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 9px; font: 700 17px var(--body); color: var(--mute); text-decoration: none; cursor: pointer;
}
.segmented [aria-current="page"], .segmented [aria-pressed="true"] { background: var(--surface-2); color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line);
  background: transparent; font: 700 16px var(--body); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }

.panel { background: var(--surface); border-radius: var(--radius-m); padding: 18px; margin: 0 0 16px; border: 1px solid var(--line); }
.notice { background: #241f14; border: 1px solid #5a4a22; border-radius: var(--radius-m); padding: 14px 16px; margin: 0 0 16px; }

/* ---------- Home ---------- */
.welcome { padding: 8px 0 6px; }
.welcome h1 { font-size: 34px; }
.steps { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font: 700 20px var(--slab);
}
.recap { font-size: 17px; color: var(--mute); margin: 0 0 12px; }

.set-cover {
  display: block; text-decoration: none; color: inherit; background: var(--surface);
  border-radius: var(--radius-m); border: 1px solid var(--line); margin: 0 0 14px; overflow: hidden;
}
.set-cover .spine { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.set-cover h2 { font-size: 26px; margin: 0; }
.set-cover .count { font-weight: 700; white-space: nowrap; }
.set-cover .body { padding: 4px 18px 16px; }
.set-cover .lines p { margin: 6px 0 0; }
.hot { color: var(--pennant); font-weight: 700; }

.progress { height: 14px; border-radius: 7px; background: #2c333b; overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--gold); border-radius: 7px; }

.stickers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sticker {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px;
  background: #2a2417; border: 1px solid #6b5626; font-size: 15px; font-weight: 700; color: #e6c779;
}
.sticker::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px #2a2417, 0 0 0 1px var(--gold); }

.prompt { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.prompt img, .prompt .noimg { width: 76px; height: 100px; object-fit: cover; border-radius: 4px; background: var(--stock); }

/* ---------- Browse ---------- */
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.set-row strong { font-size: 19px; }
.set-row .btn { min-height: 46px; padding: 8px 16px; flex: none; }
.sport-tag {
  display: inline-block; margin: 4px 0 0; padding: 1px 9px; border-radius: 999px; font-size: 14px; font-weight: 700;
  letter-spacing: .02em; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
}
.sport-baseball { border-color: #6b5626; color: #e6c779; }
.sport-football { border-color: #5b6b3a; color: #c9d99a; }
.sport-basketball { border-color: #7a4a33; color: #f0b48f; }
.set-head .sport-tag { margin: 0 0 8px; }
.decade { font-family: var(--slab); font-size: 22px; margin: 26px 0 4px; color: var(--gold); }

/* ---------- Set page ---------- */
.set-head { margin-bottom: 14px; }
.set-head .meta { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }

.binder-tools { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; }
.binder-tools .chips { margin: 0; }
.jump { display: flex; gap: 6px; }
.jump input { width: 96px; min-height: 44px; }
.jump .btn { min-height: 44px; padding: 6px 14px; font-size: 16px; }

/* The binder: 9-pocket pages, the one place this site lets itself be playful. */
.binder-page {
  background: linear-gradient(180deg, #1d2329, #181d22); border-radius: 10px; padding: 10px; margin: 0 0 18px;
  border: 1px solid #2d343c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.binder-page header { display: flex; justify-content: space-between; font-size: 15px; color: var(--mute); padding: 0 4px 8px; }
.pockets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pocket {
  position: relative; aspect-ratio: 5 / 7; border-radius: 6px; padding: 8px 6px;
  border: 2px dashed #3f4852; background: rgba(255, 255, 255, .025);
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer; overflow: hidden; min-width: 0;
}
.pocket .num { font: 700 24px var(--slab); line-height: 1; }
.pocket .who { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; color: var(--mute); }
.pocket .num { color: #8e877a; }
.pocket .star-mark { color: var(--gold); font-size: 16px; margin-left: 3px; vertical-align: 4px; }
.pocket.have {
  border: 2px solid var(--stock-edge); background: var(--stock);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.pocket.have .num, .pocket.have .who { color: var(--stock-ink); }
.pocket.have::after {
  content: ""; position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: #1d1a14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23d2a646' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pocket.have::after { z-index: 2; }
.pocket.just { animation: stamp .32s ease-out; }
@keyframes stamp { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.pocket.hidden { visibility: hidden; }

.list-view { background: var(--surface); border-radius: var(--radius-m); border: 1px solid var(--line); }
.list-view label { display: grid; grid-template-columns: 28px 64px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-view input { width: 24px; height: 24px; accent-color: var(--gold); }
.list-view .n { font: 700 19px var(--slab); }

/* ---------- Shop ---------- */
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-m); padding: 18px; margin: 0 0 16px; }
.summary .big { font: 700 34px var(--slab); line-height: 1.1; color: var(--gold); }
.summary p { margin: 6px 0 0; }
.summary a { color: var(--gold); }

.listing { display: grid; grid-template-columns: 92px 1fr; gap: 14px; background: var(--surface); border-radius: var(--radius-m); border: 1px solid var(--line); padding: 12px; margin: 0 0 12px; }
.listing img, .listing .noimg { width: 92px; height: 124px; object-fit: cover; border-radius: 4px; background: #2a3037; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.listing .card-name { font: 700 20px var(--slab); margin: 0; }
.listing .grade { display: inline-block; margin: 4px 0; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.listing .price { font-size: 22px; font-weight: 700; margin: 2px 0 0; }
.listing .price small { font-size: 15px; font-weight: 400; color: var(--mute); }
.listing .seller { font-size: 15px; color: var(--mute); margin: 2px 0 8px; }
.listing .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.listing .actions .btn { min-height: 48px; flex: 1 1 auto; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 14px; font-weight: 700; background: #3a1f19; color: #f0a48f; margin-left: 6px; vertical-align: 2px; }

.seller-group { background: var(--surface); border-radius: var(--radius-m); border: 1px solid var(--line); margin: 0 0 12px; }
.seller-group summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; gap: 2px; }
.seller-group summary::-webkit-details-marker { display: none; }
.seller-group summary strong { font-size: 19px; }
.seller-group[open] summary { border-bottom: 1px solid var(--line); }
.seller-group .inner { padding: 12px; }
.seller-group .listing { border: 0; padding: 6px 0 12px; border-bottom: 1px solid var(--line); border-radius: 0; }

details.more { margin: 18px 0; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--gold); padding: 10px 0; }

/* ---------- Sheets, toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 620px; max-height: 92vh; overflow: auto;
  background: var(--surface); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
}
.sheet .close { float: right; }
.milestone { text-align: center; padding-top: 6px; }
.milestone .seal {
  width: 120px; height: 120px; margin: 4px auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--stock); color: #5c4716;
  border: 3px dashed var(--gold-dark); box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--gold), 0 0 30px rgba(210, 166, 70, .35);
  font: 700 22px var(--slab); line-height: 1.1;
  animation: seal .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes seal { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--gold); color: var(--on-gold); padding: 12px 18px; border-radius: 10px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; }

.public-hero { text-align: left; margin-bottom: 10px; }
.wantlist { font-size: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.footer-note { font-size: 15px; color: var(--mute); margin-top: 30px; }

@media (min-width: 640px) {
  .pockets { gap: 12px; }
  .pocket .who { font-size: 15px; }
  .binder-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  main.wide { max-width: 1080px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Search ---------- */
.search-bar { display: flex; gap: 8px; margin: 0 0 12px; }
.search-bar input { flex: 1 1 auto; }
.search-bar .btn { flex: none; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px; }
.result img, .result .noimg { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #2a3037; }
.result .r-title { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.result .r-price { font-size: 19px; font-weight: 700; color: var(--gold); }
.result .r-price small { font-size: 13px; font-weight: 400; color: var(--mute); }
.r-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.r-tag { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--mute); }
.r-tag.auction { background: #3a2a1c; color: #f0b48a; }
.r-tag.signed { background: #2c2440; color: #c9b6f0; }
.r-tag.bin { background: #1f2c24; color: #a7d3b2; }
.search-filters { margin: 10px 0 4px; }
.search-filters .chips { margin-bottom: 10px; }
.filter-row .chip { min-height: 38px; padding: 5px 13px; font-size: 15px; }
.filter-row.compact .chip { min-width: 52px; padding: 5px 10px; }
.search-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px 2px; }
.chip-label { flex: 0 0 100%; font-size: 14px; font-weight: 700; color: var(--mute); }
.results { scroll-margin-top: 80px; }
.chip-n { margin-left: 7px; font-size: 13px; font-weight: 400; opacity: .75; }
.chip:disabled { opacity: .4; cursor: default; }
.max-price { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 0 0 12px; }
.money-input input { min-height: 40px; }
.money-input { display: inline-flex; align-items: center; gap: 4px; }
.money-input input { width: 110px; }
.search-summary { margin: 4px 0 12px; }
.choice-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.choice { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 14px; text-align: left;
  background: var(--surface-2); border: 2px solid var(--line); border-radius: var(--radius-m); color: var(--ink); font: 700 17px var(--body); cursor: pointer; }
.choice:hover, .choice:focus-visible { border-color: var(--gold); }
.choice small { display: block; font-weight: 400; font-size: 14px; color: var(--mute); }
.choice-num { flex: none; min-width: 58px; font-family: var(--slab); color: var(--gold); font-size: 19px; }
@media (min-width: 640px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Find on eBay ---------- */
.find-bar {
  position: fixed; left: 0; right: 0; z-index: 25;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 10px 16px; background: linear-gradient(transparent, rgba(8, 9, 11, .95) 30%);
}
.find-bar .btn { max-width: 728px; margin: 0 auto; display: flex; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
body.has-find-bar main { padding-bottom: 96px; }
.more-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.summary-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.small-btn { min-height: 42px; padding: 6px 14px; font-size: 16px; }
.filters > summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.filters[open] > summary { margin-bottom: 14px; }
.intro h2 { margin-bottom: 6px; }
.card-group { margin: 0 0 22px; }
.card-group h2 { font-size: 21px; margin: 6px 0 4px; }
.result .r-grade { font-size: 13px; font-weight: 700; color: var(--mute); }
.noimg { display: flex; align-items: center; justify-content: center; color: var(--muted, #8a8f96); font-size: 13px; }
.result .noimg { aspect-ratio: auto; height: 64px; }

/* Login */
.logged-out .tabbar { display: none; }
.logged-out main { padding-bottom: 32px; }
.segmented [aria-selected="true"] { background: var(--surface-2); color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.login-hero { padding: 12px 0 6px; }
.login-hero h1 { font-size: 34px; line-height: 1.1; margin: 0 0 10px; }
.login-hero p { color: var(--mute); margin: 0 0 20px; }
label.check { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; color: var(--mute); }
label.check input { width: 22px; height: 22px; accent-color: var(--gold); }
form.panel input[type=email], form.panel input[type=password], form.panel input[type=text] { width: 100%; }

/* Bulk add */
.file-btn { position: relative; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
p.or { text-align: center; color: var(--mute); margin: 14px 0 8px; }
.import-preview:not(:empty) { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; margin: 0 0 16px; }
.import-preview p { margin: 0 0 8px; }
.import-preview ul, .help ul { margin: 6px 0 0; padding-left: 20px; }
details.help { margin: -8px 0 16px; color: var(--mute); }
details summary { cursor: pointer; color: var(--gold); }
.chip.add-many { border-color: var(--gold); color: var(--gold); }

/* Login hero: a binder page whose last pocket fills in */
.hero-page { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; margin: 6px 0 22px; }
.hero-page i { display: block; height: 46px; border-radius: 4px; background: var(--stock); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.hero-page i.last { background: transparent; border: 2px solid var(--gold); box-shadow: none; animation: pocket-fill .5s ease-out 1s forwards; }
@keyframes pocket-fill { to { background: var(--gold); border-color: var(--gold); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); } }
@media (prefers-reduced-motion: reduce) { .hero-page i.last { animation: none; background: var(--gold); } }
.login-hero h1 { font-family: var(--slab); }

/* "How far along is this set?" */
.how-far h2 { margin-top: 0; }
.how-far-options { display: grid; gap: 10px; margin: 6px 0 12px; }
.how-far .option {
  display: grid; gap: 2px; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); color: var(--stock); border: 1px solid var(--line, #2c333b);
  font: inherit;
}
.how-far .option strong { font-size: 18px; color: var(--gold); }
.how-far .option span { color: var(--mute); font-size: 15px; }
.how-far .option:hover, .how-far .option:focus-visible { border-color: var(--gold); outline: none; }
.add-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.found-so-far { font-weight: 600; color: var(--stock); min-height: 1.4em; }

/* Welcome page (logged out) */
.welcome-hero { padding: 18px 0 8px; }
.welcome-hero h1 { font-family: var(--slab); font-size: 40px; line-height: 1.05; margin: 0 0 14px; }
.welcome-hero .lede { font-size: 19px; line-height: 1.5; color: var(--stock); margin: 0 0 22px; max-width: 34em; }
.hero-page.big { grid-template-columns: repeat(3, 44px); gap: 7px; }
.hero-page.big i { height: 60px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 180px; }
.welcome-block { border-top: 1px solid var(--line, #2c333b); padding: 22px 0 6px; margin-top: 22px; }
.welcome-block h2 { font-family: var(--slab); font-size: 25px; margin: 0 0 14px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li { line-height: 1.5; padding-left: 16px; border-left: 3px solid var(--gold); }
.example-card { background: var(--surface); border: 1px solid var(--line, #2c333b); border-radius: 12px; padding: 16px 18px; }
.example-card p { margin: 6px 0; }
.example-label { color: var(--mute); font-size: 14px; }
.example-set { font-family: var(--slab); font-size: 22px; color: var(--gold); }
.decade summary, .faq summary { padding: 10px 0; font-weight: 600; color: var(--stock); }
.decade p, .faq p { margin: 0 0 12px; color: var(--mute); line-height: 1.55; }
.decade, .faq { border-bottom: 1px solid var(--line, #2c333b); }
.welcome-cta { text-align: center; padding: 28px 0 10px; margin-top: 22px; border-top: 1px solid var(--line, #2c333b); }
.welcome-cta h2 { font-family: var(--slab); font-size: 28px; margin: 0 0 6px; }
.welcome-cta p { color: var(--mute); margin: 0 0 16px; }
.welcome-cta .btn { margin-bottom: 8px; }

/* Add to home screen */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; }
.install-banner img { border-radius: 9px; flex: none; }
.install-text { display: grid; flex: 1; min-width: 0; }
.install-text span { color: var(--mute); font-size: 14px; }
.install-actions { display: grid; gap: 6px; flex: none; }
.install-steps { padding-left: 24px; display: grid; gap: 12px; margin: 8px 0 14px; }
.install-steps li { line-height: 1.5; }
.ios-share { display: inline-block; width: 18px; height: 20px; vertical-align: -4px; margin: 0 2px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24' fill='none' stroke='%23d2a646' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 15V2M5.5 6.5 10 2l4.5 4.5M6 10H3v12h14V10h-3'/%3E%3C/svg%3E"); }

/* Search: picking cards */
.choice[aria-pressed="true"] { border-color: var(--gold); background: #2b2618; }
.choice-box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--mute); position: relative; }
.choice[aria-pressed="true"] .choice-box { background: var(--gold); border-color: var(--gold); }
.choice[aria-pressed="true"] .choice-box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border: solid var(--on-gold); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.choice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.choice-actions .btn { flex: 1 1 auto; }
.choice-actions .btn:disabled { opacity: .5; }
.card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.picked-list { margin: 0 0 8px; padding-left: 20px; color: var(--mute); }
.card-subgroup { margin: 18px 0 0; }
.card-subgroup h3 { font-size: 18px; margin: 0 0 10px; }

/* Set options, Edit on My sets */
.set-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.set-title h1 { margin-bottom: 4px; }
.set-options { flex: none; margin-top: 4px; }
.option-list { display: grid; gap: 8px; margin: 0 0 14px; }
.option-row[hidden] { display: none; }
.option-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); font: 700 17px var(--body); cursor: pointer; }
.option-row small { font-weight: 400; font-size: 14px; color: var(--mute); }
.option-row.danger strong { color: var(--pennant); }
.sets-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.manage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 0 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.back-link { display: inline-block; margin: 0 0 10px; color: var(--gold); }
.check-row { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; min-height: 44px; }
.check-row input { width: 22px; height: 22px; }

/* Printable show list: on screen it looks like a sheet of paper */
.print-sheet { background: #fbf8f0; color: #1a1a1a; border-radius: var(--radius-m); padding: 20px; margin-top: 16px; font-size: 14px; }
.print-sheet h1 { color: #1a1a1a; font-size: 24px; margin: 0 0 2px; }
.ps-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #1a1a1a; padding-bottom: 8px; margin-bottom: 8px; }
.ps-head p { margin: 0; }
.ps-brand { text-align: right; font-size: 12px; color: #555; }
.ps-note, .ps-quick { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.ps-group h2 { font-family: var(--body); font-size: 13px; color: #555; margin: 12px 0 4px; border-bottom: 1px solid #bbb; }
.ps-list { list-style: none; padding: 0; margin: 0; columns: 2 230px; column-gap: 22px; }
.ps-list li { display: flex; align-items: baseline; gap: 6px; break-inside: avoid; padding: 2px 0; border-bottom: 1px dotted #ccc; font-size: 13px; }
.ps-list li.have { color: #888; }
.ps-box { flex: none; width: 12px; height: 12px; border: 1.5px solid #1a1a1a; font-size: 10px; line-height: 10px; text-align: center; align-self: center; }
.ps-num { flex: none; min-width: 34px; font-weight: 700; }
.ps-name { flex: 1 1 auto; }
.ps-price { flex: none; font-size: 11px; color: #444; white-space: nowrap; }
.ps-foot { margin: 14px 0 0; font-size: 11px; color: #777; text-align: center; }

@media print {
  @page { margin: 0.5in; }
  body { background: #fff !important; color: #000; }
  .topbar, .tabbar, .no-print, .find-bar, #toast, #sheet-root, .install-banner { display: none !important; }
  main { max-width: none; padding: 0 !important; }
  .print-sheet { background: #fff; padding: 0; margin: 0; border-radius: 0; font-size: 10pt; }
  .ps-list { columns: 3; column-gap: 0.25in; }
  .ps-list li { font-size: 9pt; padding: 1px 0; }
  .ps-price { font-size: 8pt; }
  .ps-group h2 { break-after: avoid; }
}

/* Copies, condition/grade and upgrade goal for a card */
.copy-badge { position: static; align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: var(--gold); color: #17130a; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pocket { position: relative; }
.copy-list { display: grid; gap: 10px; margin: 0 0 10px; }
.copy-row { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px 12px; }
.copy-kind { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.copy-kind .chip { min-height: 36px; padding: 4px 12px; font-size: 15px; }
.copy-n { font-weight: 700; margin-right: 4px; }
.copy-kind .btn.quiet { margin-left: auto; }
.copy-fields, .goal-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.goal-fields { margin: 0 0 8px; }
.mini-field { display: grid; gap: 4px; font-size: 14px; color: var(--mute); }
.mini-field select { min-height: 42px; min-width: 130px; font-size: 16px; }
.goal-toggle { margin-top: 14px; font-weight: 700; }
.list-row { display: flex; align-items: center; gap: 8px; }
.list-row > label { flex: 1 1 auto; }
.details-btn { flex: none; font-size: 14px; }
.upgrades summary strong { color: var(--gold); }
.list-view .list-row { border-bottom: 1px solid var(--line); padding-right: 6px; }
.list-view .list-row label { border-bottom: 0; }

/* Seller bundles: visible up front, never required */
.bundle-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0;
  padding: 14px 16px; background: #1f2c24; border: 1px solid #2f4a3a; border-radius: var(--radius-m); }
.bundle-note strong { color: #a7d3b2; font-size: 17px; }
.bundle-note p { margin: 2px 0 0; }
.bundle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bundle-tag { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid #2f4a3a; background: #1f2c24;
  color: #a7d3b2; font: 700 14px var(--body); cursor: pointer; text-align: left; }
.bundle-tag:hover, .bundle-tag:focus-visible { border-color: #a7d3b2; }

/* Collecting part of a set */
.subset-line { margin: 6px 0 0; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.subset-line strong { color: var(--gold); }
.subset-tag { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }
.scope-chips { margin: 0 0 10px; }
.subset-tip { margin: 0 0 12px; }
.option-row.pick.on { border-color: var(--gold); background: #2b2618; }
.option-row.pick:disabled { opacity: .5; cursor: default; }
.option-row.pick strong { display: flex; align-items: center; }
.pick-input { padding: 8px 0 4px; }
.pick-input input, .pick-input select { width: 100%; min-height: 48px; font-size: 17px; }

/* Back to top */
.to-top {
  position: fixed; right: 16px; z-index: 26;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  min-height: 48px; padding: 0 18px; border-radius: 24px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--gold);
  font: inherit; font-size: 17px; font-weight: 700; box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.to-top.above-bar { bottom: calc(var(--tabbar-h) + 88px + env(safe-area-inset-bottom)); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media print { .to-top { display: none; } }

/* ---------- Medals, badges and the collection page ---------- */
.medal {
  --metal: var(--gold); --metal-2: #8a6a22;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  background: repeating-conic-gradient(var(--metal) 0 6deg, var(--metal-2) 6deg 12deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.medal > span {
  display: grid; place-items: center; width: 78%; height: 78%; border-radius: 50%;
  background: var(--stock); color: #3b2e12; box-shadow: inset 0 0 0 3px var(--metal), inset 0 0 0 5px var(--stock), inset 0 0 0 6px var(--metal-2);
  font: 700 19px/1 var(--slab); letter-spacing: -.02em;
}
.medal.bronze { --metal: #c08850; --metal-2: #7c4f25; }
.medal.silver { --metal: #c9d0d7; --metal-2: #7f8891; }
.medal.gold { --metal: #e0b552; --metal-2: #8a6a22; }
.medal.sm { width: 44px; height: 44px; }
.medal.sm > span { font-size: 14px; }
.medal.xl { width: 132px; height: 132px; margin: 6px auto 14px; animation: seal .55s cubic-bezier(.2, 1.4, .4, 1); }
.medal.xl > span { font-size: 36px; }
.medal.locked { filter: grayscale(1) brightness(.55); box-shadow: none; }
.milestone.is-badge .eyebrow-note { margin: 0 0 6px; color: var(--gold); font-weight: 700; }
.milestone { position: relative; }

.confetti { position: absolute; left: 50%; top: 90px; width: 0; height: 0; pointer-events: none; }
.confetti i {
  position: absolute; width: 9px; height: 13px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: pop var(--d) cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes pop {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

.collection-strip {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 4px 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  color: var(--ink); text-decoration: none;
}
.collection-strip > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.collection-strip small { color: var(--mute); font-size: 15px; }
.collection-strip .chev { font-size: 30px; color: var(--gold); line-height: 1; }

.coll-hero h1 { margin-bottom: 0; }
.coll-total { margin: 4px 0 0; font-size: 22px; }
.coll-total strong { font: 700 56px/1 var(--slab); color: var(--gold); margin-right: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 8px; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; }
.stat strong { display: block; font: 700 28px/1.1 var(--slab); }
.stat small { color: var(--mute); font-size: 15px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.upcoming { background: #2a2417; border: 1px solid #6b5626; border-radius: var(--radius-m); padding: 10px 14px; margin-bottom: 12px; }
.upcoming p { margin: 2px 0; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .badge-grid { grid-template-columns: repeat(3, 1fr); } }
.badge-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  color: var(--ink); font: inherit; cursor: pointer;
}
.badge-tile strong { font-size: 16px; line-height: 1.2; }
.badge-tile small { color: var(--mute); font-size: 14px; }
.badge-tile.is-locked strong { color: var(--mute); }
.badge-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.meter { display: block; width: 80%; height: 6px; border-radius: 3px; background: #2c333b; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold); }
.tier-list { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; }
.tier-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.tier-list li > span:last-child { display: flex; flex-direction: column; }
.tier-list small { color: var(--mute); font-size: 15px; }
.tier-list li:not(.done) strong { color: var(--mute); }

.best-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .best-grid { grid-template-columns: repeat(4, 1fr); } }
.best-card { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.25; }
.best-card img, .best-card .stock { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 6px; background: var(--stock); margin-bottom: 4px; }
.best-card .stock { display: grid; place-items: center; color: #3b2e12; font: 700 20px var(--slab); border: 2px solid #c9b588; }
.best-card small { color: var(--mute); font-size: 13px; }
.tags { display: inline-flex; gap: 4px; }
.tags em { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #2a2417; color: #e6c779; border: 1px solid #6b5626; }

.coll-search-out h3 { margin: 16px 0 4px; font-size: 18px; }
.coll-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.coll-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.coll-row small { color: var(--mute); font-size: 14px; }
.coll-row .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--mute); flex: none; }
.coll-row .dot.have { background: var(--gold); border: 2px solid var(--gold); }

.decades { display: grid; gap: 8px; }
.decade { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 10px; }
.decade .bar { height: 14px; background: #2c333b; border-radius: 7px; overflow: hidden; }
.decade .bar i { display: block; height: 100%; background: var(--gold); }
.decade .n { text-align: right; color: var(--mute); }
.coll-set { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.coll-set > span:first-child { display: flex; justify-content: space-between; gap: 10px; }
.coll-set small { color: var(--mute); }
.coll-set .progress { margin: 0; height: 10px; }
@media (prefers-reduced-motion: reduce) { .medal.xl { animation: none; } }
.coll-hero ~ section { margin-top: 28px; }
.toggle .toggle-note { display: block; color: var(--mute); font-size: 15px; font-weight: 400; margin-top: 2px; }

/* ---------- Set screen, tidier ---------- */
.next-step { margin: 8px 0 0; color: var(--mute); font-size: 16px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.toolbar .find-card { flex: 1; min-width: 0; }
.toolbar .find-card input { width: 100%; min-height: 48px; }
.toolbar .segmented { margin: 0; }
.small-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; padding: 3px; }
.small-seg button { min-height: 42px; padding: 0 16px; font-size: 16px; }
.view-bar button { min-width: 48px; padding: 0 12px; font-size: 20px; }
.toolbar .edit-cards { margin-left: auto; white-space: nowrap; }
.pocket.flash, .list-row label.flash { outline: 4px solid var(--gold); outline-offset: 2px; transition: outline-color .3s; }
.mode-bar { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.mode-bar button { font-size: 15px; line-height: 1.2; padding: 8px 6px; }

/* Toast with an Undo button */
#toast.has-action { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.toast-action { background: none; border: 0; color: var(--on-gold); font: inherit; font-weight: 700; min-height: 44px; padding: 0 6px; cursor: pointer; text-decoration: underline; }

/* Good deal tag */
.deal-tag { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 6px; background: #1f3a25; color: #9be3ad; border: 1px solid #3f7a4d; font-size: 14px; font-weight: 700; }
.deal-link { color: #9be3ad; padding: 0; }

/* One card's page */
.card-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-nav > span { display: flex; gap: 4px; }
.card-hero { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; margin-bottom: 16px; }
.card-photo { width: 140px; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background: var(--stock); border: 2px solid #c9b588; display: grid; place-items: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo span { font: 700 28px var(--slab); color: #3b2e12; }
.card-num { margin: 0; color: var(--gold); font-weight: 700; }
.card-hero h1 { margin: 2px 0 4px; }
.card-actions { display: grid; gap: 10px; margin: 14px 0 22px; }
.file-btn[hidden] { display: none !important; }

/* ----- share images, certificate, finished-sets shelf ----- */
.share-preview { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #0d0f12; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 14px; }
.cert-btn { margin-top: 10px; }
.option-row.trophy-row { border-color: var(--gold); }
.option-row.trophy-row strong { color: var(--gold); }
.trophy-shelf { margin-top: 22px; }
.plaques { display: grid; gap: 10px; }
@media (min-width: 560px) { .plaques { grid-template-columns: repeat(2, 1fr); } }
.plaque { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; align-items: center; padding: 14px;
  border: 2px solid var(--gold); border-radius: 12px;
  background: linear-gradient(160deg, rgba(210,166,70,.16), rgba(210,166,70,.03)); }
.plaque-seal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold);
  font-family: var(--slab); font-weight: 700; font-size: 22px; box-shadow: inset 0 0 0 3px #17130a33; }
.plaque-text { display: grid; gap: 2px; min-width: 0; }
.plaque-text strong { font-family: var(--slab); font-size: 20px; line-height: 1.15; }
.plaque-text small { color: var(--mute); }
.plaque-actions { grid-column: 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plaque.empty { border-style: dashed; border-color: var(--line); background: transparent; }
.plaque.empty .plaque-seal { background: transparent; border: 2px dashed var(--line); font-size: 24px; }

/* ----- personal touches ----- */
.field[hidden] { display: none; }
.greeting { font-family: var(--slab); font-size: 20px; color: var(--gold); margin: 4px 0 -4px; }
.name-nudge { border-color: var(--gold); }
.name-nudge input { width: 100%; margin: 8px 0 10px; }
.name-nudge .btn-row { display: flex; gap: 10px; align-items: center; }
