/* Email/password member access: paper-and-ink additions, loaded after the shared platform styles. */
.mbAuthTabs[hidden],
.mbAuthPane[hidden],
.mbRecoveryCard[hidden],
.mbEmailCodeCard[hidden],
.mbEmailRegistration[hidden],
.mbLegacy[hidden],
.mbSecurityForm[hidden] { display: none !important; }
.mbGate {
  max-width: 760px;
  margin: 26px 0 0;
  padding: 34px;
}
.mbGate > h2 { margin-top: 10px; }
.mbGate > p { max-width: 680px; }
.mbEmailAuth {
  max-width: 760px;
  margin: 0 0 24px;
  padding: 27px 29px 5px;
  min-width: 0;
}
.mbEmailAuth h2 { margin: 9px 0 9px; }
.mbEmailIntro { max-width: 650px; color: #796c5a; font-size: 12px; line-height: 1.85; }
.mbEmailRegistration { max-width: 760px; margin: 0 0 24px; padding: 0 29px 25px; min-width: 0; }
.mbEmailDivider { display: flex; align-items: center; gap: 12px; margin: 5px 0 23px; color: #6e3028; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.mbEmailDivider::before,
.mbEmailDivider::after { content: ''; height: 1px; flex: 1 1 auto; background: #c9b99c; }
.mbEmailRegistration h2 { margin: 9px 0; color: #6e3028; }
.mbEmailRegistration > .mbEmailIntro { max-width: 650px; }
.mbEmailRegisterForm { max-width: 620px; padding-top: 6px; }
.mbEmailRegisterForm .cxField { margin: 15px 0; color: #665b4c; font-size: 16px; line-height: 1.65; }
.mbEmailRegisterForm .cxField input { width: 100%; min-width: 0; min-height: 44px; background: #fbf6eb; border-color: #bdb098; border-radius: 0; color: #35434b; font-size: 16px; }
.mbEmailAddressRow { display: flex; align-items: end; gap: 10px; min-width: 0; }
.mbEmailAddressField { flex: 1 1 auto; min-width: 0; }
.mbEmailStartButton { flex: 0 0 auto; min-height: 44px; margin: 0 0 15px; white-space: nowrap; }
.mbEmailStartButton:disabled { cursor: not-allowed; opacity: .58; }
.mbEmailConsent { align-items: flex-start; max-width: 620px; margin: 17px 0; color: #665b4c; font-size: 14px; line-height: 1.75; }
.mbEmailConfigStatus { max-width: 620px; min-height: 1.5em; margin: 12px 0 0 !important; }
.mbEmailCodeCard { max-width: 620px; margin-top: 20px; padding: 20px; border: 1px solid #9c764f; background: #f2e8d7; color: #443e38; }
.mbEmailCodeInner h3 { margin: 0 0 10px; color: #55382d; font-size: 20px; }
.mbEmailCodeInner .cxField { margin: 13px 0 3px; }
.mbEmailCodeInner .cxField input { letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }
.mbEmailCodeHelp { display: block; color: #665b4c; font-size: 13px; line-height: 1.65; }
.mbEmailCodeActions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.mbEmailCodeActions button { min-height: 44px; }
.mbEmailCodeInner [data-email-code-status] { min-height: 1.6em; margin: 10px 0 0; color: #8e3e32; font-size: 15px; line-height: 1.6; }
.mbEmailPrivacy { margin: 16px 0; border-top: 1px solid #d9ccba; border-bottom: 1px solid #d9ccba; }
.mbEmailPrivacy > summary { padding: 13px 0; color: #654636; font-size: 14px; cursor: pointer; }
.mbEmailPrivacy > p { color: #796c5a; font-size: 12px; line-height: 1.85; }
.mbEmailPrivacy > .legalCollectionNotice { margin: 0 0 14px; }
.mbEmailPrivacy[open] > summary { font-weight: 600; }
.mbAuthTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  border-bottom: 1px solid #c9b99c;
}
.mbAuthTabs button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #88755a;
  cursor: pointer;
  font-size: 13px;
}
.mbAuthTabs button:hover,
.mbAuthTabs button.is-active,
.mbAuthTabs button[aria-selected="true"] {
  border-bottom-color: #8e3e32;
  color: #6e3028;
}
.mbAuthPanes { min-width: 0; }
.mbAuthPane {
  max-width: 560px;
  padding: 22px 0 5px;
}
.mbAuthPane h3 { margin: 0 0 15px; font-size: 23px; }
.mbAuthPane .cxField { margin: 15px 0; color: #665b4c; }
.mbAuthPane .cxField input,
.mbSecurityForm .cxField input {
  width: 100%;
  min-width: 0;
  background: #fbf6eb;
  border-color: #bdb098;
  border-radius: 0;
  color: #35434b;
}
.mbAuthPane .goldButton,
.mbSecurityForm .goldButton { margin-top: 7px; }
.mbAuthHint {
  margin: 0 0 12px !important;
  color: #796c5a !important;
  font-size: 12px !important;
  line-height: 1.85 !important;
}
.mbLegacy {
  max-width: 680px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #c9b99c;
}
.mbLegacy summary {
  min-height: 44px;
  padding: 11px 0;
  color: #7b3a30;
  cursor: pointer;
  font-size: 13px;
}
.mbLegacy p { font-size: 12px; line-height: 1.9; }
.mbLegacy .outlineButton { margin-top: 10px; }
.mbRecoveryCard {
  max-width: 680px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #9c764f;
  background: #eee2cc;
  color: #443e38;
  box-shadow: inset 0 0 0 5px #eee2cc, inset 0 0 0 6px #c5a77766;
}
.mbRecoveryInner h2 { margin: 10px 0 12px; color: #463d35; }
.mbRecoveryInner p { color: #685f55; font-size: 13px; line-height: 1.9; }
.mbRecoveryCode {
  display: block;
  margin: 19px 0;
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px dashed #8d6a49;
  background: #fbf6eb;
  color: #55382d;
  font: 600 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  user-select: all;
}
.mbRecoveryActions { display: flex; flex-wrap: wrap; gap: 10px; }
.mbRecoveryActions button { font-size: 12px; }
.mbRecoveryWarning {
  margin: 18px 0 0 !important;
  padding-top: 13px;
  border-top: 1px solid #bca47e;
  color: #7b3a30 !important;
  font-size: 12px !important;
}
.mbSecurity {
  margin: 12px 0 30px;
  padding: 29px;
}
.mbSecurity > h2 { margin-bottom: 10px; }
.mbSecurity > p { max-width: 780px; }
.mbSecurity > p strong { color: #705438; font-weight: 600; }
.mbSecurityForm { max-width: 620px; margin-top: 14px; }
.mbSecurityForm .cxField { color: #665b4c; }
.mbSecurityForm .cxCheck { color: #665b4c; }
.mbSecurity .mbRecoveryCard { margin-top: 20px; }
@media (max-width: 699px) {
  .mbGate { margin-top: 14px; padding: 26px 21px; }
  .mbEmailAuth { margin-top: 5px; padding: 24px 20px 2px; }
  .mbEmailRegistration { margin-top: 5px; padding: 0 20px 22px; }
  .mbEmailDivider { gap: 8px; margin: 4px 0 19px; font-size: 11px; letter-spacing: .04em; }
  .mbEmailAddressRow { display: block; }
  .mbEmailStartButton { width: 100%; margin: -2px 0 15px; }
  .mbEmailConsent { font-size: 13px; }
  .mbEmailCodeCard { padding: 18px 16px; }
  .mbAuthTabs { gap: 2px; margin-top: 22px; }
  .mbAuthTabs button { flex: 1 1 30%; padding: 9px 7px; font-size: 12px; }
  .mbAuthPane { padding-top: 20px; }
  .mbAuthPane .goldButton,
  .mbSecurityForm .goldButton { width: 100%; }
  .mbLegacy { margin-top: 23px; }
  .mbRecoveryCard { padding: 22px 18px; }
  .mbRecoveryActions { display: block; }
  .mbRecoveryActions button { width: 100%; margin-top: 9px; }
  .mbSecurity { margin: 5px 0 24px; padding: 24px 20px; }
}

@media (max-width: 399px) {
  .mbEmailAuth { padding-inline: 14px; }
  .mbEmailRegistration,
  .mbPasswordAuth { padding-inline: 14px; }
  .mbEmailDivider { font-size: 10px; letter-spacing: 0; }
  .mbEmailCodeActions { display: block; }
  .mbEmailCodeActions button { width: 100%; margin-top: 9px; }
}

/* Primary passwordless phone flow. Keep the bilingual form readable at 320px. */
.fcPhoneAuth {
  max-width: 760px;
  margin: 0 0 24px;
  padding: 27px 29px;
  min-width: 0;
}
.fcPhoneAuth h2 { margin: 9px 0 9px; }
.fcPhoneIntro,
.fcPhoneHint { max-width: 650px; color: #796c5a; font-size: 12px; line-height: 1.85; }
.fcPhoneTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 21px 0 0;
  border-bottom: 1px solid #c9b99c;
}
.fcPhoneTabs button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #88755a;
  cursor: pointer;
  font-size: 13px;
}
.fcPhoneTabs button:hover,
.fcPhoneTabs button.is-active,
.fcPhoneTabs button[aria-selected="true"] { border-bottom-color: #8e3e32; color: #6e3028; }
.fcPhoneForms,
.fcPhoneForm { min-width: 0; }
.fcPhoneForm { max-width: 590px; padding-top: 19px; }
.fcPhoneForm[hidden],
.fcPhoneCodeStep[hidden] { display: none !important; }
.fcPhoneForm h3 { margin: 0 0 10px; font-size: 22px; }
.fcPhoneForm .cxField { margin: 14px 0; color: #665b4c; }
.fcPhoneForm .cxField input {
  width: 100%;
  min-width: 0;
  background: #fbf6eb;
  border-color: #bdb098;
  border-radius: 0;
  color: #35434b;
}
.fcPhoneForm .cxCheck {
  align-items: flex-start;
  max-width: 650px;
  margin: 16px 0;
  color: #665b4c;
  font-size: 12px;
  line-height: 1.75;
}
.fcPhoneStartActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fcPhoneCodeStep { margin-top: 17px; padding-top: 17px; border-top: 1px solid #c9b99c; }
.fcPhoneCodeActions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fcPhoneCodeActions button { min-height: 44px; }
.fcPhoneForm .mbStatus { min-height: 1.5em; margin-top: 10px; }
.mbPhoneLinkedStatus {
  max-width: 760px;
  margin: 0 0 18px;
  padding: 12px 15px;
  border-left: 3px solid #9c764f;
  background: #f2e8d7;
  color: #665b4c;
  font-size: 12px;
  line-height: 1.7;
}
.mbPhoneLinkedStatus strong { color: #6e3028; letter-spacing: .04em; }
.mbLegacyAuth {
  max-width: 760px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid #c9b99c;
}
.mbLegacyAuth > summary {
  min-height: 44px;
  padding: 11px 0;
  color: #7b3a30;
  cursor: pointer;
  font-size: 13px;
}
.mbLegacyAuth > p { max-width: 680px; font-size: 12px; line-height: 1.9; }
.mbLegacyAuth .mbAuthTabs { margin-top: 17px; }
.mbLegacyAuth .mbLegacy { margin-top: 20px; }

@media (max-width: 699px) {
  .fcPhoneAuth { margin-top: 5px; padding: 24px 20px; }
  .fcPhoneTabs { gap: 2px; margin-top: 17px; }
  .fcPhoneTabs button { flex: 1 1 45%; min-width: 0; padding: 9px 7px; font-size: 12px; }
  .fcPhoneForm { padding-top: 17px; }
  .fcPhoneForm .goldButton,
  .fcPhoneCodeActions button,
  .fcPhoneStartActions button { width: 100%; }
  .fcPhoneCodeActions,
  .fcPhoneStartActions { display: block; }
  .fcPhoneCodeActions button,
  .fcPhoneStartActions button { margin-top: 9px; }
  .mbLegacyAuth { margin-top: 22px; }
}

/* Keep required information available without burying phone registration. */
.fcPhonePrivacy { margin: 16px 0; border-top: 1px solid #d9ccba; border-bottom: 1px solid #d9ccba; }
.fcPhonePrivacy > summary { padding: 13px 0; color: #654636; font-size: 14px; cursor: pointer; }
.fcPhonePrivacy > .legalCollectionNotice { margin: 0 0 14px; }
.fcPhonePrivacy[open] > summary { font-weight: 600; }

.fcPhoneForm .fcPhoneFormat { display: block; margin-top: 7px; color: #716451; font-size: 12px; line-height: 1.75; letter-spacing: normal; }
.fcPhoneExample { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fcPhoneAuth h2 { text-wrap: balance; line-break: strict; }

#platformView:has([data-phone-auth]) h1 { text-wrap: balance; line-break: strict; }

/* Official Google Identity Services button: the host stays empty until GIS renders its own native control. */
.mbGoogleAuth {
  max-width: 760px;
  margin: 0 0 24px;
  padding: 27px 29px 25px;
  border: 1px solid #c9b99c;
  background: #fbf6eb;
  box-shadow: 0 10px 24px rgba(86, 51, 39, .06);
}
.mbGoogleAuth h2 { margin: 9px 0; color: #6e3028; }
.mbGoogleIntro { max-width: 650px; color: #796c5a; font-size: 12px; line-height: 1.85; }
.mbGoogleConsent {
  align-items: flex-start;
  max-width: 680px;
  margin: 18px 0 14px;
  color: #665b4c;
  font-size: 12px;
  line-height: 1.75;
}
.mbGoogleButtonWrap {
  min-height: 44px;
  margin: 8px 0 10px;
  overflow-x: auto;
}
.mbGoogleButtonWrap[hidden] { display: none !important; }
.mbGoogleActions { display: flex; flex-wrap: wrap; gap: 9px; }
.mbGoogleActions button[hidden] { display: none !important; }
.mbGoogleAuth .mbStatus { min-height: 1.5em; margin: 10px 0 0; }
.mbGoogleConnected {
  max-width: 760px;
  margin: 20px 0 0;
  padding: 12px 15px;
  border-left: 3px solid #8e3e32;
  background: #f2e8d7;
  color: #6e3028;
  font-size: 12px;
  line-height: 1.7;
}
.mbPasswordAuth {
  max-width: 760px;
  margin: 0 0 24px;
  padding: 0 29px 5px;
  border-top: 1px solid #c9b99c;
}
.mbPasswordAuth > summary { min-height: 44px; padding: 14px 0; color: #7b3a30; cursor: pointer; font-size: 13px; }
.mbPasswordAuth > p { max-width: 680px; color: #796c5a; font-size: 12px; line-height: 1.85; }
.mbPasswordAuth .mbAuthTabs { margin-top: 18px; }
.mbSecurity .mbGoogleAuth { margin-top: 25px; padding: 22px 24px; }
.mbSecurity .mbGoogleAuth h2 { font-size: 20px; }
.mbSecurity .mbPasswordSetupForm small,
.mbSecurityForm .cxField small { display: block; margin-top: 5px; color: #796c5a; font-size: 12px; line-height: 1.6; }

@media (max-width: 699px) {
  .mbGoogleAuth { margin-top: 5px; padding: 24px 20px 22px; }
  .mbGoogleButtonWrap { max-width: 100%; }
  .mbGoogleActions { display: block; }
  .mbGoogleActions button { width: 100%; margin-top: 8px; }
  .mbPasswordAuth { padding: 0 20px 2px; }
  .mbSecurity .mbGoogleAuth { padding: 21px 18px; }
}
