/* APD 241 — PC authenticated header: Modo anfitrión + avatar + menu. */
@media (min-width:1180px){
  html body.logged-in #apd5-header .apd5-header-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    height:auto!important;
  }

  /* Translation/currency remains available elsewhere, but not in the
     authenticated desktop header, matching the requested compact layout. */
  html body.logged-in #apd5-header .apd5-header-actions > .apd41-region-trigger{
    display:none!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd5-host-trigger{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0 12px!important;
    border:0!important;
    border-radius:22px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#222!important;
    font-size:14px!important;
    line-height:20px!important;
    font-weight:600!important;
    white-space:nowrap!important;
    text-decoration:none!important;
    transform:none!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd5-host-trigger:hover,
  html body.logged-in #apd5-header .apd5-header-actions > .apd5-host-trigger:focus-visible{
    background:#f7f7f7!important;
    color:#222!important;
    box-shadow:none!important;
    transform:none!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster{
    box-sizing:border-box!important;
    width:98px!important;
    min-width:98px!important;
    max-width:98px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    outline:0!important;
    transform:none!important;
    cursor:pointer!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster:hover,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster:focus,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster:focus-visible,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster[aria-expanded="true"]{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    transform:none!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-account-avatar{
    box-sizing:border-box!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    flex:0 0 44px!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
    object-fit:cover!important;
    object-position:center!important;
    box-shadow:none!important;
    transform:none!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle{
    box-sizing:border-box!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    flex:0 0 44px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
    background:#f5f5f5!important;
    color:#222!important;
    box-shadow:none!important;
    transform:none!important;
    transition:background-color .15s ease!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster:hover .apd25-menu-circle,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster:focus-visible .apd25-menu-circle,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster[aria-expanded="true"] .apd25-menu-circle{
    background:#ededed!important;
    box-shadow:none!important;
    transform:none!important;
  }

  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle > .apd5-icon,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle > svg{
    position:static!important;
    width:18px!important;
    min-width:18px!important;
    max-width:18px!important;
    height:18px!important;
    min-height:18px!important;
    max-height:18px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    transform:none!important;
  }
}

/* APD 242 — keep the correct first-paint authenticated desktop header stable
   after all late APD visual layers finish initializing. */
@media (min-width:1180px){
  html body.logged-in #apd5-header .apd5-header-actions{
    min-width:0!important;
    flex-wrap:nowrap!important;
  }
  html body.logged-in #apd5-header .apd5-header-actions > .apd5-host-trigger,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster,
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster > *{
    visibility:visible!important;
    opacity:1!important;
  }
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster{
    flex:0 0 98px!important;
  }
  html body.logged-in #apd5-header .apd5-header-actions > .apd25-account-cluster .apd25-menu-circle{
    background:#f5f5f5!important;
  }
}
