/* A quiet, neutral directory: one type family, a visible grid and tabular prices. */
:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f7f7f8;
  --surface-hover: #f4f4f5;
  --surface-selected: #ededee;
  --foreground: #18181b;
  --secondary-foreground: #52525b;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #18181b;
  --accent-hover: #303034;
  --focus: #52525b;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-title: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --sidebar-width: 208px;
  --banner-height: 32px;
  --topbar-height: 64px;
  --content-width: 1160px;
  --duration: 150ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
summary {
  touch-action: manipulation;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  flex-shrink: 0;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
a,
input,
select,
summary {
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--focus);
}

::selection {
  color: #ffffff;
  background: #52525b;
}

[hidden] {
  display: none !important;
}

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

.text-muted {
  color: var(--muted-foreground);
}

.link {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.link:hover {
  text-decoration-color: currentColor;
}

.icon,
.inline-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.inline-icon {
  display: inline-block;
  vertical-align: -3px;
}

/* Shared shell */
.prototype-banner {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--banner-height);
  padding: 5px var(--space-6);
  border-bottom: 1px solid var(--border);
  color: var(--secondary-foreground);
  background: var(--surface);
  font-size: 11px;
  line-height: 21px;
  text-align: center;
}

.prototype-banner strong {
  color: var(--foreground);
  font-weight: 600;
}

.prototype-banner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--banner-height));
}

.sidebar {
  position: sticky;
  top: var(--banner-height);
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--banner-height));
  padding: 0 var(--space-3) var(--space-4);
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--topbar-height);
  padding: 0 var(--space-3);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.brand-symbol {
  display: grid;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--foreground);
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--foreground);
}

.brand-symbol svg {
  width: 17px;
  height: 17px;
}

.nav-caption {
  margin: var(--space-6) var(--space-3) var(--space-2);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 500;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  width: 100%;
  margin: 3px 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--secondary-foreground);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
  transition: color var(--duration), background var(--duration), border-color var(--duration);
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--surface-selected);
}

.nav-link.is-active {
  border-color: var(--border);
  color: var(--foreground);
  background: #ffffff;
}

.nav-icon,
.nav-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-link .badge {
  margin-left: auto;
}

.nav-count {
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.trailing-icon {
  margin-left: auto;
}

.trailing-icon svg {
  width: 12px;
  height: 12px;
}

.sidebar-bottom .nav-link {
  gap: 7px;
  padding-right: var(--space-2);
  padding-left: var(--space-2);
  font-size: 11px;
}

.sidebar-note {
  margin: var(--space-6) var(--space-3) 0;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  line-height: 1.8;
}

.sidebar-note strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--secondary-foreground);
  font-weight: 500;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: var(--space-6);
}

.sidebar-bottom .sidebar-note {
  margin-top: var(--space-3);
}

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--background);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--topbar-height);
  padding: 0 var(--space-10);
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.breadcrumb a {
  transition: color var(--duration);
}

.breadcrumb a:hover,
.breadcrumb [aria-current="page"],
.breadcrumb strong {
  color: var(--foreground);
  font-weight: 500;
}

.breadcrumb > :last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb svg {
  width: 12px;
  height: 12px;
  color: #a1a1aa;
}

.topbar-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-3);
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--secondary-foreground);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-10);
  padding-bottom: 64px;
}

.main-content:focus {
  outline: none;
}

.workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px var(--space-10);
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.8;
}

.guest-label {
  color: var(--muted-foreground);
  font-size: 11px;
}

