body:has(#account-app) {
  overflow: auto;
  background: var(--ds-color-world);
  height: auto;
  min-height: 100dvh;
}
#account-app {
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 16px
    max(24px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  color: var(--ds-color-ink);
  font-family: var(--ds-font-family);
}
.account-card {
  width: min(100%, 560px);
  padding: 24px;
  background: var(--ds-color-paper);
  border: 3px solid var(--ds-color-ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ds-color-ink);
  display: grid;
  gap: 18px;
}
.account-card h1,
.account-card h2,
.account-card p {
  margin: 0;
}
.account-card h1 {
  font-size: 28px;
}
.account-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.account-card header {
  flex-wrap: wrap;
}
.account-card header h2 {
  flex-basis: 100%;
}
.account-card nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.account-card form,
.account-fields {
  display: grid;
  gap: 12px;
}
.account-card label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.account-card input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  padding: 10px 12px;
  border: 2px solid var(--ds-color-edge);
  border-radius: 12px;
  background: var(--ds-color-white);
  color: var(--ds-color-ink);
}
.account-card input:focus-visible {
  outline: 3px solid var(--ds-color-focus);
  outline-offset: 2px;
}
.account-card button,
.account-card a.ds-button {
  min-height: 46px;
}
.account-note {
  color: var(--ds-color-muted);
  font-size: var(--ds-font-label);
  line-height: 1.65;
}
.account-status:empty {
  display: none;
}
.account-status {
  line-height: 1.6;
  color: var(--ds-color-ink);
}
.account-status.is-error {
  background: var(--ds-color-missing-surface);
  padding: 10px;
  border-radius: 10px;
}
.account-worlds {
  display: grid;
  gap: 12px;
}
.account-world {
  display: flex;
  gap: 10px;
  align-items: center;
}
.account-world > a {
  flex: 1;
  min-width: 0;
  display: grid;
  text-align: left;
  gap: 4px;
  text-decoration: none;
  padding: 14px;
  border: 2px solid var(--ds-color-ink);
  border-radius: 16px;
  background: var(--ds-color-white);
  color: var(--ds-color-ink);
}
.account-world > a:hover,
.account-world > a:focus-visible {
  background: var(--ds-color-paper-alt);
  outline: 3px solid var(--ds-color-focus);
  outline-offset: 2px;
}
.account-world small {
  font-size: var(--ds-font-meta);
  color: var(--ds-color-muted);
}
.account-empty {
  padding: 18px;
  border: 2px dashed var(--ds-color-edge);
  border-radius: 16px;
  text-align: center;
}
.account-identity {
  overflow-wrap: anywhere;
  font-size: var(--ds-font-label);
}
.account-key-list {
  display: grid;
  gap: 8px;
}
.account-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--ds-color-paper-alt);
  border-radius: 12px;
}
.account-card .ds-button {
  white-space: normal;
}
.account-new {
  border-top: 2px solid var(--ds-color-edge);
  padding-top: 18px;
}
.account-card details > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 800;
}
.account-card details p {
  margin: 8px 0;
}
.account-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.account-brand svg {
  width: 36px;
  height: 36px;
}
.account-brand p {
  font-size: var(--ds-font-label);
  color: var(--ds-color-muted);
}
@media (max-width: 360px) {
  .account-card {
    padding: 18px;
    gap: 14px;
  }
  .account-card h1 {
    font-size: 25px;
  }
}
