/* PullCheck app shell -- ADDITIVE layer over design/components.css.
   Anything components.css already owns (.tile .btn .candidate .pocket
   .binder-grid .bento .tab .receipt .pill) is NOT redefined here; this file
   only supplies what a live app needs and a static mockup didn't:
   a phone-shaped column, view switching, and the Lab diagnostics panel. */

body { padding: 0; background: var(--canvas);
  line-height: var(--lh-body, 1.45); }
.h2 { line-height: var(--lh-title, 1.2); }
.provenance { line-height: var(--lh-micro, 1.3); }

.phone {
  max-width: 430px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column; position: relative;
}
body.lab-open .phone { max-width: 1080px; }

/* ---- top bar ---- */
.topbar { display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;  /* at 130% Dynamic Type the toggles wrap, never clip */
  /* installed as a home-screen app the page runs under the iOS status
     bar (black-translucent + viewport-fit=cover) -- pad past it */
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--sp-4) 8px; }
.topbar .glyph { width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto; }
.topbar .glyph svg { width: 18px; height: 18px; }
.topbar h1 { font-family: var(--font-display); font-size: var(--fs-body);
  font-weight: 600; letter-spacing: -.01em; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .pill { white-space: nowrap; }
.lab-toggle { background: none; border: 1px solid var(--line);
  color: var(--text-2); border-radius: var(--r-pill); font: inherit;  /* text-3 fails AA at 11px on paper (axe) */
  font-size: var(--fs-micro); font-weight: 600; padding: 4px 11px;
  cursor: pointer; }
.lab-toggle.on { border-color: var(--accent); color: var(--accent); }
#sound-toggle.muted { text-decoration: line-through; opacity: .7; }

/* ---- view switching ---- */
.body { flex: 1; padding: 0 var(--sp-4) 104px; }
.view { display: none; }
/* page turn: content slides subtly, never a crossfade (DESIGN.md v2.2) */
.view.on { display: block;
  animation: page-in var(--mo-deliberate) var(--ease-screen); }
/* margin, not transform: a transformed ancestor becomes the containing
   block for position:fixed and the bottom-half scan CTA jumped to the top */
@keyframes page-in {
  from { margin-left: 10px; margin-right: -10px; opacity: 0; }
  to { margin-left: 0; margin-right: 0; opacity: 1; }
}
.hidden { display: none !important; }

.h2 { font-family: var(--font-display); font-size: var(--fs-title);
  font-weight: 600; letter-spacing: -.01em; margin: var(--sp-2) 0 var(--sp-3); }
.sub { font-size: var(--fs-caption); color: var(--text-3); }
.guide { font-size: var(--fs-sub); color: var(--text-2); margin: var(--sp-2) 0;
  max-width: 46ch; }
.empty-note { color: var(--text-3); font-size: var(--fs-sub);
  padding: var(--sp-5) 0; text-align: center; }
.linkish { background: none; border: none; color: var(--accent); font: inherit;
  font-size: var(--fs-sub); font-weight: 500; cursor: pointer; padding: 10px 0; }
.field-label { font-size: var(--fs-micro); font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .07em; margin-top: var(--sp-3); }
.rowbtns { display: flex; gap: 8px; margin-top: var(--sp-3); }
.rowbtns .btn { flex: 1; }

/* ---- scan ---- */
.drop { border: 2px dashed var(--line); border-radius: var(--r-card);
  padding: var(--sp-7) var(--sp-4); text-align: center; color: var(--text-2);
  cursor: pointer; transition: border-color var(--dur-fast) var(--ease),
                               background var(--dur-fast) var(--ease); }
.drop.hot { border-color: var(--accent); background: var(--accent-soft); }
.drop b { color: var(--text); font-family: var(--font-display); display: block; }
.scan-opts { display: flex; gap: 14px; align-items: center; margin-top: var(--sp-3);
  font-size: var(--fs-sub); color: var(--text-2); }
.scan-opts label { display: flex; gap: 7px; align-items: center; cursor: pointer; }

.hero { text-align: center; margin: var(--sp-4) 0 var(--sp-3); }
.hero img { width: 200px; border-radius: var(--r-art); display: block;
  margin: 0 auto; box-shadow: inset 0 0 0 1px var(--line); }

/* ---- the Lock (DESIGN.md v2.1): card seats into a sleeve ---- */
.sleeve { position: relative; display: inline-block; padding: 4px;
  border-radius: calc(var(--r-art) + 4px); background: var(--surface); }
.sleeve::after { content: ""; position: absolute; inset: 0;
  border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent);
  opacity: 0; transition: opacity 120ms var(--ease-screen);
  pointer-events: none; }
