/* People listing — tokens from global.css (via events.css); parallels accounts layout */

.people-main {
  padding: 24px 20px 32px;
  min-width: 0;
}

.people-page {
  width: 100%;
  max-width: 1600px;
  min-width: 0;
  margin: 0 auto;
}

.people-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .people-header {
    padding: 0;
  }
}

.people-header-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.people-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--neutral-50);
  letter-spacing: -1px;
}

.people-count-badge {
  display: inline-block;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 400;
  background: none;
  border: 1px solid rgba(132, 92, 255, 0.3);
  color: var(--color-purple-soft);
}

[data-theme="light"] .people-count-badge {
  color: var(--color-purple);
  border-color: var(--color-purple-mist);
}

.people-subtitle {
  font-size: 1rem;
  color: var(--neutral-400);
}

.people-panel {
  border-radius: 24px;
  min-width: 0;
  overflow: hidden;
  background: var(--neutral-800);
  animation: people-fade-in 0.35s ease-out both;
}

@keyframes people-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.people-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

[data-theme="light"] .people-toolbar {
  background: var(--color-cream-light);
}

.people-toolbar-pagination {
  margin-left: auto;
}

.people-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 150px;
  width: 150px;
}

@media (min-width: 1024px) {
  .people-search-wrap {
    width: 250px;
  }
}

.people-search-clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-400);
  opacity: 0.55;
  padding: 0;
  transition: opacity 0.15s;
}

.people-search-clear:hover {
  opacity: 1;
}

[data-theme="light"] .people-search-clear {
  color: #737373;
}

.people-search {
  height: 32px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--neutral-600) 65%, transparent);
  background: color-mix(in srgb, var(--neutral-900) 55%, transparent);
  color: var(--neutral-200);
  font-size: 14px;
  padding: 0 28px 0 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.people-search::-webkit-search-cancel-button {
  display: none;
}

.people-search::placeholder {
  color: var(--neutral-500);
}

.people-search:hover {
  border-color: var(--neutral-600);
}

.people-search:focus-visible {
  border-color: var(--color-purple-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-purple) 22%, transparent);
}

[data-theme="light"] .people-search {
  background: #ffffff;
  border-color: var(--neutral-700);
  color: var(--neutral-50);
}

.people-filter-trigger {
  display: flex;
  height: 32px;
  max-width: 180px;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--neutral-600) 65%, transparent);
  padding: 0 12px;
  font-size: 14px;
  color: var(--neutral-400);
  background: color-mix(in srgb, var(--neutral-900) 40%, transparent);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.people-filter-trigger:hover {
  border-color: var(--neutral-600);
  background: color-mix(in srgb, var(--neutral-800) 35%, transparent);
}

.people-filter-trigger span {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.people-filter-trigger svg,
.people-filter-trigger img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

.people-filter-trigger img {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .people-filter-trigger img {
  filter: brightness(0);
}

[data-theme="light"] .people-filter-trigger {
  background: #ffffff;
  border-color: var(--neutral-700);
}

.people-accounts-dropdown {
  position: relative;
}

.people-accounts-dropdown .acct-popover {
  left: 0;
  right: auto;
  width: 280px;
}

.people-filter-trigger.open {
  border-color: var(--neutral-600);
  background: color-mix(in srgb, var(--neutral-800) 50%, transparent);
  color: var(--neutral-200);
}

.people-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.people-table-track {
  min-width: 1100px;
  width: 100%;
}

.people-table {
  width: 100%;
  text-align: left;
  table-layout: fixed;
  border-collapse: collapse;
}

.people-thead tr {
  height: 56px;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-400);
  background: color-mix(in srgb, var(--neutral-950) 70%, var(--neutral-900) 30%);
  border-top: 1px solid color-mix(in srgb, var(--neutral-700) 65%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--neutral-700) 65%, transparent);
}

[data-theme="light"] .people-thead tr {
  color: #737373;
  background: var(--color-cream-light);
  border-top-color: rgba(60, 40, 20, 0.08);
  border-bottom-color: rgba(60, 40, 20, 0.08);
}

