/*
 * Desktop image workbench footer alignment.
 * Move the complete parameter/action group together so the primary action
 * and the sidebar's "all tasks" card share the recent-task rail's bottom edge.
 */
/* A narrow desktop window retains the same footer geometry; mobile is scoped below. */
@media all {
  html:not([data-mobile-workbench="true"])
    body.feature-focus-mode.workstation-feature-mode[data-active-feature]:not(.video-workspace-mode):not([data-active-feature^="video-"])
    :is(.workspace, #task-panel.task-panel, #task-panel .settings-column) {
    overflow: visible !important;
  }

  html:not([data-mobile-workbench="true"])
    body.feature-focus-mode.workstation-feature-mode[data-active-feature]:not(.video-workspace-mode):not([data-active-feature^="video-"])
    #task-panel
    .settings-bottom-area {
    transform: translateY(23px) !important;
  }

  /* The free-generate model menu opens upward over the prompt surface. Keep
   * its footer stacking context above the prompt so every option remains
   * visible and clickable. */
  html:not([data-mobile-workbench="true"])
    body.feature-focus-mode.workstation-feature-mode[data-active-feature="free-generate"]
    #task-panel
    .settings-column
    > .settings-bottom-area {
    z-index: 5 !important;
  }

  /* The detail-page footer starts from a route-specific 6px lower baseline. */
  html:not([data-mobile-workbench="true"])
    body.feature-focus-mode.workstation-feature-mode[data-active-feature="detail-page"][data-active-feature="detail-page"]:not(.video-workspace-mode):not([data-active-feature^="video-"])
    #task-panel
    .settings-bottom-area {
    transform: translateY(34px) !important;
  }

  /* Keep the all-tasks utility on the same viewport baseline in image and
   * video modes. Its footer track already owns the final bottom spacing, so
   * image routes must not add a second vertical offset. */
  html:not([data-mobile-workbench="true"])
    body:not(.video-workspace-mode)
    #works-card.works-card {
    transform: none !important;
  }
}
