Prep the pan and oven: Heat oven to 350°F (175°C). Line the pan with parchment, leaving overhang for easy lifting.
Mix the crust/crumble: In a bowl, whisk flour, oats, brown sugar, baking powder, salt, and cinnamon.
Stir in melted butter and vanilla until clumpy.
Form the base: Press about 2/3 of the mixture into the pan in an even layer. Reserve the rest for the topping. Bake the base for 10 minutes.
Make the apple filling: Toss sliced apples with sugar, lemon juice, cornstarch, cinnamon, and nutmeg.
Make sure every slice is coated.
Assemble: Spread apples over the warm base in an even layer. Crumble the remaining oat mixture on top, squeezing some into bigger clumps.
Bake: Bake 30–35 minutes, until top is golden and apples are tender and bubbling at the edges.
Cool completely: Let the pan cool on a rack at least 1 hour. Lift out using the parchment before glazing and slicing.
Make the glaze: In a small saucepan, simmer maple syrup and butter for 2–3 minutes, stirring.
Off heat, whisk in vanilla and a pinch of flaky salt, then powdered sugar until pourable but opaque.
Finish and serve: Drizzle glaze over cooled bars. Sprinkle a touch more flaky salt if you like. Slice into squares.