/* Account & security (ch. 16 "Next": one person, one account, visible) —
   the modal's own rules, on the dark .mm-modal / .mm-modal-card shell
   dashboard.css already draws for Alerts, and Leagues & Invites' UNSCOPED
   rules (.mm-sec, .mm-sec-head, .mm-row, .mm-row .who/.name/.state/.act,
   .mm-row.asks, .mm-confirm, .mm-note, .mm-empty, .mm-err, .mm-field, .sk —
   leagues-modal.css), which apply here unchanged because they carry no
   #leagues-modal prefix. Linked by src/assets.js as
   `dashboard-account-modal.css`, AFTER dashboard-leagues-modal.css: this
   file adds only what those two do not already cover — the three re-scoped
   rules (.button, .linklike, .mm-wide, exactly as leagues-modal.css scopes
   them to its own modal) plus the identity line, the "how it signs in"
   line, a field error, a success line and the primary-button colour. No new
   colour: the tokens are --text, --muted, --faint, --bad, --border-soft and
   --accent. Nothing outside #account-modal uses these classes. */

#account-modal .button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: center;
  white-space: nowrap;
}
#account-modal .linklike {
  min-height: 44px;
  /* O7, the review of #279: the base .linklike (hero.css) has only a 4px
     uniform padding, so its one use here — the modal's own Close button —
     measured 41.5px wide against a 44px-tall touch target. */
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: underline;
  font: inherit;
  font-size: 0.82rem;
}
#account-modal .mm-wide {
  width: 100%;
}
/* leagues-modal.css's shared .mm-field input/textarea rule has no floor of
   its own (15px padding alone measures under 44px) — every Sign-in field
   here (email/new-password/current-password/add-email/add-password) is a
   touch target, so it gets the same 44px floor .button and .linklike
   already carry above. Scoped to #account-modal only: Leagues & Invites'
   own fields are that shared rule's problem to fix, if its own geometry
   ever needs it. */
#account-modal .mm-field input,
#account-modal .mm-field textarea {
  min-height: 44px;
  box-sizing: border-box;
}

.acct-who {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 2px;
}
.acct-how {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 18px;
}
.acct-sec-lead {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.acct-field-err {
  color: var(--bad);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 6px 0 0;
}
.acct-status {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 8px 0 0;
}
.acct-primary {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
}
.acct-primary:hover {
  background: #818cf8;
}

/* The Change / Add forms take the row's full width, a labelled field per
   line, never squeezed beside a name the way Leagues & Invites' one-line
   confirm is. */
.mm-row.asks .acct-form {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}
.acct-form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.acct-form-buttons .button {
  flex: 1;
}
