.company-people-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line, #cdd6dc); border-radius: 8px; background: var(--surface, #fff); color: var(--ink, #18252b); font: 14px/1.5 system-ui, sans-serif; letter-spacing: 0; }
.company-people-dialog::backdrop { background: #15222a66; }
.company-people-dialog[open] { display: flex; flex-direction: column; }
.company-people-dialog * { box-sizing: border-box; }
.company-people-header, .company-people-footer { padding: 14px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.company-people-header { justify-content: space-between; border-bottom: 1px solid var(--line, #cdd6dc); }
.company-people-header h2 { margin: 0; font-size: 20px; }
.company-people-footer { justify-content: flex-end; border-top: 1px solid var(--line, #cdd6dc); }
.company-people-body { padding: 12px 20px 20px; overflow: auto; min-height: 0; }
.company-people-tabs { display: flex; gap: 4px; padding: 8px 20px 0; }
.company-people-tabs button { flex: 1; padding: 9px; border: 0; border-bottom: 2px solid transparent; color: inherit; background: transparent; font: inherit; }
.company-people-tabs button[aria-selected="true"] { border-color: var(--accent, #087f8c); font-weight: 650; }
.company-people-dialog h3 { font-size: 16px; margin: 18px 0 10px; }
.company-people-dialog p, .company-people-dialog h2, .company-people-dialog h3, .company-people-dialog label, .company-people-batch { overflow-wrap: anywhere; }
.company-people-dialog label { display: grid; gap: 5px; min-width: 0; }
.company-people-dialog select, .company-people-dialog input[type="file"] { width: 100%; min-width: 0; min-height: 40px; border: 1px solid var(--line, #cdd6dc); border-radius: 6px; padding: 8px; background: var(--surface, #fff); color: inherit; font: inherit; }
.company-people-dialog button { min-height: 40px; max-width: 100%; white-space: normal; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; cursor: pointer; }
.company-people-dialog button:disabled { cursor: default; opacity: .55; }
.company-people-dialog .primary, .company-people-dialog .secondary { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line, #cdd6dc); }
.company-people-dialog .primary { color: var(--on-accent, #fff); background: var(--accent, #087f8c); }
.company-people-dialog .secondary { color: inherit; background: var(--surface, #fff); }
.company-people-dialog .icon-button { border: 0; background: transparent; color: inherit; width: 40px; flex-shrink: 0; }
.company-people-status { min-height: 1.5em; margin: 0 0 8px; }
.company-people-consent { margin: 0 0 14px; color: var(--muted, #53616e); font-size: 13px; }
.company-people-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin: 18px 0; }
.company-people-file p { grid-column: 1 / -1; margin: 0; }
.company-people-mapping { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.company-people-body > label { margin-bottom: 12px; }
.company-people-error { color: #a32626; }
.company-people-counts, .company-people-complete dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.company-people-dialog dt { font-size: 12px; color: var(--muted, #53616e); }
.company-people-dialog dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.company-people-counts dd, .company-people-complete dd { font-size: 20px; }
.company-people-table { max-width: 100%; overflow: auto; margin: 14px 0; }
.company-people-table table { width: 100%; min-width: 700px; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.company-people-table th, .company-people-table td { padding: 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line, #cdd6dc); overflow-wrap: anywhere; }
.company-people-table th:first-child { width: 9%; }
.company-people-table th:last-child { width: 26%; }
.company-people-table[aria-label="Imported people"] th:first-child { width: 15%; }
.company-people-table small { display: block; margin-top: 5px; }
.company-people-table details { margin-top: 8px; }
.company-people-table summary { cursor: pointer; }
.company-people-cell-label { display: none; }
.company-people-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.company-people-dialog .company-people-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.company-people-confirm input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.company-people-batch { font-size: 12px; margin-top: 16px; }
.company-people-batch button { margin-left: 8px; }
.company-people-invitations section { border-bottom: 1px solid var(--line, #cdd6dc); padding: 8px 0 18px; }
.company-people-invitations section > div { display: flex; gap: 10px; flex-wrap: wrap; }
.company-people-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.company-people-close-confirm { border-bottom: 1px solid var(--line, #cdd6dc); padding: 8px 0 16px; margin-bottom: 16px; }
.company-people-close-confirm button, .company-people-complete button { margin: 4px 8px 4px 0; }
@media (max-width: 640px) {
  .company-people-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .company-people-header, .company-people-footer { padding: 12px; }
  .company-people-body { padding: 12px; }
  .company-people-tabs { padding: 8px 12px 0; }
  .company-people-file, .company-people-mapping { grid-template-columns: minmax(0, 1fr); }
  .company-people-file button { justify-self: start; }
  .company-people-counts, .company-people-complete dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-people-dialog select, .company-people-dialog input { font-size: 16px; }
  .company-people-table { overflow: visible; }
  .company-people-table table, .company-people-table tbody { display: block; min-width: 0; width: 100%; }
  .company-people-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .company-people-table tbody tr { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line, #cdd6dc); }
  .company-people-table td { display: block; order: 2; width: 100%; min-width: 0; padding: 0; border: 0; }
  .company-people-table .company-people-cell-identity { order: 0; font-weight: 650; }
  .company-people-table .company-people-cell-outcome { order: 1; }
  .company-people-table .company-people-cell-label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 400; color: var(--muted, #53616e); }
  .company-people-table small { font-size: 12px; }
  .company-people-table td button { margin: 6px 6px 0 0; }
}
