
.cmp {
  /* Foundation tokens */
  --cmp-space-1: 4px;
  --cmp-space-2: 8px;
  --cmp-space-3: 12px;
  --cmp-space-4: 16px;
  --cmp-space-5: 20px;
  --cmp-space-6: 24px;
  --cmp-space-7: 28px;
  --cmp-space-8: 32px;
  --cmp-space-10: 40px;

  --cmp-radius-sm: 6px;
  --cmp-radius-md: 8px;
  --cmp-radius-lg: 12px;
  --cmp-radius-xl: 16px;

  /* Semantic tokens (approved directory ink / white / blue palette) */
  --cmp-canvas: #f7f9fc;
  --cmp-surface: #ffffff;
  --cmp-surface-subtle: #f4f7fb;
  --cmp-surface-diff: #f5f9ff;
  --cmp-surface-selected: #e8f1ff;
  --cmp-border: #e1e5eb;
  --cmp-border-subtle: #edf0f5;
  --cmp-ink: #17191f;
  --cmp-ink-secondary: #535c6a;
  --cmp-ink-muted: #68707d;
  --cmp-action: #0768e9;
  --cmp-action-strong: #0654bf;
  --cmp-focus: #82b3f6;

  --cmp-yes-bg: #e7f6ef;
  --cmp-yes-ink: #0f6b4a;
  --cmp-no-bg: #f1f3f6;
  --cmp-no-ink: #646e7d;
  --cmp-warn-bg: #fef6e4;
  --cmp-warn-ink: #8a5600;
  --cmp-unknown-bg: #f3f5f8;
  --cmp-unknown-ink: #5d6776;
  --cmp-error-ink: #b42318;

  /* Component layout tokens */
  --cmp-grid-cols: minmax(190px, 0.72fr) minmax(0, 1fr) minmax(0, 1fr);
  --cmp-pad-x: var(--cmp-space-7);

  max-width: 1120px;
  margin: 0 auto;
  padding: var(--cmp-space-2) 0 var(--cmp-space-10);
  color: var(--cmp-ink);
}

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

.cmp [hidden] {
  display: none !important;
}

.cmp h1,
.cmp h2,
.cmp p,
.cmp figure {
  margin: 0;
}

.cmp button,
.cmp input {
  font: inherit;
}

.cmp button {
  cursor: pointer;
}

.cmp :focus-visible {
  outline: 2px solid var(--cmp-action);
  outline-offset: 2px;
}

.cmp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Page Header */
.cmp-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--cmp-space-4);
  margin-bottom: var(--cmp-space-5);
}

.cmp-header-main {
  min-width: 0;
  flex: 1;
}

.cmp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cmp-space-3);
  margin-bottom: var(--cmp-space-2);
}

.cmp-crumb {
  display: flex;
  align-items: center;
  gap: var(--cmp-space-2);
  font-size: 13px;
  color: var(--cmp-ink-muted);
}

.cmp-alt-mobile {
  display: none;
}

.directory .cmp-crumb a {
  color: var(--cmp-action);
  font-weight: 600;
}

.directory .cmp-crumb a:hover {
  color: var(--cmp-action-strong);
}

