Attached is a one-line riser diagram. Could anyone check if the wiring sizes make sense? Please ignore other criteria if not absolutely necessary to determine this. My main concern is: two different sources, 30A from EM Gen and 60A from building panel going to ATS which is connected to a 100A panel. Do ATS equipped with lungs that can take different sizes of wires? (in this case 100A,30A,60A). OR should I size all to 100A (#3AWG) to avoid this concern. Will it be contrary to any code?