.people-th {
  height: 40px;
  padding: 0 8px;
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
  white-space: nowrap;
}

.people-th--person { width: 18%; }
.people-th--email { width: 18%; }

.people-th--email .people-th-label {
  display: inline-flex;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 8px;
  font: inherit;
  font-weight: 600;
  color: inherit;
}
.people-th--title { width: 18%; }
.people-th--account { width: 15%; }
.people-th--events { width: 7%; text-align: center; }
.people-th--actions { width: 5%; text-align: center; }
.people-th--connect { width: 200px; }
.people-th--rm { width: 4%; text-align: center; }

.people-th--actions .people-th-label {
  font-weight: 600;
  display: block;
  padding: 0 8px;
  height: 40px;
  line-height: 40px;
}

.people-sort-btn {
  display: inline-flex;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  padding: 0 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.people-sort-btn:hover {
  background: transparent;
  color: var(--color-purple-mist);
}

[data-theme="light"] .people-sort-btn:hover {
  color: var(--color-purple);
}

.people-sort-placeholder {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.people-sort-placeholder::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: var(--neutral-400);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><polyline points="2.75 6.5 9 12.75 15.25 6.5" fill="none" stroke="%23ffffff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/></svg>') center / 14px 14px no-repeat;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><polyline points="2.75 6.5 9 12.75 15.25 6.5" fill="none" stroke="%23ffffff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"/></svg>') center / 14px 14px no-repeat;
  transform: rotate(0deg);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

[data-theme="light"] .people-sort-placeholder::after {
  background-color: #737373;
}

.people-sort-btn:hover .people-sort-placeholder::after {
  background-color: var(--color-purple-mist);
}

[data-theme="light"] .people-sort-btn:hover .people-sort-placeholder::after {
  background-color: var(--color-purple);
}

.people-sort-btn.is-asc,
.people-sort-btn.is-desc {
  color: var(--color-purple-soft);
}

[data-theme="light"] .people-sort-btn.is-asc,
[data-theme="light"] .people-sort-btn.is-desc {
  color: var(--color-purple);
}

.people-sort-btn.is-asc .people-sort-placeholder::after {
  transform: rotate(180deg);
  background-color: var(--color-purple-soft);
}

.people-sort-btn.is-desc .people-sort-placeholder::after {
  transform: rotate(0deg);
  background-color: var(--color-purple-soft);
}

[data-theme="light"] .people-sort-btn.is-asc .people-sort-placeholder::after,
[data-theme="light"] .people-sort-btn.is-desc .people-sort-placeholder::after {
  background-color: var(--color-purple);
}

.people-sort-btn.is-asc:hover .people-sort-placeholder::after,
.people-sort-btn.is-desc:hover .people-sort-placeholder::after {
  background-color: var(--color-purple-mist);
}

[data-theme="light"] .people-sort-btn.is-asc:hover .people-sort-placeholder::after,
[data-theme="light"] .people-sort-btn.is-desc:hover .people-sort-placeholder::after {
  background-color: var(--color-purple);
}

.people-th--events .people-sort-btn {
  justify-content: center;
}

.people-row {
  font-size: 15px;
  color: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-700);
  transition: background 0.2s ease;
}

.people-row:hover {
  background: var(--neutral-surface-hover);
}

[data-theme="light"] .people-row {
  color: var(--neutral-100);
  border-bottom-color: var(--neutral-700);
}

[data-theme="light"] .people-row:hover {
  background: #ffffff;
}

.people-td {
  padding: 12px 8px;
  vertical-align: middle;
}

.people-td--flush-l { padding-left: 16px; }
.people-td--center { text-align: center; }

.people-td--connect {
  white-space: nowrap;
  text-align: center;
}

.people-person-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.people-person-link:hover .people-name {
  color: var(--neutral-50);
}

.people-person-link:hover .people-avatar-wrap {
  box-shadow: 0 0 0 2px var(--color-purple-soft);
}

[data-theme="light"] .people-person-link:hover .people-avatar-wrap {
  box-shadow: 0 0 0 2px var(--color-purple);
}

.people-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-purple-soft) 45%, transparent);
  transition: box-shadow 0.2s ease;
}

