.account-tab[hidden], .account-dialog [hidden] { display: none; }
.account-tab .hud-art { width: 25px; }
.account-dialog {
  width: min(416px,calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  color: #f1dfbe;
  background: linear-gradient(145deg,#28302a,#18201d 60%);
  border: 1px solid #947346;
  border-radius: 7px;
  box-shadow: 0 24px 75px #090b09bb, inset 0 0 0 3px #bb986425;
}
.account-dialog::backdrop { background: #111610b5; }
.account-header {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 1px solid #91704488;
  background: linear-gradient(#443828,#2b261d);
}
.account-header .hud-art { width: 36px; }
.account-header h2 { margin: 0; font: 700 22px/1.2 var(--serif); color: #ffe9bb; }
.account-close {
  width: 35px;
  height: 35px;
  color: #e9cb94;
  border: 1px solid #a98a5966;
  border-radius: 4px;
  background: #241e16;
  font-size: 23px;
}
.account-content { padding: 18px; }
.account-content p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.account-actions { display: grid; gap: 8px; margin-top: 16px; }
.account-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #8a6a42;
  border-radius: 4px;
  color: #f5e3c0;
  background: linear-gradient(#403525,#2a251d);
  font-weight: 700;
}
.account-actions button[data-account-action="guest"] { background: #35432f; border-color: #82926a; }
.account-actions .account-danger { background: #512c26; color: #ffdfcc; border-color: #bd8071; }
.account-actions button:hover, .account-close:hover { border-color: #e2b970; }
.account-actions button:disabled { opacity: .56; cursor: wait; }
.account-content .account-feedback { margin-top: 12px; color: #efc98b; font-size: .92rem; }
