/* Modern workspace header: one theme-aware row, no background artwork or gradient.
   Classic HUD is unaffected. Logo, support, status and search retain their original handlers. */
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) {
 --paper:inherit;--steel-400:inherit;--steel-200:inherit;--graphite-900:inherit;--graphite-800:inherit;--graphite-700:inherit;
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;
 position:relative!important;isolation:auto!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;
 height:auto!important;min-height:64px!important;padding:8px 18px!important;margin:0!important;
 background:var(--graphite-900)!important;background-image:none!important;border-bottom:1px solid var(--graphite-700)!important;
}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused)::before{content:none!important;display:none!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-identity{display:flex!important;position:relative!important;align-items:center!important;gap:9px!important;flex:1 1 0;min-width:0!important;width:auto!important;z-index:auto!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-identity #mLogoRefresh{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;mix-blend-mode:normal!important;z-index:auto!important;padding:4px!important;border-radius:8px!important;border:1px solid var(--graphite-700)!important;box-shadow:none!important;background:var(--graphite-800)!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-identity #mLogoRefresh[data-has-company-logo="true"]{background:#fff!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mLogoRefresh[data-has-company-logo="true"] .m-head-logo{display:block!important;visibility:visible!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;border:0!important;background:transparent!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mLogoRefresh[data-has-company-logo="false"] .m-head-logo{display:none!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-identity>div{display:block!important;position:static!important;inset:auto!important;flex:1 1 auto;min-width:0!important;max-width:100%!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) :is(.m-head-title,.compact-company-title){font-size:15px!important;line-height:1.25!important;font-weight:750;color:var(--paper)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:none!important;max-width:100%!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-title[hidden]{display:none!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-sub{font-size:11px!important;line-height:1.25!important;margin-top:2px!important;color:var(--steel-400)!important;opacity:1!important;text-shadow:none!important;max-width:100%!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .mythd-header-brand{position:static!important;inset:auto!important;order:2;flex:0 0 108px;width:108px!important;height:28px!important;max-width:108px!important;object-fit:contain;pointer-events:none;z-index:auto}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .mythd-header-brand[hidden]{display:none!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-top-actions{position:relative!important;inset:auto!important;order:3;flex:0 0 auto;display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:none!important;margin:0!important;gap:0!important;z-index:3}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus{appearance:none;display:inline-flex!important;align-items:center;justify-content:center;min-height:36px!important;padding:0 4px!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;font:600 11px/1.3 var(--font-body,system-ui)!important;color:var(--paper)!important;cursor:pointer;white-space:nowrap}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus::before{content:"";width:8px;height:8px;border-radius:50%;background:#d39a38;flex:none;margin-right:5px}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus[data-system-state="ready"]::before{background:#29a66b}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus:is([data-system-state="offline"],[data-system-state="error"])::before{background:#d35b50}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mythdSupportControl{position:relative!important;inset:auto!important;order:4;flex:0 0 auto;display:block!important;width:auto!important;height:40px!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mythdSupportButton{background:var(--graphite-800)!important;color:var(--paper)!important;border-color:var(--graphite-700)!important;box-shadow:none!important;min-height:40px!important;height:40px!important;max-height:40px!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .compact-status-detail{position:absolute;top:calc(100% + 6px);right:0;width:240px;max-width:calc(100vw - 24px);padding:12px;box-sizing:border-box;background:var(--graphite-900);color:var(--paper);border:1px solid var(--graphite-700);border-radius:9px;box-shadow:0 6px 22px #0003;font-size:12px;line-height:1.5;z-index:25;white-space:normal}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .compact-status-detail[hidden]{display:none!important}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus:focus-visible{outline:2px solid var(--amber-500);outline-offset:2px}
@media(min-width:1101px){
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #workspaceSearchShell{position:relative!important;inset:auto!important;order:1;flex:1.5 1 320px;min-width:0;width:auto!important;max-width:620px;margin:0!important;padding:0!important;background:transparent!important;border:0!important;z-index:4}
}
@media(max-width:680px){
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused){min-height:60px!important;padding:8px 10px!important;gap:8px!important}
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-identity{gap:8px!important}
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .m-head-sub{font-size:10px!important}
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .mythd-header-brand{content:url('/theme-banners/mythd-compact-mark.svg');flex:0 0 26px;width:26px!important;max-width:26px!important;height:26px!important}
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus{width:36px!important;min-width:36px!important;min-height:40px!important;font-size:0!important;padding:0!important}
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus::before{margin:0;width:9px;height:9px}
 html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mythdSupportButton{width:40px!important;min-width:40px!important;padding:0!important}
}
@media print{#mythdModernApp .compact-status-detail{display:none!important}}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus{font-size:0!important}
@media(min-width:681px){html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) #mSystemStatus::after{content:attr(data-compact-label);font-size:11px}}
html body #mythdModernApp .m-main > header.m-topbar.mythd-compact-header:not(#mythdCompactUnused) .compact-company-title[hidden]{display:none!important}