@media screen { @layer history-layout {
 html body#dashboardRoot.top-toolbar-shell .shell-topbar .topright {gap:6px!important;flex-basis:280px!important;}
 html body#dashboardRoot.top-toolbar-shell .shell-topbar .topright>span:not(#buildStamp) {display:none!important;}
 html body#dashboardRoot.top-toolbar-shell .shell-topbar #liveClock {order:2!important;flex:1 1 100%!important;font-size:10px!important;line-height:1.3!important;white-space:nowrap!important;text-align:right!important;}
 html body#dashboardRoot.top-toolbar-shell .topbar-more {position:relative!important;display:block!important;}
 html body#dashboardRoot.top-toolbar-shell .topbar-more>summary {display:block!important;list-style:none!important;cursor:pointer!important;padding:4px 8px!important;border:1px solid #FFFFFF!important;border-radius:8px!important;background:#21354F!important;color:#FFFFFF!important;font-size:10px!important;line-height:1.4!important;}
 html body#dashboardRoot.top-toolbar-shell .topbar-more>summary::-webkit-details-marker {display:none;}
 html body#dashboardRoot.top-toolbar-shell .topbar-more-panel {display:none!important;position:absolute!important;right:0!important;top:calc(100% + 6px)!important;width:190px!important;max-width:calc(100vw - 20px)!important;padding:6px!important;background:#21354F!important;border:1px solid #000000!important;border-radius:8px!important;box-shadow:0 5px 14px #0005!important;z-index:1100!important;}
 html body#dashboardRoot.top-toolbar-shell .topbar-more[open]>.topbar-more-panel {display:grid!important;gap:5px!important;}
 html body#dashboardRoot.top-toolbar-shell .topbar-more-panel>button {display:block!important;width:100%!important;min-height:38px!important;text-align:left!important;margin:0!important;white-space:normal!important;}
 html body#dashboardRoot.top-toolbar-shell [data-topbar-diagnostics] {display:flex!important;order:3!important;flex:1 1 100%!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:6px!important;font-size:10px!important;}
 html body#dashboardRoot.top-toolbar-shell [data-topbar-diagnostics][hidden],html body#dashboardRoot.top-toolbar-shell [data-topbar-diagnostics] [hidden] {display:none!important;}
 html body#dashboardRoot.top-toolbar-shell [data-topbar-diagnostics] #buildStamp {font-size:9px!important;}

} }

