Talks into the middle of the night. Frantic last-minute negotiations. An economy sinking ever deeper into despair. A painful round of budget cuts and tax rises, which will have to be pushed through Parliament while riot police control the protesters outside.