/* Shared account feedback and keyboard access, independent of color theme. */
html body :focus-visible{outline:3px solid #1678ca;outline-offset:3px}
html[data-theme=dark] body :focus-visible{outline-color:#8dccff}
html body .auth-dialog{max-height:calc(var(--account-viewport,100dvh) - 32px);overflow:auto;overscroll-behavior:contain;scroll-padding-block:60px 24px}
html body .auth-dialog .auth-close{position:sticky;top:0;float:right;z-index:2;min-width:44px;min-height:44px;background:var(--paper,#fff);color:var(--ink,#17241e);border-radius:4px}
html body .auth-dialog :is(button,.auth-age-confirmation){min-height:44px}
html body .auth-dialog :is(input,button,a){scroll-margin-block:60px 24px}
html body .auth-dialog input[aria-invalid=true]{border:2px solid #b91c1c}
html body .auth-dialog .auth-error{background:#fff1f2;color:#991b1b;border-left:3px solid #b91c1c;padding:12px;line-height:1.5}
html body .account-notice{background:#eaf5f0;color:#184735;border-left:3px solid #247553;padding:14px 18px;margin-block:16px;line-height:1.6;overflow-wrap:anywhere}
html body .account-notice p{margin:0}
html body .account-notice button{margin-top:10px;min-height:44px;background:#185d43;color:#fff;padding:8px 14px;border:0;border-radius:4px}
html body :is(.account-email-state,.account-billing-note){font-size:13px;line-height:1.6;color:var(--ink,#263c31);overflow-wrap:anywhere}
html body .account-profile>div{min-width:0}
html body .account-profile strong{overflow-wrap:anywhere}
html body .account-profile button{min-height:44px}
html body :is(.membership-primary,.membership-secondary){min-height:44px}
@media(max-width:720px){
  html body .auth-backdrop{align-items:flex-start;overflow:auto;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}
  html body .auth-dialog{width:100%;padding:20px;max-height:calc(var(--account-viewport,100dvh) - 24px)}
  html body .auth-dialog input:not([type=checkbox]){font-size:16px;min-height:48px}
  html body .auth-dialog .auth-age-confirmation{align-items:center}
  html body .account-profile{flex-wrap:wrap;gap:14px}
  html body .account-profile>div{flex:1;min-width:150px}
  html body .membership-card-heading{flex-wrap:wrap;gap:12px}
  html body .membership-card h2{font-size:22px;overflow-wrap:anywhere}
  html body .auth-dialog label{font-size:13px}
  html body .auth-dialog>p{font-size:14px;line-height:1.5}
  html body #account-content>.membership-secondary{margin-block:6px}
}
@media(prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
