.account-recovery-page {
  min-height: 100dvh;
  padding: 0 0 max(34px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 100% 320px at 50% 0, #33271d, transparent), #151315;
}

.account-screen {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding-inline: 16px;
}

.account-screen-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: calc(66px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  text-align: center;
}

.account-screen-header > h1 {
  font-size: 19px;
  font-weight: 760;
  line-height: 1.25;
}

.account-screen-header .page-back { margin-inline-start: -4px; }

.account-security-card,
.account-identity-card {
  padding: clamp(18px, 5vw, 27px);
  border: 1px solid #d6a46040;
  border-radius: 21px;
  background: linear-gradient(155deg, #332820, #232024 68%);
  text-align: center;
  box-shadow: 0 12px 35px #09080a48;
}

.account-security-emblem,
.account-setting-icon {
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid #f4c27155;
  background: linear-gradient(140deg, #6b4b2c, #382b25);
  color: #ffd791;
}

.account-security-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 15px;
  border-radius: 20px;
}

.account-security-emblem svg { --icon: 31px; }

.account-security-card h2 {
  margin-bottom: 7px;
  font-size: 20px;
  letter-spacing: .015em;
  line-height: 1.35;
}

.account-screen p {
  color: #c6b7ac;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.account-security-card > p + p { margin-top: 5px; }

.account-security-card > .cta { margin-top: 13px; }

.account-screen .account-id-label {
  margin-top: 11px;
  color: #f4ce87;
  font-variant-numeric: tabular-nums;
}

.account-settings-list {
  display: grid;
  margin-top: 13px;
  border: 1px solid #ffffff12;
  border-radius: 17px;
  background: #221f22;
}

.account-setting-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 14px;
}

.account-setting-row + .account-setting-row { border-top: 1px solid #ffffff10; }

.account-setting-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.account-setting-icon svg { --icon: 19px; }

.account-setting-row > svg {
  --icon: 17px;
  color: #b9a38b;
}

.account-setting-row strong,
.account-setting-row small { display: block; }
.account-setting-row strong { font-size: 14px; }

.account-setting-row small {
  margin-top: 3px;
  color: #c1afa4;
  font-size: 12px;
  line-height: 1.4;
}

.account-security-actions {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.account-screen .cta {
  min-height: 43px;
  height: auto;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
}

.account-security-form {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  text-align: start;
}

.account-security-form > label {
  color: #ebd8c8;
  font-size: 13px;
  font-weight: 630;
}

.account-security-form .field {
  border-color: #d2aa7640;
  background: #1a181b;
  font-size: 16px;
}

.account-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  line-height: 1.5;
}

.account-confirm-check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--brand-gold);
}

.account-screen .account-form-feedback { color: #ffcc96; }
.account-form-feedback:empty { display: none; }

.account-inline {
  width: fit-content;
  min-height: 35px;
  padding: 7px 2px;
  color: var(--brand-gold-soft);
  font-size: 13px;
  font-weight: 640;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: #eebc6066;
  text-underline-offset: 4px;
}

.account-center-link { display: block; margin: 10px auto 0; }

.account-identity-card {
  margin-top: 13px;
  background: linear-gradient(150deg, #3d2b20, #251f22 75%);
}

.account-identity-card > strong { color: #ffe2ab; font-size: 17px; }
.account-identity-card > p { margin-top: 5px; }
.account-identity-card > .cta { width: 100%; margin-top: 14px; }

.account-identity-qr {
  display: grid;
  place-items: center;
  width: min(210px, 100%);
  aspect-ratio: 1;
  margin: 15px auto 11px;
  padding: 10px;
  border-radius: 12px;
  background: white;
}

.account-identity-qr img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
}

#recovery-content > p { margin-top: 12px; }
#recovery-content > .cta { width: 100%; margin-top: 12px; }

.account-upload {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 28px 11px;
  border: 1px dashed #dfaf69a0;
  border-radius: 12px;
  background: #e3a9530d;
  text-align: center;
  cursor: pointer;
}

.account-upload svg { --icon: 27px; color: #fed18a; }
.account-upload small { color: #c6b7ac; font-weight: 500; }
.account-upload span { overflow-wrap: anywhere; }
.account-upload:focus-within { outline: 2px solid #edbd71; outline-offset: 2px; }

.account-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.account-request-status {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #eebc6040;
  border-radius: 12px;
  background: #e6b2710e;
}

.account-request-status strong { color: #ffdd9b; font-size: 16px; }
.account-request-status p { margin-top: 4px; }
