Where do the spacers on 12-speed Shimano cassettes go?

Shimano 12-speed Dura-Ace, Ultegra, 105 and GRX cassettes come with two different spacers between the cassette sprockets.

If you've taken your cassette apart and have mixed up the spacers, getting them back on in the correct order is crucial.

Which spacer goes where?

You can usually tell which spacer goes where by looking at the cassette sprockets. The sprockets with a larger ridge interface with the thin spacers, and the sprockets (or cogs) with next to no ridge go with the thicker spacers.

If you prefer a schematic,