@font-face {
  font-family: Manrope;
  src: url(fonts/manrope.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Bricolage;
  src: url(fonts/bricolage.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #171220;
  --surface: #211a2b;
  --text: #fff8f2;
  --muted: #bfb0c6;
  --line: #382d42;
  --gold: #ffcb81;
  --heading: Bricolage, Manrope, system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  color: var(--text);
  font: 600 14px/1.5 var(--body);
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
a { color: var(--gold); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
svg { display: block; flex: none; width: 20px; height: 20px; }

.topbar {
  max-width: 640px;
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .015em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  display: block;
  border: 1px solid #664534;
  background: #342335;
  border-radius: 13px;
}
.brand-mark i {
  width: 13px;
  height: 18px;
  position: absolute;
  top: 9px;
  left: 10px;
  border: 1.5px solid #f0afae;
  border-radius: 3px;
  transform: rotate(-19deg);
}
.brand-mark i + i {
  left: 15px;
  top: 10px;
  transform: rotate(14deg);
  background: #3a2836;
  border-color: var(--gold);
}
.brand-mark i + i::after {
  content: "✦";
  color: var(--gold);
  font: 8px/15px sans-serif;
  display: block;
  text-align: center;
}
.icon-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

main {
  max-width: 640px;
  min-height: calc(100vh - 138px);
  padding: 14px 20px 104px;
  margin: 0 auto;
}
main:focus { outline: none; }
h1 {
  font-size: clamp(35px, 10.5vw, 52px);
  line-height: 1.01;
  letter-spacing: -.064em;
  font-weight: 800;
}
.page-intro { margin: 4px 0 24px; }
.page-intro h2 { font-size: clamp(24px, 6vw, 30px); line-height: 1.12; letter-spacing: -.035em; }
.page-intro p { margin-top: 9px; color: var(--muted); }

.collection-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 125px;
  padding: 17px 8px;
  border: 1px solid #755366;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 14% 18%, #7c3f35, transparent 63%),
    radial-gradient(ellipse at 92% 25%, #584080, transparent 64%),
    #292035;
}
.collection-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% -8% 13%;
  background: repeating-radial-gradient(
    ellipse at 50% 70%, transparent 0 19px, #fff1 20px, transparent 21px 29px
  );
  mask-image: linear-gradient(black, transparent 95%);
}
.collection-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 1.3vw, 8px);
  white-space: nowrap;
  font-size: clamp(28px, 9.8vw, 57px);
  text-shadow: 0 3px 10px #201321a0;
}
.logo-member {
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, 1.1vw, 6px);
}
.logo-member img {
  flex: none;
  width: clamp(39px, 14vw, 83px);
  height: auto;
  filter: drop-shadow(0 4px 5px #170c1d9c);
}
.collection-logo .conjunction {
  color: var(--gold);
  font-size: .73em;
}
.home-section { margin-top: 29px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 7px;
}
.section-header h2 { font-size: 23px; letter-spacing: -.037em; font-weight: 800; }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 2px 0 8px;
  color: var(--gold);
  background: none;
  border: 0;
  font-weight: 800;
  font-size: 12px;
}
.text-button svg { width: 15px; height: 15px; }
.set-list { display: grid; gap: 8px; }
.set-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 66px;
  padding: 6px 12px 6px 6px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.set-art {
  width: 76px;
  height: 51px;
  overflow: hidden;
  position: relative;
  display: block;
  border-radius: 10px;
  background: var(--surface-inset, #282031);
}
.set-art img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}
.set-art-symbol { display: grid; place-items: center; }
.set-art-symbol img {
  width: 42px;
  height: 34px;
  padding: 4px;
  object-fit: scale-down;
  background: #f5ede3;
  border-radius: 6px;
}
.set-symbol {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 16px;
  vertical-align: -.19em;
  background: #f5ede3;
  border-radius: 4px;
}
.set-symbol.wordmark { width: 28px; }
.set-symbol img { width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 2px; object-fit: scale-down; }
.set-group + .set-group { margin-top: 22px; }
.set-group h2 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.025em; }
.set-text { min-width: 0; }
.set-text > strong { display: block; font: 800 16px/1.15 var(--heading); letter-spacing: -.015em; }
.set-text small { color: var(--muted); font-weight: 700; font-size: 11px; }
.set-details { display: block; margin-top: 3px; }
.set-row > svg { width: 17px; height: 17px; color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.asset-frame { position: relative; overflow: hidden; }
.asset-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #baa2c4;
  opacity: .75;
}
.asset-frame.is-ready .asset-placeholder { display: none; }
.asset-frame:not(.is-ready) img { visibility: hidden; }
.tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 63 / 88;
  border-radius: 7px;
  background: var(--background);
}
.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}
.owned-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  top: 12px;
  right: 12px;
  min-width: 25px;
  min-height: 25px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #ffdb9f;
  background: #302333;
  border: 1px solid #987352;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.owned-icon.is-complete { color: #c4f1d5; background: #21382f; border-color: #588b72; }
