/* The initial gate must remain closed even before scripts or vendor SDK load. */
#privateBetaApp[hidden], #privateBetaGate[hidden], #privateBetaAccount[hidden],
#betaLegacyOffer[hidden], #betaLoginForm[hidden], #betaInviteActions[hidden], #betaNormalAccess[hidden], .beta-recovery-actions [hidden] { display: none !important; }
#privateBetaApp[inert] { pointer-events: none; }
.beta-gate { min-height: 100svh; display: grid; place-items: center; padding: 28px 18px; background: #f5f0e5; color: #385342; }
.beta-gate-card { width: min(100%, 520px); padding: clamp(24px, 5vw, 42px); border: 1px solid #d8cebb; background: #fffdf7; border-radius: 22px; box-shadow: 0 18px 50px #674b3810; }
.beta-gate h1 { font-family: Georgia, serif; font-size: clamp(29px, 6vw, 42px); line-height: 1.12; margin: 18px 0; }
.beta-gate p, .beta-operation-dialog p { line-height: 1.6; overflow-wrap: anywhere; }
.beta-login-form { display: grid; gap: 16px; margin-top: 24px; }
.beta-login-form label { display: grid; gap: 8px; color: #674b38; font-size: 14px; }
.beta-login-form input { width: 100%; min-height: 46px; padding: 12px; border: 1px solid #bdbaab; border-radius: 10px; background: #fff; color: #385342; box-sizing: border-box; font: inherit; }
.beta-help { font-size: 12px; color: #706e60; margin: 10px 0; }
.beta-setup-link { display: inline-block; margin-top: 16px; font-size: 13px; color: #385342; text-underline-offset: 4px; }
.beta-recovery-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.beta-account-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px max(16px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid #d8cebb; background: #e9eee5; color: #385342; }
.beta-account-bar > div:first-child { display: grid; gap: 3px; min-width: 0; }
.beta-account-bar b { font-size: 10px; letter-spacing: .13em; }
#betaAccountEmail { font-size: 13px; overflow-wrap: anywhere; }
#betaSaveStatus { font-size: 11px; color: #52634d; }
.beta-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.beta-account-actions button { padding: 9px 12px; border: 1px solid #aab5a2; border-radius: 8px; background: #fffdf7; color: #385342; font: inherit; font-size: 12px; cursor: pointer; }
.beta-account-actions button:disabled, .beta-operation-dialog button:disabled { opacity: .55; cursor: default; }
.beta-legacy-offer { margin: 18px auto 0; max-width: 1280px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff9eb; border: 1px solid #c5a66f; border-radius: 12px; color: #674b38; }
.beta-legacy-offer > div { display: grid; gap: 5px; }
.beta-legacy-offer small { font-size: 12px; }
.beta-operation-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100svh - 36px); padding: 24px; box-sizing: border-box; overflow: auto; border: 1px solid #d8cebb; border-radius: 16px; background: #fffdf7; color: #385342; }
.beta-operation-dialog::backdrop { background: #21332b88; }
.beta-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.beta-dialog-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; }
.beta-dialog-heading button { border: 0; background: none; color: #385342; font-size: 26px; cursor: pointer; }
.beta-consent { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.5; margin: 22px 0; }
.beta-consent input { flex: 0 0 auto; margin-top: 4px; accent-color: #385342; }
.beta-danger { background: #8c4234; color: #fffdf7; }
.beta-legacy-preview { padding-left: 22px; font-size: 13px; line-height: 1.8; max-height: 230px; overflow: auto; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .beta-account-bar { align-items: stretch; padding: 12px 16px; }
  .beta-account-actions { width: 100%; }
  .beta-account-actions button { flex: 1 1 auto; }
  .beta-legacy-offer { margin: 12px; flex-direction: column; align-items: stretch; }
  .beta-operation-dialog { padding: 22px 18px; }
}
