body.beta-locked .app-shell,
body.beta-locked .help-fab,
body.beta-locked .help-widget { visibility: hidden; }
body.beta-active .beta-billing-panel,
body.beta-active #workspace-manage-subscription { display: none !important; }

.beta-gate[hidden], .beta-sync-status[hidden] { display: none !important; }
.beta-gate {
  position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center;
  overflow: auto; padding: 24px; background: #eff3ed;
  color: #172a22; font-family: 'DM Sans', sans-serif;
}
.beta-gate-card {
  width: min(100%, 500px); padding: clamp(28px, 5vw, 46px);
  border: 1px solid #dce5db; border-radius: 28px; background: #fff;
  box-shadow: 0 24px 80px rgba(25, 53, 40, .1);
}
.beta-mark { display: flex; align-items: center; gap: 9px; margin-bottom: 36px; color: #2b8b6b; font-size: 28px; font-weight: 800; letter-spacing: -.06em; }
.beta-mark span { color: #173f32; }
.beta-gate h1 { margin: 9px 0 10px; max-width: 390px; font: 800 clamp(30px, 5vw, 39px)/1.1 Manrope, sans-serif; letter-spacing: -.05em; }
.beta-gate p { font-size: 15px; line-height: 1.55; }
.beta-gate form { display: grid; gap: 15px; margin-top: 25px; }
.beta-gate form[hidden] { display: none; }
.beta-gate label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
.beta-gate input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #cbd9ce; border-radius: 12px; background: #fbfdfb; color: #172a22; font: inherit; }
.beta-gate input:focus-visible { outline: 3px solid #9ed4bf; outline-offset: 2px; }
.beta-gate .button { min-height: 46px; justify-content: center; }
.beta-gate .text-link { justify-self: start; padding: 4px 0; border: 0; background: none; color: #23684f; font: inherit; cursor: pointer; }
.beta-gate .text-link:hover { text-decoration: underline; }
.beta-choices { display: grid; gap: 10px; margin: 22px 0 0; }
.beta-choices button { padding: 13px 15px; border: 1px solid #cbd9ce; border-radius: 12px; background: #f8fbf8; color: #173f32; font: 700 14px 'DM Sans', sans-serif; text-align: left; cursor: pointer; }
.beta-choices button:hover, .beta-choices button:focus-visible { background: #e7f3eb; outline-color: #9ed4bf; }
.beta-gate .beta-error { margin: 15px 0 0; padding: 11px 13px; border-radius: 10px; background: #fff0ec; color: #9a322b; }
.beta-gate-foot { margin: 25px 0 0; color: #62756a; font-size: 13px !important; }
.beta-sync-status { position: fixed; z-index: 3000; bottom: 88px; right: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 11px 15px; border-radius: 12px; background: #173f32; color: #fff; box-shadow: 0 10px 40px #142c2233; font: 600 13px 'DM Sans', sans-serif; }
.beta-sync-status[data-state="error"] { background: #9a322b; }
.beta-sync-status[data-state="saving"] { background: #436277; }

@media (prefers-reduced-motion: no-preference) {
  .beta-gate-card { animation: betaEnter .35s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes betaEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
