.account-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.account-heading,
.session-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.account-heading h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 8px 0 20px;
}
.account-heading em {
  font-family: Georgia, serif;
  color: #e48da9;
  font-weight: 400;
}
.account-heading p,
.account-card p {
  color: #c9bdc9;
  line-height: 1.65;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
.account-card {
  min-width: 0;
  border: 1px solid #3b303e;
  border-radius: 20px;
  background: #1c1922;
  padding: 26px;
}
.account-card--highlight {
  background: linear-gradient(130deg, #30212c, #1c1922);
  border-color: #704652;
}
.account-card--danger {
  margin: 22px 0;
  border-color: #8f3551;
  background: linear-gradient(135deg, #2a1820, #1c1922);
}
.account-card--danger summary { color: #ffc0d0; }
.account-erasure-copy ul { color: #c9bdc9; line-height: 1.65; }
.account-card .account-erasure-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}
.account-card .account-erasure-check input { width: 20px; height: 20px; flex: 0 0 auto; }
.account-delete-button { background: #9d294b; color: #fff; border-color: #c64a70; }
.account-delete-button:hover { background: #b33259; }
.account-card h2 {
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.account-card .eyebrow {
  color: #d8ad72;
}
.account-badge {
  display: inline-flex;
  border: 1px solid #376353;
  background: #1b302b;
  border-radius: 999px;
  padding: 7px 12px;
  color: #a0e6c8;
  font-size: 0.78rem;
  font-weight: 700;
}
.account-muted,
.account-card small {
  color: #b4a8b8;
  font-size: 0.84rem;
}
.account-actions {
  align-items: start;
}
.account-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.account-card summary::-webkit-details-marker {
  display: none;
}
.account-card summary small {
  display: block;
  font-weight: 400;
  margin-top: 8px;
}
.account-card form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.account-card label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}
.account-card input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  background: #121016;
  color: #fbf4fa;
  border: 1px solid #4c3d4b;
  border-radius: 10px;
}
.account-card button {
  max-width: 100%;
  white-space: normal;
}
.account-link {
  display: block;
  color: #f0b5cc;
  margin: 16px 0;
  text-underline-offset: 4px;
}
.account-link:hover {
  text-decoration: underline;
}
.account-sessions dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-block: 1px solid #3b303e;
}
.account-sessions dd {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.account-sessions dt {
  color: #b4a8b8;
  font-size: 0.8rem;
}
#account-error {
  color: #ffadbf;
  line-height: 1.5;
}
#account-status {
  color: #b9ddcf;
  line-height: 1.5;
}
#recovery-panel,
#email-confirm {
  margin: 24px 0;
}
#mfa-secret,
#recovery-codes {
  display: block;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 16px;
  background: #110e16;
  color: #f2c8d8;
  border-radius: 12px;
  line-height: 1.8;
  font-size: 0.95rem;
}
#mfa-secret-panel {
  margin-top: 22px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .account-grid,
  .account-sessions dl {
    grid-template-columns: 1fr;
  }
  .account-page {
    padding: 28px 16px 50px;
  }
  .account-heading,
  .session-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-card {
    padding: 20px;
  }
  .account-card .button {
    width: 100%;
    margin-top: 8px;
  }
  .account-sessions dl {
    gap: 10px;
  }
}
