Walk the boundary
Place a gate on a 3D run, step posts down a slope, and watch leftover bays. Orange posts sit too close to the tree. Drag a gate post to slide the opening.
One bay is only 0.48 m, short against a 2.40 m panel. Move the gate or change post spacing so the last opening is not a sliver.
At least one post sits on the tree. Slide the gate or change spacing so footings miss the trunk.