:root {
  color-scheme: light;
  --navy: #111d35;
  --navy-light: #223454;
  --ink: #111827;
  --secondary: #475569;
  --muted: #64748b;
  --blue: #1955dc;
  --blue-dark: #123fa8;
  --blue-light: #edf3ff;
  --line: #cbd5e1;
  --soft-line: #e2e8f0;
  --canvas: #f1f4f8;
  --white: #fff;
  --sidebar: 196px;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button { border: 0; background: transparent; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 12px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Compact navigation: three clear destinations. */
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; width: var(--sidebar); background: var(--navy); color: #fff; padding: 28px 15px 24px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; margin-bottom: 44px; color: #fff; font-size: 28px; font-weight: 750; letter-spacing: 1px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: #2563eb; border-radius: 11px; color: #fff; }
.brand-mark svg { width: 32px; height: 32px; }
.nav-list { display: grid; gap: 9px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px; border-radius: 9px; color: #d4deee; font-size: 16px; font-weight: 550; text-align: left; transition: background .16s ease, color .16s ease; }
.nav-item .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.nav-item:hover { background: var(--navy-light); color: #fff; }
.nav-item.active { background: #2563eb; color: #fff; box-shadow: inset 0 0 0 1px #4d7eec; }
.nav-item.active .icon { stroke-width: 2.5; }
.watch-count { display: inline-flex; min-width: 23px; height: 23px; align-items: center; justify-content: center; margin-left: auto; padding: 0 4px; font-size: 12px; font-weight: 700; background: #33445f; color: #fff; border-radius: 5px; }
.nav-item.active .watch-count { background: #fff; color: #1b4fd1; }
.sidebar-scope { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 22px 10px 0; color: #c3cfe1; font-size: 14px; border-top: 1px solid #354158; }
.sidebar-scope .icon { width: 23px; height: 23px; color: #83b3ff; }

/* Only the controls that change the comparison. */
.main-content { margin-left: var(--sidebar); padding: 30px 32px 52px; max-width: 1800px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.heading-block { min-width: 265px; }
h1 { font-size: 29px; letter-spacing: -.7px; line-height: 1.25; font-weight: 760; }
.condition-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.condition-tags > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; background: #e0e7ef; color: #334155; border-radius: 5px; font-size: 13px; font-weight: 550; }
.condition-tags .location-tag { background: #dce8ff; color: #174bb5; }
.condition-tags .icon { width: 16px; height: 16px; stroke-width: 2.3; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-field { width: 244px; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 12px; border: 1px solid #bcc7d6; border-radius: 8px; background: #fff; }
.search-field .icon { width: 22px; height: 22px; color: #475569; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; outline: 0; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: #64748b; opacity: 1; }
.search-field:focus-within { border-color: #1955dc; box-shadow: 0 0 0 2px #1955dc25; }
.primary-btn, .secondary-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px; border-radius: 8px; font-weight: 650; font-size: 14px; white-space: nowrap; text-decoration: none; }
.primary-btn { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.primary-btn:hover { background: var(--blue-dark); text-decoration: none; }
.secondary-btn { background: #fff; color: #25334a; border: 1px solid #bbc7d6; }
.secondary-btn:hover { background: #eef3fa; border-color: #7487a4; text-decoration: none; }
.primary-btn .icon, .secondary-btn .icon { width: 21px; height: 21px; stroke-width: 2.2; }
.scope-note { margin-bottom: 22px; padding: 13px 17px; border: 1px solid #e8bc72; border-left: 5px solid #d58a12; border-radius: 8px; background: #fff7e8; color: #70440a; font-size: 14px; line-height: 1.65; }
.scope-note b, .scope-note strong { color: #5c3500; }
.scope-note.success { border-color: #8bbdab; border-left-color: #047857; background: #eaf8f2; color: #065f46; }
.filter-panel { padding: 17px 19px 0; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-tabs { display: flex; gap: 4px; padding: 4px; background: #e9eef5; border-radius: 8px; flex: 0 0 auto; }
.brand-tabs button { min-width: 90px; min-height: 39px; padding: 7px 15px; color: #334155; font-size: 15px; font-weight: 650; border-radius: 5px; }
.brand-tabs button.active { background: var(--navy); color: #fff; box-shadow: 0 1px 3px #1118271a; }
.brand-tabs button:hover:not(.active) { color: var(--blue); background: #fff; }
.config-filters { display: flex; align-items: center; gap: 12px; }
.config-filters label { display: flex; align-items: center; gap: 7px; color: #475569; font-size: 14px; white-space: nowrap; }
select { min-height: 39px; max-width: 180px; padding: 7px 31px 7px 10px; border: 1px solid #b9c6d7; border-radius: 6px; color: #17243b; background: #fff; font-size: 14px; cursor: pointer; }
.config-filters label:first-child select { width: 145px; }
.series-tabs { display: flex; gap: 5px; align-items: center; margin-top: 15px; padding-top: 12px; padding-bottom: 13px; overflow-x: auto; border-top: 1px solid #e2e8f0; scrollbar-width: thin; }
.series-tabs:empty { margin-top: 0; padding: 0; border: 0; height: 16px; }
.series-tabs button { min-height: 34px; padding: 6px 13px; color: #475569; border-radius: 6px; font-size: 14px; font-weight: 550; white-space: nowrap; flex: 0 0 auto; }
.series-tabs button:hover { background: #eef3ff; color: var(--blue); }
.series-tabs button.active { background: #dfeaff; color: #1547ba; font-weight: 700; }
.coverage-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 16px; min-height: 24px; margin: 17px 2px; color: #475569; font-size: 14px; }
.coverage-summary strong, .coverage-summary b { color: #17233b; font-weight: 700; }
.coverage-summary .count, .config-count { font-variant-numeric: tabular-nums; }
.product-grid { display: grid; gap: 23px; }

/* Series first, precise configurations directly beneath. */
.series-section { border: 1px solid #c8d2df; background: #fff; border-radius: var(--radius); overflow: hidden; }
.series-header { display: flex; align-items: center; gap: 20px; padding: 20px 22px; background: #fff; border-bottom: 1px solid var(--soft-line); }
.series-photo { display: flex; align-items: center; justify-content: center; width: 110px; height: 82px; padding: 5px; flex: 0 0 auto; border-radius: 8px; background: #f2f5f9; overflow: hidden; }
.series-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.series-photo .icon { width: 48px; height: 48px; color: #526683; }
.series-name { flex: 1; min-width: 0; }
.series-name h2, .series-header h2 { font-size: 23px; font-weight: 750; line-height: 1.3; letter-spacing: -.4px; color: #111827; }
.series-subtitle { margin-top: 5px; color: #475569; font-size: 14px; line-height: 1.5; }
.series-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.series-tags > span, .variant-pill { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; background: #eff3f8; color: #3d506e; font-size: 12px; font-weight: 550; line-height: 1.5; }
.series-tags > .brand-apple { background: #e6ecf3; color: #182338; }
.series-tags > .brand-lenovo { background: #fdebed; color: #a8182c; }
.config-count { display: inline-flex; align-items: center; gap: 4px; color: #42536e; background: #eef2f7; padding: 6px 10px; border-radius: 6px; white-space: nowrap; font-size: 13px; font-weight: 600; }
.table-wrap { overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.config-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: auto; }
.config-table thead { background: #e9eef5; }
.config-table th { padding: 12px 17px; font-size: 13px; font-weight: 700; color: #334155; white-space: nowrap; border-bottom: 1px solid #c7d2e1; }
.config-table td { padding: 18px 17px; border-bottom: 1px solid #e0e6ee; font-size: 15px; vertical-align: middle; color: #17243b; }
.config-table th:first-child, .config-table td:first-child { padding-left: 22px; }
.config-table th:last-child, .config-table td:last-child { padding-right: 22px; }
.config-table tr:last-child td { border-bottom: 0; }
.config-row:hover { background: #f7faff; }
.config-table tbody tr:nth-child(even) { background: #fbfcfe; }
.config-table tbody tr:nth-child(even):hover { background: #f3f7ff; }
.config-table th:nth-child(1) { min-width: 178px; }
.config-table th:nth-child(2), .config-table th:nth-child(3) { min-width: 78px; }
.config-table th:nth-child(4) { min-width: 150px; }
.config-table th:nth-child(5) { min-width: 190px; }
.config-table th:nth-child(6) { min-width: 112px; }
.config-chip { font-size: 15px; font-weight: 700; line-height: 1.5; color: #111827; }
.config-chip strong { display: block; }
.config-chip small, .config-spec small, .config-table td > small, .config-table small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.5; color: #64748b; }
.config-spec { font-size: 16px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-price { color: #b52b16; font-size: 29px; font-weight: 780; letter-spacing: -.7px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-price small { color: #64748b; font-size: 12px; letter-spacing: 0; font-weight: 400; }
.checkout-price .currency { font-size: 18px; margin-right: 1px; }
.price-pending { display: inline-block; color: #82510f; font-size: 19px; font-weight: 650; white-space: nowrap; }
.offer-note { max-width: 290px; font-size: 13px; color: #475569; line-height: 1.65; }
.offer-note strong { color: #243653; font-weight: 600; }
.price-status, .status-wait { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; margin-top: 5px; padding: 2px 7px; color: #80500d; background: #fff0cf; border: 1px solid #ecd5a2; border-radius: 4px; font-size: 12px; font-weight: 550; }
.price-status.verified, .price-status.success, .status-verified { background: #e1f4eb; border-color: #95d4b8; color: #08613e; }
.price-status .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.row-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.row-actions > button:not(.icon-btn):not(.watch-btn), .row-actions > a:not(.icon-btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 9px; color: #174dbb; background: #edf3ff; border: 1px solid #b7caf0; border-radius: 6px; font-size: 13px; font-weight: 650; }
.row-actions > a:hover, .row-actions > button:hover { background: #dce8ff; text-decoration: none; }
.icon-btn, .watch-btn { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; min-width: 38px; border: 1px solid #bcc9dc; border-radius: 7px; background: #fff; color: #3b5278; font-size: 24px; line-height: 1; }
.icon-btn .icon, .watch-btn .icon, .row-actions svg { width: 23px; height: 23px; }
.icon-btn:hover, .watch-btn:hover { background: #e8f0ff; color: #164ac1; border-color: #85a6e9; }
.watch-btn.active, .watch-btn[aria-pressed="true"] { background: #fff0c4; color: #9c5700; border-color: #d8ad4d; }
.watch-btn.active .icon, .watch-btn[aria-pressed="true"] .icon { fill: #f3b92e; }
.matrix-gap { padding: 13px 22px; border-top: 1px solid #e2e8f0; background: #f8fafc; color: #475569; font-size: 13px; line-height: 1.65; }
.matrix-gap strong { color: #334155; }

/* Detail panels keep the final amount and its conditions together. */
dialog { width: min(780px, calc(100vw - 36px)); max-height: calc(100vh - 60px); padding: 32px; border: 1px solid #aab9ce; border-radius: 14px; color: var(--ink); background: #fff; overflow: auto; box-shadow: 0 24px 80px #0f172a45; }
dialog::backdrop { background: #0f172a99; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 16px; top: 16px; z-index: 5; width: 40px; height: 40px; background: #fff; }
#dialog-body, #conditions-body { padding-top: 10px; }
#dialog-body h2, #conditions-body h2 { font-size: 26px; line-height: 1.3; font-weight: 750; max-width: calc(100% - 40px); margin-bottom: 10px; }
#dialog-body h3, #conditions-body h3 { font-size: 17px; line-height: 1.4; margin: 24px 0 12px; }
#dialog-body p, #conditions-body p { color: #475569; font-size: 14px; line-height: 1.8; }
#dialog-body .series-photo { float: right; width: 126px; height: 90px; margin: 25px 0 15px 20px; }
.detail-specs, .spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin: 20px 0; clear: both; }
.detail-specs > div, .spec-grid > div { padding: 12px 14px; border: 1px solid #d1dbe8; border-radius: 7px; background: #f8fafc; }
.detail-specs small, .spec-grid small { display: block; color: #64748b; font-size: 12px; margin-bottom: 5px; }
.detail-specs strong, .spec-grid strong { font-size: 15px; font-weight: 650; }
.price-breakdown { margin: 20px 0; border: 1px solid #c5d2e3; border-radius: 9px; overflow: hidden; }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid #e2e8f0; color: #475569; font-size: 15px; }
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-row strong, .breakdown-row b { color: #17243b; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 16px; }
.breakdown-row.total, .breakdown-row.final { background: #fff2e8; color: #7d3213; font-weight: 650; }
.breakdown-row.total strong, .breakdown-row.final strong { font-size: 29px; color: #b52b16; }
.breakdown-row small { display: block; font-size: 12px; margin-top: 3px; font-weight: 400; }
.provenance { padding: 13px 15px; background: #f1f5f9; border-left: 3px solid #647fa5; border-radius: 5px; color: #475569; font-size: 13px; line-height: 1.8; word-break: break-word; }
.provenance p { font-size: 13px !important; }
.provenance a { font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
#conditions-body .condition-row, .condition-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #e2e8f0; font-size: 15px; }
.condition-row > span { color: #475569; }
.condition-row strong { text-align: right; }
.comparison-input { width: 100%; padding: 11px 13px; min-height: 44px; border: 1px solid #a8b9ce; border-radius: 7px; color: #17243b; font-size: 15px; background: #fff; }
textarea.comparison-input { min-height: 110px; resize: vertical; }

/* History stays empty until comparable checkout prices actually exist. */
.history-panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.history-panel h2 { font-size: 23px; margin-bottom: 12px; }
.history-panel p { font-size: 15px; color: #475569; }
.history-panel select { max-width: 100%; min-width: 240px; margin: 10px 0 20px; }
.history-panel svg { width: 100%; max-height: 360px; }
.history-panel svg text { font-family: inherit; }
.history-empty, .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 230px; padding: 36px 28px; color: #475569; background: #fff; text-align: center; border: 1px solid #cbd5e1; border-radius: var(--radius); }
.history-empty .icon, .empty-state .icon { width: 44px; height: 44px; color: #4e6c99; stroke-width: 1.7; }
.history-empty h2, .empty-state h2 { font-size: 20px; font-weight: 700; color: #243653; }
.history-empty strong { font-size: 20px; color: #243653; }
.history-empty p, .empty-state p { font-size: 14px; color: #64748b; max-width: 520px; line-height: 1.8; }
.history-panel .history-empty { border: 0; background: #f8fafc; }
.history-table, #dialog-body table { width: 100%; border-collapse: collapse; margin-top: 15px; text-align: left; font-size: 14px; }
.history-table th, #dialog-body th { background: #e9eef5; padding: 10px 12px; color: #334155; font-weight: 650; }
.history-table td, #dialog-body td { padding: 12px; border-bottom: 1px solid #e2e8f0; }
.toast { position: fixed; z-index: 100; left: calc(50% + var(--sidebar)/2); bottom: 28px; max-width: min(570px, calc(100vw - 40px)); padding: 13px 20px; border: 1px solid #52647f; border-radius: 9px; color: #fff; background: #14243d; box-shadow: 0 8px 25px #0f172a33; font-size: 14px; line-height: 1.6; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1380px) {
  .main-content { padding: 26px 25px 45px; }
  .page-header { flex-wrap: wrap; gap: 18px; }
  .header-actions { margin-left: auto; }
  .search-field { width: 228px; }
  .config-filters { gap: 9px; }
  .config-filters label { gap: 5px; }
  .config-filters label:first-child select { width: 128px; }
  .brand-tabs button { min-width: 78px; padding-inline: 12px; }
  .config-table th, .config-table td { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1150px) {
  :root { --sidebar: 178px; }
  .sidebar { padding-inline: 12px; }
  .brand { padding-inline: 8px; font-size: 26px; }
  .nav-item { gap: 10px; font-size: 15px; padding-inline: 11px; }
  .nav-item .icon { width: 25px; height: 25px; }
  .main-content { padding-inline: 22px; }
  .filter-topline { flex-wrap: wrap; gap: 14px; }
  .config-filters { width: 100%; }
  .config-filters label { flex: 1; }
  .config-filters select, .config-filters label:first-child select { flex: 1; width: auto; max-width: none; }
  .config-table { min-width: 820px; }
}
@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 10px 15px; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 2px 10px #0f172a20; }
  .brand { padding: 0; margin: 0; gap: 8px; font-size: 23px; flex: 0 0 auto; }
  .brand-mark { width: 35px; height: 35px; border-radius: 8px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .nav-list { display: flex; gap: 5px; }
  .nav-item { width: auto; min-height: 43px; padding: 7px 10px; gap: 6px; font-size: 13px; border-radius: 7px; }
  .nav-item .icon { width: 23px; height: 23px; }
  .watch-count { display: none; }
  .sidebar-scope { display: none; }
  .main-content { padding: 24px 17px 36px; margin: 0; }
  .page-header { align-items: flex-start; gap: 19px; margin-bottom: 18px; }
  h1 { font-size: 27px; }
  .condition-tags { margin-top: 11px; gap: 7px; }
  .condition-tags > span { font-size: 12px; }
  .header-actions { margin: 0; width: 100%; gap: 8px; }
  .search-field { flex: 1; width: auto; }
  .header-actions .primary-btn, .header-actions .secondary-btn { padding-inline: 12px; font-size: 13px; }
  .scope-note { font-size: 13px; padding: 12px 13px; margin-bottom: 18px; }
  .filter-panel { padding-inline: 13px; padding-top: 13px; }
  .config-filters { gap: 9px; }
  .config-filters label { flex-direction: column; align-items: stretch; gap: 5px; font-size: 12px; }
  .config-filters select { width: 100%; font-size: 13px; }
  .series-tabs { margin-top: 13px; padding-block: 10px; }
  .series-tabs button { font-size: 13px; padding-inline: 11px; }
  .coverage-summary { font-size: 13px; margin-block: 14px; }
  .product-grid { gap: 20px; }
  .series-header { gap: 15px; padding: 17px; align-items: flex-start; }
  .series-photo { width: 89px; height: 73px; }
  .series-name h2, .series-header h2 { font-size: 21px; }
  .series-subtitle { font-size: 13px; }
  .series-tags { gap: 5px; margin-top: 7px; }
  .series-tags > span, .variant-pill { font-size: 11px; }
  .config-count { padding: 4px 7px; font-size: 12px; }
  .series-header > .config-count { align-self: center; }
  .matrix-gap { padding: 12px 17px; font-size: 12px; }
  .toast { left: 50%; bottom: 18px; font-size: 13px; }
  dialog { padding: 25px 20px; max-height: calc(100vh - 34px); }
  #dialog-body h2, #conditions-body h2 { font-size: 23px; }
  .detail-specs, .spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .sidebar { gap: 12px; padding: 10px 12px; }
  .brand { gap: 7px; font-size: 22px; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-list { gap: 4px; }
  .nav-item { flex-direction: column; gap: 4px; min-width: 56px; padding: 6px 7px; line-height: 1; font-size: 11px; }
  .nav-item .icon { width: 25px; height: 25px; }
  .main-content { padding: 21px 12px 30px; }
  h1 { font-size: 26px; }
  .heading-block { min-width: 0; }
  .header-actions { flex-wrap: wrap; gap: 9px; }
  .search-field { flex-basis: 100%; order: 0; min-height: 44px; }
  .header-actions .secondary-btn, .header-actions .primary-btn { min-height: 41px; padding-inline: 12px; }
  .header-actions .secondary-btn { margin-left: auto; }
  .header-actions .icon { width: 22px; height: 22px; }
  .scope-note { margin-bottom: 16px; line-height: 1.7; }
  .filter-panel { padding-inline: 11px; }
  .brand-tabs { width: 100%; }
  .brand-tabs button { flex: 1; min-width: 0; font-size: 14px; padding-inline: 10px; min-height: 38px; }
  .filter-topline { gap: 13px; }
  .config-filters { gap: 8px; }
  .config-filters select, .config-filters label:first-child select { min-width: 0; padding-left: 8px; padding-right: 20px; min-height: 39px; font-size: 13px; width: 100%; }
  .config-filters label:first-child { flex: 1.35; }
  .series-header { padding: 16px 14px; gap: 12px; position: relative; flex-wrap: wrap; }
  .series-photo { width: 80px; height: 70px; }
  .series-name { min-width: 170px; }
  .series-name h2, .series-header h2 { font-size: 20px; }
  .series-header > .config-count { position: absolute; right: 13px; top: 13px; font-size: 11px; padding: 3px 6px; }
  .series-header:has(> .config-count) .series-name h2 { padding-right: 45px; }
  .series-subtitle { font-size: 12px; }
  .table-wrap { overflow: visible; }
  .config-table { min-width: 0; display: block; }
  .config-table thead { display: none; }
  .config-table tbody { display: block; }
  .config-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); position: relative; padding: 15px 14px; gap: 10px 15px; border-bottom: 1px solid #cbd5e1; }
  .config-table tr:last-child { border-bottom: 0; }
  .config-table td { display: block; padding: 0 !important; border: 0; text-align: left; min-width: 0; font-size: 15px; }
  .config-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #64748b; font-size: 11px; font-weight: 500; }
  .config-table td:first-child { grid-column: 1/-1; padding-bottom: 1px !important; }
  .config-table td:first-child::before { display: none; }
  .config-table td:nth-child(4) { grid-column: 1; grid-row: 3; padding-top: 4px !important; }
  .config-table td:nth-child(5) { grid-column: 1/-1; grid-row: 4; }
  .config-table td:last-child { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; }
  .config-table td:last-child::before { display: none; }
  .config-chip { font-size: 16px; }
  .config-chip small, .config-table small { margin-top: 3px; font-size: 12px; }
  .config-spec { font-size: 16px; }
  .checkout-price { font-size: 29px; }
  .price-pending { font-size: 20px; }
  .offer-note { max-width: none; font-size: 12px; line-height: 1.7; }
  .price-status, .status-wait { font-size: 11px; }
  .row-actions { justify-content: flex-end; gap: 7px; }
  .row-actions > button:not(.icon-btn):not(.watch-btn), .row-actions > a:not(.icon-btn) { min-height: 38px; padding-inline: 10px; font-size: 13px; }
  .icon-btn, .watch-btn { width: 39px; height: 39px; min-width: 39px; }
  .matrix-gap { padding: 12px 14px; }
  .history-panel { padding: 19px 15px; }
  .history-panel h2 { font-size: 21px; }
  .history-empty, .empty-state { min-height: 220px; padding: 28px 19px; }
  .history-empty h2, .empty-state h2 { font-size: 19px; }
  .history-empty p, .empty-state p { font-size: 13px; }
  .history-panel select { min-width: 0; width: 100%; }
  dialog { width: calc(100vw - 24px); padding: 24px 17px; border-radius: 11px; }
  .dialog-close { width: 37px; height: 37px; min-width: 37px; right: 12px; top: 12px; }
  #dialog-body h2, #conditions-body h2 { font-size: 22px; }
  #dialog-body p, #conditions-body p { font-size: 13px; }
  .detail-specs, .spec-grid { gap: 7px; }
  .detail-specs > div, .spec-grid > div { padding: 10px 11px; }
  .detail-specs strong, .spec-grid strong { font-size: 14px; }
  .breakdown-row { font-size: 14px; padding-inline: 13px; }
  .breakdown-row strong, .breakdown-row b { font-size: 15px; }
  .breakdown-row.total strong, .breakdown-row.final strong { font-size: 26px; }
  .condition-row { font-size: 14px; gap: 15px; }
  .provenance { font-size: 12px; padding: 12px; }
  .toast { max-width: calc(100vw - 24px); width: max-content; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Configuration matrix details. */
.config-model{display:block;font-size:15px;font-weight:750;color:#111827;line-height:1.45}.config-chip{margin-top:5px;font-size:14px;color:#334155}.config-extra{font-size:12px;color:#475569;margin-top:5px}.price-status{display:flex;align-items:center;gap:5px;font-size:12px;line-height:1.6}.price-status .icon{width:16px;height:16px}.expand-configs{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;background:#eef3ff;border:0;border-top:1px solid #cbd5e1;color:#1d4ed8;font-size:15px;font-weight:700;cursor:pointer}.expand-configs:hover{background:#dbe7ff}.expand-configs .icon{width:20px;height:20px}.detail-eyebrow{font-size:13px;font-weight:700;color:#1d4ed8}.detail-subtitle{font-size:16px;color:#334155;line-height:1.7}.detail-specs>div{display:grid;grid-template-columns:85px 1fr;gap:12px;padding:9px 0}.detail-specs span{color:#475569}.variant-list{border:1px solid #cbd5e1;border-radius:10px;overflow:hidden}.variant-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e2e8f0}.variant-list>div:last-child{border-bottom:0}.variant-list small{display:block;color:#475569;margin-top:5px;font-size:12px}.source-caveat{font-size:13px;line-height:1.8;color:#475569;margin-top:16px}.breakdown-row.total{border-top:2px solid #1e293b;margin-top:8px;padding-top:14px;color:#0f172a;font-size:20px}.policy-note{background:#eff6ff;padding:16px;border-radius:10px;margin-top:20px;line-height:1.8}.policy-note h3{margin:0 0 8px}.policy-note a,.provenance a{color:#1d4ed8;font-weight:700}.policy-note .icon,.provenance .icon{width:17px;height:17px;vertical-align:middle}.history-controls{display:flex;align-items:end;gap:18px;justify-content:space-between;padding:20px;background:#fff;border:1px solid #cbd5e1;border-radius:12px}.history-controls label{font-size:14px;min-width:0;flex:1}.history-controls select{display:block;max-width:100%;width:100%;margin-top:8px;padding:12px;border:1px solid #94a3b8;border-radius:7px;font-size:14px;color:#111827;background:#fff}.history-period{display:flex;gap:5px}.history-period button{padding:10px 14px;white-space:nowrap;font-weight:700;border:1px solid #cbd5e1;border-radius:7px;background:#fff;cursor:pointer}.history-period button.active{background:#1d4ed8;color:white;border-color:#1d4ed8}.history-chart{background:#fff;padding:20px;border:1px solid #cbd5e1;border-radius:12px;margin-top:18px;overflow-x:auto}.history-chart svg{width:100%;min-width:650px}.plus-offer{background:#fffbeb;border:1px solid #fcd34d;padding:15px;border-radius:10px;margin:16px 0}.row-actions .secondary-btn{font-size:14px;min-height:38px;padding:7px 11px}.variant-pill .icon{width:16px;height:16px}.scope-note .icon{flex-shrink:0;width:23px;height:23px}.price-pending{font-size:22px;color:#92400e}.config-count{white-space:nowrap}.series-photo img{object-fit:contain}
@media(max-width:700px){.history-controls{display:block}.history-period{margin-top:14px}.config-model{font-size:16px}.config-chip{font-size:14px}.variant-list>div{flex-wrap:wrap}.series-subtitle{font-size:13px}.row-actions{justify-content:flex-end}.config-extra{font-size:12px}}
.page-payable-price{display:block;color:#b52b16;font-size:30px;letter-spacing:-.6px}
.page-price-source{display:block;width:fit-content;margin-top:9px;padding:5px 8px;border-radius:5px;background:#dbeafe;color:#173b73;font-size:13px;font-weight:750;line-height:1.5}
.qualification-pending{display:flex;gap:5px;align-items:center;margin-top:7px;color:#92400e;font-size:14px;font-weight:750;line-height:1.5}
.qualification-pending .icon{width:19px;height:19px;flex:none}
.quote-variant{display:block;margin-top:7px;color:#475569;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.has-page-price td{background:#fffdfa}
.has-page-price td{padding-top:14px;padding-bottom:14px}
.page-offer-summary{display:grid;gap:5px;max-width:200px;color:#17243b;font-size:14px;line-height:1.5}
.quote-discount{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.quote-discount strong{color:#111827;font-size:15px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.quote-captured-at{display:flex;align-items:center;gap:5px;margin-top:4px;color:#475569;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.quote-captured-at .icon{width:16px;height:16px;flex:none}
.has-page-price .variant-pill{margin-top:9px}
.has-page-price .page-price-source{margin-top:6px;padding-top:3px;padding-bottom:3px}
.has-page-price .qualification-pending,.has-page-price .quote-variant{margin-top:5px}
@media(max-width:700px){.page-offer-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;max-width:none}.quote-discount{gap:7px}.quote-captured-at{margin-top:0}}
.page-quote-detail{border:2px solid #d39b38;background:#fffdf7}
.price-breakdown h3{margin:0;padding:17px 16px 12px;color:#17243b;font-size:19px}
.price-breakdown>p,.price-breakdown>.provenance{margin:12px 16px;line-height:1.75}
.page-detail-warning{display:flex;align-items:center;gap:7px;margin:0 16px 15px;padding:10px 12px;background:#fff0c7;color:#854d0e;border-radius:6px;font-size:16px;font-weight:750}
.page-detail-warning .icon{width:23px;height:23px;flex:none}
.page-quote-detail .breakdown-row.total{background:#fff2d6;margin-top:0;border-top:1px solid #e8ca8e}
.page-discount-note{color:#805515;font-size:14px}
.verified-empty{display:flex;align-items:center;gap:9px;padding:15px;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;color:#475569;font-size:14px;margin:20px 0}
.verified-empty .icon{width:22px;height:22px;flex:none}
.verified-breakdown{border-color:#84b49b}
.history-controls{flex-wrap:wrap;align-items:flex-end}
.history-controls .history-sku-label{flex:1 1 340px}
.history-controls .history-kind-label{flex:0 1 195px}
.history-kind-label select{min-width:0}
.history-track-note{display:flex;flex-direction:column;gap:7px;margin-top:18px;padding:15px 18px;border-left:4px solid #1d4ed8;background:#eff6ff;color:#1e3a5f;font-size:15px;line-height:1.65}
.history-track-note.page-track{border-left-color:#b45309;background:#fff7e6;color:#854d0e}
.history-track-note strong{font-size:17px}
.history-single{padding:10px 0;font-size:15px!important;color:#334155!important;line-height:1.7}
.history-single strong{font-size:23px;color:#b52b16;margin-inline:5px}
.history-panel .config-table td a{color:#1d4ed8;font-size:14px;line-height:1.65}
.history-panel .icon{width:18px;height:18px;max-height:none;vertical-align:middle}
.history-panel .history-empty>.icon{width:44px;height:44px}
@media(max-width:700px){.page-price-source{font-size:13px}.qualification-pending{font-size:14px}.quote-variant{font-size:12px}.page-quote-detail h3{font-size:18px}.history-controls .history-kind-label{display:block;margin-top:14px}.history-track-note{padding:12px;font-size:14px}.history-track-note strong{font-size:16px}}

.presale-tag { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 4px; background: #fff0cf; color: #783d00; font-size: 13px; font-weight: 700; }
.variant-price-note{margin:0 0 13px!important;color:#334155!important;font-size:14px!important;line-height:1.7}
.variant-list>.variant-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,1fr) auto;gap:14px;padding:16px}
.variant-identity{min-width:0;overflow-wrap:anywhere}.variant-identity>strong{font-size:16px;color:#14243d}.variant-list .variant-identity small{font-size:13px}
.variant-quote{min-width:0}.variant-quote .variant-amount{display:block;font-size:25px;line-height:1.3}.variant-price-label{display:block;margin-top:5px;color:#344c6f;font-size:14px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.variant-quote .price-status,.variant-quote .qualification-pending{width:fit-content;margin-top:7px;font-size:13px}.variant-quote .price-pending{font-size:21px}.variant-price-row>.secondary-btn{align-self:center}
@media(max-width:700px){.variant-list>.variant-price-row{grid-template-columns:minmax(0,1fr) auto;padding:15px;gap:12px}.variant-quote{grid-column:1/-1;grid-row:2}.variant-price-row>.secondary-btn{grid-column:2;grid-row:1}.variant-quote .variant-amount{font-size:26px}.variant-quote .price-status,.variant-quote .qualification-pending{font-size:14px}}

.publication-info{display:flex;flex-wrap:wrap;gap:5px 20px;margin:0 0 14px;color:#475569;font-size:13px;line-height:1.6}.publication-info time{color:#17243b;font-variant-numeric:tabular-nums}
