/* Only the flat-lay input form owns native scrolling. The bundled scrollbar
   resets its container's scrollTop on every scroll event, moving focused or
   scrolled-to controls behind the upload/reference fields. Keep the original
   editor dimensions, footer, result panel and all other routes unchanged. */
:is(.page__workspace_ai-image_flat-lay, .page__workspace_ai-image_func_flat-lay) .task-manager-inner-container > .task-panel-content:has(.schema-field-wrapper-form) {
  overflow-x: hidden;
  overflow-y: auto;
}

:is(.page__workspace_ai-image_flat-lay, .page__workspace_ai-image_func_flat-lay) .task-manager-inner-container > .task-panel-content:has(.schema-field-wrapper-form) > .scrollable-content {
  height: auto;
  overflow: visible !important;
}

:is(.page__workspace_ai-image_flat-lay, .page__workspace_ai-image_func_flat-lay) .task-manager-inner-container > .task-panel-content:has(.schema-field-wrapper-form) > .scrollable-content > .scroll-content {
  transform: none !important;
}

:is(.page__workspace_ai-image_flat-lay, .page__workspace_ai-image_func_flat-lay) .task-manager-inner-container > .task-panel-content:has(.schema-field-wrapper-form) > .scrollable-content > .scroll-content > .scrollable-container {
  height: auto;
}

/* Replaced by the input form's native scrollbar, not an interactive control. */
:is(.page__workspace_ai-image_flat-lay, .page__workspace_ai-image_func_flat-lay) .task-manager-inner-container > .task-panel-content:has(.schema-field-wrapper-form) > .scrollable-content > .scrollbar-track {
  display: none !important;
}