.sleeve.seated::after { opacity: 1; }
/* $100+ lock: the holo event layers on -- the SLEEVE gets rare, the
   choreography never changes (one of the three earned holo events) */
.sleeve.holo-edge::after { box-shadow: none; opacity: 1;
  border: 2px solid transparent;
  background: var(--holo) border-box; background-size: 220% 220%;
  animation: holo-sheen 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.hero img.seat { animation: seat-drop var(--mo-standard) var(--ease-card) both; }
@keyframes seat-drop {
  0% { transform: translateY(-26px); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.hero.locking .hero-meta-wrap { opacity: 0; }
.hero.locking .hero-meta-wrap.in { opacity: 1;
  transition: opacity 60ms var(--ease-screen); }

/* UNSURE: the held hand -- candidates fan in, ease-out, silent */
.candidate.fan-in { animation: fan-in var(--mo-standard) var(--ease-screen) both; }
@keyframes fan-in {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
/* price tick: a changed figure rolls up half a digit-height, no flash */
.stat-value.tick { animation: num-roll var(--mo-standard) var(--ease-screen); }
@keyframes num-roll {
  from { transform: translateY(.55em); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero img.seat, .candidate.fan-in, .view.on,
  .sweep-map .cell.done, .stat-value.tick { animation: none; }
  .sleeve.holo-edge::after { animation: none; background-position: 35% 50%; }
}
.hero .hname { font-family: var(--font-display); font-size: var(--fs-title);
  font-weight: 600; letter-spacing: -.01em; margin-top: var(--sp-3); }
.hero .hmeta { font-size: var(--fs-sub); color: var(--text-2); margin-top: 2px; }
.hero .hpill { margin-top: 10px; }

.cands { display: flex; flex-direction: column; gap: var(--sp-2);
  margin-top: var(--sp-2); }
.candidate .thumb { width: 42px; flex: 0 0 auto; border-radius: var(--r-art-mini);
  display: block; box-shadow: inset 0 0 0 1px var(--line); }
.candidate .c-name { font-weight: 600; font-size: var(--fs-sub); }
.candidate .c-meta { font-size: var(--fs-caption); color: var(--text-3); }
.candidate .c-price { margin-left: auto; text-align: right; }
.candidate .c-price .price { font-weight: 600; font-size: var(--fs-sub); }
.candidate .c-price .cap { font-size: var(--fs-micro); color: var(--text-3); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.chip { font-size: var(--fs-caption); font-weight: 600; padding: 9px 14px;
  border-radius: var(--r-pill); background: var(--raised); color: var(--text-2);
  cursor: pointer; border: 1px solid transparent; min-height: 40px; }
.chip.on { background: var(--accent-soft); color: var(--accent-soft-ink);
  border-color: var(--accent); }
.addbar { display: none; margin-top: var(--sp-4); }
.addbar.show { display: block; }

input[type=text] { width: 100%; min-height: 44px; border-radius: var(--r-control);
  border: 1px solid var(--line); background: var(--raised); color: var(--text);
  padding: 0 14px; font: inherit; }
.searchrow { display: flex; gap: 8px; margin-top: 6px; }
.searchrow .btn { width: auto; padding: 0 18px; min-height: 44px; }

/* ---- collection: set rows ---- */
.bento { margin-bottom: var(--sp-4); }
.bento .tile { padding: var(--sp-3); }
.bento .b-hero .stat-value { font-size: 1.7rem; }
.bento .stat-value { font-size: 1.15rem; }
.bento .b-hero { display: flex; flex-direction: column; }
.bento .b-hero .sub { margin-top: auto; padding-top: 6px; }
#stat-spark svg { display: block; width: 100%; height: 40px; margin-top: 8px;
  overflow: visible; }

.set-row { width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2);
  cursor: pointer; color: inherit; font: inherit; }
.set-row:hover { border-color: var(--line); }
.set-row .top { display: flex; align-items: baseline; gap: 10px; }
.set-row .nm { font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-sub); }
.set-row .ct { margin-left: auto; font-family: var(--font-data);
  font-size: var(--fs-caption); color: var(--text-2);
  font-variant-numeric: tabular-nums; }
/* track uses --line, not --raised: in the light theme --raised is #FFFFFF,
   which is the row's own background -- the track vanished entirely. */
.bar { height: 6px; border-radius: 3px; background: var(--line);
  overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--accent);
  border-radius: 3px; transition: width var(--dur-base) var(--ease); }

/* ---- the binder page: pockets (components.css owns the base) ---- */
.binder-grid { margin-top: var(--sp-3); }
.pocket { overflow: hidden; border: none; background: none; padding: 0;
  cursor: pointer; }
.pocket img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pocket.owned::after { content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1.5px var(--accent); border-radius: var(--r-art); }
.pocket.empty { border: 1.5px dashed var(--line); cursor: default; }
.pocket.empty .ghost { text-align: center; padding: 0 4px; line-height: 1.2; }
/* owned but no reference image: the pocket is filled, we just can't show it */
.pocket.owned.noart { background: var(--raised); display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 2px; }
.pocket.owned.noart .num { font-family: var(--font-data);
  font-size: var(--fs-sub); color: var(--text-2); }
.page-nav { display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: var(--sp-4); }
.page-nav .btn { width: auto; padding: 0 18px; min-height: 40px; }
.page-nav .pg { font-family: var(--font-data); font-size: var(--fs-caption);
  color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---- live page sweep ---- */
.sweep-modal { position: fixed; inset: 0; z-index: 40; background: #000;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); }
.sweep-modal video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.sweep-hud { padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.sweep-hud .guide { margin: 0; max-width: none; }
.sweep-hud .btn { min-height: 44px; }
.sweep-rowname { font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-body); }
/* pocket-mode progress map: a tiny 3x3 of the page, current pocket pulsing */
.sweep-map { display: grid; grid-template-columns: repeat(3, 34px);
  gap: 5px; justify-content: center; }
.sweep-map .cell { height: 44px; border: 1.5px dashed var(--line);
  border-radius: 6px; }
.sweep-map .cell.current { border: 2px solid var(--accent);
  animation: sweep-pulse 1.2s ease-in-out infinite; }
.sweep-map .cell.done { border: 1.5px solid var(--ok);
  background: var(--ok-soft);
  /* the check STAMPS -- capture is a physical event (card physics) */
  animation: stamp var(--mo-standard) var(--ease-card); }
@keyframes stamp { from { transform: scale(1.18); } to { transform: scale(1); } }
.sweep-map .cell.skipped { border-style: dotted; opacity: .45; }
@keyframes sweep-pulse { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) {
  .sweep-map .cell.current { animation: none; } }

/* ---- Page Builder: wishlist pockets carry their price ----
   The tag is a corner chip, not a banner: a full-width bar was covering the
   bottom ~15% of the card art, and art is sacred (DESIGN.md §4). */
.pocket.wish::after { content: ""; position: absolute; inset: 0;
  border: 1.5px dashed var(--accent); border-radius: var(--r-art); }
.pocket .tag { position: absolute; right: 4px; bottom: 4px;
  font-family: var(--font-data); font-size: 10px; font-weight: 600;
  font-variant-numeric: tabular-nums; text-align: center;
  padding: 2px 7px; border-radius: 6px; pointer-events: none; }
.pocket .tag.have { background: rgba(10, 16, 28, .72); color: var(--text-2); }
.pocket .tag.want { background: var(--accent); color: var(--accent-ink); }
.pocket .tag.grade { background: var(--accent-soft); color: var(--accent-soft-ink);
  right: auto; left: 4px; }
/* binder-review captions: full-width ON the tester's own crop (not sacred
   official art) -- the pick has to be readable on a phone, where the old
   title-attribute tooltips simply don't exist */
.pocket .tag.pick { left: 4px; right: 4px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; }
.pocket .tag.none { background: var(--warn-soft); color: var(--warn-ink); }
#cell-review .hero img { width: 160px; }
[data-theme="light"] .pocket .tag.have,
.theme-light .pocket .tag.have { background: rgba(255, 255, 255, .82);
  color: var(--text-2); }

/* ---- holdings + movers rows (shared skeleton) ----
   Thumb -> art first; prices are neutral text (green/red mean movement,
   never decoration); "×2" and a grade ride the name line as quiet badges. */
.h-row { display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 2px; border: none; border-bottom: 1px dashed var(--line-soft);
  background: none; color: inherit; font: inherit; font-size: var(--fs-sub);
  text-align: left; cursor: pointer; }
.h-row:hover { background: var(--raised); }
.h-thumb { width: 38px; flex: 0 0 auto; border-radius: var(--r-art-mini);
  box-shadow: inset 0 0 0 1px var(--line); }
.h-mid { flex: 1; min-width: 0; }
.h-row .h-name { font-weight: 600; display: flex; align-items: baseline;
  gap: 7px; white-space: nowrap; overflow: hidden; }
.h-row .h-meta { color: var(--text-3); font-size: var(--fs-caption);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-row .h-val { margin-left: auto; font-weight: 600; flex: 0 0 auto; }
.h-qty { font-family: var(--font-data); font-size: var(--fs-micro);
  font-weight: 600; color: var(--text-2); background: var(--raised);
  border-radius: var(--r-pill); padding: 1px 7px; flex: 0 0 auto; }
.h-row .h-grade { color: var(--accent-soft-ink); background: var(--accent-soft);
  border-radius: var(--r-pill); font-size: var(--fs-micro); padding: 1px 8px;
  flex: 0 0 auto; }
.m-val { margin-left: auto; text-align: right; flex: 0 0 auto; }
.m-cap { font-family: var(--font-data); font-size: var(--fs-micro);
  color: var(--text-3); font-variant-numeric: tabular-nums; }
.h-val.up { color: var(--ok-ink); }
.h-val.down { color: var(--danger); }
.view-flip { margin-left: auto; display: flex; gap: 6px; }
#holdings.binder-grid { margin-top: var(--sp-3); }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
  margin: var(--sp-3) 0; font-size: var(--fs-sub); }
.fact-grid .k { color: var(--text-3); font-size: var(--fs-caption); }
.applied-line { margin-top: var(--sp-3); padding: 10px 14px;
  background: var(--accent-soft); color: var(--accent-soft-ink);
  border-radius: var(--r-control); font-size: var(--fs-sub); }
.noprice-line { margin-top: var(--sp-3); padding: 10px 14px;
  background: var(--warn-soft); color: var(--warn-ink);
  border-radius: var(--r-control); font-size: var(--fs-caption); }
.provnote { margin-top: var(--sp-3); }

/* ---- qty stepper + remove ---- */
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid
  var(--line); background: var(--raised); color: var(--text); font: inherit;
  font-size: 1.05rem; cursor: pointer; line-height: 1; }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-n { font-family: var(--font-data); font-variant-numeric: tabular-nums;
  font-weight: 600; min-width: 2.2ch; text-align: center; }
#d-remove { color: var(--danger); background: transparent;
  box-shadow: inset 0 0 0 1px var(--line); }
#d-remove.danger-armed { background: var(--danger); color: #fff;
  box-shadow: none; }

/* ---- slab: a graded copy is a different object from a raw card ----
   Restrained on purpose. The point is that you can tell at a glance which of
   your copies is encased, not to draw a photorealistic case around sacred art. */
.slab { display: inline-block; position: relative; }
.slab.on { padding: 10px 10px 12px; border-radius: 14px;
  background: linear-gradient(180deg, var(--raised), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line-soft); }
.slab.on img { border-radius: var(--r-art-mini); }
.slab-label { display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 8px; }
.slab-label .grade { font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-caption); letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent-soft-ink);
  border-radius: var(--r-pill); padding: 3px 11px; }
