.account-open, #account-dialog button, #account-dialog .account-action {
  border: 1px solid #d8a8bd;
  border-radius: .6rem;
  padding: .45rem .7rem;
  background: white;
  color: #792c50;
  font: inherit;
  cursor: pointer;
}
#account-dialog {
  width: min(54rem, calc(100% - 2rem));
  max-height: 85dvh;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #d8a8bd;
  border-radius: 1rem;
  color: #432a38;
  background: #fffafd;
}
#account-dialog::backdrop { background: #331a29a0; }
#account-dialog header, #account-dialog nav { display: flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
#account-dialog header { justify-content: space-between; }
#account-dialog h2 { margin: 0 0 .5rem; }
#account-dialog nav { margin: .6rem 0 1rem; }
#account-dialog button[aria-pressed=true] { background:#792c50; color:white; }
#account-dialog [hidden] { display: none; }
#account-dialog .account-table { overflow:auto; }
#account-dialog table { width:100%; border-collapse:collapse; }
#account-dialog th, #account-dialog td { padding:.65rem; text-align:left; border-bottom:1px solid #ead2dd; }
#account-dialog select { font:inherit; color:inherit; background:white; }

.help-sections { padding-inline-start: 1.25rem; }
.help-sections li { margin-block: .65rem; }
.header-end .account-open { flex: none; white-space: nowrap; }
#account-dialog .account-action { display: inline-block; text-decoration: none; }
#account-dialog :focus-visible, .account-open:focus-visible { outline: 2px solid #792c50; outline-offset: 2px; }
@media (max-width: 650px) {
  .header-end .account-open { font-size: .78rem; padding: .32rem .45rem; }
}

.account-form {
  display: grid;
  max-width: 29rem;
  gap: .75rem;
}
.account-form label {
  display: grid;
  gap: .35rem;
}
.account-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #d8a8bd;
  border-radius: .5rem;
  padding: .55rem .65rem;
  background: white;
  color: inherit;
  font: inherit;
}
#account-dialog .account-form button[type=submit] {
  justify-self: start;
  background: #792c50;
  color: white;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
#account-dialog button:disabled {
  cursor: wait;
  opacity: .6;
}
#account-content p[role=status]:empty {
  display: none;
}
