Root becomes flex column (header fixed, layout flex:1); scroll container uses flex:1 + minHeight:0 instead of fixed height:70vh so portrait/phone screens get full remaining height instead of a short squished panel.