.slab-label .cert { font-family: var(--font-data); font-size: var(--fs-micro);
  color: var(--text-3); font-variant-numeric: tabular-nums; }

/* the receipt row that actually values this copy -- the rest is context */
.receipt .rc-row.applies .src, .receipt .rc-row.applies .price {
  color: var(--accent-soft-ink); font-weight: 600; }
.receipt .rc-row.applies { background: var(--accent-soft);
  border-radius: var(--r-control); margin: 0 -8px; padding-left: 8px;
  padding-right: 8px; }

/* ---- price trend: averages and direction, never individual sale receipts ---- */
.trend { margin-top: var(--sp-3); background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: var(--sp-3) var(--sp-4); }
.trend .t-top { display: flex; align-items: baseline; gap: 8px; }
.trend .t-label { font-size: var(--fs-micro); font-weight: 600;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.trend .t-delta { margin-left: auto; font-family: var(--font-data);
  font-weight: 600; font-size: var(--fs-sub);
  font-variant-numeric: tabular-nums; }
.trend .t-delta.up { color: var(--ok-ink); }
.trend .t-delta.down { color: var(--danger); }
.trend .t-delta.flat { color: var(--text-3); }
.trend svg { display: block; width: 100%; height: 54px; margin-top: 10px;
  overflow: visible; }
.trend .t-note { font-size: var(--fs-caption); color: var(--text-3);
  margin-top: 8px; }

/* ---- Lab: diagnostics, deliberately plain. Hidden unless toggled. ---- */
.lab { display: none; margin-top: var(--sp-4); border-top: 1px solid var(--line);
  padding-top: var(--sp-3); }
body.lab-open .lab { display: block; }
.lab .lab-head { font-size: var(--fs-micro); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; color: var(--accent);
  margin-bottom: var(--sp-2); }
.lab-grid { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-3);
  align-items: start; }
