.product-view {
  width: min(100%, 1280px);
  min-height: calc(100dvh - var(--topbar-height));
  margin: 0 auto;
  padding: 24px 32px 0;
}

.product-header {
  display: grid;
  grid-template-columns: 36px minmax(220px, 1fr) auto;
  align-items: center;
  min-height: 56px;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.product-back {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 21px;
  text-decoration: none;
}

.product-back:hover {
  background: var(--surface-raised);
  color: var(--text);
}

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

.product-identity h1 {
  overflow: hidden;
  margin: 0;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-identity p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-mode-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-mode-tabs a {
  display: grid;
  min-width: 62px;
  min-height: 32px;
  padding: 0 12px;
  place-items: center;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.product-mode-tabs a[aria-selected="true"] {
  background: var(--surface-selected);
  color: var(--text);
  font-weight: 650;
}

.product-command-error {
  margin-top: 16px;
  padding: 11px 12px;
  border-left: 3px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--text);
  font-size: 13px;
}

.product-mode {
  padding: 28px 0 40px;
}

.product-mode > h2 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 680;
}

.decision-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0;
  max-width: 760px;
  margin: 0;
  border-top: 1px solid var(--border);
}

.decision-facts > div {
  min-height: 82px;
  padding: 17px 18px 14px 0;
  border-bottom: 1px solid var(--border);
}

.decision-facts dt,
.listing-preview span {
  color: var(--text-tertiary);
  font-size: 11px;
}

.decision-facts dd {
  margin: 5px 0 0;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.decision-blockers {
  max-width: 760px;
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.decision-blockers > strong {
  color: var(--danger);
  font-size: 12px;
}

.decision-blockers ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
  list-style: none;
}

.selection-research {
  width: min(100%, 760px);
}

.selection-research-heading {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.selection-research-heading > div,
.selection-next-action {
  display: grid;
  gap: 6px;
}

.selection-research-heading span,
.selection-next-action span {
  color: var(--text-tertiary);
  font-size: 11px;
}

.selection-research-heading strong {
  font-size: 20px;
  font-weight: 680;
}

.selection-blockers {
  margin-top: 0;
}

.selection-blockers p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.selection-next-action {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.selection-next-action strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.5;
}
