Conflicts:
crates/engine/src/import/job.rs
Ported: crates/engine/src/import/job.rs by hand. It keeps the PR's browsed-replaced block and its 'a file's embedded XMP' comment. prepare_files's library sort and browsed promotion moved into sort_by_library/promote_browsed to stay under clippy's cognitive-complexity limit (unchanged behaviour). Also folds in main's gate fixes: rustfmt of import/job.rs (left unformatted by #1995) and the Windows-safe path joins in tests/folders.rs.