/* PATCH-212 — one desktop action grid, including the profile button.
   Loaded by MarketplaceHeader before first paint on every shared-header page.
   Deliberately does not alter logo/search widths, dropdowns or mobile rules. */
@media (min-width:1024px){
  html body .z18-header .z18-actions{
    align-items:center!important;
    align-self:center!important;
    flex-wrap:nowrap!important;
    gap:2px!important;
  }

  /* Scope through the header to beat older href-specific Favorites widths.
     Reserve the same border on links and the native profile button. */
  html body .z18-header .z18-actions > .z18-sell-action,
  html body .z18-header .z18-actions > .z18-pro-action,
  html body .z18-header .z18-actions > .z18-icon-action,
  html body .z18-header .z18-actions > .z18-profile-toggle{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    flex:0 0 72px!important;
    height:66px!important;
    min-height:66px!important;
    margin:0!important;
    padding:4px!important;
    border-width:1px!important;
    border-style:solid!important;
    border-color:transparent!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:36px 16px!important;
    grid-auto-flow:row!important;
    align-content:center!important;
    justify-content:stretch!important;
    justify-items:center!important;
    align-items:center!important;
    gap:4px 0!important;
  }

  /* Equal outer icon dimensions: Pro's border and avatar loading cannot
     change either the icon center or the caption position. */
  html body .z18-header .z18-actions > .z18-sell-action > .z18-sell-plus,
  html body .z18-header .z18-actions > .z18-pro-action > span,
  html body .z18-header .z18-actions > .z18-icon-action > span,
  html body .z18-header .z18-actions > .z18-profile-toggle > .z18-avatar{
    grid-area:1 / 1!important;
    box-sizing:border-box!important;
    width:32px!important;
    min-width:32px!important;
    max-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    display:grid!important;
    place-items:center!important;
    align-self:center!important;
    justify-self:center!important;
    margin:0!important;
    padding:0!important;
    line-height:1!important;
  }

  html body .z18-header .z18-actions > .z18-icon-action > span svg{
    display:block!important;
    width:24px!important;
    height:24px!important;
    margin:0!important;
  }

  html body .z18-header .z18-actions > .z18-sell-action > small,
  html body .z18-header .z18-actions > .z18-pro-action > small,
  html body .z18-header .z18-actions > .z18-icon-action > small,
  html body .z18-header .z18-actions > .z18-profile-toggle > .z18-profile-label{
    grid-area:2 / 1!important;
    display:block!important;
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    font-family:Onest,system-ui,sans-serif!important;
    font-size:12px!important;
    font-weight:500!important;
    line-height:16px!important;
    letter-spacing:0!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    align-self:center!important;
    justify-self:center!important;
  }

  /* The fallback letter and loaded avatar share a single fixed icon cell. */
  html body .z18-header .z18-actions > .z18-profile-toggle > .z18-avatar{
    position:relative!important;
    overflow:hidden!important;
  }
  html body .z18-header .z18-actions > .z18-profile-toggle > .z18-avatar > img,
  html body .z18-header .z18-actions > .z18-profile-toggle > .z18-avatar > .z18-avatar-fallback{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
  }
  html body .z18-header .z18-actions > .z18-profile-toggle > .z18-avatar > img{
    display:block!important;
    object-fit:cover!important;
  }

  html body .z18-header .z18-actions > .z18-profile-toggle:hover,
  html body .z18-header .z18-actions > .z18-profile-toggle:focus-visible,
  html body .z18-header .z18-actions > .z18-profile-toggle.is-menu-open{
    border-color:#e9edf5!important;
  }
}
