export function bulkPreviewLine(labels: string[], total: number, maxShown = 5): string {
  if (labels.length === 0) return '';
  const shown = labels.slice(0, maxShown);
  const remaining = Math.max(0, total - shown.length);
  if (remaining <= 0) return shown.join(', ');
  return `${shown.join(', ')}, and ${remaining} others`;
}
