.account-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--canvas);
}

.account-gate-panel {
  width: min(100%, 380px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.account-brand { display: flex; align-items: center; gap: 10px; }
.account-brand strong, .account-brand small { display: block; }
.account-brand strong { font-size: 16px; }
.account-brand small { color: var(--muted); font-size: 12px; }
.account-gate-panel h1 { margin: 20px 0 13px; font-size: 18px; }
.account-gate-panel > .error, .account-gate-state { margin: 16px 0 0; }
.account-gate-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-gate-actions .primary { min-width: 105px; }
.account-list-state { padding: 12px 0; color: var(--muted); }
.account-users-table { min-width: 650px; }
.account-user-roles .pill + .pill { margin-left: 2px; }

.account-role-fieldset {
  border: 1px solid var(--line);
  border-radius: 3px;
  margin: 0;
  min-width: 0;
  padding: 6px 9px 9px;
}
.account-role-fieldset legend { padding: 0 4px; color: var(--text); font-size: 12px; font-weight: 600; }
.account-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.account-role-grid label, .account-active { display: flex; align-items: center; gap: 5px; }
.account-role-grid input, .account-active input { accent-color: var(--accent); margin: 0; }
.account-top-action { flex-shrink: 0; white-space: nowrap; }
.profile > div { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .top-tools .demo-label { display: none; }
}
