pub fn extract_layer(path: &str) -> String
Extract the layer (top-level directory) from a file path. Returns the first significant directory component.