/* Public UI is enlarged by actual lengths, keeping browser geometry unchanged. */
html.public-ui-expanded { --public-ui-scale:1; }

/* Google owns the 304 × 78 widget; keep its frame intact and scale its wrapper. */
@media screen {
    html.public-ui-expanded .ac-captcha {
        height:calc(78px * var(--public-ui-scale,1) * var(--ac-captcha-scale,1)) !important;
    }
    html.public-ui-expanded .ac-captcha > .g-recaptcha {
        width:304px !important;
        min-height:78px !important;
        transform:translateX(-50%) scale(calc(var(--public-ui-scale,1) * var(--ac-captcha-scale,1))) !important;
        transform-origin:top center;
    }
}
