/* One sidebar only: scroll projects+chats, keep profile/settings fixed at bottom. */
#root .layout>.side{
 display:flex!important;flex-direction:column!important;gap:8px!important;
 height:100dvh!important;max-height:100dvh!important;min-height:0!important;
 overflow:hidden!important;padding-bottom:0!important;
}
#root .layout>.side>.brand{flex:0 0 auto!important;margin-bottom:6px}
#root .layout>.side>#newChat{flex:0 0 auto!important;margin-bottom:3px}
#root .layout>.side>.sava-side-scroll{
 display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;
 overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-gutter:stable;padding:2px 1px 14px;
}
#root .layout>.side .sava-side-scroll .side-history,
#root .layout>.side .sava-side-scroll .chat-history,
#root .layout>.side .sava-side-scroll .sava-ws-side,
#root .layout>.side .sava-side-scroll .sava-ws-tree{
 display:block;flex:0 0 auto!important;min-height:0!important;height:auto!important;
 max-height:none!important;overflow:visible!important;
}
#root .layout>.side>.sava-side-scroll nav.menu{flex:0 0 auto}
#root .layout>.side>.sava-side-scroll #moreFeatures{display:none!important}
#root .layout>.side>.sava-side-scroll nav.menu>a[href='/manage'],
#root .layout>.side>.sava-side-scroll nav.menu>a[href='/']{display:none!important}
#root .layout>.side>.sidebar-foot{
 flex:0 0 auto!important;position:relative!important;margin:0!important;
 padding:10px 3px max(12px,env(safe-area-inset-bottom))!important;
 background:var(--bg,#f8fbf9)!important;border-top:1px solid #e1e9e4;
 box-shadow:0 -5px 15px #14392008;z-index:3;
}
#root .layout>.side>.sidebar-foot>b,
#root .layout>.side>.sidebar-foot>p,
#root .layout>.side>.sidebar-foot>small,
#root .layout>.side>.sidebar-foot>#changePassword,
#root .layout>.side>.sidebar-foot>#logout{display:none!important}
#root .layout>.side .sava-sidebar-profile{
 display:flex;align-items:center;gap:10px;width:100%;min-height:48px;
 text-align:left;border:0;background:transparent;color:#245343;border-radius:12px;
 padding:7px 9px;cursor:pointer;font:inherit;
}
#root .layout>.side .sava-sidebar-profile:hover,
#root .layout>.side .sava-sidebar-profile:focus-visible{background:#e5f3eb}
#root .layout>.side .sava-sidebar-profile-icon{
 display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
 border-radius:11px;background:#e4f4eb;color:#0c7553;font-size:18px;
}
#root .layout>.side .sava-sidebar-profile-label{flex:1;min-width:0;display:grid;gap:2px}
#root .layout>.side .sava-sidebar-profile-label strong{font-size:13px}
#root .layout>.side .sava-sidebar-profile-label small{display:block;color:#728278;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#root .layout>.side .sava-ws-pinned>.sava-ws-folder-head>.sava-ws-folder-button{color:#086f54;font-weight:700}
#root .layout>.side .sava-ws-pinned>.sava-ws-folder-head>.sava-ws-folder-button::after{content:'  📌';font-size:11px}
@media(max-width:620px){
 #root .layout>.side.open{display:flex!important;height:100dvh!important;overflow:hidden!important}
 #root .layout>.side>.sava-side-scroll{scrollbar-gutter:auto}
}
#savaSidebarNotice{
 position:fixed;bottom:18px;right:18px;z-index:250050;
 max-width:min(440px,calc(100vw - 36px));padding:12px 15px;
 border:1px solid #c9e7d7;border-radius:13px;background:#eef8f2;
 color:#1a6748;font-size:13px;box-shadow:0 12px 30px #10291b22;
}
#savaSidebarNotice[data-error='true']{background:#fff3f2;border-color:#f1cac4;color:#a4342c}
#savaSidebarNotice[hidden]{display:none!important}
.sava-v4-option.sava-menu-danger{color:#bc3535}
