.app-shell{display:flex;flex:1;min-height:0;min-width:0}
.app-shell>main{flex:1;min-width:0}
.app-nav{width:232px;min-width:232px;height:auto;min-height:0;padding:22px 12px;display:flex;flex-direction:column;align-items:stretch;gap:4px;overflow-y:auto;overflow-x:hidden;border-right:1px solid var(--line);border-bottom:0}
.app-nav>a{min-height:42px;padding:0 12px;border-radius:7px;gap:10px;white-space:normal;line-height:1.4;font-size:12px}
.app-nav>a svg{width:17px;height:17px}
.app-nav>a[aria-current=page]{background:var(--accent-soft)}
.app-nav a[aria-current=page]:after{display:none}
.app-subnav{display:flex;flex-direction:column;gap:2px;margin:0 0 9px 20px;padding:2px 0 2px 15px;border-left:1px solid var(--line)}
.app-subnav a{display:flex;align-items:center;min-height:34px;padding:0 11px;border-radius:6px;color:var(--muted);text-decoration:none;font-size:12px}
.app-subnav a [data-status-count]{margin-left:auto;padding:2px 6px;min-width:25px;border-radius:5px;background:var(--surface-alt);color:var(--secondary);text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.app-subnav a[aria-current=page] [data-status-count]{background:var(--surface);color:var(--green)}
.app-subnav a:hover{background:var(--row-hover);color:var(--green)}
.app-subnav a[aria-current=page]{background:var(--accent-soft);color:var(--green);font-weight:600}
.nav-theme-footer{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:auto;padding:15px 0 2px}
.nav-theme-footer button{justify-content:flex-start;width:100%;min-height:42px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:14px}
.nav-theme-footer button:hover{background:var(--row-hover);color:var(--green)}
.nav-theme-footer button svg{width:18px;height:18px}
.nav-brand-name{padding:0 12px;color:var(--muted);font-size:12px;line-height:1.5}
.sidebar-toggle{display:none}
@media(max-width:900px) and (min-width:601px){.app-nav{width:194px;min-width:194px;padding:16px 9px}.app-nav>a{padding:0 9px;font-size:11px}.app-subnav{margin-left:16px;padding-left:10px}}
@media(max-width:600px){
  .app-shell{display:block;min-height:0}
  .app-shell>main{width:100%}
  .sidebar-toggle{display:inline-flex;padding:7px;flex-shrink:0}
  .topbar{gap:9px}
  .topbar>.top-divider,.workspace-label,.top-right>.top-divider{display:none}
  .top-right{gap:4px}
  .app-nav{position:fixed;z-index:90;top:57px;bottom:0;left:0;width:min(260px,82vw);min-width:0;padding:15px 11px;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:8px 0 28px #182c2730}
  body.sidebar-open .app-nav{transform:translateX(0);visibility:visible}
  .sidebar-backdrop:not([hidden]){position:fixed;z-index:89;inset:57px 0 0;background:#17242b65}
}
