#app-screen #users-view {
  --people-ink:#202a3b;
  --people-muted:#536379;
  --people-line:#dce2e9;
}
#app-screen #users-view > .page-header {align-items:center; margin:0 0 12px;gap:12px}
#app-screen #users-view > .page-header :is(.eyebrow,.page-subtitle) {display:none}
#app-screen #users-view > .page-header h1 {font-size:clamp(22px,2.25vw,31px);letter-spacing:-.035em;line-height:1.15;margin:0}
#app-screen #users-view .users-help-heading {display:flex;align-items:center;gap:9px}
#app-screen #users-view #users-help-open {
  display:inline-grid;place-items:center;padding:0;width:32px;min-width:32px;height:32px;min-height:32px;
  border:1px solid var(--people-line);border-radius:50%;background:#fff;color:var(--people-muted);font-size:15px;cursor:pointer;
}
#app-screen #users-view > .context-banner {margin:0 0 14px;padding:8px 12px;font-size:.82rem;line-height:1.45;align-items:center}
#app-screen #users-view .rs-people-panel {padding:0;border:0;box-shadow:none;background:transparent}
#app-screen #users-view .rs-people-panel .access-toolbar {
  display:grid;grid-template-columns:minmax(9rem,1fr) minmax(8rem,15rem) auto;align-items:end;
  gap:12px;margin-bottom:12px;padding:12px 14px;border:1px solid var(--people-line);border-radius:12px;background:#fff;
}
#app-screen #users-view .rs-people-panel .access-toolbar label {
  display:grid;min-width:0;max-width:none;gap:4px;color:#47566c;font-size:12px;line-height:1.3;font-weight:600;
}
#app-screen #users-view .rs-people-panel .access-toolbar :is(input,select) {
  display:block;box-sizing:border-box;width:100%;min-width:0;height:40px;min-height:40px;
  padding:6px 10px;border:1px solid #c9d2de;border-radius:7px;background-color:#fff;color:var(--people-ink);font:inherit;font-size:14px;font-weight:400;
}
#app-screen #users-view .rs-people-panel .access-toolbar input::placeholder {color:#68768a}
#app-screen #users-view #access-users-refresh {height:40px;min-height:40px;font-size:14px;padding:0 13px}
#app-screen #users-view .rs-people-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,265px),1fr));align-items:stretch;
  gap:12px;margin:0;padding:0;list-style:none;
}
#app-screen #users-view .rs-person-card {
  position:relative;display:flex;flex-direction:column;gap:9px;min-width:0;padding:14px 14px 9px;
  background:white;border:1px solid var(--people-line);border-radius:13px;box-shadow:0 2px 6px #23304608;color:var(--people-ink);
}
#app-screen #users-view .rs-person-card:has(.rs-person-more[open]) {z-index:3}
#app-screen #users-view .rs-person-head {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:9px}
#app-screen #users-view .rs-person-head > .rs-person-avatar {flex-shrink:0}
#app-screen #users-view .rs-person-identity {min-width:0;align-self:center}
#app-screen #users-view .rs-person-name {margin:0;color:var(--people-ink);font-size:16px;line-height:1.25;font-weight:680;letter-spacing:-.018em;overflow-wrap:anywhere}
#app-screen #users-view .rs-person-login {display:block;margin-top:2px;font-size:13px;color:var(--people-muted);line-height:1.35;overflow-wrap:anywhere}
#app-screen #users-view .rs-person-tags {display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
#app-screen #users-view .rs-person-role {padding:3px 7px;background:#f0f3f7;border-radius:6px;color:#3f5067;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#app-screen #users-view .rs-person-status {display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1.4}
#app-screen #users-view .rs-person-status::before {content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
#app-screen #users-view .rs-person-status.is-active {color:#216846}
#app-screen #users-view .rs-person-status.is-blocked {color:#934052}
#app-screen #users-view .rs-person-self {color:var(--people-muted);font-size:12px}
#app-screen #users-view .rs-person-groups {
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;align-items:baseline;
  margin:0;font-size:12px;line-height:1.45;
}
#app-screen #users-view .rs-person-groups dt {color:var(--people-muted);font-weight:400}
#app-screen #users-view .rs-person-groups dd {margin:0;color:#354258;overflow-wrap:anywhere}
#app-screen #users-view .rs-person-actions {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;border-top:1px solid #e9edf2;padding-top:4px;margin-top:auto}
#app-screen #users-view .rs-person-actions button.secondary {
  min-height:32px;height:auto;border:0;background:transparent;padding:4px 2px;color:#36465e;font-size:13px;font-weight:600;line-height:1.3;box-shadow:none;
}
#app-screen #users-view .rs-person-actions button:last-child {color:#a5203b}
#app-screen #users-view .rs-person-actions button:hover {text-decoration:underline}
#app-screen #users-view .rs-person-more {position:relative;color:#526179}
#app-screen #users-view .rs-person-more summary {
  display:grid;place-items:center;box-sizing:border-box;cursor:pointer;list-style:none;user-select:none;
  width:32px;height:32px;border:1px solid transparent;border-radius:7px;background:transparent;
  line-height:1;font-size:22px;letter-spacing:1px;font-weight:700;
}
#app-screen #users-view .rs-person-more summary::-webkit-details-marker {display:none}
#app-screen #users-view .rs-person-more summary:hover,#app-screen #users-view .rs-person-more[open] summary {background:#f0f3f7;border-color:#dce2e9}
#app-screen #users-view .rs-person-more[open] {z-index:4}
#app-screen #users-view .rs-person-commands {
  position:absolute;z-index:5;inset-inline-end:0;top:calc(100% + 3px);display:grid;min-width:154px;max-width:min(85vw,235px);
  padding:4px;background:#fff;border:1px solid var(--people-line);border-radius:9px;box-shadow:0 8px 24px #24354a27;
}
#app-screen #users-view .rs-person-commands button.secondary {
  border:0;background:transparent;padding:8px;text-align:start;min-height:35px;font-size:13px;color:#27364b;white-space:normal;
}
#app-screen #users-view .rs-person-commands button:not(:disabled):hover {background:#f1f4f8}
#app-screen #users-view .rs-person-commands button:last-child:not(:disabled) {color:#aa213d}
#app-screen #users-view .rs-people-empty {
  grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;
  padding:26px 12px;border:1px solid var(--people-line);border-radius:12px;background:#fff;font-size:15px;
}
#app-screen #users-view #access-users-count {margin:10px 0 0;font-size:12px;color:var(--people-muted)}
#app-screen #users-view .rs-person-more summary:focus-visible,
#app-screen #users-view .rs-people-panel :is(button,input,select):focus-visible {
  outline:2px solid #b32942;outline-offset:2px;
}
body #access-user-dialog {box-sizing:border-box;width:min(650px,calc(100vw - 28px));padding:18px;border-radius:14px}
body #access-user-dialog .access-form {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
body #access-user-dialog .access-form > :not(label) {grid-column:1/-1}
body #access-user-dialog .access-form > label {min-width:0;gap:4px;font-size:13px;line-height:1.35}
body #access-user-dialog .access-form > label[hidden]{display:none}
body #access-user-dialog .access-form > label.access-check {align-self:end;min-height:40px}
body #access-user-dialog :is(.access-dialog-head,.access-actions){gap:8px}
body #access-user-dialog .access-form h2 {font-size:21px;line-height:1.2}
body #access-user-dialog .access-form :is(input:not([type=checkbox]):not([type=file]),select) {
  font-size:15px;height:40px;min-height:40px;padding:7px 10px;
}
@media(max-width:660px){
  #app-screen #users-view > .page-header {flex-direction:row;flex-wrap:wrap;align-items:center}
  #app-screen #users-view #access-user-add {width:auto}
  #app-screen #users-view .rs-people-panel .access-toolbar {grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}
  #app-screen #users-view .rs-people-panel .access-toolbar > label:first-child {grid-column:1/-1}
  #app-screen #users-view .rs-people-panel .access-toolbar :is(input,select),body #access-user-dialog .access-form :is(input:not([type=checkbox]):not([type=file]),select) {font-size:16px}
}
@media(max-width:460px){
  body #access-user-dialog .access-form {grid-template-columns:minmax(0,1fr)}
}
@media(pointer:coarse){
  #app-screen #users-view .rs-person-actions button.secondary,#app-screen #users-view .rs-person-commands button.secondary {min-height:44px}
  #app-screen #users-view .rs-person-more summary,#app-screen #users-view #users-help-open {min-height:44px;min-width:44px}
}