.lab-grid img { width: 100%; border-radius: var(--r-art-mini); display: block;
  box-shadow: inset 0 0 0 1px var(--line); }
.lab-grid .cap { font-size: var(--fs-micro); color: var(--text-3);
  margin-top: 4px; text-align: center; }
.lab table { width: 100%; border-collapse: collapse; font-family: var(--font-data);
  font-size: 11px; color: var(--text-2); }
.lab td { padding: 3px 6px 3px 0; vertical-align: top;
  border-bottom: 1px dashed var(--line-soft); }
.lab td.k { color: var(--text-3); white-space: nowrap; width: 1%; }
.lab td.n { font-variant-numeric: tabular-nums; text-align: right; width: 1%; }

/* ---- tab bar: solid, pinned; components.css owns the look ---- */
.tab-bar { position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto; z-index: 10;
  padding: 6px 0 max(10px, env(safe-area-inset-bottom)); }
body.lab-open .tab-bar { max-width: 1080px; }
.tab { background: none; border: none; cursor: pointer;
  color: var(--text-2);  /* text-3 fails AA on paper for inactive labels (axe) */ }

/* ---- the holo moment: three events only (DESIGN.md §2) ---- */
.moment { position: fixed; inset: 0; z-index: 30; display: none;
  align-items: center; justify-content: center; padding: var(--sp-5);
  background: rgba(4, 8, 16, .72); }
