.account-shell {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.account-hero {
  margin-bottom: 1.5rem;
}

.account-hero h1 {
  margin: 0.35rem 0 0.75rem;
}

.account-card {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line, #d9d2c3);
  border-radius: 14px;
  background: var(--paper, #fffdf8);
}

.account-card h2,
.account-card p:first-child {
  margin-top: 0;
}

.account-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.account-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}

.account-facts div {
  min-width: 0;
}

.account-facts dt {
  color: var(--muted, #655f55);
  font-size: 0.85rem;
}

.account-facts dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.device-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.device-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line, #d9d2c3);
}

.device-list small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted, #655f55);
}

.danger-card {
  border-color: #c99386;
}

.danger-button {
  border-color: #a74732;
  color: #7f2f20;
}

.erasure-confirm {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  margin: 1rem 0;
}

.erasure-confirm input {
  margin-top: 0.25rem;
}

@media (max-width: 620px) {
  .account-heading-row,
  .device-list li {
    align-items: stretch;
    flex-direction: column;
  }
}