.rs-person-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  inline-size: 38px;
  block-size: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: #fae9eb;
  color: #93374d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .01em;
}
.rs-person-avatar[data-tone="1"] { color: #345b72; background: #e4edf3; }
.rs-person-avatar[data-tone="2"] { color: #625086; background: #ede8f5; }
.rs-person-avatar[data-tone="3"] { color: #2e6254; background: #e0eee8; }
.rs-person-avatar[data-tone="4"] { color: #795433; background: #f6ebde; }
.rs-person-avatar img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
#pk-profile-open #user-initials.rs-person-avatar { width: 34px; height: 34px; border-radius: 50%; }
.rs-avatar-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  grid-column: 1 / -1;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #e0e5ec;
  border-radius: 12px;
  background: #f8fafc;
  color: #263547;
}
#access-profile .rs-avatar-editor, #pk-profile-dialog .rs-avatar-editor { margin-block: 10px; }
.rs-avatar-editor .rs-person-avatar { width: 46px; height: 46px; font-size: 16px; }
.rs-avatar-editor .rs-avatar-copy { min-width: 0; }
.rs-avatar-editor .rs-avatar-preview-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  min-width: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.rs-avatar-editor .rs-avatar-preview-button:hover { box-shadow: 0 0 0 2px #cbd5e1; }
.rs-avatar-editor .rs-avatar-preview-button:focus-visible { outline: 2px solid #a6243e; outline-offset: 3px; }
.rs-avatar-caption, .rs-avatar-note { display: block; }
.rs-avatar-caption { font-size: 14px; line-height: 1.25; }
.rs-avatar-note { margin-top: 3px; color: #586579; font-size: 12px; }
.rs-avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rs-avatar-actions button { min-height: 34px; padding: 5px 11px; font: inherit; font-size: 13px; }
.rs-avatar-actions [data-photo-delete] { background: transparent; border-color: transparent; color: #9b384b; }
.rs-avatar-editor .rs-avatar-status { grid-column: 2 / -1; color: #44546b; font-size: 13px; overflow-wrap: anywhere; }
.rs-avatar-editor .rs-avatar-status.is-error { color: #a21f35; }
.rs-avatar-editor [hidden] { display: none !important; }
@media (max-width:600px) {
  .rs-avatar-editor { grid-template-columns: auto minmax(0,1fr); }
  .rs-avatar-actions, .rs-avatar-editor .rs-avatar-status { grid-column: 1 / -1; }
  .rs-avatar-actions button { min-height: 40px; }
}

@media (pointer:coarse) {
  .rs-avatar-actions button { min-height: 44px; }
}
