/* The control stays outside the moving menu so it remains reachable. */
#shell{--sidebar-width:260px;--sidebar-motion:280ms cubic-bezier(.22,.75,.25,1)}
#shell>.sidebar{width:var(--sidebar-width);transform:translateX(0);visibility:visible;transition:transform var(--sidebar-motion),visibility 0s}
#shell>.workspace{min-width:0;margin-left:var(--sidebar-width);transition:margin-left var(--sidebar-motion)}
#shell>.workspace>.topbar{transition:padding-left var(--sidebar-motion)}
#shell>.sidebar-toggle{position:fixed;z-index:40;top:32px;left:calc(var(--sidebar-width) - 16px);width:32px;height:40px;display:grid;place-items:center;padding:0;border:1px solid #bfaed8;border-radius:10px;color:#6138b5;background:linear-gradient(145deg,#faf7ff,#e7def3);box-shadow:0 3px 12px #42236820;transition:left var(--sidebar-motion),background .18s,box-shadow .18s}
#shell>.sidebar-toggle:hover{background:#f6f0ff;box-shadow:0 4px 15px #6339cd30}
#shell>.sidebar-toggle:focus-visible{outline:3px solid #8050f1;outline-offset:3px}
.sidebar-toggle svg{width:20px;height:20px;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--sidebar-motion)}
#shell.sidebar-collapsed>.sidebar{transform:translateX(-100%);visibility:hidden;transition:transform var(--sidebar-motion),visibility 0s 280ms}
#shell.sidebar-collapsed>.workspace{margin-left:0}
#shell.sidebar-collapsed>.workspace>.topbar{padding-left:60px}
#shell.sidebar-collapsed>.sidebar-toggle{left:12px}
#shell.sidebar-collapsed>.sidebar-toggle svg{transform:rotate(180deg)}
body.presenter #shell>.sidebar-toggle{display:none}
body.presenter #shell>.workspace{margin-left:0;transition:none}
body.presenter #shell>.workspace>.topbar{padding-left:24px;transition:none}
@media(min-width:981px) and (max-width:1200px){#shell{--sidebar-width:230px}}
@media(max-width:980px){#shell{--sidebar-width:76px}}
@media(max-width:650px){
 #shell>.sidebar-toggle{top:20px}
 #shell>.workspace{margin-left:0}
 #shell>.sidebar{z-index:36;box-shadow:10px 0 30px #33204f20}
 #shell:not(.sidebar-collapsed)>.workspace>.topbar{padding-left:104px}
 #shell>.sidebar .nav[data-section]{font-size:0}
 body.presenter #shell>.workspace>.topbar{padding-left:15px}
}
@media(prefers-reduced-motion:reduce){#shell>.sidebar,#shell>.sidebar-toggle,#shell>.workspace,#shell>.workspace>.topbar,.sidebar-toggle svg{transition:none!important}}
@media print{#shell>.sidebar-toggle{display:none!important}}
