.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 1fr);
  gap: 22px;
  align-items: start;
}
.access-users-panel, .access-create-panel { min-width: 0; }
.access-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
}
.access-search { position: relative; flex: 1; min-width: 150px; }
.access-search > svg { position: absolute; left: 11px; top: 11px; width: 15px; height: 15px; color: #8ca6bc; }
.access-search input { min-height: 37px; font-size: 11px; padding: 8px 11px 8px 34px; }
.access-show-inactive { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #6f879b; white-space: nowrap; cursor: pointer; }
.access-show-inactive input { width: 14px; height: 14px; min-height: 14px; padding: 0; margin: 0; accent-color: var(--brand); }
.access-loading { display: flex; align-items: center; gap: 8px; color: #7192aa; padding: 13px 22px; font-size: 11px; border-bottom: 1px solid var(--line); }
.access-table-scroll { max-height: 670px; }
.access-table { min-width: 630px; }
.access-table th, .access-table td { padding: 14px 17px; vertical-align: middle; }
.access-table thead th { position: sticky; top: 0; background: #f7fafd; z-index: 1; color: #7d96ab; font-size: 9px; }
.access-table tbody th { border-top: 0; border-bottom: 1px solid #f0f3f7; color: #4d6e87; white-space: normal; min-width: 150px; max-width: 230px; }
.access-table tbody th strong { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.access-user-id { display: block; font-size: 10px; color: #92a7b8; margin-top: 4px; overflow-wrap: anywhere; }
.access-email { min-width: 160px; max-width: 240px; white-space: normal; overflow-wrap: anywhere; font-size: 10px; }
.access-role { color: #7c92a5; font-size: 10px; }
.access-role.admin { color: #408bb8; }
.access-remove-button { border: 1px solid #e9dfe3; background: #fff; color: #a76e7b; border-radius: 6px; padding: 6px 9px; font-size: 10px; }
.access-remove-button:hover:enabled { background: #fff4f5; border-color: #e4c9cf; }
.access-remove-button:disabled { cursor: not-allowed; opacity: .45; }
.access-row-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.access-reset-button { border: 1px solid #cfe1ee; background: #f5fafe; color: #397da5; border-radius: 6px; padding: 6px 9px; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.access-reset-button:hover:enabled { background: #eaf5fc; border-color: #a9cfe5; }
.access-reset-button:disabled { cursor: not-allowed; opacity: .45; }
.access-protected-note { display: block; margin-top: 5px; font-size: 8px; color: #9cabb9; }
.access-inactive-action { font-size: 9px; color: #a7b4c1; }
.access-table-footer { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding: 14px 22px; font-size: 9px; line-height: 1.8; color: #92a6b7; }
.access-create-panel .panel-heading { background: linear-gradient(120deg, #f3f9fd, #fff); border-bottom: 1px solid #e1edf5; }
.access-heading-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #dcebf5; border-radius: 9px; background: #fff; color: #6b9bb9; flex-shrink: 0; }
.access-heading-icon svg { width: 17px; height: 17px; }
.access-create-panel fieldset { border: 0; margin: 0; padding: 22px; display: grid; gap: 19px; min-width: 0; }
.access-field { min-width: 0; }
.access-field .field-label { font-size: 11px; margin-bottom: 7px; color: #527089; }
.access-optional { color: #9cacb9; font-weight: 400; }
.access-field input, .access-field select { min-height: 40px; font-size: 12px; }
.access-field .field-hint { font-size: 9px; line-height: 1.8; margin-top: 6px; color: #90a5b6; }
.access-form-footer { padding: 17px 22px; background: #fafcfe; border-top: 1px solid var(--line); }
.access-form-footer .button { width: 100%; font-size: 11px; }
.access-dialog { width: min(440px, calc(100vw - 36px)); padding: 0; border: 1px solid #dfE8f0; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 24px 80px #09223c38; }
.access-dialog::backdrop { background: #0b203d70; backdrop-filter: blur(3px); }
.access-dialog-content { padding: 27px; }
.access-dialog h2 { font-size: 20px; line-height: 1.4; color: #284d6a; margin-bottom: 10px; }
.access-dialog p { font-size: 12px; line-height: 1.8; color: #7f95a8; }
.access-dialog-account { display: grid; gap: 5px; margin: 20px 0; padding: 15px; background: #f7fafd; border: 1px solid #e5edf5; border-radius: 8px; overflow-wrap: anywhere; }
.access-dialog-account strong { font-size: 13px; font-weight: 600; color: #466981; }
.access-dialog-account code { font-size: 11px; color: #6e8ba1; }
.access-dialog-account > span { font-size: 11px; color: #94a8b7; }
.access-dialog .access-dialog-error { color: #b05d69; background: #fff3f5; padding: 10px 12px; border: 1px solid #efd9df; border-radius: 7px; margin-bottom: 18px; font-size: 11px; }
.access-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.access-dialog-actions .button { font-size: 11px; padding: 10px 13px; }
.access-reset-dialog { width: min(480px, calc(100vw - 36px)); }
.access-reset-dialog fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; display: grid; gap: 18px; }
.access-reset-dialog .access-field .field-hint { color: #657f94; }
.access-reset-dialog .access-dialog-actions { flex-wrap: wrap; }
.access-reset-dialog .access-dialog-actions .button { white-space: normal; }
.button.access-danger { color: #fff; border-color: #b15d70; background: #b15d70; }
.button.access-danger:hover { background: #984b5c; border-color: #984b5c; }
@media (max-width: 1250px) {
  .access-layout { grid-template-columns: minmax(0, 1fr); }
  .access-create-panel fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .access-form-footer { display: flex; justify-content: flex-end; }
  .access-form-footer .button { width: auto; min-width: 165px; }
}
@media (max-width: 650px) {
  .access-layout { gap: 18px; }
  .access-toolbar { padding: 14px 19px; flex-wrap: wrap; gap: 12px; }
  .access-search { flex-basis: 100%; min-width: 0; }
  .access-table { min-width: 610px; }
  .access-table th, .access-table td { padding: 13px 15px; }
  .access-table-footer { padding: 13px 19px; flex-direction: column; gap: 3px; }
  .access-create-panel fieldset { grid-template-columns: 1fr; padding: 20px; gap: 19px; }
  .access-field .field-label { font-size: 12px; }
  .access-field .field-hint { font-size: 10px; }
  .access-form-footer { padding: 17px 20px; }
  .access-form-footer .button { width: 100%; }
  .access-dialog-content { padding: 23px; }
  .access-dialog-actions { flex-wrap: wrap; }
  .access-dialog-actions .button { flex: 1; }
}