/* Controls share a compact, familiar silhouette. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  background: var(--background);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.button:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.button:active {
  background: var(--surface-selected);
}

.button.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button.secondary {
  background: #ffffff;
}

.button.secondary:hover {
  background: var(--surface);
}

.button.ghost {
  border-color: transparent;
  color: var(--secondary-foreground);
  background: transparent;
}

.button.ghost:hover {
  color: var(--foreground);
  background: var(--surface);
}

.button.small {
  min-height: 32px;
  padding: 5px 11px;
  font-size: var(--text-xs);
}

.button.icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.page-heading h1,
.product-heading h1,
.supplier-identity h1 {
  font-size: var(--text-title);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.8px;
}

.page-heading p {
  max-width: 620px;
  margin-top: 9px;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.heading-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
  padding-top: 2px;
}

.heading-note {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 10px;
}

.heading-note svg {
  width: 12px;
  height: 12px;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.search-box {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.search-box > svg,
.search-box > .icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 9px 44px 9px 39px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  background: #ffffff;
  font-size: var(--text-sm);
  transition: border-color var(--duration), box-shadow var(--duration);
}

.search-box input::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}

.search-box input:hover,
.filter-select select:hover {
  border-color: var(--border-strong);
}

.search-box input:focus {
  outline: 2px solid var(--border-strong);
  outline-offset: 2px;
  border-color: #a1a1aa;
}

.search-box kbd {
  position: absolute;
  right: 11px;
  display: grid;
  width: 21px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
}

.filter-select {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.filter-select select {
  height: 40px;
  min-width: 130px;
  max-width: 100%;
  padding: 8px 30px 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--secondary-foreground);
  background: #ffffff;
  font-size: var(--text-sm);
  transition: border-color var(--duration);
}

.filter-select > svg {
  position: absolute;
  right: 11px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.filter-select:has(> svg) select {
  appearance: none;
}

.category-tabs {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--secondary-foreground);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 18px;
  transition: background var(--duration), color var(--duration);
}

.category-tab:hover {
  color: var(--foreground);
  background: var(--surface);
}

.category-tab.is-active {
  color: #ffffff;
  background: var(--foreground);
}

.category-tab span,
.category-tab small {
  opacity: 0.7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 64px;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.section-meta strong {
  color: var(--secondary-foreground);
  font-weight: 500;
}

.meta-separator {
  margin: 0 10px;
  color: #c4c4c9;
}

.section-meta .link,
.section-header .link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--muted-foreground);
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
}

.section-meta .link:hover,
.section-header .link:hover {
  color: var(--foreground);
}

.section-meta .link svg,
.section-header .link svg {
  width: 13px;
  height: 13px;
}

.directory-toolbar + .section-meta {
  min-height: 60px;
  border-top: 1px solid var(--border);
}

/* Directory */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  transition: border-color var(--duration), background var(--duration);
}

.product-card:hover,
.product-card:focus-within {
  border-color: #bdbdc4;
  background: #fdfdfd;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.product-icon {
  display: grid;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: #3f3f46;
  background: var(--surface);
}

.product-icon svg {
  width: 22px;
  height: 22px;
}

.product-icon.large {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

.product-icon.large svg {
  width: 29px;
  height: 29px;
}

.tag,
.badge,
.promotion-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--secondary-foreground);
  background: #ffffff;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
}

.tag {
  color: var(--muted-foreground);
  background: var(--surface);
}

.badge svg {
  width: 11px;
  height: 11px;
}

.product-card h2 {
  margin-bottom: var(--space-2);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
}

.product-card h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

.product-spec {
  min-height: 40px;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  line-height: 1.7;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  color: var(--secondary-foreground);
  background: var(--surface);
  font-size: 11px;
  line-height: 16px;
}

.platform-mark {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--secondary-foreground);
  background: #ffffff;
  font-size: 9px;
  line-height: 1;
}

.platform-pill svg {
  width: 12px;
  height: 12px;
}

.product-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: auto;
}

.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.price-block > span {
  flex-basis: 100%;
  margin-bottom: var(--space-1);
  color: var(--muted-foreground);
  font-size: 11px;
}

.price-block strong {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.9px;
}

.price-block strong > small {
  margin-right: 3px;
  color: var(--secondary-foreground);
  font-size: 14px;
  font-weight: 400;
}

.price-range {
  color: var(--secondary-foreground);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.55px;
}

.price-block small {
  color: var(--muted-foreground);
  font-size: 11px;
}

.supplier-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 3px;
  color: var(--muted-foreground);
  font-size: 11px;
  white-space: nowrap;
}

.supplier-count svg {
  width: 12px;
  height: 12px;
  margin-right: 1px;
}

