:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
  display:flex;align-items:flex-end;justify-content:space-between;gap:var(--x-space-300);
  margin-bottom:var(--x-space-250);padding:4px 2px 0;
}
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head) h1{
  margin:7px 0 6px;color:var(--x-ink-950);
  font-size:clamp(28px,2.2vw,36px);line-height:1.12;letter-spacing:-1.05px;
}
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head) p{
  max-width:760px;margin:0;color:var(--x-ink-650);font-size:13px;line-height:1.6;
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary){
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(106px,1fr);
  gap:6px;padding:6px;border:1px solid var(--x-line);
  border-radius:var(--x-radius-lg);background:rgba(255,255,255,.76);box-shadow:var(--x-shadow-xs);
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary)>div{
  min-width:105px;padding:10px 13px;border-radius:var(--x-radius-md);
  background:linear-gradient(180deg,#fff,#f9fbfd);
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary) strong{
  display:block;color:var(--x-navy-800);font-size:21px;line-height:1;letter-spacing:-.55px;
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary) span{
  display:block;margin-top:4px;color:var(--x-ink-500);font-size:8px;white-space:nowrap;
}
.people-toolbar{
  margin-bottom:var(--x-space-150);padding:12px;
  border:1px solid var(--x-line);border-radius:var(--x-radius-lg);
  background:rgba(255,255,255,.88);box-shadow:var(--x-shadow-xs);
}
.filterbar{gap:8px}
.people-filterbar,.email-filterbar{margin:0}
.filterbar input,.filterbar select{
  min-height:var(--x-control-height);background:#fff;
}
.filterbar button{
  min-height:var(--x-control-height);padding:0 16px;border:0;
  color:#fff;background:linear-gradient(90deg,var(--x-cobalt-600),var(--x-cobalt-500));
  box-shadow:0 7px 16px rgba(31,103,216,.14);font-weight:800;
}
.filter-reset{
  min-height:var(--x-control-height);display:inline-flex;align-items:center;justify-content:center;
  padding:0 14px;border:1px solid var(--x-line);border-radius:var(--x-radius-md);
  color:var(--x-ink-650);background:#fff;text-decoration:none;font-size:9px;font-weight:750;
}
.filter-reset:hover{border-color:#c8d7e8;background:#f8fbff;color:var(--x-navy-800)}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card){
  overflow:hidden;border:1px solid var(--x-line);border-radius:var(--x-radius-xl);
  background:#fff;box-shadow:var(--x-shadow-sm);
}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card) .table-wrap{
  max-width:100%;overflow:auto;border:0;border-radius:0;box-shadow:none;
}
.clean-table table{border-collapse:separate;border-spacing:0;width:100%}
.clean-table thead th{
  position:sticky;top:0;z-index:2;
  padding:12px 13px;border-bottom:1px solid var(--x-line);
  background:rgba(247,249,252,.96);color:var(--x-ink-500);
  font-size:8px;font-weight:850;letter-spacing:.035em;
  box-shadow:0 1px 0 rgba(255,255,255,.8);
}
.clean-table tbody td{
  padding:11px 13px;border-bottom:1px solid var(--x-line-soft);
  color:var(--x-ink-650);font-size:9px;vertical-align:middle;
}
.clean-table tbody tr:last-child td{border-bottom:0}
.clean-table tbody tr{
  background:#fff;
  transition:background var(--x-duration-fast) var(--x-ease-standard);
}
.clean-table tbody tr:hover{background:#f8fbff}
.person-cell,.device-cell,.mail-cell,.user-cell{
  display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none;
}
.person-avatar,.device-icon,.mail-icon,.user-cell .profile-avatar{
  width:36px;height:36px;flex:0 0 36px;border-radius:11px;
  border:1px solid #d7e4f3;background:linear-gradient(145deg,#eef5ff,#e2eeff);
  color:var(--x-cobalt-600);box-shadow:0 4px 10px rgba(24,76,148,.05);
}
.person-cell strong,.device-cell strong,.mail-cell strong,.user-cell strong{
  color:var(--x-ink-800);font-size:10px;font-weight:800;
}
.person-cell small,.device-cell small,.mail-cell small{
  margin-top:2px;color:var(--x-ink-500);font-size:7px;
}
.table-primary{color:var(--x-ink-800);font-weight:750}
.table-secondary{color:var(--x-ink-500)}
.ip-chip,.device-count-chip{
  display:inline-flex;align-items:center;min-height:26px;padding:0 8px;
  border:1px solid var(--x-line-soft);border-radius:8px;background:#f6f8fb;color:var(--x-ink-650);
}
.status-pill,.role-pill,.two-factor-pill,.mail-type-pill,.mail-owner{
  border-radius:var(--x-radius-pill);font-weight:800;border:1px solid transparent;
}
.status-active{background:var(--x-success-soft);color:var(--x-success);border-color:#d5eee4}
.status-inactive{background:#f3f5f7;color:var(--x-ink-500);border-color:#e6ebf0}
.status-review{background:var(--x-warning-soft);color:var(--x-warning);border-color:#f3dfb8}
.role-admin{background:#efeaff;color:#6b52c7}
.role-executive{background:#e8f2ff;color:#275fae}
.role-technician{background:#eaf8f2;color:#187d58}
.role-manager{background:#edf6ff;color:#275fae}
.role-readonly{background:#f2f4f7;color:#667085}
.role-external_it{background:#fff3df;color:#a86608}
.role-employee{background:#eef3f9;color:#48627f}
.two-factor-pill{display:inline-flex;padding:4px 8px;background:#f2f4f7;color:#667085}
.two-factor-pill.enabled{background:var(--x-success-soft);color:var(--x-success)}
.people-empty{
  padding:34px 20px;color:var(--x-ink-500);text-align:center;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.org-management{
  margin-bottom:var(--x-space-150);
  border-color:var(--x-line)!important;border-radius:var(--x-radius-lg)!important;
  background:rgba(255,255,255,.9)!important;box-shadow:var(--x-shadow-xs)!important;
}
.org-management>summary{
  min-height:46px;padding:14px 16px;color:var(--x-navy-800)!important;
  font-size:10px!important;font-weight:850!important;
}
.org-management[open]>summary{
  border-bottom:1px solid var(--x-line-soft);background:#f9fbfd;
}
.org-management-form{
  gap:8px!important;margin:14px!important;padding:12px!important;
  border:1px solid var(--x-line-soft)!important;border-radius:var(--x-radius-lg)!important;
  background:#fbfdff!important;
}
.org-management-form button{
  min-height:var(--x-control-height);border:0;
  background:linear-gradient(90deg,var(--x-cobalt-600),var(--x-cobalt-500));color:#fff;font-weight:800;
}
.user-update-form{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:6px;min-width:440px}
.user-update-form button{grid-column:1/-1}
.user-delete-form{margin-top:8px!important;padding-top:8px!important;border-top:1px solid #f0dddd!important}
@container workspace (max-width:1100px){
  :where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
    align-items:stretch;flex-direction:column;
  }
  :where(.people-summary,.devices-summary,.emails-summary,.users-summary){
    grid-auto-flow:column;width:100%;
  }
}
@container workspace (max-width:760px){
  :where(.people-summary,.devices-summary,.emails-summary,.users-summary){
    grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .people-toolbar{padding:10px}
  .filterbar{display:grid!important;grid-template-columns:1fr!important}
  .filterbar>*{width:100%!important;min-width:0!important}
  .user-update-form{min-width:300px}
}
/* R14 — premium data surfaces */
.people-page-head,.people-table-card{--data-accent:#16845b;--data-soft:#edf9f4;--data-line:#cfe8dc}
.devices-page-head,.devices-table-card{--data-accent:#6658cc;--data-soft:#f3f1ff;--data-line:#ddd7f6}
.emails-page-head,.emails-table-card{--data-accent:#b86e08;--data-soft:#fff7e7;--data-line:#eddcb9}
.users-page-head,.users-table-card{--data-accent:#2f7be8;--data-soft:#edf5ff;--data-line:#cfdef1}

:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
  position:relative;
  align-items:center;
  margin-bottom:18px;
  padding:22px 24px;
  overflow:hidden;
  border:1px solid var(--x-line);
  border-radius:var(--x-radius-xl);
  background:
    radial-gradient(circle at 88% -24%,color-mix(in srgb,var(--data-accent) 10%,transparent),transparent 18rem),
    linear-gradient(135deg,#fff 0%,#fbfdff 100%);
  box-shadow:var(--x-shadow-sm);
}
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head)::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--data-accent),color-mix(in srgb,var(--data-accent) 42%,#fff));
}
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head) .eyebrow{
  color:var(--data-accent);
}
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head) h1{
  font-size:clamp(30px,2.45vw,39px);
  letter-spacing:-1.3px;
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary){
  position:relative;
  gap:8px;
  padding:7px;
  border-color:var(--data-line);
  background:rgba(255,255,255,.80);
  box-shadow:0 12px 28px rgba(18,52,94,.06);
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary)>div{
  position:relative;
  min-width:112px;
  padding:13px 15px;
  overflow:hidden;
  background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--data-soft) 45%,#fff));
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary)>div::after{
  content:"";
  position:absolute;
  left:14px;right:14px;bottom:0;
  height:2px;
  border-radius:999px;
  background:var(--data-accent);
  opacity:.7;
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary) strong{
  color:var(--x-navy-950);
  font-size:24px;
}
.people-toolbar{
  position:relative;
  margin-bottom:14px;
  padding:10px;
  border-color:#dbe5f0;
  background:linear-gradient(180deg,#fff,#fbfcfe);
  box-shadow:0 7px 20px rgba(15,48,87,.045);
}
.people-toolbar::before{
  content:"";
  position:absolute;
  left:18px;right:18px;top:-1px;
  height:2px;
  border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,var(--x-cobalt-500),rgba(47,123,232,.06));
}
.filterbar input,.filterbar select{
  border-color:#d9e3ee!important;
  background:#fff;
  box-shadow:inset 0 1px 2px rgba(14,44,82,.025);
}
.filterbar input:focus,.filterbar select:focus{
  border-color:#a9c8ed!important;
  box-shadow:0 0 0 3px rgba(47,123,232,.08)!important;
}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card){
  position:relative;
  border-color:var(--data-line);
  box-shadow:0 17px 38px rgba(10,43,82,.07);
}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card)::before{
  content:"";
  position:absolute;
  z-index:4;
  top:0;left:0;right:0;
  height:3px;
  background:linear-gradient(90deg,var(--data-accent),color-mix(in srgb,var(--data-accent) 38%,#fff) 62%,transparent);
}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card) .clean-table thead th{
  padding-top:14px;
  background:linear-gradient(180deg,#fbfdff,#f5f8fb);
  color:var(--x-ink-650);
}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card) .clean-table tbody td{
  padding-top:12px;
  padding-bottom:12px;
}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card) .clean-table tbody tr:hover{
  background:color-mix(in srgb,var(--data-soft) 58%,#fff);
}
.people-table-card .person-avatar{
  border-color:#d3eadf;
  background:linear-gradient(145deg,#f1fbf7,#e3f5ed);
  color:#16845b;
}
.devices-table-card .device-icon{
  border-color:#ded8f7;
  background:linear-gradient(145deg,#f7f5ff,#ece8ff);
  color:#6658cc;
}
.emails-table-card .mail-icon{
  border-color:#efdcb9;
  background:linear-gradient(145deg,#fffaf0,#fff0d5);
  color:#b86e08;
}
.users-table-card .user-cell .profile-avatar{
  border-color:#cfe0f4;
  background:linear-gradient(145deg,#f3f8ff,#e6f0ff);
  color:#2f7be8;
}
:where(.person-cell,.device-cell,.mail-cell,.user-cell) strong{
  font-size:10.5px;
  letter-spacing:-.08px;
}
.ip-chip,.device-count-chip{
  border-color:#dbe4ee;
  background:linear-gradient(180deg,#fff,#f5f8fb);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.status-pill,.role-pill,.two-factor-pill,.mail-type-pill,.mail-owner{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
}
.org-management{
  position:relative;
  overflow:hidden;
}
.org-management::before{
  content:"";
  position:absolute;
  top:0;left:0;bottom:0;
  width:3px;
  background:linear-gradient(180deg,var(--x-cobalt-500),rgba(47,123,232,.10));
}
@container workspace (max-width:1100px){
  :where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
    padding:20px;
  }
}
@container workspace (max-width:760px){
  :where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
    padding:18px 16px;
  }
  :where(.people-summary,.devices-summary,.emails-summary,.users-summary)>div{
    min-width:0;
  }
}
/* R13 — premium data surfaces */
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
  position:relative;
  min-height:116px;
  padding:18px 20px;
  border:1px solid var(--x-line);
  border-radius:var(--x-radius-xl);
  background:
    radial-gradient(circle at 88% 0%,rgba(47,123,232,.08),transparent 18rem),
    linear-gradient(135deg,#fff 0%,#f8fbff 100%);
  box-shadow:var(--x-shadow-sm);
  overflow:hidden;
}
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head)::before{
  content:"";
  position:absolute;
  left:0;top:18px;bottom:18px;
  width:3px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,var(--x-cobalt-500),var(--x-navy-800));
}
:where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head) h1{
  font-size:clamp(30px,2.35vw,38px);
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary){
  border:0;
  padding:0;
  gap:8px;
  background:transparent;
  box-shadow:none;
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary)>div{
  --metric-accent:var(--x-cobalt-500);
  position:relative;
  min-width:112px;
  padding:14px 16px 13px;
  overflow:hidden;
  border:1px solid rgba(204,216,230,.82);
  background:linear-gradient(135deg,#f7fbff,#edf5ff);
  box-shadow:0 8px 18px rgba(18,52,91,.055);
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary)>div::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:3px;
  background:var(--metric-accent);
}
:where(.people-summary,.devices-summary,.emails-summary)>div:nth-child(2),
.users-summary>div:nth-child(2){
  --metric-accent:var(--x-success);
  background:linear-gradient(135deg,#f8fcfa,#edf9f4);
}
:where(.people-summary,.devices-summary)>div:nth-child(3){
  --metric-accent:#8594a7;
  background:linear-gradient(135deg,#fbfcfd,#f1f4f7);
}
.emails-summary>div:nth-child(3){
  --metric-accent:var(--x-warning);
  background:linear-gradient(135deg,#fffdf8,#fff5e3);
}
.emails-summary>div:nth-child(4){
  --metric-accent:#6658cc;
  background:linear-gradient(135deg,#fbfaff,#f1efff);
}
.users-summary>div:nth-child(3){
  --metric-accent:#6658cc;
  background:linear-gradient(135deg,#fbfaff,#f1efff);
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary) strong{
  font-size:24px;
  color:var(--x-navy-950);
}
.people-toolbar{
  position:relative;
  padding:14px;
  border-color:#d4e1ef;
  background:
    radial-gradient(circle at 96% 0%,rgba(47,123,232,.07),transparent 15rem),
    linear-gradient(180deg,#fbfdff,#f6f9fd);
  box-shadow:var(--x-shadow-sm);
}
.people-toolbar::before{
  content:"";
  position:absolute;left:14px;right:14px;top:0;height:2px;
  border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,var(--x-cobalt-500),rgba(47,123,232,0));
}
.filterbar input,.filterbar select{
  min-height:44px;
  border-color:#cfdae7!important;
  box-shadow:0 1px 2px rgba(16,36,64,.025);
}
.filterbar input:focus,.filterbar select:focus{
  border-color:rgba(47,123,232,.55)!important;
  box-shadow:var(--x-shadow-focus)!important;
}
:where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card){
  border-color:#d6e1ed;
  border-radius:24px;
  box-shadow:0 14px 32px rgba(13,46,87,.075);
}
.clean-table thead th{
  height:46px;
  padding:13px 15px;
  background:linear-gradient(180deg,#f6f9fd,#f1f5fa);
  color:#53677f;
  font-size:8.5px;
  letter-spacing:.055em;
}
.clean-table tbody td{
  padding:13px 15px;
  font-size:9.5px;
  line-height:1.45;
}
.clean-table tbody tr:nth-child(even){background:#fcfdff}
.clean-table tbody tr:hover{
  background:#f4f8fd;
  box-shadow:inset 3px 0 0 var(--x-cobalt-500);
}
.person-avatar{
  background:linear-gradient(145deg,#edf5ff,#dceaff);
  color:#245fbd;
}
.device-icon{
  background:linear-gradient(145deg,#f3f1ff,#e9e5ff);
  color:#6658cc;
}
.mail-icon{
  background:linear-gradient(145deg,#fff7e8,#ffefd0);
  color:#b86e08;
}
.user-cell .profile-avatar{
  background:linear-gradient(145deg,var(--x-navy-800),var(--x-cobalt-600));
  color:#fff;
  border-color:rgba(31,103,216,.22);
  box-shadow:0 6px 14px rgba(23,83,163,.14);
}
.person-cell strong,.device-cell strong,.mail-cell strong,.user-cell strong{
  font-size:10.5px;
}
.ip-chip,.device-count-chip{
  min-height:28px;
  background:#f3f7fc;
  border-color:#dde7f1;
}
.role-pill,.status-pill,.two-factor-pill,.mail-type-pill{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
}
.org-management{
  border-radius:var(--x-radius-xl)!important;
  box-shadow:var(--x-shadow-sm)!important;
}
.org-management>summary{
  min-height:50px;
  padding:15px 18px;
}
.org-management[open]>summary{
  background:linear-gradient(180deg,#fbfdff,#f4f8fd);
}
.users-actions-cell{min-width:138px;width:1%;vertical-align:middle!important}
.user-row-actions{position:relative;min-width:0}
.user-row-actions>summary{
  list-style:none;display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:0 12px;border:1px solid var(--x-line);border-radius:10px;
  background:linear-gradient(180deg,var(--x-surface),var(--x-surface-soft));
  color:var(--x-ink-800);font-size:9px;font-weight:850;cursor:pointer;white-space:nowrap;
}
.user-row-actions>summary::-webkit-details-marker{display:none}
.user-row-actions[open]>summary{border-color:#b8d0ed;color:var(--x-cobalt-600)}
.user-row-actions-panel{
  width:min(440px,44vw);margin-top:8px;padding:10px;border:1px solid var(--x-line);
  border-radius:14px;background:var(--x-surface);box-shadow:0 14px 30px rgba(12,42,78,.10);
}
.user-update-form{
  padding:8px;border:1px solid var(--x-line-soft);border-radius:var(--x-radius-md);
  background:var(--x-surface-soft);
}
.user-row-actions .user-update-form{min-width:0!important;grid-template-columns:repeat(2,minmax(140px,1fr));margin:0}
.user-delete-form{padding-top:10px!important}
@container workspace (max-width:760px){
  .user-row-actions-panel{width:min(360px,78vw)}
  .user-row-actions .user-update-form{grid-template-columns:1fr}
}
@container workspace (max-width:1100px){
  :where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
    padding:18px;
  }
}
@container workspace (max-width:760px){
  :where(.people-page-head,.devices-page-head,.emails-page-head,.users-page-head){
    min-height:auto;
    padding:16px;
  }
  :where(.people-summary,.devices-summary,.emails-summary,.users-summary)>div{
    min-width:0;
  }
  .clean-table tbody td{padding:12px 13px}
}

.email-filterbar{
  display:grid!important;
  grid-template-columns:minmax(190px,1.25fr) repeat(4,minmax(120px,1fr)) minmax(112px,.72fr) auto;
  align-items:center;
}
.email-filterbar>*{min-width:0!important}
.email-filterbar input,.email-filterbar select{width:100%!important}
.email-filterbar button,.email-filterbar .filter-reset{width:100%}
@container workspace (max-width:1050px){
  .email-filterbar{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .email-filterbar input{grid-column:span 2}
}
@container workspace (max-width:760px){
  .email-filterbar{grid-template-columns:1fr!important}
  .email-filterbar input{grid-column:auto}
}
