/* ConsistentBrother look – loaded after style.css, so everything here wins.
   The brand is the sticker: white Bungee lettering, thick black outline, hard offset shadow, on brand yellow.
   So: thick outlines and hard shadows instead of hairlines and blur, yellow for everything you can press,
   Bungee for titles and big numbers, warm cream (light) / near-black (dark) instead of iOS greys. */

:root, :root[data-theme=light] {
  --bg: #fbf3df; --panel: #ffffff; --panel2: #f3e9cf; --ink: #111111; --muted: #6b6150; --line: #e6dcc0;
  --sep: rgba(17, 17, 17, .14); --seg: #f3e9cf; --seg-on: var(--brand);
  --edge: #111111; --shade: #111111; --good: #0e8a43; --bad: #d1271b; --accent: #9a5b00;
  --card-shade: var(--shade);
  --cb-border: 2.5px solid var(--edge); --cb-shadow: 4px 4px 0 var(--card-shade); --cb-shadow-s: 3px 3px 0 var(--shade);
}
:root[data-theme=dark] {
  --bg: #151515; --panel: #222222; --panel2: #2c2c2c; --ink: #ffffff; --muted: #a8a29a; --line: #343434;
  --sep: rgba(255, 255, 255, .10); --seg: #2c2c2c; --seg-on: var(--brand);
  --edge: #000000; --shade: #000000; --card-shade: #f9af17; --good: #3ddc84; --bad: #ff5a4e; --accent: #f9af17;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #151515; --panel: #222222; --panel2: #2c2c2c; --ink: #ffffff; --muted: #a8a29a; --line: #343434;
    --sep: rgba(255, 255, 255, .10); --seg: #2c2c2c; --seg-on: var(--brand);
    --edge: #000000; --shade: #000000; --card-shade: #f9af17; --good: #3ddc84; --bad: #ff5a4e; --accent: #f9af17;
  }
}
html { background: var(--bg); }
html, body { font-family: "Inter", system-ui, "Segoe UI", Roboto, sans-serif; }
body { background: var(--bg); }

/* ---------- type: Bungee for titles, section labels, big numbers ---------- */
.ptitle, .sheet h2, .rc-top b, .welcome h3, .goals h3, .cd-h, #pfV, .hit .pr, .price-big, .pf-v, .ss-total b, .cd-price b {
  font-family: var(--display); font-weight: 400; letter-spacing: .01em;
}
.ptitle { text-transform: uppercase; }
#pfV { font-size: clamp(28px, 10.5vw, 46px); line-height: 1.05; min-width: 0; overflow-wrap: anywhere; }
.hit .pr { font-size: 26px; }
.sec-h { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); margin: 26px 4px 10px; display: flex; align-items: center; gap: 8px; }
.sec-h::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--brand); border: 2px solid var(--edge); transform: rotate(45deg); }
.sec-h > button, .sec-h > .sec-link, .sec-h > a { margin-left: auto; font-family: "Inter", system-ui, sans-serif; font-size: 14px;
  font-weight: 800; text-transform: none; letter-spacing: 0; }

/* ---------- surfaces: outlined, hard shadow ---------- */
.list:not(.pick):not(:empty), .glist, .setlist > .goals, .welcome, .howto .glist, .card-box, .kpi, .scanbtns > *, .ss-total > div,
.sell-sheet .card-blk, .sell-tiles > *, #sellSum > div, .mk .list, .ss-opts, .cd-tiles > *, .item.cd-row.on {
  border: var(--cb-border) !important; box-shadow: var(--cb-shadow); border-radius: 16px !important;
}
.list:not(.pick):not(:empty), .glist { overflow: hidden; }
.card-box .list:not(.pick), .card-box .glist, .glist .glist, .list .list { border: 0 !important; box-shadow: none; }
/* separators inside a card: a clear line, not a hairline */
.list:not(.pick) > .item + .item::before, .glist .gr + .gr::before, .setlist .setrow + .setrow::before, .setlist .goalrow + .goalrow::before {
  height: 1.5px !important; background: var(--sep) !important; transform: none !important;
}
.hint { color: var(--muted); }