.people-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(
    125deg,
    var(--color-purple) 0%,
    var(--color-purple) 42%,
    color-mix(in srgb, var(--color-purple) 58%, var(--color-purple-deep) 42%) 100%
  );
}

.people-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-name {
  font-family: 'Polymath', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: color-mix(in srgb, var(--neutral-50) 90%, var(--neutral-200) 10%);
  transition: color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

[data-theme="light"] .people-name {
  color: var(--neutral-50);
}

.people-name-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.people-name-stack--col {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.people-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.people-name-row .people-intel-icon,
.people-name-row .people-find-email-btn {
  flex-shrink: 0;
}

.people-name-row .people-intel-icon {
  display: block;
}

.people-email,
.people-email-missing {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--neutral-400);
  white-space: nowrap;
}

.people-email {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.people-intel-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-mint);
}

.people-cell-muted {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-400);
}

.people-account-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.people-account-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--color-purple) 28%, var(--neutral-600));
  background: #fff;
  flex-shrink: 0;
}

.people-events-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Matches `.people-page-num` (inactive) — border, text, and background */
.people-events-pill {
  display: inline-flex;
  box-sizing: border-box;
  width: 24px;
  min-width: 24px;
  justify-content: center;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--neutral-700) 70%, var(--neutral-600));
  background: color-mix(in srgb, var(--neutral-950) 50%, transparent);
  color: var(--neutral-200);
  transition: background 0.15s ease, color 0.15s ease;
}

a.people-events-pill {
  cursor: pointer;
  text-decoration: none;
}

a.people-events-pill:hover {
  background: color-mix(in srgb, var(--neutral-900) 70%, var(--neutral-800) 30%);
  color: var(--neutral-50);
}

[data-theme="light"] .people-events-pill {
  background: #ffffff;
  border: none;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  color: #404040;
}

[data-theme="light"] a.people-events-pill:hover {
  background: var(--color-cream);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.06);
}

.people-send-link {
  display: inline-flex;
  color: var(--color-purple-soft);
  transition: color 0.15s ease;
}

.people-send-link:hover {
  color: var(--color-purple-mist);
}

[data-theme="light"] .people-send-link {
  color: var(--color-purple);
}

[data-theme="light"] .people-send-link:hover {
  color: var(--color-purple-depth);
}

.people-actions-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.people-reach-out {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: linear-gradient(
    125deg,
    var(--color-purple) 0%,
    var(--color-purple) 42%,
    color-mix(in srgb, var(--color-purple) 58%, var(--color-purple-deep) 42%) 100%
  );
  color: var(--neutral-50);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.people-reach-out:hover {
  opacity: 0.88;
}

[data-theme="light"] .people-reach-out {
  color: #fff;
}

.people-reach-out img {
  display: block;
  filter: brightness(0) invert(1);
  order: 1;
}

.people-linkedin,
.people-find-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: transparent;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.people-linkedin {
  color: var(--neutral-300);
  border: 1px solid color-mix(in srgb, var(--neutral-600) 65%, transparent);
}

.people-find-email-btn {
  color: var(--neutral-200);
  border: 1px solid color-mix(in srgb, var(--neutral-500) 75%, transparent);
}

.people-linkedin {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  flex-shrink: 0;
}

.people-linkedin img {
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1) brightness(0.82);
}

[data-theme="light"] .people-linkedin img {
  filter: brightness(0) invert(38%);
}

.people-linkedin:hover {
  color: var(--neutral-50);
  border-color: var(--neutral-400);
}

.people-find-email-btn:hover {
  color: var(--neutral-50);
  border-color: var(--neutral-300);
}

[data-theme="light"] .people-linkedin {
  color: var(--neutral-400);
  border-color: var(--neutral-600);
}

[data-theme="light"] .people-find-email-btn {
  color: var(--neutral-50);
  border-color: var(--neutral-100);
}

[data-theme="light"] .people-linkedin:hover {
  color: var(--neutral-50);
  border-color: var(--neutral-500);
}

