.veya-auth-modal{width:min(460px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:0;border-radius:24px;background:#f7f4f0;color:#515355;box-shadow:0 24px 80px rgba(46,48,49,.2);overflow:visible}
.veya-auth-modal::backdrop{background:rgba(46,48,49,.42);backdrop-filter:blur(3px)}
.veya-auth-modal__panel{position:relative;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;border:1px solid #d2ceca;border-radius:24px;background:#f7f4f0;scrollbar-gutter:stable;scroll-padding-block:64px 24px}
.veya-auth-modal__close{position:sticky;z-index:4;top:14px;float:right;width:44px;height:44px;margin:14px 14px -58px 0;border:1px solid #d2ceca;border-radius:50%;background:#f7f4f0;color:#2e3031;font:300 26px/1 Arial,sans-serif;display:grid;place-items:center;cursor:pointer;transition:background-color 180ms ease,border-color 180ms ease}
.veya-auth-modal__close:hover{background:#eee9e3;border-color:#b9b5b1}
.veya-auth-modal__close:focus-visible{outline:2px solid #2e3031;outline-offset:3px}
.veya-auth-modal__loading,.veya-auth-modal__fallback{min-height:180px;margin:0;padding:72px 32px 40px;font:500 14px/1.5 "Veya Text",Arial,sans-serif;text-align:center;color:#515355}
.veya-auth-modal__fallback a{display:block;margin-top:18px;color:#2e3031;font-size:11px;font-weight:600;letter-spacing:.075em;text-underline-offset:4px}
.veya-auth-modal__content:empty{display:none}
.veya-auth--embedded{min-height:0;padding:0;background:transparent}
.veya-auth__shell--embedded{display:block;min-height:0;max-width:none;margin:0;border:0;border-radius:0;background:#f7f4f0;overflow:visible}
.veya-auth__shell--embedded .veya-auth__panel{min-height:0;padding:70px 32px 32px}
.veya-auth__shell--embedded h2:not(.visually-hidden){font-size:clamp(36px,6vw,50px);max-width:11ch}
.veya-auth__shell--embedded [data-auth-state="profile"] h2{max-width:none;overflow-wrap:normal;word-break:normal;font-size:clamp(34px,5vw,40px)}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__lead{margin:16px 0 22px;font-size:15px;line-height:1.48}
.veya-auth__shell--embedded [data-auth-state="profile"] form{display:grid;gap:0}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__grid{gap:12px;margin-bottom:14px}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__help{margin:7px 0 12px}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__field-error:empty{display:none}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__field-error:not(:empty){margin:7px 0 12px;min-height:0}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__check{min-height:44px;grid-template-columns:24px minmax(0,1fr);align-items:center;margin:10px 0!important}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__check span,.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__check a{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__button--primary{min-height:56px;margin-top:10px}
.veya-auth-modal [data-auth-state] :is(h1,h2):not(.visually-hidden)[tabindex="-1"]:focus{position:relative;outline:none!important}
.veya-auth-modal [data-auth-state] :is(h1,h2):not(.visually-hidden)[tabindex="-1"]:focus-visible::before{content:"";position:absolute;inset-block:.08em .06em;inset-inline-start:-12px;width:3px;border-radius:999px;background:var(--auth-strong,#2e3031)}
.veya-auth__wordmark{display:block;width:96px;height:auto;margin:0 auto 30px}
.veya-auth__methods{display:grid;gap:12px}
.veya-auth__methods form{margin:0}
.veya-auth__methods .veya-auth__button{min-height:56px;border-radius:999px!important;font-size:11px;letter-spacing:.075em}
.veya-auth__methods .veya-auth__button:focus{outline:2px solid #2e3031!important;outline-offset:3px}
.veya-auth__methods .veya-auth__button--primary{background:#2e3031;border-color:#2e3031;color:#fff}
.veya-auth__methods .veya-auth__button--primary:hover{background:#1f2021;border-color:#1f2021}
.veya-auth__methods .veya-auth__button--guest{background:transparent;border-color:#a9a5a1;color:#2e3031}
.veya-auth__methods .veya-auth__button--guest:hover{background:#eee9e3}
.veya-auth__method-row{min-height:56px;border:1px solid #d2ceca;border-radius:999px!important;background:#eee9e3;color:#515355;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px;font-size:11px;font-weight:600;letter-spacing:.07em}
.veya-auth__method-row span:last-child{color:#707274;font-size:10px;text-align:right}
.veya-auth__shell--embedded [data-auth-state="phone"]>.veya-auth__button--guest-prominent{margin-top:12px}
.veya-auth__shell--embedded.veya-auth__shell--recovery .veya-auth__panel{padding:70px 32px 32px}
.veya-auth__shell--embedded [data-auth-state="provider_error"] h2{max-width:none;font-size:40px}
.veya-auth__shell--embedded [data-auth-state="provider_error"] .veya-auth__lead{margin:16px 0 26px;font-size:15px;line-height:1.5}
.veya-auth__shell--embedded [data-auth-state="provider_error"] .veya-auth__recovery-wordmark{margin:0 auto 30px}
.veya-auth__shell--embedded [data-auth-state="provider_error"] .veya-auth__recovery-actions{display:grid;gap:12px}
.veya-auth__shell--embedded [data-auth-state="provider_error"] .veya-auth__recovery-actions form{margin:0}
.veya-auth__shell--embedded [data-auth-state="provider_error"] .veya-auth__button{min-height:56px}
body.veya-auth-modal-open{overflow:hidden}
@media(max-width:767px){
  .veya-auth-modal{width:100%;max-width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:24px 24px 0 0;overflow:hidden}
  .veya-auth-modal__panel{max-height:92dvh;border-radius:24px 24px 0 0;border-width:1px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .veya-auth-modal__close{top:10px;float:none;margin:10px 10px -54px auto}
  .veya-auth-modal__loading,.veya-auth-modal__fallback{padding:64px 24px 32px}
  .veya-auth__shell--embedded .veya-auth__panel{padding:64px 24px 24px}
  .veya-auth__shell--embedded h2:not(.visually-hidden){font-size:clamp(36px,12vw,46px)}
  .veya-auth__shell--embedded [data-auth-state="profile"] h2{font-size:clamp(30px,9vw,34px)}
  .veya-auth__shell--embedded [data-auth-state="profile"] .veya-auth__grid{grid-template-columns:1fr}
  .veya-auth__wordmark{margin-bottom:26px}
  .veya-auth__shell--embedded.veya-auth__shell--recovery .veya-auth__panel{padding:64px 24px 24px}
  .veya-auth__shell--embedded [data-auth-state="provider_error"] h2{font-size:clamp(36px,11vw,42px)}
}
@media(max-width:360px){
  .veya-auth__shell--embedded .veya-auth__panel{padding:58px 18px 18px}
  .veya-auth-modal [data-auth-state] :is(h1,h2):not(.visually-hidden)[tabindex="-1"]:focus-visible::before{inset-inline-start:-8px;width:2px}
  .veya-auth__method-row{min-height:58px;align-items:flex-start;flex-direction:column;justify-content:center;gap:4px;padding:12px 18px;border-radius:22px!important}
  .veya-auth__method-row span:last-child{text-align:left}
  .veya-auth__shell--embedded.veya-auth__shell--recovery .veya-auth__panel{padding:58px 18px 18px}
}
@media(prefers-reduced-motion:reduce){.veya-auth-modal,.veya-auth-modal::backdrop,.veya-auth-modal__close{animation:none!important;transition:none!important;backdrop-filter:none}}
