.account-menu-link {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.account-menu-link:hover { background: #f2f5f8; }
.access-instructions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 16px 20px;
  background: #eef3fb;
  border: 1px solid #d5e0ef;
  border-radius: 14px;
}
.access-instructions > div { flex: 1 1 300px; }
.access-instructions p, .access-panel .panel-heading p, .access-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}
.access-panel, .access-empty { padding: 20px; }
.access-panel .panel-heading { padding: 0 0 14px; }
.access-owner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.staff-table td:first-child { overflow-wrap: anywhere; }
.access-role-form fieldset, .access-login-fields {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.access-select, .access-login-fields > label:not(.access-check) { display: grid; gap: 5px; font-weight: 650; }
.access-select { width: min(100%, 320px); }
.access-login-fields > label:not(.access-check) { width: 100%; }
.access-role-form select, .access-login-fields select, .access-login-fields input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
.access-permissions { display: grid; gap: 8px; width: min(100%, 530px); }
.access-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-size: .9rem;
  font-weight: 650;
}
.access-permissions .access-check { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; }
.access-check input { width: 16px; height: 16px; flex: none; accent-color: var(--red); }
.access-role-copy { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.access-role-copy ul { margin: 4px 0; padding-inline-start: 18px; }
.access-dialog > form > p { margin: 4px 0 12px; }
.access-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
.access-dialog { max-height: calc(100dvh - 36px); overflow-y: auto; }
@media (max-width: 550px) {
  .access-panel, .access-empty { padding: 14px; }
  .staff-table { min-width: 470px; }
}

/* Version 19: Users — per-person abilities */
.access-type, .access-abilities { display: grid; gap: 8px; }
.access-type-label { font-weight: 700; font-size: .9rem; }
.access-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #c4ccd7; border-radius: 11px; overflow: hidden; }
.access-type-options button { min-height: 48px; padding: 6px 8px; border: 0; border-left: 1px solid #c4ccd7; background: #fff; color: #3d4a5d; font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; }
.access-type-options button:first-child { border-left: 0; }
.access-type-options button.is-active { background: #101827; color: #fff; }
.access-type-options button:focus-visible { outline: 3px solid #f4c430; outline-offset: -3px; }
.access-group { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.access-group legend { padding: 0; margin-bottom: 2px; color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: none; }
.access-permissions .access-check input:disabled + span { color: var(--muted); }
.access-enable { margin-top: 4px; }
.access-chips { display: flex; flex-wrap: wrap; gap: 5px; max-width: 360px; }
.access-chip { padding: 3px 8px; border-radius: 999px; background: #eef1f5; color: #334155; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.status-pill.warning { background: #fff4d6; color: #7a5200; }
.access-dialog footer .access-signout { margin-right: auto; }
@media (max-width: 550px) {
  .access-type-options { grid-template-columns: 1fr; }
  .access-type-options button { border-left: 0; border-top: 1px solid #c4ccd7; }
  .access-type-options button:first-child { border-top: 0; }
  .access-dialog footer { flex-wrap: wrap; }
  .access-dialog footer .access-signout { width: 100%; margin-right: 0; }
}