.cmp-header h1 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.directory .cmp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--cmp-space-4);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-surface);
  color: var(--cmp-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.directory .cmp-btn-secondary:hover {
  background: var(--cmp-surface-subtle);
  border-color: #cbd3df;
}

/* In-page section jump navigation */
.cmp-jump-nav {
  display: flex;
  align-items: center;
  gap: var(--cmp-space-1);
  margin-bottom: var(--cmp-space-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.cmp-jump-nav::-webkit-scrollbar {
  display: none;
}

.directory .cmp-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--cmp-space-3);
  border-radius: var(--cmp-radius-md);
  color: var(--cmp-ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}

.directory .cmp-jump-nav a:hover {
  background: #e9eff7;
  color: var(--cmp-ink);
}

.directory .cmp-jump-nav a[aria-current="location"] {
  background: var(--cmp-surface-selected);
  color: var(--cmp-action-strong);
}

/* Main unified comparison sheet */
.cmp-sheet {
  background: var(--cmp-surface);
  border: 0;
  border-radius: var(--cmp-radius-xl);
  box-shadow: 0 1px 3px rgba(23, 25, 31, 0.04);
}

@supports (corner-shape: squircle) {
  .cmp-sheet {
    corner-shape: squircle;
  }
}

/* Sticky aligned product header */
.cmp-sticky-sentinel {
  height: 1px;
  margin-bottom: -1px;
  pointer-events: none;
}

.cmp-sticky-head {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: var(--cmp-grid-cols);
  gap: var(--cmp-space-5);
  align-items: center;
  padding: var(--cmp-space-5) var(--cmp-pad-x);
  background: var(--cmp-surface);
  border-bottom: 1px solid var(--cmp-border);
  border-top-left-radius: var(--cmp-radius-xl);
  border-top-right-radius: var(--cmp-radius-xl);
  transition: box-shadow 140ms ease, border-radius 140ms ease;
}

.cmp-sticky-head.is-stuck {
  border-top: 1px solid var(--cmp-border);
  border-top-left-radius: var(--cmp-radius-lg);
  border-top-right-radius: var(--cmp-radius-lg);
  box-shadow: 0 8px 24px rgba(23, 25, 31, 0.08);
}

.cmp-sticky-head.is-stuck::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -78px;
  height: 78px;
  background: var(--cmp-canvas);
  pointer-events: none;
  z-index: -1;
}

.cmp-ed-short {
  display: none;
}

.cmp-sticky-corner {
  display: flex;
  flex-direction: column;
  gap: var(--cmp-space-1);
}

.cmp-sticky-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--cmp-ink);
}

.cmp-sticky-hint {
  font-size: 12px;
  color: var(--cmp-ink-muted);
}

.cmp-prod-col {
  display: flex;
  flex-direction: column;
  gap: var(--cmp-space-3);
  min-width: 0;
}

.cmp-prod-top {
  display: flex;
  align-items: center;
  gap: var(--cmp-space-3);
  min-width: 0;
}

.cmp-prod-top img {
  width: 36px;
  height: 36px;
  border-radius: var(--cmp-radius-md);
  object-fit: contain;
  flex: none;
  background: var(--cmp-surface-subtle);
}

.cmp-prod-meta {
  min-width: 0;
  flex: 1;
}

.cmp-prod-title-row {
  display: flex;
  align-items: baseline;
  gap: var(--cmp-space-2);
  flex-wrap: wrap;
}

.directory .cmp-prod-name {
  color: var(--cmp-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.directory .cmp-prod-name:hover {
  color: var(--cmp-action);
}

.cmp-prod-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--cmp-action-strong);
  font-variant-numeric: tabular-nums;
}

.cmp-prod-maker {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--cmp-ink-muted);
}

.directory .cmp-prod-maker a {
  color: inherit;
}

.directory .cmp-prod-maker a:hover {
  color: var(--cmp-action);
}

/* Segmented RadioGroup (concentric: outer 8px, inset 2px -> inner 6px) */
.cmp-edition-group,
.cmp-billing-group {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 2px;
  background: var(--cmp-surface-subtle);
  border: 1px solid var(--cmp-border-subtle);
  border-radius: var(--cmp-radius-md);
  width: fit-content;
  max-width: 100%;
}

