.carta-people,.carta-people-dialog{--people-bg:var(--ca-bg,#f5f4ef);--people-surface:var(--ca-surface,#fffefa);--people-text:var(--ca-text,#242420);--people-muted:var(--ca-muted,#73766e);--people-line:var(--ca-line,#dedfd7);--people-accent:var(--ca-accent,#be3025);color:var(--people-text)}
.carta-people{font-size:13px;min-width:0}
.people-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.people-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.people-toolbar input,.people-toolbar select,.people-pagination select,.people-export-options select{color:var(--people-text);background:var(--people-surface);border:1px solid var(--people-line);border-radius:7px;min-height:40px;padding:9px 12px;font:inherit;width:auto;margin:0}
.people-search{position:relative;flex:1 1 300px;min-width:180px}
.people-search input{width:100%;padding-left:38px}
.people-search svg{position:absolute;left:12px;top:12px;width:17px;height:17px;color:var(--people-muted);pointer-events:none}
.people-toolbar>label:not(.people-search){margin:0;display:block}
.people-toolbar-actions{display:flex;gap:7px;align-items:center;margin-left:auto}
.people-toolbar button,.people-pagination button{font-size:12px;padding:10px 12px;min-height:40px;border-radius:7px;white-space:nowrap}
.people-list-meta{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--people-muted);font-size:12px;min-height:24px;margin:0 0 10px;font-variant-numeric:tabular-nums}
.people-order-note{font-size:11px}
.people-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--people-line);border-radius:10px;background:var(--people-surface);max-height:62vh;min-height:140px;scrollbar-gutter:stable}
.people-table{border-collapse:separate;border-spacing:0;width:100%;min-width:800px;margin:0;font-size:12px}
.people-table th{position:sticky;top:0;background:var(--people-bg);z-index:2;text-align:left;padding:13px 16px;color:var(--people-muted);font-size:10px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;border-bottom:1px solid var(--people-line)}
.people-table td{padding:13px 16px;border-bottom:1px solid var(--people-line);max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5;vertical-align:middle}
.people-table tbody tr:last-child td{border-bottom:0}
.people-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--people-bg) 38%,var(--people-surface))}
.people-table tbody tr:hover{background:color-mix(in srgb,var(--people-accent) 4%,var(--people-surface))}
.people-cell-identity_code{font-size:10px;max-width:160px!important;color:var(--people-muted)}
.people-cell-identity_code code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.people-cell-full_name{min-width:165px}
.people-name{border:0;padding:0;background:transparent;font-weight:650;font-size:12px;text-align:left;border-radius:2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;color:var(--people-text)}
.people-name:hover:not(:disabled){background:transparent;color:var(--people-accent);text-decoration:underline}
.people-cell-digital_visits,.people-cell-digital_days{font-variant-numeric:tabular-nums;text-align:right}
.people-cell-first_seen_at,.people-cell-last_seen_at{font-size:11px;font-variant-numeric:tabular-nums}
.people-row-action{padding-left:4px!important;padding-right:10px!important}
.people-row-action button{font-size:11px;border:0;background:transparent;padding:7px;color:var(--people-muted);white-space:nowrap}
.people-kind{display:inline-block;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:650;background:#e7ece3;color:#40533c;line-height:1.2;white-space:nowrap}
.people-kind-visitor{background:#eeeae0;color:#71634b}
.people-pagination{display:flex;gap:15px;align-items:center;margin-top:12px;font-size:11px;color:var(--people-muted)}
.people-pagination>p{margin:0 auto 0 0;max-width:500px;line-height:1.5}
.people-pagination>label{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap;font-size:11px}
.people-pagination select{min-height:34px;font-size:11px;padding:7px}
.people-pagination>div{display:flex;align-items:center;gap:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.people-pagination button{padding:6px 10px;min-height:34px}
.people-empty,.people-loading{background:var(--people-surface);border:1px solid var(--people-line);border-radius:10px;min-height:225px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 24px}
.people-empty h3{font-size:16px;letter-spacing:-.3px;margin:0 0 10px}
.people-empty p{max-width:520px;color:var(--people-muted);font-size:13px;line-height:1.6;margin:0 0 20px}
.people-loading{gap:14px;color:var(--people-muted);font-size:13px}
.people-loading>span{width:20px;height:20px;border:2px solid var(--people-line);border-top-color:var(--people-accent);border-radius:50%;animation:people-loading .8s linear infinite}
@keyframes people-loading{to{transform:rotate(360deg)}}
.carta-people-dialog{border:1px solid var(--people-line);background:var(--people-surface);padding:0;border-radius:15px;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 24px 100px #0003}
.carta-people-dialog::backdrop{background:#131a1680;backdrop-filter:blur(4px)}
.people-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;border-bottom:1px solid var(--people-line);position:sticky;top:0;background:var(--people-surface);z-index:3}
.people-dialog-head h2{font-size:22px;letter-spacing:-.8px;margin:0;line-height:1.2}
.people-dialog-head button{padding:4px;border:0;background:transparent;font-size:28px;font-weight:400;line-height:1;min-width:32px;min-height:32px}
.people-dialog-body{padding:24px 28px;font-size:13px}
.people-dialog-body>p{line-height:1.6;color:var(--people-muted)}
.people-field-options{display:grid;grid-template-columns:1fr 1fr;gap:13px 20px;border:0;padding:0;margin:24px 0}
.people-field-options legend{font-size:12px;font-weight:650;padding:0 0 17px}
.people-field-options label{display:flex;align-items:center;gap:9px;margin:0;font-size:12px;font-weight:400;line-height:1.4}
.people-field-options input{margin:0;width:16px;height:16px;accent-color:var(--people-accent);flex:0 0 16px}
.people-dialog-status{margin:16px 0 0!important;font-size:12px;min-height:18px;line-height:1.6;color:var(--people-text)!important}
.people-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:18px 28px;border-top:1px solid var(--people-line);background:var(--people-surface);position:sticky;bottom:0}
.people-dialog-footer button{font-size:12px;padding:10px 16px;min-height:40px}
.people-dialog-footer .primary{background:var(--people-accent);border-color:var(--people-accent);color:white}
.people-profile-heading{display:flex;align-items:center;gap:15px;margin-bottom:24px}
.people-profile-heading h3{font-size:21px;letter-spacing:-.6px;line-height:1.3;margin:7px 0 0;overflow-wrap:anywhere}
.people-profile-initial{height:60px;width:60px;border-radius:12px;background:var(--people-bg);border:1px solid var(--people-line);display:grid;place-items:center;font-size:29px;color:var(--people-muted);flex:0 0 60px}
.people-profile-code{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--people-line);border-radius:7px;background:var(--people-bg);font-size:11px;overflow-wrap:anywhere}
.people-profile-code code{min-width:0;user-select:all}
.people-profile-code button{padding:7px 9px;font-size:10px;white-space:nowrap}
.people-profile-note{font-size:11px!important;line-height:1.6!important;color:var(--people-muted)!important;margin:10px 0 18px}
.people-profile dl{display:grid;grid-template-columns:1fr 1fr;margin:24px 0;gap:0 25px}
.people-profile dl>div{padding:13px 0;border-bottom:1px solid var(--people-line);min-width:0}
.people-profile dt{font-size:10px;color:var(--people-muted);margin-bottom:6px}
.people-profile dd{margin:0;font-size:12px;overflow-wrap:anywhere;line-height:1.6}
.people-export-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.people-export-options label{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:600}
.people-export-options select{width:100%;font-size:12px}
.carta-people-dialog.is-profile {
  width: min(760px, calc(100vw - 32px));
}
.people-cell-digital_accesses,
.people-cell-login_count {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.people-cell-registered_at,
.people-cell-first_login_at,
.people-cell-last_login_at {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.people-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--people-line);
  border-radius: 9px;
  background: var(--people-bg);
  overflow: hidden;
}
.people-profile-metrics > div {
  padding: 16px 14px;
  border-right: 1px solid var(--people-line);
}
.people-profile-metrics > div:last-child { border-right: 0; }
.people-profile-metrics span {
  display: block;
  color: var(--people-muted);
  font-size: 10px;
  line-height: 1.5;
}
.people-profile-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
  letter-spacing: -.7px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.people-history {
  border-top: 1px solid var(--people-line);
  margin-top: 24px;
  padding-top: 24px;
}
.people-profile > .people-history:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.people-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.people-history-heading h3 {
  margin: 0;
  color: var(--people-text);
  font-size: 17px;
  letter-spacing: -.3px;
  line-height: 1.4;
}
.people-history-heading p {
  margin: 5px 0 0;
  color: var(--people-muted);
  font-size: 11px;
  line-height: 1.5;
}
.people-history-heading button,
.people-history-message button {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 11px;
}
.people-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.people-history-list li {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--people-line);
}
.people-history-list li:first-child { padding-top: 0; }
.people-history-list li > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.people-history-list strong {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.people-history-list time {
  color: var(--people-muted);
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.people-history-marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--people-bg);
  border: 1px solid var(--people-line);
  color: var(--people-muted);
  font-size: 16px;
}
.people-history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--people-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.people-history-pagination > div { display: flex; gap: 8px; }
.people-history-pagination button {
  min-width: 38px;
  min-height: 38px;
  padding: 8px;
}
.people-history-message {
  display: flex;
  min-height: 120px;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 22px 16px;
  background: var(--people-bg);
  border-radius: 9px;
  color: var(--people-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
.people-history-message.is-error { flex-direction: column; gap: 8px; }
.people-history-message strong { color: var(--people-text); font-weight: 600; }
.people-history-message p { margin: 0 0 6px; }
.people-loading-dot {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--people-line);
  border-top-color: var(--people-accent);
  border-radius: 50%;
  animation: people-loading .8s linear infinite;
}
.carta-people-dialog button:focus-visible {
  outline: 2px solid var(--people-accent);
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .people-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-profile-metrics > div:nth-child(2) { border-right: 0; }
  .people-profile-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--people-line); }
  .people-history-list li > div { flex-direction: column; align-items: flex-start; gap: 3px; }
  .people-history-heading { gap: 10px; }
  .people-history-heading button { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .people-loading-dot { animation: none; }
}
@media(max-width:700px){.people-toolbar{gap:8px}.people-search{flex-basis:100%}.people-toolbar>label:not(.people-search){flex:1}.people-toolbar select{width:100%;font-size:12px}.people-toolbar-actions{width:100%;justify-content:flex-end}.people-toolbar-actions button:first-child{margin-right:auto}.people-table-wrap{max-height:60vh}.people-pagination{flex-wrap:wrap}.people-pagination>p{flex-basis:100%;max-width:none}.people-pagination>div{margin-left:auto}.people-order-note{max-width:160px;text-align:right}.people-dialog-head{padding:20px}.people-dialog-body{padding:20px}.people-dialog-footer{padding:16px 20px}.people-field-options{gap:14px}.people-export-options{grid-template-columns:1fr}.people-profile dl{grid-template-columns:1fr}.people-profile-code{align-items:flex-start}.people-profile-heading h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.people-loading>span{animation:none}}
