/* Desktop workbench: keep the page chrome in the viewport and scroll rows inside the table. */
@media (min-width: 1050px) and (min-height: 650px) {
  html:has(.capture-results),
  body:has(.capture-results) {
    block-size: 100%;
    overflow: hidden;
  }

  .app-shell:has(.capture-results) {
    block-size: 100dvh;
    min-block-size: 0;
    overflow: hidden;
  }

  .app-shell:has(.capture-results) .main-shell,
  .app-shell:has(.capture-results) .page-content,
  .app-shell:has(.capture-results) .direct-workspace,
  .app-shell:has(.capture-results) .capture-results,
  .app-shell:has(.capture-results) .capture-results-list,
  .app-shell:has(.capture-results) .record-table-frame {
    min-block-size: 0;
  }

  .app-shell:has(.capture-results) .main-shell {
    block-size: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .app-shell:has(.capture-results) .page-content,
  .app-shell:has(.capture-results) .direct-workspace,
  .app-shell:has(.capture-results) .capture-results {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }

  .app-shell:has(.capture-results) .page-content {
    padding-bottom: var(--section-gap);
  }

  .app-shell:has(.capture-results) .capture-results {
    min-height: 0;
  }

  .app-shell:has(.capture-results) .capture-generation-dashboard,
  .app-shell:has(.capture-results) .capture-results-list > .record-filters,
  .app-shell:has(.capture-results) .record-table-frame > .pagination,
  .app-shell:has(.capture-results) .record-table-frame > .pagination-feedback {
    flex: 0 0 auto;
  }

  .app-shell:has(.capture-results) .capture-results-list {
    block-size: auto;
    flex: 1 1 0;
  }

  .app-shell:has(.capture-results) .record-table-scroll {
    min-block-size: 0;
    overscroll-behavior: contain;
  }
}