.cmp-edition-group button,
.cmp-billing-group button {
  border: 0;
  border-radius: var(--cmp-radius-sm);
  min-height: 32px;
  padding: 0 var(--cmp-space-3);
  background: transparent;
  color: var(--cmp-ink-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.cmp-edition-group button:hover,
.cmp-billing-group button:hover {
  color: var(--cmp-ink);
}

.cmp-edition-group button[aria-checked="true"],
.cmp-billing-group button[aria-checked="true"] {
  background: var(--cmp-surface);
  color: var(--cmp-ink);
  box-shadow: 0 1px 2px rgba(23, 25, 31, 0.08);
}

.cmp-edition-static {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--cmp-space-3);
  background: var(--cmp-surface-subtle);
  border: 1px solid var(--cmp-border-subtle);
  border-radius: var(--cmp-radius-md);
  color: var(--cmp-ink-secondary);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections inside the sheet */
.cmp-section {
  padding: var(--cmp-space-7) var(--cmp-pad-x);
  scroll-margin-top: 212px;
}

.cmp-section + .cmp-section {
  border-top: 0;
  padding-top: var(--cmp-space-6);
}

.cmp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cmp-space-4);
  margin-bottom: var(--cmp-space-4);
  flex-wrap: wrap;
}

.cmp-section-head h2 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Feature toolbar */
.cmp-features-head {
  align-items: flex-start;
  flex-direction: column;
  gap: var(--cmp-space-3);
}

.cmp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cmp-space-3);
  width: 100%;
  flex-wrap: wrap;
}

.cmp-filter {
  display: inline-flex;
  gap: var(--cmp-space-1);
  padding: 2px;
  background: var(--cmp-surface-subtle);
  border-radius: var(--cmp-radius-md);
}

.cmp-filter button {
  border: 0;
  border-radius: var(--cmp-radius-sm);
  min-height: 34px;
  padding: 0 var(--cmp-space-3);
  background: transparent;
  color: var(--cmp-ink-secondary);
  font-size: 12px;
  font-weight: 600;
}

.cmp-filter button:hover {
  color: var(--cmp-ink);
}

.cmp-filter button[aria-pressed="true"] {
  background: var(--cmp-surface);
  color: var(--cmp-action-strong);
  box-shadow: 0 1px 2px rgba(23, 25, 31, 0.07);
}

.cmp-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--cmp-space-3);
  flex-wrap: wrap;
}

/* Semantic Switch: Only differences */
.cmp-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--cmp-space-2);
  min-height: 36px;
  padding: 0 var(--cmp-space-2);
  border: 0;
  border-radius: var(--cmp-radius-md);
  background: transparent;
  color: var(--cmp-ink-secondary);
  font-size: 13px;
  font-weight: 600;
}

.cmp-switch:hover {
  color: var(--cmp-ink);
}

.cmp-switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cdd5e0;
  transition: background-color 140ms ease;
  flex: none;
}

.cmp-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(23, 25, 31, 0.2);
  transition: transform 140ms ease;
}

.cmp-switch[aria-checked="true"] {
  color: var(--cmp-ink);
}

.cmp-switch[aria-checked="true"] .cmp-switch-track {
  background: var(--cmp-action);
}

.cmp-switch[aria-checked="true"] .cmp-switch-thumb {
  transform: translateX(14px);
}

/* Search input */
.cmp-search {
  display: flex;
  align-items: center;
  gap: var(--cmp-space-2);
  height: 38px;
  width: 224px;
  max-width: 100%;
  padding: 0 var(--cmp-space-3);
  background: var(--cmp-surface-subtle);
  border: 1px solid transparent;
  border-radius: var(--cmp-radius-md);
  color: var(--cmp-ink-muted);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.cmp-search:focus-within {
  background: var(--cmp-surface);
  border-color: var(--cmp-action);
  box-shadow: 0 0 0 3px rgba(7, 104, 233, 0.14);
}

.cmp-search svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.cmp-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cmp-ink);
  font-size: 13px;
}

.cmp-search input:focus-visible,
.cmp-budget-input input:focus-visible {
  outline: none;
}

/* Aligned comparison rows */
.cmp-rows {
  display: grid;
  gap: 2px;
}

