.collection-summary,.statistics-page{--summary-line:#cbd6ca;--summary-ink:#243e40;color:var(--summary-ink)}.summary-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}.summary-heading h1{font-size:44px;margin:0}.summary-heading h1 small,.summary-heading h2 small{font-size:16px;font-weight:450}.rank-badge{border:1px solid #c7a65e;border-radius:30px;padding:12px 18px;background:#fff1ca;font-weight:700}.summary-links{display:flex;gap:24px;flex-wrap:wrap}.summary-delta{font-size:14px;color:#176c64}.stat-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stat-line{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #dce2d7}.stat-line span{display:flex;align-items:center;gap:10px}.color-dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:#a6b1a5}.color-W{background:#eadbab}.color-U{background:#508bbb}.color-B{background:#625376}.color-R{background:#c76b58}.color-G{background:#529174}.color-M{background:linear-gradient(90deg,#c76b58,#508bbb,#529174)}.summary-note,.price-lot small{font-size:13px;color:#63746c;line-height:1.6}.price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.price-grid article{background:#edf0e5;padding:20px;border-radius:16px;display:flex;flex-direction:column;gap:8px}.price-grid strong{font-size:26px}.price-grid small{font-size:13px}.rank-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rank-list>div{display:flex;flex-direction:column;gap:8px;border:1px solid #d1d9cc;border-radius:12px;padding:16px;color:#768376}.rank-list .reached{background:#dbe9d5;color:#245244;border-color:#a4bf96}.card-prices{margin:24px 0;border-top:1px solid #d5dacd;padding-top:16px}.price-lot{padding:12px 0;border-bottom:1px solid #d5dacd}.statistics-nav{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:24px}.catalog-only .add-content{grid-template-columns:1fr}.catalog-only #open-add,.catalog-only [data-add-card]{display:none!important}@media(max-width:650px){.stat-columns,.price-grid{grid-template-columns:1fr}.rank-list{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-heading h1{font-size:36px}.price-grid strong{font-size:24px}}

/* ECOSYSTEM THEME — generated by tools/build_ecosystem_theme.py */
/* Dragon Table: общий визуальный язык меню, инструментов и игры. */
:root {
  --dt-bg:#101814; --dt-panel:#1b2821; --dt-raised:#29382c;
  --dt-text:#efe9d8; --dt-muted:#b8c1b1; --dt-gold:#d6bc83;
  --dt-line:#647052; --dt-focus:#f1d49a; --dt-radius:10px;
  --dt-button:linear-gradient(145deg,#344332,#233027);
  --dt-primary:linear-gradient(145deg,#e0c998,#c5a66c);
  --dt-font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body:not(.table-shell) {
  color-scheme:dark; --ink:var(--dt-text); --text:var(--dt-text);
  --muted:var(--dt-muted); --paper:var(--dt-panel); --panel:var(--dt-panel);
  --bg:var(--dt-bg); --accent:var(--dt-gold); --gold:var(--dt-gold); --line:var(--dt-line);
  color:var(--dt-text); font-family:var(--dt-font);
}
body:not(.table-shell):not(.menu-page):not(:has(.home)) {
  background:radial-gradient(ellipse at 80% 0,#38442d66,transparent 55%),var(--dt-bg);
  min-height:100svh;
}
body:not(.table-shell) :is(h1,h2) {font-family:Georgia,serif;font-weight:400;color:var(--dt-text)}
body:not(.table-shell) .eyebrow {color:var(--dt-gold)}
body:not(.table-shell) button:not(:where(.art-button,.card-list-row,.menu-card,.menu-item,.text-button,.colors button,.saved-deck-cover,.saved-deck-name,.saved-deck-results,.saved-deck-menu)),
body:not(.table-shell) .file-button,
body .dt-nav a {
  border:1px solid var(--dt-line); border-radius:var(--dt-radius);
  background:var(--dt-button); color:var(--dt-text);
  min-height:44px; padding:10px 14px; font-family:var(--dt-font); font-weight:600;
  line-height:1.3; touch-action:manipulation; cursor:pointer;
  box-shadow:inset 0 1px 0 #ffffff0a,0 3px 9px #030a0526;
  transition:background .15s,border-color .15s,box-shadow .15s;
}
body:not(.table-shell) :is(button.primary,.file-button.primary,button[aria-pressed=true],.view-switch button.active),
body:not(.table-shell) :is(#camera,#retry-card,#add,#join-submit,#open-session,#start,#solo,#book-open,#accept,#check) {
  background:var(--dt-primary); color:#19241c; border-color:var(--dt-gold);
}
@media(hover:hover) {
  body:not(.table-shell) button:not(:where(:disabled,.art-button,.card-list-row,.menu-card,.menu-item,.colors button,.saved-deck-cover,.saved-deck-name,.saved-deck-results,.saved-deck-menu)):hover,
  body .dt-nav a:hover {border-color:var(--dt-gold);box-shadow:inset 0 0 0 1px #d6bc8344,0 4px 14px #0004}
}
body:not(.table-shell) button:disabled {opacity:.45;cursor:default;box-shadow:none}
body:not(.table-shell) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  color-scheme:dark; background:#111c16; color:var(--dt-text); border:1px solid var(--dt-line);
  border-radius:var(--dt-radius); font-family:var(--dt-font); font-size:16px; min-height:44px;
}
body:not(.table-shell) input::placeholder {color:#99a592;opacity:1}
body:not(.table-shell) input[type=checkbox] {accent-color:var(--dt-gold)}
body:not(.table-shell) :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--dt-focus);outline-offset:3px;
}
body:not(.table-shell) a:not(:where(.menu-card,.menu-item,.wordmark)) {color:var(--dt-gold)}
body .dt-nav {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 24px;flex:none;align-self:auto}
body .dt-nav a {display:inline-flex;align-items:center;text-decoration:none;font-size:13px}
body .dt-nav a[aria-current=page] {border-color:var(--dt-gold);background:#514b32;color:var(--dt-text)}
body:not(.table-shell) dialog {color-scheme:dark;border-radius:16px;border-color:var(--dt-line);box-shadow:0 24px 80px #0008}
body:not(.table-shell) dialog::backdrop {background:#050b08cc}
@media(prefers-reduced-motion:reduce) {body button,body .dt-nav a {transition:none}}

/* Спокойная системная типографика; декоративный шрифт только в логотипе/меню. */
body:not(.table-shell):not(.menu-page):not(:has(.home)) {font-size:15px;line-height:1.55}
body:not(.table-shell):not(.menu-page):not(:has(.home)) :is(h1,h2,h3) {
  font-family:var(--dt-font);font-weight:600;line-height:1.25;letter-spacing:normal;
}
body:not(.table-shell) :is(button,input,select,textarea) {letter-spacing:normal}
body:not(.table-shell) button {hyphens:none;word-break:normal;overflow-wrap:normal}
body:not(.table-shell) :is(.summary-note,.price-lot small,.notice,.empty) {font-size:14px;line-height:1.55}

/* Shared green surfaces with slate buttons and gold accents. */
:root {
  --dt-bg:#101814;
  --dt-panel:#1b2821;
  --dt-raised:#29382c;
  --dt-text:#eee4cf;
  --dt-muted:#b7b6ab;
  --dt-gold:#d2ab63;
  --dt-line:#806a45;
  --dt-focus:#f2d48f;
  --dt-radius:5px;
  --dt-button:linear-gradient(180deg,#34414a,#222c35);
  --dt-primary:linear-gradient(180deg,#dfbd76,#a97837);
}

body:not(.table-shell) {
  background:
    radial-gradient(circle at 18% 0,#38442d66,transparent 34%),
    radial-gradient(circle at 100% 100%,#543b1e44,transparent 42%),
    repeating-linear-gradient(0deg,#ffffff03 0 1px,transparent 1px 4px),
    var(--dt-bg);
}

body.dt-tools {
  background:
    radial-gradient(circle at 50% -20%,#38442d44,transparent 48%),
    repeating-linear-gradient(0deg,#ffffff03 0 1px,transparent 1px 4px),
    var(--dt-bg);
}

body:not(.table-shell) :is(section,.tool-disclosure,.menu-dialog,dialog),
body.dt-tools :is(section,.tool-disclosure) {
  border-radius:var(--dt-radius);
  border-color:var(--dt-line);
  background:linear-gradient(145deg,#223127,#17251c);
  box-shadow:0 8px 24px #0006, inset 0 1px #ffffff12;
}

body.dt-tools .dt-tools-header {
  background:linear-gradient(180deg,#1b2821,#142119);
  border-bottom:1px solid var(--dt-line);
  box-shadow:0 3px 12px #0007;
}

body.dt-tools .dt-tools-brand,
body:not(.table-shell) :is(h1,h2,h3,h4) {
  text-shadow:1px 1px 0 #0008;
}

body:not(.table-shell) :is(button,.file-button,.dt-nav a):not(:where(.saved-deck-cover,.saved-deck-name,.saved-deck-results,.saved-deck-menu)),
body.dt-tools .collection-tools button {
  border-radius:var(--dt-radius);
  background:var(--dt-button);
  border-color:#8b7149;
  box-shadow:inset 0 1px #ffffff16, inset 0 -2px #0003, 0 3px 7px #0005;
}

body:not(.table-shell) :is(button.primary,.file-button.primary,button[aria-pressed=true],.view-switch button.active),
body:not(.table-shell) #play,
body:not(.table-shell) .menu-play,
body:not(.table-shell) .menu-dialog button:not(.quiet):not(.menu-close) {
  background:var(--dt-primary);
  border-color:#e3c47f;
  color:#201a12;
  text-shadow:none;
}

body:not(.table-shell) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  border-radius:var(--dt-radius);
  border-color:#756447;
  background:#111c16;
  box-shadow:inset 0 2px 5px #0006;
}

body.dt-tools .dt-nav a[aria-current=page] {background:#51432d;color:#f2dfb5}
body.dt-tools .badge {border-radius:var(--dt-radius);background:#3b3325;color:#e4c47e}
body:not(.table-shell) a:not(:where(.menu-card,.menu-item,.wordmark)) {color:#dfbd76}

body.dt-tools.menu-page > main.menu-shell {
  border-radius:var(--dt-radius);
  border-color:#92764a;
  box-shadow:0 10px 32px #0008, inset 0 0 0 1px #ffffff0b;
}

body.table-shell {
  --dt-bg:#101814; --dt-panel:#1b2821; --dt-raised:#29382c;
  --dt-text:#eee4cf; --dt-muted:#b7b6ab; --dt-gold:#d2ab63; --dt-line:#806a45;
  background:
    repeating-linear-gradient(0deg,#ffffff03 0 1px,transparent 1px 4px),
    var(--dt-bg);
}

body.table-shell :is(#mobile-table #m-rail,#mobile-table #m-overlay,dialog.m-mechanic-dialog) {
  border-radius:var(--dt-radius);
  box-shadow:0 12px 30px #0008, inset 0 1px #ffffff12;
}

body .collection-summary,body.statistics-page {--summary-ink:var(--dt-text);--summary-line:var(--dt-line);color:var(--dt-text)}
body .rank-badge {background:#3b3927;color:var(--dt-gold);border-color:#9f895b;border-radius:10px}
body :is(.summary-note,.price-lot small) {color:var(--dt-muted)}
body .summary-delta {color:#b9d4a6}
body :is(.stat-line,.card-prices,.price-lot) {border-color:#46543f}
body .price-grid article {background:#26352a;border:1px solid #46543f;border-radius:12px}
body .rank-list>div {background:#142019;color:var(--dt-muted);border-color:#46543f}
body .rank-list .reached {background:#303c29;color:#e2d5b3;border-color:#8e8357}

body.statistics-page .mobile-section-label {display:none}
body.statistics-page .tool-title {margin-bottom:10px}
body.statistics-page .statistics-overview {padding:14px 16px;border:1px solid var(--dt-line);border-radius:10px;background:var(--dt-panel)}
body.statistics-page .overview-facts {display:flex;align-items:center;gap:16px}
body.statistics-page .overview-total {display:flex;align-items:baseline;gap:7px;white-space:nowrap}
body.statistics-page .overview-total strong {font-size:30px;line-height:1;font-variant-numeric:tabular-nums}
body.statistics-page .overview-total span {font-size:14px}
body.statistics-page .overview-details {display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex:1;min-width:0;color:var(--dt-muted);font-size:13px}
body.statistics-page .overview-rank {color:var(--dt-gold);white-space:nowrap}
body.statistics-page .kind-summary {display:flex;flex-wrap:wrap;gap:4px 16px;margin:9px 0 0;color:var(--dt-muted);font-size:12px}
body.statistics-page .kind-summary span {white-space:nowrap}
body.statistics-page .kind-summary b {color:var(--dt-text);font-variant-numeric:tabular-nums}
body.statistics-page .rank-progress {display:flex;align-items:center;gap:14px;margin-top:7px}
body.statistics-page .rank-progress p {font-size:12px;margin:0;flex:0 1 auto;color:var(--dt-muted)}
body.statistics-page .rank-progress progress {margin:0;height:7px;flex:1;max-width:460px;min-width:40px}
body.statistics-page .statistics-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;margin-top:12px}
body.statistics-page .statistics-grid section {padding:14px;margin:0;box-shadow:none;min-width:0}
body.statistics-page .stat-columns {gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
body.statistics-page .stat-line {padding:6px 0;font-size:13px;gap:8px}
body.statistics-page .stat-line span {gap:6px;min-width:0}
body.statistics-page .stat-line b {font-variant-numeric:tabular-nums}
body.statistics-page .types-panel .color-dot {display:none}
body.statistics-page .color-dot {width:9px;height:9px;flex:none}
body.statistics-page .valuation-heading {display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;justify-content:space-between}
body.statistics-page .valuation-heading h2 {margin:0}
body.statistics-page .valuation-heading label {display:flex;align-items:center;gap:8px;font-size:12px;margin:0;color:var(--dt-muted)}
body.statistics-page .valuation-panel .valuation-heading select {width:auto;margin:0;min-height:40px;padding:5px 8px;font-size:14px;border:0;border-bottom:1px solid #647052;border-radius:0;background:transparent;box-shadow:none}
body.statistics-page .price-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
body.statistics-page .price-grid article {padding:10px;gap:4px;min-width:0}
body.statistics-page .price-grid article > span {font-size:12px;min-height:1.5em}
body.statistics-page .price-grid strong {font-size:clamp(18px,1.65vw,26px);line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.statistics-page .price-grid small {font-size:12px}
body.statistics-page .price-coverage {display:flex;flex-wrap:wrap;gap:0 12px;color:var(--dt-muted);font-size:12px}
body.statistics-page .price-coverage span {white-space:nowrap}
body.statistics-page .summary-note {font-size:12px;line-height:1.5;margin:8px 0}
body.statistics-page .price-state {font-size:12px;margin:6px 0}
body.statistics-page .price-state:empty {display:none}
body.statistics-page #valuation-notes > summary {cursor:pointer;min-height:44px;padding:10px 0;color:var(--dt-gold);font-size:13px}
body.statistics-page #valuation-notes p {font-size:12px}
body.statistics-page .rank-list {grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
body.statistics-page .rank-list > div {padding:8px;gap:2px;font-size:13px}
@media(min-width:601px) {
  body.statistics-page .price-grid {gap:0}
  body.statistics-page .price-grid article {padding:4px 16px;background:transparent;border:0;border-left:1px solid #46543f;border-radius:0}
  body.statistics-page .price-grid article:first-child {padding-left:0;border-left:0}
  body.statistics-page .valuation-panel > .summary-note,
  body.statistics-page #valuation-notes {max-width:85ch}
}
@media(min-width:1001px) {
  body.statistics-page .statistics-overview {display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.8fr);gap:0 32px;padding:16px 20px}
  body.statistics-page .overview-facts {grid-column:1;grid-row:1;justify-content:flex-start}
  body.statistics-page .overview-details {flex:0 1 auto;flex-direction:column;align-items:flex-start;gap:0}
  body.statistics-page .kind-summary {grid-column:1;grid-row:2}
  body.statistics-page .rank-progress {grid-column:2;grid-row:1/3;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;margin:0}
  body.statistics-page .rank-progress p {font-size:13px}
  body.statistics-page .rank-progress progress {width:100%;max-width:none}
  body.statistics-page .statistics-grid {grid-template-columns:minmax(0,1fr)}
  body.statistics-page .price-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
  body.statistics-page .stat-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
}
@media(min-width:601px) and (max-width:1000px) {
  body.statistics-page .price-grid article:nth-child(odd) {padding-left:0;border-left:0}
  body.statistics-page .price-grid article:nth-child(n+3) {margin-top:10px;padding-top:10px;border-top:1px solid #46543f}
}
@media(max-width:1000px) {
  body.statistics-page .statistics-grid {grid-template-columns:minmax(0,1fr)}
  body.statistics-page .price-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px) {
  body.statistics-page .mobile-section-label {display:block;margin-left:auto;color:var(--dt-muted);font-size:14px;font-weight:600;white-space:nowrap}
  body.statistics-page .tool-title {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  body.statistics-page .statistics-overview {padding:12px}
  body.statistics-page .overview-facts {justify-content:space-between;gap:8px}
  body.statistics-page .overview-total {flex-direction:column;align-items:flex-start;gap:0}
  body.statistics-page .overview-total strong {font-size:28px}
  body.statistics-page .overview-total span {font-size:12px}
  body.statistics-page .overview-details {flex:none;flex-direction:column;align-items:flex-end;gap:2px;text-align:right;font-size:12px}
  body.statistics-page .kind-summary {gap:2px 12px;margin-top:8px}
  body.statistics-page .rank-progress {flex-wrap:wrap;gap:3px}
  body.statistics-page .rank-progress progress {flex-basis:100%;max-width:none}
  body.statistics-page .statistics-grid section {padding:12px}
  body.statistics-page .stat-columns {grid-template-columns:minmax(0,1fr);gap:10px}
  body.statistics-page .stat-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:0 14px}
  body.statistics-page .types-panel .stat-list {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.statistics-page .stat-line {font-size:12px;min-width:0}
  body.statistics-page .valuation-heading {align-items:stretch}
  body.statistics-page .valuation-heading label {width:100%;justify-content:space-between;padding-top:6px;border-top:1px solid #46543f}
  body.statistics-page .valuation-panel .valuation-heading select {max-width:65%;min-width:0;min-height:44px;font-size:16px}
  body.statistics-page .price-grid {grid-template-columns:minmax(0,1fr);gap:0;margin-top:8px}
  body.statistics-page .price-grid article {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:0 8px;padding:9px 0;background:transparent;border:0;border-bottom:1px solid #46543f;border-radius:0}
  body.statistics-page .price-grid article > span {grid-column:1;grid-row:1;font-size:13px;font-weight:600;min-height:0}
  body.statistics-page .price-grid strong {grid-column:2;grid-row:1/3;font-size:18px;text-align:right;white-space:nowrap}
  body.statistics-page .price-grid article > small {grid-column:1/-1}
  body.statistics-page .price-grid article > small:first-of-type {grid-column:1;grid-row:2}
  body.statistics-page .price-coverage {grid-column:1/-1;gap:0 14px;margin-top:3px}
}
@media(max-width:350px) {
  body.statistics-page .mobile-section-label {font-size:12px}
  body.statistics-page .price-grid strong {font-size:16px}
}
@media(max-width:300px) {body.statistics-page .types-panel .stat-list {grid-template-columns:minmax(0,1fr)}}

/* The scanner overview follows the compact statistics layout. */
body.scanner-page .mobile-section-label {display:none}
body.scanner-page .collection-summary {padding:14px 16px}
body.scanner-page .scanner-overview {display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.8fr);align-items:center;gap:12px 24px}
body.scanner-page .scanner-overview-facts {display:flex;align-items:center;gap:16px;min-width:0}
body.scanner-page .scanner-overview-total {display:flex;align-items:baseline;gap:7px;white-space:nowrap}
body.scanner-page .scanner-overview-total strong {font-size:30px;line-height:1;font-variant-numeric:tabular-nums}
body.scanner-page .scanner-overview-total span {font-size:14px}
body.scanner-page .scanner-overview-details {display:flex;flex-direction:column;gap:2px;min-width:0;color:var(--dt-muted);font-size:13px}
body.scanner-page .scanner-overview-rank {color:var(--dt-gold)}
body.scanner-page .scanner-rank-heading {display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;color:var(--dt-muted);font-size:12px}
body.scanner-page .scanner-rank-heading strong {color:var(--dt-text);font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
body.scanner-page .scanner-rank-progress progress {width:100%;height:7px;margin:7px 0 0}
@media(max-width:600px) {
  body.scanner-page .mobile-section-label {display:block;margin-left:auto;color:var(--dt-muted);font-size:14px;font-weight:600;white-space:nowrap}
  body.scanner-page .scanner-heading h1 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  body.scanner-page .scanner-heading .badge {display:none}
  body.scanner-page #mode-notice {margin:0 0 2px}
  body.scanner-page #status {margin:0 0 8px}
  body.scanner-page .collection-summary {padding:12px}
  body.scanner-page .scanner-overview {display:block}
  body.scanner-page .scanner-overview-facts {justify-content:space-between;gap:8px}
  body.scanner-page .scanner-overview-total {flex-direction:column;align-items:flex-start;gap:0}
  body.scanner-page .scanner-overview-total strong {font-size:28px}
  body.scanner-page .scanner-overview-total span {font-size:12px}
  body.scanner-page .scanner-overview-details {align-items:flex-end;text-align:right;font-size:12px}
  body.scanner-page .scanner-rank-progress {margin-top:8px}
  body.scanner-page .scanner-rank-heading {flex-wrap:wrap}
  body.scanner-page #camera-status {height:auto;min-height:2.5em}
}
@media(max-width:350px) {body.scanner-page .mobile-section-label {font-size:12px}}


/* Shared snapshot: one compact band on wide screens. */
body.dt-tools #collection-summary {padding:0;border:0;background:transparent;margin:0}
body.dt-tools .collection-overview {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(280px,.85fr);
  gap:0;
  min-width:0;
  margin:0 0 12px;
  overflow:hidden;
  border:1px solid #647052;
  border-radius:12px;
  background:linear-gradient(120deg,#223227,#1b2821 58%,#19271e);
  box-shadow:inset 0 1px #ffffff12,0 8px 22px #050c0730;
  color:var(--dt-text);
}
body.dt-tools .overview-metrics {
  display:grid;
  grid-template-columns:minmax(130px,1.25fr) repeat(4,minmax(0,1fr));
  align-items:center;
  min-width:0;
  padding:11px 14px;
}
body.dt-tools .overview-metric {display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:3px 10px;border-left:1px solid #ffffff1c}
body.dt-tools .overview-metric-primary {border-left:0;padding-left:0}
body.dt-tools .overview-metric span {color:#c0caba;font-size:11px;line-height:1.25}
body.dt-tools .overview-metric strong {color:#f3efe1;font-size:22px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums}
body.dt-tools .overview-metric-primary strong {color:#e6cc91;font-size:36px;letter-spacing:-.04em}
body.dt-tools .overview-rank-panel {display:flex;flex-direction:column;justify-content:center;min-width:0;padding:10px 16px;border-left:1px solid #72806470;background:linear-gradient(150deg,#27362791,#1a2a20)}
body.dt-tools .overview-rank-top {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 10px}
body.dt-tools .overview-rank-top span {color:#c0caba;font-size:12px;line-height:1.3}
body.dt-tools .overview-rank-top strong {color:#e6cc91;font:400 clamp(18px,1.5vw,22px)/1.2 Georgia,serif;overflow-wrap:anywhere}
body.dt-tools .overview-rank-next {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 12px;margin-top:5px;font-size:12px;color:#c0caba;line-height:1.4}
body.dt-tools .overview-rank-next b {color:#f3efe1;font-size:13px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
body.dt-tools .overview-rank-panel progress {display:block;width:100%;height:6px;margin:5px 0 0;overflow:hidden;border:0;border-radius:8px;background:#101b14;accent-color:#d6bc83}
body.dt-tools .overview-rank-panel progress::-webkit-progress-bar {background:#101b14;border-radius:8px}
body.dt-tools .overview-rank-panel progress::-webkit-progress-value {background:linear-gradient(90deg,#a8b98b,#e4c888);border-radius:8px}
body.dt-tools .overview-rank-panel progress::-moz-progress-bar {background:linear-gradient(90deg,#a8b98b,#e4c888);border-radius:8px}
body.dt-tools .overview-rank-scale {display:flex;justify-content:space-between;gap:10px;margin-top:3px;color:#aebcad;font-size:11px;font-variant-numeric:tabular-nums}
@media(min-width:701px) and (max-width:1050px) {
  body.dt-tools .collection-overview {grid-template-columns:minmax(0,1fr) minmax(245px,.8fr)}
  body.dt-tools .overview-metrics {grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:5px 0}
  body.dt-tools .overview-metric-primary {grid-column:1/3;grid-row:1}
  body.dt-tools .overview-metric:nth-child(2) {grid-column:3/5;grid-row:1}
  body.dt-tools .overview-metric:nth-child(3) {grid-column:1/2;grid-row:2;border-left:0;padding-left:0}
  body.dt-tools .overview-metric:nth-child(4) {grid-column:2/3;grid-row:2}
  body.dt-tools .overview-metric:nth-child(5) {grid-column:3/5;grid-row:2}
}
@media(max-width:700px) {
  body.dt-tools:is(.collection-catalog,.scanner-page) #collection-summary {display:none}
  body.statistics-page .collection-overview {grid-template-columns:minmax(0,1fr);margin-bottom:10px}
  body.statistics-page .overview-metrics {grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:0;padding:8px 12px}
  body.statistics-page .overview-metric {min-height:45px;padding:3px 8px;border-left:0}
  body.statistics-page .overview-metric-primary {grid-column:1/4;grid-row:1;padding-left:0}
  body.statistics-page .overview-metric:nth-child(2) {grid-column:4/7;grid-row:1;border-left:1px solid #ffffff1c}
  body.statistics-page .overview-metric:nth-child(3) {grid-column:1/3;grid-row:2;padding-left:0;border-top:1px solid #ffffff1c}
  body.statistics-page .overview-metric:nth-child(4) {grid-column:3/5;grid-row:2;border-top:1px solid #ffffff1c}
  body.statistics-page .overview-metric:nth-child(5) {grid-column:5/7;grid-row:2;border-top:1px solid #ffffff1c}
  body.statistics-page .overview-metric span {font-size:11px}
  body.statistics-page .overview-metric strong {font-size:19px}
  body.statistics-page .overview-metric-primary strong {font-size:29px}
  body.statistics-page .overview-rank-panel {padding:9px 12px 10px;border-left:0;border-top:1px solid #72806470}
  body.statistics-page .overview-rank-top strong {font-size:18px}
  body.statistics-page .overview-rank-next {margin-top:3px;font-size:11px}
  body.statistics-page .overview-rank-panel progress {margin-top:5px;height:5px}
}

/* Compact valuation heading and conditional unmarked inventory. */
body.statistics-page .valuation-title {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}
body.statistics-page .valuation-date {color:var(--dt-muted);font-size:13px;white-space:nowrap}
@media(min-width:1051px) {
  body.dt-tools .overview-metrics.no-unmarked {grid-template-columns:minmax(130px,1.25fr) repeat(3,minmax(0,1fr))}
}
@media(min-width:1001px) {
  body.statistics-page .price-grid.no-unmarked {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:701px) and (max-width:1050px) {
  body.dt-tools .overview-metrics.no-unmarked .overview-metric:nth-child(3) {grid-column:1/3}
  body.dt-tools .overview-metrics.no-unmarked .overview-metric:nth-child(4) {grid-column:3/5}
}
@media(max-width:1000px) {
  body.statistics-page .price-grid.no-unmarked article:last-child {grid-column:1/-1}
}
@media(max-width:700px) {
  body.statistics-page .overview-metrics.no-unmarked .overview-metric:nth-child(3) {grid-column:1/4}
  body.statistics-page .overview-metrics.no-unmarked .overview-metric:nth-child(4) {grid-column:4/7}
}

/* Tribal inventory shared by collection, statistics and deck builder. */
.tribe-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px;max-height:340px;overflow:auto;margin:10px 0}
.tribe-list>a,.tribe-list>button{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;text-decoration:none;color:var(--dt-text);border:1px solid var(--dt-line);border-radius:8px;padding:7px 10px!important;min-height:36px!important;text-align:left;font-size:13px!important;background:var(--dt-panel)}
.tribe-list span{overflow-wrap:anywhere}.tribe-list b{color:var(--dt-gold)}.tribe-list small{white-space:nowrap;color:var(--dt-muted);font-weight:400}.tribe-heading{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--dt-muted);margin-top:12px}
.tribe-panel{margin:12px 0}.tribe-panel summary{cursor:pointer}.tribe-list a:hover,.tribe-list button:hover{border-color:var(--dt-gold)}
@media(max-width:650px){.tribe-list{grid-template-columns:minmax(0,1fr)}.tribe-heading{flex-wrap:wrap}}

/* Shared shell for collection, statistics and scanner. */
@media(min-width:701px) {:root {scrollbar-gutter:stable both-edges;background:var(--dt-bg,#101814)}}
body.dt-tools {margin:0}
body.dt-tools > main {width:100%;max-width:1380px;margin:auto;padding:16px 24px 24px}
body.dt-tools.scanner-page #workspace > #scanner {margin-top:0}
body.dt-tools .dt-tools-header {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px 24px;min-height:64px;margin:0;padding:10px max(24px,calc((100% - 1332px)/2));border:0;border-bottom:1px solid var(--dt-line);background:#16221b}
body.dt-tools .dt-tools-brand {grid-column:1;justify-self:start;display:inline-flex;align-items:center;gap:10px;padding:0;color:var(--dt-text);text-decoration:none;font:20px/1.2 Georgia,serif;white-space:nowrap}
body.dt-tools .dt-tools-emblem {display:block;flex:none;width:54px;height:54px;object-fit:contain}
body.dt-tools .dt-tools-header .dt-nav {grid-column:2;justify-self:center;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0;flex:none}
body.dt-tools .dt-tools-header .dt-nav a {min-height:44px;padding:9px 12px;font:600 13px/1.3 var(--dt-font);border-radius:8px;white-space:nowrap}
body.dt-tools .dt-visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.dt-tools h1 {font-size:26px;margin:0;line-height:1.25}
body.dt-tools h2 {font-size:19px;margin:0 0 10px}
body.dt-tools :is(section,.tool-disclosure) {border-radius:10px}
body.dt-tools .tool-disclosure {padding:0 14px;border:1px solid var(--dt-line);background:var(--dt-panel);margin:10px 0}
body.dt-tools .tool-disclosure > summary {min-height:44px;padding:10px 0;cursor:pointer;color:var(--dt-gold);font-weight:600}
body.dt-tools > main > footer,body.dt-tools > footer {margin:14px 0 0;padding:10px 0;font-size:12px;color:var(--dt-muted)}
@media(max-width:1050px) {
  body.dt-tools .dt-tools-header {display:flex;flex-wrap:wrap;justify-content:center}
  body.dt-tools .dt-tools-brand {flex:1 0 100%}
  body.dt-tools .dt-tools-header .dt-nav {justify-content:center}
}
@media(max-width:700px) {
  body.dt-tools > main {padding:12px}
  body.dt-tools .dt-tools-header {padding:10px 12px;gap:8px}
  body.dt-tools .dt-tools-brand {gap:8px;font-size:clamp(13px,3.8vw,17px)}
  body.dt-tools .dt-tools-emblem {width:52px;height:52px}
  body.dt-tools .dt-tools-header .dt-nav {width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  body.dt-tools .dt-tools-header .dt-nav a {min-width:0;justify-content:center;padding:9px 2px;font-size:11px;letter-spacing:-.02em}
  body.dt-tools:is(.has-panel-nav,.panel-page) .dt-tools-header .dt-nav {grid-template-columns:repeat(5,minmax(0,1fr))}
  body.dt-tools:is(.has-panel-nav,.panel-page) .dt-tools-header .dt-nav a {padding-inline:1px;font-size:clamp(10px,2.8vw,11px);letter-spacing:-.04em}
}

body.dt-tools .dt-tools-header .dt-nav a[hidden] {display:none}

@media(max-width:900px){body.dt-tools .dt-nav .deck-desktop-link{display:none}}

/* One locally served face for every shell screen, including Cyrillic and digits. */
@font-face {
  font-family:"Dragon Inter";
  src:url("/ui-font.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
body.dt-tools {
  --dt-font:"Dragon Inter",Arial,sans-serif;
  font-family:var(--dt-font);
  font-size:15px;
  line-height:1.5;
  font-optical-sizing:auto;
  font-variant-numeric:lining-nums tabular-nums;
}
/* Legacy components contain font shorthands; keep only their size and line height. */
body.dt-tools,body.dt-tools * {font-family:var(--dt-font)!important}
body.dt-tools :is(h1,h2,h3,h4,.dt-tools-brand,.overview-rank-top strong) {
  font-weight:600;
  line-height:1.3;
  letter-spacing:normal;
}
body.dt-tools .dt-tools-brand {font-weight:600;letter-spacing:normal}
body.dt-tools :is(button,input,select,textarea) {letter-spacing:normal}
body.dt-tools :is(input,select,textarea) {font-size:16px}
body.dt-tools :is(p,li,.notice,.empty,.muted,.summary-note) {line-height:1.5}
body.dt-tools :is(.eyebrow,.prototype,.dialog-bar span) {letter-spacing:normal}
body.dt-tools .overview-metric-primary strong {letter-spacing:normal}
body.dt-tools .overview-rank-top strong {font-size:20px}
body.dt-tools :is(.overview-metric span,.overview-rank-top span,.overview-rank-next,.overview-rank-scale,
 .summary-note,.price-coverage,.price-state,.price-grid small,.price-grid article > span,
 .kind-summary,.stat-line,.rank-progress p,.price-filter-note,.filter-group-heading p,
 .origin-key,.filter-active,.added-filter-note,.card-meta,.lot-print small,.lot-print em,
 .lot-editor label,.lot-prices,.price-heading span,.price-quote,.price-quote small,
 .price-method,.detail-art .muted,.tile-sub,.catalog-price small,.copy-count) {font-size:13px;line-height:1.45}
body.dt-tools .card-tile h3 {font-size:14px;line-height:1.4;font-weight:600}
body.dt-tools .catalog-price {font-size:14px;line-height:1.45}
body.dt-tools .overview-rank-next b {font-size:14px}
body.dt-tools .dt-tools-header .dt-nav a {font-size:14px;letter-spacing:normal}
body.dt-tools :is(.collection-tools button,#toggle-filters,#reset-filters,.text-disclosure,.edit-print,.lot-save) {font-size:13px}
@media(max-width:700px) {
  body.dt-tools .dt-tools-brand {font-size:18px}
  body.dt-tools .dt-tools-header .dt-nav a {font-size:12px;letter-spacing:normal}
  body.dt-tools .overview-rank-top strong {font-size:18px}
  body.dt-tools .menu-card {font-size:14px}
}
@media(max-width:360px) {
  body.dt-tools .dt-tools-header .dt-nav a {font-size:11px}
  body.dt-tools .menu-card {font-size:13px}
}
/* Small screens share one legible navigation size; links divide space by text width. */
@media(max-width:700px) {
  body.dt-tools .dt-tools-header .dt-nav {display:flex;flex-wrap:nowrap;gap:3px}
  body.dt-tools .dt-tools-header .dt-nav a,
  body.dt-tools:is(.has-panel-nav,.panel-page) .dt-tools-header .dt-nav a {
    flex:1 1 auto;padding:9px 2px;font-size:12px;letter-spacing:normal;
  }
}
body.dt-tools .results-line label {font-size:13px}
body.dt-tools #card-dialog .dialog-bar span {font-size:13px;letter-spacing:normal}
body.dt-tools #card-detail .lot-editor :is(input,select) {font-size:16px}
body.dt-tools #card-detail :is(.lot-editor label,.lot-print b,.lot-print small,.lot-print em,.lot-prices,.price-heading span,.price-quote small,.price-method,.detail-art .muted) {font-size:13px;line-height:1.45}
