.source-page-list,
.product-list {
  display: grid;
}

.source-page-row,
.product-row {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5eae6;
}

.source-page-row:last-child,
.product-row:last-child {
  border-bottom: 0;
}

.source-page-row .source-chip {
  margin-left: .75rem;
}

.product-row h3 {
  margin: 0 0 .25rem;
}

.product-row p {
  margin: .35rem 0;
}

.product-variant {
  display: grid;
  grid-template-columns: minmax(6.25rem, max-content) minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  margin: .65rem 0;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f5f7f5;
}

.product-quantity {
  display: grid;
  gap: .1rem;
  color: #14332d;
}

.product-quantity-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-quantity-value {
  font-size: 1.35rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.product-quantity-basis {
  max-width: 11rem;
  color: #5f716b;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.25;
}

.product-row .product-variant-details {
  margin: 0;
  color: #4f625c;
  line-height: 1.45;
}

.page-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.people-home-card {
  margin-top: 1.25rem;
}

.people-home-body {
  padding: 1rem 1.25rem 1.25rem;
}

.people-home-body p {
  margin-top: 0;
  max-width: 64rem;
  line-height: 1.55;
}

.people-list,
.relationship-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}

.person-row,
.relationship-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #d7dfd9;
  border-radius: 8px;
  background: #fff;
}

.relationship-row {
  display: block;
}

.person-row p,
.relationship-row p {
  margin: .25rem 0 0;
}

.person-row-title,
.person-badges,
.lifecycle-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.record-badge,
.relationship-chip {
  display: inline-block;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.3;
}

.record-badge.manual,
.relationship-chip.planned {
  background: #f9edd5;
  color: #86550d;
}

.record-badge.source,
.relationship-chip.current {
  background: #dff0e5;
  color: #1f6c46;
}

.record-badge.neutral,
.relationship-chip.unknown,
.relationship-chip.past {
  background: #e8ecea;
  color: #536761;
}

.relationship-chip {
  text-transform: capitalize;
}

.freshness-label {
  font-size: .82rem;
  font-weight: 700;
}

.freshness-label.current {
  color: #1f6c46;
}

.freshness-label.stale {
  color: #86550d;
}

.freshness-label.unknown,
.people-source-note {
  color: #5f716b;
}

.people-source-note {
  padding: .7rem .85rem;
  border-left: 4px solid #879891;
  background: #f0f3f1;
  line-height: 1.45;
}

.quantity-cell {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.provider-list {
  line-height: 1.6;
}

.lifecycle-actions button[aria-disabled="true"] {
  color: #536761;
  background: #edf0ee;
  cursor: not-allowed;
}

.person-drawer {
  width: min(680px, 94vw);
  max-height: 94vh;
  padding: 1.25rem;
  overflow: auto;
  border: 1px solid #b7c6be;
  border-radius: 12px;
  background: #fff;
  color: #14332d;
  box-shadow: 0 24px 70px #0e2e2544;
}

.person-drawer::backdrop {
  background: #102f2788;
}

@media (max-width: 650px) {
  .product-variant {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .person-row {
    align-items: stretch;
    flex-direction: column;
  }

  .person-row button {
    width: 100%;
  }

  .person-drawer {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
}