.owned-icon svg { width: 13px; height: 13px; }
.card-tile strong {
  margin: 8px 2px 0;
  font-family: var(--heading);
  font-size: 16px;
  line-height: 1.12;
}
.card-tile small { margin: 4px 2px 1px; color: var(--muted); font-size: 11px; }
.back-button { padding-left: 0; margin: -4px 0 8px; }
.back-button svg { transform: rotate(180deg); }

.bottom-nav {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: min(100%, 640px);
  height: 70px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 7px 13px 8px;
  border-top: 1px solid var(--line);
  background: #1d1727;
}
.nav-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 3px 2px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
}
.nav-button[aria-current="page"] { color: var(--gold); background: #342637; border-color: #503844; }
.nav-button svg { width: 19px; height: 19px; }

.chip {
  flex: 1;
  min-height: 44px;
  padding: 5px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 800;
}
.chip[aria-pressed="true"] { background: #342637; color: var(--gold); border-color: #75573d; }
.empty-state {
  padding: 25px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
}
.empty-state p { color: var(--muted); margin: 7px 0; }
.wanted-empty { padding: 14px 16px; }
.wanted-empty p { margin: 0; }
.wish-expand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 10px auto 0;
  padding: 0 13px;
  border: 1px solid #6a4e5c;
  border-radius: 12px;
  background: var(--surface);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.wish-expand svg { width: 14px; height: 14px; transform: rotate(90deg); }
.wish-expand[aria-expanded="true"] svg { transform: rotate(-90deg); }
.wish-expand[aria-expanded="true"] { margin-bottom: 10px; }
.collection-about { margin-top: 12px; padding-left: 0; }
.backup-actions { display: grid; gap: 8px; margin-top: 16px; }
#backup-status:empty { display: none; }
.collection-block + .collection-block { margin-top: 28px; }
.collection-block h2 { margin-bottom: 8px; font-size: 23px; letter-spacing: -.03em; }
.extension-actions { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.collection-progress { display: block; margin: 8px 0 13px; }
.set-row .collection-progress { margin: 5px 0 3px; }
.progress-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
}
.progress-caption strong { color: var(--gold); font-weight: 800; }
.progress-caption > span { margin-left: auto; font-variant-numeric: tabular-nums; }
.collection-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #372c42;
}
.collection-progress progress::-webkit-progress-bar { border-radius: 999px; background: #372c42; }
.collection-progress progress::-webkit-progress-value { border-radius: 999px; background: #f7be82; }
.extension-progress { margin-top: 13px; }
[data-progress-unit="variantes"] progress::-webkit-progress-value { background: #c5a4ef; }
.selection-toolbar {
  position: sticky;
  z-index: 1;
  top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 47px;
  margin-bottom: 12px;
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.selection-toolbar[hidden], .selection-toolbar [hidden] { display: none; }
.selection-hint { color: var(--muted); font-size: 12px; }
.selection-controls { display: grid; flex: 1; align-items: center; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
#selected-count { color: var(--gold); font-size: 12px; font-weight: 800; }
.remove-button, .add-button {
  min-height: 44px;
  padding: 5px 9px;
  color: #ffc2c9;
  background: #432632;
  border: 1px solid #8b4957;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}
.add-button { color: #ffdeb2; background: #443143; border-color: #9f7657; }
.remove-button:disabled, .add-button:disabled { opacity: .48; cursor: default; }
.removal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.batch-variants { display: grid; gap: 6px; margin-top: 12px; }
.batch-variant {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.batch-variant input { width: 18px; height: 18px; accent-color: var(--gold); }
.batch-variant small { max-width: 10em; color: var(--muted); text-align: right; }
.selectable-cards .card-tile {
  touch-action: pan-y;
  user-select: none;
  -webkit-touch-callout: none;
}
.selectable-cards .card-tile img { -webkit-user-drag: none; }
.selectable-cards.selecting .card-tile::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #2a1b2a;
  background: #211a2b;
  border: 1px solid #c8a375;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}
.selectable-cards .card-tile[aria-pressed="true"] { border-color: #e3ac76; background: #382836; }
.selectable-cards .card-tile[aria-pressed="true"]::before { content: "✓"; background: var(--gold); }

dialog {
  width: min(calc(100% - 24px), 540px);
  max-height: min(calc(100% - 24px), 760px);
  margin: auto;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #4d3d58;
  border-radius: 21px;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #0b0812d1; }
.dialog-body { padding: 14px; }
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dialog-header h2 { font-size: 25px; line-height: 1.06; letter-spacing: -.035em; }
.dialog-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.dialog-art {
  display: grid;
  justify-items: center;
  min-height: 95px;
  margin: 0 auto 6px;
}
.dialog-art:not(.is-ready) {
  width: min(100%, 215px);
  height: min(35vh, 285px);
  border-radius: 10px;
  background: var(--background);
}
.dialog-art img { max-height: min(42vh, 370px); width: auto; height: auto; object-fit: contain; }
.expanded-scan .dialog-art img { max-height: none; }
.zoom-button { display: flex; margin-inline: auto; padding-inline: 10px; }
.zoom-button[hidden], .scan-status:empty { display: none; }
.scan-caption { color: var(--muted); font-size: 11px; text-align: center; margin: 3px 0; }
.scan-filters { margin-bottom: 12px; }
.variant-heading { margin: 17px 0 7px; font-size: 17px; }
.variant-list { display: grid; gap: 6px; }
.variant-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.variant-toggle > span { flex: 1; min-width: 0; }
.variant-toggle.has-copies { background: #342637; color: var(--gold); border-color: #75573d; }
.variant-toggle small { color: var(--muted); font-weight: 600; }
.variant-toggle svg { width: 16px; height: 16px; flex: 0 0 16px; }
.variant-copy-total { white-space: nowrap; }
.variant-copy-panel { display: grid; gap: 5px; margin: 6px 0 8px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.copy-row .quantity-button { width: 39px; height: 44px; }
.copy-add-state .text-button { padding: 0 10px; }
.copy-add-state .text-button:disabled { opacity: .5; }
.condition-field {
  display: grid;
  grid-template-columns: minmax(44px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 4px 8px 6px;
  color: var(--muted);
  font-size: 12px;
}
.condition-field[hidden] { display: none; }
.batch-variants + .condition-field { margin-top: 8px; }
.wish-button, .cardmarket-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 11px;
  margin-top: 12px;
  color: var(--gold);
  background: #2c2338;
  border: 1px solid #604969;
  border-radius: 12px;
  font-weight: 800;
  text-align: left;
}
.wish-button[aria-pressed="true"] { background: #493443; border-color: #9a765d; }
.wish-button[aria-pressed="true"] svg { fill: currentColor; }
.cardmarket-link {
  margin-top: 7px;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  text-decoration: none;
}
.wish-button svg, .cardmarket-link svg { width: 17px; height: 17px; }
.detail-note { color: var(--muted); font-size: 12px; margin-top: 12px; }
.search-field {
  width: 100%;
  min-height: 47px;
  padding: 7px 11px;
  color: var(--text);
  background: var(--background);
  border: 1px solid #57445f;
  border-radius: 12px;
  font-size: 16px;
}
.search-field::placeholder { color: var(--muted); }
.catalog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.catalog-tab {
  min-height: 44px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
}
.catalog-tab[aria-pressed="true"] { color: var(--gold); background: #332536; border-color: #65465b; }
.collection-heading { margin-bottom: 12px; }
.collection-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.collection-tabs .catalog-tab { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 4px; }
.collection-tabs svg { width: 16px; height: 16px; }
.catalog-filters {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.catalog-filters.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.results-count, .empty-results { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.scroll-more { min-height: 1px; }
.search-fields { display: grid; gap: 7px; }
.search-results { margin-top: 13px; }
.about-copy p + p { margin-top: 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 360px) {
  .topbar { padding-inline: 15px; }
  main { padding-inline: 15px; }
}
@media (min-width: 550px) {
  main, .topbar { padding-inline: 28px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wanted-list .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s, border-color .15s; }
  .set-row:active, .card-tile:active, .icon-button:active { background: #30223d; }
}

.home-shortcuts, .grader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-shortcuts { margin-top: 24px; }
.home-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: 106px;
  overflow: hidden;
  padding: 13px 12px 33px;
  border: 1px solid var(--tile-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #211a2b 32%, var(--tile-shade));
  text-align: left;
  text-decoration: none;
  color: var(--text);
  font: 800 16px/1.15 var(--heading);
}
.tile-graded { --tile-line: #674e85; --tile-shade: #35214b; --tile-ink: #c9a1ff; }
.tile-sealed { --tile-line: #71533e; --tile-shade: #392631; --tile-ink: #ffbf70; }
.tile-cards { --tile-line: #406480; --tile-shade: #203447; --tile-ink: #94daff; }
.tile-doubles { --tile-line: #7f4e6a; --tile-shade: #442538; --tile-ink: #f5acd2; }
.tile-agenda { --tile-line: #407365; --tile-shade: #20403d; --tile-ink: #9de4cf; }
.tile-site { --tile-line: #546e92; --tile-shade: #283655; --tile-ink: #b2cafa; }
.tile-doubles small { display: block; margin-top: 4px; color: var(--tile-ink); font-size: 12px; }
.home-tile svg {
  position: absolute;
  z-index: -1;
  right: 14px;
  bottom: 9px;
  width: 46px;
  height: 46px;
  color: var(--tile-ink);
  stroke-width: 1.15;
}
.home-tile:active { border-color: var(--tile-ink); }
.grader-tile {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}
.grader-logo {
  display: grid;
  width: 100%;
  height: 65px;
  place-items: center;
  padding: 12px 9px;
  border-radius: 8px;
  background: #f7f2ed;
}
.grader-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.grader-tile[data-grader="ccc"] .grader-logo { background: #171924; }
.grader-tile strong { font: 800 17px/1.1 var(--heading); }
.grader-tile small, .inventory-row small { color: var(--muted); font-size: 12px; }
.inventory-add { margin: 0 0 14px; }
.inventory-list { display: grid; gap: 8px; }
.inventory-row {
  display: grid;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}
.inventory-row small { display: block; }
.inventory-row strong { font: 800 15px/1.2 var(--heading); overflow-wrap: anywhere; }
.inventory-action { display: inline-flex; align-items: center; gap: 7px; }
.inventory-action svg { width: 16px; height: 16px; }
.search-card-row { grid-template-columns: minmax(0, 1fr) auto; padding: 7px 8px; }
.search-card-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: start;
}
.search-card-text { display: grid; gap: 2px; overflow-wrap: anywhere; }
.search-card-text .search-owned { color: #adddcc; }
.search-add-button {
  padding: 0 7px;
  border: 1px solid #6a4e5c;
  border-radius: 10px;
  background: #302438;
}
.search-add-button[aria-expanded="true"] { border-color: var(--gold); }
.quick-add-panel, .search-add-notice { grid-column: 1 / -1; }
.quick-add-panel { display: grid; gap: 7px; padding: 9px 0 2px; border-top: 1px solid var(--line); }
.quick-variant-name { font-weight: 800; }
.quick-add-panel .condition-field { padding: 0; }
.quick-add-panel .add-button { justify-self: end; padding-inline: 12px; }
.search-add-notice { padding-top: 5px; border-top: 1px solid var(--line); color: #adddcc; font-size: 12px; }
.double-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
.inventory-card-art { display: block; aspect-ratio: 63 / 88; border-radius: 5px; background: var(--background); }
.inventory-card-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.double-summary { display: grid; gap: 2px; overflow-wrap: anywhere; }
.double-quantity { color: var(--gold); font-weight: 800; font-size: 12px; white-space: nowrap; }
.graded-row { grid-template-columns: minmax(0, 1fr) auto; }
.grade-badge {
  max-width: 105px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #45344e;
  color: #ffdbab;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.inventory-form { display: grid; gap: 12px; }
.inventory-form label { display: grid; gap: 4px; color: var(--muted); }
.inventory-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sealed-filter { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.sealed-filter input { accent-color: var(--gold); }
.sealed-collection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}
.sealed-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
.sealed-art { display: block; height: 54px; border-radius: 8px; background: #302638; }
.sealed-art.is-ready { background: #f7f2ed; }
.sealed-art img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.quantity-control { display: flex; align-items: center; gap: 4px; }
.quantity-button {
  display: grid;
  width: 32px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #302438;
  color: var(--gold);
  font-size: 18px;
}
.quantity-button:disabled { opacity: .45; cursor: default; }
.quantity-value { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
