Text this: Beam optics design and optimization of a compact focusing system for future colliders