:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202b3e;
  background: #f5f6f8;
  font-size: 14px;
  --muted: #707c8f;
  --line: #e6eaf0;
  --accent: #285ee8;
  --group-header-height: 40px;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 42px 32px 24px; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { min-height: 40px; padding: 10px 16px; border: 1px solid #dce2eb; border-radius: 10px; background: #fff; cursor: pointer; transition: background .16s, border-color .16s, box-shadow .16s; }
button:hover { border-color: #b7c6df; background: #f7f9ff; }
button:active { background: #edf2ff; }
button:disabled { cursor: default; opacity: .5; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #7fa2ff; outline-offset: 3px; }
input, select { min-width: 0; min-height: 40px; padding: 8px 11px; border: 1px solid #dce2eb; border-radius: 9px; background: #fff; }
input::placeholder { color: #8793a4; }
h1 { margin: 0; font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -1.15px; line-height: 1.2; font-weight: 650; }
.workspace { max-width: 1680px; margin: 0 auto; }
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sheet-tabs a { padding: 11px 16px; border-radius: 10px; color: var(--muted); }
.sheet-tabs a[aria-current="page"] { color: var(--accent); background: #e8efff; font-weight: 600; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 4px 20px #263a5d03; overflow: hidden; }
.filter-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 30px 28px; }
.secondary { background: transparent; color: #637187; font-size: 13px; }
#reset { border: 0; white-space: nowrap; }
#reset::before { content: '↺'; margin-right: 7px; font-size: 17px; }
.filter-step { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 24px 30px; border-top: 1px solid var(--line); }
.step-label { display: flex; flex-direction: column; gap: 9px; padding-top: 8px; }
.step-label strong { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.step-label > span { color: var(--muted); font-size: 12px; line-height: 1.5; padding-left: 31px; }
.step-number { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef2f8; color: #6e7f97; font-size: 11px; }
.choice-stack, .spec-group { min-width: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 10px 14px; line-height: 1.25; }
.choice.active, .choice.active:hover { background: #edf3ff; border-color: #759aff; color: #2454c6; box-shadow: inset 0 0 0 1px #759aff; }
.choice.current small { display: none; }
#family-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.model-choice { position: relative; flex-direction: column; min-height: 130px; padding: 20px 8px 16px; gap: 0; background: #fafbfd; border-color: #edf0f5; border-radius: 13px; }
.model-choice:hover { background: #f2f6fe; border-color: #c0d1f4; }
.model-choice.active::after { content: ''; position: absolute; right: 10px; top: 10px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.model-name { margin-top: 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.device.phone + .model-name { white-space: normal; text-align: center; }
.model-caption { margin-top: 5px; color: var(--muted); font-size: 10px; }
#family-options .all-models { grid-column: 1 / -1; justify-self: start; border: 0; min-height: 28px; padding: 6px 0; color: #66748a; background: transparent; font-size: 12px; box-shadow: none; }
#family-options .all-models.active { color: var(--accent); font-weight: 600; }
.device { position: relative; display: block; width: 52px; height: 33px; color: #8996aa; }
.device.laptop { width: 43px; height: 29px; margin: 2px 0; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(145deg, #edf2fa, #d8e2f1); box-shadow: inset 0 0 0 2px #fafcff; }
.device.laptop::after { content: ''; position: absolute; bottom: -5px; left: -6px; width: 52px; height: 3px; border: 1px solid currentColor; border-radius: 0 0 5px 5px; background: #edf1f6; }
.device.pro { color: #78879d; background: linear-gradient(145deg, #e8e9f9, #c8cee5); }
.device.neo { background: linear-gradient(145deg, #eef4da, #dbe9ac); }
.device.mini { width: 42px; height: 29px; margin: 2px 0; border: 1.5px solid currentColor; border-radius: 8px; background: linear-gradient(#f1f4f8 66%, #d5deea 67%); }
.device.mini::after, .device.studio::after { content: ''; position: absolute; bottom: 4px; right: 7px; height: 2px; width: 2px; background: #8493aa; border-radius: 50%; }
.device.studio { width: 42px; height: 33px; border: 1.5px solid currentColor; border-radius: 7px; background: linear-gradient(#f1f4f8 40%, #dce4ef 42%, #cdd7e5); }
.device.imac { width: 42px; height: 28px; border: 1.5px solid currentColor; border-bottom-width: 5px; border-radius: 3px; background: linear-gradient(135deg, #e0ecf6, #c2d4ea); }
.device.imac::after { content: ''; position: absolute; bottom: -10px; left: 13px; height: 6px; width: 12px; border-bottom: 2px solid currentColor; background: linear-gradient(90deg, transparent 4px, #9aa9be 4px 8px, transparent 8px); }
.device.phone { width: 21px; height: 33px; border: 1.5px solid currentColor; border-radius: 5px; background: linear-gradient(145deg, #edf2fa, #c8d9ef); box-shadow: inset 0 0 0 2px #fafcff; }
.device.phone::after { content: ''; position: absolute; top: 3px; left: 6px; width: 7px; height: 2px; border-radius: 2px; background: currentColor; }
.chip-history { margin-top: 12px; }
.chip-history summary { width: fit-content; color: var(--muted); cursor: pointer; font-size: 12px; padding: 5px 0; }
.chip-history .choice-group { padding-top: 10px; }
.spec-step { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 22px 28px; padding: 24px 30px 28px; border-top: 1px solid var(--line); }
.spec-group > span { display: block; margin-bottom: 10px; font-size: 12px; color: #68768b; font-weight: 550; }
.spec-group.wide { grid-column: span 2; }
.choice-group.compact { gap: 6px; }
.choice-group.compact .choice { min-height: 34px; padding: 8px 11px; font-size: 12px; border-radius: 8px; }
.price-range { display: flex; align-items: end; gap: 10px; }
.price-range label { display: flex; flex: 1; flex-direction: column; gap: 8px; color: #68768b; font-size: 12px; }
.price-range input { width: 100%; }
.price-status { display: flex; align-items: center; gap: 15px; padding: 20px 24px; margin: 18px 0 28px; border: 1px solid #e2e8f1; border-radius: 15px; background: #f0f4fa; }
.status-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e1e9f7; color: #536e99; align-self: flex-start; margin-top: 1px; }
.status-icon::before { content: '↻'; font-size: 20px; }
.status-copy { flex: 1; min-width: 0; }
.status-copy strong { font-weight: 600; font-size: 14px; }
.status-copy p { margin: 6px 0 0; font-size: 13px; color: #68768b; line-height: 1.55; }
.status-schedule { display: block; margin-top: 7px; color: #79859a; font-size: 11px; line-height: 1.5; }
.status-schedule:empty { display: none; }
.price-status[data-tone="warning"] { background: #fffbf3; border-color: #f0e5cf; }
[data-tone="warning"] .status-icon { background: #fbefd6; color: #a2742b; }
[data-tone="warning"] .status-icon::before { content: '!'; font-size: 18px; font-weight: 600; }
[data-tone="success"] .status-icon { background: #e0eee8; color: #3e8066; }
[data-tone="success"] .status-icon::before { content: '✓'; font-size: 16px; }
.refresh-button { flex: 0 0 auto; border-color: #dfd8ca; background: #ffffffb3; font-size: 12px; }
.refresh-button::before { content: '↻'; font-size: 16px; margin-right: 7px; }
#message { color: #ae5736; }
.table-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 14px; }
#count { font-size: 13px; font-weight: 550; }
.table-meta > div { display: flex; align-items: center; gap: 12px; }
.table-meta label { color: var(--muted); font-size: 12px; }
.table-meta select { margin-left: 8px; font-size: 12px; }
.table-meta button { font-size: 12px; }
.table-wrap { overflow: auto; max-height: 76vh; min-height: 240px; border: 1px solid #dfe5ee; border-radius: 14px; background: #fff; scrollbar-color: #c5cfdf #f4f6fa; scrollbar-width: thin; }
table { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
th, td { padding: 15px 14px; border-right: 1px solid #e9edf3; border-bottom: 1px solid #e5eaf1; text-align: left; vertical-align: top; }
th { position: sticky; z-index: 2; background: #f2f5f9; color: #536278; font-weight: 550; white-space: nowrap; font-size: 11px; }
.column-groups { height: var(--group-header-height); }
.column-groups th { top: 0; padding-top: 13px; padding-bottom: 13px; }
.retailer-headings th { top: var(--group-header-height); }
td:first-child { position: sticky; left: 0; z-index: 1; min-width: 245px; max-width: 270px; background: #fff; box-shadow: 4px 0 10px #263a5d03; }
th.model-heading { left: 0; z-index: 4; min-width: 245px; max-width: 270px; }
.configuration-model { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: #26364d; }
.configuration-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.configuration-badge { display: inline-block; padding: 3px 6px; border-radius: 4px; background: #f1f4f8; color: #62738b; font-size: 10px; font-weight: 400; line-height: 1.25; white-space: nowrap; }
.configuration-badge.proled-badge { background: #e9e2fc; color: #502795; font-weight: 700; }
.configuration-badge.incomplete { color: #98632f; background: #fff4de; }
tbody tr:hover td { box-shadow: inset 0 0 0 999px #527ded06; }
tbody tr:hover td:first-child { background: #f7f9fd; }
.retailer-group-heading { text-align: center; letter-spacing: .2px; }
.retailer-heading { text-align: center; }
.retailer-group-start { border-left: 1px solid #dce3ed; }
.retailer-group-procurement, .retailer-heading.retailer-procurement { background: #f5eee3; color: #866938; }
.retailer-procurement { background: #fffcf6; }
.retailer-group-analytics, .retailer-heading.retailer-analytics { background: #eaf0fb; color: #536d9b; }
.retailer-analytics { background: #f9fbff; }
.retailer-group-moscow, .retailer-heading.retailer-moscow { background: #edf1f5; }
.retailer-moscow { background: #fff; }
.retailer-group-nizhny, .retailer-heading.retailer-nizhny { background: #eeecf6; color: #72658f; }
.retailer-nizhny { background: #fff; }
.price-cell.low-trust-price { background: #fff6f4; }
.retailer-group-other, .retailer-heading.retailer-other { background: #edf1f5; }
.best-price-heading { background: #e7f1ed; color: #50816b; }
.best-price-cell { background: #f5faf7; }
.best-price-cell .price { color: #2c775a; }
.recommended-cell { background: #edf3ff; }
.recommended-cell .price { color: #315fc4; }
.analytics-difference.positive .price { color: #368261; }
.analytics-difference.negative .price { color: #b6534f; }
.price-cell { min-width: 150px; }
.analytics-cell { min-width: 142px; }
.price { color: #2b3f5d; font-size: 14px; font-weight: 600; white-space: nowrap; }
a.price:hover { color: var(--accent); }
.empty-cell { color: #bbc4d1; }
.variant { display: block; margin-top: 5px; font-size: 10px; line-height: 1.5; color: #8591a3; }
.tag { display: inline-block; margin-top: 7px; padding: 3px 6px; border-radius: 4px; background: #f0f3f7; color: #7b8798; font-size: 9px; }
.tag.warn { color: #9b773a; background: #fbf0db; }
.trust-badge { display: block; width: max-content; margin: 5px auto 0; padding: 3px 6px; border-radius: 4px; background: #fae9e6; color: #ae6860; font-size: 9px; font-weight: 400; white-space: nowrap; }
td .trust-badge { margin: 7px 0 0; }
.selection-prompt { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; padding: 30px; border: 1px dashed #dbe2ed; border-radius: 18px; color: #718099; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border: 1px solid #dfe6f0; border-radius: 12px; background: #eef2f8; color: #8799b5; font-size: 23px; }
.selection-prompt strong { font-size: 17px; font-weight: 550; color: #4a5d78; }
.selection-prompt p { margin: 9px 0 0; font-size: 13px; line-height: 1.7; }
#empty { padding: 42px; text-align: center; color: var(--muted); }
.is-loading .model-choice { opacity: .65; }
.standalone-page { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.standalone-page main { width: min(680px, 100%); }
.standalone-box { margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cta { display: inline-block; padding: 13px 20px; border-radius: 10px; background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.search-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 22px; padding: 20px 30px; border-top: 1px solid var(--line); background: #fafbfe; }
.search-bar > label { font-weight: 600; }
.search-input { display: flex; align-items: center; gap: 10px; border: 1px solid #dce2eb; border-radius: 11px; background: white; padding: 0 10px; }
.search-input > span { font-size: 25px; color: var(--muted); }
.search-input input { width: 100%; border: 0; background: transparent; padding-left: 0; min-height: 44px; }
.search-input button { border: 0; padding: 4px 9px; font-size: 22px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.filter-tag { min-height: 34px; padding: 7px 11px; font-size: 12px; color: #2454b7; background: #ecf2ff; border-color: #dbe6ff; }
#empty { border: 1px dashed #dbe2ed; border-radius: 16px; background: #fff; }
#empty strong { font-size: 18px; color: #4a5d78; }
#empty p { line-height: 1.6; }
@media (max-width: 850px) { .search-bar { grid-template-columns: 1fr; gap: 9px; padding: 18px 24px; } }
@media (max-width: 600px) { .search-bar { padding: 18px; } .search-input input { font-size: 16px; } #empty { padding: 28px 18px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (min-width: 1600px) { body { padding-top: 50px; } .filter-step { grid-template-columns: 170px minmax(0, 1fr); } .model-choice { min-height: 145px; } }
@media (max-width: 1100px) { .filter-step { grid-template-columns: 120px minmax(0, 1fr); gap: 15px; } .model-caption { display: none; } .model-choice { min-height: 110px; } .model-name { font-size: 12px; } }
@media (max-width: 850px) {
  body { padding: 22px 18px; }
  .filter-top { padding: 24px; gap: 12px; }
  #reset { font-size: 0; padding: 8px; }
  #reset::before { font-size: 21px; margin: 0; }
  .filter-step { grid-template-columns: 1fr; gap: 16px; padding: 20px 24px; }
  .step-label { padding: 0; flex-direction: row; justify-content: space-between; align-items: center; }
  .step-label > span { padding: 0; }
  .spec-step { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 24px; gap: 20px; }
  .spec-group.wide { grid-column: auto; }
  .price-status { padding: 18px; flex-wrap: wrap; }
  .status-copy { flex-basis: calc(100% - 47px); }
  .refresh-button { margin-left: 47px; }
  .table-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 600px) {
  body { padding: 16px 12px; }
  h1 { max-width: 280px; font-size: 26px; letter-spacing: -.8px; }
  .filters { border-radius: 17px; }
  .filter-top { padding: 22px 18px; align-items: flex-start; }
  .filter-step { padding: 18px; }
  #family-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .model-choice { min-height: 104px; padding: 15px 4px; }
  .model-name { font-size: 11px; }
  .model-caption { display: none; }
  .step-label > span { font-size: 11px; }
  .spec-step { grid-template-columns: 1fr; padding: 18px; }
  .spec-group.wide { grid-column: auto; }
  .price-status { gap: 11px; margin: 14px 0 22px; padding: 16px 14px; border-radius: 13px; }
  .status-icon { width: 26px; height: 26px; }
  .status-copy { flex-basis: calc(100% - 37px); }
  .status-copy strong { font-size: 13px; line-height: 1.5; }
  .status-copy p { font-size: 12px; }
  .status-schedule { font-size: 10px; }
  .refresh-button { margin-left: 37px; min-height: 36px; }
  .selection-prompt { min-height: 215px; }
  .table-meta > div { width: 100%; gap: 8px; justify-content: space-between; }
  .table-meta label { font-size: 0; }
  .table-meta select { margin: 0; max-width: 170px; }
  .table-meta button { padding: 8px; font-size: 10px; }
  .table-wrap { max-height: 78vh; }
  th, td { padding: 12px 10px; }
  td:first-child, th.model-heading { min-width: 160px; max-width: 170px; }
  .configuration-model { font-size: 12px; }
  .configuration-badge { font-size: 9px; padding: 3px 4px; }
  .price-cell { min-width: 130px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Shop prices are always visible; only pagination limits the initial DOM. */
.advanced-filters > summary { padding: 16px 30px; border-top: 1px solid var(--line); color: #506781; cursor: pointer; font-weight: 550; }
.advanced-filters[open] > summary { background: #fafbfe; }
.lowest-retail-price { background: #eef7f0; }
.lowest-retail-price > .price { color: #22663c; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 4px; }
.pagination span { font-size: 12px; color: #667b92; text-align: center; }
.pagination button { font-size: 12px; }
.table-meta > div { flex-wrap: wrap; }
.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; }
@media (min-width: 851px) {
  .filter-top { padding-bottom: 22px; }
  .model-choice { min-height: 105px; padding: 14px 8px; }
  .filter-step { padding-top: 18px; padding-bottom: 18px; }
  .price-status { margin-bottom: 20px; padding-top: 15px; padding-bottom: 15px; }
}
@media (max-width: 850px) {
}
@media (max-width: 600px) {
  .advanced-filters > summary { padding: 16px 18px; font-size: 12px; }
  .table-meta > div { justify-content: flex-start; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; font-size: 11px; padding: 8px; }
  .pagination { gap: 8px; }
  .pagination button { padding: 8px 10px; }
  .pagination span { font-size: 10px; }
}

.search-overview { margin: 0 0 18px; padding: 20px 24px; border: 1px solid #dce2eb; border-radius: 12px; background: #f0f5ff; line-height: 1.7; overflow-wrap: anywhere; }

/* Column visibility controls stay outside the horizontally scrolling table. */
.column-controls, .column-group-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.column-controls { margin-bottom: 14px; }
.column-controls button, .column-menu summary { min-height: 34px; padding: 8px 11px; font-size: 12px; }
.column-group-toggle[aria-expanded="false"] { background: #edf1f6; color: #68768b; border-style: dashed; }
.column-menu { position: relative; }
.column-menu summary { cursor: pointer; border: 1px solid #dce2eb; border-radius: 10px; background: white; }
.column-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 8; width: min(320px, 80vw); max-height: 55vh; overflow: auto; padding: 12px; background: white; border: 1px solid #dce2eb; border-radius: 12px; box-shadow: 0 12px 32px #263a5d20; }
.column-options fieldset { margin: 0 0 10px; padding: 8px; border: 1px solid #e6eaf0; border-radius: 8px; }
.column-options legend { color: #536278; font-size: 12px; }
.column-options label { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 12px; cursor: pointer; }
.column-options input { width: 16px; height: 16px; accent-color: var(--accent); }
.retailer-heading { position: sticky; padding-right: 38px; }
.column-collapse { position: absolute; top: 8px; right: 5px; min-height: 26px; width: 26px; padding: 0; border-color: transparent; background: transparent; color: inherit; }
@media (max-width: 600px) { .column-menu { position: static; } .column-controls { position: relative; } .column-options { top: 100%; width: min(320px, 100%); } }
