/* Shared responsive company logo: contain the full artwork inside a bounded banner slot. */
html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){
  min-height:228px!important;
  background-color:var(--mythd-brand-banner-bg)!important;
  background-image:url('/theme-banners/mythd-brand-transparent.svg'),linear-gradient(90deg,#fff 0%,#fff 28%,#b7b7b7 34%,#383838 40%,#000 46%)!important;
  background-size:min(49%,560px) auto,100% 100%!important;
  background-position:right 7% top 42px,center!important;
  background-repeat:no-repeat!important;
  padding:0 24px 60px!important;
  isolation:isolate;
}
html[data-mythd-theme-banner="standard"] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){
  background-image:url('/theme-banners/mythd-standard.svg'),linear-gradient(90deg,#fff 0%,#fff 23%,#f7f9f8 62%)!important;
}
html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{
  position:absolute!important;left:16px!important;top:8px!important;
  width:min(26%,220px)!important;height:140px!important;max-width:calc(100% - 32px)!important;box-sizing:border-box!important;min-width:0!important;min-height:0!important;
  overflow:hidden!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  transform:none!important;mix-blend-mode:multiply;
}
html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp #mLogoRefresh[data-has-company-logo="true"] .m-head-logo{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;flex:0 1 auto!important;box-sizing:border-box!important;
  object-fit:contain!important;object-position:center!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;
}
html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]) .m-head-identity>div{display:none!important}
html body #mythdModernApp #mLogoRefresh[data-has-company-logo="true"]:focus-visible{outline:2px solid #08d88c!important;outline-offset:2px}
@media(max-width:680px){
  html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){
    min-height:158px!important;
    padding:0 12px 8px!important;
    background-image:url('/theme-banners/mythd-brand-transparent.svg'),linear-gradient(90deg,#fff 0%,#fff 38%,#aaa 43%,#282828 48%,#000 53%)!important;
    background-size:51% auto,100% 100%!important;
    background-position:right 4px top 58px,center!important;
  }
  html[data-mythd-theme-banner="standard"] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){
    background-image:url('/theme-banners/mythd-standard.svg'),linear-gradient(90deg,#fff 0%,#fff 38%,#f7f9f8 70%)!important;
  }
  html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{
    width:min(40%,176px)!important;height:140px!important;left:8px!important;top:8px!important;
  }
  html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp #mLogoRefresh[data-has-company-logo="true"] .m-head-logo{width:100%!important;height:100%!important}
}
/* Desktop no longer reserves a lower row for the profile avatar. */
@media(min-width:681px){
 html body #mythdModernApp .m-topbar{padding:16px 28px 36px!important;min-height:116px!important}
 html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar{min-height:132px!important}
 html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){
  min-height:168px!important;padding:0 24px 24px!important;background-position:right 7% top 24px,center!important;
 }
 html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{width:min(26%,220px)!important;height:140px!important}
 html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp #mLogoRefresh[data-has-company-logo="true"] .m-head-logo{width:100%!important;height:100%!important}
}
@media(min-width:681px) and (max-width:1100px){
 html:is([data-mythd-theme-banner="standard"],[data-mythd-theme-banner="standardDark"]) body #mythdModernApp .m-topbar:not(:has(#mLogoRefresh[data-has-company-logo="true"])){min-height:170px!important}
}
/* Company identity is independent of theme artwork and brand visibility. */
html[data-mythd-header-branding] body #mythdModernApp .m-topbar,
html[data-mythd-header-branding] body .hud-header{position:relative!important;isolation:isolate}
html[data-mythd-header-branding] body #mythdModernApp .m-topbar .mythd-header-brand,
html[data-mythd-header-branding] body .hud-header .mythd-header-brand{
 position:absolute;right:7%;top:24px;width:min(49%,560px);height:100px;max-width:100%;object-fit:contain;object-position:center;z-index:1;pointer-events:none;user-select:none;
}
html[data-mythd-header-branding] .mythd-header-brand[hidden]{display:none!important}
/* Default artwork no longer doubles as a logo; the separate image remains visible over personal banners. */
html:is([data-mythd-header-branding="standard"],[data-mythd-header-branding="standardDark"]) body #mythdModernApp .m-topbar{
 background-image:none!important;background-color:var(--graphite-950)!important;
}
html:is([data-mythd-header-branding="standard"],[data-mythd-header-branding="standardDark"]) body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){
 background-image:none!important;background-color:var(--graphite-950)!important;
}
html[data-mythd-header-branding][data-mythd-theme-banner="personal"] body #mythdModernApp .m-topbar{
 background-image:linear-gradient(90deg,rgba(10,16,26,.4),rgba(10,16,26,.15)),var(--mythd-banner-image)!important;background-size:cover!important;background-position:center!important;
}
html[data-mythd-header-branding] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){
 min-height:168px!important;padding:0 24px 24px!important;
}
html[data-mythd-header-branding] body #mythdModernApp .m-topbar .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{
 position:absolute!important;left:16px!important;top:8px!important;transform:none!important;
 width:min(26%,220px)!important;height:140px!important;max-width:calc(100% - 32px)!important;min-width:0!important;min-height:0!important;
 box-sizing:border-box!important;overflow:hidden!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;mix-blend-mode:normal!important;
}
html[data-mythd-header-branding] body #mythdModernApp #mLogoRefresh[data-has-company-logo="true"] .m-head-logo{
 visibility:visible!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;
 flex:0 1 auto!important;box-sizing:border-box!important;object-fit:contain!important;object-position:center!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;
}
html[data-mythd-header-branding] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]) .m-head-identity>div{display:none!important}
@media(max-width:680px){
 html[data-mythd-header-branding] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){min-height:158px!important;padding:0 12px 8px!important}
 html[data-mythd-header-branding] body #mythdModernApp .m-topbar .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{width:min(40%,176px)!important;height:140px!important;left:8px!important;top:8px!important}
 html[data-mythd-header-branding] body #mythdModernApp .m-topbar .mythd-header-brand,
 html[data-mythd-header-branding] body .hud-header .mythd-header-brand{right:4px;top:58px;width:51%;height:70px}
}
/* Mobile logo row: compact, aligned artwork without the desktop white fade. */
@media(max-width:680px){
 html[data-mythd-header-branding] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){min-height:128px!important;padding:0 12px 8px!important}
 html:is([data-mythd-header-branding="standard"],[data-mythd-header-branding="standardDark"]) body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]){background-image:none!important}
 html[data-mythd-header-branding] body #mythdModernApp .m-topbar .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{
  left:12px!important;top:12px!important;width:min(32%,124px)!important;height:96px!important;
  padding:6px!important;border:1px solid #ffffff38!important;border-radius:10px!important;background:#fff!important;
 }
 html[data-mythd-header-branding] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"]) .mythd-header-brand{right:56px;top:34px;width:min(40%,180px);height:48px}
}
/* White-left seasonal fade: preserve the actual selected theme or personal banner beneath it. */
html[data-mythd-header-branding] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"])::before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:linear-gradient(90deg,#fff 0%,#fff 19%,rgba(255,255,255,.94) 25%,rgba(255,255,255,.70) 34%,rgba(255,255,255,.20) 49%,transparent 64%);
}
/* Keep company logo anchored to the header, not to the identity flex item's origin. */
html[data-mythd-header-branding] body #mythdModernApp .m-topbar .m-head-identity{position:static!important;z-index:auto!important}
html[data-mythd-header-branding] body #mythdModernApp .m-topbar .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{position:absolute!important;z-index:4!important;isolation:isolate!important}
html[data-mythd-header-branding] body #mythdModernApp .m-topbar .m-top-actions{position:relative;z-index:2}
@media(max-width:680px){
 html[data-mythd-header-branding] body #mythdModernApp .m-topbar:has(#mLogoRefresh[data-has-company-logo="true"])::before{background:linear-gradient(90deg,#fff 0%,#fff 21%,rgba(255,255,255,.75) 32%,transparent 58%)}
}