/*
 * ALLIN workbench short-viewport layout fix.
 *
 * CSS grid treats the sticky footer's min-content height as a single 21px
 * row when vertical space is tight, which clips the generate controls.
 * Reserve a real footer row and let the template browser consume the
 * remaining height. Keep the panel scrollable only as a final fallback.
 */
@media (max-height: 960px) {
  .qp-app-shell[data-auth="user"][data-workspace-view="studio"]
    .qp-prompt-panel--text {
    grid-template-rows:
      minmax(0, 1fr)
      clamp(120px, 22vh, 170px)
      auto
      minmax(61px, auto) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}
