.account-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; border: 1px solid currentColor; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; position: relative; }
.account-toggle[data-signed-in='true']::after { content: ''; position: absolute; width: 8px; height: 8px; bottom: 0; right: 0; border: 2px solid #eaf7fb; border-radius: 50%; background: #bb3a35; }
.account-toggle img { width: 22px; height: 22px; }
.hero[data-tone='night'] .account-toggle img { filter: brightness(0) invert(1); }
.auth-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 8px; color: #223d43; background: #f7fbfc; box-shadow: 0 16px 64px #102f3a40; overflow: auto; }
.auth-dialog::backdrop { background: #132f3d80; backdrop-filter: blur(3px); }
.auth-dialog[open] { animation: auth-arrive .2s ease-out; }
.auth-heading { position: relative; padding: 30px 28px 22px; background: #dceef3 url('./assets/cloud.webp') no-repeat right -60px bottom 10px / 210px auto; border-bottom: 1px solid #c5dee5; }
.auth-heading .auth-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; margin-bottom: 20px; }
.auth-heading h2 { font-size: 25px; line-height: 1.4; margin: 0; padding-right: 20px; overflow-wrap: anywhere; }
.auth-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; }
.auth-content { padding: 24px 28px max(24px, env(safe-area-inset-bottom)); }
.auth-content [hidden] { display: none !important; }
.auth-content button { font: inherit; min-height: 44px; }
.auth-content button { cursor: pointer; }
.auth-content button:disabled { cursor: wait; opacity: .55; }
.auth-secondary { color: #234f59; background: transparent; }
.auth-line { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 48px; padding: 0; border: 0; border-radius: 4px; background: #06c755; color: white; font-weight: 650; overflow: hidden; }
.auth-line img { width: 44px; height: 44px; }
.auth-line span { padding: 8px 0; }
.auth-line:hover { background: #05b34c; }
.auth-line:active { background: #048b3b; }
.auth-secondary { width: 100%; border: 1px solid #a4b7bb; border-radius: 4px; padding: 10px 16px; }
.auth-note, .auth-last-used { margin: 4px 0 0; color: #536b73; font-size: 12px; line-height: 1.6; text-align: center; }
.auth-last-used { margin-top: 16px; }
.auth-identity { display: grid; gap: 6px; margin-bottom: 24px; overflow-wrap: anywhere; }
.auth-identity strong { font-size: 20px; }
.auth-identity span { font-size: 14px; color: #536b73; }
.auth-dialog button:focus-visible { outline: 3px solid #276b85; outline-offset: 3px; }
.auth-social { display: grid; gap: 14px; width: 100%; max-width: 352px; margin: 0 auto; }
.auth-google { min-height: 44px; align-items: center; display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.auth-text { padding: 4px 0; border: 0; background: transparent; color: #2b6471; font-size: 14px !important; text-underline-offset: 4px; }
.auth-text:hover { text-decoration: underline; }
.auth-status { font-size: 14px; line-height: 1.7; margin: 0 0 18px; overflow-wrap: anywhere; }
.auth-status:empty { display: none; }
.auth-status[data-error='true'] { color: #a33231; }
.auth-account-actions { display: grid; gap: 8px; }
body:has(.auth-dialog[open]) { overflow: hidden; }
@keyframes auth-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .auth-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); border-radius: 8px 8px 0 0; }
  .auth-heading { padding: 22px 24px 18px; }
  .auth-heading .auth-brand { margin-bottom: 12px; }
  .auth-content { padding: 22px 24px max(24px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .auth-dialog[open] { animation: none; } }
