I20260130-1800
This commit addresses too small or wrongly placed highlight brackets especisally on windows. Because of rounding errors the bracket selection highlight is often inconsistent. Making use of residual values plus simplifying the logic provides better rectangle values and the highlight is more consistent across all zooms.