@media screen { @layer history-layout { html body#dashboardRoot .shell-topbar .shell-breadcrumb {text-transform:uppercase!important;} } }

@media screen { @layer history-layout { html body#dashboardRoot.top-toolbar-shell .topbar-more-panel [data-scenario-shop] button {display:block!important;width:100%!important;min-height:38px!important;text-align:left!important;margin:0!important;white-space:normal!important;} } }

@media screen { @layer history-layout { html body#dashboardRoot.top-toolbar-shell .shell-topbar :is(#recordFinderButton,.topright>[data-view=time-clock],#loginButton) {background:#024DCF!important;color:#FFFFFF!important;border-color:#000000!important;} html body#dashboardRoot.top-toolbar-shell .shell-topbar :is(#recordFinderButton,.topright>[data-view=time-clock],#loginButton):hover {background:#0F67FF!important;color:#FFFFFF!important;} } }

/* Directory & Messages: touch-operated tile beside Finance. */
@media screen { @layer history-layout {
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile {flex:0 0 164px!important;width:164px!important;height:48px!important;position:relative!important;align-self:center!important;}
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile>summary {position:absolute!important;top:50%!important;left:0!important;transform:translateY(-50%)!important;width:100%!important;height:var(--directory-tile-height,76px)!important;min-height:56px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;padding:10px!important;text-align:center!important;white-space:normal!important;font-size:15px!important;line-height:1.25!important;font-weight:700!important;border:0!important;border-left:6px solid #8039A3!important;border-radius:4px!important;background:#C056F5!important;color:#FFFFFF!important;}
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile>summary:hover,html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile[open]>summary {background:#C056F5!important;color:#FFFFFF!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-messages-tile .topbar-more-panel {border-left:3px solid #C056F5!important;box-shadow:inset 3px 0 #8039A3,0 5px 14px #0005!important;top:calc(50% + var(--directory-tile-height,76px)/2 + 6px)!important;z-index:1200!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-messages-tile [data-scenario-shop][hidden] {display:none!important;}
 @media(max-width:700px){
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile {order:3!important;flex:1 1 100%!important;width:100%!important;height:auto!important;min-width:0!important;}
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile>summary {position:static!important;transform:none!important;height:44px!important;min-height:44px!important;font-size:13px!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-messages-tile .topbar-more-panel {top:calc(100% + 6px)!important;right:0!important;}
 }
}}

@media screen and (min-width:1200px) { @layer history-layout {html body#dashboardRoot.top-toolbar-shell .shell-workspaces{flex:0 1 auto!important;}}}

/* Borderless brand-style Directory & Messages plate. */
@media screen { @layer history-layout {
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile>summary,
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile>summary:hover,
 html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile[open]>summary {background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;gap:9px!important;padding:6px 0!important;text-align:left!important;justify-content:flex-start!important;color:#FFFFFF!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-plate-icon {display:block!important;width:32px!important;height:32px!important;min-width:32px!important;flex:0 0 32px!important;color:#FFFFFF!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-plate-copy {display:flex!important;flex-direction:column!important;gap:2px!important;color:#FFFFFF!important;line-height:1.15!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-plate-copy strong {font-size:14px!important;font-weight:800!important;letter-spacing:0!important;white-space:nowrap!important;color:#FFFFFF!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-plate-copy>span {font-size:11px!important;font-weight:600!important;letter-spacing:2px!important;color:#FFFFFF!important;}
 html body#dashboardRoot.top-toolbar-shell .directory-messages-tile>summary:focus-visible {outline:2px solid #FFFFFF!important;outline-offset:2px!important;}
 @media(max-width:700px){html body#dashboardRoot.top-toolbar-shell .directory-plate-icon {width:26px!important;height:26px!important;min-width:26px!important;flex-basis:26px!important;}}
}}

@media screen {@layer history-layout {
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile{display:flex!important;align-items:center!important;align-self:center!important;gap:9px!important;flex:0 0 auto!important;min-height:48px!important;padding:6px 0!important;margin:0 12px 0 0!important;background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#fff!important;cursor:pointer!important;}
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile:focus-visible{outline:2px solid #fff!important;outline-offset:3px!important;}
html body#dashboardRoot.top-toolbar-shell .directory-messages-tile .topbar-more-panel{border:0!important;border-left:0!important;box-shadow:0 5px 14px #0005!important;background:#21354F!important;}
html body#dashboardRoot.top-toolbar-shell .directory-messages-tile .topbar-more-panel::before,html body#dashboardRoot.top-toolbar-shell .directory-messages-tile .topbar-more-panel::after{display:none!important;}
}}

/* Management is the gray office door; workspace spectrum colors stay unchanged. */
@media screen {@layer history-layout {
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile{position:relative!important;padding-bottom:13px!important;}
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile::after{content:''!important;position:absolute!important;left:7px!important;right:7px!important;bottom:3px!important;height:4px!important;background:#808080!important;transition:none!important;}
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile.management-brand-current{background:rgba(255,255,255,.12)!important;}
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile::after,
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.directory-messages-tile>summary::after{content:none!important;}
}}
@media screen and (hover:hover) and (pointer:fine) {@layer history-layout {
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile:hover::after{background:#A8A8A8!important;}
}}

/* Workspace labels match the Management brand label. */
@media screen {@layer history-layout {
html body#dashboardRoot.top-toolbar-shell .shell-topbar .shell-workspaces .shell-group-trigger{font-size:12px!important;}
}}

/* Match the Management office icon to the other workspace icon slots. */
@media screen {@layer history-layout {
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile{gap:6px!important;}
html body#dashboardRoot.top-toolbar-shell .shell-topbar>.management-brand-tile>.directory-plate-icon{width:14px!important;height:14px!important;min-width:14px!important;flex:0 0 14px!important;}
}}
