/* Keep navigation chrome outside the one scrolling list. */
body .app-layout>.tree-nav,body .app-layout>.tree-nav:is(:hover,:focus-within){display:flex;flex-direction:column;min-height:0;overflow:hidden;overscroll-behavior:contain;box-sizing:border-box}
body .tree-nav>.menu-restore{flex:0 0 auto}
body .tree-nav>.menu-panel{flex:1 1 auto;min-height:0;overflow:hidden;margin:0}
body .tree-nav .menu-scroll-region{box-sizing:border-box;height:var(--menu-scroll-height,35dvh);min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding-top:8px;padding:0 2px 4px;scrollbar-color:#a9b8d6 #eef2fa}
body .tree-nav .menu-scroll-region:focus-visible{outline:2px solid #4679b8;outline-offset:-2px;border-radius:4px}
body .tree-nav>.locksmith-actions{flex:0 0 auto;margin:12px 0 0}
@media(min-width:851px){
 body .app-layout>.tree-nav,body .app-layout>.tree-nav:is(:hover,:focus-within){position:sticky;top:8px;height:calc(100dvh - 80px);max-height:calc(100dvh - 80px);align-self:start}
 body .home-layout>.tree-nav,body .home-layout>.tree-nav:is(:hover,:focus-within){height:calc(100dvh - var(--home-menu-clearance) - 8px);max-height:calc(100dvh - var(--home-menu-clearance) - 8px)}
 body .home-layout>.menu-resizer{height:calc(100dvh - var(--home-menu-clearance) - 8px);margin-top:8px}
}
@media(max-width:850px){
 body .app-layout>.tree-nav,body .app-layout>.tree-nav:is(:hover,:focus-within){position:static;height:48dvh;max-height:48dvh}
 body .app-layout.form-open:not(.menu-expanded)>.tree-nav{height:54px;max-height:54px}
 body .home-layout.home-menu-collapsed>.tree-nav{height:64px;max-height:64px}
}
/* Personal picture occupies the free top-right space beside the menu toggle. */
body .tree-nav>.menu-user-picture{position:absolute;top:8px;right:12px;width:52px;height:52px;border:2px solid var(--locksmith-border,#b9c9ed);border-radius:50%;background:var(--skin-soft,#e5edf8);color:var(--locksmith-green,#315c46);cursor:pointer;box-shadow:0 2px 6px #203c2320;z-index:1;box-sizing:border-box}
.menu-user-picture>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.menu-user-picture>svg{width:100%;height:100%;padding:9px;box-sizing:border-box;fill:currentColor}
.menu-user-picture>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;min-height:0}
.menu-user-picture:focus-within{outline:3px solid var(--locksmith-green,#315c46);outline-offset:3px}
.menu-user-picture[aria-busy=true]{opacity:.65;cursor:wait}.menu-user-picture>input:disabled{cursor:wait}
.menu-picture-badge{position:absolute;right:-3px;bottom:-2px;display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--locksmith-border,#b9c9ed);border-radius:50%;background:var(--locksmith-panel,#fff);font:bold 15px 'Segoe UI',sans-serif;pointer-events:none}
.menu-picture-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .app-layout.form-open:not(.menu-expanded)>.tree-nav>.menu-user-picture{display:none}
@media(min-width:851px){body .home-layout.home-menu-collapsed>.tree-nav>.menu-user-picture{display:none}}
body .app-layout.form-open.menu-expanded .tree-nav>.menu-restore{width:76px;min-height:44px;margin:0 0 12px}
/* Clear navigation affordances on the collapsed tree rail. */
body .tree-nav>.menu-restore>svg{flex:none;width:22px;height:22px}
@media(max-width:850px){
 body .app-layout.form-open:not(.menu-expanded)>.tree-nav,body .home-layout.home-menu-collapsed>.tree-nav{flex-direction:row;align-items:center;gap:8px}
 body .home-layout.home-menu-collapsed>.tree-nav>.menu-restore{width:42px;margin:0;flex:none}
 body .home-layout.home-menu-collapsed>.tree-nav>.menu-user-picture{display:none}
}