.cmp-group-row {
  padding: var(--cmp-space-5) 0 var(--cmp-space-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--cmp-ink-muted);
}

.cmp-group-row:first-child {
  padding-top: var(--cmp-space-2);
}

.cmp-row {
  display: grid;
  grid-template-columns: var(--cmp-grid-cols);
  gap: var(--cmp-space-5);
  align-items: center;
  min-height: 48px;
  padding: var(--cmp-space-3) var(--cmp-space-3);
  margin: 0 calc(var(--cmp-space-3) * -1);
  border-radius: var(--cmp-radius-md);
  font-size: 13.5px;
  line-height: 1.45;
  transition: background-color 100ms ease;
}

.cmp-row + .cmp-row {
  border-top: 0;
}

.cmp-row.is-diff {
  background: var(--cmp-surface-diff);
}

.cmp-row:hover {
  background: #eff5fc;
}

.cmp-row-label {
  display: inline-flex;
  align-items: center;
  gap: var(--cmp-space-2);
  font-weight: 600;
  color: var(--cmp-ink);
}

.cmp-diff-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cmp-action);
  flex: none;
}

.cmp-cell {
  min-width: 0;
  color: var(--cmp-ink-secondary);
}

.cmp-strong {
  color: var(--cmp-ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.cmp-cell-text {
  color: var(--cmp-ink);
}

.cmp-cell-muted {
  color: var(--cmp-ink-secondary);
}

/* Status badges (non-pill compact semantic indicators) */
.cmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
}

.cmp-badge svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.cmp-badge-yes {
  color: var(--cmp-yes-ink);
}

.cmp-badge-yes svg {
  padding: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cmp-yes-bg);
}

.cmp-badge-no {
  color: var(--cmp-no-ink);
}

.cmp-badge-no svg {
  padding: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cmp-no-bg);
}

.cmp-badge-unknown {
  padding: 3px 8px;
  border-radius: var(--cmp-radius-sm);
  background: var(--cmp-unknown-bg);
  color: var(--cmp-unknown-ink);
  font-size: 12px;
}

.cmp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa4b2;
  flex: none;
}

.cmp-badge-limited {
  padding: 3px 8px;
  border-radius: var(--cmp-radius-sm);
  background: var(--cmp-warn-bg);
  color: var(--cmp-warn-ink);
  font-size: 12px;
}

/* Empty state */
.cmp-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cmp-space-4);
  padding: var(--cmp-space-5);
  margin-top: var(--cmp-space-2);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-surface-subtle);
  color: var(--cmp-ink-secondary);
  font-size: 13px;
}

.cmp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 var(--cmp-space-3);
  border: 0;
  border-radius: var(--cmp-radius-sm);
  background: var(--cmp-surface-selected);
  color: var(--cmp-action-strong);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cmp-btn-ghost:hover {
  background: #d8e7ff;
}

/* Cost controls & total row */
.cmp-cost-controls {
  display: flex;
  align-items: center;
  gap: var(--cmp-space-4);
  flex-wrap: wrap;
}

.cmp-budget {
  display: inline-flex;
  align-items: center;
  gap: var(--cmp-space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--cmp-ink-secondary);
}

.cmp-budget-input {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 var(--cmp-space-3);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-surface);
  transition: border-color 120ms ease;
}

.cmp-budget-input:focus-within {
  border-color: var(--cmp-action);
  box-shadow: 0 0 0 3px rgba(7, 104, 233, 0.14);
}

.cmp-budget-prefix,
.cmp-budget-suffix {
  font-size: 13px;
  font-weight: 500;
  color: var(--cmp-ink-muted);
}

