:root {
  --ground: #edf0f3;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --line: #d7dde4;
  --ink: #131a22;
  --muted: #58656f;
  --navy: #1c2b45;
  --on-navy: #ffffff;
  --navy-soft: #e1e8f3;
  --gold: #8a6619;
  --gold-soft: #f4e7c6;
  --warn: #855600;
  --warn-soft: #fff1cf;
  --ok: #2a6a47;
  --ok-soft: #dbeee2;
  --danger: #b42318;
  --danger-soft: #fce4e1;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d1116;
    --surface: #151b22;
    --surface-2: #1c242d;
    --line: #2b3541;
    --ink: #e6ebf0;
    --muted: #9aa6b2;
    --navy: #a9c1ea;
    --series-1: #3987e5;
    --series-2: #d95926;
    --on-navy: #0d1116;
    --navy-soft: #1f2b3d;
    --gold: #deb55e;
    --gold-soft: #3a2f17;
    --warn: #f0c261;
    --warn-soft: #362a0f;
    --ok: #84cda1;
    --ok-soft: #163225;
    --danger: #ff8b7f;
    --danger-soft: #3b1a17;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0d1116;
  --surface: #151b22;
  --surface-2: #1c242d;
  --line: #2b3541;
  --ink: #e6ebf0;
  --muted: #9aa6b2;
  --navy: #a9c1ea;
  --series-1: #3987e5;
  --series-2: #d95926;
  --on-navy: #0d1116;
  --navy-soft: #1f2b3d;
  --gold: #deb55e;
  --gold-soft: #3a2f17;
  --warn: #f0c261;
  --warn-soft: #362a0f;
  --ok: #84cda1;
  --ok-soft: #163225;
  --danger: #ff8b7f;
  --danger-soft: #3b1a17;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.45 var(--font-body);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
}
body.locked { overflow: hidden; }

button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--navy); }

