#googleProfileDialog {
  color-scheme: dark;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #344860;
  border-radius: 20px;
  background: #111c2a;
  color: #f4f7fc;
}
#googleProfileDialog::backdrop { background: #060a12c9; }
#googleProfileForm.dialog-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(16px, 5vw, 26px);
  border: 0;
  background: transparent;
}
#googleProfileForm .dialog-head { margin: 0; align-items: start; }
#googleProfileForm .eyebrow { color: #ffd426; }
#googleProfileForm h3 { margin: 4px 0 0; }
#googleProfileForm p { margin: 0; }
#googleProfileForm label { display: grid; gap: 6px; min-width: 0; }
#googleProfileForm select,
#googleProfileForm input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  font-size: 16px;
  background: #0b1420;
  color: #f4f7fc;
  border: 1px solid #344860;
  border-radius: 10px;
  padding: 9px 12px;
}
#googleProfileForm .terms-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  line-height: 1.4;
}
#googleProfileForm .terms-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #ffd426; }
#googleProfileForm .btn-primary { min-height: 46px; background: #ffd426; color: #101419; }
#googleProfileError:empty { display: none; }

@media (max-width: 760px) {
  #authView #signupForm #signupBirthDate,
  #googleProfileForm #googleProfileBirthDate {
    display: block;
    box-sizing: border-box;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
  }
  #signupBirthDate::-webkit-date-and-time-value,
  #googleProfileBirthDate::-webkit-date-and-time-value {
    min-inline-size: 0;
    text-align: start;
  }
  #authView.auth-shell:has(#signupForm.active):not(.hidden) {
    display: block !important;
    min-height: 100dvh !important;
    height: auto !important;
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
  }
  #authView.auth-shell:has(#signupForm.active) > .auth-brand { display: none !important; }
  #authView.auth-shell > .auth-card.signup-mode {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 560px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 16px !important;
    box-sizing: border-box;
    overflow: visible !important;
  }
  #authView #signupForm .signup-fields,
  #authView #signupForm .signup-plan-cards { grid-template-columns: minmax(0, 1fr) !important; }
  #authView #signupForm input:not([type="checkbox"]):not([type="radio"]),
  #authView #signupForm select { min-width: 0; max-width: 100%; font-size: 16px !important; }
  #authView #signupForm .signup-plan-card { min-width: 0; overflow-wrap: anywhere; }
}
