Empty string is falsy so the stacking guard was skipping the phantom collapse when the first segment was empty. Remove the truthy check so both empty and transition-only segments are collapsed correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>