/* Keep the board scrollbar in reach; each desktop stage owns its card scroll. */
.amt-pipeline .pipeline-board {
  height: clamp(320px, calc(100dvh - 510px), 900px);
  min-height: 0;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: auto;
  scrollbar-width: auto;
}
.amt-pipeline .pipeline-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.amt-pipeline .pipeline-column > header { flex: 0 0 auto; }
.amt-pipeline .pipeline-column-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  align-content: start;
  scrollbar-gutter: stable;
}
/* Stacked stages share the application's page scroll on smaller screens. */
@media (max-width: 1000px) {
  .amt-pipeline .pipeline-board { height: auto; overflow: visible; }
  .amt-pipeline .pipeline-column { overflow: visible; }
  .amt-pipeline .pipeline-column-body { overflow: visible; scrollbar-gutter: auto; }
}