.supplier-count b {
  color: var(--secondary-foreground);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.supplier-count strong {
  color: var(--secondary-foreground);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 46px;
  margin: var(--space-5) calc(-1 * var(--space-6)) calc(-1 * var(--space-6));
  padding: 12px var(--space-6);
  border: 0;
  border-top: 1px solid var(--border);
  color: var(--secondary-foreground);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: left;
  transition: background var(--duration), color var(--duration);
}

.card-link svg {
  width: 15px;
  height: 15px;
  color: var(--muted-foreground);
  transition: transform var(--duration) var(--ease);
}

.card-link:hover {
  color: var(--foreground);
  background: var(--surface);
}

.card-link:hover svg {
  color: var(--foreground);
  transform: translateX(2px);
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 230px;
  padding: var(--space-10);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state > svg {
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-2);
  color: var(--muted-foreground);
}

.empty-state h2,
.empty-state h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.empty-state p {
  max-width: 440px;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
}

.empty-state.compact {
  min-height: 160px;
  padding: var(--space-6);
}

.catalog-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-6);
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.8;
}

.catalog-note svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

/* Comparable supplier offers */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  margin: -6px 0 var(--space-6);
  padding: 4px 0;
  border: 0;
  color: var(--muted-foreground);
  background: transparent;
  font-size: var(--text-xs);
  transition: color var(--duration);
}

.back-link:hover {
  color: var(--foreground);
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.product-heading {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.product-heading-copy {
  flex: 1;
  min-width: 0;
}

.product-heading-copy h1 {
  margin-top: 7px;
  font-size: 25px;
}

.product-heading-copy p {
  margin-top: var(--space-2);
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.product-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  margin-top: 4px;
  padding-left: var(--space-6);
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
}

.product-summary strong {
  color: var(--foreground);
  font-size: 29px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.product-summary > span {
  color: var(--muted-foreground);
  font-size: 10px;
}

.product-summary strong small {
  margin-right: 3px;
  font-size: 16px;
  font-weight: 400;
}

.detail-tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.tab-note {
  align-self: center;
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: 10px;
}

.detail-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 0 13px;
  border: 0;
  color: var(--muted-foreground);
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
}

.detail-tab:hover,
.detail-tab.is-active {
  color: var(--foreground);
}

.detail-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--foreground);
  content: "";
}

.detail-tab span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.comparison-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
  padding: var(--space-4) 0;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.comparison-toolbar > div {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.comparison-toolbar + .section-meta {
  min-height: 36px;
  margin: -4px 0 var(--space-3);
}

.sort-select > svg {
  right: auto;
  left: 10px;
  width: 13px;
  height: 13px;
  color: var(--muted-foreground);
}

.sort-select:has(> svg) select {
  padding-right: 10px;
  padding-left: 30px;
  appearance: auto;
}

.comparison-toolbar .filter-select select {
  height: 34px;
  min-width: 120px;
  font-size: var(--text-xs);
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
  cursor: pointer;
}

.filter-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--foreground);
}

.comparison-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
  text-align: left;
}

.comparison-table th {
  height: 42px;
  padding: 10px var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  background: var(--surface);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  padding-left: var(--space-6);
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  padding-right: var(--space-6);
  text-align: right;
}

.comparison-table td {
  height: 100px;
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tbody tr {
  transition: background var(--duration);
}

.comparison-table tbody tr:hover {
  background: #fafafa;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.supplier-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 150px;
}

.comparison-table td.supplier-cell {
  display: table-cell;
}

.comparison-table .numeric {
  text-align: right;
}

.supplier-identity-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.supplier-identity-link:hover .supplier-info strong {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.supplier-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
}

.supplier-badges .promotion-label {
  margin-top: 0;
  padding: 1px 5px;
  font-size: 9px;
}

.supplier-avatar {
  display: grid;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #52525b;
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
}

.supplier-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supplier-avatar.large {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.supplier-info {
  min-width: 0;
}

.supplier-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
}

.supplier-info small {
  display: block;
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.7;
}

.supplier-info .badge {
  padding: 1px 5px;
  font-size: 9px;
}

.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.numeric strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.55px;
}

.numeric small {
  color: var(--muted-foreground);
  font-size: 10px;
}

.quote-price {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.55px;
}

.quote-price > span {
  margin-right: 2px;
  color: var(--secondary-foreground);
  font-size: 11px;
  font-weight: 400;
}

.score-number {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.score-number svg {
  width: 12px;
  height: 12px;
}

.score-number small,
.review-score small {
  color: var(--muted-foreground);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}

.score-caption {
  display: block;
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 10px;
}

.stock-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary-foreground);
  font-size: 11px;
  white-space: nowrap;
}

