/* Navigation shell only: module content, permissions and transactional flows are unchanged. */
.boHomeWordmark{display:none}
html body.boNavigationReady :is(.mobileNav,.warehouseMobileDock){display:none!important}
html body.boNavigationReady #app{grid-template-columns:minmax(0,1fr)!important}
html body.boNavigationReady #sidebar{display:none!important;position:fixed!important;inset:0 auto 0 0!important;z-index:1200!important;width:min(360px,calc(100vw - 24px))!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;box-sizing:border-box;background:var(--card)!important;color:var(--text)!important}
html body.boNavigationReady #sidebar.open{display:block!important}
html body.boNavigationReady .workspace{min-width:0;padding-bottom:calc(104px + env(safe-area-inset-bottom))!important}
html body.boNavigationReady .boWindowNav>.boThemeToggle{display:none!important}
html body.boNavigationReady .riskBroadcastAudioRow:not(#boMenuAlarm .riskBroadcastAudioRow){display:none!important}
html body #boMainDock{display:flex;position:fixed;inset:auto 0 0;z-index:1000;gap:4px;align-items:stretch;padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:var(--card);border-top:1px solid var(--line);box-sizing:border-box;box-shadow:0 -3px 12px #16365d0a}
html body #boMainDock button{display:flex;flex:1;min-width:0;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:5px 4px;margin:0;border:0;border-radius:8px;background:transparent!important;color:var(--muted)!important;font-size:.78rem;line-height:1.3;font-weight:650;white-space:normal;overflow-wrap:normal}
html body #boMainDock svg{width:23px;height:23px;flex-shrink:0}
html body #boMainDock button.active{color:#1165d8!important;background:var(--panel2)!important}
html[data-bo-theme=dark] body #boMainDock button.active{color:#91c5ff!important}
html body #boMainDock :focus-visible{outline:3px solid #3886eb;outline-offset:0}
html body #boMenuBackdrop{display:none}
html body.boMenuOpen #boMenuBackdrop{display:block;position:fixed;inset:0;z-index:1150;background:#071b4166;border:0;width:100%;height:100%;margin:0;border-radius:0}
html body #boMenuClose{min-height:44px;width:100%;margin-bottom:12px}
html body #boMenuSettings{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
html body #boMenuSettings h2{font-size:1rem}
html body #boMenuSettings .boMenuTheme{width:100%;min-height:44px;margin:6px 0}
html body #boMenuSettings :is(.boSpeechOptions,.boScanSettings){display:block}
html body #boMenuSettings .riskBroadcastAudioRow{padding:0;border:0;background:transparent!important;justify-content:start}
html body #boMenuSettings .riskBroadcastAudio{width:100%;border-radius:10px;min-height:44px;margin:6px 0;box-shadow:none}
html body:is(.boHomeActive,.boShopActive) #riskStartEntry,html body:is(.boHomeActive,.boShopActive) #content>.boWindowNav{display:none!important}
html body:is(.boHomeActive,.boShopActive) .workspace{padding-top:0!important}
html body:is(.boHomeActive,.boShopActive) #content{max-width:1200px;margin:0 auto;padding:0!important}
html body:is(.boHomeActive,.boShopActive) .applicationShell{padding-top:0!important}
html body.boNavigationReady #topbar{position:relative!important;top:auto!important;display:flex!important;justify-content:space-between;align-items:center;gap:16px;padding:24px max(18px,calc((100vw - 1164px)/2)) 16px!important;min-height:0!important;box-shadow:none!important;border:0!important;background:var(--bg)!important;z-index:100!important}
html body.boNavigationReady .brandButton{padding:0!important;margin:0!important;display:block!important;min-height:44px!important;background:transparent!important;border:0!important;box-shadow:none!important;text-align:left}
html body.boNavigationReady .brandButton>:not(.boHomeWordmark){display:none!important}
html body.boNavigationReady .boHomeWordmark{display:grid!important;gap:1px;line-height:1.2;color:var(--text)!important}
html body.boNavigationReady .boHomeWordmark b{font-size:1.6rem;font-weight:800}
html body.boNavigationReady .boHomeWordmark small{font-size:.9rem;color:var(--muted)!important}
html body.boNavigationReady #quickNav,html body.boNavigationReady .topActions>:not(.userPill):not(.boGameShortcut):not(.boSupportShortcut){display:none!important}
html body.boNavigationReady .topActions{display:block!important;width:auto!important;margin:0!important;padding:0!important}
html body.boNavigationReady .userPill{font-size:0!important;display:flex!important;align-items:center;justify-content:center;padding:0!important;border:0!important;border-radius:50%!important;width:48px!important;height:48px!important;background:var(--panel2)!important;box-shadow:none!important}
html body.boNavigationReady #userName{display:none!important}
html body.boNavigationReady #userInitial{display:grid!important;place-items:center;width:48px!important;height:48px!important;border-radius:50%;background:transparent!important;color:var(--text)!important;font-size:1.05rem!important;margin:0!important}
html body.boNavigationReady #userMenu{top:82px!important;right:18px!important;width:min(280px,calc(100vw - 36px))!important;z-index:1100}
html body .boStartPage{padding:4px 18px 12px;color:var(--text)}
html body .boHomeGreeting{margin:12px 0 20px}
html body .boHomeGreeting h1{font-size:clamp(1.6rem,5vw,2rem);line-height:1.2;margin:0 0 7px;color:var(--text)!important}
html body .boHomeGreeting p{font-size:1.05rem;line-height:1.4;color:var(--muted)!important;margin:0}
html body .boHomeRisk{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e38890;border-radius:12px;background:#fff1f2!important;text-decoration:none;color:#a60d24!important;min-height:70px;box-sizing:border-box}
html body .boHomeRisk>svg{width:32px;height:32px;flex-shrink:0}
html body .boHomeRisk>span:nth-child(2){flex:1;min-width:0}
html body .boHomeRisk b{font-size:1rem;line-height:1.3;display:block;color:#a60d24!important}
html body .boHomeRisk small{display:block;color:#62454d!important;font-size:.85rem;line-height:1.4;margin-top:3px}
html body .boHomeRisk>span:last-child{font-size:30px}
html[data-bo-theme=dark] body .boHomeRisk{background:#421d2c!important;color:#ffbac8!important;border-color:#bf7082}
html[data-bo-theme=dark] body .boHomeRisk b,html[data-bo-theme=dark] body .boHomeRisk>svg,html[data-bo-theme=dark] body .boHomeRisk>span:last-child{color:#ffbac8!important}
html[data-bo-theme=dark] body .boHomeRisk small{color:#f7d0d9!important}
html body .boStartPage :is(h2){font-size:1.2rem;line-height:1.3;margin:0 0 12px;color:var(--text)!important}
html body :is(.boHomeQuick,.boHomeModules){margin-top:22px}
html body .boHomeQuick nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr));gap:8px}
html body .boHomeQuick button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:11px 8px;margin:0;min-width:0;min-height:52px;border:1px solid var(--line);border-radius:10px;background:var(--card)!important;color:var(--text)!important;font-size:.85rem;font-weight:700;line-height:1.3}
html body .boHomeQuick svg{width:24px;height:24px;color:var(--blue);flex-shrink:0}
html body .boHomeGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px}
html body .boHomeTile{display:grid;grid-template-columns:40px minmax(0,1fr) 12px;align-items:center;gap:10px;padding:15px 12px;min-height:104px;border-radius:12px;border:1px solid var(--line);background:var(--card)!important;color:var(--text)!important;text-decoration:none;box-sizing:border-box;min-width:0}
html body .boHomeIcon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--panel2)!important;color:var(--blue)!important}
html body .boHomeIcon svg{width:27px;height:27px}
html body .boHomeTile b{display:block;font-size:1rem;line-height:1.3;overflow-wrap:anywhere;color:var(--text)!important}
html body .boHomeTile small{display:block;font-size:.85rem;line-height:1.4;margin-top:5px;overflow-wrap:anywhere;color:var(--muted)!important}
html body .boHomeArrow{font-size:24px;color:var(--muted)!important}
html body .boHomePermission{font-size:.8rem;color:var(--muted)!important;margin:12px 0}
html body .boStartPage :is(a,button):focus-visible{outline:3px solid #3687f1;outline-offset:3px}
html[data-bo-theme=light] body .boStartPage :is(.boHomeTile,.boHomeQuick button){border-color:#d6e0ed!important}
html[data-bo-theme=dark] body .boHomeIcon,html[data-bo-theme=dark] body .boHomeQuick svg{color:#8ac4ff!important}
@media(max-width:700px){
 html body .boHomeGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,max(10rem,calc((100% - 10px)/2))),1fr))}
 html body .boHomeTile{grid-template-columns:32px minmax(0,1fr) 10px;gap:8px;padding:12px 9px;min-height:106px}
 html body .boHomeIcon{width:32px;height:36px;border-radius:8px}
 html body .boHomeIcon svg{width:24px;height:24px}
 html body .boHomeTile b{font-size:.94rem}
 html body .boHomeTile small{font-size:.8rem}
 html body .boStartPage{padding-left:14px;padding-right:14px}
 html body.boNavigationReady #topbar{padding:20px 14px 10px!important}
}
/* Explicit scope avoids inherited colours from the former large navigation cards. */
html[data-bo-theme] body.boNavigationReady #topbar .brandButton .boHomeWordmark{display:grid!important;border:0!important;padding:0!important;visibility:visible!important}
html[data-bo-theme] body.boNavigationReady #topbar .boHomeWordmark :is(b,small){display:block!important;visibility:visible!important;color:var(--text)!important}
html[data-bo-theme] body.boNavigationReady #topbar #userInitial{background:var(--panel2)!important;background-image:none!important;color:var(--text)!important}
html[data-bo-theme] body .boHomeIcon{color:#126bdd!important}
html[data-bo-theme] body .boHomeIcon svg{color:#126bdd!important;stroke:currentColor}
html[data-bo-theme=dark] body .boHomeIcon svg{color:#8ac4ff!important}
html[data-bo-theme] body .boHomeRisk b,html[data-bo-theme] body .boHomeRisk>span:last-child,html[data-bo-theme] body .boHomeRisk>svg{color:#a60d24!important}
html[data-bo-theme] body .boHomeRisk small{color:#62454d!important;font-weight:400}
html[data-bo-theme=dark] body .boHomeRisk :is(b,svg),html[data-bo-theme=dark] body .boHomeRisk>span:last-child{color:#ffbac8!important}
html[data-bo-theme=dark] body .boHomeRisk small{color:#f7d0d9!important}
html[data-bo-theme] body .boHomeGreeting p,html[data-bo-theme] body .boHomeTile small{font-weight:400!important;color:var(--muted)!important}
html[data-bo-theme] body.boNavigationReady #sidebar{background:var(--card)!important;color:var(--text)!important}
html[data-bo-theme] body.boNavigationReady #sidebar :is(button,a,summary,b,span,h2,p,label,small){color:var(--text)!important}
html[data-bo-theme] body.boNavigationReady #sidebar :is(button,a){min-height:44px}
html[data-bo-theme] body.boNavigationReady #sidebar .boNavGroup>summary{background:var(--panel2)!important;border:1px solid var(--line)}
html[data-bo-theme] body.boNavigationReady #sidebar :is(#boMenuClose,.boMenuTheme,.boSpeechSettings button){background:var(--panel2)!important;border:1px solid var(--line)!important;color:var(--text)!important}
html[data-bo-theme] body.boNavigationReady #sidebar :is(.boScanSettings,.boSpeechSettings){background:var(--panel2)!important;border-color:var(--line)!important;color:var(--text)!important}
.boHomeWordmark{display:none!important}
html[data-bo-theme] body.boNavigationReady #topbar .boHomeWordmark,html[data-bo-theme] body.boNavigationReady #topbar .boHomeWordmark :is(b,small){background:transparent!important;box-shadow:none!important}
html[data-bo-theme] body.boNavigationReady #topbar .userPill,html[data-bo-theme] body.boNavigationReady #topbar #userInitial{min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;flex:0 0 48px!important;padding:0!important;background-image:none!important;line-height:1!important}
@media(max-width:700px){
 html body .boHomeTile{grid-template-columns:28px minmax(0,1fr) 8px;gap:6px;padding:12px 8px}
 html body .boHomeIcon{width:28px;height:34px}
 html body .boHomeTile b{font-size:.88rem}
 html body .boHomeTile small{font-size:.78rem}
}
html body .boHomeQuick span,html body #boMainDock span{min-width:0;max-width:100%;overflow-wrap:anywhere;hyphens:auto}
html body.boNavigationReady #topbar .brandButton{flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 64px)}
html body.boNavigationReady #topbar .topActions{flex:0 0 48px!important}
html body.boNavigationReady .boHomeWordmark b{overflow-wrap:anywhere}
html[data-bo-theme=dark] body.boNavigationReady #topbar{background:#081a2d!important}
html body.boNavigationReady .workspace{padding-bottom:calc(var(--bo-dock-height,90px) + 24px)!important}
html{scroll-padding-bottom:calc(var(--bo-dock-height,90px) + 12px)}
html body .boHomeTile{scroll-margin-bottom:calc(var(--bo-dock-height,90px) + 12px)}
html body #boMenuSearch{min-height:44px;width:100%;margin-bottom:12px}
html[data-bo-theme] body.boNavigationReady #sidebar #boMenuSearch{background:var(--panel2)!important;border:1px solid var(--line)!important;color:var(--text)!important}
html[data-bo-theme] body.boNavigationReady #topbar .brandButton{background:transparent!important}
html body #boMainDock button{font-size:.75rem!important}
html body #boMainDock button span{font-size:inherit!important}
@media(max-width:700px){
 html body .boHomeQuick button{font-size:.8rem!important}
 html body .boHomeQuick button span{font-size:inherit!important}
 html body .boHomeTile b{font-size:.88rem!important;hyphens:manual}
 html body .boHomeTile small{font-size:.78rem!important}
}

/* Desktop keeps the existing sidebar visible; mobile retains its drawer and dock. */
@media (min-width:1024px){
 html body.boNavigationReady #app{grid-template-columns:280px minmax(0,1fr)!important;align-items:start}
 html body.boNavigationReady #sidebar,html body.boNavigationReady #sidebar.open{display:flex!important;flex-direction:column;position:sticky!important;inset:auto!important;top:0!important;width:280px!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;z-index:100!important;padding-bottom:16px!important}
 html body.boNavigationReady #sidebar nav{flex:0 0 auto!important;min-height:0;overflow:visible!important}
 html body.boNavigationReady #sidebar footer{flex-shrink:0}
 html body.boNavigationReady #boMenuSettings{flex-shrink:0;margin:16px 12px 0}
 html body.boNavigationReady :is(#boMainDock,#boMenuClose,#boMenuBackdrop){display:none!important}
 html body.boNavigationReady .workspace{padding-bottom:24px!important}
 html body.boNavigationReady #topbar{padding:24px 24px 16px!important}
 html body.boNavigationReady #sidebar [data-page=portalhome]{display:block}
 html body.boNavigationReady .mobileMenuButton{display:none!important}
 html{scroll-padding-bottom:12px}
}

@media(max-width:700px){
 html body .boHomeQuick nav.boHomeQuickFour{grid-template-columns:repeat(auto-fit,minmax(min(100%,max(10rem,calc((100% - 8px)/2))),1fr))}
}

html body .boShopPage .boShopTitle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px;flex-wrap:wrap}
html body .boShopPage .boShopTitle h2{margin:0;font-size:1.35rem;color:var(--text)}
html body .boShopPage .boShopTitle button{min-height:44px}
html body .boShopPage .boShopHelp{margin:12px 0 16px;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:10px 12px;color:var(--text)}
html body .boShopPage .boShopHelp summary{cursor:pointer;min-height:28px;align-content:center;font-weight:650}
html body .boShopPage .boShopHelp .notice{margin:12px 0 0}
html body .boShopPage .boHomeQuick button[aria-current=page]{border-color:#176add!important;background:var(--panel2)!important;color:#126bdd!important}
html[data-bo-theme=dark] body .boShopPage .boHomeQuick button[aria-current=page]{color:#a8d2ff!important}
html body .boShopPage .searchBar{display:flex;min-width:0;margin:14px 0}
html body .boShopPage #shopSearch{min-width:0;min-height:46px;width:100%}

/* All signed-in work pages share the compact brand and account controls. */
html body.boNavigationReady>.releaseBadge{display:none!important}
html body.boNavigationReady #topbar.hide{display:none!important}
html body.boNavigationReady #topbar #connectionStatus{font-size:.8rem;white-space:normal}
html body.boNavigationReady #topbar #userMenu{position:absolute!important;top:calc(100% - 6px)!important;right:18px!important}

/* Keep controls below the iOS standalone status area. */
:root{--bo-safe-top:env(safe-area-inset-top,0px)}
@media(max-width:1100px){
 html body.boNavigationReady #topbar{padding-top:calc(20px + var(--bo-safe-top))!important;padding-left:max(14px,env(safe-area-inset-left,0px))!important;padding-right:max(14px,env(safe-area-inset-right,0px))!important}
 html body.boNavigationReady #sidebar{padding-top:var(--bo-safe-top)!important}
}

/* 4.3.28: readable white wordmark and field-work tagline in both themes. */
html[data-bo-theme] body.boNavigationReady #topbar{background:#003f72!important}
html[data-bo-theme] body.boNavigationReady #topbar .boHomeWordmark,
html[data-bo-theme] body.boNavigationReady #topbar .boHomeWordmark :is(b,small,.boHomeTagline){color:#fff!important}
html[data-bo-theme] body.boNavigationReady #topbar .boHomeWordmark .boHomeTagline{display:block!important;font-size:.9rem!important;font-weight:500;line-height:1.4;white-space:normal;overflow-wrap:normal}
.boHomeViewToggle,.boOwnerPeriods{display:flex;gap:6px;background:#eaf0f8;padding:5px;border-radius:12px;width:max-content;margin:0 0 20px}.boHomeViewToggle button,.boOwnerPeriods button{border:0;background:transparent;color:#49617e;border-radius:9px;padding:9px 14px;font-weight:700;cursor:pointer}.boHomeViewToggle button.active,.boOwnerPeriods button.active{background:#fff;color:#1d5eb6;box-shadow:0 1px 5px #17223820}.boOwnerGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.boOwnerGrid article{background:var(--card,#fff);border:1px solid var(--line,#dfe7f1);border-radius:15px;padding:18px;min-width:0}.boOwnerGrid article small{font-size:11px;letter-spacing:.08em;color:#68809e;font-weight:800}.boOwnerGrid h2{font-size:22px;margin:10px 0}.boOwnerGrid p{color:#73849b;font-size:13px}.boOwnerWide{grid-column:span 2}.boOwnerMetric{display:grid;grid-template-columns:1fr auto;gap:8px;margin:12px 0;color:#425873}.boOwnerMetric i{grid-column:span 2;height:7px;border-radius:8px;background:#eaf0f7;overflow:hidden}.boOwnerMetric em{display:block;height:100%;background:#3980dd;border-radius:8px}.boOwnerChart{height:80px;display:flex;align-items:end;gap:2px;border-bottom:1px solid #ccd8e6}.boOwnerChart i{flex:1;min-width:2px;background:#5b91dc;border-radius:2px 2px 0 0}.boOwnerGrid a{color:#2767bd;font-weight:700;text-decoration:none}@media(max-width:800px){.boOwnerGrid{grid-template-columns:1fr 1fr}.boOwnerWide{grid-column:span 2}}@media(max-width:560px){.boOwnerGrid{grid-template-columns:1fr}.boOwnerWide{grid-column:auto}.boHomeViewToggle{width:100%}.boHomeViewToggle button{flex:1}}

.boPersonalViewBar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 14px}
.boPersonalViewBar p{margin:4px 0 0;font-size:.88rem}
.boPersonalViewChoices{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.boPersonalViewChoices button[aria-pressed="true"]{background:#163e62;color:#fff;border-color:#163e62}
.boPersonalViewChoices a{padding:7px}
