/* Account security uses the same surface and control tokens as the account center. */
.account .security-workspace { width: 100%; min-width: 0; }
.account .security-workspace .security-account-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 30px; margin-bottom: 24px; padding: 25px 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--account-theme-panel, #202124); }
.account .security-account-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account .security-account-avatar { width: 56px; height: 56px; border: 1px solid var(--border-strong); border-radius: 14px; font-size: 22px; }
.account .security-account-identity > div { min-width: 0; }
.account .security-account-identity > div > span { display: block; margin-bottom: 5px; color: var(--muted-foreground); font-size: 11px; }
.account .security-account-identity strong { display: block; color: var(--foreground); font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.account .security-account-identity p { margin: 6px 0 0; color: var(--muted-foreground); font-size: 11px; line-height: 1.7; }
.account .security-session-count { display: grid; gap: 7px; min-width: 86px; padding-left: 28px; border-left: 1px solid var(--border); }
.account .security-session-count > strong { color: var(--foreground); font-size: 25px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.account .security-session-count > span { color: var(--muted-foreground); font-size: 11px; }
.account .security-panel { margin: 0; overflow: hidden; border-radius: 14px; }
.account .security-panel .account-panel-heading { padding: 21px 26px; border-bottom: 1px solid var(--border); }
.account .security-panel .account-panel-heading h2 { margin: 0; font-size: 16px; font-weight: 650; }
.account .security-panel-body { padding: 24px 26px; }
.account .security-panel-description { margin: 0 0 23px; color: var(--secondary-foreground); font-size: 12px; line-height: 1.8; }
.account .security-password-form { max-width: 800px; margin: 0; padding: 0; }
.account .security-password-form > fieldset { display: grid; gap: 23px; margin: 0; padding: 0; border: 0; }
.account .security-password-form .form-field { gap: 10px; font-size: 12px; }
.account .security-password-form .form-field input { min-height: 46px; font-size: 13px; }
.account .security-password-form .account-form-row { gap: 20px; margin: 0; }
.account .security-password-form .account-form-actions { justify-content: flex-start; padding: 0; }
.account .security-password-form .account-form-error { margin: 0; }
.account .security-form-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; color: var(--secondary-foreground); background: var(--account-theme-inset, #1b1d20); }
.account .security-form-note > svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; color: var(--accent-text); }
.account .security-form-note p { margin: 0; font-size: 11px; line-height: 1.8; }
.account .security-recovery { display: flex; align-items: flex-start; gap: 13px; margin-top: 20px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--account-theme-inset, #1b1d20); }
.account .security-recovery-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; color: var(--secondary-foreground); background: var(--account-theme-panel, #202124); }
.account .security-recovery-icon svg { width: 17px; height: 17px; }
.account .security-recovery h2 { margin: 0; color: var(--secondary-foreground); font-size: 13px; font-weight: 600; line-height: 1.7; }
.account .security-recovery p { max-width: 95ch; margin: 5px 0 0; color: var(--muted-foreground); font-size: 11px; line-height: 1.9; }
.account .security-session-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account .security-session-intro p { max-width: 75ch; margin: 0; color: var(--secondary-foreground); font-size: 12px; line-height: 1.8; }
.account .security-session-intro .button { flex-shrink: 0; }
.account .security-session-list { display: grid; gap: 12px; margin: 23px 0; padding: 0; list-style: none; }
.account .security-session { display: flex; align-items: flex-start; gap: 15px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--account-theme-inset, #1b1d20); }
.account .security-session.is-current { border-color: var(--account-theme-success-border, #38594c); background: var(--account-theme-success-bg, #263a32); }
.account .security-session-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; color: var(--secondary-foreground); background: var(--account-theme-panel, #202124); }
.account .security-session-icon svg { width: 18px; height: 18px; }
.account .security-session-details { flex: 1; min-width: 0; }
.account .security-session-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 25px; }
.account .security-session-title strong { color: var(--foreground); font-size: 13px; font-weight: 600; }
.account .security-current, .account .security-session-label { display: inline-flex; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted-foreground); font-size: 10px; line-height: 1.5; }
.account .security-current { border-color: var(--account-theme-success-border, #38594c); color: var(--account-theme-success, #a1c4b6); background: var(--account-theme-success-bg, #263a32); }
.account .security-session-details dl { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 12px 0 0; }
.account .security-session-details dl > div { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; line-height: 1.8; }
.account .security-session-details dt { color: var(--muted-foreground); }
.account .security-session-details dd { margin: 0; color: var(--secondary-foreground); font-variant-numeric: tabular-nums; }
.account .security-session-empty { margin: 0; padding: 15px 0 0; color: var(--muted-foreground); font-size: 12px; line-height: 1.8; }
.account .security-revoke-form { margin: 0; padding-top: 22px; border-top: 1px solid var(--border); }
.account .security-revoke-form > fieldset { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 0; padding: 0; border: 0; }
.account .security-revoke-form h3 { margin: 0; color: var(--foreground); font-size: 13px; font-weight: 600; }
.account .security-revoke-form p { margin: 6px 0 0; color: var(--muted-foreground); font-size: 11px; line-height: 1.8; }
.account .security-revoke-form .account-form-error { flex-basis: 100%; color: var(--account-theme-danger, #ffb5b9); }
.account .security-revoke-form .account-form-actions { margin: 0; padding: 0; }
.auth-forgot-link { display: block; margin: 14px 0 0 auto; color: var(--theme-secondary, #b7bac2); font-size: 13px; }
.auth-dialog .recovery-fields { margin: 0; padding: 0; border: 0; }
.auth-recovery-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 18px; }
.auth-recovery-note { padding: 12px 14px; margin: 16px 0; border: 1px solid var(--theme-border-strong, #414347); border-radius: 8px; color: var(--theme-secondary, #b7bac2); font-size: 13px; line-height: 1.7; }
.auth-recovery-note p { margin: 0 0 8px; }
@media (max-width: 760px) {
  .account .security-workspace .security-account-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 22px; padding: 22px; }
  .account .security-account-identity { grid-column: 1 / -1; }
  .account .security-session-count { min-width: 0; padding: 0; border: 0; }
  .account .security-session-count:last-child { padding-left: 22px; border-left: 1px solid var(--border); }
  .account .security-session-count > strong { font-size: 22px; }
}
@media (max-width: 560px) {
  .account .security-workspace .security-account-summary { margin-bottom: 19px; padding: 19px; }
  .account .security-account-identity { gap: 12px; }
  .account .security-account-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .account .security-account-identity strong { font-size: 13px; }
  .account .security-panel-body, .account .security-panel .account-panel-heading { padding: 19px; }
  .account .security-password-form .account-form-row { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .account .security-password-form .account-form-actions .button { width: 100%; }
  .account .security-recovery { gap: 11px; padding: 17px; }
  .account .security-session-intro { flex-wrap: wrap; gap: 12px; }
  .account .security-session { gap: 11px; padding: 15px; }
  .account .security-session-details dl { display: grid; gap: 5px; }
  .account .security-revoke-form > fieldset { align-items: stretch; }
  .account .security-revoke-form .account-form-actions, .account .security-revoke-form .button { width: 100%; }
}