/* ---------- buttons: chunky, press in ---------- */
.btn, .linkbtn.solid, .pf-more, .chip.ichip, .coll-bar > .ichip, #filtBtn, .hdr-gear, .sec-link.btn {
  border: var(--cb-border) !important; box-shadow: var(--cb-shadow-s); font-weight: 800; border-radius: 12px;
  transition: transform .06s, box-shadow .06s;
}
.btn:active, .pf-more:active, .chip.ichip:active, .coll-bar > .ichip:active, #filtBtn:active, .hdr-gear:active, .addbtn:active, .tile .plus:active {
  transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--shade) !important;
}
.btn { background: var(--panel); color: var(--ink); }
.btn.primary, .addbtn, .tile .plus, .pk .plus, .sell-main, #sellSum #sellMany {
  border: var(--cb-border) !important; box-shadow: var(--cb-shadow-s) !important; color: #111 !important;
}
.btn.ghost { background: var(--panel); }
.btn.danger, .btn.ghost.danger { color: var(--bad); }
.pf-more { background: var(--brand) !important; color: #111 !important; border-radius: 999px; padding: 8px 16px; }
.hdr-gear { background: var(--brand) !important; color: #111 !important; border-radius: 50% !important; }
.hdr-gear.on { background: #111 !important; color: var(--brand) !important; }
.coll-bar > .ichip, #filtBtn { background: var(--panel); border-radius: 12px !important; }
#filtBtn.on { background: var(--brand) !important; color: #111 !important; }
.addbtn { border-radius: 16px !important; }

/* ---------- segmented controls: outlined, yellow = chosen ---------- */
.seg { background: var(--panel) !important; border: var(--cb-border); border-radius: 14px !important; padding: 3px !important; box-shadow: var(--cb-shadow-s); }
.seg button { border-radius: 10px !important; font-weight: 800 !important; color: var(--muted); }
.seg button.on { background: var(--brand) !important; color: #111 !important; box-shadow: none !important; }
.ranges button.on { background: var(--brand) !important; color: #111 !important; border: 2px solid var(--edge); }
.ranges button { font-weight: 800; }

/* ---------- inputs ---------- */
main input:not([type=checkbox]):not([type=radio]):not([type=range]), main select, main textarea, .sheet input:not([type=checkbox]):not([type=radio]):not([type=range]),
.sheet select, .sheet textarea, #q, #filter, .auth-fields input, #toolView input:not([type=checkbox]), #toolView select {
  border: var(--cb-border) !important; background-color: var(--panel) !important;   /* color only: #q keeps its magnifier image */ color: var(--ink); border-radius: 12px !important; box-shadow: none;
}
#q, #filter { box-shadow: var(--cb-shadow-s) !important; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.auth-fields { border: var(--cb-border); border-radius: 16px; box-shadow: var(--cb-shadow); overflow: hidden; }
.auth-fields input { border: 0 !important; border-radius: 0 !important; }
.auth-fields input + input { border-top: 2px solid var(--sep) !important; }

/* switches: yellow when on, outlined */
input.gchk, .gsw { border: 2px solid var(--edge) !important; }
input.gchk:checked, .gsw.on { background: var(--brand) !important; }

/* ---------- game tags = little stickers ---------- */
.tag { border: 2px solid var(--edge); border-radius: 7px; transform: rotate(-4deg); font-family: var(--display); font-weight: 400;
  letter-spacing: .03em; box-shadow: 2px 2px 0 var(--shade); padding: 1px 6px; }

/* price change pills */
.pill { border: 2px solid var(--edge); box-shadow: 2px 2px 0 var(--shade); font-weight: 800; }
.pill.up { background: var(--good); color: #fff; }
.pill.down { background: var(--bad); color: #fff; }

/* ---------- card pictures: outlined like printed cards ---------- */
.item img, .ctile img, .cv img, .hit img, .carousel img, .pk img {
  border: 2px solid var(--edge); box-shadow: 2px 2px 0 var(--shade);
}
.ctile { border: var(--cb-border); box-shadow: var(--cb-shadow-s); border-radius: 14px; overflow: hidden; background: var(--panel); }
.ctile img { border: 0; box-shadow: none; }
.ctile .qty, .ctile .shiny, .ctile .grade { border: 2px solid var(--edge); font-weight: 800; }

/* the last-scanned card on the Scan screen */
.hit { border: var(--cb-border) !important; box-shadow: var(--cb-shadow) !important; border-radius: 18px !important; background: var(--panel) !important; }

/* ---------- header ---------- */
header.top { background: var(--bg) !important; }
body.scrolled header.top { box-shadow: 0 2.5px 0 var(--edge) !important; }

/* ---------- tab bar: black in both modes, yellow = here ---------- */
.tabs { background: #111111 !important; border-top: 2.5px solid #000 !important; box-shadow: 0 240px 0 0 #111111 !important; }
.tabs button { color: #9b9b9b !important; font-weight: 800 !important; }
.tabs button svg { stroke-width: 2.2 !important; }
.tabs button.on, .tabs .scan-fab.on span { color: var(--brand) !important; }
.tabs button.on:not(.scan-fab) svg { stroke: var(--brand) !important; }
.tabs button.on:not(.scan-fab)::before { background: var(--brand) !important; height: 3px !important; }
.tabs .scan-fab i { background: var(--brand) !important; color: #111 !important; border: 3px solid #000 !important; box-shadow: 3px 3px 0 #000 !important; }
.tabs .scan-fab:active i { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 #000 !important; }

/* ---------- sheets (card page, sell) ---------- */
.sheet .sheet-body, #sheet { border-top: 3px solid var(--edge); }
.sheet h2 { text-transform: uppercase; }
.sheet-actions { border-top: 2.5px solid var(--edge) !important; }

/* ---------- toast: a black sticker with yellow text ---------- */
.toast { background: #111 !important; color: #fff !important; border: 2.5px solid var(--brand) !important; box-shadow: 4px 4px 0 #000 !important;
  border-radius: 14px !important; font-weight: 700; }
.toast button { color: var(--brand) !important; font-weight: 800; }

/* ---------- Settings icon squares: outlined stickers instead of iOS tiles ---------- */
.tico { border: 2px solid var(--edge); box-shadow: 2px 2px 0 var(--shade); border-radius: 9px !important; }

/* ---------- welcome / how it works ---------- */
.welcome .wl-ico { border: var(--cb-border); box-shadow: var(--cb-shadow-s); }
.howto .hw-n { border: 2px solid var(--edge); font-family: var(--display); font-weight: 400; }

/* progress bars */
.prog { background: var(--panel2) !important; border: 2px solid var(--edge); height: 10px !important; border-radius: 999px; }
.prog i { background: var(--brand) !important; border-right: 2px solid var(--edge); }
.prog.done i { background: var(--good) !important; }

@media (prefers-reduced-motion: reduce) { .btn, .pf-more { transition: none; } }

/* details found in the screenshots */
.cd-h span, .cd-h small, .sec-h small, .goals h3 small { font-family: "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--muted); font-size: 13px; }
.pl-btn { border: var(--cb-border) !important; background: var(--panel) !important; }
.cd .pq, .pq { border: var(--cb-border); border-radius: 12px; }
.sec-h { justify-content: flex-start !important; }       /* the old rule spread the diamond and the title apart */

/* Portfolio breakdown: one outlined card with rows, not a stack of separate cards */
.kpis .kpi { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; }
.kpis .kpi + .kpi { border-top: 1.5px solid var(--sep) !important; }
.kpis:not(:empty) { border: var(--cb-border); box-shadow: var(--cb-shadow); border-radius: 16px; overflow: hidden; background: var(--panel); gap: 0 !important; }
/* long e-mail in Settings › Account: shortened with "…", never under the Sign out button */
.glist .gr > .gl { min-width: 0; }
#accountRows .gr > .gl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#accountRows .gr > .gl small { overflow: hidden; text-overflow: ellipsis; }
.glist .gr > .btn { flex: none; }
/* card page: "Show N more versions" row */
.cd-more { width: 100%; background: none; border: 0; font: inherit; font-weight: 800; color: var(--accent); text-align: left; cursor: pointer; }

/* Back buttons on sub-pages (Portfolio, Market prices, tools): same chunky button as the rest – outline, hard
   shadow, presses in – instead of a flat grey pill */
#statsBack, #mkBack, #toolBack { border: var(--cb-border) !important; box-shadow: var(--cb-shadow-s) !important;
  border-radius: 12px !important; background: var(--panel) !important; color: var(--accent) !important;
  font-weight: 800 !important; padding: 7px 14px 7px 10px !important; transition: transform .06s, box-shadow .06s; }
#statsBack:active, #mkBack:active, #toolBack:active { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--shade) !important; }
#tab-stats #statsBack { margin: 0 0 16px !important; }

/* Scan options: a panel that slides up over the lower screen while the camera stays in view (it used to open
   below the camera, so changing a switch meant scrolling the camera off the top) */
#shinePanel { position: fixed; left: 10px; right: 10px; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 25;
  max-width: 540px; margin: 0 auto; max-height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border: var(--cb-border); border-radius: 18px; box-shadow: var(--cb-shadow); padding: 4px 4px 8px;
  animation: optsUp .18s ease-out; }
#shinePanel .glist { border: 0 !important; box-shadow: none !important; background: none !important; }
.opts-head { position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 8px; background: var(--panel); }
.opts-head b { font-family: Bungee, var(--font, sans-serif); font-weight: 400; font-size: 17px; }
.opts-head .btn { padding: 6px 16px; font-size: 15px; }
@keyframes optsUp { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #shinePanel { animation: none; } }

/* checkboxes outside the iOS switches (buy list, pickers) in brand colour instead of browser blue */
input[type=checkbox]:not(.gchk) { accent-color: var(--brand); }
.ptitle.long { font-size: 21px !important; line-height: 1.25; }
#ssFee { display: inline; width: auto; padding: 0; margin: 0; font: inherit; font-weight: 800; }   /* fee % sits inside the sentence */

/* Market: "More…" is a fourth segment button (not an outlined field inside the segment), with a small chevron */
#mkGame select { border: 0 !important; box-shadow: none !important; background-color: transparent !important; border-radius: 10px !important;
  font-weight: 800; font-size: 13px; color: var(--muted); padding: 6px 18px 6px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 6px center !important; }
#mkGame select.on { background-color: var(--brand) !important; color: #111; }
/* Japanese on/off: an outlined sticker chip with a tick box, like the other controls on the page */
.mk-jp { display: inline-flex; align-items: center; gap: 7px; border: var(--cb-border) !important; box-shadow: var(--cb-shadow-s);
  background: var(--panel); color: var(--ink); font-weight: 800 !important; font-size: 13px !important; padding: 8px 12px; border-radius: 12px; transition: transform .06s, box-shadow .06s; }
.mk-jp::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--edge); border-radius: 4px; box-sizing: border-box; background: var(--panel); }
.mk-jp.on { background: var(--brand); color: #111; }
.mk-jp.on::before { background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%23f9af17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; border-color: #111; }
.mk-jp:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shade); }

/* eBay setup: values to paste into the eBay developer portal, each with a Copy button */
.eb-copy { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 8px 10px; border: 2px solid var(--sep); border-radius: 10px; background: var(--panel); }
.eb-copy span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.eb-copy code { color: var(--ink); font-size: 12.5px; word-break: break-all; }
.eb-copy .btn { flex: none; padding: 6px 12px; font-size: 13px; }

/* v96: one toolbar row – search with the count in it, then four icon buttons */
.coll-search { gap: 6px; }
.coll-search > .ichip, .coll-search > #filtBtn { flex: none; width: 40px; height: 40px; padding: 0 !important; display: grid; place-items: center;
  position: relative; color: var(--ink); background: var(--panel); border-radius: 12px !important; }
.coll-search > .ichip .ic { width: 18px; height: 18px; }
.coll-search > #sortChip select { position: absolute; inset: 0; opacity: 0; width: 100%; }
.coll-bar { margin: 8px 0 4px; }
.coll-bar #collSummary:not(.on) { display: none; }
.coll-bar:has(#collSummary:not(.on)) { margin: 4px 0 0; }
/* Details: a quiet link next to the value, not a second yellow button */
.pf-hero .pf-l .pf-more { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--accent) !important;
  padding: 7px 0 !important; font-weight: 700; }
#foilBtn[hidden] { display: none !important; }
/* Sell: the first time, only the top shows until the lists are there (no jump) */
#tab-sell:not(.drawn) #sellHome > :not(#sellSum) { visibility: hidden; }
/* Calmer page titles: the brand font stays, a size that leaves room for the content */
.ptitle { font-size: 22px !important; line-height: 1.2; }
.ptitle.long { font-size: 18px !important; }
header.top { padding-bottom: 6px; }
.hdr-gear { width: 34px; height: 34px; padding: 0 !important; }   /* the .btn padding (6px sides) left the 20px icon 18px: it sat off-centre */
/* Grid tiles: the card picture is the tile – no box, outline or shadow around it (in dark mode every tile had a
   yellow hard shadow), and the price/name sit under it with room to breathe instead of against a clipped corner */
.ctile { border: 0 !important; box-shadow: none !important; background: none !important; border-radius: 0; overflow: visible; }
.ctile img { border-radius: 8px !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .25) !important; }
.ctile .cap { padding: 0 2px; margin-top: 6px; font-size: 12.5px; line-height: 1.3; }
.ctile .cap b { font-size: 14px; font-weight: 700; }
.ctile .cap span { font-size: 12px; }
#collList.cgrid { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 14px 10px; }
/* "Add goal" sat inside the Bungee heading and came out in shouty capitals */
.goals h3 .btn { font-family: "Inter", system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
  font-size: 14px; font-weight: 700; padding: 6px 12px; }
/* Scan options fit the screen: from below the header down to the tab bar */
#shinePanel { max-height: calc(100dvh - 104px - env(safe-area-inset-bottom) - env(safe-area-inset-top) - 64px); }
#shinePanel .gr .gl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opts-head { top: -4px; box-shadow: 0 6px 6px -6px rgba(0, 0, 0, .15); }
/* light-mode sweep: the opened set's header is a box like every other; Settings' Refresh link is plain text size */
.set-head { border: var(--cb-border) !important; box-shadow: var(--cb-shadow-s); border-radius: 14px; }
.gfoot .linkbtn, #backupBtn, #refreshBtn { font-size: inherit !important; font-weight: 700; padding: 0 !important; vertical-align: baseline; }
.setrow .st .tag, .goalrow .st .tag { margin-right: 4px; vertical-align: 1px; }
/* card rows clip their one-line text (overflow hidden): room around the line so the tilted tag and its shadow show whole */
.item .st:has(> .tag) { padding: 4px 0 4px 3px; margin: -4px 0 -4px -3px; }
.item .st .tag { margin-right: 4px; vertical-align: 1px; }
/* For sale rows: the ✕ that takes a card off sale */
#sellListed .item { padding-right: 6px; }
#sellListed .unsale { flex: none; width: 40px; height: 40px; margin-left: 4px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer; }
#sellListed .unsale .ic { width: 18px; height: 18px; }
#sellListed .unsale:active { background: var(--seg); color: var(--bad); }
/* Collection list, compact (big collections): one line per name, small picture – about 12 cards per screen instead
   of 6–8. The full name is on the card page. */
#collList.list > .item { padding: 7px 12px 7px 10px; gap: 10px; min-height: 0; }
#collList.list > .item img { width: 34px; height: 47px; border-width: 1.5px; box-shadow: 1px 1px 0 var(--shade); border-radius: 4px; }
#collList.list > .item .nm { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 15px; line-height: 1.3; }
#collList.list > .item .st { font-size: 12.5px; margin-top: 1px; line-height: 1.3; }
#collList.list > .item .st.meta { margin-top: 0; }
#collList.list > .item .rt b { font-size: 15px; }
#collList.list > .item .rt span { font-size: 12px; }
#collList.list > .item .tag { font-size: 9.5px; padding: 0 4px; }
/* The page only moves up and down: nothing may make it wider than the screen (iPhone let you drag it sideways,
   which cut off "Details ›" and the gear) */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
.gform { flex-wrap: wrap; row-gap: 8px; }
.gform .btn { white-space: nowrap; }
/* "Details ›" inside the screen, with its arrow */
.pf-hero .pf-l .pf-more { right: 4px !important; padding: 7px 2px 7px 8px !important; white-space: nowrap; }
/* settings gear on Settings: a yellow ✕ like the gear, not a dark circle */
.hdr-gear.on { background: var(--brand) !important; color: #111 !important; }
/* switches: a clear off state (grey track, knob inside the outline) */
input.gchk, .gsw { box-sizing: border-box; width: 52px !important; height: 32px !important;
  background: color-mix(in srgb, var(--muted) 30%, var(--panel)) !important; }
input.gchk::before, .gsw i { top: 2px !important; left: 2px !important; width: 24px !important; height: 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3) !important; }
input.gchk:checked, .gsw[aria-pressed=true] { background: var(--brand) !important; }
input.gchk:checked::before, .gsw[aria-pressed=true] i { transform: translateX(20px) !important; }
/* Scan screen: Language + Version under the camera (HoloDex-style), flashlight in the camera's top-right */
.scan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
#live[hidden] + .scan-pick { display: none; }
.spk { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 4px 34px 4px 14px;
  background: var(--panel); border: var(--cb-border); border-radius: 14px; box-shadow: var(--cb-shadow-s); cursor: pointer; }
.spk::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.spk span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.spk select { appearance: none; -webkit-appearance: none; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; padding: 0 !important; margin: 0; height: auto !important; min-height: 0 !important; font: inherit; font-size: 16px;
  font-weight: 800; color: var(--ink); width: 100%; outline: none; cursor: pointer; }
.spk select:focus-visible { text-decoration: underline; }
.live-torch { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0;
  border-radius: 50%; background: rgba(10,12,17,.55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.live-torch .ic { width: 19px; height: 19px; stroke-width: 2.2; }
.live-torch[aria-pressed=true] { background: var(--brand); color: #111; }
/* Settings: profile summary (value, cards, sealed, graded) */
.pf-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 16px; }
.pf-tiles > div { background: var(--panel); border: var(--cb-border); border-radius: 16px; box-shadow: var(--cb-shadow-s); padding: 10px 12px; text-align: center; }
.pf-tiles > .pf-big { grid-column: 1 / -1; }
.pf-tiles small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.pf-tiles b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; margin-top: 2px; }
.pf-tiles .pf-big b { font-size: 30px; }
.gr-est { font-family: var(--display); font-weight: 400; font-size: 14px !important; }
/* Sets view: the set's logo before its name (Pokémon) */
.setrow .nm .set-logo { display: block; height: 34px; max-width: 120px; object-fit: contain; object-position: left center; margin: 0 0 4px; }
.pf-tiles + .glist { margin-bottom: 22px; }
/* search tiles: the tilted game tag sat on the card name – its own line with room below */
.tile .meta .tag { display: inline-block; margin: 2px 0 7px 2px; }
.spk:has(select:disabled) { opacity: .6; cursor: default; } .spk:has(select:disabled)::after { display: none; }
/* loading placeholders everywhere (skelRows / skelTiles / skelBoxes in app.js): one shimmer for all */
.skel i, .skel b, .skel span, .skel-box b, .skel-box span, .skel-card, .skel-wide {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, var(--panel2) 0, color-mix(in srgb, var(--panel2) 55%, var(--muted)) 50%, var(--panel2) 100%) no-repeat;
  background-size: 400px 100%; animation: shimmer 1.2s linear infinite; }
.skel, .skel-box, .skel-card { pointer-events: none; }
#collList.list > .item.skel i { width: 34px; height: 47px; }
.tile.skel { box-shadow: none !important; }
.tile.skel > i { width: 100%; aspect-ratio: 63 / 88; border-radius: 10px 10px 0 0; }
.tile.skel b { height: 14px; width: 70%; margin: 4px 0 8px; } .tile.skel span { height: 12px; width: 45%; }
.skel-box { background: var(--panel); border: var(--cb-border); border-radius: 16px; box-shadow: var(--cb-shadow-s); padding: 14px; min-height: 92px; }
.skel-box b { height: 12px; width: 50%; margin-bottom: 12px; } .skel-box span { height: 26px; width: 70%; }
.skel-card { flex: none; width: 120px; aspect-ratio: 63 / 88; border-radius: 10px; }
.skel-wide { grid-column: 1 / -1; height: 58px; border-radius: 16px; }
.kpi.skel b { height: 12px; width: 35%; margin: 2px 0 10px; } .kpi.skel span { height: 24px; width: 55%; }
.kpis .kpi.skel:first-child span { height: 34px; width: 60%; }
.skel-v, .skel-chart { display: block; border-radius: 10px;
  background: linear-gradient(90deg, var(--panel2) 0, color-mix(in srgb, var(--panel2) 55%, var(--muted)) 50%, var(--panel2) 100%) no-repeat;
  background-size: 400px 100%; animation: shimmer 1.2s linear infinite; }
.skel-v { width: 180px; height: .8em; margin: .12em 0; }
.skel-chart { opacity: .5; border-radius: 14px; }
.glist .item.skel { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; padding: 12px 14px; min-height: 0; }
.glist .item.skel + .item.skel { border-top: 1.5px solid var(--sep) !important; }
.glist .item.skel i { width: 30px; height: 30px; border-radius: 8px; }
.glist .item.skel b { margin: 2px 0 6px; }

/* Portfolio: room between the breakdown card and "Most valuable" (the hard shadow made them touch) */
#kpis + .sec-h { margin-top: 22px; }
/* search tiles: copies already in your collection */
.tile .own-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--good, #30d158); color: #fff; font-weight: 800; font-size: 12px;
  padding: 2px 7px; border-radius: 999px; border: 1.5px solid var(--edge, #111); box-shadow: 1px 1px 0 var(--edge, #111); }
/* opened set: Quick add switch (tap a card = one more copy) */
.ctile.adding { opacity: .55; transform: scale(.96); transition: transform .12s, opacity .12s; }
/* card page: USA vs EU */
.us-cmp { margin-top: 14px; }
.us-rows { border: var(--cb-border); box-shadow: var(--cb-shadow); border-radius: 16px; background: var(--panel); overflow: hidden; }
.us-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: inherit; text-decoration: none; }
.us-row + .us-row { border-top: 1.5px solid var(--sep); }
.us-row span { display: flex; flex-direction: column; font-weight: 700; }
.us-row small { font-weight: 500; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 2px; }
.us-row small svg { width: 12px; height: 12px; }
.us-row b { font-size: 18px; text-align: right; display: flex; flex-direction: column; }
.us-row b small { justify-content: flex-end; }
.us-row.best b { color: var(--good, #1a8f3c); }
.us-verdict { margin: 10px 2px 0; font-weight: 700; }
.us-verdict.us, .us-verdict.eu { color: var(--good, #1a8f3c); }
.us-warn { margin: 8px 2px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 159, 10, .14); color: inherit; font-size: 13px; line-height: 1.35; }

/* Animated tab bar (tabbar.js): the open tab's icon lifts into a yellow sticker circle, the bar's bump slides under it */
.tabs.atb { overflow: visible; }
.tabs.atb .atb-bump { position: absolute; left: 0; bottom: calc(100% - 3px); width: 108px; height: 24px; fill: #111111; pointer-events: none;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.tabs.atb.atb-none .atb-bump { opacity: 0; }
.tabs.atb.atb-still .atb-bump, .tabs.atb.atb-still button i { transition: none !important; }
.tabs.atb button { z-index: 1; }
.tabs.atb button::before { display: none !important; }
.tabs.atb button i, .tabs.atb .scan-fab i { display: grid !important; place-items: center; width: 46px !important; height: 46px !important;
  margin: -12px 0 -6px !important; border-radius: 50%; background: transparent !important; border: 3px solid transparent !important;
  box-shadow: none !important; color: inherit !important;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1), background-color .3s, border-color .3s, box-shadow .3s; }
.tabs.atb button i svg { width: 24px !important; height: 24px !important; stroke: currentColor !important; stroke-width: 2.2 !important; }
.tabs.atb button.on i { transform: translateY(-20px); background: var(--brand) !important; border-color: #000 !important; box-shadow: 3px 3px 0 #000 !important; }
.tabs.atb button.on i svg { stroke: #111111 !important; }
.tabs.atb button:active { transform: none; }
.tabs.atb button:active i { transform: translateY(-20px) scale(.92); }
.tabs.atb button:not(.on):active i { transform: scale(.9); }
.tabs.atb button.atb-draw i svg path { stroke-dasharray: 100; animation: atb-draw .9s ease-out both; }
@keyframes atb-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tabs.atb .atb-bump, .tabs.atb button i { transition: none !important; } .tabs.atb button.atb-draw i svg path { animation: none; } }
/* Scan stays the big yellow button whether it's open or not; only Collection and Sell lift when opened */
.tabs.atb .scan-fab i { width: 56px !important; height: 56px !important; margin: -26px 0 0 !important; transform: none !important;
  background: var(--brand) !important; border-color: #000 !important; box-shadow: 3px 3px 0 #000 !important; }
.tabs.atb .scan-fab i svg { width: 26px !important; height: 26px !important; stroke: #111111 !important; }
.tabs.atb .scan-fab:active i { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 #000 !important; }

/* ---------------- Community (social.js) ---------------- */
.tabs button[data-tab=community] { position: relative; }
.tabs button[data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px var(--display, inherit); z-index: 2; }
#cmSeg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.cm-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px inherit; font-style: normal; text-align: center; }
.cm-n:empty { display: none; }
.cm-back { margin-bottom: 10px; }
.cm-search { display: flex; gap: 8px; margin: 12px 0; }
.cm-search input { flex: 1; min-width: 0; }
.cm-search select { max-width: 40%; }
.cm-mine { margin-bottom: 4px; }
.cm-seller { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.cm-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; font-size: 17px; line-height: 1;
  color: #fff; background: hsl(var(--h) 55% 45%); }
.cm-row { cursor: pointer; align-items: center; }
.cm-row .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cm-row .rt.cm-ctl { flex-direction: row; align-items: center; gap: 6px; }
.cm-row .rt.cm-ctl .btn { width: auto; margin: 0; }
.cm-row .rt .cm-n { color: #fff; font-size: 11px; }
.gform.cm-plain, #cmBody .gform { padding-left: 16px; }
.cm-row .st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-listing { display: flex; flex-direction: column; gap: 10px; text-align: center; padding-bottom: 40px; }
.cm-listing img { width: min(260px, 70vw); margin: 0 auto; border-radius: 12px; box-shadow: var(--cb-shadow, 0 8px 24px rgba(0,0,0,.25)); }
.cm-listing h2 { margin: 6px 0 0; }
.cm-listing p { margin: 0; }
.cm-price { font: 800 30px/1.1 var(--display, inherit); }
.cm-price small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.cm-who { text-align: left; }
.cm-listing textarea, .cm-compose textarea, #cmNote { width: 100%; box-sizing: border-box; resize: none; font: inherit; }
.cm-chathead { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 4px 0 8px; }
.cm-chathead .cm-back { margin: 0; }
.cm-who-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; text-align: left; padding: 0; }
.cm-who-btn > span:not(.cm-av) { display: flex; flex-direction: column; min-width: 0; }
.cm-who-btn small { color: var(--muted); }
.cm-msgs { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 120px; }
.cm-msg { max-width: 82%; padding: 9px 12px; border-radius: 18px; background: var(--panel2); align-self: flex-start; word-wrap: break-word; }
.cm-msg.me { align-self: flex-end; background: var(--brand); color: #111; }
.cm-msg p { margin: 0; white-space: pre-wrap; }
.cm-msg > small { display: block; margin-top: 3px; font-size: 11px; opacity: .6; }
.cm-msg.offer { max-width: 94%; width: 94%; background: var(--panel); border: 1px solid var(--sep, rgba(127,127,127,.25)); color: var(--ink); }
.cm-lcard { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.08); border: 0; border-radius: 12px; padding: 6px; margin-bottom: 6px;
  color: inherit; text-align: left; width: 100%; }
.cm-lcard img { width: 44px; border-radius: 4px; }
.cm-lcard span { display: flex; flex-direction: column; min-width: 0; }
.cm-lcard small { opacity: .75; }
.cm-offer h4 { margin: 10px 0 4px; font-size: 13px; display: flex; justify-content: space-between; color: var(--muted); }
.cm-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.cm-mini { flex: none; width: 58px; display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; }
.cm-mini img { width: 58px; border-radius: 5px; margin-bottom: 3px; }
.cm-mini b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-mini small { color: var(--muted); }
.cm-cash { margin: 8px 0 0; font-weight: 700; font-size: 15px; }
.cm-st { margin: 8px 0 0; font-weight: 600; font-size: 14px; color: var(--muted); }
.cm-st.ok { color: var(--good, #1a9b4b); }
.cm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cm-compose { position: fixed; left: 0; right: 0; bottom: 110px; z-index: 4; display: flex; gap: 8px;
  align-items: flex-end; padding: 8px 16px; background: var(--bg); border-top: 1px solid var(--sep, rgba(127,127,127,.2)); }
body.typing .cm-compose { bottom: 0 !important; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.cm-compose textarea { flex: 1; min-height: 38px; max-height: 140px; padding: 8px 12px; border-radius: 19px; }
.cm-compose .btn { flex: none; }
.cm-compose .hint { margin: 0; flex: 1; }
.cm-h { margin: 4px 0 10px; }
.cm-sum { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--panel); font-size: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.cm-sum span { display: flex; flex-direction: column; }
.cm-sum b { font-size: 16px; }
.cm-filter { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.cm-pick { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.cm-pc { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--panel); border: 2px solid transparent;
  color: inherit; text-align: left; }
.cm-pc.on { border-color: var(--brand); }
.cm-pc img { width: 38px; border-radius: 4px; flex: none; }
.cm-pc > span:not(.rt) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-pc small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-pc .rt { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; }
.cm-pc .rt i { font-style: normal; font-size: 12px; background: var(--brand); color: #111; padding: 0 6px; border-radius: 8px; }
.cm-money .seg { flex: 1; margin: 0; }
.cm-money input { width: 110px; }
#cmNote { margin: 12px 0; }
#cmSendOffer { width: 100%; margin-bottom: 30px; }
.cm-person { display: flex; align-items: center; gap: 14px; }
.cm-person .cm-av { width: 60px; height: 60px; font-size: 26px; }
.cm-person h2 { margin: 0; }
.cm-person p { margin: 2px 0 0; }
.cm-share { flex: 1; margin: 0; }
#cmMenu .linkrow { width: 100%; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; padding: 12px 16px; }
#cmMenu .linkrow.bad { color: var(--bad); }