.stock-state::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #52525b;
  content: "";
}

.stock-state.is-empty,
.stock-state.out-of-stock {
  color: var(--muted-foreground);
}

.stock-state.out {
  color: var(--muted-foreground);
}

.stock-state.out::before {
  border: 1px solid #a1a1aa;
  background: transparent;
}

.stock-state.low::before {
  background: #a1a1aa;
}

.stock-state.is-empty::before,
.stock-state.out-of-stock::before {
  border: 1px solid #a1a1aa;
  background: transparent;
}

.promotion-label {
  margin-top: 6px;
  padding: 1px 5px;
  background: var(--surface);
  font-size: 9px;
}

.comparison-footnote {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: var(--space-4);
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.8;
}

.comparison-footnote svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: var(--space-1);
  vertical-align: -3px;
}

/* Supplier details */
.supplier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: var(--space-6);
}

.supplier-main {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.supplier-aside {
  position: sticky;
  top: calc(var(--banner-height) + var(--topbar-height) + var(--space-6));
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}

.supplier-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.supplier-identity {
  flex: 1;
  min-width: 0;
}

.supplier-identity h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 23px;
  letter-spacing: -0.6px;
}

.supplier-identity p {
  margin-top: 7px;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  line-height: 1.8;
}

.supplier-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.supplier-identity > .text-muted {
  display: block;
  margin-top: 7px;
  font-size: 10px;
}

.supplier-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
}

.supplier-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: var(--muted-foreground);
  font-size: 11px;
}

.meta-item + .meta-item {
  padding-left: var(--space-4);
  border-left: 1px solid var(--border);
}

.meta-item strong {
  color: var(--foreground);
  font-size: 21px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.section-header h2,
.section-header h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.section-header > span,
.section-header > small,
.section-header > p {
  color: var(--muted-foreground);
  font-size: 11px;
}

.rating-overview {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-6);
}

.rating-total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}

.rating-total strong {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2.3px;
  font-variant-numeric: tabular-nums;
}

.rating-total > span:first-child {
  margin-bottom: var(--space-2);
  color: var(--muted-foreground);
  font-size: 10px;
}

.rating-total strong small {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.rating-total > p {
  margin-top: var(--space-3);
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.8;
}

.rating-total > .tag {
  margin-top: var(--space-2);
  padding: 2px 5px;
  font-size: 9px;
  white-space: normal;
}

.rating-total small {
  margin-top: var(--space-2);
  color: var(--muted-foreground);
  font-size: 11px;
}

.rating-total .rating-stars,
.rating-total .stars {
  display: flex;
  gap: 3px;
  margin-top: var(--space-3);
}

.rating-total .rating-stars svg,
.rating-total .stars svg {
  width: 12px;
  height: 12px;
}

.rating-summary {
  min-width: 0;
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
  line-height: 1.75;
}

.rating-overview + .rating-summary {
  margin-top: var(--space-5);
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.85;
}

.rating-summary > p {
  margin-bottom: var(--space-4);
}

.dimension-list {
  display: grid;
  gap: 13px;
}

.rating-overview > .dimension-list {
  padding-top: 4px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 56px minmax(40px, 1fr) 28px 36px;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  font-size: 11px;
}

.dimension-label {
  color: var(--secondary-foreground);
  white-space: nowrap;
}

.dimension-track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #ededee;
}

.dimension-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #52525b;
}

