"use client"; import { cn } from "@/lib/utils"; type TimelineRailProps = { /** Distance from track top to rail start */ offsetTop: number; /** Rail length (desktop: first→last node; stacked: first card top→last card bottom) */ trackHeight: number; /** Progress fill within the rail (0 → trackHeight) */ progressHeight: number; className?: string; }; export function TimelineRail({ offsetTop, trackHeight, progressHeight, className, }: TimelineRailProps) { const clampedTrack = Math.max(0, trackHeight); const clampedProgress = Math.min(Math.max(0, progressHeight), clampedTrack); return (