.moment.show { display: flex; }
.moment-card { width: 100%; max-width: 330px; border-radius: var(--r-card);
  padding: 2px; text-align: center; }
.moment-inner { background: var(--surface); border-radius: calc(var(--r-card) - 2px);
  padding: var(--sp-5) var(--sp-4); }
.moment .kicker { font-size: var(--fs-micro); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.moment .line { font-family: var(--font-display); font-size: var(--fs-display);
  font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.moment .note { font-size: var(--fs-sub); color: var(--text-2); margin-top: 6px; }
.moment .what { font-size: var(--fs-caption); color: var(--text-3);
  margin-top: var(--sp-3); }
.moment .btn { margin-top: var(--sp-4); }
/* a completed set announces itself at the top of its own page */
.set-complete { border-radius: var(--r-control); padding: 2px;
  margin-top: var(--sp-3); }
.set-complete b { display: block; background: var(--surface);
  border-radius: calc(var(--r-control) - 2px); padding: 10px 14px;
  font-family: var(--font-display); font-size: var(--fs-sub); text-align: center; }
/* A PSA 10's grade chip is itself a holo moment. This must restate
   background-image AND background-size: `.slab-label .grade` sets the
   `background` SHORTHAND, which resets both to their initial values and
   outranks the plain `.holo` class -- the chip rendered flat green. */
.slab-label .grade.holo {
  background-color: transparent;
  background-image: var(--holo);
  background-size: 220% 220%;
  color: #0B1120;
}

/* ---- beta: the full app on the tester's OWN binder (task #60).
   Only the Lab (engine internals) stays private. ---- */
body.beta .lab-toggle { display: none; }

.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 10px 20px; font-size: var(--fs-sub);
  display: none; z-index: 20; }
.toast.show { display: block; }

/* offline pill goes ACCENT (a feature, not an apology) + skeleton shapes */
.pill.offline-live { background: var(--accent-soft);
  color: var(--accent-soft-ink); cursor: pointer; }
.set-pocket-sk { aspect-ratio: 63 / 88; border-radius: var(--r-art); }

/* ---- the shelf + the ladder (DESIGN.md v2.8) ---- */
.set-shelf { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: var(--sp-3); }
.set-pocket { position: relative; aspect-ratio: 63 / 88; overflow: hidden;
  border: 1.5px dashed var(--line); border-radius: var(--r-art);
  background: var(--surface); cursor: pointer; padding: 0; color: inherit;
  font: inherit; text-align: center; }
.set-pocket .fill { position: absolute; left: 0; right: 0; bottom: 0;
  display: block; background: var(--accent-soft);
  border-top: 2px solid var(--accent);
  transition: height var(--mo-deliberate) var(--ease-screen); }
.set-pocket.nearly { border-color: var(--warn); border-style: solid; }
.set-pocket.complete { border-color: transparent; }
.set-pocket .fill.holo { border-top: none; }
.set-pocket .sp-in { position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; height: 100%; gap: 3px;
  padding: 6px; }
.sp-name { font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-micro); line-height: 1.2; max-height: 2.4em;
  overflow: hidden; }
