#app{min-height:100vh}
.app-shell{display:grid;grid-template-columns:var(--sidebar-w) 1fr;min-height:100vh}
.sidebar{background:var(--green-800);color:#fff;padding:16px;position:sticky;top:0;height:100vh;overflow-y:auto}
.sidebar .brand{display:flex;align-items:center;gap:10px;padding:8px 0 20px;font-weight:700;font-size:18px}
.sidebar .brand img{width:32px;height:32px}
.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#c8e6c9;font-weight:500;margin-bottom:2px;transition:all .15s}
.nav-item:hover{background:rgba(255,255,255,.1);color:#fff}
.nav-item.active{background:var(--green-600);color:#fff}
.nav-item .icon{width:20px;text-align:center}
.main-area{display:flex;flex-direction:column;min-height:100vh}
.topbar{height:var(--topbar-h);background:#fff;border-bottom:1px solid var(--gray-200);display:flex;align-items:center;padding:0 16px;gap:12px;position:sticky;top:0;z-index:50}
.topbar .user-chip{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:20px;background:var(--gray-100)}
.avatar{width:28px;height:28px;border-radius:50%;background:var(--green-500);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:12px}
.content{flex:1;padding:20px}
.bottom-nav{display:none}
@media(max-width:1024px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:fixed;left:-100%;top:0;width:var(--sidebar-w);z-index:100;transition:left .25s}
  .sidebar.open{left:0}
  .bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:var(--bottomnav-h);background:#fff;border-top:1px solid var(--gray-200);z-index:90;justify-content:space-around;align-items:center}
  .bottom-nav .bn-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;color:var(--gray-500);gap:2px;height:100%}
  .bottom-nav .bn-item.active{color:var(--green-600)}
  .bottom-nav .bn-item .icon{font-size:18px}
  .content{padding-bottom:calc(var(--bottomnav-h) + 12px)}
}
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99;display:none}
.overlay.show{display:block}
