I'm deploying to a topology that requires using 3rdpartygadget to publish gadgets, and although the addresses for script resources can be relative, the CSS appears to require fully-qualified URLs using
__UP_externalServerHost__/3rdpartygadget/files...