minor CSS refactor
extract directory-specific CSS
make tests marginally more robust