.dimension-value {
  color: var(--foreground);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dimension-count {
  color: var(--muted-foreground);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.panel-divider {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: var(--border);
}

.review-list {
  display: grid;
}

.review-heading h2 > span {
  margin-left: var(--space-1);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 400;
}

.review-filters {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.review-filter {
  min-height: 28px;
  padding: 4px var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  background: transparent;
  font-size: 10px;
}

.review-filter:hover,
.review-filter.is-active {
  color: var(--foreground);
  background: var(--surface);
}

.review-filter.is-active {
  border-color: var(--border);
}

.review-card {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.review-card:first-child {
  padding-top: 0;
}

.review-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.review-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.reviewer-avatar {
  display: grid;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--secondary-foreground);
  background: var(--surface);
  font-size: 10px;
  font-weight: 500;
}

.reviewer-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  color: var(--secondary-foreground);
  font-size: 11px;
}

.reviewer-info strong {
  color: var(--foreground);
  font-size: var(--text-xs);
  font-weight: 500;
}

.reviewer-info small,
.reviewer-info time {
  color: var(--muted-foreground);
  font-size: 10px;
}

.reviewer-info > span {
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.65;
}

.review-score {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-1);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.review-score svg {
  width: 11px;
  height: 11px;
}

.review-content {
  margin-top: var(--space-3);
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-3);
}

.review-tags > span {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  background: var(--surface);
  font-size: 10px;
  line-height: 16px;
}

.review-tags b {
  margin-left: 2px;
  color: var(--secondary-foreground);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.offer-summary {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.offer-summary > h2,
.offer-summary > h3 {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
}

.selected-product {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  color: var(--foreground);
  font-size: var(--text-sm);
  font-weight: 500;
}

.selected-product .product-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
}

.selected-product .product-icon svg {
  width: 18px;
  height: 18px;
}

.selected-product strong {
  display: block;
  font-weight: 500;
}

.selected-product h3 {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
}

.selected-product small,
.selected-product p {
  display: block;
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 400;
}

.selected-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  margin: var(--space-6) 0;
  font-variant-numeric: tabular-nums;
}

.selected-price > span {
  flex-basis: 100%;
  margin-bottom: var(--space-1);
}

.selected-price strong small {
  margin-right: 3px;
  color: var(--secondary-foreground);
  font-size: 17px;
  font-weight: 400;
}

.offer-platform-label {
  margin-top: var(--space-5);
  margin-bottom: 0;
}

.delivery-note {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--secondary-foreground);
  font-size: 11px;
  line-height: 1.8;
}

.delivery-note h3 {
  margin-bottom: var(--space-2);
  font-size: 11px;
  font-weight: 500;
}

.delivery-note > span {
  display: block;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 10px;
}

.private-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  background: var(--surface);
  font-size: 10px;
  line-height: 1.8;
}

.private-preview > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.private-preview svg {
  width: 11px;
  height: 11px;
}

.selected-price strong {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.25px;
}

.selected-price > span,
.selected-price > small {
  color: var(--muted-foreground);
  font-size: 11px;
}

.summary-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-3) 0;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.7;
}

.summary-line strong,
.summary-line > :last-child {
  color: var(--secondary-foreground);
  font-weight: 400;
  text-align: right;
}

.contact-button {
  width: 100%;
  min-height: 40px;
  margin-top: var(--space-5);
}

.locked-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  margin-top: var(--space-3);
  color: var(--muted-foreground);
  font-size: 10px;
  line-height: 1.7;
}

.locked-note svg {
  width: 12px;
  height: 12px;
  margin-top: 2px;
}

.score-help {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted-foreground);
  background: var(--surface);
  font-size: 11px;
  line-height: 1.8;
}

.score-help h3,
.score-help > strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
  font-weight: 500;
}

.score-help h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-help h3 svg {
  width: 14px;
  height: 14px;
}

.score-help > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--secondary-foreground);
  text-decoration: none;
}

.score-help > a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.score-help > a svg {
  width: 13px;
  height: 13px;
}

.score-help details + details {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

.score-help summary {
  color: var(--secondary-foreground);
  cursor: pointer;
}

.score-help details[open] summary {
  margin-bottom: var(--space-2);
}

.score-help p + p {
  margin-top: var(--space-2);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--secondary-foreground);
  background: var(--surface);
  font-size: 11px;
  line-height: 1.8;
}

.notice > svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

.notice.subtle {
  border-color: transparent;
  color: var(--muted-foreground);
}

/* Authentication remains a contained step. */
.auth-dialog {
  position: fixed;
  width: min(420px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
  background: #ffffff;
  box-shadow: 0 18px 60px rgb(0 0 0 / 14%), 0 2px 8px rgb(0 0 0 / 5%);
}

.auth-dialog::backdrop {
  background: rgb(24 24 27 / 35%);
  backdrop-filter: blur(3px);
}

.dialog-heading {
  position: relative;
  padding: 28px 28px 0;
}

.dialog-heading h2 {
  padding-right: var(--space-6);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.45px;
}

.dialog-kicker {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--muted-foreground);
  font-size: 11px;
}

.dialog-intro {
  margin: -5px 0 var(--space-5);
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  line-height: 1.85;
}

