.account-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  box-sizing: border-box;
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-heading h2 {
  margin: 0;
}
.account-dialog button {
  min-height: 44px;
}
.account-content form,
.account-content label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-content form {
  gap: 16px;
}
.account-content input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  font: inherit;
}
.account-content p {
  overflow-wrap: anywhere;
}
.account-content > .text-button {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.account-local {
  opacity: 0.7;
}
#account-status {
  min-height: 1.4em;
  overflow-wrap: anywhere;
}
#account-status[role="alert"] {
  color: #f2b8a0;
}
body.battle-mode #account-entry {
  display: none;
}
@media (max-height: 500px) {
  .account-dialog {
    padding: 16px;
  }
  .account-content form {
    gap: 8px;
  }
}
