Python's builtin round — HALF-TO-EVEN, unlike JS Math.round (half-up).
smart_resize divides integer dims by factor 32, which lands on exact .5
for heights like 80 (2.5): the reference rounds DOWN to the even 2 where
Math.round gives 3 — a different grid and silently different tokens.
Python's builtin round — HALF-TO-EVEN, unlike JS Math.round (half-up). smart_resize divides integer dims by factor 32, which lands on exact .5 for heights like 80 (2.5): the reference rounds DOWN to the even 2 where Math.round gives 3 — a different grid and silently different tokens.