.people-query,
.people-source,
.person-banner,
.people-cert-actions,
.people-search,
.people-tools,
.person-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.people-query,
.people-source,
.person-banner,
.people-cert-actions,
.people-profile-metrics,
.people-history {
  padding: 16px 24px;
}

.people-query { justify-content: space-between; padding-top: 4px; }
.people-query .toolbar:empty { display: none; }
.people-search { flex-wrap: nowrap; gap: 8px; min-width: 0; max-width: 100%; }
.people-source,
.people-cert-actions { border-top: 1px solid var(--td-component-stroke, #e7e7e7); }
.people-source { gap: 12px 28px; color: var(--td-text-color-secondary, #606266); font-size: 14px; }
.people-source > span { min-width: 0; overflow-wrap: anywhere; }
.people-tools { gap: 8px 20px; font-size: 14px; }
.people-tools .link-button { padding-block: 4px; }
.people-profile-actions { margin-left: auto; justify-content: flex-end; }

.person-cell { gap: 10px; flex-wrap: nowrap; }
.people-workspace td small {
  display: block;
  color: var(--td-text-color-secondary, #606266);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
}
.person-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--td-brand-color, #0052d9);
  background: var(--td-brand-color-light, #ecf2fe);
  font-size: 14px;
  font-weight: 500;
}
.person-avatar.large { width: 48px; height: 48px; font-size: 20px; }
.person-banner { gap: 12px 16px; padding-block: 24px; }
.person-identity { min-width: 0; }
.person-identity h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.person-identity > span { font-size: 14px; color: var(--td-text-color-secondary, #606266); }
.people-workspace .detail-item :is(strong, small) { display: block; overflow-wrap: anywhere; }
.people-workspace .detail-item strong { font-weight: 500; }

.people-profile-metrics .detail-grid { padding: 0; }
.people-evidence {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  margin: 0 24px 24px;
  padding: 12px 20px;
  border: 1px solid var(--td-component-stroke, #e7e7e7);
  border-radius: 6px;
}
.people-evidence > div { flex: 1; min-width: 0; }
.people-evidence h3 { margin: 0 0 8px; font-size: 14px; line-height: 22px; font-weight: 600; }
.people-radar { width: min(32%, 230px); height: 180px; flex: none; }
.people-radar .radar-grid { fill: none; stroke: #dbdfe6; }
.people-radar .radar-axis { stroke: #e6e9ef; }
.people-radar text { fill: var(--td-text-color-secondary, #606266); font-size: 11px; }
.people-radar .radar-area { fill: var(--td-brand-color, #0052d9); stroke: var(--td-brand-color, #0052d9); fill-opacity: .13; stroke-width: 1.7; }
.people-radar .radar-point { fill: var(--td-brand-color, #0052d9); stroke: white; stroke-width: 1.3; }
.people-dimension {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--td-component-stroke, #e7e7e7);
  border-radius: 0;
  text-align: left;
  line-height: 1.5;
  font: inherit;
  color: var(--td-text-color-primary, #222);
  cursor: pointer;
}
.people-dimension:last-child { border-bottom-color: transparent; }
.people-dimension:hover { background: var(--td-bg-color-container-hover, #f3f3f3); }
.people-dimension:focus-visible,
.people-history summary:focus-visible {
  outline: 2px solid var(--td-brand-color, #0052d9);
  outline-offset: 2px;
}
.people-dimension > span { display: inline-flex; align-items: center; gap: 8px; }
.dimension-index {
  display: grid;
  place-items: center;
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 3px;
  background: var(--td-brand-color-light, #ecf2fe);
  color: var(--td-brand-color, #0052d9);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dimension-score { flex: none; color: var(--td-text-color-secondary, #606266); font-size: 12px; }
.dimension-score .icon { color: var(--td-brand-color, #0052d9); }
.people-history { overflow-x: auto; }
.people-history summary { width: fit-content; color: var(--td-brand-color, #0052d9); cursor: pointer; }
.people-history[open] summary { margin-bottom: 12px; }
.people-type-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 640px) {
  .person-roster td:first-child { min-width: 128px; }
  .person-roster td:nth-child(2), .person-roster td:nth-child(4) { min-width: 112px; }
  .person-roster td:nth-child(3) { min-width: 135px; }
  .person-cell :is(b, small), .qualifications-ledger td:nth-child(4) { white-space: nowrap; }
  .qualifications-ledger td:first-child { min-width: 115px; }
  .qualifications-ledger td:nth-child(2) { min-width: 180px; }
  .qualifications-ledger td:nth-child(3) { min-width: 145px; overflow-wrap: anywhere; }
  .qualifications-ledger td:nth-child(5) { min-width: 90px; }
  .people-workspace table .link-button { white-space: nowrap; }
  .qualifications-ledger td:last-child, .person-roster td:last-child { min-width: 92px; }
  .people-query,
  .people-source,
  .person-banner,
  .people-cert-actions,
  .people-profile-metrics,
  .people-history { padding-inline: 16px; }
  .people-query { gap: 8px; }
  .people-search { width: 100%; }
  .people-evidence { flex-direction: column; align-items: stretch; gap: 8px; margin: 0 16px 16px; padding: 12px; }
  .people-radar { align-self: center; width: 190px; height: 150px; }
  .people-type-list { grid-template-columns: 1fr; }
  .person-banner { padding-block: 16px; }
  .people-profile-actions { margin-left: 0; }
}
