/* UGCHost Global Header V12 — balanced centered desktop composition.
   V11 keeps the Creator ID database search. V12 only corrects horizontal
   composition and common-row alignment after the left-shift experiment. */

@media (min-width:1181px){
  /* Center both header levels inside the same wide shell. */
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-shell{
    width:min(1760px,calc(100% - 48px))!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Treat logo + Creator ID + actions as one centered composition rather than
     three unrelated areas stretched across the viewport. */
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-top-inner{
    min-height:82px!important;
    grid-template-columns:auto minmax(230px,286px) auto!important;
    justify-content:center!important;
    align-items:center!important;
    column-gap:22px!important;
    row-gap:0!important;
  }
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-brand{
    justify-self:start!important;
    align-self:center!important;
    margin:0!important;
  }
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-creator-id-search-v11{
    justify-self:start!important;
    align-self:center!important;
    margin:0!important;
  }
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-utilities{
    justify-self:start!important;
    align-self:center!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:11px!important;
    margin:0!important;
  }
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-utilities>*{
    align-self:center!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }

  /* One visual control line across search, language, login and CTA buttons. */
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-creator-id-search-v11 input,
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-language-global-v4.ugh-language-menu-host-v5,
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-language-global-v4.ugh-language-menu-host-v5>.ugh-language-trigger-v5,
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-utility.ugh-account,
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-signup-v39,
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-primary-cta,
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-utilities>.ugh-secondary-cta{
    height:36px!important;
    min-height:36px!important;
  }
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-language-current-v5{
    line-height:36px!important;
  }
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-creator-id-search-v11 button{
    width:28px!important;
    height:28px!important;
    right:4px!important;
  }

  /* Center the entire second-level navigation to the same axis as row one. */
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-nav-inner{
    justify-content:center!important;
    align-items:center!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-menu{
    justify-content:center!important;
    align-items:center!important;
  }
}

/* Keep the existing compact V11 behaviour untouched on laptops/tablets/mobile. */
@media (max-width:1180px){
  #ugcGlobalHeader.ugh-two-row-v10 .ugh-shell{
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
