I’ve finally got my streetcar track down
The track is set on foam, with a second foam layer cut to allow the track (including ties) to be inset. Then a layer of black closed-cell foam was cut so that the foam covered the ties outside the rails. Finally, a piece of foam was cut to fill the space between the tracks. It looks pretty good, I think