pub fn format_duration(seconds: f64) -> String
Format a duration in seconds as a human-readable string.
Examples: “45s”, “2m 15s”, “1h 3m 0s”