
/* Static bundle fallback: the legacy entry does not toggle forms-active classes. */
html:has(.form-editor),
body:has(.form-editor) {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.workspace-shell:has(.form-editor) {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}

.main-content:has(.form-editor) {
  display: block !important;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

.main-content:has(.form-editor) > .form-editor {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: auto !important;
}

.main-content:has(.form-editor) + .mobile-nav {
  display: none !important;
}
