/* Keep the same header geometry in Basic and Advanced. */
#root .topbar,#advancedWorkspaceRoot .rgp-page-brand,.machine-brand{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-rows:60px 44px!important;gap:8px 16px!important;
 height:133px!important;min-height:133px!important;max-height:133px!important;
 box-sizing:border-box!important;padding:8px clamp(12px,3vw,54px)!important;
 align-items:center!important;border-top:2px solid #0057b8!important;border-bottom:1px solid #c9d2da!important;
}
#root .topbar .brand-lockup,#advancedWorkspaceRoot .rgp-page-brand>div,.machine-brand>div{grid-column:1!important;grid-row:1!important;width:auto!important;max-width:100%!important;min-width:0!important}
#root .topbar .header-note{grid-column:2!important;grid-row:1!important;justify-self:end!important;margin:0!important}
#root .topbar .rgp-global-nav,#advancedWorkspaceRoot .rgp-page-brand .rgp-global-nav,.machine-brand .rgp-global-nav{
 display:flex!important;grid-column:1 / -1!important;grid-row:2!important;
 width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;
 padding:0!important;gap:8px!important;flex-wrap:nowrap!important;justify-content:flex-end!important;
 overflow-x:auto!important;overflow-y:hidden!important;align-items:center!important;
}
#root .topbar .rgp-global-nav[hidden]{display:flex!important;visibility:hidden!important;pointer-events:none!important}
#root .topbar .rgp-global-nav button,#advancedWorkspaceRoot .rgp-page-brand .rgp-global-nav button,.machine-brand .rgp-global-nav a{
 flex:0 0 auto!important;min-height:40px!important;height:40px!important;margin:0!important;
 padding:6px 16px!important;font-size:14px!important;line-height:1.2!important;white-space:nowrap!important;
}
@media(max-width:800px){
 #root .topbar,#advancedWorkspaceRoot .rgp-page-brand,.machine-brand{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:44px 24px 40px!important;height:139px!important;min-height:139px!important;max-height:139px!important;gap:6px!important;padding:8px 12px!important}
 #root .topbar .header-note{grid-column:1!important;grid-row:2!important;font-size:10px!important;padding:3px 8px!important;max-height:24px!important}
 #root .topbar .rgp-global-nav,#advancedWorkspaceRoot .rgp-page-brand .rgp-global-nav,.machine-brand .rgp-global-nav{grid-column:1!important;grid-row:3!important;height:40px!important;min-height:40px!important;justify-content:flex-start!important;gap:6px!important}
 #root .topbar .lubrigo-logo,#advancedWorkspaceRoot .rgp-page-brand img:first-child,.machine-brand img:first-child{width:100px!important;height:44px!important;flex:0 0 100px!important}
 #root .topbar .app-logo,#advancedWorkspaceRoot .rgp-page-brand img:last-child,.machine-brand img:last-child{width:185px!important;max-width:calc(100% - 112px)!important;height:44px!important;flex:0 1 185px!important}
 #root .topbar .rgp-global-nav button,#advancedWorkspaceRoot .rgp-page-brand .rgp-global-nav button,.machine-brand .rgp-global-nav a{padding:6px 10px!important;font-size:12px!important;min-height:36px!important;height:36px!important}
}

/* Identical branding across all header implementations. */
#root .topbar .brand-lockup,#advancedWorkspaceRoot .rgp-page-brand>div,.machine-brand>div{display:flex!important;align-items:center!important;gap:12px!important}
#advancedWorkspaceRoot .rgp-page-brand>div::after,.machine-brand>div::after{display:none!important;content:none!important}
#root .topbar .lubrigo-logo,#advancedWorkspaceRoot .rgp-page-brand img:first-child,.machine-brand img:first-child{display:block!important;width:220px!important;height:60px!important;flex:0 0 220px!important;object-fit:contain!important;object-position:center!important}
#root .topbar .app-logo,#advancedWorkspaceRoot .rgp-page-brand img:last-child,.machine-brand img:last-child{display:block!important;box-sizing:border-box!important;width:320px!important;height:60px!important;flex:0 0 320px!important;padding-left:12px!important;margin:0!important;border-left:2px solid #c9d2da!important;object-fit:contain!important;object-position:center!important}
#root .topbar .app-logo img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.machine-brand .rgp-global-nav a{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;border:1px solid #9bbad5!important;border-radius:10px!important;color:#0057b8!important;background:white!important;text-decoration:none!important;font-weight:800!important}
@media(max-width:800px){
#root .topbar .lubrigo-logo,#advancedWorkspaceRoot .rgp-page-brand img:first-child,.machine-brand img:first-child{width:100px!important;height:44px!important;flex:0 0 100px!important}
#root .topbar .app-logo,#advancedWorkspaceRoot .rgp-page-brand img:last-child,.machine-brand img:last-child{width:185px!important;max-width:calc(100% - 112px)!important;height:44px!important;flex:0 1 185px!important;padding-left:8px!important}
}

/* Match the actual logo image, not just its wrapper. */
#root .topbar .lubrigo-logo{padding:0!important;margin:0!important;border:0!important;box-sizing:border-box!important}
#root .topbar .lubrigo-logo img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;padding:0!important;margin:0!important}
#advancedWorkspaceRoot .rgp-page-brand img:first-child,.machine-brand img:first-child{padding:0!important;margin:0!important;border:0!important;box-sizing:border-box!important;max-width:none!important;max-height:none!important}
#root .topbar .rgp-global-nav button,#advancedWorkspaceRoot .rgp-page-brand .rgp-global-nav button,.machine-brand .rgp-global-nav a{font-family:Arial,sans-serif!important;font-weight:700!important;letter-spacing:normal!important;box-sizing:border-box!important;border-width:1px!important;border-style:solid!important;border-radius:10px!important}
