/* V8.137: compact desktop navigation matching the supplied reference. */
@media(min-width:901px){
body.mc-v852 .app,body.mc-v852 .app.sidebar-mini{grid-template-columns:52px minmax(0,1fr)!important}
body.mc-v852 .app aside#sidebar,body.mc-v852 .app.sidebar-mini aside#sidebar{width:52px!important;min-width:52px!important;max-width:52px!important;padding:74px 0 12px!important;box-sizing:border-box!important;background:linear-gradient(110deg,#33363a,#282b2f)!important;border-right:1px solid #ffffff08!important}
body.mc-v852 .app aside#sidebar .side-brand,body.mc-v852 .app.sidebar-mini aside#sidebar .side-brand{position:static!important;width:52px!important;height:62px!important;min-height:62px!important;margin:0!important;padding:8px 0 12px!important;justify-content:center!important;background:transparent!important;border:0!important;box-sizing:border-box!important}
body.mc-v852 .app aside#sidebar .brandmark{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important;border-radius:9px!important;font-size:24px!important;line-height:1!important;display:grid!important;place-items:center!important}
body.mc-v852 .app aside#sidebar>nav{width:52px!important;padding:0!important;gap:4px!important;align-items:center!important}
body.mc-v852 .app aside#sidebar>nav>:is(a,button),body.mc-v852 .app.sidebar-mini aside#sidebar>nav>:is(a,button){width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:8px!important;margin:2px 0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;box-sizing:border-box!important}
body.mc-v852 .app aside#sidebar>nav>:is(a,button) .ico{width:20px!important;height:20px!important;min-width:20px!important;margin:0!important;display:grid!important;place-items:center!important}
body.mc-v852 .app aside#sidebar>nav>:is(a,button) svg{width:20px!important;height:20px!important;flex:0 0 20px!important}
body.mc-v852 .app :is(#siteBookDrawer,#operationsDrawer,#leaderMenuDrawer,#accountDrawer,#chatIncDrawer,#profileInfoDrawer){left:52px!important;width:236px!important;min-width:236px!important;max-width:236px!important;background:linear-gradient(110deg,#36393d,#2b2e32 70%,#2b2e32)!important}
body.mc-v852 :is(#siteBookDrawer,#operationsDrawer,#leaderMenuDrawer) :is(.book-heading,.op-heading,.leader-heading){padding:18px 12px 14px!important;min-height:70px!important;gap:10px!important}
body.mc-v852 :is(#siteBookDrawer,#operationsDrawer,#leaderMenuDrawer) :is(.book-heading-icon,.op-heading-icon,.leader-heading-icon){width:32px!important;height:32px!important;border-radius:10px!important}
body.mc-v852 #siteBookDrawer .book-search{margin:0 12px 12px!important;min-height:38px!important}
body.mc-v852 #siteBookDrawer .book-scroll{padding:0 12px 16px!important}
body.mc-v852 #siteBookDrawer .book-direct>a{min-height:42px!important;padding:9px 8px!important;margin:3px 0!important;border:0!important;box-shadow:none!important}
body.mc-v852 #siteBookDrawer a.active{border-left:0!important;box-shadow:none!important;background:#ffffff04!important}
body.mc-v852 #siteBookDrawer .book-group summary{min-height:44px!important}
body.mc-v852:is(.mc-site-book-open,.mc-operations-open,.mc-leader-menu-open,.mc-account-open,.mc-profile-open,.mc-chatinc-open) .app>main.content>section.page{padding-left:260px!important}
body.mc-v852 .app>main.content>header{left:52px!important}
}

@media(min-width:901px){body.mc-v852 .app #siteBookDrawer.book-drawer,body.mc-v852 .app #leaderMenuDrawer.book-drawer,body.mc-v852 .app #operationsDrawer.op-drawer{left:52px!important;width:236px!important;min-width:236px!important;max-width:236px!important;background:linear-gradient(110deg,#36393d,#2b2e32 70%,#2b2e32)!important}body.mc-v852.mc-site-book-open .app>main.content>section.page,body.mc-v852.mc-site-book-open .app.sidebar-mini>main.content>section.page,body.mc-v852.mc-leader-menu-open .app>main.content>section.page,body.mc-v852.mc-leader-menu-open .app.sidebar-mini>main.content>section.page{padding-left:260px!important}}
/* V8.138: keep the logo above the menus; footer actions stay at the bottom. */
@media(min-width:901px){
body.mc-v852 .app.sidebar-mini aside#sidebar,body.mc-v852 .app aside#sidebar{padding:0 0 12px!important;display:flex!important;flex-direction:column!important;height:100dvh!important;overflow:hidden!important}
body.mc-v852 .app.sidebar-mini aside#sidebar .side-brand,body.mc-v852 .app aside#sidebar .side-brand{height:74px!important;min-height:74px!important;flex:0 0 74px!important;padding:16px 0!important}
body.mc-v852 .app.sidebar-mini aside#sidebar .side-brand .brandmark,body.mc-v852 .app aside#sidebar .side-brand .brandmark{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important;font-size:24px!important;border-radius:9px!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav,body.mc-v852 .app aside#sidebar>nav{display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;gap:4px!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>.sidebar-account-settings,body.mc-v852 .app aside#sidebar>nav>.sidebar-account-settings{margin-top:auto!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>.sidebar-profile-link,body.mc-v852 .app aside#sidebar>nav>.sidebar-profile-link{margin-bottom:4px!important}
body.mc-v852 #operationsDrawer .op-links{position:relative!important;margin:0 0 10px 20px!important;padding:2px 0 4px 10px!important;border-left:1px solid #5262732e!important}
body.mc-v852 #operationsDrawer .op-links a{position:relative!important;margin:1px 0!important;padding:7px 8px!important;min-height:32px!important;font-size:11px!important;border-radius:8px!important}
body.mc-v852 #operationsDrawer .op-links a:before{content:'';position:absolute;left:-14px;top:50%;width:5px;height:5px;border:1px solid #526273;border-radius:50%;background:#313438;transform:translateY(-50%)}
body.mc-v852 #operationsDrawer .op-links a.active{background:color-mix(in srgb,var(--ui-accent,#526273) 32%,transparent)!important;box-shadow:none!important;border:0!important}
}

@media(min-width:901px){
body.mc-v852 .app.sidebar-mini aside#sidebar .side-brand,body.mc-v852 .app aside#sidebar .side-brand{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;width:52px!important;height:74px!important}
body.mc-v852 .app.sidebar-mini aside#sidebar .side-brand .brandmark,body.mc-v852 .app aside#sidebar .side-brand .brandmark{margin:0!important;position:static!important;transform:none!important;line-height:1!important;letter-spacing:0!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav,body.mc-v852 .app aside#sidebar>nav{justify-content:flex-start!important;align-items:center!important;gap:3px!important;padding:4px 0 0!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>:is(a,button),body.mc-v852 .app aside#sidebar>nav>:is(a,button){flex:0 0 42px!important;height:42px!important;min-height:42px!important;margin:0!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>.sidebar-account-settings,body.mc-v852 .app aside#sidebar>nav>.sidebar-account-settings{margin-top:auto!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>.sidebar-profile-link,body.mc-v852 .app aside#sidebar>nav>.sidebar-profile-link{margin-top:4px!important;margin-bottom:0!important}
}

@media(min-width:901px){body.mc-v852 .app.sidebar-mini aside#sidebar,body.mc-v852 .app aside#sidebar{padding:0!important}body.mc-v852 .app.sidebar-mini aside#sidebar>nav,body.mc-v852 .app aside#sidebar>nav{padding-bottom:6px!important}}

/* V8.140: only Settings pushes to the rail footer. */
@media(min-width:901px){
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>button.sidebar-account-settings,body.mc-v852 .app aside#sidebar>nav>button.sidebar-account-settings{margin-top:0!important;margin-bottom:0!important;flex:0 0 42px!important;align-self:center!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>button.sidebar-system-settings,body.mc-v852 .app aside#sidebar>nav>button.sidebar-system-settings{margin-top:auto!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav,body.mc-v852 .app aside#sidebar>nav{gap:7px!important;justify-content:flex-start!important}
body.mc-v852 .app.sidebar-mini aside#sidebar>nav>button.sidebar-profile-link,body.mc-v852 .app aside#sidebar>nav>button.sidebar-profile-link{margin-top:3px!important;margin-bottom:8px!important}
}
/* V8.141: Settings and Profile use the same geometry as Site Incident Book. */
@media(min-width:901px){
body.mc-v852{--v816-account:236px;--v816-profile:236px}
body.mc-v852 #accountDrawer.account-drawer,body.mc-v852>#accountDrawer.account-drawer,body.mc-v852 #profileInfoDrawer.profile-info-drawer,body.mc-v852>#profileInfoDrawer.profile-info-drawer{left:52px!important;right:auto!important;width:236px!important;min-width:236px!important;max-width:236px!important;margin-left:0!important;border-left:0!important;box-sizing:border-box!important}
body.mc-v852.mc-account-open .app .content>section.page,body.mc-v852:has(#accountDrawer.show) .app .content>section.page,body.mc-v852.mc-profile-open .app .content>section.page,body.mc-v852:has(#profileInfoDrawer.show) .app .content>section.page,body.mc-v852.mc-account-open .app.sidebar-mini .content>section.page,body.mc-v852.mc-profile-open .app.sidebar-mini .content>section.page{padding-left:260px!important}
body.mc-v852 #accountDrawer .account-drawer-list,body.mc-v852 #profileInfoDrawer .pid-menu{min-width:0!important;width:100%!important;box-sizing:border-box!important}
body.mc-v852 #accountDrawer .account-drawer-head,body.mc-v852 #profileInfoDrawer .pid-head{min-width:0!important;box-sizing:border-box!important}
}

/* V8.142: override legacy :has(.app.sidebar-mini) drawer offsets. */
@media(min-width:901px){
body.mc-v852:has(.app.sidebar-mini)>#accountDrawer.account-drawer,body.mc-v852:has(.app.sidebar-mini)>#profileInfoDrawer.profile-info-drawer,body.mc-v852:has(.app.sidebar-mini) #accountDrawer.account-drawer,body.mc-v852:has(.app.sidebar-mini) #profileInfoDrawer.profile-info-drawer{left:52px!important;right:auto!important;width:236px!important;min-width:236px!important;max-width:236px!important;margin:0!important;transform:none!important;border-left:0!important}
}

/* V8.143: header belongs to grid column 2, so no second rail offset. */
@media(min-width:901px){body.mc-v852 .app>main.content>header,body.mc-v852 .app.sidebar-mini>main.content>header,body.mc-v852.mc-site-book-open .app.sidebar-mini>main.content>header,body.mc-v852.mc-operations-open .app.sidebar-mini>main.content>header,body.mc-v852.mc-leader-menu-open .app.sidebar-mini>main.content>header{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;margin-left:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}body.mc-v852 .app>main.content,body.mc-v852 .app.sidebar-mini>main.content{grid-column:2!important;margin-left:0!important;padding-left:0!important}}

/* V8.156: consistent navy rail, including the logo area. */
body.mc-v852 .app aside#sidebar,body.mc-v852 .app.sidebar-mini aside#sidebar{background:#2e3135!important}body.mc-v852 .app aside#sidebar .side-brand{background:#2e3135!important}
