/* Biometric management must remain inside any phone viewport, including landscape. */
dialog.passkey-dialog,dialog.gwp-biometric-modal{
 box-sizing:border-box!important;position:fixed!important;inset:0!important;height:fit-content!important;
 width:min(420px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
 max-height:calc(100dvh - 32px)!important;margin:auto!important;
 padding:clamp(16px,4vw,26px)!important;border-radius:22px!important;
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
 overflow-wrap:anywhere;word-break:normal;white-space:normal;
}
dialog.passkey-dialog *,dialog.gwp-biometric-modal *{box-sizing:border-box;max-width:100%;min-width:0}
dialog.passkey-dialog h2,dialog.gwp-biometric-modal h2{font-size:clamp(21px,5vw,29px)!important;line-height:1.2;overflow-wrap:anywhere}
dialog.passkey-dialog p,dialog.gwp-biometric-modal p{line-height:1.5;overflow-wrap:anywhere}
dialog.passkey-dialog .passkey-row,dialog.gwp-biometric-modal .passkey-row{
 display:flex!important;flex-wrap:wrap!important;align-items:center;justify-content:space-between;
 gap:10px;width:100%;min-width:0
}
dialog.passkey-dialog .passkey-row span,dialog.gwp-biometric-modal .passkey-row span{flex:1 1 150px;min-width:0;overflow-wrap:anywhere}
dialog.passkey-dialog .passkey-row button,dialog.gwp-biometric-modal .passkey-row button{flex:0 0 auto;max-width:100%}
dialog.passkey-dialog .passkey-actions,dialog.gwp-biometric-modal .passkey-actions{display:flex;flex-wrap:wrap;gap:10px}
dialog.passkey-dialog .passkey-actions button,dialog.gwp-biometric-modal .passkey-actions button{white-space:normal;min-height:44px}
body[data-view="app"] .gws-acct{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0;max-width:100%}
body[data-view="app"] .gws-acct [data-manage-biometrics]{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0;white-space:normal!important;overflow-wrap:anywhere;text-align:center;line-height:1.3}
@media(max-width:600px){
 body[data-view="app"] .gws-acct [data-manage-biometrics]{width:100%;margin-top:8px!important}
 dialog.passkey-dialog,dialog.gwp-biometric-modal{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
}

/* One alignment contract for web, PWA and the native web view. */
.gwp-auth-actions .gwp-auth-row{align-items:stretch!important}
#auth .gwp-auth-row #auth-go,
#auth .gwp-auth-row #auth-passkey{
 box-sizing:border-box!important;
 height:52px!important;min-height:52px!important;
 margin:0!important;align-self:stretch!important;
 display:inline-flex;align-items:center;justify-content:center;
}
/* After-sign-in offer: a card at the bottom of the screen; the app behind stays usable (iPhone fix, 15 Nov 2026). */
dialog.passkey-dialog.passkey-sheet{position:fixed!important;inset:auto 0 calc(12px + env(safe-area-inset-bottom,0px)) 0!important;margin:0 auto!important;z-index:2147483000;width:min(440px,calc(100vw - 24px))!important;max-height:min(70dvh,560px)!important;overflow:auto;box-shadow:0 18px 50px rgba(0,0,0,.45);touch-action:manipulation}
dialog.passkey-dialog button{touch-action:manipulation}
