/* Enhance the existing SMF sign-in popup only; never embed signup or another page. */
.popup_container:has(.popup_content [data-main-google]) .popup_window{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box}
.popup_content .login{width:100%;max-width:100%;margin:0 auto;box-sizing:border-box}
.popup_content .login>.cat_bar{display:none}.popup_content .roundframe{margin:0;padding:16px;box-sizing:border-box}
.popup_content .main-google-auth{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:100%;margin:0 auto;padding:12px 0;text-align:center;box-sizing:border-box}
.popup_content [data-google-button]{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px}
.popup_content [data-google-status]{text-align:center;max-width:100%;line-height:1.5;margin:8px 0}
.popup_content .main-google-divider{text-align:center;margin:12px 0;width:100%}
.popup_content .main-google-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.popup_content .login input[type=text],.popup_content .login input[type=password]{box-sizing:border-box;max-width:100%}
@media(max-width:420px){.popup_content .roundframe{padding:12px}.popup_content .login dt{width:42%}.popup_content .login dd{width:56%}}

/* Raise the whole native backdrop/window above Scout, not just its child form. */
.popup_container:has(.popup_heading .main_icons.login),
.popup_container:has(.popup_content [data-main-google]),
.popup_container:has(.popup_content form.login){position:fixed;inset:0;z-index:2147483647!important;isolation:isolate}
