.acct-dialog {
  color: var(--ink, #283129); background: var(--paper, #fffef9);
  width: min(29rem, calc(100vw - 2rem)); max-height: min(88dvh, 50rem);
  box-sizing: border-box; padding: 1.65rem; border: 1px solid var(--line, #deded5);
  border-radius: 1.3rem; box-shadow: 0 1.8rem 6rem #20251d30; margin: auto;
}
.acct-dialog::backdrop { background: #1c261e68; }
.acct-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.acct-header h2 { font: 400 2rem/1.2 'Instrument Serif', Georgia, serif; margin: 0; }
.acct-close { font-size: 1.5rem; width: 2.55rem; height: 2.55rem; border: 0; border-radius: 50%; background: #eaece2; color: inherit; cursor: pointer; }
.acct-mode { background: #f0f2e9; padding: .95rem 1rem; border-radius: .9rem; }
.acct-mode p, .acct-form p, .acct-status { font-size: .93rem; line-height: 1.5; margin: .4rem 0 0; }
.acct-mode strong { font-weight: 650; }
.acct-form { display: grid; gap: .8rem; margin-top: 1.35rem; }
.acct-form h3 { font-family: inherit; font-weight: 600; line-height: 1.35; font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.acct-label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.acct-input { font: inherit; font-size: 1rem; border: 1px solid #c8ccbf; border-radius: .55rem; padding: .7rem .8rem; width: 100%; box-sizing: border-box; background: #fffefa; color: inherit; }
.acct-primary,.acct-secondary { font: inherit; font-size: .95rem; cursor: pointer; border-radius: .6rem; padding: .65rem .85rem; min-height: 2.65rem; }
.acct-primary { background: #304732; border: 1px solid #304732; color: white; }
.acct-secondary { border: 1px solid var(--line, #d2d6c8); color: inherit; background: transparent; }
.acct-links { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; }
.acct-links .acct-secondary { font-size: .85rem; text-decoration: underline; text-underline-offset: .2rem; border: 0; padding-inline: 0; }
.acct-status { padding-top: .55rem; color: #435d3b; }
.acct-error { color: #8e412d; }
.acct-dialog :focus-visible { outline: 2px solid #657944; outline-offset: 3px; }
.acct-dialog :disabled { opacity: .65; cursor: wait; }
