I simplified the i output of the List Item component to have paths numbered in an easier way. replaced your text panel on the P input of the Tree Item component with a slider.
Instead of trying to intersect panels and your surface, I checked which area centroids of the panels are inside your perimeter.
I know, it probably was not an easy task to understand my script, i apologize for this! Also, this solution seems a lot more convenient and practical, thank you so much! i will have a play around with it.
I couldn’t really make sense of your script so just took the geometry that was giving you trouble and built from there. Rather than using a grid, if you array some lines to give that grid, the surface split component works quite nicely.