.cmp-budget-input input {
  width: 64px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 var(--cmp-space-1);
  font-size: 14px;
  font-weight: 650;
  color: var(--cmp-ink);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.cmp-budget-input input::-webkit-outer-spin-button,
.cmp-budget-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cmp-num {
  font-variant-numeric: tabular-nums;
  color: var(--cmp-ink);
}

.cmp-row-total {
  margin-top: var(--cmp-space-2);
  padding-top: var(--cmp-space-4);
  padding-bottom: var(--cmp-space-4);
  background: var(--cmp-surface-selected);
  border-top: 0 !important;
}

.cmp-row-total:hover {
  background: var(--cmp-surface-selected);
}

.cmp-row-total .cmp-row-label {
  font-weight: 700;
}

.cmp-row-total .cmp-cell {
  font-size: 18px;
  font-weight: 750;
  color: var(--cmp-ink);
  letter-spacing: -0.02em;
}

.cmp-note {
  margin-top: var(--cmp-space-4);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cmp-ink-muted);
}

.cmp-cost-error {
  margin-bottom: var(--cmp-space-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--cmp-error-ink);
}

/* Side-by-side Interface Preview aligned to product columns */
.cmp-views-grid {
  display: grid;
  grid-template-columns: var(--cmp-grid-cols);
  gap: var(--cmp-space-5);
  align-items: start;
}

.cmp-views-label strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--cmp-ink);
}

.cmp-views-label p {
  margin-top: var(--cmp-space-1);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cmp-ink-muted);
}

.cmp-view-card {
  display: flex;
  flex-direction: column;
  gap: var(--cmp-space-2);
  min-width: 0;
}

.cmp-view-trigger {
  display: block;
  width: 100%;
  padding: var(--cmp-space-2);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-lg);
  background: var(--cmp-surface-subtle);
  overflow: hidden;
  transition: border-color 140ms ease, transform 140ms ease;
}

.cmp-view-trigger:hover {
  border-color: #b7c4d6;
}

.cmp-view-trigger img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--cmp-radius-lg) - var(--cmp-space-2));
  background: #e9eef5;
}

.cmp-view-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cmp-space-2);
  font-size: 12.5px;
  color: var(--cmp-ink-secondary);
}

.directory .cmp-view-card figcaption a {
  color: var(--cmp-action);
  font-weight: 600;
}

/* Sources disclosure footer */
.cmp-footer {
  padding: var(--cmp-space-4) var(--cmp-pad-x) var(--cmp-space-6);
  border-top: 1px solid var(--cmp-border-subtle);
}

.cmp-disclosure summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--cmp-action);
}

.cmp-disclosure-body {
  margin-top: var(--cmp-space-2);
  padding: var(--cmp-space-4);
  border-radius: var(--cmp-radius-md);
  background: var(--cmp-surface-subtle);
  font-size: 13px;
  line-height: 1.6;
  color: var(--cmp-ink-secondary);
}

.cmp-sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cmp-space-2) var(--cmp-space-4);
  list-style: none;
  margin: var(--cmp-space-3) 0 0;
  padding: 0;
}

.directory .cmp-sources a {
  color: var(--cmp-action);
  font-weight: 600;
  font-size: 12.5px;
}

/* Screenshot lightbox dialog */
.cmp-lightbox {
  width: min(960px, calc(100vw - 32px));
  padding: var(--cmp-space-4);
  border: 1px solid var(--cmp-border);
  border-radius: var(--cmp-radius-xl);
  background: var(--cmp-surface);
  color: var(--cmp-ink);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.cmp-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
}

.cmp-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cmp-space-3);
  margin-bottom: var(--cmp-space-3);
  flex-wrap: wrap;
}

.cmp-lightbox-actions {
  display: flex;
  align-items: center;
  gap: var(--cmp-space-3);
}

.directory .cmp-lightbox-actions a {
  color: var(--cmp-action);
  font-size: 13px;
  font-weight: 600;
}

.cmp-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cmp-radius-md);
  border: 1px solid var(--cmp-border-subtle);
}

