By ransacking government buildings in their fervent opposition to leftist Luiz Inacio Lula da Silva, Brazil's January 8 rioters may have strengthened his hand, at least temporarily, analysts say.
Many even among the backers of defeated far-right ex-president Jair Bolsonaro were shocked by the pillaging of national heritage buildings and artefacts.
Immediately after the storming of the presidency, Congress and Supreme Court, Lula gathered leaders of the three institutions -- many of them from the political right --- for a unanimous condemnation of the events.
Presenting a united front, they affirmed publicly that democracy would not be allowed to falter just three decades after the fall of Brazil's military dictatorship.
"The events (of January 8) had the opposite effect" of what was intended, said Mayra Goulart, professor of political science at the Federal University of Rio de Janeiro (UFRJ).
"Lula will no doubt emerge stronger. These assaults have created a climate of national unity for the defense of democracy," she told AFP.
The riots happened exactly one week after Lula's inauguration went off with much pomp and ceremony, but in the absence of Bolsonaro who left the country two days earlier and dodged the traditional duty of handing over the presidential sash.
Thousands forced their way into the seats of power, smashing windows and furniture, destroying priceless works of art, and leaving behind graffiti messages calling for a military coup.
The military did not rise to the call.
More than 2,000 alleged rioters were detained, and the authorities are tracking those suspected of having masterminded and financed the revolt that shocked Brazil and the world.
An investigation has been opened into a possible role played by Bolsonaro, whose justice minister was arrested Saturday for possible collusion with the vandals.
Condemnation from abroad was unanimous.
Washington, Moscow, Beijing, the European Union, Paris and Latin American capitals expressed their full support for the new president of Brazil -- a country that was isolated from the global stage under Bolsonaro.
"The international uproar will reinforce the position of Lula, who will be perceived as an important leader who can contribute to strengthening multilateral forums," said Goulart.
- 'Balanced attitude' -
Leandro Gabiati of consulting firm Dominium said Lula's image has been "strengthened" by his perceived firm but fair handling of the mop-up operation.
Bolsonaro's in turn, has been harmed.
Lula "was challenged and he did quite well," said Gabiati, citing "a balanced attitude that somehow restored normalcy" without an air of retribution.
Lula’s government has been firm: "fascists" found guilty of involvement in the riots will face sentences of up to 30 years for "terrorism."
As the net also tightened around suspected organizers of the uprising, the government announced a reshuffling of the police and security forces.
Security at the presidential palace, it announced, will be cleansed of any remaining Bolsonaro sympathizers left over from the previous administration.
Lula will have to "take exemplary sanctions in order to avoid a repeat of this type of demonstrations," said Gabiati.
And even as he needs to deal urgently with pressing problems such as poverty and hunger, Lula will be forced to "expend energy in the investigations... of the putschists," added Goulart.
Meanwhile, government work continued this week, with ceremonies held in official buildings still littered with shattered glass and broken furniture to swear in Lula's new ministers.
- 'A huge shock' -
Lula will face a difficult task in trying to heal a country marked by deep divisions worsened by a vitriolic election campaign filled with disinformation and fear-mongering.
A leftist icon for many, he won the vote by razor-thin margin of 60 million votes to 58 million for Bolsonaro.
Lula's most radical opponents -- fueled by anti-"communist" rhetoric and mistrust of the election outcome -- are unlikely to give up.
"I think what happened on January 8 was a huge shock. And I think many of the people who voted for Bolsonaro did not expect or welcome what happened," said Michael Shifter, a senior fellow at the Inter-American Dialogue think tank.
Even among those who supported the riots, many were left disappointed by the failure of the military to intervene on their behalf, the analyst told AFP.
"I think what we're seeing is (the anti-Lula movement) a little bit fractured for the moment and I think the country has understandably, predictably rallied around Lula for the moment," said Shifter.
"But I think that at the same time this movement is still around and ... we probably could expect some sort of more low intensity kind of upheavals and protests and some violence," he added.
"I don't think that is going to disappear."