panel: Rendering and margin fixes