Structural mimicry confers robustness in the cyanobacterial circadian clock