/* Render all header columns before scripts or account state arrive. */
.llwrap .nav .nav-inner,.llwrap.ai-mode .nav .nav-inner{grid-template-columns:auto auto 1fr 144px 36px;gap:18px}
.llwrap .nav .nav-inner>.nav-account-button[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.llwrap .nav .nav-inner>.btn{grid-column:4}
.llwrap .nav .nav-inner>.brand img{width:108px!important;height:24px!important}
@media(max-width:640px){.llwrap .nav .nav-inner,.llwrap.ai-mode .nav .nav-inner{grid-template-columns:auto 1fr 32px;gap:10px}.llwrap .nav .nav-inner>.brand img{width:90px!important;height:20px!important}.llwrap .nav .nav-inner>.nav-account-button{grid-column:3}}

/* Do not reserve an empty account slot beside the mobile switcher. */
@media(max-width:640px){.llwrap .nav .nav-inner:not(:has(>.nav-account-button:not([hidden]))),.llwrap.ai-mode .nav .nav-inner:not(:has(>.nav-account-button:not([hidden]))){grid-template-columns:auto 1fr}.llwrap .nav .nav-inner>.nav-account-button[hidden]{display:none!important}.llwrap .nav .experience-switch{justify-self:end;margin-right:0}}

/* Signed-out desktop navigation ends at the content edge. */
@media(min-width:641px){.llwrap .nav .nav-inner:not(:has(>.nav-account-button:not([hidden]))),.llwrap.ai-mode .nav .nav-inner:not(:has(>.nav-account-button:not([hidden]))){grid-template-columns:auto auto 1fr 144px}.llwrap .nav .nav-inner>.nav-account-button[hidden]{display:none!important}}
