/* Quanto Vale · shared interface, October 2026. Loaded after legacy component styles. */
:root {
  color-scheme: light;
  --bg: #f7f8f2; --bg-deep: #edf1f8; --surface: #fff; --surface-alt: #f5f7fb;
  --text: #152443; --text-secondary: #4b5d78; --text-muted: #5e6c83;
  --border: #dce3ed; --border-strong: #afc3ed;
  --accent: #2459d3; --accent-hover: #1744ad; --accent-light: #eaf0ff; --accent-subtle: #f0f4ff;
  --brand-1: #2459d3; --brand-2: #2459d3; --brand-3: #143982; --grad-brand: linear-gradient(110deg,#2459d3,#2459d3);
  --atlas-ink: #152443; --atlas-brass: #2459d3; --atlas-radar: #08745d; --atlas-hairline: #dce3ed;
  --green: #08745d; --green-light: #e6f6ef; --red: #b22f43; --red-light: #fff0f3;
  --orange: #746000; --orange-light: #fff8cd;
  --radius-lg: 24px; --radius: 16px; --radius-sm: 12px;
  --shadow-xs: 0 1px 2px #17345908; --shadow-sm: 0 4px 12px #17345908;
  --shadow: 0 12px 36px #17345908; --shadow-lg: 0 24px 60px #17345912; --shadow-accent: 0 6px 18px #2459d31a;
}
body { background: var(--bg); color: var(--text); overflow-x: visible; font-family: 'Space Grotesk',system-ui,sans-serif; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, .btn, .primary-btn, .ghost-btn, .account-nav-link, .topbar-account-link { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #2459d3; outline-offset: 3px; }
a { color: var(--accent); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 9999; padding: 12px 18px; border-radius: 10px; background: #fff; color: #152443; }
.skip-link:focus { top: 12px; }
.topbar, .account-topbar { background: #f7f8f2f5; border-bottom: 1px solid #15244315; box-shadow: none; backdrop-filter: blur(12px); }
.topbar::before { display: none; }
.topbar-inner, .account-topbar .topbar-inner { max-width: 1240px; min-height: 76px; height: auto; padding: 12px 28px; gap: 20px; }
.logo { gap: 10px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 42px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 9px; color: var(--accent); background: #eef3ff; box-shadow: none; text-shadow: none; font-size: 17px; font-weight: 800; transform: rotate(-7deg); }
.logo-name { background: none; color: #152443; font-size: 21px; font-weight: 750; letter-spacing: -.8px; }
.logo-by { color: var(--text-muted); font-size: 10px; letter-spacing: 0; }
.topbar-right { gap: 8px; }
.topbar-account-link, .account-nav-link, .nav-btn { color: #40516e; background: transparent; border-color: transparent; border-radius: 10px; font-size: 13px; padding: 10px 12px; }
.topbar-account-link:hover, .account-nav-link:hover, .account-nav-link.is-active { color: var(--accent); background: var(--accent-light); border-color: transparent; }
.currency-select, .lang-btn { background: #f5f7fb; color: var(--text); border: 1px solid var(--border); min-height: 40px; }
.lang-dropdown { background: #fff; border-color: var(--border); box-shadow: var(--shadow-lg); }
.lang-option { color: var(--text); }
.lang-option:hover { background: var(--accent-light); }
.page-shell { max-width: 1184px; padding: 0 28px; margin: 0 auto; }
.valuation-page .hero-compact { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; text-align: left; padding: 44px 0 34px; margin: 0; background: none; }
.qv-eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.valuation-page .hero-compact .hero-title { color: var(--text); font-size: clamp(40px,5.6vw,76px); line-height: .99; letter-spacing: -.075em; font-weight: 600; margin: 0; max-width: 590px; }
.qv-intro { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin: 18px 0 0; max-width: 510px; }
.qv-method { display: grid; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 8px 22px; }
.qv-method div { display: grid; grid-template-columns: 32px 1fr; gap: 0 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.qv-method div:last-child { border-bottom: 0; }
.qv-method b { grid-row: span 2; color: var(--accent); font-size: 13px; font-family: 'IBM Plex Mono',monospace; }
.qv-method strong { color: var(--text); font-size: 14px; }
.qv-method span { color: var(--text-secondary); font-size: 12px; margin-top: 4px; }
.valuation-page .search-section { margin: 0 0 28px; max-width: none; padding: 28px; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: visible; }
.card::before, .card::after, .search-section::before, .search-section::after, .grade-matrix-card::before, .grade-matrix-card::after { display: none; }
.qv-section-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.qv-section-heading span { color: var(--accent); font-family: 'IBM Plex Mono',monospace; font-size: 12px; }
.qv-section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.valuation-page .path-grid { margin: 0; }
.valuation-page .path-card-scan { background: #182843; border: 1px solid #182843; box-shadow: none; border-radius: 16px; padding: 20px 22px; color: #fff; transition: transform .2s,background .2s; }
.valuation-page .path-card-scan:hover { background: #243b61; transform: translateY(-2px); }
.valuation-page .path-body strong { font-size: 18px; color: #f0fa77; }
.valuation-page .path-body small { color: #d5deec; font-size: 13px; line-height: 1.6; }
.path-icon { background: #f0fa77; color: #182843; border: 0; border-radius: 12px; padding: 10px; flex: 0 0 auto; display: grid; place-items: center; }
.path-icon svg { width: 28px; height: 28px; }
.path-arrow { font-size: 24px; color: #f0fa77; }
.valuation-page .path-divider { margin: 22px 0; font-size: 12px; }
.valuation-page .field-row { gap: 16px; margin-bottom: 18px; }
.field-label, .valuation-page .field-label { color: #4b5d78; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; margin-bottom: 7px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea, .search-form input[type=text], .search-form select, .valuation-page .search-form input[type=text], .valuation-page .search-form select { background: #fff; color: var(--text); border: 1px solid #cbd5e3; border-radius: 12px; min-height: 48px; font-size: 15px; padding: 12px 14px; }
input::placeholder, textarea::placeholder { color: #66768f; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #2459d31a; }
.btn-primary, .primary-btn, .valuation-page .btn-primary { background: #2459d3; color: #fff; border: 1px solid #2459d3; box-shadow: none; border-radius: 12px; min-height: 48px; font-size: 14px; }
.btn-primary:hover, .primary-btn:hover { background: #1744ad; filter: none; }
.btn-ghost, .ghost-btn, .btn-icon, .action-btn, .history-load-btn { background: #fff; color: #2459d3; border: 1px solid #cbd5e3; box-shadow: none; border-radius: 12px; }
.status-bar { border: 0; background: #f5f7fb; color: #4b5d78; padding: 12px 16px; border-radius: 10px; font-size: 13px; }
.selected-banner { background: #f0f5ff; border: 1px solid #cbd9fc; padding: 16px; border-radius: 14px; }
.valuation-page .selected-banner, .valuation-page.results-mode .selected-banner { background: #f0f5ff; color: var(--text); border: 1px solid #cbd9fc; min-height: 0; padding: 16px; box-shadow: none; text-align: left; }
.valuation-page .selected-banner .selected-info { color: var(--text); text-align: left; }
.valuation-page .selected-banner .selected-set { color: var(--text-secondary); }
.valuation-page .selected-visual { background: transparent; box-shadow: none; }
.valuation-page .search-section.collapsed .selected-banner { background: #f0f5ff; flex-direction: row; text-align: left; }
.valuation-page .search-section.collapsed .selected-info { align-items: flex-start; }
.valuation-page .search-section.collapsed .selected-visual { width: 68px; min-height: 0; }
.valuation-page .search-section.collapsed .selected-thumb { width: 64px; height: 90px; }
.valuation-page .selected-visual:has(img:not([src])), .valuation-page .selected-visual:has(img[hidden]) { display: none; }
.valuation-page .selected-visual::before { display: none; }
.valuation-page .btn { min-height: 48px; height: auto; }
.valuation-page input[type=text], .valuation-page select { min-height: 48px; height: auto; }
.valuation-page .dash-hero { background: #edf3ff; border-color: #cbd9fc; }
.market-observed-tags span, .listing-language-tag { color: #08745d; background: #e6f6ef; }
.ebay-comparison-warning { color: #655200; }
.portfolio-add { color: #2459d3; background: #edf3ff; }
.portfolio-add:disabled { color: #52617a; }
.valuation-page.results-mode .qv-section-heading { display: none; }
.selected-eyebrow { color: var(--accent); }
.card { border-radius: 20px; box-shadow: none; border: 1px solid var(--border); overflow: hidden; }
.card-header { background: #fff; border-bottom-color: var(--border); padding: 18px 22px; }
.card-header h2 { color: var(--text); font-size: 17px; letter-spacing: -.3px; }
.card-subtitle { color: var(--text-secondary); }
.results-section { display: grid; gap: 18px; }
.results-section.valuation-pending > :not(.market-loading) { display: block !important; }
.results-section.valuation-pending > [hidden] { display: none !important; }
.results-section.valuation-pending > .results-grid { display: grid !important; }
.source-status { display: flex; flex-wrap: wrap; gap: 10px; }
.source-status-item { display: flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: 12px; background: #fff; border: 1px solid var(--border); border-radius: 30px; color: var(--text-secondary); }
.source-status-item i { width: 7px; height: 7px; border-radius: 50%; background: #7b8ca8; }
.source-status-item[data-state=success] i { background: #08745d; }
.source-status-item[data-state=failure] i { background: #b22f43; }
.source-status-item[data-state=pending] i { background: #2459d3; animation: qv-pulse 1.5s ease-in-out infinite; }
.market-loading { padding: 16px 20px; min-height: 0; gap: 14px; border: 1px solid #dce3ed; border-radius: 16px; background: #eef3ff; }
.market-loading-card { display: none; }
.market-loading-fact { min-height: 0; font-size: 13px; font-weight: 400; line-height: 1.6; color: #4b5d78; margin: 0; }
.market-loading-label { color: #2459d3; font-size: 10px; }
.market-loading-sources { display: none; }
.price-evidence { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: #52617a; margin-bottom: 16px; line-height: 1.6; }
.evidence-kind { color: #2459d3; font-weight: 700; }
.dash-hero { background: #edf3ff; border: 1px solid #cbd9fc; border-radius: 16px; padding: 26px; }
.dash-hero-price { color: #163c95; text-shadow: none; font-size: clamp(28px,4vw,46px); letter-spacing: -.06em; }
.dash-hero-tag, .dash-hero-sub, .dash-reference-disclaimer, .spread-label, .spread-sub { color: #40516e; }
.dash-hero-tag { font-size: 11px; letter-spacing: .06em; }
.dash-hero-price.is-empty { font-size: 22px; }
.dash-hero.is-prediction { background: #f5f3ff; border-color: #dcd5f1; }
.filter-chip { color: #354967; background: #fff; border-color: #d4deee; }
.metric-card, .metric-card.accent-card, .metric-card.ebay-card, .metric-card.tcg-card { background: #fff; border: 1px solid var(--border); box-shadow: none; border-radius: 14px; }
.metric-value, .spread-val, .offer-price, .ebay-price-eur { color: #15356d; }
.metric-label, .metric-note, .metric-source { color: var(--text-secondary); }
.grade-cell-price, .grade-cell-status, .grade-cell-source { color: #08745d; }
.is-predicted .grade-cell-price, .is-predicted .grade-cell-status, .is-predicted .grade-cell-source, .grade-cell-range { color: #655090; }
.grade-matrix-table td.is-available { background: #edf9f3; }
.grade-matrix-table td.is-predicted { background: #f5f3ff; }
.grade-matrix-table td.is-not-applicable { background: #f0f2f6; }
.grade-cell-selected { background: #2459d3; color: #fff; }
.grade-cell-evidence { display: block; margin-top: 4px; color: #53627c; font-size: 11px; line-height: 1.5; }
.grade-table-touch-hint { display: none; margin: 0 16px 12px; font-size: 12px; color: #53627c; }
.valuation-page .grade-company-table { font-size: 13px; }
.valuation-page .grade-company-table .grade-cell-price { font-size: 17px; }
.valuation-page .grade-company-table .grade-cell-source { font-size: 11px; line-height: 1.55; }
.valuation-page .grade-company-table td { padding: 12px 10px; }
.grade-curve-details { margin-top: 12px; border-top: 1px solid var(--border); }
.graded-comparison-card { margin-top: 22px; background: #fff; border: 1px solid #ccd7ef; border-radius: 20px; overflow: hidden; }
.grade-matrix-panel > .graded-comparison-card:first-child { margin-top: 0; }
.graded-comparison-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px; background: #edf2ff; }
.graded-comparison-kicker { color: #3153ac; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.graded-comparison-head h3 { font-size: 24px; line-height: 1.18; letter-spacing: -.045em; margin: 7px 0; color: #182843; scroll-margin-top: 120px; }
.graded-comparison-head p { margin: 0; color: #52617a; font-size: 13px; line-height: 1.6; }
.graded-comparison-count { flex-shrink: 0; border: 1px solid #cbd6ef; border-radius: 30px; background: #fff; padding: 8px 12px; color: #3153ac; font-size: 12px; }
.graded-comparison-notice { padding: 14px 24px; margin: 0; background: #f9fbff; color: #40516e; line-height: 1.7; font-size: 12px; border-bottom: 1px solid #dce4f4; }
.graded-comparison-scroll { overflow-x: auto; }
.graded-comparison-scroll:focus-visible { outline: 2px solid #2459d3; outline-offset: -2px; }
.graded-comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.graded-comparison-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.graded-comparison-table thead th { padding: 14px 20px; background: #fff; color: #52617a; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.graded-comparison-table th:first-child { width: 21%; }
.graded-comparison-table th:nth-child(2) { width: 49%; }
.graded-comparison-table th:nth-child(3) { width: 30%; }
.graded-comparison-table tbody th, .graded-comparison-table td { padding: 18px 20px; border-top: 1px solid #e3e9f3; vertical-align: top; overflow-wrap: anywhere; }
.graded-comparison-table tbody th { background: #f8faff; }
.graded-comparison-table tbody th > strong { display: block; color: #182843; font-size: 24px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.comparison-company { color: #2459d3; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.comparison-price { display: block; font-size: 21px; letter-spacing: -.035em; color: #15356d; font-variant-numeric: tabular-nums; line-height: 1.4; }
.comparison-kind { display: inline-block; font-size: 10px; padding: 3px 7px; border-radius: 5px; background: #edf7f2; color: #17634f; margin-top: 7px; font-weight: 650; }
.comparison-kind.is-aggregate { background: #f0ebfa; color: #624789; }
.comparison-language { display: block; font-size: 14px; font-weight: 700; color: #243b62; line-height: 1.6; }
.unknown-language .comparison-language { color: #66728a; }
.graded-comparison-table small { display: block; font-size: 11px; color: #53627c; line-height: 1.6; margin-top: 5px; }
.graded-comparison-footer { padding: 17px 24px; border-top: 1px solid #dce4f4; color: #52617a; font-size: 12px; line-height: 1.7; }
.graded-comparison-footer > span { display: block; }
.graded-comparison-footer details { margin-top: 10px; }
.graded-comparison-footer summary { padding: 10px 0; cursor: pointer; color: #2459d3; font-weight: 700; }
.graded-comparison-footer li { margin: 8px 0; }
.graded-comparison-footer a { color: #2459d3; padding: 8px 0; display: inline-block; }
.graded-comparison-jump { display: block; padding: 16px; border-radius: 12px; background: #edf2ff; font-size: 13px; color: #2459d3; line-height: 1.6; text-decoration: none; margin: 16px 0; }
.comparison-more { border-top: 1px solid #ccd7ef; }
.comparison-more > summary { cursor: pointer; padding: 16px 20px; min-height: 48px; color: #2459d3; background: #eef3ff; font-size: 14px; font-weight: 750; }
.comparison-more > summary small { display: block; margin-top: 5px; font-size: 11px; font-weight: 400; color: #40516e; }
.comparison-collapse-label, .comparison-more[open] > summary .comparison-expand-label { display: none; }
.comparison-more[open] > summary .comparison-collapse-label { display: inline; }
.comparison-observations { margin-top: 6px; font-weight: 400; }
.comparison-observations summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: #2459d3; font-size: 12px; }
.comparison-observations ul { list-style: none; margin: 0; padding: 0; }
.comparison-observations li { padding: 12px 0; border-top: 1px solid #dce4f4; }
.comparison-observations a, .comparison-raw-reference a { display: inline-flex; align-items: center; min-height: 44px; color: #2459d3; font-size: 12px; font-weight: 650; }
.comparison-raw-reference { border-top: 3px solid #dce4f4; background: #f9fbff; }
.comparison-raw-reference p { padding: 0 20px 16px; margin: 0; font-size: 12px; line-height: 1.7; color: #40516e; }
.graded-comparison-card summary:focus-visible, .graded-comparison-card a:focus-visible { outline: 2px solid #2459d3; outline-offset: 2px; }
@media (max-width: 600px) {
  .grade-table-touch-hint { display: block; }
  .graded-comparison-head { padding: 20px 15px; flex-direction: column; gap: 12px; }
  .graded-comparison-head h3 { font-size: 23px; }
  .graded-comparison-notice, .graded-comparison-footer { padding: 14px 15px; }
  .graded-comparison-table thead th { padding: 12px 8px; font-size: 9px; }
  .graded-comparison-table tbody th, .graded-comparison-table td { padding: 14px 8px; }
  .graded-comparison-table th:first-child { width: 20%; }
  .graded-comparison-table th:nth-child(2) { width: 48%; }
  .graded-comparison-table th:nth-child(3) { width: 32%; }
  .comparison-price { font-size: 17px; }
  .comparison-language { font-size: 12px; }
  .graded-comparison-table small { font-size: 10px; }
}
.lang-tag, .grade-tag { background: #edf3ff; color: #2459d3; }
.trend-card, .trend-card.primary { background: #f5f7fb; }
.trend-value { color: #15356d; }
.scan-overlay, .preview-overlay { background: #15244399; backdrop-filter: blur(5px); }
.scan-inner, .preview-overlay-inner, .scan-results-popup-card { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); }
.scan-head h3, .scan-results-popup-head h3, .preview-header h3, .scan-result strong { color: var(--text); }
.scan-tip, .scan-status, .scan-results-popup-status, .scan-result small { color: var(--text-secondary); }
.scan-result { background: #fff; border: 1px solid var(--border); color: var(--text); }
.scan-result:hover { background: #edf3ff; border-color: var(--accent); }
.scan-mode-btn { color: var(--text-secondary); background: #f5f7fb; border-color: var(--border); }
.scan-mode-btn.active { background: #eaf0ff; color: var(--accent); border-color: var(--accent); }
.preview-item, .preview-card { background: #fff; border-color: var(--border); color: var(--text); }
.appnav { background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -5px 24px #17345908; }
.appnav-item { color: #52617a; font-size: 10px; min-height: 52px; }
.appnav-item.active { color: #2459d3; }
.appnav-item.active .appnav-ico { filter: none; }
.appnav-fab { background: #2459d3; color: #fff; box-shadow: 0 4px 14px #2459d330; border: 5px solid #fff; }
.site-footer { color: #52617a; border-color: var(--border); background: transparent; padding-top: 28px; font-size: 11px; }
.acct-wrap { max-width: 1184px; padding: 0 28px; margin: 32px auto; }
.acct-card { border-radius: 22px; padding: 28px; box-shadow: none; }
.auth-card { max-width: 480px; padding: 36px; margin: 32px auto; border-top: 0; }
.auth-card::before { display: none; }
.auth-card h1 { font-size: 32px; letter-spacing: -.06em; }
.auth-sub { line-height: 1.7; margin-bottom: 26px; }
.auth-card .field-label { margin-top: 8px; }
.auth-card input { font-size: 16px; }
.auth-card .primary-btn { margin-top: 18px; }
.qv-account-heading { margin: 0 0 24px; }
.qv-account-heading h1 { margin: 0; font-size: 34px; letter-spacing: -.06em; }
.qv-account-heading p { margin: 8px 0 0; color: var(--text-secondary); line-height: 1.6; }
.portfolio-card { background: #182843; color: #fff; border: 0; position: relative; overflow: hidden; }
.portfolio-card::after { content: '✳'; position: absolute; right: 22px; top: 0; color: #f0fa77; font-size: 116px; line-height: 1; opacity: .16; pointer-events: none; }
.portfolio-total { font-family: 'IBM Plex Mono',monospace; font-size: 42px; font-weight: 500; }
.portfolio-tag, .portfolio-count, .portfolio-card .chart-empty { color: #e1eaff; opacity: 1; }
.portfolio-chart-wrap { background: #ffffff0a; border-radius: 12px; padding: 12px; }
.portfolio-chart-wrap:has(#chart-empty:not([hidden])) canvas { display: none; }
.portfolio-chart-wrap #chart-empty:not([hidden]) { position: static; display: block; line-height: 1.6; text-align: left; }
.qv-price-key { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #e1eaff; font-size: 12px; line-height: 1.6; }
.qv-price-key strong { color: #fff; }
.acct-card h2 { font-size: 19px; letter-spacing: -.4px; color: var(--text); }
.add-hint, .csv-help { color: var(--text-secondary); line-height: 1.7; }
.csv-import { border: 1px solid var(--border); background: #f5f7fb; border-radius: 14px; padding: 16px; }
.csv-import summary { cursor: pointer; min-height: 32px; color: #2459d3; }
.csv-example { background: #fff; color: #40516e; border: 1px solid var(--border); }
.folder-tab, .folder-tabs button { border-color: var(--border); color: #40516e; }
.col-item, .add-result { background: #fff; border-color: var(--border); }
.account-empty, .empty-state { color: var(--text-secondary); }
.account-auth-flow .site-footer { max-width: 480px; margin: 0 auto; }
@keyframes qv-pulse { 50% { opacity: .35; } }
@media (min-width: 1000px) {
  .acct-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); align-items: start; gap: 24px; }
  .portfolio-card { grid-column: 1; }
  .add-card { grid-column: 2; grid-row: 1 / span 2; }
  .list-card { grid-column: 1; }
  .add-card .add-search-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner, .account-topbar .topbar-inner { padding: 12px 16px; min-height: 64px; gap: 8px; flex-wrap: wrap; }
  .logo-name { font-size: 19px; }
  .logo-mark { width: 30px; height: 34px; font-size: 14px; }
  .logo-by { display: none; }
  .topbar-right { margin-left: auto; }
  .topbar-right .topbar-account-link { display: none; }
  .currency-select { width: 80px; font-size: 12px; padding: 8px; }
  .page-shell { padding: 0 16px; }
  .valuation-page .hero-compact { grid-template-columns: 1fr; gap: 0; padding: 28px 2px 24px; margin: 0; }
  .valuation-page .hero-compact .hero-title { font-size: 39px; max-width: 330px; }
  .qv-eyebrow { font-size: 10px; margin-bottom: 12px; }
  .qv-intro { font-size: 14px; line-height: 1.6; margin-top: 12px; }
  .qv-method { display: none; }
  .valuation-page .search-section { padding: 20px 16px; border-radius: 20px; margin: 0 0 22px; }
  .qv-section-heading { margin-bottom: 16px; }
  .qv-section-heading h2 { font-size: 18px; }
  .valuation-page .path-card-scan { padding: 16px 12px; gap: 12px; }
  .valuation-page .path-body strong { font-size: 16px; }
  .valuation-page .path-body small { font-size: 12px; }
  .path-icon { font-size: 20px; padding: 8px; }
  .path-arrow { display: none; }
  .valuation-page .field-row.three-col { grid-template-columns: 1fr 1fr; gap: 12px; }
  .valuation-page .field-row.three-col .field:first-child { grid-column: 1 / -1; }
  .valuation-page .field-row.search-row, .valuation-page .field-row.two-col { grid-template-columns: 1fr; gap: 12px; }
  input[type=text], input[type=password], input[type=email], input[type=number], select, .valuation-page .search-form input[type=text], .valuation-page .search-form select { font-size: 16px; }
  .btn-field { display: flex; gap: 8px; }
  .btn-field .btn { flex: 1; width: 100%; }
  .results-grid, .dash-grid { grid-template-columns: 1fr; }
  .dash-hero { padding: 22px 18px; }
  .price-evidence { gap: 4px; flex-direction: column; }
  .market-loading { padding: 14px; }
  .source-status { gap: 7px; }
  .source-status-item { font-size: 11px; padding: 9px 12px; }
  .card-header { padding: 16px; }
  .scan-inner { width: calc(100% - 24px); max-height: calc(100dvh - 32px); padding: 18px; border-radius: 20px; }
  .scan-actions { flex-wrap: wrap; }
  .scan-capture-btn { flex: 1 1 65%; }
  .scan-results-popup-card { max-height: calc(100dvh - 24px); }
  .account-topbar-actions { gap: 0; width: 100%; justify-content: space-between; }
  .account-nav-link, .account-logout-btn { font-size: 12px; padding: 8px 10px; }
  .acct-wrap { padding: 0 16px; margin: 24px auto; }
  .acct-card { padding: 20px; border-radius: 20px; }
  .auth-card { margin: 12px auto; padding: 26px 22px; }
  .portfolio-total { font-size: 36px; }
  .qv-account-heading h1 { font-size: 30px; }
  .add-search-row { display: grid; grid-template-columns: 1fr 1fr; }
  #add-search, .add-hint { grid-column: 1/-1; }
  .add-search-row > * { min-width: 0; }
  .add-search-row input, .add-search-row select { width: 100%; }
  .csv-actions { display: grid; grid-template-columns: 1fr; }
  .csv-actions > * { text-align: center; width: 100%; }
}
/* Original card illustration: lightweight CSS/SVG, no external assets or 3D runtime. */
.qv-pixel-spark { display: inline-block; width: 12px; height: 12px; margin-right: 7px; background: #2459d3; clip-path: polygon(33% 0,66% 0,66% 33%,100% 33%,100% 66%,66% 66%,66% 100%,33% 100%,33% 66%,0 66%,0 33%,33% 33%); }
.qv-card-scene { position: relative; height: 324px; isolation: isolate; perspective: 1000px; }
.qv-scene-orbit { position: absolute; width: 280px; height: 280px; border: 1px solid #bfcab8; border-radius: 50%; left: 16%; top: 12px; }
.qv-scene-orbit::after { content: ''; position: absolute; inset: 22px; border: 1px dashed #c8d2c0; border-radius: 50%; }
.qv-scene-label { position: absolute; top: 4px; right: 10px; font: 9px 'IBM Plex Mono',monospace; color: #55674b; letter-spacing: .12em; }
.qv-art-card { position: absolute; top: 26px; left: 26%; width: 173px; height: 247px; padding: 13px; text-align: left; border: 1px solid #253653; border-radius: 15px; box-shadow: 0 18px 30px #18284323; }
.qv-art-card > span { font: 8px 'IBM Plex Mono',monospace; display: flex; justify-content: space-between; letter-spacing: .03em; }
.qv-art-back { background: #e8f570; color: #1d3a28; transform: translate(-55px,12px) rotate(-16deg); }
.qv-art-back i { display: block; font-size: 128px; font-style: normal; text-align: center; line-height: 1.5; }
.qv-art-front { background: linear-gradient(135deg,#e1eaff 8%,#f5f1d4 40%,#cbdafa 78%,#efffe1); color: #203d82; transform: rotate(11deg); animation: qv-card-float 7s ease-in-out infinite; }
.qv-art-window { margin: 13px 0 12px; height: 122px; background: #234fc5; color: #eaf779; display: grid; place-items: center; border-radius: 7px; overflow: hidden; }
.qv-art-window svg { width: 101px; height: 101px; }
.qv-art-card strong { display: block; font-size: 16px; line-height: 1.05; letter-spacing: -.6px; }
.qv-art-footer { margin-top: 12px; }
.qv-scene-stamp { position: absolute; right: 0; bottom: 38px; color: #263d74; font: italic 24px Georgia,serif; line-height: 1.03; transform: rotate(-9deg); }
.qv-search-filters { border: 1px solid #dce3ed; border-radius: 12px; margin: 0 0 18px; background: #f8fafc; }
.qv-search-filters summary { display: flex; align-items: center; gap: 9px; padding: 12px 16px; min-height: 48px; list-style: none; cursor: pointer; color: #334862; font-size: 12px; }
.qv-search-filters summary::-webkit-details-marker { display: none; }
.qv-search-filters summary small { color: #62718a; font-size: 11px; margin-left: auto; }
.qv-search-filters summary b { font-size: 20px; font-weight: 400; transition: transform .2s; }
.qv-search-filters[open] summary b { transform: rotate(45deg); }
.valuation-page .qv-search-filters .field-row { padding: 4px 16px 16px; margin-bottom: 0; }
.valuation-page .search-form { display: flex; flex-direction: column; }
.search-form .search-row { order: -2; }
.search-form .qv-search-filters { order: -1; }
.qv-help-note { font-size: 12px; color: #53637c; line-height: 1.65; }
.qv-source-warning { padding: 14px 18px; margin: 14px; border: 1px solid #e1d69a; border-radius: 12px; background: #fffbe4; color: #5c511b; font-size: 12px; line-height: 1.7; }
.price-coverage-card { padding: clamp(20px, 4vw, 32px); border: 1px solid #d7dff0; background: #fff; border-radius: 24px; color: #23334c; }
.price-coverage-kicker { text-transform: uppercase; letter-spacing: .07em; font-size: 10px; font-weight: 700; color: #3655a0; }
.price-coverage-card h3 { font-size: clamp(21px, 4vw, 28px); line-height: 1.2; letter-spacing: -.035em; margin: 10px 0; }
.price-coverage-card p, .price-coverage-card li { font-size: 13px; line-height: 1.65; }
.price-coverage-card ul { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 14px; }
.price-coverage-card li { display: grid; gap: 3px; padding-left: 14px; border-left: 3px solid #d8e4ff; }
.price-coverage-card li strong { font-size: 12px; }
.price-coverage-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 12px; }
.price-coverage-actions a, .price-coverage-actions button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 16px; border: 1px solid #d7dff0; background: #f3f6ff; color: #28449c; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; }
.price-coverage-actions a:first-child { color: #fff; background: #354fc6; border-color: #354fc6; }
.price-coverage-card small { display: block; font-size: 11px; line-height: 1.6; color: #59687b; }
@media (max-width: 600px) { .price-coverage-actions > * { width: 100%; } }
.source-status-item[data-state=partial] i { background: #8b7614; }
.qv-search-filters summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; }
.qv-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qv-empty-actions button { min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid #cbd5e3; background: #fff; color: #2459d3; font-size: 12px; cursor: pointer; }
.appnav-ico svg, .appnav-fab svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.appnav-item.active::after { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; position: absolute; bottom: 2px; }
.appnav-item { position: relative; padding-bottom: 7px; }
.appnav-fab { background: #eaf779; border: 5px solid #fff; color: #152443; box-shadow: 0 2px 6px #15244315; border-radius: 19px; }
.appnav-fab:hover { background: #e0ed67; }
.valuation-page.results-mode .qv-card-scene { display: none; }
.valuation-page .search-section.collapsed .qv-search-filters { display: none; }
.coll-value-source { line-height: 1.5; }
.qv-add-shortcut { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border: 1px solid #bccbec; border-radius: 12px; background: #fff; font-size: 13px; margin-top: 14px; text-decoration: none; }
#add-card { scroll-margin-top: 100px; }
@keyframes qv-card-float { 50% { transform: translateY(-8px) rotate(7deg); } }
@media (max-width: 760px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .topbar { padding-top: env(safe-area-inset-top); }
  .topbar-inner, .account-topbar .topbar-inner { padding-left: max(16px,env(safe-area-inset-left)); padding-right: max(16px,env(safe-area-inset-right)); }
  .valuation-page .hero-compact { position: relative; padding: 26px 0 22px; min-height: 197px; }
  .qv-hero-copy { position: relative; z-index: 1; }
  .valuation-page .hero-compact .hero-title { max-width: 240px; font-size: 40px; letter-spacing: -.07em; line-height: 1; }
  .qv-eyebrow { font-size: 9px; letter-spacing: .08em; }
  .qv-intro { max-width: 280px; font-size: 12px; margin-top: 12px; line-height: 1.6; }
  .qv-card-scene { position: absolute; right: -6px; top: 49px; width: 97px; height: 126px; pointer-events: none; }
  .qv-art-card { width: 67px; height: 95px; left: 10px; top: 8px; border-radius: 7px; padding: 5px; box-shadow: 0 9px 18px #18284320; }
  .qv-art-card > span { font-size: 3px; }
  .qv-art-back { transform: translate(-13px,3px) rotate(-15deg); }
  .qv-art-back i { font-size: 48px; }
  .qv-art-window { height: 47px; margin: 5px 0; border-radius: 3px; }
  .qv-art-window svg { width: 40px; height: 40px; }
  .qv-art-card strong { font-size: 6px; letter-spacing: -.2px; }
  .qv-art-footer { margin-top: 4px; }
  .qv-scene-label,.qv-scene-stamp,.qv-scene-orbit { display: none; }
  .valuation-page .search-section { border-radius: 20px; padding: 18px 16px; }
  .qv-section-heading h2 { font-size: 17px; }
  .valuation-page .path-card-scan { padding: 16px 12px; }
  .valuation-page .path-body small { font-size: 11px; line-height: 1.5; }
  .valuation-page .path-divider { margin: 15px 0; font-size: 10px; }
  .valuation-page .field-row.search-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
  .valuation-page .search-row .btn { padding: 10px 13px; white-space: nowrap; font-size: 12px; }
  .qv-search-filters { margin-bottom: 12px; }
  .qv-search-filters summary { padding: 10px 12px; }
  .qv-search-filters summary small { max-width: 170px; text-align: right; }
  .appnav { bottom: 0; min-height: 72px; padding: 8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); }
  .appnav-item { min-width: 52px; gap: 4px; min-height: 52px; }
  .appnav-fab { margin-top: -16px; width: 58px; height: 58px; }
  .account-auth-flow .account-topbar-actions { display: none; }
  .account-topbar-actions { overflow-x: auto; flex-wrap: nowrap; }
  .account-topbar .topbar-inner { flex-wrap: nowrap; }
  .account-topbar .account-topbar-actions { width: auto; margin-left: auto; }
  .account-topbar .account-topbar-actions .account-nav-link:not(#admin-link) { display: none; }
  .portfolio-card { order: 1; }
  .list-card { order: 2; }
  .add-card { order: 3; }
  .scan-overlay { align-items: flex-end; padding: 0; }
  .scan-inner { width: 100%; max-height: calc(100dvh - env(safe-area-inset-top)); border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 375px) {
  .valuation-page .hero-compact .hero-title { font-size: 36px; max-width: 205px; }
  .qv-intro { max-width: 238px; }
  .qv-search-filters summary small { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }
