#cloud-auth [hidden]{display:none!important}
#bbAuthModes{display:flex;gap:4px;padding:4px;margin:0 0 12px;border:1px solid #c4d4bf;border-radius:14px;background:#edf3e7}
html body #cloud-auth #bbAuthModes button{flex:1;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#20583d;font:inherit;font-weight:750;box-shadow:none}
html body #cloud-auth #bbAuthModes button[aria-pressed="true"]{background:#205e43;color:#fff}
#bbAuthIntro{margin:0 0 12px;line-height:1.5;color:#315744}
#cloud-auth[data-bb-auth-mode="sign-up"] #cloud-signup,#cloud-auth[data-bb-auth-mode="sign-in"] #cloud-login{background:#205e43!important;color:#fff!important;min-height:48px}
html body #cloud-auth #bbAuthApple{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:0;padding:10px 16px;border:1px solid #000;border-radius:10px;background:#000!important;color:#fff!important;font:600 16px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:none}
#bbAuthApple svg{display:block;width:22px;height:22px}
#bbAuthAppleDivider{text-align:center;color:#536a5b;font-size:14px;margin:14px 0}
#bbAuthAppleStatus{font-size:14px;line-height:1.5;color:#315744}
html body #cloud-auth #bbAuthAppleRetry{min-height:44px;font-size:16px;font-weight:600}
#bbAuthStates{padding-top:12px;color:#214b36}
#bbAuthStates h3{margin:0 0 10px;font-size:23px;color:#194b36}
#bbAuthStates p{line-height:1.5;overflow-wrap:anywhere}
#bbAuthStates input{box-sizing:border-box;width:100%;min-height:48px;margin:8px 0;padding:12px;border:1px solid #bfcfbf;border-radius:12px;background:#fff;font-size:16px;color:#183d2c}
#bbAuthStates button,#bbAuthForgot,#bbAuthCancelSwitch{min-height:44px;margin-top:8px;padding:10px 14px;border:1px solid #c4d4bf;border-radius:12px;background:#f0f5e9;color:#20583d;font:inherit;font-weight:750}
#bbAuthSavePassword,#bbAuthReset{background:#205e43!important;color:#fff!important}
#cloud-auth button:disabled{opacity:.6;cursor:wait}
#bbAuthFeedback:empty{display:none}
#bbAuthToast{position:fixed;z-index:2147482000;left:16px;right:16px;top:calc(20px + env(safe-area-inset-top));max-width:520px;margin:auto;padding:16px 20px;border-radius:16px;background:#1f5e43;color:#fff;box-shadow:0 8px 28px #173c3730;text-align:center}

html body #cloud-card[data-bb-account-polish] #cloud-auth [hidden],html body #bbNewOnboarding #cloud-auth [hidden]{display:none!important}

/* WKWebView can keep the focused email visible while the longer auth form
   scrolls its submit action below the keyboard. Keep that SAME visible action
   inside the existing onboarding scroller; retain this layout until the
   keyboard class clears, so input blur cannot move a button during its tap. */
@media(max-width:560px){
 #bbNewOnboarding.bbob-keyboard .bbob-main{scroll-padding-bottom:80px}
 #bbNewOnboarding.bbob-keyboard #cloud-auth{position:relative;display:flex;flex-direction:column}
 #bbNewOnboarding.bbob-keyboard #cloud-auth :is(#cloud-login,#cloud-signup):not([hidden]){
  position:sticky;bottom:0;z-index:4;flex-shrink:0;align-self:stretch;
  width:100%;min-height:48px;margin:0;background:#205e43;color:#fff;
  box-shadow:0 -8px 0 8px #fff,0 -12px 18px #fff;
 }
 #bbNewOnboarding.bbob-keyboard #cloud-auth input{scroll-margin-block:16px 80px}
}
