/* GO-001/GO-002: the two account dialogs (js/account.js), in Settings and on /account/delete. Native <dialog>: top layer,
   focus kept inside, Escape closes. Colours are the host page's tokens. */
.acd { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 24px; border: 0;
  border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); font: 400 14px/1.55 var(--font-sans);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity 160ms ease, transform 220ms cubic-bezier(.2,.9,.3,1.15), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.acd[open] { opacity: 1; transform: none; }
@starting-style { .acd[open] { opacity: 0; transform: translateY(10px) scale(.98); } }
.acd::backdrop { background: rgba(8, 6, 16, .55); opacity: 0; transition: opacity 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete; }
.acd[open]::backdrop { opacity: 1; }
@starting-style { .acd[open]::backdrop { opacity: 0; } }
.acd h2 { margin: 0 0 8px; font: 600 19px/1.25 var(--font-sans); letter-spacing: -.015em; }
.acd p { margin: 0 0 12px; color: var(--text-mid); }
.acd ul { margin: 0 0 16px; padding: 14px 16px; list-style: none; display: grid; gap: 9px; border-radius: 14px; background: var(--surface-2); color: var(--text-mid); font-size: 13.5px; }
.acd li { display: grid; grid-template-columns: 8px 1fr; gap: 10px; overflow-wrap: anywhere; }
.acd li::before { content: ''; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--red); }
.acd label { display: block; margin: 0 0 6px; font-weight: 500; color: var(--text); }
.acd input { width: 100%; height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--border-hi); border-radius: 12px; background: var(--surface-2); color: var(--text);
  font: 500 16px var(--font-sans); letter-spacing: .04em; }
.acd input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acd-err { min-height: 0; margin: 10px 0 0; color: var(--red-ink, var(--red)); font-size: 13.5px; }
.acd-err:empty { display: none; }
.acd-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.acd-acts :is(button, a) { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font: 600 14px var(--font-sans); cursor: pointer; background: var(--surface-2); color: var(--text); }
.acd-acts :is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acd-acts .is-go { background: var(--red-fill, #C2412D); color: #fff; }
.acd-acts .is-go.is-plain { background: var(--accent-fill); color: var(--on-accent); }
.acd-acts button:disabled { opacity: .45; cursor: default; }
@media (max-width: 480px) {
  .acd { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
  .acd-acts :is(button, a) { flex: 1; min-height: 48px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .acd, .acd::backdrop { transition: none; transform: none; } }