.eyebrow { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.78; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.help { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.fineprint { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.err { color: var(--danger); font-size: 14px; }
.stack { display: grid; gap: 8px; }
/* Auto-godkendelse i tjeklisten */
.auto-verify { align-items: center; gap: 6px 12px; margin-top: 8px; }
.auto-verify .hint { flex: 1 1 220px; font-size: 12px; }
/* Graderingstjek */
.grade-check { gap: 6px; }
.grade-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.grade-row > span:first-child { display: grid; gap: 1px; }
.grade-row small { color: var(--muted); font-size: 12px; }
.grade-row .segmented button.ok[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); }
.grade-row .segmented button.bad[aria-pressed="true"] { background: var(--danger-soft); color: var(--danger); }
/* Stempel-kig: udsnit af dit foto, hvor stempler og folie-tekst sidder */
.stamp-peek { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stamp-peek figure { margin: 0; display: grid; gap: 3px; }
.stamp-peek .peek { aspect-ratio: 3 / 2; border-radius: 8px; background-color: var(--surface-2); background-repeat: no-repeat; cursor: zoom-in; border: 1px solid var(--line); }
.stamp-peek figcaption { font-size: 11px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.picker-cm { align-items: center; gap: 8px 12px; }
.picker-cm .hint { flex: 1 1 200px; font-size: 12px; }
.btn.danger-soft { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
/* Link ud af appen, sat op som en knap */
.btn.link-out { text-decoration: none; display: inline-flex; align-items: center; }

/* Sortering og farver i samlingen */
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sortbar[hidden], .collection-sum[hidden] { display: none; }
.sort-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sort-pick select { min-height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.color-dots { display: flex; align-items: center; gap: 6px; }
.color-dot { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--dot, var(--surface-2)); cursor: pointer; }
.color-dot[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.color-dot.dimmed { opacity: 0.35; }
.color-dot b { position: absolute; right: -4px; bottom: -4px; min-width: 16px; padding: 0 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 10px; line-height: 14px; font-variant-numeric: tabular-nums; }
.color-clear { min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 12px; cursor: pointer; }
.collection-sum { font-size: 13px; color: var(--muted); }
.collection-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 6px 2px 2px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.group-head:first-child { margin-top: 0; }
.group-head small { font-family: var(--font-body, inherit); font-weight: 400; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-head .swatch, .slot .swatch { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; background: var(--dot); vertical-align: baseline; }
.slot .swatch { width: 9px; height: 9px; margin-right: 0; }
.binder .group-head { grid-column: 1 / -1; }
/* Lommen er en knap inde i en ramme: uden fuld bredde retter den sig efter prisens længde */
.binder .pocket { width: 100%; }

/* Krydset der fjerner et kort. Ligger oven på kortet, så det er ét tryk hvor som helst. */
.card-wrap { position: relative; }
.card-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.card-x:hover, .card-x:focus-visible { color: var(--danger); border-color: var(--danger); }
.binder .card-x { top: 4px; left: 4px; right: auto; width: 26px; height: 26px; }
/* Plads til krydset, så det aldrig dækker prisen */
.stack .slot { padding-right: 38px; }
.stack:empty { display: none; }

/* Top */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: #1c2b45;
  color: #ffffff;
}
.bar-session { min-width: 0; display: grid; text-align: left; background: none; border: 0; padding: 2px 0; cursor: pointer; color: #ffffff; }
.bar-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-name::after { content: " ▾"; font-size: 13px; opacity: 0.7; }
.bar-value { text-align: right; flex-shrink: 0; }
.bar-amount { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.05; color: #f2d48a; font-variant-numeric: tabular-nums; }
.bar-pending { display: block; font-size: 11px; opacity: 0.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-pending[hidden] { display: none; }
#save-state.saving::after { content: " · gemmer"; }
#save-state.failed { color: #ffb4ab; opacity: 1; }

.main { max-width: 720px; margin: 0 auto; padding: 12px 12px 20px; }
.panels, .panel { display: grid; gap: 12px; }

.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.15; text-wrap: balance; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.section-row .hint { font-size: 13px; }

/* Knapper og felter */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--navy); color: var(--on-navy); border-color: transparent; }
.btn.big { min-height: 54px; font-size: 17px; padding-inline: 22px; }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 14px; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--navy); }
.btn.danger { color: var(--danger); }

input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.field.inline { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: 14px; }

.segmented { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.segmented button { flex: 1; min-height: 40px; padding: 6px 8px; border: 0; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button[aria-checked="true"] { background: var(--navy); color: var(--on-navy); }
.segmented.compact button { min-height: 34px; font-size: 13px; padding: 4px 10px; }
.segmented.conditions button { font-family: var(--font-mono); font-size: 13px; padding: 4px 2px; }

.notice { padding: 12px 14px; border-radius: var(--radius); background: var(--warn-soft); font-size: 15px; }
.notice b { color: var(--warn); }
.empty-state { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px; }

/* Adgang og opsætning */

.setup { display: grid; gap: 12px; padding: 20px 18px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.setup-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; }
.setup p { margin: 0; }
.setup ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.setup .search input { font-family: var(--font-mono); }
.loading { display: flex; align-items: center; gap: 10px; padding: 24px 4px; color: var(--muted); }

/* Kamera */

.camera {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(66vh, 640px);
  border-radius: var(--radius);
  background: #070a0e;
  color: #ffffff;
}
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame {
  position: absolute;
  left: 50%;
  top: 46%;
  height: 72%;
  aspect-ratio: 63 / 88;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgb(4 7 11 / 0.48);
  outline: 3px solid rgb(255 255 255 / 0.9);
  transition: outline-color 0.15s;
}
.frame.found { outline-color: #f2d48a; }
.frame.captured, .frame.done { outline-color: #7fd3a0; }
.camera-progress {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  width: 44%;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.28);
  overflow: hidden;
}
.camera-progress i { display: block; height: 100%; width: 0; background: #f2d48a; transition: width 0.1s linear; }
.flash { position: absolute; inset: 0; background: #ffffff; opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out; }
.flash.on { opacity: 0.6; transition: none; }
.camera-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.8);
  font-variant-numeric: tabular-nums;
}
.camera-top span:last-child { color: #f2d48a; }
.camera-status {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.66);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.camera-controls { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.shutter { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #ffffff; background: rgb(255 255 255 / 0.25); cursor: pointer; }
.shutter:active { background: rgb(255 255 255 / 0.6); }
.cam-btn { min-height: 40px; min-width: 56px; padding: 0 12px; border: 0; border-radius: 999px; background: rgb(0 0 0 / 0.58); color: #ffffff; font-weight: 700; cursor: pointer; }
.cam-btn[aria-pressed="true"] { background: #f2d48a; color: #131a22; }
.camera-tip { max-width: 320px; font-size: 12px; line-height: 1.4; opacity: 0.8; }
.camera-tip[hidden] { display: none; }
.camera-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #1f2f47, #070a0e 70%);
}
.camera-start p { margin: 0; max-width: 32ch; color: #d9e1ea; }
.camera-start .btn.primary { background: #f2d48a; color: #131a22; }
.link-button { color: #b9c7d8; font-size: 14px; text-decoration: underline; cursor: pointer; }

.scan {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scan img { width: 46px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 4px; background: var(--surface-2); display: block; }
.scan.check { background: var(--warn-soft); border-color: transparent; }
.scan.retry, .scan.error { border-color: var(--danger); }
.scan-body { display: grid; gap: 2px; min-width: 0; }
.scan-body b { line-height: 1.2; overflow-wrap: anywhere; }
.scan-state { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.scan.added .scan-state { color: var(--ok); }
.scan.retry .scan-state, .scan.error .scan-state { color: var(--danger); }
.scan-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.scan-tools { display: grid; gap: 8px; }
.command { display: flex; gap: 8px; }
.command input { font-family: var(--font-mono); }
.help { margin-top: -4px; }
.spinner { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--navy); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Godkendelse */

.review { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review.attention { background: var(--warn-soft); border-color: transparent; }
.review-body { display: grid; gap: 4px; min-width: 0; }
.pair { display: flex; gap: 6px; align-items: flex-start; }
.flags { margin: 2px 0; padding-left: 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Kortbilleder */

.art { display: block; width: 58px; aspect-ratio: 120 / 168; border-radius: 4px; background-color: var(--surface-2); background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); flex-shrink: 0; }
.art.empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.art { position: relative; overflow: hidden; }
.art-hi { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.taught-tag { position: absolute; left: 3px; bottom: 3px; padding: 0 5px; border-radius: 999px; background: rgb(8 12 18 / 0.72); color: #fff; font-size: 9px; font-weight: 700; }
.art.large { width: 124px; }
.crop { display: block; width: 62px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 4px; background: var(--surface-2); flex-shrink: 0; }
.crop.large { width: 124px; }
.pair .art, .pair .crop { width: 72px; }

.code { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.rarity { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: var(--ink); }
.rarity.r-top { background: var(--gold-soft); color: var(--gold); }
.rarity.r-sr { background: var(--navy-soft); color: var(--navy); }
.pill { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.single { background: var(--navy-soft); color: var(--navy); }
.pill.grade { background: var(--gold-soft); color: var(--gold); }
.pill.unknown { background: var(--warn-soft); color: var(--warn); }
.pill.listed { background: var(--ok-soft); color: var(--ok); }
.pill.sold { background: var(--ink); color: var(--surface); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.slot-title { font-weight: 700; line-height: 1.25; }

/* Samling */

.toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips:empty { display: none; }
.chips[hidden] { display: none; }
/* Prisgrænsen: en stille række under filtrene, så den ikke larmer mere end de vigtige knapper */
.price-floor { align-items: center; }
.price-floor .chip { padding: 4px 10px; font-size: 13px; }
.price-floor-label { flex-shrink: 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); padding-right: 2px; }
.chip { flex-shrink: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; }
.chip b { font-variant-numeric: tabular-nums; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: transparent; }
.chip[aria-pressed="true"] b { color: inherit; }

.slot { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.slot.attention { border-color: var(--warn); }
.slot.sold { opacity: 0.72; }
.slot-body { display: grid; gap: 3px; min-width: 0; }
.slot-side { display: grid; justify-items: end; gap: 4px; }
.qty { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.loc { overflow-wrap: anywhere; }

.binder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.pocket { position: relative; display: grid; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.pocket .art { width: 100%; }
.pocket.attention { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.pocket.sold { opacity: 0.6; }
.pocket-qty { position: absolute; top: 9px; right: 9px; padding: 0 6px; border-radius: 999px; background: #1c2b45; color: #ffffff; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.pocket-meta { position: absolute; bottom: 30px; left: 9px; padding: 1px 7px; border-radius: 999px; background: rgb(8 12 18 / 0.78); color: #f0c93a; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.meta-pill { background: var(--gold-soft); color: var(--gold); }
/* Til Dua: grøn = giv trygt, gul = måske, lilla = givet væk */
.pill.gift-safe { background: var(--ok-soft); color: var(--ok); }
.pill.gift-maybe { background: var(--warn-soft); color: var(--warn); }
.pill.gift { background: rgb(155 95 214 / 0.18); color: #9b5fd6; }
.pocket-meta.gift-safe { color: #7fe0a8; }
.pocket-meta.gift-maybe { color: #f0c93a; }
.chip.dua[aria-pressed="false"] { border-color: #b98ae6; }
.gift-box .gift-floors { margin-top: 6px; flex-wrap: wrap; }
.gift-box .gift-show { margin-top: 8px; max-width: 460px; }
.gift-box .actions .btn { white-space: nowrap; }
.gift-box .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pocket-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }

/* Salg */

.hero { display: grid; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-amount { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.split span { display: block; height: 100%; }
.s-grade, .k-grade { background: var(--gold); }
.s-single, .k-single { background: var(--navy); }
.s-bulk, .k-bulk { background: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.routes { display: grid; gap: 8px; }
.route { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.route.recommended { border: 2px solid var(--navy); padding: 13px; }
.route-key { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--navy); }
.route-body { display: grid; gap: 4px; min-width: 0; }
.route-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.route-body p { margin: 0; font-size: 14px; color: var(--muted); }
.route-body .why { color: var(--ink); }
.route-amount { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sold-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); font-size: 15px; }
.export { display: grid; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Bundnavigation */

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px max(8px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar button { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.tabbar button[aria-current="page"] { color: var(--navy); }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #ffffff; font-size: 11px; line-height: 18px; font-variant-numeric: tabular-nums; }
[data-tab="samling"] .tab-badge { background: var(--muted); }

/* Ark */

.sheet-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgb(6 10 16 / 0.55); }
.sheet { width: min(720px, 100%); max-height: 92vh; overflow: auto; display: grid; gap: 14px; padding: 16px 16px calc(22px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 16px 16px 0 0; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; text-wrap: balance; }
.sheet-photo { display: flex; gap: 12px; align-items: flex-start; }
.sheet-section { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-top { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.detail-images { display: flex; gap: 8px; }
.detail-price { display: grid; gap: 4px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.big-price { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.link { color: var(--navy); font-weight: 700; font-size: 14px; }
.attention-box { margin: 0; padding: 10px 12px 10px 28px; border-radius: 9px; background: var(--warn-soft); }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-block { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.label { font-weight: 700; font-size: 15px; }

/* Kortets plads i metaen: en dom, tre tal og de dæk, der spiller det */
.card-play .play-verdict { margin: 0; font-weight: 600; }
.play-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.play-stats div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.play-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.play-stats span { font-size: 12px; color: var(--muted); }
.play-decks { display: grid; gap: 6px; }
.play-deck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.play-deck.st { grid-template-columns: minmax(0, 1fr) auto; }
.play-deck span { display: flex; flex-direction: column; min-width: 0; }
.play-deck b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-deck small { font-size: 12px; color: var(--muted); }
.play-deck em { display: flex; flex-direction: column; align-items: flex-end; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.play-deck em small { font-weight: 400; font-size: 11px; }
.play-deck .swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); }
.detail-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { width: 42px; height: 38px; border: 0; background: var(--surface-2); font-size: 20px; cursor: pointer; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Tallet kan trykkes: så kan antallet skrives i stedet for mange tryk på plus */
.stepper-count { min-width: 44px; height: 38px; border: 0; border-inline: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; }
.qty-chips { flex-wrap: wrap; margin-bottom: 10px; }
.qty-chips .chip { min-width: 46px; justify-content: center; }
.search { display: flex; gap: 8px; }
.search input { font-family: var(--font-mono); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; gap: 4px; padding: 6px; text-align: left; background: var(--surface-2); border: 2px solid transparent; border-radius: 9px; cursor: pointer; }
.tile .zoom, .mini-tile .zoom { top: 4px; right: 4px; }
.tile:hover { border-color: var(--line); }
.tile.selected { border-color: var(--navy); }
.tile .art { width: 100%; }
.tile b { font-size: 14px; line-height: 1.2; }
.tile span { font-size: 12px; color: var(--muted); }
.tile .price { font-size: 17px; color: var(--ink); }
.session-list { display: grid; }
.session-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.session-item.current { font-weight: 700; }
.session-item span:last-child { color: var(--muted); font-size: 14px; white-space: nowrap; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row input { width: 22px; min-height: 22px; height: 22px; accent-color: #1c2b45; }

/* Forstør et billede */

[data-zoom] { cursor: zoom-in; }
.zoom {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(6 10 16 / 0.62);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: zoom-in;
}
.has-zoom { position: relative; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  background: rgb(6 10 16 / 0.94);
  color: #ffffff;
}
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.lightbox-head .btn { background: rgb(255 255 255 / 0.12); color: #ffffff; border-color: transparent; }
.lightbox-tabs { justify-self: center; background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.2); }
.lightbox-tabs button { color: #ffffff; }
.lightbox-tabs button[aria-checked="true"] { background: #f2d48a; color: #131a22; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lightbox-stage .art { width: min(100%, calc((100vh - 220px) * 120 / 168)); max-height: calc(100vh - 220px); border-radius: 10px; box-shadow: none; }
.lightbox-stage img { position: absolute; max-width: 100%; max-height: calc(100vh - 220px); border-radius: 10px; object-fit: contain; opacity: 0; transition: opacity 0.15s; }
.lightbox-stage img.ready { opacity: 1; }
.lightbox-stage img.solo { position: static; opacity: 1; }
.lightbox-actions { display: flex; justify-content: center; gap: 8px; }
.lightbox-actions:empty { display: none; }
.lightbox-actions .btn.primary { background: #f2d48a; color: #131a22; }
.alikes { display: grid; gap: 6px; }
.alike { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); text-align: left; cursor: pointer; }
.alike[aria-pressed="true"] { border-color: var(--navy); }
.alike span { font-size: 14px; }
.alike b { font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); width: min(640px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: var(--ground); font-size: 15px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
.toast.error { background: var(--danger); color: #ffffff; }
.toast-action { flex-shrink: 0; padding: 4px 10px; border: 1px solid currentColor; border-radius: 7px; background: transparent; color: inherit; font-weight: 700; cursor: pointer; }

/* Store samlinger: hurtigvalg af udgave, annullér og dobbelttjek */

.scan { grid-template-columns: 46px 1fr 34px; }
.scan-x {
  width: 34px;
  height: 34px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.scan.check .scan-x { background: transparent; }
.scan-wide, .scan .scan-actions { grid-column: 1 / -1; }
.scan .scan-actions { justify-content: flex-start; }
.variant-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scroll-snap-type: x proximity; }
.mini-tile {
  position: relative;
  flex: 0 0 82px;
  display: grid;
  gap: 2px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}
.scan:not(.check) .mini-tile { background: var(--surface-2); }
.mini-tile .art { width: 100%; }
.mini-tile span { font-size: 11px; line-height: 1.15; color: var(--muted); }
.mini-tile b { font-family: var(--font-display); font-size: 15px; font-variant-numeric: tabular-nums; }
.mini-tile.selected { border-color: var(--navy); }
.mini-more { flex: 0 0 56px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; font-weight: 700; cursor: pointer; }
.checklist { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--warn-soft); }
.checklist > div { display: grid; gap: 2px; min-width: 0; }
.review-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-compare figure { margin: 0; display: grid; gap: 4px; }
.review-compare figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.crop.xl, .art.xl { width: 100%; }
.review-actions .btn.big { flex: 1; }
.more { width: 100%; margin-top: 8px; }
.all-clear { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); }
details.sheet-section summary { cursor: pointer; }

@media (min-width: 560px) {
  .detail-top { grid-template-columns: auto 1fr; gap: 16px; }
  .review-compare { max-width: 440px; }
  .binder { grid-template-columns: repeat(4, 1fr); }
  .art { width: 66px; }
  .pair .art, .pair .crop { width: 88px; }
  .art.large, .crop.large { width: 150px; }
  .camera { aspect-ratio: 4 / 3; }
  .frame { height: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .btn:active { transform: none; }
  .flash, .flash.on { transition: none; }
}

/* Flere enheder: fælles liste over seneste kort, og stor visning på computeren */

.scan-panel { grid-template-areas: "camera" "feed" "tools" "review"; }
.scan-panel > .camera { grid-area: camera; }
.scan-panel > .scan-feed { grid-area: feed; display: grid; gap: 8px; min-width: 0; }
.scan-panel > .scan-tools { grid-area: tools; }
.scan-panel > #review { grid-area: review; }
.feed-head { align-items: center; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.live.on { color: var(--ok); }
.live.on::before { background: var(--ok); animation: live-pulse 2s ease-in-out infinite; }
.live.offline { color: var(--danger); }
.live.offline::before { background: var(--danger); }
@keyframes live-pulse { 50% { opacity: 0.35; } }
.scan .feed-art { width: 46px; }
.scan.fresh, .spot.fresh { animation: arrive 1.6s ease-out; }
@keyframes arrive { 0% { box-shadow: 0 0 0 3px #f2d48a; transform: translateY(-6px); } 100% { box-shadow: 0 0 0 0 transparent; transform: none; } }
#spotlight:empty { display: none; }
.spot-empty { display: grid; gap: 10px; padding: 22px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.spot-empty p { margin: 0; max-width: 56ch; color: var(--muted); }
.spot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.spot.check { border-color: var(--warn); }
.spot-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.spot-images figure { margin: 0; display: grid; gap: 4px; }
.spot-images figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.spot-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.spot-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; text-wrap: balance; }
.spot .mini-tile { flex-basis: 96px; }
.qr { display: grid; place-items: center; padding: 8px; background: #ffffff; border-radius: 10px; }
.qr svg { width: min(260px, 70vw); height: auto; }

@media (min-width: 900px) {
  .main { max-width: 1180px; }
  .scan-panel { grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "camera feed" "tools feed" "review feed"; grid-template-rows: auto auto 1fr; align-items: start; column-gap: 18px; }
  .scan-panel .camera { aspect-ratio: 3 / 4; max-height: 440px; }
  .scan-feed > #scans { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
  .panel[data-panel="samling"], .panel[data-panel="salg"] { width: 100%; max-width: 780px; margin-inline: auto; }
  .tabbar { grid-template-columns: repeat(5, 120px); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scan.fresh, .spot.fresh, .live.on::before { animation: none; }
}

/* Fjernkamera: telefonens billede på skærmen */

.remote-bar {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  max-width: 88%;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(6 10 16 / 0.72);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.remote-bar.live::before { content: "● "; color: #7fd3a0; }
.camera video[poster] { object-fit: contain; background: #070a0e; }
.camera-start .btn { width: 100%; max-width: 280px; }

/* Priser: valuta og åbenhed om hvor de kommer fra */

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.segmented.currency { flex: 0 0 auto; }
.segmented.currency button { min-width: 44px; font-family: var(--font-display); font-size: 15px; }
.explainer { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.chain li { display: grid; gap: 1px; padding-left: 26px; position: relative; }
.chain li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 11px;
  font-weight: 700;
}
.chain b { font-size: 14px; }
.chain span { font-size: 13px; color: var(--muted); }
.sources { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

/* Ret et forkert gæt */

.guesses { display: grid; gap: 2px; }
.guess-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.guesses.prints .guess-label { color: var(--gold); }
.print-hint { font-size: 12px; color: var(--muted); line-height: 1.35; }
.print-hint ul { margin: 2px 0 0; padding-left: 16px; }
.print-hint li + li { margin-top: 2px; }
.pill.prints { background: var(--gold-soft); color: var(--gold); }
.mini-tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Find kortet: billeder mens du skriver */

#picker-count { font-size: 13px; }
.sheet .tiles { max-height: 58vh; overflow-y: auto; }
.sheet-photo .crop.large { max-height: 180px; width: auto; }

/* Tjek-visningen: dit foto og katalogets billede side om side, bekræft med få tryk */

.check-progress { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.check-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.check-progress-top span { font-family: var(--font-display); font-size: 20px; color: var(--ok); }
.bar-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width 0.3s; }
.check-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.check-tools .hint { font-size: 12px; }
.check-list { display: grid; gap: 8px; margin-top: 8px; }

.check-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.check-row.selected { border-color: var(--navy); background: var(--navy-soft); }
.check-row.verified { border-color: transparent; background: var(--ok-soft); }
.check-box {
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--on-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.check-row.selected .check-box { background: var(--navy); border-color: var(--navy); }
.check-row.verified .check-box { background: var(--ok); border-color: var(--ok); color: #ffffff; }
.check-images { display: flex; gap: 5px; }
.check-images figure { margin: 0; display: grid; gap: 2px; width: 62px; }
.check-images img, .check-images .art, .check-images .crop { width: 62px; aspect-ratio: 63 / 88; height: auto; border-radius: 5px; object-fit: cover; display: block; }
.check-images .crop { background: var(--surface-2); }
.check-images figcaption { font-size: 10px; text-align: center; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.check-body { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
/* kun titlen viger for krydset, så resten af linjerne får fuld bredde */
.check-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1; overflow-wrap: anywhere; padding-right: 30px; }
.check-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check-route .price { font-family: var(--font-display); font-size: 19px; font-variant-numeric: tabular-nums; }
.route-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.route-tag.single { background: var(--navy); color: var(--on-navy); }
.route-tag.grade { background: var(--gold); color: #ffffff; }
.route-tag.bulk { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.route-tag.unknown { background: var(--warn-soft); color: var(--warn); }
.route-tag.sold, .route-tag.listed { background: var(--ok-soft); color: var(--ok); }
.check-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.check-buttons { display: flex; align-items: center; gap: 6px; }
.check-foot .btn.small { min-height: 40px; padding-inline: 14px; }
.btn.wrong { color: var(--danger); }
.verified-mark { font-weight: 700; color: var(--ok); font-size: 14px; padding-inline: 6px; }
.check-fix { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--line); }
.check-foot .stepper button { width: 40px; height: 40px; font-size: 20px; }
.check-foot .stepper output { min-width: 30px; font-size: 18px; }

.check-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 0.25);
}
.check-bar-actions { display: flex; gap: 8px; }
.check-bar .btn { border-color: transparent; }
.check-bar .btn.primary { background: #f2d48a; color: #131a22; }

@media (min-width: 900px) {
  .check-list { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .check-bar { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, 94vw); border-radius: 12px 12px 0 0; }
  .panel[data-panel="samling"] { max-width: 1180px; }
}

/* Zoom i det store billede */

.lightbox-stage { touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.lightbox-stage.zoomed { cursor: grab; }
.zoom-layer { display: grid; place-items: center; width: 100%; height: 100%; transform-origin: center center; will-change: transform; position: relative; }
.zoom-layer img { -webkit-user-drag: none; pointer-events: none; }
.zoom-layer .art { pointer-events: none; }
.lightbox-actions { flex-wrap: wrap; align-items: center; }
.zoom-tools { display: inline-flex; align-items: center; gap: 6px; }
.zoom-tools .btn { background: rgb(255 255 255 / 0.12); color: #ffffff; border-color: transparent; min-width: 40px; }
#zoom-level { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.zoom-hint { flex-basis: 100%; margin: 0; text-align: center; font-size: 12px; color: rgb(255 255 255 / 0.6); }

/* Tjek: hurtige bud, sprog, og handlinger for flere kort */

.check-quick { grid-column: 1 / -1; display: grid; gap: 3px; padding: 6px 8px; border-radius: 9px; background: var(--warn-soft); }
.check-quick .guess-label { color: var(--warn); }
.btn.lang { min-width: 44px; font-family: var(--font-mono); font-size: 12px; padding-inline: 8px; }
.btn.lang[aria-pressed="true"] { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.check-bar-count { display: inline-flex; align-items: baseline; gap: 8px; }
.check-bar .link-button { color: inherit; opacity: 0.8; font-size: 13px; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.check-bar .btn.danger { background: transparent; color: #ffb4ab; border-color: rgb(255 255 255 / 0.25); }
.check-bar .btn.small { background: rgb(255 255 255 / 0.12); color: inherit; }
.check-buttons { flex-wrap: wrap; justify-content: flex-end; }

/* Sortér først, ret bagefter */

.check-guide { margin: 8px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--navy-soft); font-size: 14px; }
.chip.alert { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.alert[aria-pressed="true"] { background: var(--warn); color: #ffffff; }
.check-row.wrong { border-color: var(--warn); }
.check-doubt { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--warn); }
.fix-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.checklist.upgrade { margin-top: 8px; background: var(--ok-soft); }
.check-bar { flex-wrap: wrap; }
.check-bar-actions { flex-wrap: wrap; justify-content: flex-end; }

/* Vælg selv: automatisk eller manuelt */

.mode-switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(6 10 16 / 0.62); }
.mode-switch button {
  flex: 1;
  min-height: 34px;
  padding: 5px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.mode-switch button[aria-checked="true"] { background: #f2d48a; color: #131a22; }
.mode-switch.big { flex-direction: column; gap: 6px; width: min(300px, 100%); background: rgb(255 255 255 / 0.08); border-radius: 12px; }
.mode-switch.big button { display: grid; gap: 1px; border-radius: 9px; min-height: 52px; font-size: 15px; }
.mode-switch.big small { font-weight: 400; font-size: 12px; opacity: 0.75; }
/* Timer: sekunder mellem billederne, og nedtællingen i den store knap */
.timer-row { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 3px; border-radius: 999px; background: rgb(6 10 16 / 0.62); color: #ffffff; }
.timer-row[hidden] { display: none; }
.timer-row button { width: 44px; height: 38px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.14); color: #ffffff; font-size: 22px; line-height: 1; cursor: pointer; }
.timer-row button:active { background: rgb(255 255 255 / 0.32); }
.timer-row span { min-width: 132px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.camera-start .timer-row { background: rgb(255 255 255 / 0.08); }
.shutter.timer { display: grid; place-items: center; color: #ffffff; font-family: var(--font-display); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.shutter.timer.paused { border-color: #f2d48a; color: #f2d48a; font-size: 20px; }
.camera-controls { flex-direction: column; gap: 8px; padding-inline: 16px; }
.camera-controls .mode-switch { width: min(280px, 100%); }
/* Kontrollerne fylder nu to rækker, så status og fremdrift flyttes op over dem. */
.camera-status { bottom: 132px; }
.camera-progress { bottom: 122px; }
/* Plus og minus står på hver side af den store knap, så timeren ikke koster en række mere:
   rammen ER det, der bliver fotograferet, og den må ikke gemme sig bag knapperne. */
.cam-btn.step { min-width: 44px; width: 44px; padding: 0; font-size: 24px; line-height: 1; }
.cam-btn.step[hidden] { display: none; }
.camera-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; }
.camera.manual .shutter { box-shadow: 0 0 0 4px rgb(242 212 138 / 0.5); }
.camera.manual .frame { outline-color: rgb(255 255 255 / 0.7); }

/* Meta: de bedste dæk og hvor tæt samlingen er */
.meta-hero .segmented { align-self: start; flex: 0 0 auto; }
.meta-hero .segmented button { white-space: nowrap; }
.meta-lead { margin: 0; font-size: 17px; }
.meta-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.meta-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -6px; vertical-align: -1px; }
.meta-legend .k-sure { background: linear-gradient(135deg, #e0473c, #f0c93a 50%, #3b7ddd); }
.meta-legend .k-have { background: linear-gradient(135deg, #e0473c, #f0c93a 50%, #3b7ddd); opacity: 0.45; }
.meta-legend .k-none { background: #3a3f46; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.meta-tile { position: relative; display: grid; gap: 3px; align-content: start; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.meta-tile:active .lf { transform: scale(0.97); }
.meta-rank { position: absolute; top: 7px; left: 7px; z-index: 3; padding: 1px 8px; border-radius: 999px; background: rgb(8 12 18 / 0.72); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; backdrop-filter: blur(4px); }
/* Pilen som i en fodboldtabel: grøn op, rød ned */
.meta-move { display: inline-block; margin-left: 6px; font-family: var(--font-body, inherit); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.meta-move.up { color: #3ddc84; }
.meta-move.down { color: #ff6b6b; }
.meta-move.new { padding: 0 5px; border-radius: 999px; background: #f0c93a; color: #1b1b1b; font-size: 10px; letter-spacing: .04em; }
.meta-stats .meta-move.up { color: var(--ok); }
.meta-stats .meta-move.down { color: var(--danger, #d8372f); }
.meta-tile-name { margin-top: 5px; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.08; }
.meta-tile-sub { color: var(--muted); font-size: 13px; line-height: 1.25; }
.meta-tile-sub b { color: var(--ink); }

/* Lederkortet som måler: fuld farve op til det bekræftede, svagere farve op til det scannede, gråt resten */
.lf { position: relative; display: block; width: 100%; aspect-ratio: 600 / 838; border-radius: 11px; overflow: hidden; background: #1a1f26; box-shadow: 0 6px 18px rgb(0 0 0 / 0.28), inset 0 0 0 1px rgb(255 255 255 / 0.06); transition: transform 0.15s; isolation: isolate; }
.lf-layer { position: absolute; inset: 0; background-repeat: no-repeat; }
.lf-base { filter: grayscale(1) brightness(0.3) contrast(0.9); }
.lf-have { filter: saturate(0.8) brightness(0.88); clip-path: inset(calc(100% - var(--have)) 0 0 0); transition: clip-path 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lf-sure { filter: saturate(1.15) brightness(1.04); clip-path: inset(calc(100% - var(--sure)) 0 0 0); transition: clip-path 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lf-line { position: absolute; left: 0; right: 0; bottom: var(--have); z-index: 2; height: 3px; margin-bottom: -1px; background: var(--deck); box-shadow: 0 0 10px 2px var(--deck); transition: bottom 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 2; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); pointer-events: none; }
.lf-pct { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; text-shadow: 0 2px 10px rgb(0 0 0 / 0.85), 0 0 2px rgb(0 0 0 / 0.9); font-variant-numeric: tabular-nums; }
.lf-pct small { font-size: 0.55em; margin-left: 1px; }
.lf.big { width: 150px; flex-shrink: 0; }
.lf.big .lf-pct { font-size: 34px; }
@media (prefers-reduced-motion: reduce) { .lf-have, .lf-sure, .lf-line { transition: none; } }

.meta-sheet-top { display: flex; gap: 14px; align-items: stretch; }
.meta-stats { display: grid; gap: 8px; align-content: center; min-width: 0; }
.meta-stats div { display: grid; }
.meta-stats b { font-family: var(--font-display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.meta-stats span { color: var(--muted); font-size: 13px; }
.meta-h { margin: 10px 0 0; font-family: var(--font-display); font-size: 17px; letter-spacing: 0.02em; }
.meta-cards { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.meta-card { display: grid; grid-template-columns: 34px 42px minmax(0, 1fr) auto; grid-template-areas: "art count name price" "art count share price"; column-gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; background: var(--surface-2); }
.meta-card-price { grid-area: price; display: grid; justify-items: end; gap: 1px; padding: 2px 0 2px 4px; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta-card-price b { font-size: 14px; }
.meta-card-price small { color: var(--muted); font-size: 11px; }
.meta-card-price.none { color: var(--muted); font-size: 12px; }
.meta-card.done .meta-card-price small { font-size: 12px; }
.meta-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta-buy div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.meta-buy span { color: var(--muted); font-size: 13px; }
.meta-buy b { font-family: var(--font-display); font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.meta-buy div:first-child b { color: var(--gold); }
.meta-tile-cost { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.meta-card .art { grid-area: art; width: 34px; }
.meta-count { grid-area: count; font-family: var(--font-mono); font-weight: 700; font-size: 14px; text-align: center; padding: 2px 0; border-radius: 6px; font-variant-numeric: tabular-nums; }
.meta-card.miss .meta-count { background: var(--danger-soft); color: var(--danger); }
.meta-card.part .meta-count { background: var(--warn-soft); color: var(--warn); }
.meta-card.done .meta-count { background: var(--ok-soft); color: var(--ok); }
.meta-card-name { grid-area: name; min-width: 0; font-size: 14px; line-height: 1.35; }
.meta-card-share { grid-area: share; color: var(--muted); font-size: 12px; }
.meta-source { text-align: center; }

/* Mærket på en scanning, der hører til et top-dæk */
.meta-hit { justify-self: start; margin-top: 4px; padding: 2px 9px 2px 7px; border: 1px solid color-mix(in srgb, var(--deck) 55%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--deck) 16%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.meta-hit::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--deck); box-shadow: 0 0 6px var(--deck); }
.st-new { color: var(--gold); }

/* Analyse af et meta-dæk */
.deck-analysis { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.deck-analysis .meta-h { margin-top: 2px; }
.style-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.style-stats div { display: grid; justify-items: center; padding: 6px 2px; border-radius: 8px; background: var(--surface); }
.style-stats b { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.style-stats span { color: var(--muted); font-size: 11px; text-align: center; }
.curve { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 92px; align-items: end; padding: 0 4px; }
.curve div { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; height: 100%; }
.curve i { align-self: end; width: 70%; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--navy); }
.curve b { font-size: 13px; line-height: 1.2; }
.curve span { color: var(--muted); font-size: 11px; }
.style-lines { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
.mu-title { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mu-title.up { color: var(--ok); }
.mu-title.down { color: var(--danger); }
.mu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mu-chip { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; text-align: center; cursor: default; }
button.mu-chip { cursor: pointer; }
.mu-chip .art { width: 46px; }
.mu-chip .mu-name { font-size: 12px; line-height: 1.15; }
.mu-chip b { font-family: var(--font-display); font-size: 19px; line-height: 1; }
.mu-chip.up b { color: var(--ok); }
.mu-chip.down b { color: var(--danger); }
.mu-chip small { color: var(--muted); font-size: 11px; }
.mu-all summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 4px 0; }
.mu-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.mu-list li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 42px; grid-template-areas: "name bar pct" "name small small"; column-gap: 8px; align-items: center; font-size: 13px; }
.mu-list li.few { opacity: 0.6; }
.mu-list .mu-name { grid-area: name; }
.mu-list .mu-bar { grid-area: bar; height: 6px; border-radius: 3px; background: var(--danger-soft); overflow: hidden; }
.mu-list .mu-bar i { display: block; height: 100%; background: var(--ok); }
.mu-list b { grid-area: pct; text-align: right; font-variant-numeric: tabular-nums; }
.mu-list small { grid-area: small; color: var(--muted); font-size: 11px; text-align: right; }
.deck-analysis .fineprint { margin: 0; }
.mu-code { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.mu-title { color: var(--muted); }
.mu-title.up { color: var(--ok); }
.mu-title.down { color: var(--danger); }
.shop-list { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.shop-list .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Konto og venner */
.device-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.device-list li > span:first-child { display: grid; gap: 1px; min-width: 0; }
.device-list small { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.invite-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.invite-box p { margin: 0; }
.friend-has { color: var(--ok); font-weight: 700; }
.friend-hint { color: var(--ok); }
.about ul { margin: 4px 0 10px; padding-left: 18px; display: grid; gap: 4px; }

/* Guide, hjemmeskærm og "flere muligheder" */
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.guide-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; }
.guide-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.guide-steps b { font-size: 17px; }
.guide-steps span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.more-options { width: 100%; }
.more-options > summary { cursor: pointer; padding: 10px 0; color: var(--muted); font-weight: 700; font-size: 14px; list-style: none; text-align: center; }
.more-options > summary::-webkit-details-marker { display: none; }
.more-options > summary::after { content: " ▾"; }
.more-options[open] > summary::after { content: " ▴"; }
.camera-start .more-options[open] { display: grid; gap: 10px; justify-items: center; }
.scan-tools.more-options > summary { text-align: left; }
.summary-note { color: var(--ink); font-weight: 400; }
.load-notice .bar-track { display: block; margin-top: 8px; }
.install-notice .actions { display: inline-flex; gap: 6px; margin-left: 6px; flex-wrap: wrap; }

/* Logoet */
.gate-logo { display: block; width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
.gate-logo.big { width: 128px; height: 128px; margin: 0 auto 8px; }
.loading .gate-logo { margin: 0 auto 14px; }
.guide-head { justify-content: flex-start; gap: 12px; }
.guide-head .gate-logo { width: 56px; height: 56px; box-shadow: none; }
.loading:has(.gate-logo) { flex-direction: column; justify-content: center; padding-top: 16vh; text-align: center; }
.setup:has(.gate-logo) { text-align: center; }

/* ---------- Mens du scanner ---------- */
.lock { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; z-index: 2; }
.lock polygon { fill: rgb(242 212 138 / 0.14); stroke: #f2d48a; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgb(242 212 138 / 0.9)); }
.lock.on { animation: lock-in 1.1s ease-out forwards; transform-origin: 50% 46%; }
@keyframes lock-in {
  0% { opacity: 0; transform: scale(1.05); }
  14% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.scan-pop { position: absolute; left: 10px; right: 10px; top: 46px; z-index: 4; display: grid; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgb(10 14 20 / 0.86); border: 1px solid rgb(255 255 255 / 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #ffffff; opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.scan-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.pop-main { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pop-art.art { width: 44px; }
.pop-text { display: grid; gap: 1px; min-width: 0; }
.pop-text b { font-family: var(--font-display); font-size: 19px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-text small { color: #b8c4d1; font-size: 12px; }
.pop-price { margin-left: auto; padding-left: 6px; font-family: var(--font-display); font-weight: 700; font-size: 23px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pop-price.nice { color: #f2d48a; }
.pop-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pop-state { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pop-state.ok { background: rgb(127 211 160 / 0.18); color: #7fd3a0; }
.pop-state.check { background: rgb(240 194 97 / 0.18); color: #f0c261; }
.scan-pop .meta-hit { color: #ffffff; margin-top: 0; }
.pop-undo { margin-left: auto; padding: 3px 11px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; background: none; color: #d9e1ea; font-size: 12px; font-weight: 700; cursor: pointer; }
.scan-pop.check { border-color: rgb(240 194 97 / 0.45); }
.scan-pop.miss { border-color: rgb(240 194 97 / 0.6); }
.scan-pop.miss b { color: #f0c261; }
.scan-pop.jackpot { border: 2px solid #f2d48a; background: linear-gradient(135deg, rgb(64 46 10 / 0.96), rgb(18 14 6 / 0.94)); box-shadow: 0 0 26px rgb(242 212 138 / 0.55); }
.scan-pop.jackpot.on { animation: shine 1.6s ease-in-out 2; }
.pop-flag { position: absolute; top: -13px; left: 14px; padding: 2px 11px; border-radius: 999px; background: #f2d48a; color: #131a22; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 2px 10px rgb(0 0 0 / 0.4); animation: flag-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.6); }
@keyframes shine { 50% { box-shadow: 0 0 44px rgb(242 212 138 / 0.95); } }
@keyframes flag-pop { from { transform: scale(0.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

.jackpot-burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, rgb(242 212 138 / 0.55), rgb(242 212 138 / 0) 58%),
    repeating-conic-gradient(from 0deg at 50% 46%, rgb(242 212 138 / 0.28) 0deg 5deg, transparent 5deg 16deg); }
.jackpot-burst::before, .jackpot-burst::after { content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, #fff6d8 0 2px, transparent 3px), radial-gradient(circle, #f2d48a 0 3px, transparent 4px),
    radial-gradient(circle, #fff6d8 0 2px, transparent 3px), radial-gradient(circle, #f2d48a 0 2px, transparent 3px),
    radial-gradient(circle, #fff6d8 0 3px, transparent 4px), radial-gradient(circle, #f2d48a 0 2px, transparent 3px);
  background-size: 100% 100%; background-repeat: no-repeat;
  background-position: 18% 30%, 80% 22%, 30% 70%, 72% 64%, 50% 14%, 88% 48%; }
.jackpot-burst::after { background-position: 10% 55%, 62% 34%, 40% 20%, 84% 78%, 24% 86%, 58% 80%; }
.jackpot-burst.on { animation: burst 1.7s ease-out forwards; }
.jackpot-burst.on::before { animation: sparkle 1.7s ease-out forwards; }
.jackpot-burst.on::after { animation: sparkle 1.7s 0.25s ease-out forwards; }
@keyframes burst {
  0% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.35) rotate(18deg); }
}
@keyframes sparkle {
  0% { opacity: 0; transform: translateY(10px) scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.2); }
}

.scan-value-wrap { position: relative; }
.scan-plus { position: absolute; right: 0; top: 100%; color: #7fd3a0; font-size: 16px; opacity: 0; white-space: nowrap; }
.scan-plus.on { animation: rise 1.5s ease-out forwards; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px); }
}

.run-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.run-stats div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 12px; background: var(--surface-2); }
.run-stats b { font-family: var(--font-display); font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.run-stats span { color: var(--muted); font-size: 13px; }
.run-best { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--gold-soft); }
.run-best span { display: grid; gap: 1px; }
.run-best small { color: var(--muted); font-size: 12px; }
.run-best b { font-family: var(--font-display); font-size: 19px; }
.run-best em { font-style: normal; font-weight: 700; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .lock.on, .jackpot-burst.on, .jackpot-burst.on::before, .jackpot-burst.on::after, .scan-plus.on, .scan-pop.jackpot.on, .pop-flag { animation-duration: 0.01s; }
}
.rejected-note { display: block; font-size: 12px; margin: 2px 0 4px; }

/* Sæt-fanen: sektioner, og sættet som en samlemappe i nummerorden */
.set-section { margin: 18px 2px 8px; font-family: var(--font-display); font-size: 20px; }
.set-sheet-mode { margin: 12px 0 8px; }
.set-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 12px 0; }
.set-card { position: relative; display: grid; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; text-align: center; }
.set-card .art { width: 100%; }
.set-card.missing { border-style: dashed; }
.set-card.missing .art { filter: grayscale(1) opacity(0.35); }
.set-card-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.set-card-num small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-card-price { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.set-card .pocket-qty { top: 6px; right: 6px; }

/* Til Dua: − antal + under hvert kort */
.gift-stepper { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-top: 6px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 14px; text-align: center; overflow: hidden; }
.gift-stepper button { height: 36px; border: 0; background: transparent; color: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
.gift-stepper button:disabled { opacity: 0.3; cursor: default; }
.gift-stepper b { font-size: 16px; }
.gift-stepper.zero { background: var(--surface-2); color: var(--muted); }
.gift-stepper.changed { box-shadow: inset 0 0 0 2px var(--ok); }
.gift-box .gift-howto { display: block; margin-top: 6px; }

/* Statistik: tal-felter, søjler i én farve (navy), top 10 */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.stat-tile span { font-size: 12px; color: var(--muted); }
.stat-tile b { font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-tile small { font-size: 12px; color: var(--muted); }
.stat-h { margin: 18px 0 6px; font-size: 16px; }
.stat-bars { display: grid; gap: 6px; }
.stat-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.stat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-label .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--dot); vertical-align: -1px; }
.stat-track { height: 14px; }
.stat-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--navy); }
.stat-val { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.stat-val b { color: var(--ink); font-weight: 600; }
.stat-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.stat-table { display: grid; gap: 4px; }
.stat-top { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.stat-top .art { width: 36px; }
.stat-rank { font-weight: 700; color: var(--muted); text-align: center; }
.stat-top-name { display: flex; flex-direction: column; min-width: 0; }
.stat-top-name b, .stat-top-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-top-name small { font-size: 12px; color: var(--muted); }
.stat-top-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.stat-cols { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; height: 80px; align-items: end; border-bottom: 1px solid var(--line); }
.stat-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.stat-col i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--navy); }
.stat-cols-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 520px) { .toolbar { grid-template-columns: 1fr auto; } .toolbar .stats-open { grid-column: 1 / -1; justify-self: start; } }

/* Prisgrafen: trend i blå (plads 1), laveste udbud i orange (plads 2), tynde linjer, hårfine gitterlinjer */
.price-history .pc-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pc-pick select { max-width: 260px; }
.pc-ranges { margin-top: 4px; }
.pc-custom { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 4px; }
.pc-stats div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.pc-stats b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-stats span, .pc-stats small { font-size: 12px; color: var(--muted); }
.pc-delta.up { color: var(--ok); }
.pc-delta.down { color: var(--danger); }
.pc-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.pc-key { display: inline-block; width: 14px; height: 2px; margin-right: 6px; border-radius: 1px; vertical-align: middle; }
.pc-key.trend { background: var(--series-1); }
.pc-key.low { background: var(--series-2); }
.pc-wrap { position: relative; }
.pc-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.pc-svg:focus { outline: none; }
.pc-grid { stroke: var(--line); stroke-width: 1; }
.pc-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pc-trend { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-low { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.pc-end { fill: var(--ink); font-size: 12px; font-weight: 700; }
.pc-cross { stroke: var(--muted); stroke-width: 1; }
.pc-hit { fill: transparent; }
.pc-tip { position: absolute; top: 0; width: 150px; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px rgb(0 0 0 / 0.15); font-size: 12px; pointer-events: none; }
.pc-tip div { white-space: nowrap; }
.pc-tip span { color: var(--muted); }
.pc-alarms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.pc-alarm { display: inline-flex; align-items: center; gap: 4px; }
.pc-alarm.hit { background: var(--ok-soft); color: var(--ok); }
.pc-alarm-x { border: 0; background: transparent; color: inherit; font-size: 15px; cursor: pointer; padding: 0 2px; }
.pc-compare { display: grid; gap: 4px; }
.pc-compare-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.pc-compare-row.on { border-color: var(--series-1); }
.pc-ranges button { padding-left: 4px; padding-right: 4px; white-space: nowrap; font-size: 13px; }

/* Kortsøgning */
.cs-q { width: 100%; margin: 4px 0 10px; }
.cs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.cs-label { min-width: 84px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-row select { max-width: 100%; }
.cs-ranges label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cs-ranges input[type="number"] { width: 68px; }
.cs-ranges input[type="text"] { width: 150px; }
.cs-wrap { flex-wrap: wrap; overflow: visible; }
.cs-tri.no { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.cs-more summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.cs-chips { flex-wrap: wrap; margin: 8px 0; }
.cs-active { background: var(--navy-soft); }
.cs-count { margin: 6px 0; font-size: 14px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.cs-card { position: relative; display: grid; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cs-card .art { width: 100%; }
.cs-card.have { border-color: var(--ok); }
.cs-card .pocket-meta { bottom: auto; top: 8px; left: 8px; }
.cs-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-price { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.cs-price small { font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--muted); }

/* Log ind og opret bruger: forsiden */
body.gated { padding-bottom: 0; }
body.welcoming .bar { display: none; }
body.welcoming .main { max-width: none; padding: 0; }
.welcome {
  --hero: #1c2b45;
  display: grid;
  grid-template-areas: "hero" "auth" "points";
  min-height: 100vh;
  min-height: 100dvh;
  align-content: start;
}
.welcome-hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand brand" "copy fan";
  align-items: center;
  gap: 14px 18px;
  padding: calc(16px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 58px max(20px, env(safe-area-inset-left));
  background: radial-gradient(120% 90% at 100% 0%, #2c4470 0%, var(--hero) 60%);
  color: #ffffff;
  overflow: hidden;
}
.welcome-bg { display: none; }
.nowrap { white-space: nowrap; }
.welcome-brand { grid-area: brand; display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; }
.welcome-brand .gate-logo { width: 40px; height: 40px; box-shadow: 0 4px 12px rgb(0 0 0 / 0.35); }
.welcome-copy { grid-area: copy; display: grid; gap: 8px; }
.welcome-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 8vw, 34px); line-height: 1.02; text-wrap: balance; }
.welcome-lead { margin: 0; color: rgb(255 255 255 / 0.8); font-size: 15px; line-height: 1.4; max-width: 42ch; }
.welcome-fan { --fan-w: 54px; grid-area: fan; display: flex; align-items: flex-end; justify-content: center; padding: 14px calc(var(--fan-w) * 0.2) 0; }
@media (max-width: 359px) { .welcome-fan { --fan-w: 42px; } }
.fan-card { width: var(--fan-w); margin-inline: calc(var(--fan-w) * -0.2); transform-origin: 50% 100%; }
.card-back { display: grid; place-items: center; width: 100%; aspect-ratio: 120 / 168; border-radius: calc(var(--fan-w) * 0.07); background: linear-gradient(155deg, var(--cb-1), var(--cb-2)); box-shadow: inset 0 0 0 calc(var(--fan-w) * 0.035) rgb(255 255 255 / 0.9), inset 0 0 0 calc(var(--fan-w) * 0.06) var(--cb-2), 0 10px 22px rgb(0 0 0 / 0.4); }
.card-back img { width: 56%; height: auto; border-radius: 22%; box-shadow: 0 4px 12px rgb(0 0 0 / 0.3); }
.fan-0 .card-back { --cb-1: #d2453a; --cb-2: #8e1f19; }
.fan-1 .card-back { --cb-1: #33507f; --cb-2: #131f33; }
.fan-2 .card-back { --cb-1: #e9c26a; --cb-2: #a67a22; }
.fan-0 { transform: rotate(-13deg) translateY(4px); }
.fan-1 { position: relative; z-index: 1; transform: translateY(-8px); }
.fan-2 { transform: rotate(13deg) translateY(4px); }

.welcome .setup.auth {
  grid-area: auth;
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 440px;
  margin: -40px 12px 0;
  gap: 12px;
  padding: 18px 16px;
  box-shadow: 0 14px 36px rgb(10 20 35 / 0.16);
}
@media (min-width: 468px) { .welcome .setup.auth { width: 100%; justify-self: center; margin-inline: 0; padding: 22px 22px 18px; } }
.auth-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.auth-form { display: grid; gap: 12px; margin: 2px 0 0; text-align: left; }
.auth-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.auth-form label small { font-weight: 400; color: var(--muted); }
.auth-form input { width: 100%; min-height: 48px; font-size: 16px; }
.auth-form input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); outline: 2px solid transparent; }
.auth-form .btn.primary { width: 100%; margin-top: 2px; }
.auth-form .btn.quiet, .auth .btn.quiet { justify-self: start; padding-inline: 4px; }
.auth .btn.back { margin-top: -4px; }
.auth .search { display: flex; gap: 8px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 34px; padding: 4px 10px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }

.welcome-points { grid-area: points; display: grid; gap: 14px; width: 100%; max-width: 440px; justify-self: center; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
.welcome-points ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.welcome-points li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.welcome-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.welcome-points strong { font-size: 15px; }
.welcome-points span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.welcome-foot { margin: 0; color: var(--muted); font-size: 13px; }

@media (min-width: 900px) {
  .welcome {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    grid-template-areas: "hero auth" "points auth";
    grid-template-rows: 1fr auto;
    align-content: stretch;
  }
  .welcome-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "copy" "fan";
    align-content: center;
    gap: 22px;
    padding: 48px clamp(40px, 6vw, 88px) 24px;
    background: none;
  }
  .welcome-bg { display: block; grid-column: 1; grid-row: 1 / 3; background: radial-gradient(80% 60% at 100% 0%, #2c4470 0%, var(--hero) 70%); }
  .welcome-hero, .welcome-points { grid-column: 1; position: relative; }
  .welcome-brand { font-size: 28px; }
  .welcome-brand .gate-logo { width: 52px; height: 52px; }
  .welcome-title { font-size: clamp(44px, 4.4vw, 60px); max-width: 13ch; }
  .welcome-lead { font-size: 18px; }
  .welcome-fan { --fan-w: clamp(92px, min(10vw, 16vh), 150px); justify-content: flex-start; padding: 28px 0 8px calc(var(--fan-w) * 0.2); }
  .welcome .setup.auth { align-self: center; justify-self: center; width: min(420px, calc(100% - 48px)); margin: 32px 0; padding: 28px 28px 22px; box-shadow: 0 18px 48px rgb(10 20 35 / 0.12); }
  .welcome-points { max-width: none; justify-self: stretch; padding: 8px clamp(40px, 6vw, 88px) 44px; color: #ffffff; }
  .welcome-points ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; max-width: 640px; }
  .welcome-points li::before { background: #f2d48a; }
  .welcome-points span, .welcome-foot { color: rgb(255 255 255 / 0.72); }
  .welcome-foot .link-btn { color: #ffffff; }
}
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.link-btn { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.recovery-code { margin: 12px 0; padding: 14px; border-radius: 10px; background: var(--surface-2); font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: 0.06em; text-align: center; user-select: all; word-break: break-all; }

/* Mange kort på én gang: liste, sæt og startdæk */
.camera-start .btn.bulk-start { min-height: 38px; background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.22); color: #ffffff; font-size: 14px; }
.btn.bulk-tools { width: 100%; margin: 10px 0 6px; }
.bulk-text { width: 100%; min-height: 150px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: 15px/1.45 var(--font-mono); resize: vertical; }
.bulk-text:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); outline: 2px solid transparent; }
.bulk-actions { margin: 8px 0 4px; }
.bulk-actions label.btn { cursor: pointer; }
.bulk-ways { display: grid; gap: 8px; margin-top: 10px; }
.bulk-way { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bulk-way span { color: var(--muted); font-size: 14px; }
.bulk-summary { margin: 12px 0 8px; font-size: 16px; }
.bulk-choice { display: grid; gap: 6px; margin: 8px 0; padding: 10px 12px; border-radius: var(--radius); background: var(--warn-soft); }
.bulk-errors { margin: 8px 0; font-size: 14px; }
.bulk-errors summary { cursor: pointer; color: var(--danger); font-weight: 700; }
.bulk-errors ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.bulk-errors code { font-size: 12px; }
.bulk-errors small { color: var(--muted); }
.bulk-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 2px; max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.bulk-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; }
.bulk-row + .bulk-row { border-top: 1px solid var(--line); }
.bulk-row .art { width: 32px; }
.bulk-name { display: grid; min-width: 0; }
.bulk-name b, .bulk-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-name small { color: var(--muted); font-size: 12px; }
.bulk-qty { font-family: var(--font-mono); font-weight: 600; }
.btn.bulk-go { width: 100%; margin-top: 6px; }

.set-edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.set-edit-bar.on { background: var(--ok-soft); }
.set-edit-bar .hint { flex: 1 1 220px; font-size: 13px; }
.set-card.edit { cursor: default; }
.set-hit { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.set-hit:active .art { transform: scale(0.96); }
.set-card.edit .pocket-qty { top: 3px; right: 3px; }
.set-stepper { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-radius: 999px; background: var(--ok-soft); color: var(--ok); overflow: hidden; }
.set-stepper button { height: 34px; border: 0; background: transparent; color: inherit; font-size: 20px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.set-stepper button:disabled { opacity: 0.3; cursor: default; }
.set-stepper b { min-width: 18px; font-size: 14px; font-variant-numeric: tabular-nums; }
.set-cards.editing { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.st-add { display: grid; gap: 6px; margin: 10px 0; }
