pub fn secs_to_compact(secs: u64) -> u32
Convert Unix seconds timestamp to compact u32 (seconds since 2020). Preserves 0 as sentinel for “never set”.