Try
<element id="ApplicationBackColour" bg="255,0,0" />
Then you will see where the red lines are drawn.
You can adjust their widths by changing values for MainPanelMargin.Left, Right, Top, Bottom and MainPanelSeparatorMargin
Another way is using the same color of background for bg of ApplicationBackColour.
---
BTW did you see the two posts I added?