:root {
  color-scheme: light;
  --canvas: #f7f3eb;
  --surface: #fffdf8;
  --surface-subtle: #fbf7ef;
  --surface-muted: #f3eee5;
  --ink: #2b2722;
  --ink-soft: #655d54;
  --muted: #8a8177;
  --line: #e5ddd2;
  --line-strong: #d5c8b9;
  --accent: #e35e43;
  --accent-strong: #bd422f;
  --accent-soft: #fde9e1;
  --sold: #3d9163;
  --reserved: #b5842c;
  --confirmed: #477dae;
  --danger: #a74843;
  --focus: #1f6d8c;
  --rail-width: 236px;
  --detail-width: minmax(330px, 370px);
  --radius-sm: 5px;
  --radius-md: 8px;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(300px, 760px) minmax(150px, 1fr);
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 5px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.brand-used,
.brand-pick {
  display: inline-block;
  line-height: 1;
}

.brand-pick {
  color: var(--accent);
}

.catalog-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin: 0 20px;
  padding-left: 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.catalog-search:focus-within {
  border-color: var(--accent);
}

.catalog-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.catalog-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.catalog-search input::placeholder {
  color: var(--muted);
}

.catalog-search button {
  align-self: stretch;
  min-width: 62px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 800;
}

.catalog-search button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.catalog-meta {
  justify-self: end;
  padding: 0 20px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.directory-shell {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) var(--detail-width);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 1760px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

body:not(.has-selected-product) .directory-shell {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.has-selected-product) .price-panel {
  display: none;
}

.filter-rail {
  position: sticky;
  z-index: 15;
  top: 64px;
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-subtle);
}

.filter-rail-sticky {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  background: var(--surface-subtle);
}

.rail-title {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
}

.rail-title strong {
  font-size: 16px;
  letter-spacing: -0.04em;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
  padding: 7px 10px;
  background: var(--surface-subtle);
}

.category-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 3px;
  background: transparent;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}

.category-button:hover {
  background: var(--surface-subtle);
}

.category-button:active,
.facet-option:active,
.series-toggle:active,
.load-more:active,
.listing-action:active {
  transform: translateY(1px);
}

.category-button[aria-current="page"] {
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.facet-option::before {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: transparent;
  content: "";
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.facet-option[aria-pressed="true"]::before {
  content: "✓";
}

.category-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-count,
.facet-count {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.category-button[aria-current="page"] .category-count {
  color: var(--accent);
}

.model-filters {
  margin-bottom: 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}

.simple-site-header {
  grid-template-columns: 1fr;
  padding: 0 22px;
}

.page-header-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}

.page-header-home img {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.model-filters-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.model-filters-heading h2 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#filter-category-label {
  color: var(--accent-strong);
}

.filter-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.filter-context {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reset-filters,
.filter-visibility-toggle {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.reset-filters {
  color: var(--accent);
}

.filter-visibility-toggle {
  color: var(--ink-soft);
}

.reset-filters:hover,
.filter-visibility-toggle:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.model-filters #facet-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.model-facet-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.model-facet-row:last-child {
  border-bottom: 0;
}

.facet-disclosure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
  text-align: left;
}

.facet-row-label {
  font-size: 11px;
  font-weight: 800;
}

.facet-selected-summary,
.facet-disclosure-icon {
  display: none;
}

.facet-matrix-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 10px 6px 12px;
}

.model-facet-values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px 12px;
  min-width: 0;
}

