/* Shared navigation only; business panels and their native renderers remain intact. */
body.me-site-shell{padding-top:58px!important}
#site-header{position:fixed!important;inset:0 0 auto!important;z-index:5000!important;height:58px!important;min-height:58px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:0!important;padding:9px 22px!important;box-sizing:border-box!important;background:#fff!important;border:0!important;border-bottom:1px solid #dce3df!important;color:#30494a!important;font:13px/1.3 system-ui,-apple-system,"PingFang SC",sans-serif!important;box-shadow:none!important;overflow:visible!important}
#site-header *{box-sizing:border-box}#site-header [hidden]{display:none!important}
#site-header nav>button{width:auto!important;flex:none!important;gap:0!important}#site-header button span{font:inherit!important;width:auto!important;letter-spacing:normal!important}
#site-header .site-brand{padding:0!important;border:0!important;background:transparent!important;font-weight:750!important;letter-spacing:.4px!important;font-size:14px!important;margin-right:auto!important}
#site-header nav{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;padding:0!important}
#site-header a,#site-header button,#site-header summary,#site-header select{display:inline-flex;align-items:center;justify-content:center;min-height:36px;height:36px;margin:0;padding:8px 12px;border:1px solid #dce3df;border-radius:9px;background:#fff;color:#486461;text-decoration:none;font:inherit;white-space:nowrap;cursor:pointer;box-shadow:none;line-height:18px}
#site-header a:hover,#site-header button:hover,#site-header summary:hover{background:#f1f6f3;border-color:#bacfca}
#site-header a[aria-current=page]{background:#edf5f3;border-color:#c0d7d0;color:#246451}
#site-header select{min-width:110px;padding-right:24px}#site-header details{position:relative;margin:0;padding:0;border:0;background:transparent}
#site-header summary{list-style:none}#site-header summary::-webkit-details-marker{display:none}#site-header summary::after{content:' ▾';margin-left:5px}
#site-header .site-management-menu{position:absolute;right:0;top:calc(100% + 8px);width:210px;display:grid;gap:3px;padding:6px;background:#fff;border:1px solid #dce3df;border-radius:11px;box-shadow:0 8px 24px #19382c22}
#site-header details:not([open])>.site-management-menu{display:none}#site-header .site-management-menu :is(a,button){justify-content:flex-start;border:0;width:100%}#site-header .site-management-menu .presence-pill{border-bottom:1px solid #eef2f0;border-radius:9px 9px 0 0}
.me-site-shell .site-legacy-header nav,.me-site-shell .site-legacy-header>a,.me-site-shell .admin-head-controls,.me-site-shell .top-controls,.me-site-shell .sidebar-bottom a[href*="report-center"],.me-site-shell .site-legacy-header>select{display:none!important}
.me-site-shell[data-site-page="dashboard.html"]>.site-legacy-header,.me-site-shell[data-site-page="operations.html"]>.site-legacy-header,.me-site-shell[data-site-page="studio.html"]>.site-legacy-header{display:none!important}
.me-site-shell[data-site-page="library.html"]>.site-legacy-header>a:is(#card-home,#period-comparison){display:inline-flex!important}
.me-site-shell[data-site-page="library.html"]>.site-legacy-header>#snapshot{display:inline-block!important}
.me-site-shell[data-site-page="pending.html"]>.site-legacy-header>#original,.me-site-shell[data-site-page="pending.html"]>.site-legacy-header>#exports{display:block!important}
.me-site-shell[data-site-page="pending.html"] #downloads{display:grid!important}
.me-site-shell[data-site-page="data-import.html"]>p:first-of-type{display:none}
.me-site-shell .rail{top:58px!important;height:calc(100vh - 58px)!important}
.me-site-shell .top{top:58px!important}
.me-site-shell .rail-bottom a[href*="report-center"]{display:none!important}
@media(max-width:1000px){#site-header{gap:10px!important;padding:9px 12px!important}#site-header .site-brand{display:none!important}#site-header nav{margin-left:auto!important}#site-header a,#site-header button,#site-header summary,#site-header select{font-size:12px;padding:8px}#site-header select{min-width:90px}}
@media(max-width:700px){#site-header{overflow-x:auto!important}#site-header nav{margin-left:0!important;gap:5px!important}#site-header .site-management-menu{position:fixed;top:54px;right:10px}#site-header a,#site-header button,#site-header summary,#site-header select{font-size:11px;padding:7px}}
/* Route content without replacing the live navigation document or its grants. */
#site-home-content[hidden]{display:none!important}
.me-site-shell[data-site-page="dashboard.html"] #site-home-content>.site-legacy-header,.me-site-shell[data-site-page="operations.html"] #site-home-content>.site-legacy-header,.me-site-shell[data-site-page="studio.html"] #site-home-content>.site-legacy-header{display:none!important}
body.site-routed{overflow:hidden!important}
iframe.site-content-frame{position:fixed!important;inset:58px 0 0!important;width:100%!important;height:calc(100dvh - 58px)!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:#f4f5f1!important;z-index:100!important;display:block!important}
iframe.site-content-frame[hidden]{display:none!important}
body.me-site-content{padding-top:0!important}
.me-site-content .site-legacy-header>#logout{display:none!important}
.me-site-content .rail{top:0!important;height:100vh!important}
.me-site-content .top{top:0!important}
.me-site-content[data-site-page="dashboard.html"] .w39-dashboard-frame{height:100dvh!important}
.me-site-content[data-site-page="dashboard.html"] .w39-dashboard-frame.w39-preparing{top:0!important}
.me-site-content[data-site-page="library.html"]>#library{height:calc(100dvh - 98px)!important}
