.ua-presence{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);line-height:1.5}.ua-presence>span{width:6px;height:6px;border-radius:50%;background:#bcc9c5;flex-shrink:0}.ua-presence.online{color:#18734f}.ua-presence.online>span{background:#2b9a6f;box-shadow:0 0 0 3px #e8f4ee}.ua-login{display:block;color:var(--muted);font-size:10px;margin:3px 0;line-height:1.5}.ua-user-cell{min-width:150px}
.ua-dialog{max-width:100%;min-width:0}.ua-dialog .ua-person{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin:0 0 10px}.ua-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}.ua-tabs{display:flex;gap:3px;padding:3px;border-radius:9px;background:#edf3ef}.ua-tabs button{padding:7px 11px;min-height:36px;background:transparent;color:#64776d;border-radius:6px;font-size:12px}.ua-tabs button[aria-pressed=true]{background:#fff;color:#176649;box-shadow:0 1px 3px #153b2012}.ua-controls select{min-height:42px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:7px;font:inherit;font-size:12px}.ua-controls>.btn{margin-left:auto;min-height:40px;font-size:11px}.ua-snapshot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;color:var(--muted);font-size:10px;margin-bottom:12px}.ua-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.ua-dates dt{font-size:10px;color:var(--muted);margin-bottom:4px}.ua-dates dd{margin:0;font-size:12px;font-weight:600}.ua-dates small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}.ua-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:14px}.ua-metrics>div{background:#f1f6f3;border:1px solid #e3ece6;border-radius:10px;padding:10px;min-width:0}.ua-metrics strong{font-size:23px;line-height:1.2;display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ua-metrics span{display:block;font-size:10px;color:var(--muted);line-height:1.4;margin-top:3px}.ua-feed{list-style:none;margin:0;padding:0}.ua-entry{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid var(--line);min-width:0}.ua-entry>time{font-size:10px;color:var(--muted);padding-top:2px;font-variant-numeric:tabular-nums}.ua-entry>div{min-width:0}.ua-entry strong{font-size:12px;line-height:1.4;display:block;font-weight:550;overflow-wrap:anywhere}.ua-entry.access strong{color:#36765f}.ua-context{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.5;overflow-wrap:anywhere}.ua-context button{font-size:11px;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:0;min-height:24px}.ua-more{width:100%;min-height:42px;margin-top:8px}.ua-note{font-size:10px;color:var(--muted);line-height:1.5;margin:12px 0 0}.ua-empty{color:var(--muted);font-size:12px;padding:12px 0}.ua-error:empty{display:none}
.ua-more[hidden]{display:none}

@media(max-width:760px){.ua-dialog{padding:12px!important}.ua-user-cell{min-width:0}.ua-controls{gap:6px}.ua-tabs{width:100%}.ua-tabs button{flex:1;min-height:40px}.ua-controls select{flex:1;min-width:0}.ua-controls>.btn{flex:1;margin-left:0;min-height:42px}.ua-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ua-metrics>div{padding:9px}.ua-metrics strong{font-size:23px}.ua-entry{grid-template-columns:69px minmax(0,1fr);gap:8px}.ua-entry>time{font-size:9px;line-height:1.6}.ua-entry strong{font-size:11px}.ua-dates{gap:8px}.ua-dates dd{font-size:11px}.ua-dates dt{font-size:9px}.ua-snapshot{font-size:9px}}

.ua-record-links{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.ua-record-links .btn{white-space:normal;min-height:42px}.ua-context{display:flex;gap:4px 10px;flex-wrap:wrap}@media(max-width:600px){.ua-record-links .btn{flex:1 1 100%}}

/* Directory density is local to the Users workspace. */
.portal-shell .admin-shell.users-page {
 width:100%;max-width:1160px;margin-inline:0 auto;container:users / inline-size;
}
.portal-shell .users-page[data-directory=team],
.portal-shell .users-page[data-directory=codes],
.portal-shell .users-page[data-directory=audit]{max-width:850px}
.users-page .page-heading,.users-page .admin-toolbar{justify-content:flex-start;flex-wrap:wrap;gap:6px 14px}
.users-page .page-heading{margin-bottom:5px}
.users-page .admin-session-actions{gap:5px}
.users-page .admin-session-actions .btn{min-height:32px;padding:4px 8px;font-size:12px}
.users-page .admin-toolbar{margin-bottom:6px}
.users-page .admin-toolbar .search-wrap{width:min(260px,100%);flex:0 1 260px}
.users-page .admin-toolbar .tab{min-height:30px;padding:4px 8px}
.users-page .admin-toolbar input{height:32px;min-height:32px}
.users-page .admin-toolbar .search-wrap .icon{top:50%;transform:translateY(-50%)}
.users-page .admin-panel{overflow:visible}
.users-page .users-table{width:100%;table-layout:fixed;border-collapse:collapse}
.users-page .users-table th,.users-page .users-table td{
 height:auto;min-width:0;padding:2px 7px;vertical-align:middle;text-align:left;
 font-size:12px;line-height:1.22;white-space:normal;overflow-wrap:anywhere;
}
.users-page .users-table th{font-size:10px;padding-block:5px}
.users-page .users-table th:first-child{border-start-start-radius:8px}
.users-page .users-table th:last-child{border-start-end-radius:8px}
.users-page .panel-footer{padding:5px 8px}
.users-page .directory-empty{padding:14px 10px;margin:0;color:var(--muted);font-size:12px}
.staff-directory th:nth-child(1){width:22%}
.staff-directory th:nth-child(2){width:16%}
.staff-directory th:nth-child(3){width:7%}
.staff-directory th:nth-child(4){width:14%}
.staff-directory th:nth-child(5){width:17%}
.staff-directory th:nth-child(6){width:24%}
.users-page .avatar-user-row{gap:6px}
.users-page .avatar-user-row .user-avatar{width:23px;height:23px;font-size:10px}
.staff-profile,.staff-action,.ua-directory-presence,.staff-more>summary{
 font:inherit;cursor:pointer;background:transparent;border:0;border-radius:4px;color:var(--green);
}
.staff-profile{display:block;min-width:0;max-width:100%;padding:0;text-align:left;line-height:1.22}
.staff-name{display:flex;align-items:center;gap:4px}
.staff-profile strong{min-width:0;overflow-wrap:anywhere}
.staff-profile .icon{width:11px;height:11px;flex:none;opacity:.55}
.staff-profile:hover .staff-name,.ua-directory-presence:hover .ua-presence,.staff-action:hover{text-decoration:underline;text-underline-offset:2px}
.users-page .staff-login,.users-page .staff-shops,.users-page .staff-sessions,.users-page .ua-login{
 display:block;color:var(--muted);font-size:10px;line-height:1.2;margin:1px 0 0;
}
.staff-security,.staff-actions{display:flex;align-items:center;gap:3px 6px;flex-wrap:wrap}
.users-page .staff-security .pill{padding:1px 5px;font-size:10px;line-height:1.25}
.staff-factor{font-size:10px;color:var(--muted);white-space:nowrap}
.staff-codes{font-variant-numeric:tabular-nums}
.staff-codes.is-empty{color:var(--muted)}
.users-page .ua-directory-presence{display:block;max-width:100%;padding:0 1px;text-align:left;line-height:1.25}
.users-page .ua-directory-presence .ua-presence{line-height:1.25}
.users-page .staff-action{display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;padding:3px 4px;min-height:26px;font-size:11px;white-space:nowrap}
.staff-preview .icon{width:13px;height:13px;flex:none}
.users-page .staff-action:disabled{color:var(--muted);opacity:.55;cursor:default;text-decoration:none}
.staff-more{position:relative;flex:none}
.staff-more>summary{display:grid;place-items:center;list-style:none;width:26px;height:26px;border:1px solid var(--line);font-size:18px;line-height:1;background:var(--surface,#fff)}
.staff-more>summary::-webkit-details-marker{display:none}
.staff-more[open]>summary,.staff-more>summary:hover{background:#eef5f0}
.staff-menu{position:absolute;z-index:9;top:calc(100% + 3px);right:0;min-width:168px;max-width:220px;padding:4px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:7px;box-shadow:0 6px 18px #153b3024}
.staff-more.opens-up .staff-menu{top:auto;bottom:calc(100% + 3px)}
.staff-menu button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);border-radius:4px;padding:7px 8px;font-size:12px;line-height:1.3}
.staff-menu button:hover,.staff-menu button:focus-visible{background:#edf5f0}
.staff-mobile-label{display:none}
.team-directory th:first-child{width:44%}
.team-directory th:last-child{width:17%}
.codes-directory th:nth-child(1){width:11%}
.codes-directory th:nth-child(2){width:33%}
.codes-directory th:nth-child(3){width:12%}
.codes-directory th:nth-child(4){width:18%}
.users-page .codes-directory .btn{min-height:26px;padding:3px 7px;font-size:11px}
.users-page .code-filters{padding:4px 7px;gap:3px}
.users-page .code-filters .tab{min-height:26px;padding:3px 7px}
.users-page .code-scope-hint{padding:5px 8px;font-size:11px}
.users-page .audit-list{padding:0 9px}
.users-page .audit-card{padding:5px 0}
.users-page .audit-card>p{margin:1px 0}
.users-page .audit-card details{margin-top:2px}
.users-page .audit-card summary{min-height:23px;padding:2px 0}
@container users (min-width:691px) and (max-width:940px){
 .staff-directory th:nth-child(1){width:21%}
 .staff-directory th:nth-child(3){width:6%}
 .staff-directory th:nth-child(4){width:16%}
 .staff-directory th:nth-child(5){width:19%}
 .staff-directory th:nth-child(6){width:22%}
 .users-page .staff-actions{gap:0 2px}
 .users-page .staff-action{min-height:20px}
 .staff-more>summary{height:21px}
}
@container users (max-width:690px){
 .users-page .staff-directory,.staff-directory tbody,.users-page .codes-directory,.codes-directory tbody{display:block}
 .staff-directory thead,.codes-directory thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .staff-directory tr,.codes-directory tr{display:grid;align-items:center;gap:1px 8px;padding:4px 7px;border-bottom:1px solid var(--line)}
 .staff-directory tbody tr{grid-template-columns:minmax(0,1.2fr) minmax(115px,1fr);grid-template-areas:"person access" "role activity" "codes activity" "actions actions"}
 .users-page .staff-directory td,.users-page .codes-directory td{padding:0;border:0;min-width:0}
 .staff-person{grid-area:person}
 .staff-role{grid-area:role}
 .staff-codes{grid-area:codes}
 .staff-codes.is-empty{display:none}
 .staff-codes:not(.is-empty),.staff-shops{font-size:10px;color:var(--muted)}
 .staff-mobile-label{display:inline}
 .staff-actions-cell{grid-area:actions;align-self:start}
 .staff-access{grid-area:access}
 .staff-activity{grid-area:activity}
 .users-page .staff-role{font-size:11px}
 .staff-profile{min-height:26px}
 .users-page .staff-login,.users-page .staff-shops{margin:0}
 .staff-directory .ua-directory-presence{min-height:28px}
 .staff-actions{gap:3px 8px}
 .users-page .staff-action{min-height:32px}
 .staff-more>summary{min-width:37px;height:32px}
 .staff-menu button{min-height:40px}
 .team-directory th:first-child{width:43%}
 .users-page .team-directory td{padding:4px 6px}
 .codes-directory tbody tr{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"code owner action" "count unowned action"}
 .code-key{grid-area:code}.code-owner{grid-area:owner}.code-action{grid-area:action}
 .code-count{grid-area:count}.code-unowned{grid-area:unowned}
 .users-page .code-count,.users-page .code-unowned{font-size:10px;color:var(--muted)}
 .users-page .codes-directory .btn{min-height:38px;max-width:112px;white-space:normal}
 .users-page .admin-toolbar{gap:4px 8px}
 .users-page .admin-toolbar .search-wrap{flex:1 1 130px;max-width:300px}
 .users-page .admin-session-actions .btn{min-height:36px}
 .users-page .page-heading{gap:4px 10px}
 .users-page .admin-toolbar input{font-size:16px;height:38px;min-height:38px}
 .users-page .admin-toolbar .tab,.users-page .code-filters .tab{min-height:36px}
 .users-page .audit-card summary{min-height:32px}
}
