.account-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(18px, 4vw, 24px);
  border: 1px solid var(--pm-line, #e5e0de);
  border-radius: 16px;
  box-shadow: 0 14px 45px rgb(53 40 32 / 12%);
  color: var(--pm-ink, #282722);
  background: var(--pm-surface, #fff);
  font: 15px/1.55 var(--pm-font, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif);
}
.account-dialog::backdrop { background: rgb(33 30 36 / 32%); }
.account-dialog [hidden] { display: none !important; }
.account-form { display: grid; gap: 14px; }
.account-form header { display: flex; align-items: center; justify-content: space-between; }
.account-dialog h2 { margin: 0; font-size: 22px; font-weight: 720; letter-spacing: -.04em; }
.account-dialog p { margin: 0; color: var(--pm-muted, #665f61); }
.account-dialog button {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--pm-line, #e5e0de); border-radius: 9px;
  background: var(--pm-surface, #fff); color: inherit; font: inherit; cursor: pointer;
}
.account-form header button { width: 44px; border: 0; font-size: 24px; }
.account-dialog button:disabled { opacity: .5; cursor: wait; }
.account-form label { display: grid; gap: 5px; font-weight: 600; }
.account-dialog input {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px; border: 1px solid #bcb6b4; border-radius: 8px;
  background: var(--pm-canvas, #f8f7f5); color: inherit; font: inherit; font-size: 16px;
}
.account-tabs { display: flex; gap: 6px; }
.account-tabs button { flex: 1; padding: 6px; font-size: 14px; }
.account-tabs [aria-pressed=true] {
  border-color: var(--pm-accent, #a8385b); color: var(--pm-accent, #a8385b);
  background: var(--pm-accent-soft, #f9edf1); font-weight: 650;
}
.account-dialog .account-submit, .account-dialog [data-recovery-done] {
  background: var(--pm-accent, #a8385b); border-color: var(--pm-accent, #a8385b); color: #fff; font-weight: 650;
}
.account-dialog .account-error { color: #b32635; }
.account-recovery { display: grid; gap: 16px; }
.account-dialog :is(input, button):focus-visible { outline: 2px solid var(--pm-accent, #a8385b); outline-offset: 2px; }
