/* Give navigation priority over decoration, with the same destinations and permissions. */
body.workspace-shell #workspace-menu{padding:16px 12px 12px;gap:0;height:100vh;height:100dvh}
body.workspace-shell #workspace-menu .brand{padding:0 8px 10px;gap:10px;font-size:20px;line-height:1.25;flex:none}
body.workspace-shell #workspace-menu .brand-mark{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;overflow:hidden;border-radius:12px;background:#fff;letter-spacing:0}
body.workspace-shell #workspace-menu .brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
body.workspace-shell #workspace-menu .brand small{font-size:8px;letter-spacing:1.5px;margin-top:5px}
body.workspace-shell #workspace-menu .aside-note{display:none}
body.workspace-shell #workspace-menu nav{flex:1 1 0;min-height:0;margin:0;padding:2px 4px 8px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#9eaea6 transparent;scroll-padding-block:5px}
body.workspace-shell #workspace-menu nav::-webkit-scrollbar{width:5px}
body.workspace-shell #workspace-menu nav::-webkit-scrollbar-thumb{background:#9eaea6;border-radius:8px}
body.workspace-shell #workspace-menu .menu-primary{display:block;margin:0 0 6px;padding:0 0 6px}
body.workspace-shell #workspace-menu .menu-group h2,body.workspace-shell #workspace-menu .menu-more-label{margin:0 8px 6px;font-size:10px;line-height:1.4}
body.workspace-shell #workspace-menu nav button,body.workspace-shell #workspace-menu summary{min-height:40px;margin:0;padding:7px 10px;gap:11px;line-height:1.35}
body.workspace-shell #workspace-menu nav button span,body.workspace-shell #workspace-menu summary>span{font-size:14px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
body.workspace-shell #workspace-menu .menu-fold{margin:0}
body.workspace-shell #workspace-menu .menu-subitems{margin:2px 4px 8px 16px;padding-left:8px}
body.workspace-shell #workspace-menu .profile{flex:none;margin:0;padding:6px 8px 0;gap:10px;font-size:12px;min-height:38px}
body.workspace-shell #workspace-menu .avatar{width:30px;height:30px;flex:none}
body.workspace-shell #workspace-menu .profile small{font-size:10px;margin-top:2px}
@media(max-width:1100px){
 body.workspace-shell #workspace-menu{width:min(300px,calc(100vw - 24px));padding:12px 10px max(10px,env(safe-area-inset-bottom))}
 body.workspace-shell #workspace-menu .brand{padding:2px 48px 10px 8px;font-size:20px}
 body.workspace-shell #workspace-menu .menu-close{top:10px;right:10px;width:44px;height:44px;min-height:44px;border-radius:10px}
}
/* Compact mouse-driven windows without shrinking text; touch keeps larger rows. */
@media(min-width:601px) and (max-height:700px) and (pointer:fine){
 body.workspace-shell #workspace-menu nav button,body.workspace-shell #workspace-menu summary{min-height:34px;padding-block:6px}
}
@media(max-width:600px),(any-pointer:coarse){
 body.workspace-shell #workspace-menu nav button,body.workspace-shell #workspace-menu summary{min-height:44px;padding-block:9px}
}
/* Keep authorization-hidden entries hidden in every layout. */
body.workspace-shell #workspace-menu [hidden]{display:none}

/* A single vertical hierarchy: quick destinations, then related tools. */
body.workspace-shell #workspace-menu .menu-primary{margin-bottom:12px;padding-bottom:10px}
body.workspace-shell #workspace-menu .menu-more-label{margin-bottom:5px}
body.workspace-shell #workspace-menu .menu-fold summary>span{flex:1;min-width:0}
body.workspace-shell #workspace-menu .menu-fold summary .menu-chevron{flex:none}
body.workspace-shell #workspace-menu .menu-fold[open]>summary{background:#edf2ef;color:#173d34}
body.workspace-shell.home-v2 #workspace-menu .menu-fold[open]>summary{background:#ffffff10;color:#fff}
body.workspace-shell #workspace-menu .menu-subitems{margin:2px 4px 10px 18px;padding-left:8px}
body.workspace-shell #workspace-menu .menu-subitems button{width:100%;padding-left:12px;font-weight:400}
body.workspace-shell #workspace-menu .menu-subitems button .menu-icon{display:none}
body.workspace-shell #workspace-menu .menu-subitems button.active{font-weight:700}
body.workspace-shell #workspace-menu .menu-group h2 span,body.workspace-shell #workspace-menu .menu-more-label span{font-size:inherit;line-height:inherit}

/* Owner-only finance destination uses the existing vertical menu rhythm. */
body.workspace-shell #workspace-menu nav a[data-owner-link]{display:flex;align-items:center;min-height:40px;width:100%;padding:8px 12px;border-radius:8px;font-size:14px;line-height:1.35;color:#5e756b;text-decoration:none;box-sizing:border-box}
body.workspace-shell #workspace-menu nav a[data-owner-link]:hover{background:#edf2ef;color:#173d34}
body.workspace-shell.home-v2 #workspace-menu nav a[data-owner-link]{color:#e6efeb}
body.workspace-shell.home-v2 #workspace-menu nav a[data-owner-link]:hover{background:#ffffff10;color:#fff}
body.workspace-shell #workspace-menu nav a[data-owner-link]:focus-visible{outline:2px solid #d8a65c;outline-offset:2px}
body.workspace-shell #workspace-menu nav a[data-owner-link][hidden]{display:none}
@media(max-width:600px),(any-pointer:coarse){body.workspace-shell #workspace-menu nav a[data-owner-link]{min-height:44px}}