.sp-count { font-weight: 600; font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums; }
.sp-togo { font-family: var(--font-data); font-size: var(--fs-micro);
  color: var(--warn-ink); background: var(--warn-soft);
  border-radius: var(--r-pill); padding: 1px 7px; }
.set-pocket.complete .sp-togo { color: var(--accent-soft-ink);
  background: var(--accent-soft); }
.ladder-strip { display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-top: var(--sp-2); }
.ladder-strip .pocket { aspect-ratio: 63 / 88; }
.ladder-sum { margin-top: var(--sp-2); font-family: var(--font-data);
  font-size: var(--fs-caption); color: var(--text-2);
  font-variant-numeric: tabular-nums; }

/* ---- first run: one screen, then the first lock is the tutorial ---- */
.firstrun { min-height: 74vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: var(--sp-3); padding: var(--sp-5); }
.fr-mark { width: 84px; height: 84px; color: var(--accent); }
.fr-word { font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-display); letter-spacing: -.02em; }
.fr-line { color: var(--text-2); font-size: var(--fs-body); }
.firstrun .btn { min-height: var(--tap-primary); width: 100%;
  max-width: 320px; margin-top: var(--sp-4); font-size: var(--fs-body); }
.fr-note { color: var(--text-3); font-size: var(--fs-caption); }
#family-sheet input { margin-top: 4px; }
#family-sheet .rowbtns { margin-top: var(--sp-4); }

/* ---- primary scan action: bottom half, kid-thumb reach (DESIGN.md §7) ---- */
.scan-cta { position: fixed; bottom: 96px; left: 50%;
  transform: translateX(-50%); z-index: 9;
  width: min(430px, 100vw); padding: 0 var(--sp-4); box-sizing: border-box; }
.scan-cta .btn { width: 100%; min-height: 56px; font-size: var(--fs-body); }

/* ---- focus rings for app-shell controls (components.css covers its own) ---- */
.h-row:focus-visible, .set-row:focus-visible, .chip:focus-visible,
.linkish:focus-visible, .qty-btn:focus-visible, .lab-toggle:focus-visible,
.drop:focus-visible, .sweep-slots .slot:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