/* Tablet */
@media (max-width: 960px) {
  .cmp {
    --cmp-grid-cols: minmax(150px, 0.65fr) minmax(0, 1fr) minmax(0, 1fr);
    --cmp-pad-x: var(--cmp-space-5);
  }
}

/* Phone */
@media (max-width: 720px) {
  .cmp {
    --cmp-pad-x: var(--cmp-space-4);
    padding: var(--cmp-space-1) 0 var(--cmp-space-8);
  }

  .cmp-header {
    display: block;
    margin-bottom: var(--cmp-space-3);
  }

  .cmp-header-actions {
    display: none;
  }

  .directory .cmp-alt-mobile {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 var(--cmp-space-2);
    margin-right: calc(var(--cmp-space-2) * -1);
    color: var(--cmp-action);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .cmp-header h1 {
    font-size: 26px;
  }

  .cmp-ed-long {
    display: none;
  }

  .cmp-ed-short {
    display: inline;
  }

  .cmp-jump-nav {
    margin: 0 calc(var(--cmp-space-4) * -1) var(--cmp-space-3);
    padding: 0 var(--cmp-space-4);
  }

  .directory .cmp-jump-nav a {
    min-height: 44px;
  }

  .cmp-sheet {
    border-radius: var(--cmp-radius-lg);
  }

  .cmp-sticky-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cmp-space-3);
    padding: var(--cmp-space-3) var(--cmp-pad-x);
    border-top-left-radius: var(--cmp-radius-lg);
    border-top-right-radius: var(--cmp-radius-lg);
  }

  .cmp-sticky-corner {
    display: none;
  }

  .cmp-prod-col {
    gap: var(--cmp-space-2);
  }

  .cmp-prod-top {
    gap: var(--cmp-space-2);
  }

  .cmp-prod-top img {
    width: 28px;
    height: 28px;
    border-radius: var(--cmp-radius-sm);
  }

  .directory .cmp-prod-name {
    font-size: 14px;
  }

  .cmp-prod-price {
    font-size: 11px;
  }

  .cmp-prod-maker {
    display: none;
  }

  .cmp-edition-group {
    width: 100%;
  }

  .cmp-edition-static {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    padding: 0 6px;
    font-size: 11px;
  }

  .cmp-edition-group button {
    min-height: 36px;
    padding: 0 4px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cmp-section {
    padding: var(--cmp-space-5) var(--cmp-pad-x);
    scroll-margin-top: 192px;
  }

  .cmp-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--cmp-space-3);
  }

  .cmp-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmp-filter button {
    min-height: 40px;
  }

  .cmp-toolbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: var(--cmp-space-2);
  }

  .cmp-switch {
    min-height: 44px;
    padding: 0;
  }

  .cmp-search {
    width: 100%;
    height: 44px;
  }

  .cmp-search input {
    font-size: 16px;
  }

  /* Shared row label above two equal product columns */
  .cmp-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cmp-space-2) var(--cmp-space-3);
    padding: var(--cmp-space-3) var(--cmp-space-2);
    margin: 0 calc(var(--cmp-space-2) * -1);
    min-height: unset;
    align-items: start;
  }

  .cmp-row-label {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .cmp-cell {
    font-size: 13px;
  }

  .cmp-cost-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cmp-budget-input {
    height: 44px;
  }

  .cmp-budget-input input {
    font-size: 16px;
  }

  .cmp-billing-group button {
    min-height: 40px;
  }

  .cmp-row-total .cmp-cell {
    font-size: 16px;
  }

  .cmp-views-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cmp-space-3);
  }

  .cmp-views-label {
    grid-column: 1 / -1;
  }

  .cmp-view-trigger {
    padding: var(--cmp-space-1);
    border-radius: var(--cmp-radius-md);
  }

  .cmp-view-trigger img {
    border-radius: 4px;
  }

  .cmp-empty {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmp *,
  .cmp *::before,
  .cmp *::after {
    transition: none !important;
  }
}
