.access-admin-head,
.access-backup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 25px;
}

.access-admin-head .eyebrow { margin: 0 0 8px; }
.access-owner-label,
.access-member-count {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  background: #f3f7fa;
  color: #36536f;
  font-size: 12px;
  font-weight: 690;
}
.access-owner-label svg { width: 15px; height: 15px; }
.access-admin-grid {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.3fr);
  gap: 15px;
  align-items: start;
}
.access-admin-grid .panel { margin: 0; }
.access-grant > p, .access-backup p { margin-top: 4px; font-size: 13px; }
.access-member-form { display: grid; gap: 12px; margin-top: 15px; }
.access-member-form .field { min-width: 0; }
.access-member-form input[readonly] { background: #f4f7fa; color: #3c526a; }
.access-form-actions, .access-member-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.access-role-guide { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.access-role-guide summary { width: fit-content; color: var(--strong); cursor: pointer; font-weight: 700; }
.access-role-guide dl { display: grid; gap: 9px; margin-top: 10px; font-size: 12px; }
.access-role-guide dt { font-weight: 730; }
.access-role-guide dd { margin-top: 2px; color: var(--muted); }
.access-member-panel .panel-head { margin-bottom: 8px; }
.access-members { list-style: none; margin: 0; padding: 0; }
.access-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.access-member:last-child { padding-bottom: 1px; }
.access-member-profile { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.access-member-profile strong { color: var(--text); overflow-wrap: anywhere; }
.access-member-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: var(--strong); background: var(--pale); }
.access-member-icon svg { width: 16px; height: 16px; }
.access-member-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.access-role, .access-state { display: inline-flex; border-radius: 5px; padding: 1px 5px; font-size: 11px; font-weight: 680; }
.access-role { background: #edf3f8; color: #395875; }
.access-role-editor, .access-role-owner { background: #e9eff8; color: #365580; }
.access-role-scheduler { background: #e8f2f5; color: #27536c; }
.access-state { background: #f0f2f4; color: #536476; }
.access-state.enabled { background: #e8f4ed; color: #2c654a; }
.access-member-actions .button { min-height: 34px; padding: 0 8px; font-size: 12px; }
.access-member-actions .button svg { width: 14px; height: 14px; }
.access-list-message { border-top: 1px solid var(--line); padding: 16px 0 5px; color: var(--muted); font-size: 13px; }
.access-backup { margin-top: 15px; }
.access-backup button { flex: none; }

@media (max-width: 925px) {
  .access-admin-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 530px) {
  .access-admin-head, .access-backup { align-items: flex-start; flex-direction: column; }
  .access-member { align-items: flex-start; flex-direction: column; }
  .access-member-actions { margin-left: 39px; }
}