[data-theme="light"] .people-find-email-btn:hover {
  color: var(--neutral-300);
  border-color: rgba(60, 40, 20, 0.45);
}

/* ─── Email column cell states ───────────────────────────────────────────── */

.people-email-address {
  font-size: 13px;
  color: var(--neutral-300);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  transition: color 0.15s;
}

.people-email-address:hover { color: var(--neutral-50); }

.people-email-not-found {
  font-size: 12px;
  color: var(--neutral-600);
  font-style: italic;
}

[data-theme="light"] .people-email-address { color: var(--neutral-50); }
[data-theme="light"] .people-email-address:hover { color: var(--neutral-300); }
[data-theme="light"] .people-email-not-found { color: var(--neutral-500); }

.people-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--neutral-500);
  cursor: pointer;
  transition: all 0.2s;
}

.people-remove-btn:hover {
  color: var(--color-peach);
  transform: scale(1.05);
}

.people-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.people-pagination-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.people-page-showing {
  font-size: 12px;
  color: var(--neutral-400);
  white-space: nowrap;
}

.people-page-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.people-page-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--neutral-700) 70%, var(--neutral-600));
  background: color-mix(in srgb, var(--neutral-950) 50%, transparent);
  color: var(--neutral-200);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.people-page-nav-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--neutral-900) 70%, var(--neutral-800) 30%);
  color: var(--neutral-50);
}

.people-page-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.people-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--neutral-700) 70%, var(--neutral-600));
  background: color-mix(in srgb, var(--neutral-950) 50%, transparent);
  color: var(--neutral-200);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.people-page-num:hover:not(.is-active) {
  background: color-mix(in srgb, var(--neutral-900) 70%, var(--neutral-800) 30%);
  color: var(--neutral-50);
}

.people-page-num.is-active {
  background: color-mix(in srgb, var(--neutral-900) 75%, var(--neutral-800) 25%);
  border-color: color-mix(in srgb, var(--neutral-500) 75%, transparent);
  color: var(--neutral-50);
  cursor: default;
}

[data-theme="light"] .people-pagination {
  border-top: none;
}

[data-theme="light"] .people-page-showing {
  color: #737373;
}

[data-theme="light"] .people-page-nav-btn,
[data-theme="light"] .people-page-num:not(.is-active) {
  background: #ffffff;
  border: none;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  color: #404040;
}

[data-theme="light"] .people-page-nav-btn:hover:not(:disabled),
[data-theme="light"] .people-page-num:hover:not(.is-active) {
  background: var(--color-cream);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.06);
}

