.access-hidden { display: none !important; }
#account-name { color: #9fabbc; font-size: 12px; overflow-wrap: anywhere; padding: 0 16px 8px; }
.modal .users-card { width: min(1380px, 96vw); max-width: calc(100vw - 32px); max-height: 92dvh; overflow: auto; padding: 24px; }
.users-card h1 { margin: 0; font-size: 24px; }
.users-card h2 { font-size: 20px; margin-top: 0; }
.users-card h3 { font-size: 16px; margin: 22px 0 6px; }
.users-card .muted { font-size: 13px; line-height: 1.5; }
.users-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.users-sidebar { border-right: 1px solid #344052; padding-right: 20px; }
.user-editor, .users-sidebar { min-width: 0; max-width: 100%; }
#user-pc-search { width: 100%; }
#user-new { width: 100%; }
#users-list { display: grid; gap: 6px; margin-top: 16px; max-height: 60vh; overflow-y: auto; }
.user-row { width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 5px; padding: 12px; overflow-wrap: anywhere; }
.user-row.active { background: #26384c; box-shadow: inset 3px 0 #ef4444; }
.user-row small { color: #a4b3c5; font-size: 12px; }
.user-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.user-fields label { display: block; font-size: 13px; color: #c9d3e1; }
.user-fields input:not([type=checkbox]) { display: block; width: 100%; margin-top: 7px; }
.users-card input[type=checkbox] { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: #ef4444; cursor: pointer; }
.user-fields .user-enabled { grid-column: 1 / -1; display: flex; gap: 9px; align-items: center; }
.permissions-scroll { overflow: auto; max-height: 40vh; margin-top: 12px; border: 1px solid #344052; border-radius: 10px; scroll-padding-left: 195px; }
.permissions-table { border-collapse: separate; border-spacing: 0; width: 100%; font-family: -apple-system, system-ui, "Segoe UI", sans-serif; font-size: 12px; }
.permissions-table th, .permissions-table td { padding: 12px 9px; border-bottom: 1px solid #2b3748; text-align: center; min-width: 78px; }
.permissions-table thead th { position: sticky; top: 0; z-index: 2; background: #1b2838; }
.permissions-table th:first-child { position: sticky; left: 0; text-align: left; min-width: 195px; z-index: 1; background: #162231; }
.permissions-table thead th:first-child { z-index: 3; }
.permissions-table tr.assigned th:first-child { background: #26384c; }
.permissions-table tr.assigned td { background: #1e2c3c; }
.pc-assignment { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pc-assignment small { display: block; color: #9fabbc; font-weight: normal; margin-top: 4px; }
.permissions-note { max-width: 820px; }
#user-status { min-height: 22px; color: #fbbf24; font-size: 14px; }
.user-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
#user-delete { color: #fca5a5; }
body.restricted-user .welcome-steps { display: none; }
@media (max-width: 760px) {
  .modal .users-card { padding: 16px; }
  .users-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .users-sidebar { border-right: none; border-bottom: 1px solid #344052; padding: 0 0 14px; }
  #users-list { display: flex; max-height: 110px; overflow-x: auto; }
  .user-row { min-width: 160px; }
  .user-fields { grid-template-columns: minmax(0, 1fr); }
  .permissions-scroll { max-height: 38vh; }
}
