De novo design of modular protein hydrogels with programmable intra- and extracellular viscoelasticity