May I ask a dumb question?
With the Capt in his seat everyone knows who's commanding and that he had some training to be a commander.
When the Capt is resting who is in command in the cockpit?
I don't mean who is PF, nor who is more senior, but rather is the command of flight deck activity formally handed over to one of the pilots?