:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  --page: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #626269;
  --line: #e8e8ed;
  --accent: #0068d1;
  --accent-tint: #edf5ff;
  --green: #24824c;
  --oxide: #a83d38;
  --radius: 15px;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:disabled { cursor: default; opacity: .37; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
.skip { position: fixed; z-index: 6; left: 15px; top: -100px; padding: 10px 15px; background: white; border-radius: 6px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.shell { min-height: 100vh; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 65px; max-width: 1710px; margin: auto; padding: 0 clamp(18px, 2.4vw, 34px); }
.brand { display: flex; gap: 9px; align-items: center; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 5px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.brand strong { display: block; font-size: 16px; letter-spacing: .035em; line-height: 1.15; }
.brand div > span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
#navigation { display: flex; gap: 4px; align-self: stretch; }
.nav-button { display: flex; gap: 6px; align-items: center; border: 0; border-bottom: 3px solid transparent; padding: 8px 10px 5px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.nav-button svg { width: 16px; }
.nav-button:hover { background: #f5f5f2; color: var(--ink); }
.nav-button[aria-current] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.nav-button:focus-visible { outline-offset: -3px; }
.snapshot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.demo-pill { border: 1px solid #e4d8c7; background: #f7f0e6; color: #714c2f; padding: 4px 8px; border-radius: 4px; font-weight: 650; font-size: 12px; white-space: nowrap; }
main { max-width: 1710px; margin: 0 auto; padding: 24px clamp(18px, 2.4vw, 34px) 38px; }
main:focus { outline: none; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.heading h1 { color: var(--ink); font-size: clamp(26px, 3vw, 42px); line-height: 1.12; font-weight: 750; letter-spacing: -.045em; }
.heading p { color: var(--muted); margin-top: 7px; font-size: 14px; line-height: 1.45; }
.heading-actions, .inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.heading-actions { justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 690; white-space: nowrap; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #0058b6; }
.secondary { color: var(--accent); background: #fff; border-color: #dddde5; }
.secondary:hover { background: var(--accent-tint); }
.ghost { color: var(--muted); background: transparent; }
.ghost:hover { background: #eff3f0; }
.compact { min-height: 34px; font-size: 13px; padding: 4px 8px; }
.text-button { border: 0; padding: 3px 0; color: var(--accent); background: none; font-weight: 650; font-size: 13px; }
.text-button:hover { text-decoration: underline; }

.price-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.price-inspector { display: none; }
.summary { padding: 15px 15px 5px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.summary h2 { color: var(--ink); font-size: 16px; font-weight: 720; }
.summary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.summary-metric { display: grid; align-content: start; gap: 4px; min-width: 0; text-align: left; padding: 11px 2px 12px; color: var(--ink); border: 0; border-top: 1px solid var(--line); background: transparent; }
.summary-metric:hover, .summary-metric[aria-pressed="true"] { background: var(--accent-tint); }
.summary-metric[data-kpi="above"] > strong { color: var(--oxide); }
.metric-heading { display: flex; align-items: start; justify-content: space-between; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 670; }
.metric-heading > svg { color: var(--muted); margin-top: 1px; }
.metric-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px; color: #246046; background: #e8f3eb; }
.summary-metric > strong { font-size: 27px; font-weight: 740; font-variant-numeric: tabular-nums; line-height: 1.07; letter-spacing: -.045em; }
.summary-metric > strong span, .metric-note { color: var(--muted); font-size: 12px; font-weight: 530; letter-spacing: 0; line-height: 1.35; }
.source-card { text-align: left; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px 14px; color: var(--ink); min-width: 0; }

@media (min-width: 1384px) {
  .price-workspace { grid-template-columns: minmax(0, 1fr) clamp(358px, 31vw, 485px); }
  .price-inspector { display: block; position: sticky; top: 12px; }
  .price-panel tr[data-selected] { background: var(--accent-tint); }
  .price-panel tr[data-selected] th { box-shadow: inset 3px 0 var(--accent); }
  .price-panel tr[data-selected] .product-link { color: var(--accent); }
}
@media (min-width: 1384px) and (max-width: 1280px) {
  .price-list .market-rank-cell, .price-list .rank-heading { display: none; }
}

.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 19px 14px; }
.panel-heading h2, .import-note h2 { font-size: 20px; font-weight: 750; letter-spacing: -.024em; }
.panel-heading p, .import-note p { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.4; }
.segmented { display: inline-flex; align-items: stretch; gap: 2px; border: 1px solid var(--line); background: #f3f3f0; border-radius: 6px; padding: 3px; }
.segmented button { display: flex; align-items: center; gap: 6px; min-height: 31px; border: 1px solid transparent; border-radius: 6px; padding: 4px 9px; color: var(--muted); background: transparent; font-weight: 620; font-size: 13px; white-space: nowrap; }
.segmented button:hover { color: var(--accent); }
.segmented button[aria-pressed="true"] { color: var(--accent); background: #fff; border-color: #d7dded; box-shadow: 0 1px 2px #24375f12; }
.filter-area { padding: 9px 17px 13px; border-bottom: 1px solid var(--line); }
.price-panel .filter-area { padding-top: 14px; background: #fafaf7; }
.filter-top { display: flex; gap: 8px; align-items: center; }
.filter-top .search-field { flex: 1; position: relative; }
.filter-top .field input { min-height: 42px; font-size: 15px; border-color: #c3cad6; }
.filter-toggle { min-height: 42px; }
.filter-toggle[aria-expanded="true"] { background: var(--accent-tint); }
.filter-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; color: var(--accent); background: #e5edf9; border-radius: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.filter-drawer { padding-top: 11px; }
.filter-drawer-footer { display: flex; align-items: end; gap: 14px; margin-top: 9px; }
.filter-drawer-footer .check-field { min-height: 37px; white-space: nowrap; }
.filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.field { display: flex; flex-direction: column; gap: 5px; color: #415449; font-weight: 650; font-size: 12px; min-width: 0; }
.select-wrap, .search-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.select-wrap > svg { position: absolute; right: 10px; pointer-events: none; color: #576e60; }
.search-wrap > svg { position: absolute; left: 10px; pointer-events: none; color: #617368; }
.field select, .field input { width: 100%; min-width: 0; min-height: 37px; padding: 7px 27px 7px 10px; border: 1px solid #d4d8df; background: #fff; color: var(--ink); border-radius: 6px; font-size: 13px; font-weight: 500; }
.field select { appearance: none; overflow: hidden; text-overflow: ellipsis; }
.field input { padding-left: 35px; padding-right: 7px; cursor: text; }
.field input::placeholder { color: #626d7a; opacity: 1; }
.filter-options { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.check-field { display: inline-flex; gap: 6px; align-items: center; color: #334b3e; font-size: 13px; font-weight: 600; }
.check-field input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d8e5df; border-radius: 6px; padding: 3px 7px; background: #eef5f0; color: var(--green); font-size: 12px; }
.filter-options .reset { margin-left: 3px; }
.price-controls { display: grid; grid-template: "title count views compare" auto / max-content 1fr max-content max-content; align-items: center; gap: 10px; padding: 9px 17px; }
.price-controls h2 { grid-area: title; font-size: 17px; letter-spacing: -.02em; }
.price-controls > strong { grid-area: count; color: var(--muted); font-size: 13px; font-weight: 600; }
.price-controls .segmented { grid-area: views; justify-self: end; }
.price-controls .comparison-controls { grid-area: compare; justify-self: end; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 10px; padding: 4px 19px; font-size: 13px; color: #35463a; }
.table-toolbar > strong { color: var(--muted); font-weight: 600; }
.comparison-controls .field { flex-direction: row; align-items: center; gap: 7px; white-space: nowrap; }
.comparison-controls .field select { min-height: 29px; padding-top: 4px; padding-bottom: 4px; background: #f8f9fa; }
.comparison-controls { display: flex; align-items: center; gap: 7px; }
.table-scroll { overflow: auto; position: relative; }
.products-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
.products-table thead { background: #f0f0ed; color: #424d59; }
.products-table thead th { padding: 10px 12px; font-size: 12px; font-weight: 730; white-space: nowrap; border-top: 1px solid #e6ede5; border-bottom: 1px solid #e2e9e1; }
.products-table thead th:first-child, .products-table tbody th:first-child { padding-left: 19px; }
.products-table tbody td, .products-table tbody th { padding: 11px 12px; border-bottom: 1px solid #ebf0eb; vertical-align: middle; }
.products-table tbody tr:hover { background: #f6f7fa; }
.products-table tbody th:first-child { width: 33%; min-width: 225px; }
.products-table tbody td { white-space: nowrap; }
.products-table tbody td:last-child { padding-right: 15px; }
.product-link { border: 0; background: none; padding: 0; color: inherit; text-align: left; }
.product-link { font-size: 14px; font-weight: 690; line-height: 1.25; }
.product-link, .product-meta, .demo-offer { overflow-wrap: anywhere; }
.product-link { max-width: 100%; }
.product-link:hover, .offer-link:hover, .table-link:hover { text-decoration: underline; color: var(--accent); }
.product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; font-size: 12px; font-weight: 510; color: var(--muted); }
.dot-separator { width: 3px; height: 3px; border-radius: 50%; background: #7a8d80; }
.price { font-size: 14px; font-weight: 660; }
.price-own { color: var(--ink); font-weight: 770; }
.unit, .delta small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 2px 6px; font-size: 11px; font-weight: 720; white-space: nowrap; line-height: 1.35; }
.badge.good { color: #246147; background: #e6f2e7; }
.badge.bad { color: #9d402f; background: #faeae5; }
.badge.neutral { color: #526158; background: #edf1ee; }
.badge.warn { color: #85521e; background: #fcf0d9; }
.badge.purple { color: #614f91; background: #eee9f7; }
.delta .badge { font-size: 12px; }
.mobile-label { display: none; }
.market-delta-cell { background: #f2f4f7; }
.market-delta { display: grid; grid-template-columns: max-content; justify-content: start; gap: 2px; color: var(--muted); }
.market-delta.bad { color: var(--oxide); }
.market-delta.good { color: var(--green); }
.market-delta strong { font-size: 14px; line-height: 1.2; font-weight: 750; }
.market-delta small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.delta-track { position: relative; display: block; width: 73px; height: 5px; border-radius: 2px; background: #e0e4eb; margin-top: 2px; }
.delta-track::after { position: absolute; inset: -1px auto -1px 50%; content: ''; width: 1px; background: #818896; }
.delta-track > span { position: absolute; top: 0; bottom: 0; width: var(--length); border-radius: 2px; background: currentColor; }
.market-delta.bad .delta-track > span { left: 50%; }
.market-delta.good .delta-track > span { right: 50%; }
.rank { font-weight: 740; }
.rank span, .muted { color: var(--muted); font-weight: 510; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 30px; border: 1px solid #dbe0e8; border-radius: 6px; color: var(--accent); background: #fff; text-decoration: none; }
.icon-button:hover:not(:disabled) { background: var(--accent-tint); border-color: #bcc9e4; }
.row-open { background: #f1f4fa; border-color: transparent; }
.sort-control[aria-pressed="true"] { background: var(--accent-tint); border-color: #bcc9e4; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); padding: 11px 19px; font-size: 12px; }
.pagination > div { display: flex; align-items: center; gap: 7px; }
.selection-bar { display: flex; align-items: start; gap: 7px; padding: 10px 19px; color: #4f6657; background: #f6f9f5; border-top: 1px solid #e3ebe2; font-size: 12px; line-height: 1.45; }
.selection-bar svg { margin-top: 1px; }
.empty { display: grid; justify-items: center; gap: 9px; padding: 42px 13px; color: var(--muted); font-size: 14px; text-align: center; }
.seller { display: inline-flex; align-items: center; gap: 6px; font-weight: 660; white-space: nowrap; }
.seller-mark { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; font-size: 12px; font-weight: 800; }
.seller-mark.violet { color: #634a94; background: #ece7f7; }
.seller-mark.amber { color: #805022; background: #faeedc; }
.seller-mark.blue { color: #355e83; background: #e1edf6; }
.seller-mark.green { color: #366550; background: #e6f1e7; }
.offer-link, .table-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--green); font-weight: 675; }
.table-link { display: flex; width: max-content; margin-top: 4px; font-size: 12px; }
.promo-label { color: #85521e; }
.audit-table td strong { font-size: 13px; }
.source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 21px; }
.source-card { padding: 15px; gap: 9px; }
.source-card small { color: var(--muted); line-height: 1.4; font-size: 12px; }
.source-card > strong { font-size: 19px; }
.coverage-list { padding: 0 19px 10px; }
.coverage-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(140px, 2fr) 112px 75px; gap: 20px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.coverage-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.coverage-row .badge { justify-self: center; }
.progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; gap: 4px; font-size: 13px; color: var(--muted); }
.progress-label strong { color: var(--ink); }
progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 9px; background: #e8eee7; overflow: hidden; color: #64946e; }
progress::-webkit-progress-bar { background: #e8eee7; }
progress::-webkit-progress-value { background: #64946e; border-radius: 9px; }
progress::-moz-progress-bar { background: #64946e; border-radius: 9px; }
progress.behind::-webkit-progress-value { background: #bf8747; }
progress.behind::-moz-progress-bar { background: #bf8747; }
.import-note { display: flex; align-items: center; padding: 16px 19px; gap: 12px; margin-top: 16px; }
.import-note h2 { font-size: 16px; }
.import-error { margin-top: 10px; padding: 12px 16px; border: 1px solid #e5c4be; border-radius: 7px; background: #fff3f0; color: var(--oxide); font-size: 14px; }
.demo-offer { display: grid; gap: 12px; padding: 19px; margin-bottom: 12px; }
.demo-offer p { color: var(--muted); font-size: 14px; }
.demo-offer .price { font-size: 23px; margin-right: 7px; }
.demo-offer .unit { display: inline; margin-right: 8px; }

.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(695px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; margin: 0; color: var(--ink); background: #fff; border: 0; border-radius: 17px 0 0 17px; box-shadow: -12px 0 45px #11271b2c; }
.drawer[open] { display: flex; flex-direction: column; overflow: hidden; }
.drawer::backdrop { background: #202a4269; }
.drawer-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; background: #f6f7fa; border-bottom: 1px solid var(--line); padding: 19px 22px; }
.drawer-heading > div { min-width: 0; overflow-wrap: anywhere; }
.drawer .drawer-heading > div { max-height: 35dvh; overflow: auto; }
.drawer-context { font-size: 12px; font-weight: 670; color: var(--accent); }
.drawer-heading h2 { font-size: clamp(21px, 3.4vw, 29px); line-height: 1.15; letter-spacing: -.035em; margin: 6px 0; }
.drawer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.drawer-close { flex: 0 0 34px; height: 34px; }
.drawer-body { padding: 16px 22px 25px; container-type: inline-size; }
.drawer .drawer-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.price-inspector .drawer-heading { padding: 15px 16px; }
.price-inspector .drawer-heading h2 { font-size: 24px; }
.price-inspector .drawer-body { padding: 13px 15px 15px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.detail-metrics > div { padding: 12px; background: #fafaf8; }
.detail-metrics > div:not(:last-child) { border-right: 1px solid var(--line); }
.detail-metrics > div:first-child { background: var(--accent-tint); }
.detail-metrics > div > span:first-child, .detail-metrics > div > small { display: block; color: var(--muted); font-size: 12px; }
.detail-metrics > div > strong { display: block; font-size: clamp(16px, 3.4vw, 24px); margin: 5px 0; letter-spacing: -.026em; }
.detail-metrics .delta { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.detail-metrics .delta small { margin: 0; }
.drawer-section { margin-top: 18px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.drawer-section-heading { padding: 13px 13px 8px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.drawer-section-heading h3 { font-size: 16px; letter-spacing: -.015em; }
.drawer-section-heading p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.drawer-section-heading .field { flex-shrink: 0; }
.drawer-section-heading .field select { min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.chart-key { display: flex; gap: 13px; align-items: center; padding: 2px 14px 4px; font-size: 12px; color: var(--muted); }
.chart-key span { display: inline-flex; gap: 5px; align-items: center; }
.chart-key i { width: 15px; border-top: 2px solid var(--accent); }
.chart-key span:nth-child(2) i { border-top: 2px dashed #99603b; }
.chart-key span:nth-child(3) i { border-top: 2px dotted #237365; }
.chart-wrap { width: 100%; padding: 0 3px; }
.price-chart { display: block; width: 100%; height: 161px; }
.chart-readout { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; padding: 7px 13px; min-height: 34px; color: var(--muted); font-size: 12px; background: #f6f7fa; border-top: 1px solid var(--line); }
.chart-readout b, .chart-readout > strong { color: var(--ink); }
.offer-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(113px, .95fr) minmax(75px, .8fr) 32px; align-items: center; gap: 6px 10px; border-top: 1px solid var(--line); padding: 10px 12px; font-size: 14px; }
.offer-row small { display: block; font-size: 12px; margin-top: 3px; color: var(--muted); }
.offer-row .badge + .badge { margin-left: 4px; }
.offer-amount { text-align: right; font-variant-numeric: tabular-nums; }
.offer-row[data-status="stale"] .offer-amount strong, .offer-row[data-status="error"] .offer-amount strong { color: var(--muted); }
.offer-row[data-status="anomaly"] .offer-amount strong { color: var(--oxide); }
.drawer-body > .selection-bar { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.toast { position: fixed; z-index: 3; right: 15px; bottom: 15px; max-width: min(450px, calc(100% - 30px)); padding: 11px 15px; color: #fff; background: var(--ink); border-radius: 7px; box-shadow: 0 4px 15px #18213133; font-size: 14px; }
@container (max-width: 480px) {
  .detail-metrics > div { padding: 8px; }
  .detail-metrics > div > strong { font-size: clamp(16px, 5cqw, 23px); }
  .offer-row { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) 32px; grid-template-areas: "seller amount link" "status status status"; padding: 9px; gap: 6px 8px; align-items: start; }
  .offer-row .offer-seller { grid-area: seller; }
  .offer-row .offer-amount { grid-area: amount; }
  .offer-row .offer-status { grid-area: status; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .offer-row .offer-status small { margin: 0 0 0 4px; }
  .offer-row .icon-button { grid-area: link; }
  .offer-row .badge { white-space: normal; }
}

@media (max-width: 1150px) {
  .products-table thead th, .products-table tbody td, .products-table tbody th { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 1060px) {
  .site-header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; padding-top: 8px; }
  #navigation { grid-row: 2; grid-column: 1 / -1; margin-top: 5px; overflow: auto; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .brand-mark svg { width: 21px; }
  .brand strong { font-size: 14px; }
  .brand div > span { font-size: 11px; margin-top: 2px; }
  .nav-button { min-height: 35px; padding: 5px 7px 3px; font-size: 13px; border-bottom-width: 2px; }
  .nav-button svg { width: 15px; }
  .products-table { min-width: 685px; }
  .matrix-table, .history-table, .audit-table { min-width: 730px; }
}
@media (max-width: 740px) {
  .price-controls { grid-template: "title views" auto "count compare" auto / minmax(0, 1fr) auto; gap: 7px; padding: 8px 10px; }
  .price-controls h2 { font-size: 15px; }
}
@media (max-width: 690px) {
  .site-header-inner { padding-right: 12px; padding-left: 12px; }
  #navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .nav-button { gap: 5px; padding-right: 5px; padding-left: 5px; }
  .snapshot { font-size: 12px; }
  main { padding: 14px 12px 26px; }
  .heading { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .heading p { font-size: 13px; margin-top: 5px; }
  .heading .button { min-height: 35px; font-size: 12px; padding: 5px 7px; gap: 4px; }
  .heading .button svg { width: 14px; }
  .summary-metrics, .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 13px; }
  .metric-icon { height: 27px; width: 27px; flex-basis: 27px; border-radius: 7px; }
  .metric-icon svg { width: 15px; }
  .panel-heading { padding: 12px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading p { font-size: 12px; }
  .filter-area, .price-panel .filter-area { padding: 10px; }
  .filter-top .field input, .filter-toggle { min-height: 39px; }
  .filter-top .field input { font-size: 16px; }
  .filter-toggle { padding: 5px 7px; gap: 4px; font-size: 13px; }
  .filter-toggle svg { width: 15px; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-toolbar, .pagination, .selection-bar { padding-left: 12px; padding-right: 12px; }
  .price-list { min-width: 0; border-top: 1px solid var(--line); }
  .price-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .price-list tbody, .price-list { display: block; }
  .price-list tbody tr { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 9px 11px 10px; border-bottom: 1px solid var(--line); }
  .price-list tbody th:first-child { grid-column: 1 / -1; width: auto; min-width: 0; padding: 0 31px 0 0; }
  .price-list tbody th, .price-list tbody td, .price-list tbody td:last-child { min-width: 0; padding: 0; border: 0; white-space: normal; }
  .price-list .row-end { position: absolute; right: 9px; top: 8px; }
  .price-list .row-open { width: 28px; height: 28px; }
  .price-list .market-rank-cell,
  .price-list[data-mobile-ref="typical"] .market-min-cell,
  .price-list[data-mobile-ref="min"] .market-typical-cell { display: none; }
  .price-list .market-delta-cell { background: transparent; }
  .price-list .mobile-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
  .price-list .delta-track { width: min(72px, 100%); }
  .coverage-list { padding: 0 12px 8px; }
  .coverage-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 10px; }
  .coverage-row .badge, .coverage-row button { justify-self: start; }
  .drawer { border-radius: 0; }
  .drawer-body, .drawer-heading { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 420px) {
  .nav-button { padding: 4px; gap: 4px; min-height: 33px; font-size: 11px; }
  .nav-button svg { width: 13px; }
  .heading-actions { justify-content: flex-start; }
  .segmented button { padding: 4px 5px; gap: 4px; }
  .segmented button svg { width: 13px; }
}
@media (max-width: 360px) {
  .nav-button svg { display: none; }
  .heading h1 { font-size: 23px; }
  .price-controls h2 { font-size: 14px; }
  .segmented button { font-size: 12px; }
  .comparison-controls { position: relative; }
  .comparison-controls .field > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

[data-alert-form] label {
  display: block;
  margin-block: 4px;
  font-size: .83rem;
}

[data-alert-form] input {
  display: block;
  width: 100%;
  max-width: 240px;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font: inherit;
}

[data-alert-form="threshold"] input {
  max-width: 90px;
}

@media (min-width: 1060px) {
  .shell { padding-left: 224px; }
  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: 224px;
    background: #ececf1;
    border: 0;
    border-right: 1px solid #dddde5;
    overflow-y: auto;
  }
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    min-height: 100%;
    padding: 30px 18px 20px;
    gap: 24px;
  }
  #navigation { flex-direction: column; margin: 0; overflow: visible; }
  .nav-button { border: 0; border-radius: 10px; padding: 11px; gap: 10px; font-size: 13px; }
  .nav-button[aria-current] { background: var(--surface); box-shadow: 0 2px 6px #00000006; }
  .site-header .demo-pill { align-self: flex-start; margin-top: auto; }
}
.brand-mark { background: var(--ink); border-radius: 9px; }
