Difficult problem regarding the board at the top and the fact that the "triangle's" panel extends out at its upper part. Try with a regular planed strip, type 21x37 mm, which won't be as challenging.
Of course, you take the same panel you've used on the wall. Split off the groove and keep the tongue. Nailed to the wall, it becomes like a shadow molding, but without the tacky profile.