.dialog-heading p {
  margin-top: var(--space-2);
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  line-height: 1.8;
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  background: transparent;
}

.dialog-close:hover {
  color: var(--foreground);
  background: var(--surface);
}

.dialog-close svg {
  width: 16px;
  height: 16px;
}

.dialog-body {
  padding: var(--space-6) 28px 28px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  padding: var(--space-1);
  border-radius: var(--radius);
  background: var(--surface);
}

.auth-tab {
  min-height: 32px;
  padding: 6px var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 500;
}

.auth-tab:hover {
  color: var(--foreground);
}

.auth-tab.is-active {
  border-color: var(--border);
  color: var(--foreground);
  background: #ffffff;
}

.form-field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
  font-weight: 500;
}

.form-field label {
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
  font-weight: 500;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 40px;
  padding: 9px var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--foreground);
  background: #ffffff;
  font-size: var(--text-sm);
  font-weight: 400;
}

.form-field select {
  padding-right: var(--space-8);
}

.full-width {
  width: 100%;
}

.help-content h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.help-content h3:first-child {
  margin-top: 0;
}

.help-content p {
  color: var(--secondary-foreground);
  font-size: var(--text-xs);
  line-height: 1.9;
}

.form-field input::placeholder {
  color: var(--muted-foreground);
}

.form-field input[aria-invalid="true"] {
  border-color: var(--foreground);
  border-width: 2px;
}

.field-help {
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.75;
}

.dialog-body > .button,
.dialog-body form > .button {
  width: 100%;
  margin-top: var(--space-2);
}

.dialog-footer {
  padding: var(--space-4) 28px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  background: var(--surface);
  font-size: 11px;
  line-height: 1.75;
}