.model-facet-choice {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 34px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.model-facet-choice:hover {
  color: var(--ink);
}

.model-facet-choice:has(input:checked) {
  color: var(--accent-strong);
  font-weight: 600;
}

.model-facet-choice input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

.model-facet-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-facet-count {
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.facet-more {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 92px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  white-space: nowrap;
}

.facet-more:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.active-filter-summary {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
}

.active-filter-label {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.active-filter-summary .reset-filters {
  align-self: stretch;
  justify-self: end;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.active-filter-summary .reset-filters:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  min-width: 0;
  padding: 7px 12px;
}

.active-filter-empty {
  color: var(--ink-soft);
  font-size: 11px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.active-filter-chip:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.active-filter-chip-remove {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.facet-more::after {
  width: 6px;
  height: 6px;
  margin: -3px 3px 0 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.facet-more[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.show-matched-models {
  display: none;
}

.facet-values {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.facet-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 29px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: left;
  transition: color 140ms ease, background-color 140ms ease;
}

.facet-option::before {
  flex: 0 0 auto;
}

.facet-option:hover {
  color: var(--ink);
}

.facet-option[aria-pressed="true"] {
  color: var(--accent-strong);
  font-weight: 800;
}

.facet-option[aria-pressed="true"]::before {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.facet-option .facet-count {
  margin-left: auto;
}

.facet-empty {
  padding: 2px 0 15px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.source-unavailable {
  display: block;
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.source-unavailable:hover {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-workspace {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding: 22px 24px 48px;
  background: var(--surface);
}

.workspace-heading { order: 1; }
.model-filters { order: 2; }
.catalog-message { order: 3; }
.listing-section { order: 4; }
.model-directory { order: 5; }

.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.workspace-heading > div {
  min-width: 0;
}

body.has-selected-product .workspace-heading {
  display: none;
}

.workspace-heading h1 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 31px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.workspace-intro {
  max-width: 62ch;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.catalog-message {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-size: 11px;
}

.catalog-message.is-error {
  border-left-color: var(--danger);
  color: var(--danger);
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 11px 0 9px;
  border-bottom: 1px solid var(--line-strong);
}

.section-bar h2,
.section-bar h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.section-bar > span,
.section-bar > time {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.section-bar.compact {
  min-height: 36px;
  padding-top: 8px;
  padding-bottom: 7px;
}

.model-directory {
  min-width: 0;
  margin-top: 22px;
  border-top: 1px solid var(--ink);
}

.model-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.model-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  table-layout: fixed;
}

.model-table th,
.model-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.model-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.model-table th:nth-child(1) { width: 29%; }
.model-table th:nth-child(2) { width: 21%; }
.model-table th:nth-child(3) { width: 14%; }
.model-table th:nth-child(4) { width: 10%; }
.model-table th:nth-child(5) { width: 13%; }
.model-table th:nth-child(6) { width: 13%; }

.model-table .numeric {
  text-align: right;
}

.product-row {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.product-row:hover {
  background: var(--surface-subtle);
}

.product-row[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--accent);
  background: var(--accent-soft);
}

.product-select {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.product-name {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-family,
.product-spec,
.product-maker {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 11px;
}

.product-family {
  margin-top: 2px;
  color: var(--muted);
}

.price-cell {
  color: var(--accent-strong);
  text-align: right !important;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.count-cell {
  color: var(--ink-soft);
  text-align: right !important;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.series-group-row td {
  padding: 0;
  border-bottom: 1px solid var(--line-strong);
}

.series-toggle {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 9px;
  border: 0;
  background: var(--surface-subtle);
  color: var(--ink);
  text-align: left;
  transition: background-color 140ms ease;
}

.series-toggle:hover {
  background: var(--accent-soft);
}

.series-toggle-icon {
  color: var(--accent);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.series-toggle-label {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-toggle-count {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.directory-empty,
.detail-empty {
  padding: 44px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.directory-empty strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.directory-empty p {
  margin: 5px 0 0;
  font-size: 12px;
}

.load-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.load-more:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.price-panel {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  border-left: 1px solid var(--line-strong);
  background: var(--surface-subtle);
}

.price-panel-sticky {
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  padding: 22px 18px 40px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.price-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-strong);
}

.price-panel-label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.price-panel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 2px 0 2px 8px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.price-panel-toggle:hover {
  color: var(--ink);
}

.price-panel-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.price-panel-toggle-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.price-panel-toggle:hover .price-panel-toggle-icon {
  border-color: var(--accent-strong);
  background: var(--surface);
}

.price-panel-content {
  padding-top: 16px;
}

.selection-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.selection-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.selection-head > p:last-child {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-message {
  padding: 19px 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-message.is-error {
  color: var(--danger);
}

.reference-price {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
}

.reference-price > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.reference-price span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.reference-price strong {
  color: var(--accent-strong);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.reference-price p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.stats-section {
  margin-top: 20px;
}

.listing-section {
  margin-top: 0;
}

.listing-options-toggle {
  display: none;
}

.price-summary {
  margin-top: 10px;
  border-top: 1px solid var(--line-strong);
}

.summary-block {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-block h3 {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.active-summary h3,
.active-summary dd {
  color: var(--accent-strong);
}

.sold-summary h3,
.sold-summary dd {
  color: var(--sold);
}

.reserved-summary h3,
.reserved-summary dd {
  color: var(--reserved);
}

.confirmed-summary h3,
.confirmed-summary dd {
  color: var(--confirmed);
}

.summary-block dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.summary-block dl > div {
  min-width: 0;
  padding: 0 7px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.summary-block dl > div:first-child {
  padding-left: 0;
}

.summary-block dl > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.summary-block dt {
  color: var(--muted);
  font-size: 9px;
}

.summary-block dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.summary-block > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.stats-group {
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line-strong);
}

.stats-group:last-child {
  border-bottom: 0;
}

.stats-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.stats-group-title h4 {
  margin: 0;
  font-size: 11px;
}

.stats-group-title span {
  color: var(--muted);
  font-size: 9px;
}

.price-chart {
  margin: 3px 0 12px;
}

.price-chart-empty {
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.price-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.price-chart svg + .price-chart-empty {
  min-height: 0;
  padding: 8px 0 0;
  border: 0;
}

.stats-empty-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chart-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.active-series,
.chart-point.active-series {
  stroke: var(--accent);
}

.chart-line.sold-series,
.chart-point.sold-series {
  stroke: var(--sold);
}

.chart-line.reserved-series,
.chart-point.reserved-series {
  stroke: var(--reserved);
}

.chart-line.confirmed-series,
.chart-point.confirmed-series {
  stroke: var(--confirmed);
}

.chart-point {
  fill: var(--surface-subtle);
  pointer-events: none;
  stroke-width: 2;
}

.chart-point-hit { cursor: pointer; fill: transparent; }

.chart-point-marker:focus .chart-point,
.price-chart-scroll g:focus .chart-point {
  outline: none;
  stroke-width: 4;
}

.price-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 11px;
}

.price-chart-legend .active-series::before,
.price-chart-legend .reserved-series::before,
.price-chart-legend .confirmed-series::before,
.price-chart-legend .sold-series::before {
  display: inline-block;
  width: 13px;
  height: 2px;
  margin: 0 5px 3px 0;
  background: var(--accent);
  content: "";
}

.price-chart-legend .sold-series::before {
  background: var(--sold);
}

.price-chart-legend .reserved-series::before {
  background: var(--reserved);
}

.price-chart-legend .confirmed-series::before {
  background: var(--confirmed);
}

.chart-gap-note {
  margin-left: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.stats-table th,
.stats-table td {
  padding: 7px 3px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stats-table th {
  color: var(--muted);
  font-weight: 700;
}

.stats-table th:first-child,
.stats-table td:first-child {
  width: 24%;
  padding-left: 0;
  text-align: left;
}

.stats-table td:first-child {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-table tr:last-child td {
  border-bottom: 0;
}

.stats-table tr.combined-row td {
  color: var(--ink);
  font-weight: 900;
}

.metric-pair strong,
.metric-pair small {
  display: block;
}

.metric-pair small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.sold-metric strong {
  color: var(--sold);
}

.sample-pair {
  width: 18%;
  color: var(--ink-soft);
}

.method-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.listing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--ink);
}

.listing-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.listing-heading > span {
  color: var(--ink-soft);
  font-size: 10px;
  text-align: right;
}

.listing-heading > span.is-stale {
  color: var(--danger);
  font-weight: 800;
}

.back-to-models {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.back-to-models:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listing-message {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-size: 11px;
}

.listing-message.is-error {
  border-left-color: var(--danger);
  color: var(--danger);
}

.listing-filter-strip {
  border-bottom: 1px solid var(--line);
}

.listing-filter-strip .facet-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 44px;
  border-top: 1px solid var(--line);
}

.listing-filter-strip .facet-row:first-child {
  border-top: 0;
}

.listing-filter-strip .facet-row h2 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 9px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 11px;
}

.listing-filter-strip .facet-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 9px;
  padding: 6px 9px;
}

.listing-filter-strip .facet-option {
  display: inline-flex;
  width: auto;
  min-height: 28px;
  padding: 4px 2px;
  font-size: 11px;
}

.listing-filter-strip .facet-option::before {
  width: 13px;
  height: 13px;
}

.listing-controls {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr auto;
  gap: 8px;
  padding: 12px 0 9px;
  border-bottom: 1px solid var(--line);
}

.listing-controls label {
  display: grid;
  gap: 4px;
}

.listing-controls label span {
  color: var(--muted);
  font-size: 9px;
}

.listing-controls select,
.listing-controls input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 11px;
}

.listing-controls select:focus,
.listing-controls input:focus {
  border-color: var(--accent);
  outline: 0;
}

.listing-controls button {
  align-self: end;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--surface);
  font-size: 11px;
  font-weight: 800;
}

.listing-controls button:hover {
  background: var(--accent-strong);
}

.listing-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) 72px 104px;
  gap: 10px;
}

.listing-row {
  align-items: center;
  min-height: 86px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.listing-media {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  text-decoration: none;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

.listing-body {
  min-width: 0;
}

.listing-source {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
}

.listing-title {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

.listing-title:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
}

.listing-scope {
  color: var(--muted);
}

.listing-observed {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.listing-commerce {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.listing-price {
  color: var(--accent-strong);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.listing-action {
  min-width: 82px;
  padding: 5px 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.listing-action:hover {
  background: var(--accent-soft);
}

.listing-model {
  color: var(--ink);
  font-weight: 750;
}

.listing-model-action {
  min-height: 28px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-underline-offset: 3px;
}

.listing-model-action:hover {
  color: var(--accent);
}

.listing-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 0 4px;
}

.listing-page-numbers {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}

.listing-page-ellipsis {
  width: 18px;
  flex: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.listing-pagination button {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
}

.listing-pagination button:hover:not(:disabled) {
  color: var(--accent-strong);
  border-bottom-color: var(--line-strong);
}

.listing-pagination button[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 850;
}

.listing-pagination button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.listing-pagination button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.45;
}

.listing-pagination button[aria-current="page"]:disabled {
  opacity: 1;
}

.listing-page-direction {
  width: auto;
  min-width: 42px !important;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1280px) {
  :root {
    --rail-width: 214px;
    --detail-width: minmax(300px, 340px);
  }

  .catalog-workspace {
    padding-right: 18px;
    padding-left: 18px;
  }

  .model-facet-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .listing-row {
    grid-template-columns: 64px minmax(170px, 1fr) 62px 94px;
    gap: 8px;
  }

  .listing-media {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 1000px) {
  .model-facet-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .brand {
    border-right: 0;
  }

  .catalog-meta {
    display: none;
  }

  .directory-shell,
  body:not(.has-selected-product) .directory-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.has-selected-product .directory-shell {
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  .filter-rail {
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .filter-rail-sticky {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .rail-title {
    display: none;
  }

  .category-rail {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: visible;
    padding: 7px 10px;
  }

  .category-button {
    width: 100%;
    min-width: 0;
    border-bottom: 2px solid transparent;
    border-left: 0;
  }

  .category-button[aria-current="page"] {
    border-bottom-color: var(--accent);
    border-left-color: transparent;
  }

  .model-filters #facet-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-workspace {
    grid-row: 2;
  }

  .price-panel {
    grid-column: 1;
    grid-row: 3;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .price-panel-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }

  body.has-selected-product .model-directory {
    display: none;
  }

}

@media (max-width: 900px) and (min-width: 641px) {
  .category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-button {
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .category-button[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 11px;
  }

  .simple-site-header {
    padding: 0 14px;
  }

  .page-header-home {
    min-height: 52px;
  }

  .brand {
    min-height: 52px;
    padding: 0 16px;
    border-right: 0;
  }

  .catalog-search {
    margin: 0 12px;
  }

  .filter-rail {
    position: static;
  }

  .rail-title {
    min-height: 48px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .category-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-right: 8px;
    padding-left: 8px;
  }

  .category-button {
    width: 100%;
    min-width: 0;
    padding-right: 7px;
    padding-left: 7px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .category-button[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
  }

  .model-filters #facet-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .model-filters-heading {
    gap: 8px;
    min-height: 48px;
    padding: 7px 8px;
  }

  .model-filters-heading h2 {
    font-size: 13px;
  }

  .filter-context {
    display: none;
  }

  .filter-visibility-toggle {
    min-height: 34px;
    padding: 0 4px;
  }

  .model-facet-row {
    display: block;
  }

  .facet-disclosure {
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 8px;
    background: var(--surface);
  }

  .facet-selected-summary,
  .facet-disclosure-icon {
    display: block;
  }

  .facet-selected-summary {
    min-width: 0;
    overflow: hidden;
    color: var(--accent-strong);
    font-size: 10px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .facet-disclosure-icon {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

  .facet-disclosure[aria-expanded="false"] + .facet-matrix-body {
    display: none;
  }

  .facet-matrix-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px 8px 10px;
    background: var(--surface-subtle);
  }

  .model-facet-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .model-facet-choice {
    grid-template-columns: 15px minmax(0, 1fr) auto;
  }

  .facet-more {
    width: auto;
    justify-self: end;
  }

  .active-filter-summary {
    grid-template-columns: 82px minmax(0, 1fr) auto;
  }

  .active-filter-summary .reset-filters {
    min-height: 38px;
    padding: 0 10px;
    border-left: 1px solid var(--line);
  }

  .active-filter-label {
    padding: 0 8px;
  }

  .active-filter-chips {
    gap: 3px 12px;
    padding: 7px 8px;
  }

  .show-matched-models {
    display: block;
    width: calc(100% - 16px);
    min-height: 42px;
    margin: 10px 8px 12px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--surface);
    font-size: 12px;
    font-weight: 800;
  }

  .catalog-workspace {
    padding: 16px 12px 32px;
  }

  .workspace-heading {
    align-items: start;
    margin-bottom: 14px;
  }

  .workspace-heading h1 {
    font-size: 24px;
  }

  .model-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .model-table {
    display: block;
    min-width: 0;
  }

  .model-table thead {
    display: none;
  }

  .model-table tbody,
  .model-table .series-group-row,
  .model-table .series-group-row td {
    display: block;
    width: 100%;
  }

  .model-table .product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
  }

  .model-table .product-row td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .model-table .product-row td:first-child {
    grid-column: 1 / -1;
  }

  .model-table .product-row td:nth-child(3) {
    text-align: right;
  }

  .model-table .product-row td:nth-child(n + 4) {
    display: none;
  }

  .listing-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .listing-heading > span {
    text-align: left;
  }

  .listing-filter-strip .facet-row {
    display: block;
  }

  .listing-filter-strip .facet-row h2 {
    min-height: 0;
    padding: 9px 0 2px;
    background: transparent;
  }

  .listing-filter-strip .facet-values {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 0 8px;
  }

  .listing-controls {
    grid-template-columns: 1fr 1fr;
  }

  .listing-controls label:first-child {
    grid-column: 1 / -1;
  }

  .listing-controls button {
    grid-column: 1 / -1;
  }

  .listing-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .listing-media {
    width: 60px;
    height: 60px;
    grid-row: 1 / span 2;
  }

  .listing-observed {
    grid-column: 2;
  }

  .listing-commerce {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .listing-action {
    min-width: 70px;
  }

  .price-panel-sticky {
    padding: 18px 14px 30px;
  }

  .listing-filter-strip .source-facet .facet-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .listing-filter-strip .source-facet .facet-option,
  .listing-filter-strip .source-facet .source-unavailable {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    padding: 16px 14px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* v5 search-first responsive shell */
:root {
  --canvas: #f6f8f7;
  --surface-subtle: #f8faf9;
  --surface-muted: #f1f4f2;
  --ink: #171d19;
  --ink-soft: #4d5851;
  --muted: #667168;
  --line: #dde2df;
  --line-strong: #cbd3ce;
  --accent: #18734a;
  --accent-strong: #0f5d3a;
  --accent-soft: #e8f3ed;
  --header-height: 60px;
  --shell-max: 1600px;
}

body {
  font-size: 15px;
}

.site-header {
  grid-template-columns: minmax(160px, 200px) minmax(320px, 720px) minmax(0, 1fr);
  min-height: var(--header-height);
  padding: 0 clamp(18px, 2vw, 32px);
  column-gap: clamp(18px, 2vw, 30px);
  border-bottom-color: var(--line);
}

.brand {
  min-height: var(--header-height);
  padding: 0;
  border-right: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.catalog-search {
  height: 40px;
  margin: 0;
  border-color: var(--line-strong);
  border-radius: 6px;
  box-shadow: none;
}

.catalog-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(24 115 74 / 10%);
}

.catalog-search input {
  font-size: 14px;
}

.catalog-search button {
  min-width: 68px;
  padding-inline: 17px;
  font-size: 13px;
}

.catalog-meta {
  padding: 0;
}

.directory-shell {
  max-width: var(--shell-max);
  min-height: calc(100vh - var(--header-height));
  border-right: 0;
  border-left: 0;
}

.filter-rail {
  top: var(--header-height);
  background: var(--surface);
}

.filter-rail-sticky {
  grid-template-columns: 140px minmax(0, 1fr);
  background: var(--surface);
}

.rail-title {
  min-height: 48px;
  padding-inline: 24px;
  background: var(--surface);
}

.rail-title strong {
  font-size: 14px;
}

.category-rail {
  gap: 0;
  padding: 0 12px;
  background: var(--surface);
}

.category-button {
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 0;
  font-size: 13px;
}

.category-button:hover {
  background: var(--surface-subtle);
}

.workspace-heading {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.workspace-heading h1 {
  font-size: clamp(26px, 2vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.workspace-intro {
  margin-top: 8px;
  font-size: 13px;
}

.model-directory {
  border-top-color: var(--line-strong);
}

.model-table th,
.model-table td {
  padding: 12px 13px;
}

.model-table th {
  font-size: 11px;
}

.product-name {
  font-size: 13px;
}

.product-family,
.product-spec,
.product-maker,
.count-cell {
  font-size: 12px;
}

.price-cell {
  font-size: 13px;
}

.series-toggle {
  padding: 13px;
  background: var(--surface);
}

.series-toggle:hover {
  background: var(--surface-subtle);
}

.series-toggle-label {
  font-size: 13px;
}

.site-footer {
  max-width: var(--shell-max);
}

@media (min-width: 1121px) {
  .catalog-workspace {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    grid-template-areas:
      ". heading"
      "filters message"
      "filters listings"
      "filters directory";
    align-content: start;
    column-gap: clamp(28px, 3vw, 44px);
    padding: 30px clamp(28px, 3vw, 46px) 56px;
  }

  .workspace-heading {
    grid-area: heading;
  }

  .catalog-message {
    grid-area: message;
  }

  .model-filters {
    position: static;
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: start;
    margin: 0;
    overflow: visible;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
  }

  .model-filters-heading {
    min-height: 54px;
    padding: 10px 13px;
  }

  .model-filters-heading h2 {
    font-size: 14px;
  }

  .filter-heading-actions {
    gap: 8px;
  }

  .filter-context {
    font-size: 9px;
  }

  .active-filter-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .active-filter-label {
    min-height: 38px;
    padding: 0 12px;
    border-right: 0;
    background: var(--surface-subtle);
  }

  .active-filter-chips {
    grid-column: 1 / -1;
    gap: 5px 10px;
    padding: 9px 12px;
  }

  .active-filter-summary .reset-filters {
    grid-column: 2;
    grid-row: 1;
    min-height: 38px;
    padding-inline: 12px;
    border-left: 0;
    background: var(--surface-subtle);
  }

  .active-filter-chip {
    min-height: 26px;
    padding: 0 7px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--accent-soft);
  }

  .model-facet-row {
    display: block;
  }

  .facet-disclosure {
    min-height: 38px;
    padding: 8px 12px 6px;
    border-right: 0;
    background: var(--surface-subtle);
  }

  .facet-row-label {
    font-size: 12px;
  }

  .facet-matrix-body {
    display: block;
    min-height: 0;
    padding: 5px 12px 9px;
  }

  .model-facet-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .model-facet-choice {
    height: 30px;
    font-size: 12px;
  }

  .model-facet-count {
    font-size: 10px;
  }

  .facet-more {
    justify-content: flex-start;
    width: 100%;
    min-height: 30px;
    padding-left: 21px;
  }

  .model-directory {
    grid-area: directory;
  }

  .model-table {
    min-width: 0;
  }

  .model-directory > .section-bar {
    display: flex;
  }

  .listing-section {
    grid-area: listings;
  }

  body.has-selected-product .catalog-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "listings"
      "directory";
  }

  body.has-selected-product .model-filters {
    display: none;
  }

  body.has-selected-product .model-directory > .section-bar {
    display: flex;
  }
}

@media (max-width: 780px) {
  .model-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .model-table {
    display: block;
    min-width: 0;
  }

  .model-table thead {
    display: none;
  }

  .model-table tbody,
  .model-table .series-group-row,
  .model-table .series-group-row td {
    display: block;
    width: 100%;
  }

  .model-table .product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
  }

  .model-table .product-row td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .model-table .product-row td:first-child {
    grid-column: 1 / -1;
  }

  .model-table .product-row td:nth-child(3) {
    text-align: right;
  }

  .model-table .product-row td:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 1120px) and (min-width: 641px) {
  .site-header {
    grid-template-columns: 170px minmax(0, 1fr);
    padding-inline: 24px;
  }

  .catalog-meta {
    display: none;
  }

  .filter-rail-sticky {
    display: block;
  }

  .rail-title {
    display: none;
  }

  .filter-rail::after {
    display: none;
  }

  .category-rail {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding: 0 24px;
  }

  .category-button {
    width: 100%;
    min-width: 0;
    border-bottom: 2px solid transparent;
    border-left: 0;
  }

  .category-button[aria-current="page"] {
    border-bottom-color: var(--accent);
    border-left-color: transparent;
  }

  .catalog-workspace {
    padding: 28px 30px 52px;
  }

  .workspace-heading {
    margin-bottom: 18px;
  }

  .workspace-heading h1 {
    font-size: clamp(26px, 3.4vw, 30px);
    letter-spacing: -0.035em;
  }

  .workspace-intro {
    display: none;
  }

  .model-filters {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
  }

  .model-filters-heading {
    grid-template-columns: auto auto;
    min-height: 56px;
    padding: 8px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .model-filters-heading h2 {
    font-size: 13px;
  }

  .filter-context {
    display: none;
  }

  .filter-visibility-toggle {
    min-height: 34px;
    padding-inline: 10px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent-strong);
  }

  .active-filter-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 56px;
    border-top: 0;
  }

  .active-filter-label {
    padding-inline: 14px;
    background: var(--surface);
  }

  .active-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-inline: 12px;
    scrollbar-width: thin;
  }

  .active-filter-summary .reset-filters {
    min-height: 56px;
  }

  #model-filter-body {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .model-directory > .section-bar {
    display: flex;
  }

  .model-directory {
    order: 5;
  }

  .listing-section {
    order: 4;
  }

  body.has-selected-product .model-directory > .section-bar {
    display: flex;
  }

  .model-table {
    min-width: 720px;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .category-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 0 12px 8px;
  }

  .brand {
    min-height: 44px;
    padding: 0;
    font-size: 18px;
  }

  .catalog-search {
    width: 100%;
    height: 38px;
    margin: 0;
  }

  .category-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding: 4px 8px;
  }

  .category-button {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 1px;
    min-height: 40px;
    padding: 4px 5px;
    text-align: center;
  }

  .category-label {
    overflow: visible;
    font-size: 11px;
    text-overflow: clip;
  }

  .category-count {
    font-size: 9px;
  }

  .catalog-workspace {
    padding: 16px 12px 36px;
  }

  .workspace-heading {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 11px;
  }

  .workspace-heading h1 {
    font-size: clamp(22px, 6.5vw, 26px);
    letter-spacing: -0.035em;
  }

  .workspace-intro {
    display: none;
  }

  .model-filters {
    border-top-color: var(--line-strong);
  }

  .listing-options-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
  }

  .listing-options-toggle::after {
    content: "+";
  }

  .listing-options-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .active-filter-summary {
    border-top: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .listing-model-action {
    min-height: 40px;
  }
}

@media (max-width: 780px) {
  .model-table {
    min-width: 0;
  }
}

/* Shared document pages */
.site-header.simple-site-header {
  grid-template-columns: minmax(0, 1fr);
  min-height: var(--header-height);
  padding: 0 clamp(20px, 3vw, 40px);
}

.page-header-home {
  min-height: var(--header-height);
  font-size: 14px;
  letter-spacing: -0.025em;
}

.page-header-home img {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.content-page {
  width: min(calc(100% - 40px), 920px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.content-page-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.content-page h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.content-page .lead {
  max-width: 70ch;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.content-page section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.content-page section h2 {
  margin: 0 0 11px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.content-page p,
.content-page li {
  max-width: 72ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.content-page p {
  margin: 10px 0 0;
}

.content-page ul,
.content-page ol {
  margin: 0;
  padding-left: 22px;
}

.content-page li + li {
  margin-top: 6px;
}

.category-link-list {
  padding-left: 0 !important;
  list-style: none;
}

.category-link-list li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.category-link-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.category-link-list a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.category-link-list a::after {
  color: var(--accent);
  content: "→";
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.page-links a,
.content-page p a,
.content-page li a {
  color: var(--accent-strong);
  font-weight: 700;
  text-underline-offset: 3px;
}

.content-page .category-link-list a {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-header.simple-site-header {
    min-height: 48px;
    padding: 0 16px;
  }

  .page-header-home {
    min-height: 48px;
  }

  .content-page {
    width: min(calc(100% - 32px), 920px);
    padding: 28px 0 52px;
  }

  .content-page-header {
    padding-bottom: 21px;
  }

  .content-page h1 {
    font-size: 27px;
  }

  .content-page .lead {
    font-size: 14px;
  }

  .content-page section {
    padding: 20px 0;
  }

  .content-page p,
  .content-page li {
    font-size: 14px;
  }
}

.adfit-banner {
  display: flex;
  width: 100%;
  min-height: 116px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
}

.adfit-banner[hidden] {
  display: none;
}

.adfit-banner .kakao_ad_area {
  flex: 0 0 320px;
}

/* v66: direct model chooser and on-demand price detail */
.workspace-heading,
body.has-selected-product .workspace-heading {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(230px, 420px);
  align-items: center;
  gap: 8px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category-selector,
.model-selector {
  position: relative;
  width: 100%;
  min-width: 0;
}

.model-selector::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

#model-select {
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 13px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

#model-select:hover {
  border-color: var(--ink-soft);
}

#model-select:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(24 115 74 / 12%);
  outline-offset: 1px;
}

#model-select:disabled {
  cursor: wait;
  opacity: 0.62;
}

.workspace-source-facet {
  position: static;
  display: flex;
  grid-column: 1 / -1;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding-top: 3px;
}

.source-selector-label {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.source-selector-panel {
  position: static;
  display: flex;
  width: auto;
  max-width: 100%;
  max-height: none;
  min-width: 0;
  align-items: center;
  gap: 6px 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workspace-source-facet .facet-values {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.source-choice {
  display: inline-flex;
  min-width: 0;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.source-choice input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
}

.source-choice:has(input:checked) {
  color: var(--accent-strong);
  font-weight: 800;
}

.source-more-toggle {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.source-more-toggle:hover,
.source-more-toggle:focus-visible {
  color: var(--accent-strong);
}

.overview-panels,
.model-directory,
.price-panel {
  display: none !important;
}

.listing-section {
  margin-top: 0;
}

.model-detail-dialog {
  width: min(980px, calc(100vw - 36px));
  max-width: none;
  max-height: min(88vh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink-soft);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(20 31 25 / 18%);
}

.model-detail-window {
  max-height: inherit;
  overflow-y: auto;
}

.model-detail-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ink);
  background: var(--surface);
}

.model-detail-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
}

.model-detail-header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.model-detail-header h2:focus {
  outline: none;
}

.model-detail-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.model-detail-close:hover,
.model-detail-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.model-detail-dialog .price-panel-content {
  padding: 14px 18px 20px;
}

.model-detail-dialog .selection-head {
  padding: 0 0 10px;
}

.model-detail-dialog .selection-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.model-detail-dialog .price-chart-disclosure {
  margin-top: 14px;
  border: 0;
}

.model-detail-dialog .stats-section {
  display: block;
}

.model-detail-dialog .stats-group {
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 640px) {
  .workspace-heading,
  body.has-selected-product .workspace-heading {
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 0.58fr);
    gap: 8px;
  }

  #category-select,
  #model-select {
    min-height: 40px;
    padding-right: 30px;
    padding-left: 10px;
    font-size: 12px;
  }

  .category-selector::after,
  .model-selector::after {
    right: 11px;
  }

  .workspace-source-facet {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 4px 10px;
  }

  .source-selector-label {
    padding-top: 7px;
  }

  .source-selector-panel {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .workspace-source-facet .facet-values {
    gap: 2px 10px;
  }

  .source-choice {
    min-height: 28px;
    font-size: 10px;
  }

  .model-detail-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .model-detail-header {
    min-height: 58px;
    padding: 10px 12px;
  }

  .model-detail-header h2 {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .model-detail-header > div {
    min-width: 0;
  }

  .model-detail-dialog .price-panel-content {
    padding: 12px;
  }

  .model-detail-dialog .stats-table {
    min-width: 520px;
  }

  .model-detail-dialog .stats-group {
    overflow-x: auto;
  }
}

/* Focused part-selection workspace */
.directory-shell {
  grid-template-rows: minmax(0, 1fr);
}

.catalog-workspace,
.price-panel {
  grid-row: 1;
}

.workspace-heading {
  position: relative;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.workspace-heading h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.has-selected-product .workspace-heading {
  display: flex;
}

.category-selector {
  position: relative;
  width: min(220px, 100%);
  min-width: 0;
}

.category-selector::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

#category-select {
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.025em;
  cursor: pointer;
}

#category-select:hover {
  border-color: var(--ink-soft);
}

#category-select:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(24 115 74 / 12%);
  outline-offset: 1px;
}

#category-select:disabled {
  cursor: wait;
  opacity: 0.6;
}

.model-filters-heading h2 {
  font-size: 14px;
}

.listing-heading {
  min-height: 0;
  padding: 0;
  border: 0;
}

.listing-heading h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript-category-links {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.noscript-category-links a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  text-decoration: none;
}

.back-to-models:not([hidden]) {
  margin: 0 0 12px;
}

@media (min-width: 1121px) {
  .catalog-workspace {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    grid-template-areas:
      "filters heading"
      "filters message"
      "filters listings"
      "filters directory";
    column-gap: clamp(24px, 2.5vw, 36px);
    padding-top: 24px;
  }

  .model-filters {
    padding-right: 18px;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
  }

  .model-filters-heading {
    padding: 0 0 11px;
  }

  .active-filter-summary {
    border-top: 0;
  }

  .active-filter-label,
  .active-filter-summary .reset-filters,
  .facet-disclosure {
    background: var(--surface);
  }

  .active-filter-chip {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.has-selected-product .catalog-workspace {
    grid-template-areas:
      "heading"
      "listings"
      "directory";
  }
}

@media (max-width: 1120px) {
  .directory-shell,
  body:not(.has-selected-product) .directory-shell,
  body.has-selected-product .directory-shell {
    grid-template-rows: auto auto;
  }

  .catalog-workspace {
    grid-row: 1;
  }

  .price-panel {
    grid-row: 2;
  }

  body.has-selected-product .model-filters {
    display: none;
  }
}

@media (max-width: 640px) {
  .workspace-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  body.has-selected-product .workspace-heading {
    display: grid;
  }

  .category-selector {
    width: 100%;
  }

  #category-select {
    min-height: 40px;
    font-size: 14px;
  }

}

/* Compact browse and listing controls */
.workspace-heading,
body.has-selected-product .workspace-heading {
  display: grid;
  grid-template-columns: minmax(170px, 210px) 150px;
  gap: 10px 12px;
  justify-content: start;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.workspace-source-facet {
  position: relative;
  min-width: 0;
}

.workspace-source-facet > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 36px 0 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-source-facet > summary::-webkit-details-marker {
  display: none;
}

.workspace-source-facet > summary::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  content: "";
  transform: translateY(-70%) rotate(45deg);
}

.workspace-source-facet[open] > summary {
  border-color: var(--accent);
}

.workspace-source-facet[open] > summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.workspace-source-facet > summary:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgb(24 115 74 / 12%);
  outline-offset: 1px;
}

.source-selector-panel {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  left: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: min(340px, 60vh);
  padding: 8px 12px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(31 46 38 / 12%);
}

.workspace-source-facet .facet-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
}

.workspace-source-facet .facet-option,
.workspace-source-facet .source-unavailable {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 3px 0;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.workspace-source-facet .facet-option {
  gap: 6px;
}

.workspace-source-facet .facet-option::before {
  width: 12px;
  height: 12px;
}

.workspace-source-facet .source-unavailable {
  padding-left: 0;
}

.listing-options {
  border-top: 1px solid var(--line);
}

.listing-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 5px 0 7px;
}

.listing-sort-tabs {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.listing-controls .listing-sort-tab {
  width: auto;
  height: auto;
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.listing-controls .listing-sort-tab:first-child {
  padding-left: 0;
}

.listing-controls .listing-sort-tab + .listing-sort-tab {
  border-left: 1px solid var(--line-strong);
}

.listing-controls .listing-sort-tab:hover {
  background: transparent;
  color: var(--ink);
}

.listing-controls .listing-sort-tab[aria-pressed="true"] {
  color: var(--accent-strong);
  font-weight: 850;
}

.listing-controls .listing-sort-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.listing-price-range {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.price-range-label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.listing-controls .listing-price-range label {
  display: block;
}

.listing-price-range input {
  width: 104px;
}

.price-range-separator {
  color: var(--line-strong);
  font-size: 12px;
}

.listing-controls .listing-price-range > button {
  height: 30px;
  padding: 0 10px;
}

@media (max-width: 900px) {
  .workspace-heading,
  body.has-selected-product .workspace-heading {
    grid-template-columns: minmax(160px, 190px) 145px;
    gap: 8px 10px;
  }
}

@media (max-width: 640px) {
  .workspace-heading,
  body.has-selected-product .workspace-heading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-selector-panel {
    right: 0;
    left: auto;
    width: min(354px, calc(100vw - 24px));
  }

  .workspace-source-facet .facet-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-top: 7px;
  }

  .listing-sort-tabs {
    width: 100%;
  }

  .listing-price-range {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
    width: 100%;
  }

  .listing-price-range input {
    width: 100%;
  }

  .listing-controls .listing-price-range > button {
    grid-column: 5;
  }
}

/* Compact model selection and honest price comparison */
.directory-shell,
body:not(.has-selected-product) .directory-shell,
body.has-selected-product .directory-shell {
  display: block;
  width: 100%;
  max-width: 1760px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.catalog-workspace,
body.has-selected-product .catalog-workspace {
  display: block;
  padding: 20px 24px 48px;
}

.workspace-content {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: clamp(22px, 2.5vw, 36px);
  align-items: start;
}

.results-flow {
  min-width: 0;
}

.overview-panels {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(470px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.model-filters,
body.has-selected-product .model-filters {
  display: block;
  order: 0;
  grid-row: auto;
  min-width: 0;
  padding-right: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.model-directory,
body.has-selected-product .model-directory,
.price-panel,
body:not(.has-selected-product) .price-panel,
body.has-selected-product .price-panel {
  display: block;
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  background: var(--surface);
}

.model-directory {
  order: 1;
}

.price-panel {
  order: 2;
}

.model-directory-bar,
.price-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-strong);
}

.model-directory-bar > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.model-directory-bar h2,
.price-panel-label {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.model-directory-bar #model-list-context {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-visibility-toggle,
.price-panel-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.section-toggle-icon,
.price-panel-toggle-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1;
}

.section-visibility-toggle:hover,
.price-panel-toggle:hover {
  color: var(--ink);
}

.section-visibility-toggle:focus-visible,
.price-panel-toggle:focus-visible,
.model-page-number:focus-visible,
.model-page-direction:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#model-directory-content[hidden],
#price-panel-content[hidden] {
  display: none;
}

.model-table-wrap {
  overflow: visible;
}

.model-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.model-table th,
.model-table td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.model-table th:first-child {
  width: 58%;
}

.model-table th:nth-child(2) {
  width: 42%;
}

.model-table .product-row {
  display: table-row;
}

.model-table .product-row td {
  display: table-cell;
}

.model-table .product-row[aria-selected="true"] {
  background: var(--accent-soft);
}

.model-table .product-row[aria-selected="true"] .product-name {
  color: var(--accent-strong);
}

.product-select {
  min-width: 0;
}

.product-name,
.product-family,
.product-spec {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name {
  font-size: 12px;
}

.product-family,
.product-spec {
  color: var(--muted);
  font-size: 10px;
}

.model-pagination,
.listing-pagination {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-top: 1px solid var(--line);
}

.model-pagination[hidden],
.listing-pagination[hidden] {
  display: none;
}

.model-page-numbers,
.listing-page-numbers {
  display: flex;
  align-items: center;
  gap: 2px;
}

.model-page-number,
.model-page-direction {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.model-page-number:hover,
.model-page-direction:hover:not(:disabled) {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.model-page-number[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
  color: var(--accent-strong);
  font-weight: 850;
}

.model-page-direction:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.45;
}

.price-panel-content {
  padding: 12px 0 0;
}

.selection-head {
  padding: 0 0 9px;
  border-bottom: 0;
}

.selection-head h2 {
  font-size: 16px;
}

#price-panel-title {
  scroll-margin-top: 96px;
}

.detail-message {
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.price-summary {
  margin: 0;
  border-top: 0;
}

.selected-price-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.selected-price-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  table-layout: fixed;
}

.selected-price-table th,
.selected-price-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.selected-price-table thead th {
  color: var(--muted);
  font-weight: 750;
}

.selected-price-table th:first-child,
.selected-price-table tbody th {
  width: 25%;
  color: var(--ink-soft);
  text-align: left;
  font-weight: 800;
}

.selected-price-table td.is-up {
  color: var(--danger);
}

.selected-price-table td.is-down {
  color: var(--accent-strong);
}

.price-chart-disclosure {
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}

.price-chart-disclosure > summary {
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.price-chart-disclosure .stats-section {
  margin: 0;
  padding-bottom: 12px;
}

.listing-section {
  margin-top: 20px;
  border-top: 1px solid var(--ink);
}

@media (max-width: 1260px) {
  .overview-panels {
    grid-template-columns: minmax(300px, 0.8fr) minmax(430px, 1.2fr);
    gap: 18px;
  }
}

@media (max-width: 1120px) {
  .directory-shell,
  body:not(.has-selected-product) .directory-shell,
  body.has-selected-product .directory-shell {
    min-height: calc(100vh - 56px);
  }

  .catalog-workspace,
  body.has-selected-product .catalog-workspace {
    padding: 16px 18px 42px;
  }

  .workspace-content {
    display: block;
  }

  .model-filters,
  body.has-selected-product .model-filters {
    display: block;
    padding-right: 0;
    margin-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .overview-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .price-panel {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .catalog-workspace,
  body.has-selected-product .catalog-workspace {
    padding: 12px 12px 36px;
  }

  .overview-panels {
    gap: 12px;
  }

  .model-directory-bar > div {
    gap: 7px;
  }

  .model-table {
    display: table;
    min-width: 0;
  }

  .model-table thead {
    display: table-header-group;
  }

  .model-table tbody {
    display: table-row-group;
  }

  .model-table .product-row {
    display: table-row;
  }

  .model-table .product-row td {
    display: table-cell;
    width: auto;
    padding: 9px 5px;
  }

  .model-table .product-row td:first-child {
    width: 58%;
  }

  .model-table .product-row td:nth-child(2) {
    width: 42%;
  }

  .product-name {
    font-size: 11px;
  }

  .model-page-number,
  .model-page-direction {
    min-width: 28px;
    padding: 0 5px;
    font-size: 10px;
  }

  .selected-price-table-wrap {
    overflow: visible;
  }

  .selected-price-table {
    display: block;
    min-width: 0;
  }

  .selected-price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .selected-price-table tbody,
  .selected-price-table tr {
    display: block;
  }

  .selected-price-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .selected-price-table th,
  .selected-price-table td,
  .selected-price-table th:first-child,
  .selected-price-table tbody th {
    display: block;
    width: auto;
    padding: 4px 6px;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .selected-price-table tbody th {
    grid-column: 1 / -1;
    padding-bottom: 6px;
    color: var(--ink);
    font-size: 11px;
  }

  .selected-price-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
  }

  .listing-section {
    margin-top: 14px;
  }
}

/* Keep the v66 controls authoritative after legacy responsive rules. */
.workspace-heading,
body.has-selected-product .workspace-heading {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(230px, 420px);
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.workspace-source-facet {
  position: static;
  display: flex;
  grid-column: 1 / -1;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding-top: 3px;
}

.source-selector-panel {
  position: static;
  display: flex;
  width: auto;
  max-width: 100%;
  max-height: none;
  min-width: 0;
  align-items: center;
  gap: 6px 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-source-facet .facet-values {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.overview-panels,
.model-directory,
.price-panel {
  display: none !important;
}

@media (max-width: 640px) {
  .workspace-heading,
  body.has-selected-product .workspace-heading {
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 0.58fr);
    gap: 8px;
  }

  .workspace-source-facet {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 4px 10px;
  }

  .source-selector-panel,
  .workspace-source-facet .facet-values {
    min-width: 0;
    flex-wrap: wrap;
    gap: 2px 10px;
  }
}

/* v69: stable compact search shell */
html,
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

.site-header {
  grid-template-columns: minmax(112px, 160px) minmax(0, 640px) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  min-height: 52px;
  padding: 0 clamp(12px, 2vw, 24px);
  gap: clamp(10px, 1.6vw, 22px);
}

.brand {
  min-width: 0;
  min-height: 52px;
  font-size: 18px;
}

.catalog-search {
  min-width: 0;
  height: 36px;
}

.directory-shell,
body:not(.has-selected-product) .directory-shell,
body.has-selected-product .directory-shell {
  width: 100%;
  max-width: min(1480px, 100%);
  overflow-x: clip;
}

.catalog-workspace,
body.has-selected-product .catalog-workspace {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 18px clamp(16px, 2vw, 28px) 44px;
}

.workspace-heading,
body.has-selected-product .workspace-heading {
  grid-template-columns: minmax(142px, 190px) minmax(170px, 320px);
  gap: 8px 12px;
  align-items: center;
}

.workspace-source-facet {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  padding-top: 2px;
  overflow: hidden;
}

.source-selector-panel {
  flex: 1 1 auto;
  width: 100%;
}

.workspace-source-facet .facet-values {
  flex: 1 1 auto;
  max-width: 100%;
}

.workspace-content {
  grid-template-columns: minmax(200px, 236px) minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
}

body.has-selected-product .results-flow {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.model-filters,
body.has-selected-product .model-filters {
  padding-right: 14px;
}

.listing-section {
  grid-column: auto;
  overflow: hidden;
}

.listing-controls {
  min-width: 0;
}

.listing-sort-tabs {
  flex: 1 1 auto;
}

.listing-price-range {
  max-width: 100%;
}

.listing-message:not([hidden]) {
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.model-detail-dialog {
  width: min(1040px, calc(100vw - 24px));
}

.model-detail-dialog .price-panel-content {
  display: flex;
  flex-direction: column;
}

.model-detail-dialog .selection-head {
  order: 0;
}

.model-detail-dialog .detail-message {
  order: 1;
}

.model-detail-dialog .price-chart-disclosure {
  order: 3;
  margin-top: 8px;
}

.model-detail-dialog .price-summary {
  order: 2;
}

@media (max-width: 1180px) {
  .workspace-content {
    display: block;
  }

  .model-filters,
  body.has-selected-product .model-filters {
    padding-right: 0;
    margin-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(104px, 132px) minmax(0, 1fr);
  }

  .workspace-heading,
  body.has-selected-product .workspace-heading {
    grid-template-columns: minmax(136px, 180px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 12px 8px;
  }

  .brand {
    min-height: 42px;
  }

  .catalog-search {
    grid-column: 1;
    width: 100%;
  }

  .workspace-heading,
  body.has-selected-product .workspace-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-source-facet {
    grid-column: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
}

/* Keep model analysis next to the listings, and restore their width when closed. */
body.has-selected-product:not(.has-model-insight) .results-flow {
  grid-template-columns: minmax(0, 1fr);
}

.model-detail-open {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.listing-heading:has(.model-detail-open:not([hidden])) {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
}

.selected-price-table caption {
  padding: 8px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

@media (max-width: 640px) {
  .selected-price-table caption {
    display: block;
    width: 100%;
  }
}

.price-error {
  margin: 6px 0;
  color: #a52626;
  font-size: 12px;
}

.listing-controls .price-reset {
  background: transparent;
  color: var(--muted);
}

.listing-price-range:has(.price-reset:not([hidden])) {
  flex-wrap: wrap;
}

.model-detail-open:focus-visible,
#price-min[aria-invalid="true"],
#price-max[aria-invalid="true"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.has-model-insight {
  overflow: visible;
}

body.has-selected-product .results-flow {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(340px, 400px);
  column-gap: 24px;
  align-items: start;
}

body.has-selected-product .catalog-message {
  grid-column: 1 / -1;
  grid-row: 1;
}

body.has-selected-product .listing-section {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.model-detail-dialog:not([hidden]) {
  position: sticky;
  inset: auto;
  top: 64px;
  display: block;
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - 80px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.model-detail-dialog:not([hidden]) .model-detail-header {
  min-height: 56px;
  padding: 10px 0 10px 14px;
}

.model-detail-dialog:not([hidden]) .price-panel-content {
  padding: 12px 0 18px 14px;
}

.model-detail-dialog:not([hidden]) .selected-price-table {
  min-width: 0;
}

.model-detail-dialog:not([hidden]) .selected-price-table th,
.model-detail-dialog:not([hidden]) .selected-price-table td {
  padding-right: 3px;
  padding-left: 3px;
  white-space: normal;
}

@media (max-width: 1180px) {
  body.has-selected-product .results-flow {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  body.has-selected-product .listing-section {
    grid-column: 1;
    grid-row: 2;
  }

  .model-detail-dialog:not([hidden]) {
    position: static;
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-height: none;
    scroll-margin-top: 12px;
  }

  .model-detail-dialog:not([hidden]) .model-detail-window {
    max-height: none;
    overflow: visible;
  }

  .model-detail-dialog:not([hidden]) .model-detail-header,
  .model-detail-dialog:not([hidden]) .price-panel-content {
    padding-right: 0;
    padding-left: 0;
  }
}

.contextual-offer:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
}

.affiliate-heading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.affiliate-disclosure {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.affiliate-link {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 8px 0;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.affiliate-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.affiliate-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Compact listing results */
.listing-row {
  grid-template-columns: 56px minmax(0, 1fr) minmax(82px, auto);
  min-height: 64px;
  gap: 12px;
  padding: 6px 0;
}

.listing-media {
  width: 50px;
  height: 50px;
  grid-row: auto;
  border-color: var(--line);
}

.listing-source {
  margin: 0;
  flex: 0 0 auto;
  font-size: 10px;
}

.listing-time {
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-meta > :not(:first-child)::before {
  margin-right: 5px;
  color: var(--line-strong);
  content: "·";
}

.listing-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-meta {
  min-width: 0;
  margin-top: 4px;
  flex-wrap: nowrap;
  gap: 5px;
  line-height: 1.25;
}

.listing-model-action {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  flex: 0 1 auto;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-commerce {
  display: block;
  min-width: 82px;
  grid-column: auto;
  grid-row: auto;
  text-align: right;
}

.listing-price {
  font-size: 14px;
  font-weight: 850;
}

.listing-pagination {
  padding: 10px 0 2px;
}

@media (max-width: 640px) {
  .listing-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(72px, auto);
    min-height: 58px;
    gap: 8px;
    padding: 6px 0;
  }

  .listing-media {
    width: 44px;
    height: 44px;
  }

  .listing-commerce {
    min-width: 72px;
  }

  .listing-price {
    font-size: 13px;
  }

  .listing-time {
    display: none;
  }

  .listing-page-direction {
    min-width: 36px !important;
    padding-right: 3px !important;
    padding-left: 3px !important;
  }
}

/* v76: align the title bar with the working surface and keep selected results beside filters */
.site-header {
  width: 100%;
  max-width: 1480px;
  min-height: 48px;
  height: 48px;
  margin: 0 auto;
  padding: 0 24px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: 136px minmax(320px, 620px) minmax(0, 1fr);
  gap: 18px;
}

.brand {
  min-height: 48px;
  height: 48px;
  align-items: center;
  font-size: 17px;
  line-height: 1;
}

.catalog-search {
  height: 34px;
  padding-left: 0;
}

.directory-shell,
body:not(.has-selected-product) .directory-shell,
body.has-selected-product .directory-shell {
  max-width: 1480px;
}

.catalog-workspace,
body.has-selected-product .catalog-workspace {
  padding: 16px 24px 40px;
}

.workspace-heading,
body.has-selected-product .workspace-heading {
  grid-template-columns: 170px minmax(220px, 340px);
  gap: 6px 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.workspace-content {
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 24px;
}

.model-filters,
body.has-selected-product .model-filters {
  width: 196px;
  padding-right: 14px;
}

.results-flow,
body.has-selected-product .results-flow {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 0;
}

.listing-section {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .site-header {
    max-width: none;
    border-right: 0;
    border-left: 0;
  }

  .workspace-content {
    display: block;
  }

  .model-filters,
  body.has-selected-product .model-filters {
    width: auto;
  }

  .results-flow,
  body.has-selected-product .results-flow {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    padding: 0 16px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 12px 8px;
  }

  .brand {
    height: 42px;
    min-height: 42px;
  }

  .catalog-search {
    height: 34px;
  }

  .workspace-heading,
  body.has-selected-product .workspace-heading {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* v88: compact, date-first price analysis */
.price-summary-head {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) repeat(3, minmax(66px, 0.8fr));
  align-items: end;
  gap: 8px;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--line-strong);
}

#price-summary-scope { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.price-summary-columns { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(140px, 1.2fr) repeat(3, minmax(66px, 0.8fr)); gap: 8px; }
.price-summary-columns::before { content: ""; }
.price-summary-columns span { color: var(--muted); font-size: 9px; font-weight: 700; text-align: right; }
.price-summary-list { display: grid; }

.price-summary-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) repeat(3, minmax(66px, 0.8fr));
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.price-summary-row > strong, .price-summary-row > span { text-align: right; }
.price-summary-row > strong { color: var(--ink); font-size: 13px; }
.price-summary-row > span { color: var(--ink-soft); font-size: 11px; }

.price-summary-label {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
}

.price-summary-label strong, .price-summary-label small { grid-column: 2; }
.price-summary-label strong { font-size: 11px; }
.price-summary-label small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.series-mark { grid-row: 1 / 3; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.sold-series .series-mark { background: var(--sold); border-radius: 2px; }
.confirmed-series .series-mark { background: var(--confirmed); border-radius: 1px; transform: rotate(45deg) scale(0.82); }

.chart-section-meta, .chart-range { display: flex; align-items: center; }
.chart-section-meta { gap: 10px; }
.chart-range { gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-subtle); }

.chart-range button {
  min-width: 34px;
  min-height: 28px;
  padding: 3px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.chart-range button[aria-pressed="true"] { background: var(--surface); color: var(--accent-strong); box-shadow: 0 1px 3px rgb(91 58 43 / 12%); }
.price-chart { margin: 4px 0 14px; }

.chart-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 55px;
  padding: 8px 0;
}

.chart-selected-summary { min-width: 0; }
.chart-selected-date { display: block; margin-bottom: 3px; font-size: 12px; }
.chart-selected-values { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.chart-selected-values span { color: var(--ink-soft); font-size: 9px; font-variant-numeric: tabular-nums; }

.chart-selected-values .active-series::before,
.chart-selected-values .sold-series::before,
.chart-selected-values .confirmed-series::before,
.chart-selected-values .reserved-series::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 4px 1px 0;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.chart-selected-values .sold-series::before { background: var(--sold); border-radius: 1px; }
.chart-selected-values .confirmed-series::before { background: var(--confirmed); border-radius: 1px; transform: rotate(45deg) scale(0.8); }
.chart-selected-values .reserved-series::before { background: var(--reserved); }
.chart-step-controls { display: flex; flex: 0 0 auto; gap: 4px; }

.chart-step {
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.chart-step:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }

.chart-plot-shell {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--surface) 0 62px, var(--surface-subtle) 62px 100%);
}

.chart-y-axis {
  z-index: 1;
  display: flex;
  height: 224px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 8px 31px 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.chart-y-axis span { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }

.price-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.price-chart-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.price-chart-scroll svg { display: block; width: auto; max-width: none; height: 224px; overflow: visible; }
.chart-selection-line { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.55; pointer-events: none; }
.chart-point.is-selected { fill: var(--surface); stroke-width: 4; }
.chart-scroll-hint { margin: 6px 0 0; color: var(--muted); font-size: 9px; text-align: right; }

.source-evidence { margin-top: 14px; border-top: 1px solid var(--line-strong); }
.source-evidence > h5 { margin: 0; padding: 10px 0 5px; font-size: 10px; }

.source-evidence-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.75fr) minmax(0, 2.25fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.source-evidence-name { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-evidence-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.source-evidence-metrics > span { display: grid; min-width: 0; }
.source-evidence-metrics small, .source-evidence-metrics em { color: var(--muted); font-size: 8px; font-style: normal; }
.source-evidence-metrics strong { overflow: hidden; font-size: 10px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }

.contextual-offer:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid #f1c9bb;
  border-radius: 7px;
  background: #fff5ef;
}

.affiliate-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.affiliate-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--accent-strong); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.affiliate-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; min-width: 0; }
.affiliate-heading { color: var(--muted); font-size: 9px; font-weight: 700; }
.affiliate-link { padding: 0; color: var(--accent-strong); font-size: 12px; font-weight: 850; text-decoration: none; }
.affiliate-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.affiliate-disclosure { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

@media (max-width: 640px) {
  .price-summary-head { display: block; }
  .price-summary-columns { display: none; }
  .price-summary-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 8px; padding: 9px 0; }
  .price-summary-label { grid-column: 1 / -1; }
  .price-summary-row > strong, .price-summary-row > span { display: grid; gap: 1px; text-align: left; }
  .price-summary-row > strong::before, .price-summary-row > span::before { color: var(--muted); content: attr(data-label); font-size: 8px; font-weight: 500; }
  .chart-section-meta { align-items: flex-end; flex-direction: column; gap: 4px; }
  .chart-range button, .chart-step { min-height: 36px; padding-right: 10px; padding-left: 10px; }
  .chart-toolbar { min-height: 66px; }
  .chart-selected-values { display: grid; gap: 2px; }
  .chart-plot-shell { grid-template-columns: 54px minmax(0, 1fr); background: linear-gradient(90deg, var(--surface) 0 54px, var(--surface-subtle) 54px 100%); }
  .source-evidence-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .source-evidence-metrics { gap: 5px; }
}

/* v89: reference-guided marketplace workspace */
:root {
  --canvas: #f7f6f2;
  --surface: #fffefa;
  --surface-subtle: #faf9f5;
  --surface-muted: #f1eee8;
  --ink: #2d2722;
  --ink-soft: #6b625a;
  --muted: #91877e;
  --line: #e4dfd8;
  --line-strong: #d5cec5;
  --accent: #ef5f3f;
  --accent-strong: #d9492d;
  --accent-soft: #fff0ea;
  --sold: #3d9866;
  --confirmed: #4b89c5;
}

body { background: var(--canvas); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  grid-template-columns: 174px minmax(380px, 680px) minmax(0, 1fr);
  width: min(1536px, 100%);
  max-width: 1536px;
  height: 68px;
  min-height: 68px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgb(255 254 250 / 96%);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  height: 68px;
  min-height: 68px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.brand img { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; }
.brand-used { color: var(--accent); }
.brand-pick { color: var(--ink); }

.catalog-search {
  height: 44px;
  padding-left: 13px;
  overflow: hidden;
  border: 1px solid #ef8069;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.catalog-search svg { color: var(--muted); }
.catalog-search input { padding-left: 8px; font-size: 14px; }

.catalog-search button {
  align-self: stretch;
  min-width: 64px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.catalog-search button:hover { background: var(--accent-strong); }
.catalog-search button:active { transform: translateY(1px); }

.directory-shell,
body:not(.has-selected-product) .directory-shell,
body.has-selected-product .directory-shell {
  width: min(1536px, 100%);
  max-width: 1536px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--canvas);
}

.catalog-workspace,
body.has-selected-product .catalog-workspace { padding: 0 14px 34px; }

.workspace-heading,
body.has-selected-product .workspace-heading {
  grid-template-columns: 190px minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  min-height: 66px;
  margin: 0 -14px 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.category-selector select,
.model-selector select {
  height: 44px;
  border-color: var(--line-strong);
  border-radius: 6px;
  background-color: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.workspace-source-facet {
  grid-column: auto;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.source-selector-label { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.source-selector-panel { min-width: 0; }
.workspace-source-facet .facet-values { gap: 5px 12px; }
.source-choice { min-height: 32px; font-size: 11px; }

.workspace-content {
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 14px;
}

.model-filters,
body.has-selected-product .model-filters {
  position: sticky;
  top: 82px;
  width: 208px;
  max-height: calc(100dvh - 98px);
  padding: 0 14px 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  scrollbar-width: thin;
}

.model-filters-heading {
  min-height: 56px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.model-filters-heading h2 { font-size: 14px; }
.filter-visibility-toggle,
.reset-filters { color: var(--ink-soft); font-size: 10px; }
.active-filter-summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
.active-filter-label { font-size: 11px; font-weight: 800; }
.facet-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facet-row h3, .facet-title { font-size: 12px; }
.facet-option { min-height: 32px; }
.show-matched-models { width: 100%; margin-top: 14px; border-radius: 5px; }

body.has-selected-product .results-flow {
  grid-template-columns: minmax(560px, 1fr) minmax(450px, 520px);
  column-gap: 14px;
}

.listing-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.listing-heading {
  min-height: 60px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.listing-heading > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.listing-heading-title { display: flex; align-items: baseline; gap: 6px; }
.listing-heading h2 {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  font-size: 14px;
  font-weight: 850;
}
#listing-count { color: var(--accent); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.back-to-models { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--accent-strong); font-size: 14px; }
.model-detail-open { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); }

.contextual-offer:not([hidden]) {
  gap: 2px;
  margin: 0;
  padding: 11px 16px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-subtle);
}

.affiliate-icon { width: 21px; height: 21px; }
.affiliate-heading { font-size: 9px; }
.affiliate-link { color: #2a76af; font-size: 13px; }
.affiliate-disclosure { padding-left: 30px; font-size: 10px; }

.listing-options-toggle { margin: 0; }
.listing-options { padding: 0 16px; border-bottom: 1px solid var(--line); }
.listing-controls { min-height: 58px; }
.listing-sort-tab { min-height: 38px; padding: 0 14px; font-size: 11px; }
.listing-sort-tab[aria-pressed="true"] { color: var(--accent); }
.listing-sort-tab[aria-pressed="true"]::after { background: var(--accent); }
.listing-price-range input { height: 36px; border-radius: 5px; background: var(--surface); }
.listing-price-range button[type="submit"] { height: 36px; border-radius: 5px; background: #1d7651; }

.listing-row {
  grid-template-columns: 100px minmax(0, 1fr) 108px 34px;
  min-height: 104px;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease;
}

.listing-row:hover { background: #fffdf8; }
.listing-media { width: 100px; height: 84px; border-radius: 6px; background: var(--surface-muted); }
.listing-body { align-self: center; }
.listing-title { font-size: 14px; font-weight: 760; line-height: 1.4; }
.listing-spec { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.listing-meta { gap: 6px; margin-top: 8px; }
.listing-meta > :not(:first-child)::before { display: none; }

.listing-source,
.listing-market,
.listing-state,
.listing-scope {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.listing-source[data-source="joonggonara"] { border-color: #b9dec6; background: #edf8f0; color: #237448; }
.listing-source[data-source="bunjang"] { border-color: #ffc7bc; background: #fff0ed; color: #de4e35; }
.listing-commerce { display: flex; align-self: center; flex-direction: column; align-items: flex-end; gap: 4px; }
.listing-price { color: var(--ink); font-size: 18px; font-weight: 900; letter-spacing: -0.03em; }
.listing-sale-state { color: var(--accent); font-size: 11px; font-weight: 800; }
.listing-sale-state.is-reserved { color: var(--reserved); }
.listing-time { color: var(--muted); font-size: 10px; }

.listing-favorite {
  display: grid;
  width: 32px;
  height: 38px;
  align-self: center;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaa198;
}

.listing-favorite svg { width: 22px; height: 22px; fill: transparent; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.5; }
.listing-favorite:hover { color: var(--accent); }
.listing-favorite.is-active { color: var(--accent); }
.listing-favorite.is-active svg { fill: var(--accent-soft); }
.listing-favorite:active { transform: scale(0.94); }

.listing-pagination { min-height: 58px; padding: 10px 16px; }
.listing-page-number[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fff; }

.model-detail-dialog:not([hidden]) {
  top: 82px;
  max-height: calc(100dvh - 98px);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.model-detail-dialog:not([hidden]) .model-detail-header {
  min-height: 104px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.model-detail-kicker { color: var(--ink); font-size: 15px; font-weight: 900; }
.model-detail-title-line { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.model-detail-title-line h2 { font-size: 23px; letter-spacing: -0.035em; }
.model-detail-chip { width: 27px; height: 27px; flex: 0 0 auto; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.model-detail-close { min-width: 48px; min-height: 36px; border-radius: 5px; }

.model-detail-dialog:not([hidden]) .price-panel-content { padding: 0 16px 18px; }
.model-detail-dialog .selection-head { display: none; }
.model-detail-dialog .selection-head p { font-size: 11px; }
.detail-message:not([hidden]) { padding: 12px 0; }

.price-summary-head { grid-template-columns: minmax(142px, 1.2fr) repeat(3, minmax(68px, .8fr)); padding-top: 12px; }
.price-summary-columns { grid-template-columns: minmax(142px, 1.2fr) repeat(3, minmax(68px, .8fr)); }
.price-summary-row { grid-template-columns: minmax(142px, 1.2fr) repeat(3, minmax(68px, .8fr)); min-height: 66px; }
.price-summary-row > strong { font-size: 13px; }
.price-summary-row > span { font-size: 12px; }
.price-summary-row > span[id$="-mean"] { color: var(--accent); font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.price-summary-row.sold-series > span[id$="-mean"] { color: var(--sold); }
.price-summary-row.confirmed-series > span[id$="-mean"] { color: var(--confirmed); }
.price-summary-label strong { font-size: 12px; }
.price-summary-label small { font-size: 9px; }

.section-bar.compact { min-height: 62px; border-bottom: 1px solid var(--line); }
.section-bar.compact h3 { font-size: 15px; }
.chart-range { gap: 0; padding: 0; overflow: hidden; border-radius: 6px; }
.chart-range button { min-width: 54px; min-height: 36px; border-radius: 0; font-size: 10px; }
.chart-range button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.chart-toolbar { min-height: 72px; align-items: center; padding: 10px 0; }
.chart-selected-date { font-size: 13px; }
.chart-selected-values span { font-size: 10px; }
.chart-step { min-width: 42px; min-height: 36px; font-size: 10px; }
.chart-plot-shell { grid-template-columns: 66px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(90deg, var(--surface) 0 66px, #fbfcfa 66px 100%); }
.chart-y-axis { height: 278px; padding: 20px 8px 36px 0; }
.price-chart-scroll svg { height: 278px; }
.chart-scroll-hint { padding-right: 4px; font-size: 9px; }
.source-evidence { margin-top: 16px; }
.source-evidence > h5 { padding: 13px 0 8px; font-size: 12px; }
.source-evidence-row { min-height: 52px; }
.source-evidence-name { font-size: 11px; font-weight: 800; }
.source-evidence-metrics strong { font-size: 11px; }
.source-evidence-metrics .is-empty strong,
.source-evidence-metrics .is-empty em { color: var(--muted); font-weight: 600; }
.source-evidence-pending { color: var(--muted); font-size: 10px; text-align: right; }
.source-evidence-row.is-pending { background: repeating-linear-gradient(-45deg, transparent 0 7px, rgb(239 95 63 / 3%) 7px 14px); }
.method-note { font-size: 10px; line-height: 1.55; }
.price-summary-row.is-empty > span[id$="-mean"] { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0; }

@media (max-width: 1280px) {
  body.has-selected-product .results-flow { grid-template-columns: minmax(520px, 1fr) minmax(420px, 470px); }
}

@media (max-width: 1180px) {
  .workspace-content { display: block; }
  .model-filters,
  body.has-selected-product .model-filters { position: static; width: auto; max-height: none; margin-bottom: 14px; }
  body.has-selected-product .results-flow { grid-template-columns: minmax(0, 1fr); }
  .model-detail-dialog:not([hidden]) { max-height: none; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 150px minmax(0, 1fr); height: 64px; min-height: 64px; padding: 0 16px; }
  .brand { height: 64px; min-height: 64px; font-size: 18px; }
  .brand img { width: 26px; height: 26px; }
  .workspace-heading,
  body.has-selected-product .workspace-heading { grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); }
  .workspace-source-facet { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { position: static; height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 0 12px 10px; }
  .brand { height: 48px; min-height: 48px; }
  .catalog-search { height: 42px; }
  .catalog-workspace,
  body.has-selected-product .catalog-workspace { padding-right: 10px; padding-left: 10px; }
  .workspace-heading,
  body.has-selected-product .workspace-heading { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-right: -10px; margin-left: -10px; padding: 10px; }
  .workspace-source-facet { grid-column: 1; }
  .model-filters,
  body.has-selected-product .model-filters { padding-right: 12px; padding-left: 12px; }
  .listing-heading { min-height: 54px; padding: 8px 12px; }
  .contextual-offer:not([hidden]) { padding-right: 12px; padding-left: 12px; }
  .listing-options { padding-right: 12px; padding-left: 12px; }
  .listing-row { grid-template-columns: 66px minmax(0, 1fr) 82px 28px; min-height: 82px; gap: 8px; padding: 8px 10px; }
  .listing-media { width: 66px; height: 64px; }
  .listing-title { font-size: 12px; }
  .listing-spec { font-size: 9px; }
  .listing-meta { margin-top: 5px; }
  .listing-source, .listing-market, .listing-state, .listing-scope { min-height: 20px; padding: 1px 5px; font-size: 8px; }
  .listing-price { font-size: 14px; }
  .listing-sale-state { font-size: 9px; }
  .listing-time { display: none; }
  .listing-favorite { width: 28px; }
  .listing-favorite svg { width: 19px; height: 19px; }
  .model-detail-dialog:not([hidden]) .model-detail-header { min-height: 92px; padding: 12px; }
  .model-detail-dialog:not([hidden]) .price-panel-content { padding-right: 12px; padding-left: 12px; }
  .model-detail-title-line h2 { font-size: 20px; }
  .price-summary-row { min-height: 78px; }
  .price-summary-row > span[id$="-mean"] { font-size: 16px; }
  .chart-plot-shell { grid-template-columns: 58px minmax(0, 1fr); background: linear-gradient(90deg, var(--surface) 0 58px, #fbfcfa 58px 100%); }
  .source-evidence-row { padding: 10px 0; }
  .affiliate-disclosure, .method-note { font-size: 11px; }
  .listing-heading { position: sticky; z-index: 5; top: 0; background: var(--surface); }
}

/* v90: resizable workspace, compact affiliate action, and navigable price history */

/* v91: price-analysis style source tabs on the main listings page */
.source-selector-panel {
  width: 100%;
  overflow: hidden;
}

.workspace-source-facet .facet-values {
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.source-choice {
  position: relative;
  flex: 0 0 auto;
  min-height: 36px;
  cursor: pointer;
}

.source-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.source-choice span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 1px 7px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.source-choice input:checked + span {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.source-choice input:focus-visible + span {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .workspace-source-facet {
    align-items: center;
  }

  .source-selector-panel,
  .workspace-source-facet .facet-values {
    flex-wrap: nowrap;
  }
}
.workspace-content {
  --filter-column-width: 208px;
  grid-template-columns: var(--filter-column-width) 10px minmax(0, 1fr);
  gap: 0;
}

.model-filters,
body.has-selected-product .model-filters {
  grid-column: 1;
  width: 100%;
}

.results-flow,
body.has-selected-product .results-flow {
  grid-column: 3;
}

.column-resizer {
  position: relative;
  z-index: 4;
  display: block;
  width: 10px;
  min-width: 10px;
  min-height: 120px;
  padding: 0;
  touch-action: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: col-resize;
}

.column-resizer::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  content: "";
  transition: background 160ms ease, width 160ms ease;
}

.column-resizer:hover::before,
.column-resizer:focus-visible::before,
body.is-resizing-columns .column-resizer::before {
  width: 3px;
  background: var(--accent);
}

.column-resizer:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.filter-column-resizer { grid-column: 2; grid-row: 1; }

body.has-selected-product .results-flow {
  --analysis-column-width: 500px;
  grid-template-columns: minmax(480px, 1fr) 10px var(--analysis-column-width);
  column-gap: 0;
}

body.has-selected-product .listing-section { grid-column: 1; }

.analysis-column-resizer {
  display: none;
  grid-column: 2;
  grid-row: 2;
}

body.has-selected-product .analysis-column-resizer { display: block; }

.model-detail-dialog:not([hidden]) {
  grid-column: 3;
  grid-row: 2;
}

.listing-heading,
.listing-heading:has(.model-detail-open:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
}

.listing-heading-main {
  display: flex;
  grid-column: 1;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.listing-heading .contextual-offer:not([hidden]) {
  display: grid;
  position: relative;
  grid-column: 2;
  min-width: 0;
  max-width: 560px;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.listing-heading .model-detail-open { grid-column: 3; }

.listing-heading .affiliate-main { gap: 6px; }

.affiliate-part-icon {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  stroke: currentColor;
}

.listing-heading .affiliate-copy {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.listing-heading .affiliate-heading { font-size: 9px; }
.listing-heading .affiliate-link { min-width: 0; min-height: 24px; padding: 2px 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.affiliate-details { flex: 0 0 auto; }
.affiliate-details summary { cursor: pointer; list-style: none; white-space: nowrap; color: var(--ink-soft); font-size: 10px; line-height: 24px; }
.affiliate-details summary::-webkit-details-marker { display: none; }
.affiliate-details summary::after { content: " ⓘ"; }
.affiliate-details summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.affiliate-details[open] summary { text-decoration: underline; text-underline-offset: 3px; }

.listing-heading .affiliate-disclosure {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: min(320px, calc(100vw - 48px));
  max-width: none;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.chart-source-filter {
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.chart-source-filter legend {
  float: left;
  margin-right: 10px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  line-height: 30px;
}

.chart-source-options {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chart-source-choice {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
}

.chart-source-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chart-source-choice span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.chart-source-choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chart-source-choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chart-window-note { color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.chart-step-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.chart-step { min-width: 54px; }
.chart-selected-values .is-empty { color: var(--muted); }
.chart-empty-controls { display: flex; justify-content: flex-end; gap: 5px; padding: 10px 0; }
.source-evidence-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1320px) {
  .workspace-content { display: block; }
  .column-resizer { display: none !important; }
  .model-filters,
  body.has-selected-product .model-filters {
    position: static;
    width: auto;
    max-height: none;
    margin-bottom: 14px;
  }
  .results-flow,
  body.has-selected-product .results-flow {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  body.has-selected-product .listing-section { grid-column: 1; grid-row: 2; }
  .model-detail-dialog:not([hidden]) {
    position: static;
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-height: none;
  }
  .model-detail-dialog:not([hidden]) .model-detail-window { max-height: none; overflow: visible; }
}

@media (max-width: 760px) {
  .listing-heading,
  .listing-heading:has(.model-detail-open:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }
  .listing-heading-main { grid-column: 1; grid-row: 1; }
  .listing-heading .model-detail-open { grid-column: 2; grid-row: 1; }
  .listing-heading .contextual-offer:not([hidden]) { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .chart-source-filter legend { float: none; display: block; margin: 0 0 6px; line-height: 1.4; }
  .chart-toolbar { align-items: stretch; flex-direction: column; }
  .chart-step-controls { justify-content: flex-start; }
  .chart-empty-controls { justify-content: flex-start; overflow-x: auto; }
}
