/* Composição exclusiva da Conta sobre os componentes e tokens do pet-ds. */
.account-page {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 24px 16px calc(48px + env(safe-area-inset-bottom, 0px));
}

.account-page h1 {
  margin: 0;
  color: var(--tinta);
  font: 700 28px/1.15 var(--f-display);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.account-intro {
  margin: 8px 0 24px;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.5;
}

.account-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Entrada: boas-vindas com o mascote, centralizada na altura útil. */
.account-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: calc(100dvh - 48px);
}

/* Passos do cadastro. */
.account-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}

.account-steps span {
  height: 4px;
  border-radius: 9999px;
  background: var(--linha);
}

.account-steps span.is-done {
  background: var(--acao);
}

.account-form,
.account-error,
.account-error-actions {
  display: grid;
  gap: 24px;
}

.account-error-actions {
  gap: 8px;
  justify-items: center;
}

.account-error .alert {
  margin: 0;
}

.account-count {
  margin: 8px 0 0;
  color: var(--apagado);
  font-size: 14px;
  line-height: 1.4;
}

.account-count.is-ok {
  color: var(--acao);
  font-weight: 600;
}

.account-secondary-form {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--linha);
}

.account-secondary-form .field-help {
  margin: 0;
}

.account-footnote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  color: var(--apagado);
  font-size: 14px;
  line-height: 1.4;
}

.account-footnote p {
  margin: 0;
}

/* Meus dados */
.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.account-profile p {
  margin: 4px 0 0;
  color: var(--apagado);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Aviso antes do formulário (erro de envio, sucesso ao salvar): respiro até o primeiro campo. */
.account-page > .alert {
  margin-bottom: 24px;
}

.account-details {
  display: grid;
  margin: 0 0 24px;
  border: 1px solid var(--linha);
  border-radius: 16px;
  background: var(--superficie);
}

.account-details > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 56px;
  padding: 16px;
  box-sizing: border-box;
}

.account-details > div + div {
  border-top: 1px solid var(--linha);
}

.account-details dt {
  color: var(--apagado);
  font-size: 14px;
  line-height: 1.4;
}

.account-details dd {
  margin: 0;
  color: var(--tinta);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Fora do Telegram, as duas ações da entrada têm a mesma largura. */
.account-entry .welcome .btn {
  align-self: stretch;
}
