html[data-auth-state=restoring]{scroll-behavior:auto!important}
html[data-auth-state=restoring] .marketing,html[data-auth-state=restoring] .public-nav,html[data-auth-state=restoring] #login,html[data-auth-state=restoring] #dashboard{display:none!important}
html[data-auth-state=restoring] #accountRestoring{display:flex!important}
.account-restoring{max-width:540px;margin:24px auto;align-items:center;gap:16px;min-height:100px;color:#174d42}
.account-restoring[hidden]{display:none}
.account-restoring p{margin:0;line-height:1.7}.account-restoring button{margin-top:14px}
.account-restoring-spinner{flex:none;width:24px;height:24px;border:3px solid #dce8e0;border-top-color:#174d42;border-radius:50%;animation:restore-spin .9s linear infinite}
@keyframes restore-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.account-restoring-spinner{animation:none}}

#loginSlot { display: flow-root; }
html.contact-dialog-open { overflow: hidden; }
html.contact-dialog-gutter { scrollbar-gutter: stable; }
.contact-launcher { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid #ffffff70; border-radius: 28px; background: #174d42; color: #fff; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 6px 24px #123d3229; cursor: pointer; transition: background .18s, transform .18s; }
.contact-launcher .icon { width: 21px; height: 21px; }
.contact-launcher:hover { background: #226455; transform: translateY(-2px); }
.contact-launcher:focus-visible, .contact-option:focus-visible { outline: 3px solid #89b09a; outline-offset: 4px; }
.login-dialog.contact-dialog { padding: 38px 28px 28px; text-align: start; }
.contact-dialog h2 { margin: 0 40px 8px 0; margin-inline: 0 40px; font-size: 26px; line-height: 1.4; }
.contact-intro { margin: 0 0 24px; color: #60736a; font-size: 15px; line-height: 1.7; }
.contact-options { display: grid; gap: 12px; }
.contact-option { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border: 1px solid #d4e4d9; border-radius: 16px; background: #fff; color: #174d42; text-decoration: none; transition: background .18s, border-color .18s; }
.contact-option:hover { background: #edf6ed; border-color: #91b49e; }
.contact-option-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: #e7f2e8; }
.contact-option-icon .icon { width: 24px; height: 24px; }
.contact-option-copy { display: grid; gap: 4px; min-width: 0; }
.contact-option-copy strong { font-size: 16px; font-weight: 700; }
.contact-option-copy>span { color: #5b7266; font-size: 14px; overflow-wrap: anywhere; }
.contact-option>.icon { width: 20px; height: 20px; margin-inline-start: auto; flex: none; }
@media(max-width:540px) {
 .contact-launcher { inset-inline-end: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 44px; padding: 11px 14px; font-size: 13px; }
 .login-dialog.contact-dialog { padding: 38px 20px 22px; }
 .contact-dialog h2 { font-size: 24px; }
 .contact-option { padding: 16px 12px; gap: 12px; }
}
html.login-dialog-open { overflow: hidden; }
html.login-dialog-gutter { scrollbar-gutter: stable; }
.login-dialog {
  position: fixed;
  width: min(460px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d8e7dc;
  border-radius: 24px;
  background: #f9fcf7;
  color: var(--ink);
  box-shadow: 0 24px 85px #143c3240;
}
.login-dialog[open] { animation: login-enter .26s cubic-bezier(.22,1,.36,1) both; }
.login-dialog::backdrop {
  background: #123a3159;
  backdrop-filter: blur(4px);
  animation: login-shade .22s ease both;
}
.login-dialog .login {
  max-width: none;
  margin: 0;
  border: 0;
  padding-block-start: 49px;
  background: transparent;
  box-shadow: none;
}
.login-dialog #error { margin: 0 26px 24px; }
.login-dialog-close {
  position: absolute;
  z-index: 1;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d6e5dc;
  border-radius: 50%;
  background: #edf4ed;
  color: #174d42;
  cursor: pointer;
}
.login-dialog-close:hover { background: #dcebe0; }
.login-dialog-close:focus-visible { outline: 2px solid #174d42; outline-offset: 2px; }
@keyframes login-enter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes login-shade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .login-dialog[open], .login-dialog::backdrop { animation: none; }
}
