.local-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: block;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgb(0 0 0 / 60%);
  font-family: Arial, Helvetica, sans-serif;
}
.local-auth-overlay[hidden] { display: none; }
.local-auth-root { position: relative !important; inset: auto !important; z-index: auto !important; display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box; width: 100% !important; min-height: 100% !important; height: auto !important; }
.local-auth-scroll { box-sizing: border-box; max-height: calc(var(--svh, 100dvh) - 24px) !important; overflow-x: hidden !important; overflow-y: auto !important; padding-block: 8px !important; }
.local-auth-panel { display: flex !important; flex-direction: column !important; box-sizing: border-box; width: min(366px, calc(100vw - 24px)) !important; min-width: 0 !important; max-height: calc(var(--svh, 100dvh) - 32px) !important; overflow: hidden !important; }
.local-auth-content { box-sizing: border-box; flex: 1 1 auto; min-height: 0; overflow-x: hidden !important; overflow-y: auto !important; }
.local-auth-placeholder { z-index: 1; transition: transform 160ms ease, font-size 160ms ease, opacity 160ms ease; }
.local-auth-overlay .local-auth-placeholder { transform: translateY(12rem) !important; }
.local-auth-overlay .local-auth-placeholder.is-floating { transform: translateY(2rem) !important; font-size: 10px !important; opacity: .9; }
.local-auth-overlay input.local-auth-input-floating { padding-top: 14rem !important; }
.local-auth-panel [data-local-auth-submit] { position: sticky; bottom: 0; z-index: 5; flex-shrink: 0; }
.local-auth-overlay [data-local-auth-submit].is-ready { filter: brightness(1.18) !important; box-shadow: 0 0 0 2px rgb(255 255 255 / 75%), 0 0 18px rgb(82 141 237 / 75%) !important; animation: local-auth-ready-glow 1.1s ease-in-out infinite alternate; }
@keyframes local-auth-ready-glow { from { box-shadow: 0 0 0 2px rgb(255 255 255 / 65%), 0 0 10px rgb(82 141 237 / 55%); } to { box-shadow: 0 0 0 2px #fff, 0 0 22px rgb(82 141 237 / 95%); } }
.local-announcement-marquee { display: inline-block !important; width: max-content; white-space: nowrap !important; animation: local-announcement-scroll var(--local-announcement-duration, 80s) linear infinite; will-change: transform; }
@keyframes local-announcement-scroll { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
.local-auth-overlay input { box-sizing: border-box; max-width: 100%; color: #202534; opacity: 1; visibility: visible; pointer-events: auto; user-select: text; }
.local-auth-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92dvh, 760px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: #fff;
  color: #202534;
  box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
}
.local-auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #586174;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.local-auth-brand { display: block; width: 142px; height: 54px; object-fit: contain; margin: 0 auto 12px; }
.local-auth-title { margin: 0; text-align: center; font-size: 23px; font-weight: 700; }
.local-auth-subtitle { margin: 8px 0 20px; color: #7b8291; text-align: center; font-size: 14px; }
.local-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; margin-bottom: 20px; border-radius: 11px; background: #f2f4f8; }
.local-auth-tabs button { min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: #747c8b; font-size: 15px; font-weight: 700; cursor: pointer; }
.local-auth-tabs button[aria-selected="true"] { background: #528ded; color: #fff; box-shadow: 0 3px 9px rgb(82 141 237 / 24%); }
.local-auth-field { display: block; margin: 0 0 14px; color: #42495a; font-size: 14px; font-weight: 600; }
.local-auth-field input { display: block; box-sizing: border-box; width: 100%; height: 47px; margin-top: 7px; padding: 0 13px; border: 1px solid #dce1e9; border-radius: 9px; outline: none; background: #fff; color: #202534; font: inherit; font-weight: 400; }
.local-auth-field input:focus { border-color: #528ded; box-shadow: 0 0 0 3px rgb(82 141 237 / 14%); }
.local-auth-submit { width: 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #68a2ff, #4b8af0); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.local-auth-notice { min-height: 18px; margin: 12px 0 0; color: #727b8b; text-align: center; font-size: 12px; line-height: 1.5; }
.local-auth-overlay [data-local-auth-close] { position: fixed; top: 14px; right: 14px; z-index: 2147483001; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 22%); cursor: pointer; }
.local-auth-form-notice, .local-auth-fallback { color: #727b8b; text-align: center; font: 13px/1.5 Arial, sans-serif; }
.local-auth-form-notice.is-success { color: #16834a; }
.local-auth-redirect-link { margin-left: 6px; color: #286fd1; font-weight: 700; text-decoration: underline; }
.local-auth-fallback { position: relative; width: min(100%, 360px); padding: 28px 20px; border-radius: 12px; background: #fff; }
.local-auth-fallback [data-local-auth-close] { position: absolute; top: 5px; right: 8px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
@media (max-width: 420px) { .local-auth-dialog { padding: 25px 19px 20px; border-radius: 16px; } }
