.account-page {
  padding-top: clamp(36px, 6vw, 84px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.account-access:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(26px, 6vw, 78px);
}

.account-intro h1 {
  max-width: 13ch;
  margin-bottom: 20px;
  font-size: clamp(37px, 5vw, 63px);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.account-intro p {
  max-width: 42ch;
  color: #b4c7de;
}

.account-card {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #3c5a7d;
  border-radius: 18px;
  background: linear-gradient(155deg, #162b47, #101f34);
  box-shadow: 0 18px 42px #03081265;
}

.account-card h2 {
  margin: 0 0 17px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.17;
  letter-spacing: -.035em;
}

.account-card p, .account-form small {
  color: #b4c7de;
  font-size: 14px;
}

.account-navigation:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid #385676;
  border-radius: 11px;
  background: #0d1c30;
}

.account-navigation button {
  min-height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bbd1ec;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.account-navigation button:hover, .account-navigation button[aria-pressed="true"] {
  background: #243e5e;
  color: #f0f6ff;
}

.account-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.account-field { display: grid; gap: 5px; }

.account-form small {
  font-size: 12px;
  font-weight: 500;
}

.account-form input {
  min-width: 0;
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #557395;
  border-radius: 8px;
  background: #0c1a2d;
  color: #eff6ff;
  font: inherit;
  font-size: 16px;
}

.account-form input:focus-visible {
  outline: 2px solid #9cc7ff;
  outline-offset: 2px;
}

.account-form .btn {
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
}

.account-form .btn.primary { border-color: transparent; }

.account-card button:disabled, .account-card fieldset:disabled .btn {
  opacity: .64;
  cursor: wait;
  transform: none;
}

.account-form-links:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 19px;
}

.account-form-links button {
  min-height: 36px;
  padding: 8px 0;
  color: #bad8ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.account-form-links button { border: 0; background: transparent; }
.account-form-links button:hover { text-decoration: underline; }

.account-resend {
  margin-top: 20px;
  padding-top: 9px;
  border-top: 1px solid #385676;
}

.account-status { margin: 0; }

.account-status:not(:empty) {
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #436896;
  border-radius: 8px;
  background: #172f4d;
}

.account-status[data-kind="error"] {
  border-color: #aa6271;
  background: #3b2331;
  color: #ffd5dc;
}

.account-details {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.account-details div { padding-top: 10px; border-top: 1px solid #385676; }
.account-details dt { color: #b4c7de; font-size: 13px; font-weight: 700; }
.account-details dd { margin: 3px 0 0; overflow-wrap: anywhere; }

.account-dashboard h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.account-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(165px, 220px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
}

.account-sidebar {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid #385676;
  border-radius: 12px;
  background: #0d1c30;
}

.account-sidebar button {
  min-height: 44px;
  padding: 8px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #b4c7de;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.account-sidebar button:hover, .account-sidebar button[aria-pressed="true"] {
  background: #243e5e;
  color: #f0f6ff;
}

.account-dashboard-content .account-form { max-width: 34rem; }
.account-dashboard-content .account-form .btn { justify-self: start; }

.account-setting {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid #385676;
}

.account-setting h2 { margin-bottom: 6px; font-size: 22px; }
.account-setting p { margin-top: 0; }

#dashboard-reset > section, .account-delete[open] form {
  margin-top: 15px;
  padding: clamp(12px, 3vw, 20px);
  border: 1px solid #436086;
  border-radius: 10px;
  background: #0c1a2d;
}

.account-delete summary { cursor: pointer; list-style: none; }
.account-delete summary::-webkit-details-marker { display: none; }
.account-delete .button-row { margin: 0; }
.account-delete .btn.danger { border: 1px solid #a96073; background: #482837; color: #ffdce2; }
.account-delete .btn.danger:hover { background: #613447; }

@media (max-width: 740px) {
  .account-access:not([hidden]), .account-dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .account-intro h1 { max-width: none; }
  .account-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
