This Raspberry Pi 5 enclosure has gone through dozens of iterations and I think it now has pretty much perfect fit. I primarily designed it to be CNC-machine friendly, but it can also easily be 3D printed.
This was really hard work to get absolutely perfect, so I hope it works well for you, too.
If you are in the EU and want to support my work, you can also get the CNC machined version from my shop.
The author marked this model as their own original creation.