.dialog-footer a {
  color: var(--secondary-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: var(--space-6);
  bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: max-content;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px var(--space-4);
  border: 1px solid #3f3f46;
  border-radius: var(--radius);
  color: #ffffff;
  background: #27272a;
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
  font-size: var(--text-xs);
  line-height: 1.7;
  animation: toast-enter 160ms var(--ease) both;
}

.toast svg {
  width: 16px;
  height: 16px;
}

.skeleton {
  min-height: 14px;
  border-radius: var(--radius-sm);
  background: #ededee;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

@keyframes toast-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes skeleton-pulse {
  50% { opacity: 0.55; }
}

/* Narrow desktop and tablet */
@media (min-width: 1400px) {
  .supplier-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 192px;
  }

  .main-content {
    padding: var(--space-8);
    padding-bottom: var(--space-12);
  }

  .topbar {
    padding-right: var(--space-8);
    padding-left: var(--space-8);
  }

  .product-grid {
    gap: var(--space-4);
  }

  .product-card {
    padding: var(--space-5);
  }

  .card-link {
    margin-right: calc(-1 * var(--space-5));
    margin-bottom: calc(-1 * var(--space-5));
    margin-left: calc(-1 * var(--space-5));
    padding-right: var(--space-5);
    padding-left: var(--space-5);
  }

  .supplier-layout {
    grid-template-columns: minmax(0, 1fr) 254px;
    gap: var(--space-5);
  }

  .supplier-main {
    padding: var(--space-6);
  }

  .offer-summary {
    padding: var(--space-5);
  }

  .rating-overview {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: var(--space-4);
  }

  .dimension-row {
    grid-template-columns: 48px minmax(30px, 1fr) 24px;
  }

  .dimension-count {
    grid-column: 2 / -1;
    margin-top: -9px;
    text-align: right;
  }

  .comparison-table th,
  .comparison-table td {
    padding-right: var(--space-3);
    padding-left: var(--space-3);
  }

  .comparison-table th:first-child,
  .comparison-table td:first-child {
    padding-left: var(--space-4);
  }

  .comparison-table th:last-child,
  .comparison-table td:last-child {
    padding-right: var(--space-4);
  }

  .supplier-cell {
    min-width: 125px;
    gap: var(--space-2);
  }

  .supplier-cell .supplier-avatar {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 1020px) and (min-width: 761px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-heading {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .heading-note {
    flex-basis: 100%;
    margin-top: 0;
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .supplier-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .supplier-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .rating-overview {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: var(--space-6);
  }

  .dimension-row {
    grid-template-columns: 56px minmax(40px, 1fr) 28px 36px;
  }

  .dimension-count {
    grid-column: auto;
    margin-top: 0;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-table table {
    min-width: 690px;
  }
}

/* Mobile navigation and readable offer cards */
@media (max-width: 760px) {
  :root {
    --text-title: 25px;
    --topbar-height: 56px;
  }

  html {
    scroll-padding-top: 100px;
  }

  .prototype-banner {
    position: static;
    min-height: 32px;
    padding-right: var(--space-3);
    padding-left: var(--space-3);
    font-size: 10px;
  }

  .prototype-banner > span {
    text-align: left;
  }

  .prototype-banner > a {
    flex-shrink: 0;
  }

  .app-layout {
    display: block;
  }

  .sidebar {
    position: static;
    display: block;
    height: auto;
    padding: 0 var(--space-5);
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    min-height: 57px;
    padding: 0;
  }

  .sidebar nav {
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    padding: 0 0 var(--space-3);
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex-shrink: 0;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 7px 11px;
    font-size: var(--text-xs);
    white-space: nowrap;
  }

  .nav-caption,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }

  .topbar {
    top: 0;
    height: var(--topbar-height);
    padding: 0 var(--space-5);
  }

  .breadcrumb {
    gap: 7px;
    font-size: 11px;
  }

  .topbar-actions {
    gap: var(--space-2);
  }

  .topbar-actions .button {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .avatar {
    width: 28px;
    height: 28px;
  }

  .main-content {
    padding: 28px var(--space-5) var(--space-10);
  }

  .workspace-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
  }

  .page-heading {
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .page-heading h1 {
    font-size: var(--text-title);
    letter-spacing: -0.6px;
  }

  .page-heading p {
    max-width: 34em;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
  }

  .heading-actions {
    padding-top: 0;
  }

  .heading-note {
    margin-top: 0;
  }

  .directory-toolbar {
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }

  .search-box {
    flex-basis: 100%;
  }

  .search-box input {
    height: 42px;
    font-size: 14px;
  }

  .filter-select select {
    height: 38px;
    min-width: 128px;
    font-size: var(--text-xs);
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: calc(-1 * var(--space-5));
    margin-left: calc(-1 * var(--space-5));
    padding: 0 var(--space-5) var(--space-4);
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    flex-shrink: 0;
    min-height: 36px;
    padding: 8px 12px;
  }

  .section-meta {
    min-height: 57px;
    align-items: center;
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .product-card {
    padding: var(--space-6);
  }

  .product-top {
    margin-bottom: var(--space-4);
  }

  .product-card h2 {
    font-size: 18px;
  }

  .product-spec {
    min-height: 0;
  }

  .platform-list {
    margin-top: var(--space-3);
    margin-bottom: var(--space-5);
  }

  .card-link {
    min-height: 47px;
    margin-right: calc(-1 * var(--space-6));
    margin-bottom: calc(-1 * var(--space-6));
    margin-left: calc(-1 * var(--space-6));
    padding-right: var(--space-6);
    padding-left: var(--space-6);
  }

  .back-link {
    min-height: 36px;
    margin-bottom: var(--space-5);
  }

  .product-heading {
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .product-heading .product-icon.large {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-lg);
  }

  .product-heading .product-icon.large svg {
    width: 24px;
    height: 24px;
  }

  .product-heading-copy h1 {
    font-size: 21px;
    letter-spacing: -0.5px;
  }

  .product-heading-copy p {
    font-size: var(--text-xs);
  }

  .product-summary {
    flex-basis: 100%;
    align-items: flex-start;
    gap: var(--space-1);
    margin-top: 0;
    margin-left: 62px;
    padding-left: 0;
    font-size: 11px;
  }

  .product-summary strong {
    font-size: 25px;
  }

  .tab-note {
    display: none;
  }

  .comparison-toolbar {
    flex-wrap: wrap;
    gap: var(--space-3);
    min-height: 72px;
  }

  .comparison-toolbar > div {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .comparison-table {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .comparison-table table,
  .comparison-table tbody {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
    margin-bottom: var(--space-4);
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #ffffff;
  }

  .comparison-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .comparison-table td {
    display: block;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .comparison-table td.supplier-cell {
    display: block;
  }

  .comparison-table td.numeric {
    text-align: left;
  }

  .comparison-table td[colspan] {
    grid-column: 1 / -1;
    padding: 0;
  }

  .comparison-table td[colspan] .empty-state {
    min-height: 0;
    padding: var(--space-2);
    border: 0;
    background: transparent;
  }

  .comparison-table td[data-label]::before {
    display: block;
    margin-bottom: 6px;
    color: var(--muted-foreground);
    font-size: 10px;
    font-weight: 400;
    line-height: 16px;
    content: attr(data-label);
  }

  .comparison-table td:first-child {
    grid-column: 1 / -1;
    padding: 0 0 var(--space-4);
    border-bottom: 1px solid var(--border);
  }

  .comparison-table td:first-child::before,
  .comparison-table td:last-child::before {
    display: none;
  }

  .comparison-table td:last-child {
    grid-column: 1 / -1;
    padding: var(--space-1) 0 0;
    text-align: left;
  }

  .comparison-table td:last-child .button {
    width: 100%;
    min-height: 38px;
    font-size: var(--text-xs);
  }

  .comparison-table tbody tr:last-child td:first-child {
    border-bottom: 1px solid var(--border);
  }

  .supplier-cell {
    gap: var(--space-3);
  }

  .supplier-cell .supplier-avatar {
    width: 36px;
    height: 36px;
  }

  .supplier-info strong {
    font-size: var(--text-base);
  }

  .score-number {
    font-size: 18px;
  }

  .score-caption {
    display: inline;
    margin-left: 5px;
  }

  .comparison-footnote {
    margin-top: var(--space-5);
  }

  .supplier-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .supplier-main {
    padding: var(--space-5);
  }

  .supplier-aside {
    position: static;
    gap: var(--space-4);
  }

  .supplier-hero {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .supplier-avatar.large {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .supplier-identity h1 {
    font-size: 21px;
  }

  .supplier-actions {
    flex-basis: 100%;
    margin-top: var(--space-1);
  }

  .supplier-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
  }

  .meta-item {
    padding: var(--space-2) 0;
    font-size: 10px;
  }

  .meta-item + .meta-item {
    padding-left: var(--space-3);
  }

  .meta-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .meta-item strong {
    font-size: 20px;
  }

  .panel-divider {
    margin: var(--space-6) 0;
  }

  .rating-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }

  .rating-total {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .rating-total strong {
    font-size: 43px;
  }

  .rating-total small,
  .rating-total .rating-stars,
  .rating-total .stars {
    margin-top: 0;
  }

  .rating-total .rating-stars,
  .rating-total .stars {
    align-self: start;
  }

  .review-heading {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .review-filter {
    min-height: 32px;
  }

  .dimension-row {
    grid-template-columns: 56px minmax(30px, 1fr) 28px 36px;
    gap: var(--space-2);
  }

  .dimension-count {
    grid-column: auto;
    margin-top: 0;
  }

  .offer-summary {
    padding: var(--space-6);
  }

  .selected-price {
    margin: var(--space-5) 0;
  }

  .auth-dialog {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
  }

  .dialog-heading {
    padding: var(--space-6) var(--space-6) 0;
  }

  .dialog-body {
    padding: var(--space-5) var(--space-6) var(--space-6);
  }

  .dialog-footer {
    padding: var(--space-4) var(--space-6);
  }

  .form-field input {
    height: 44px;
    font-size: 16px;
  }

  .form-field select {
    height: 42px;
    font-size: 14px;
  }

  .empty-state {
    min-height: 220px;
    padding: var(--space-6);
  }

  .toast {
    right: var(--space-4);
    bottom: var(--space-4);
    left: var(--space-4);
    width: auto;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .main-content,
  .topbar {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .sidebar {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .product-card,
  .supplier-main {
    padding: var(--space-4);
  }

  .card-link {
    margin-right: calc(-1 * var(--space-4));
    margin-bottom: calc(-1 * var(--space-4));
    margin-left: calc(-1 * var(--space-4));
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .dimension-row {
    grid-template-columns: 48px minmax(24px, 1fr) 24px 32px;
    gap: 6px;
    font-size: 10px;
  }

  .topbar-actions .avatar {
    display: none;
  }

  .guest-label {
    display: none;
  }

  .prototype-banner {
    gap: 6px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
