.staff-access { margin-block: 16px; }
.staff-access form { display: grid; gap: 12px; }
.staff-access form button { justify-self: start; }
.staff-access label { display: block; }
.staff-access > label { margin-top: 12px; }
.staff-access label input:not([type=checkbox]), .staff-access label select { display: block; width: min(100%, 540px); }
.staff-access fieldset { border: 1px solid #ddd4e6; border-radius: 8px; margin: 0; }
.staff-access input[type=checkbox] { width: auto; }
.staff-access .staff-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chat-members { margin: 0; border: 1px solid #ddd4e6; border-radius: 8px; }
.chat-members label { display: block; margin-block: 8px; }
.chat-members input[type=checkbox] { width: auto; }
.staff-directory { padding: 16px 18px; }
.staff-directory .field { max-width: 400px; margin-bottom: 16px; }
.staff-directory [hidden], .staff-profile[hidden], .staff-invite[hidden] { display: none; }
.staff-name { display: inline-flex; gap: 10px; align-items: center; text-align: left; }
.staff-initials {
 display: inline-grid;
 place-items: center;
 flex: 0 0 34px;
 width: 34px;
 height: 34px;
 border-radius: 50%;
 background: #ebe2f3;
 color: #4b3659;
 font-weight: 700;
}
.staff-profile form, .staff-invite { padding: 16px 18px; }
.staff-profile-tabs {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
 padding: 0 18px 12px;
 border-bottom: 1px solid #ddd4e6;
}
.staff-profile-content { padding: 16px 18px; }
.staff-profile .staff-profile-content form { padding: 0; }
.staff-profile-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.staff-invite .panel-head { padding: 0 0 12px; }
.staff-invite-link { align-items: end; margin-top: 18px; }
.staff-invite-link label { flex: 1 1 300px; }
.staff-invite-link label input:not([type=checkbox]) { width: 100%; }
#staff-profile-layer[hidden] { display: none; }
.staff-profile-backdrop {
 position: fixed;
 inset: 0;
 z-index: 24;
 background: #211a2a65;
}
.staff-profile {
 position: fixed;
 z-index: 25;
 inset: 0 0 0 auto;
 width: clamp(480px, 55vw, 1020px);
 max-width: 100%;
 margin: 0;
 border-radius: 18px 0 0 18px;
 overflow: auto;
 overscroll-behavior: contain;
 box-shadow: -12px 0 48px #211a2a26;
}
body:has(#staff-profile-layer:not([hidden])) { overflow: hidden; }
.staff-profile > .panel-head { gap: 12px; }
@media (max-width: 600px) {
 .staff-profile { width: 100%; border-radius: 0; }
}
.chat-author { display: flex; align-items: center; gap: 8px; }
.chat-author-photo { flex: none; object-fit: cover; border-radius: 50%; }
.chat-author-photo[hidden] { display: none; }
.staff-own-profile { display: grid; gap: 12px; padding: 16px 18px; max-width: 560px; }
.staff-own-profile button { justify-self: start; }
.staff-own-profile .staff-row { display: flex; align-items: center; gap: 12px; }
.staff-own-profile .chat-author-photo { width: 64px; height: 64px; }
