The top 12 in qualifying go to the Time Attack. Time attack session determines grid position for the top 12 even though faster times are ran in Q sessions. FIM way
I believe it's like a Superpole. Top times from FP1/FP2 get you in to Time Attack. The Time Attack is what sets the grid for the first few rows.