Rebased onto upstream/develop (6cfa7d52) and re-measured. Upstream has since introduced
MAX_LEN_ROOT_BITS, so the change is now a one-macro bump plus ENOUGH_LENS, with a second
commit adding an adaptive gate.
Apple M5, 4 P-cores + 6 E-cores, 32 GB, macOS 26.5.2, Apple clang 21.0.0.
Release build, BUILD_SHARED_LIBS=OFF, WITH_MAINTAINER_WARNINGS=ON.