Maximum run on drain?
I don't think there is ever a "maximum" you can have on a horizontal run.  Of course everything needs to have the required slope and you may not have enough vertical space to get it.  The required slope depends on the size of the pipe.

IPC table 704.1 shows that a pipe with an ID of 2.5" or less needs 1/4" per foot.  While a pipe that is 3" to 6" only needs 1/8" per foot.

In your case, with 2.5" or smaller pipe and a developed length of 35 feet you need a total drop of 8 3/4 inches (or put another way, the pipe must start 8 3/4 inches above where you will connect to the stack).  For 3 to 6 inch pipe you just need 4.375" of drop.