/* Card research workspace. Scoped to valuation: inventory retains its palette. */
.valuation-page {
  color-scheme: dark;
  --bg: #07121f; --bg-deep: #050e18; --surface: #0b1b2b; --surface-alt: #10263a;
  --text: #edf6fa; --text-secondary: #b4cbd8; --text-muted: #9ab4c5;
  --border: #244354; --border-strong: #366477; --accent: #65e5d5; --accent-hover: #9cf5e9;
  --accent-light: #15333e; --accent-subtle: #102a36; --green: #7ce3bc; --green-light: #123930;
  --red: #ff9bab; --red-light: #381f30; --orange: #edda9a; --orange-light: #302d21;
  --radius: 3px; --radius-sm: 3px; --radius-lg: 4px;
  background: var(--bg); color: var(--text); font-family: 'Space Grotesk',system-ui,sans-serif;
}
.valuation-page *, .valuation-page *::before, .valuation-page *::after { box-sizing: border-box; }
.valuation-page .page-shell { max-width: 1440px; padding: 0 20px; }
.valuation-page .topbar { background: #07121ff5; border-bottom: 1px solid var(--border-strong); backdrop-filter: none; }
.valuation-page .topbar-inner { max-width: 1440px; min-height: 56px; padding: 4px 20px; gap: 16px; }
.valuation-page .logo-mark { background: transparent; transform: none; border-radius: 3px; width: 34px; height: 36px; color: var(--accent); }
.valuation-page .logo-name { color: var(--text); font-size: 18px; letter-spacing: -.5px; }
.valuation-page .logo-by { display: none; }
.valuation-page .topbar-account-link { color: var(--text-secondary); border-radius: 3px; }
.valuation-page .currency-select, .valuation-page .lang-btn { background: var(--surface); border-color: var(--border); color: var(--text); border-radius: 3px; min-height: 44px; }
.valuation-page .lang-dropdown { background: var(--surface); }
.valuation-page .lang-option:hover { background: var(--surface-alt); }
.valuation-page .hero-compact { display: block; padding: 38px 0 24px; }
.valuation-page .hero-compact .hero-title { font-size: clamp(32px,5vw,58px); max-width: 800px; letter-spacing: -.05em; }
.valuation-page .qv-card-scene { display: none; }
.valuation-page .qv-intro { color: var(--text-secondary); max-width: 680px; }
.valuation-page .qv-eyebrow { font-size: 12px; }
.valuation-page .search-section { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 20px; box-shadow: none; }
.valuation-page .path-card-scan { border-radius: 3px; background: #102b38; border-color: var(--border-strong); }
.valuation-page .path-card-scan:hover { transform: none; background: #163645; }
.valuation-page .path-body strong, .valuation-page .path-arrow { color: var(--accent); }
.valuation-page .path-icon { background: transparent; color: var(--accent); border-radius: 3px; }
.valuation-page .field-label { color: var(--text-secondary); }
.valuation-page input[type=text], .valuation-page input[type=search], .valuation-page .search-form input[type=text], .valuation-page .search-form select, .valuation-page select { background: #081726; color: var(--text); border: 1px solid var(--border-strong); border-radius: 3px; }
.valuation-page input::placeholder { color: var(--text-muted); }
.valuation-page .qv-search-filters { border-color: var(--border); background: var(--surface); border-radius: 3px; }
.valuation-page .qv-search-filters summary { color: var(--text); }
.valuation-page .btn, .valuation-page .btn-icon, .valuation-page .action-btn, .valuation-page .reopen-search { border-radius: 3px; background: var(--surface-alt); color: var(--accent); border: 1px solid var(--border-strong); box-shadow: none; }
.valuation-page .btn-primary { background: var(--accent); border-color: var(--accent); color: #062125; }
.valuation-page :is(button,a,input,select,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.valuation-page.results-mode .search-section { margin: 12px 0; padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; display: flex; flex-direction: column; }
.valuation-page.results-mode .selected-banner { order: -1; background: transparent; border: 0; border-radius: 0; padding: 0 0 12px; margin: 0; gap: 14px; min-height: 0; display: flex; flex-direction: row; align-items: center; text-align: left; }
.valuation-page.results-mode .selected-visual { width: 48px; min-width: 48px; min-height: 0; display: block; }
.valuation-page.results-mode .selected-thumb { width: 48px; height: 67px; object-fit: contain; border-radius: 2px; box-shadow: none; }
.valuation-page.results-mode .selected-info { align-items: flex-start; flex: 1; min-width: 0; width: auto; gap: 3px; }
.valuation-page.results-mode #selected-card-label { font-size: clamp(17px,2vw,25px); line-height: 1.2; letter-spacing: -.35px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
.valuation-page .selected-eyebrow { display: none; }
.valuation-page.results-mode .selected-set, .valuation-page .selected-meta { font-size: 12px; color: var(--text-secondary); line-height: 1.35; white-space: normal; }
.valuation-page.results-mode #clear-selection-btn { display: none; }
.valuation-page #detail-tools-toggle { display: none; flex: 0 0 44px; width: 44px; height: 44px; font-size: 24px; align-self: center; }
.valuation-page.results-mode #detail-tools-toggle { display: inline-flex; align-items: center; justify-content: center; }
.valuation-page.results-mode #card-tools { display: none; }
.valuation-page.results-mode .tools-open #card-tools { display: block; padding: 16px 0; }
.valuation-page.results-mode .tools-open .qv-search-filters { display: block; }
.valuation-page.results-mode .tools-open .qv-search-filters .field-row { display: grid; }
.valuation-page.results-mode .tools-open #card-tools .qv-search-filters .field-row { display: grid; }
.valuation-page.results-mode .status-bar { margin: 0; padding: 0; background: transparent; min-height: 0; font-size: 12px; color: var(--text-muted); }
.valuation-page.results-mode .status-bar:empty { display: none; }
.valuation-page .results-section { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 12px 18px; align-items: start; }
.valuation-page #raw-panel { grid-column: 1; grid-row: 1; }
.valuation-page #grade-matrix-panel { grid-column: 2; grid-row: 1 / span 6; padding: 0; }
.valuation-page #source-status { grid-column: 1; grid-row: 2; }
.valuation-page #summary-panel { grid-column: 1; grid-row: 3; }
.valuation-page .results-grid { grid-column: 1; grid-row: 4; display: grid; grid-template-columns: 1fr; gap: 10px; }
.valuation-page #history-panel { grid-column: 1; grid-row: 5; }
.valuation-page #market-loading { grid-column: 1; grid-row: 6; }
.valuation-page .results-section.valuation-pending > :not(.market-loading) { display: revert !important; }
.valuation-page .results-section.valuation-pending > [hidden] { display: none !important; }
.valuation-page .card { min-width: 0; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); box-shadow: none; overflow: visible; }
.valuation-page :is(#raw-panel,#summary-panel,#ebay-panel,#offers-panel,#history-panel) { padding: 0; }
.valuation-page .topbar .currency-select { width: 92px; height: 44px; min-height: 44px; padding: 4px 8px; }
.valuation-page .topbar .lang-btn { height: 44px; min-height: 44px; }
.valuation-page .topbar-account-link { white-space: nowrap; width: auto; }
.valuation-page .detail-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px 9px; border-bottom: 1px solid var(--border); }
.valuation-page .detail-panel-head h2 { font-size: 20px; line-height: 1.2; font-weight: 600; margin: 0; letter-spacing: -.45px; }
.valuation-page .detail-panel-head > span { font-size: 12px; white-space: nowrap; color: var(--text-secondary); }
.valuation-page .detail-context { font-size: 12px; margin: 9px 14px; color: var(--text-secondary); line-height: 1.4; }
.valuation-page .raw-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 8px; }
.valuation-page .raw-source { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text-secondary); padding: 8px 10px; text-align: left; min-width: 0; font-size: 12px; line-height: 1.3; }
.valuation-page .raw-source:first-child { border-left: 0; }
.valuation-page .raw-source:hover { background: #12303c; }
.valuation-page .raw-source-name { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.valuation-page .raw-source-price { font-size: clamp(16px,1.9vw,25px); color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.7px; white-space: nowrap; }
.valuation-page .raw-source time { color: var(--text-muted); }
.valuation-page .detail-footnote, .valuation-page .grade-source-note { color: var(--text-muted); font-size: 12px; line-height: 1.45; margin: 10px 14px; }
.valuation-page .detail-grade-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; margin: 0; }
.valuation-page .detail-grade-table .vote-col { width: 64px; }
.valuation-page .detail-grade-table th, .valuation-page .detail-grade-table td { border-bottom: 1px solid var(--border); border-right: 1px solid #25435380; padding: 0; text-align: right; vertical-align: middle; }
.valuation-page .detail-grade-table th:last-child, .valuation-page .detail-grade-table td:last-child { border-right: 0; }
.valuation-page .detail-grade-table thead th { padding: 10px 10px; background: #102b3a; color: #c9e6ed; font-size: 13px; font-weight: 500; text-align: center; }
.valuation-page .detail-grade-table tbody th { padding: 7px 10px; color: var(--text-secondary); text-align: left; font-weight: 500; }
.valuation-page .detail-grade-table tbody tr:nth-child(odd) { background: #10263770; }
.valuation-page .detail-grade-table tbody th small { display: block; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.valuation-page .detail-grade-table .not-supported, .valuation-page .detail-grade-table .detail-missing { padding: 7px 12px; text-align: center; color: var(--text-muted); }
.valuation-page .grade-price-button { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; width: 100%; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.valuation-page .grade-price-button:hover { background: #1c3c4c; }
.valuation-page .grade-price-button strong { white-space: nowrap; letter-spacing: -.25px; font-weight: 500; }
.valuation-page .grade-price-button > span { font-size: 12px; line-height: 1.2; color: var(--accent); }
.valuation-page .detail-grade-table .is-selected { box-shadow: inset 0 0 0 1px var(--accent); background: #163743; }
.valuation-page .detail-grade-table .is-global .grade-price-button > span { color: #b4cbd8; }
.valuation-page .detail-matrix-modes { display: flex; gap: 4px; padding: 6px 10px 0; }
.valuation-page .detail-matrix-modes button { flex: 1; min-height: 44px; border: 1px solid transparent; border-bottom-color: var(--border); border-radius: 2px; background: transparent; color: var(--text-secondary); font-size: 12px; }
.valuation-page .detail-matrix-modes button[aria-pressed=true] { border-bottom-color: var(--accent); color: var(--accent); background: #102b36; }
.valuation-page .detail-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 12px 14px 0; color: var(--text-secondary); font-size: 12px; }
.valuation-page .detail-legend b { color: var(--accent); font-weight: 500; }
.valuation-page .detail-disclosure > summary { min-height: 48px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); font-size: 14px; list-style: none; cursor: pointer; border-radius: 3px; }
.valuation-page .detail-disclosure > summary::-webkit-details-marker { display: none; }
.valuation-page .detail-disclosure > summary::after { content: '+'; color: var(--accent); font-size: 20px; }
.valuation-page .detail-disclosure[open] > summary::after { content: '−'; }
.valuation-page .detail-disclosure[open] > summary { border-bottom: 1px solid var(--border); }
.valuation-page .detail-disclosure > p, .valuation-page .grade-guide-list { padding: 0 14px; font-size: 12px; color: var(--text-secondary); }
.valuation-page .grade-guide-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.valuation-page .grade-guide-list dd { margin: 0; text-align: right; }
.valuation-page .source-status { margin: 0; gap: 6px; }
.valuation-page .source-status span { background: transparent; border-color: var(--border); color: var(--text-secondary); border-radius: 3px; font-size: 12px; }
.valuation-page .card-header { background: transparent; padding: 12px 14px; }
.valuation-page :is(#summary-content,#ebay-content,#offers-content,#history-content) { padding: 14px; }
.valuation-page :is(.dash-hero,.metric-card,.trend-card,.market-raw-reference,.market-offer-card,.offer-card,.ebay-item,.ebay-card,.graded-comparison-card,.comparison-raw-reference,.graded-comparison-table,.empty-state-card,.price-coverage,.history-chart,.history-empty) { background: var(--surface); border-color: var(--border); color: var(--text); border-radius: 3px; box-shadow: none; }
.valuation-page :is(.graded-comparison-table th,.graded-comparison-table td,.graded-comparison-table tbody tr,.graded-comparison-table tbody tr:nth-child(even),.comparison-observations ul,.comparison-more,.graded-comparison-notice) { background: transparent; border-color: var(--border); color: var(--text-secondary); }
.valuation-page :is(.graded-comparison-head h3,.comparison-price,.comparison-company,.comparison-language,.comparison-kind,.comparison-observations summary,.comparison-more summary) { color: var(--text); }
.valuation-page :is(.filter-chip,.market-observed-tags span,.listing-language-tag,.comparison-kind,.graded-comparison-count) { background: #15343d; color: #9af3d4; border-color: var(--border); border-radius: 3px; }
.valuation-page .graded-comparison-notice { background: #112836; }
.valuation-page .graded-comparison-head { padding: 12px; }
.valuation-page .graded-comparison-table { font-size: 12px; }
.valuation-page .graded-comparison-scroll { overflow-x: auto; max-width: 100%; }
.valuation-page .dash-hero-price { color: var(--text); font-size: 28px; }
.valuation-page .price-evidence, .valuation-page .metric-note { color: var(--text-secondary); }
.valuation-page .dash-actions { flex-wrap: wrap; }
.valuation-page .dash-actions > * { font-size: 12px; }
.valuation-page .bottom-nav { background: #091b2bf5; border-top: 1px solid var(--border); box-shadow: none; }
.valuation-page .bottom-nav a { color: var(--text-secondary); font-size: 12px; }
.valuation-page .bottom-nav a.active { color: var(--accent); }
.valuation-page .site-footer { color: var(--text-muted); border-color: var(--border); font-size: 12px; }
.valuation-page .site-footer p { font-size: 12px; }
.valuation-page :is(.preview-overlay-inner,.scan-inner,.scan-results-popup-card,.preview-card,.inline-preview-item) { background: var(--surface); color: var(--text); border-color: var(--border); border-radius: 4px; }
/* Keep scanner choices on dark surfaces when the page uses light text. */
.valuation-page :is(.scan-result,.scan-mode-btn) { background: var(--surface-alt); color: var(--text); border-color: var(--border); border-radius: 4px; }
.valuation-page .scan-result:hover, .valuation-page .scan-mode-btn.active { background: var(--accent-light); border-color: var(--accent); }
.valuation-page .scan-mode-btn.active { color: var(--accent); }
.valuation-page .inline-preview { background: var(--surface); }
.valuation-page #price-detail-dialog { width: min(540px,calc(100% - 24px)); max-height: calc(100dvh - 40px); padding: 0; background: #0b1b2b; color: var(--text); border: 1px solid var(--border-strong); border-radius: 4px; overflow-y: auto; }
.valuation-page #price-detail-dialog::backdrop { background: #020912c9; }
.valuation-page .detail-dialog-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--border); background: #0b1b2b; font-size: 12px; color: var(--text-muted); }
.valuation-page .detail-dialog-head button { width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--text); font-size: 20px; }
.valuation-page #price-detail-body { padding: 16px; font-size: 14px; overflow-wrap: anywhere; }
.valuation-page #price-detail-body h2 { font-size: 21px; margin: 0 0 12px; }
.valuation-page #price-detail-body h3 { font-size: 16px; }
.valuation-page .detail-dialog-price { font-size: 28px; font-variant-numeric: tabular-nums; }
.valuation-page .detail-proof-list { list-style: none; padding: 0; margin: 0; }
.valuation-page .detail-proof-list li { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.valuation-page .detail-proof-list span { font-size: 12px; color: var(--text-secondary); }
.valuation-page .detail-proof-list a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .valuation-page .results-section { grid-template-columns: 1fr; gap: 10px; }
  .valuation-page #raw-panel { grid-column: 1; grid-row: 1; }
  .valuation-page #grade-matrix-panel { grid-column: 1; grid-row: 2; }
  .valuation-page #source-status { grid-row: 3; }
  .valuation-page #summary-panel { grid-row: 4; }
  .valuation-page .results-grid { grid-row: 5; }
  .valuation-page #history-panel { grid-row: 6; }
  .valuation-page #market-loading { grid-row: 7; }
  .valuation-page .topbar-account-link { display: none; }
}
@media (max-width: 600px) {
  .valuation-page .page-shell { padding: 0 10px; }
  .valuation-page .topbar-inner { min-height: 48px; padding: 2px 10px; gap: 8px; }
  .valuation-page .logo { gap: 7px; }
  .valuation-page .logo-mark { width: 29px; height: 30px; font-size: 14px; }
  .valuation-page .logo-name { font-size: 15px; letter-spacing: -.5px; }
  .valuation-page .topbar-right { gap: 4px; }
  .valuation-page .currency-select { width: 70px; padding: 4px; font-size: 12px; }
  .valuation-page .lang-btn { width: 44px; padding: 4px; font-size: 18px; }
  .valuation-page.results-mode .search-section { margin: 7px 0; }
  .valuation-page.results-mode .selected-banner { gap: 9px; padding-bottom: 6px; }
  .valuation-page.results-mode .selected-visual { min-width: 34px; width: 34px; }
  .valuation-page.results-mode .selected-thumb { width: 34px; height: 48px; }
  .valuation-page.results-mode #selected-card-label { font-size: 15px; line-height: 1.17; }
  .valuation-page.results-mode .selected-set, .valuation-page .selected-meta { font-size: 12px; line-height: 1.2; }
  .valuation-page.results-mode .status-bar { display: none; }
  .valuation-page.results-mode .status-bar:has(a) { display: block; padding: 8px 0; }
  .valuation-page .detail-panel-head { padding: 10px 10px 8px; }
  .valuation-page .detail-panel-head h2 { font-size: 18px; }
  .valuation-page .detail-context { margin: 7px 10px; }
  .valuation-page .raw-strip { margin: 0 4px; }
  .valuation-page .raw-source { padding: 7px 6px; gap: 5px; }
  .valuation-page .raw-source-price { font-size: 17px; letter-spacing: -.6px; }
  .valuation-page .detail-footnote, .valuation-page .grade-source-note { margin: 8px 10px; }
  .valuation-page .detail-grade-table { font-size: 12px; }
  .valuation-page .detail-grade-table .vote-col { width: 40px; }
  .valuation-page .detail-grade-table thead th { font-size: 12px; padding: 8px 3px; }
  .valuation-page .detail-grade-table tbody th { padding: 5px; font-size: 12px; }
  .valuation-page .detail-grade-table :is(.not-supported,.detail-missing) { padding: 6px 3px; }
  .valuation-page .grade-price-button { font-size: 12px; padding: 4px 4px; }
  .valuation-page .detail-grade-table tbody th small { font-size: 12px; line-height: 1.2; }
  .valuation-page .grade-price-button strong { letter-spacing: -.35px; }
  .valuation-page .detail-legend { padding: 10px; gap: 7px 12px; }
  .valuation-page .raw-strip.has-long-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .valuation-page .raw-strip.has-long-values .raw-source:nth-child(3) { border-left: 0; }
  .valuation-page .raw-strip.has-long-values .raw-source:nth-child(n+3) { border-top: 1px solid var(--border); }
  .valuation-page .grade-matrix-panel .graded-comparison-table { min-width: 0; }
  .valuation-page .graded-comparison-table :is(td,th) { overflow-wrap: anywhere; padding: 8px 5px; }
  .valuation-page .graded-comparison-table small { font-size: 12px; }
  .valuation-page .market-loading { display: none !important; }
}
@media (max-width: 374px) {
  .valuation-page .raw-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .valuation-page .raw-source:nth-child(3) { border-left: 0; }
  .valuation-page .raw-source:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.valuation-page.results-mode .search-section.collapsed .selected-banner { background: transparent; border: 0; border-radius: 0; padding: 0 0 10px; margin: 0; gap: 12px; }
.valuation-page.results-mode .search-section.collapsed .selected-visual { width: 48px; min-width: 48px; min-height: 0; }
.valuation-page.results-mode .search-section.collapsed .selected-thumb { width: 48px; height: 67px; background: transparent; }
.valuation-page.results-mode .search-section.collapsed .selected-info { align-items: flex-start; width: auto; }
.valuation-page.results-mode .search-section.collapsed .selected-set { color: var(--text-secondary); }
.valuation-page .appnav { background: #0b1b2bf5; border-color: var(--border); box-shadow: none; grid-template-columns: repeat(4,minmax(0,1fr)); }
.valuation-page .appnav-item { color: var(--text-secondary); font-size: 12px; }
.valuation-page .appnav-item.active { color: var(--accent); }
.valuation-page .appnav-fab { background: #12373e; border: 1px solid var(--border-strong); color: var(--accent); box-shadow: none; border-radius: 3px; width: 48px; height: 48px; }
@media (max-width: 600px) {
  .valuation-page.results-mode .search-section.collapsed .selected-banner { padding-bottom: 6px; gap: 9px; }
  .valuation-page.results-mode .search-section.collapsed .selected-visual { width: 34px; min-width: 34px; }
  .valuation-page.results-mode .search-section.collapsed .selected-thumb { width: 34px; height: 48px; }
  .valuation-page.results-mode .search-section.collapsed .status-bar { display: none; }
  .valuation-page.results-mode .search-section.collapsed .status-bar:has(a) { display: block; }
}
@media (prefers-reduced-motion: reduce) { .valuation-page * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Color supports provenance. Labels remain readable without color perception. */
.valuation-page {
  --sold-color: #79e7bc; --asking-color: #91c8ff; --estimate-color: #ffe08a; --global-color: #c7afff;
  background: radial-gradient(ellipse at 95% 0%,#19203e 0,transparent 38%),#07121f;
}
.valuation-page .topbar { border-bottom-color: #536894; }
.valuation-page .topbar .logo-mark { color: #ffe08a; border-color: #ffe08a; background: #252639; }
.valuation-page.results-mode .selected-banner { border-left: 3px solid #a98eff; padding-left: 9px; }
.valuation-page.results-mode .search-section.collapsed .selected-banner { border-left: 3px solid #a98eff; padding-left: 9px; }
.valuation-page .selected-meta { color: #9fd9e8; }
.valuation-page .detail-panel-head { background: linear-gradient(100deg,#102e3e,#17213a); border-bottom-color: #38536c; }
.valuation-page #grade-matrix-panel .detail-panel-head { background: linear-gradient(100deg,#242b49,#132c3c); }
.valuation-page .raw-source { --source-color: #65e5d5; position: relative; border-top: 2px solid var(--source-color); background: #12323a40; }
.valuation-page .raw-source[data-raw-source=ebay] { --source-color: #c7afff; background: #28254255; }
.valuation-page .raw-source[data-raw-source=tcg] { --source-color: #91c8ff; background: #192f4c55; }
.valuation-page .raw-source[data-raw-source=ct] { --source-color: #ffe08a; background: #39332344; }
.valuation-page .raw-source-name { color: var(--source-color); }
.valuation-page .source-name-short { display: none; text-decoration: none; }
.valuation-page .raw-source time { margin-top: auto; }
.valuation-page .raw-source:hover { background: #22364c; }
.valuation-page .raw-quote-kind { font-weight: 500; }
.valuation-page .detail-grade-table [data-kind=sold-observed], .valuation-page .detail-legend [data-kind=sold-observed] { --kind-color: var(--sold-color); --kind-bg: #123b35; }
.valuation-page .detail-grade-table [data-kind=asking-observed], .valuation-page .detail-legend [data-kind=asking-observed] { --kind-color: var(--asking-color); --kind-bg: #142e49; }
.valuation-page .detail-grade-table [data-kind=estimated], .valuation-page .detail-legend [data-kind=estimated] { --kind-color: var(--estimate-color); --kind-bg: #302e24; }
.valuation-page .detail-grade-table [data-kind=global], .valuation-page .detail-legend [data-kind=global] { --kind-color: var(--global-color); --kind-bg: #29243d; }
.valuation-page .detail-grade-table td[data-kind] { background: var(--kind-bg); }
.valuation-page .detail-grade-table td[data-kind] .grade-price-button > span { color: var(--kind-color); }
.valuation-page .detail-grade-table td[data-kind] .grade-price-button strong { color: #f5f8ff; }
.valuation-page .detail-price-legend { padding: 0 10px 8px; gap: 6px 10px; }
.valuation-page .detail-price-legend > span { color: var(--kind-color); background: var(--kind-bg); padding: 3px 7px; border-radius: 3px; }
.valuation-page .detail-price-legend b { color: inherit; }
.valuation-page .detail-missing-legend { font-size: 12px; padding: 8px 10px 0; }
.valuation-page .detail-grade-table thead th:nth-child(2) { color: #ffb3c6; border-bottom: 2px solid #b96d8d; }
.valuation-page .detail-grade-table thead th:nth-child(3) { color: #a9cfff; border-bottom: 2px solid #5a90c2; }
.valuation-page .detail-grade-table thead th:nth-child(4) { color: #92e9d1; border-bottom: 2px solid #4a9f8c; }
.valuation-page .detail-grade-table thead th:nth-child(5) { color: #ffe49a; border-bottom: 2px solid #ae994f; }
.valuation-page .detail-rows-toggle { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--border); background: #18263f; color: #bcceff; border-radius: 0; font-size: 12px; cursor: pointer; }
.valuation-page .detail-rows-toggle:hover { background: #233757; }
.valuation-page .detail-grade-table .is-selected { box-shadow: inset 0 0 0 2px #a5f5df; }
.valuation-page .appnav-fab { color: #f4edff; background: #44386c; border-color: #a88bdb; }
.valuation-page .sealed-scan-entry { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 14px; margin: 10px 0; border: 1px solid #718d73; border-radius: 3px; color: #c8ecb7; background: #172a29; font-size: 14px; text-decoration: none; }
.valuation-page.results-mode .sealed-scan-entry { display: none; }
.valuation-page a.scan-mode-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.valuation-page .appnav-fab { justify-self: center; }
.valuation-page .detail-disclosure > summary::after { color: #b9a7ef; }
.valuation-page .source-status-item[data-state=partial] { border-color: #8b7a46; }
@media (max-width: 600px) {
  .valuation-page .raw-source { padding: 6px; gap: 3px; }
  .valuation-page .source-name-full { display: none; }
  .valuation-page .source-name-short { display: inline; }
  .valuation-page .detail-context { line-height: 1.3; }
  .valuation-page .raw-source-price { font-size: 19px; }
  .valuation-page .raw-strip.has-long-values .raw-source:nth-child(n+3) { border-top: 2px solid var(--source-color); }
}
@media (max-width: 374px) {
  .valuation-page .raw-source:nth-child(n+3) { border-top: 2px solid var(--source-color); }
}

