Bottom and top tread can be sloped in both directions. The limitations are at 45° or given by the stair geometry.
To fit to every situation, the height of bottom and top tread can be changed.

In this example you can see how a transparent ceiling offers a good control view.

Often the top tread has another length, therefore you can simply edit it. Using a fixed length you can make a landing at the top.