[data-theme="light"] .people-page-num.is-active {
  background: #ffffff;
  border: 1px solid var(--neutral-100);
  color: #111111;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════
   Panel, toolbar, table — dark mode defaults + light overrides
   ══════════════════════════════════════════════════════════════ */

/* Panel — dark mode */
.people-panel {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  transition: box-shadow 240ms ease-out;
}
.people-panel:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* Panel — light mode */
[data-theme="light"] .people-panel {
  background: var(--color-cream-light);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .people-panel:hover {
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.045), 0 1px 4px rgba(60, 40, 20, 0.025), 0 0 0 1px rgba(60, 40, 20, 0.08);
}

/* Toolbar — light mode */
[data-theme="light"] .people-toolbar {
  background: var(--color-cream-light);
  border-bottom: none;
}

/* Search input — light mode */
[data-theme="light"] .people-search {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  color: #404040;
  font-size: 13px;
}
[data-theme="light"] .people-search::placeholder { color: #737373; }
[data-theme="light"] .people-search:hover {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .people-search:focus-visible {
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 0 0 3px rgba(132, 92, 255, 0.22);
}

/* Filter triggers — light mode */
[data-theme="light"] .people-filter-trigger,
[data-theme="light"] .accounts-filter-trigger {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  color: #737373;
  font-size: 13px;
  font-weight: 400;
  transition: box-shadow 0.15s, background 0.15s;
}
[data-theme="light"] .people-filter-trigger:hover,
[data-theme="light"] .accounts-filter-trigger:hover {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .people-filter-trigger.open {
  background: var(--color-cream);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.08);
  color: var(--neutral-50);
}
[data-theme="light"] .people-filter-trigger svg,
[data-theme="light"] .people-filter-trigger img { opacity: 0.38; filter: brightness(0); width: 16px; height: 16px; flex-shrink: 0; }
[data-theme="light"] .accounts-filter-trigger img { filter: brightness(0); opacity: 0.38; }

/* Table head — light mode */
[data-theme="light"] .people-thead tr {
  background: var(--color-cream-light);
  border-top: 1px solid rgba(60, 40, 20, 0.08);
  border-bottom: 1px solid rgba(60, 40, 20, 0.08);
  color: #737373;
}

/* Table rows — light mode */
[data-theme="light"] .people-row {
  color: #262626;
  border-bottom: 1px solid rgba(60, 40, 20, 0.07);
}
[data-theme="light"] .people-row:hover {
  background: #ffffff;
}

/* Names */
[data-theme="light"] .people-name { color: #171717; }

/* Avatars — dark mode */
.people-avatar-wrap {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-purple-soft) 45%, transparent);
}
.people-avatar-fallback {
  background: linear-gradient(145deg, #B59DFF, #845CFF);
}
.people-avatar-fallback--peach {
  background: linear-gradient(145deg, #FFA182, #FDDC98);
}
.people-avatar-fallback--violet {
  background: linear-gradient(145deg, #CEBEFF, #B59DFF);
}
.people-avatar-fallback--purple {
  background: linear-gradient(145deg, #B59DFF, #845CFF);
}

/* Inside row links, `color: inherit` can make initials pick up row text; force light initials on gradients */
a.people-person-link .people-avatar-fallback {
  color: #ffffff;
}

/* Avatars — light mode */
[data-theme="light"] .people-avatar-wrap {
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
}

/* Company logos — dark mode */
.people-account-logo {
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  background: var(--neutral-surface-hover);
}

/* Company logos — light mode */
[data-theme="light"] .people-account-logo {
  border: 2px solid var(--color-cream-light);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.1);
  background: #ffffff;
}

/* Pagination — light mode */
[data-theme="light"] .people-page-btn {
  background: #ffffff;
  border: none;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  color: #404040;
}
[data-theme="light"] .people-page-btn:hover:not(:disabled) {
  background: var(--color-cream);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.06);
}
[data-theme="light"] .people-page-meta { color: #737373; }

/* Rows per page */
.people-rows-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
}
.people-rows-per-page-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--neutral-400);
  white-space: nowrap;
}
[data-theme="light"] .people-rows-per-page-label { color: #737373; }

.people-rows-select-wrap {
  position: relative;
}

.people-rows-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 32px;
  min-width: 64px;
  padding: 0 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--neutral-200);
  background: var(--neutral-800);
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.people-rows-select:hover {
  background: var(--neutral-surface-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.people-rows-select svg {
  color: var(--neutral-400);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.people-rows-select[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

[data-theme="light"] .people-rows-select {
  color: #404040;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
}
[data-theme="light"] .people-rows-select:hover {
  background: var(--color-cream);
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 2px 6px rgba(60, 40, 20, 0.06);
}
[data-theme="light"] .people-rows-select svg { color: #a3a3a3; }

.people-rows-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 100;
  min-width: 100%;
  background: var(--neutral-800);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.35);
  padding: 4px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s;
}
.people-rows-select-wrap.is-open .people-rows-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

[data-theme="light"] .people-rows-dropdown {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08), 0 8px 20px rgba(60, 40, 20, 0.10);
}

.people-rows-option {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.8125rem;
  color: var(--neutral-300);
  cursor: pointer;
  transition: background 0.1s ease;
}
.people-rows-option:hover {
  background: var(--neutral-surface-hover);
}
.people-rows-option[aria-selected="true"] {
  font-weight: 600;
  color: var(--neutral-50);
}

[data-theme="light"] .people-rows-option { color: #404040; }
[data-theme="light"] .people-rows-option:hover { background: var(--color-cream); }
[data-theme="light"] .people-rows-option[aria-selected="true"] { font-weight: 600; color: #171717; }
