Habitat extremity and conservation management stabilise endangered calcareous fens in a changing world.