/* Strategy positions: bounded cards, left aligned; scroll horizontally before becoming unreadable. */
body :is(.holding-grid:not(.manager-board-view), #rotation-leader-grid) {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  scrollbar-width: thin;
}
body :is(.holding-grid:not(.manager-board-view), #rotation-leader-grid)
  > :is(.stock-card, .holding-card, .rotation-leader) {
  flex: 1 0 160px;
  width: auto;
  min-width: min(100%, 160px);
  max-width: min(100%, 320px);
  box-sizing: border-box;
}

/* Short momentum may hold many names: scroll instead of shrinking gauges and labels. */
body #holding-grid[data-strategy-variant="short"] > :is(.stock-card, .holding-card) {
  flex: 0 0 240px;
  width: 240px;
  min-width: min(100%, 240px);
  max-width: min(100%, 280px);
}
