/* Floating rounded navigation. Load after workspace-polish.css.
 * Full: 12px outer gutter + 232px panel + 12px reading gutter = 256px.
 * Icons: 12px outer gutter + 70px panel + 12px reading gutter = 94px.
 * The flyout remains attached to document.body and uses the sidebar's live rect.
 */
@media screen and (min-width:761px){
 body:not(.mw-enabled):not(.touch-fullscreen){--sr-sidebar-pane:232px;--sr-sidebar-edge:12px;--sr-sidebar-gap:12px}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"]{--sr-sidebar-pane:70px}
 body:not(.mw-enabled):not(.touch-fullscreen) .app-shell,
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .app-shell{grid-template-columns:calc(var(--sr-sidebar-edge) + var(--sr-sidebar-pane) + var(--sr-sidebar-gap)) minmax(0,1fr)}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar{
  inset:var(--sr-sidebar-edge) auto var(--sr-sidebar-edge) var(--sr-sidebar-edge);
  width:var(--sr-sidebar-pane);
  height:calc(100dvh - var(--sr-sidebar-edge) - var(--sr-sidebar-edge));
  max-height:calc(100dvh - var(--sr-sidebar-edge) - var(--sr-sidebar-edge));
  padding:19px 12px 15px;
  border:1px solid #e2eae5;
  border-radius:24px 32px 26px 24px;
  background:#ffffffed;
  box-shadow:0 6px 22px #244a3008;
  overflow:visible;
 }
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .brand{padding:0 4px 17px}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .sidebar-bottom{padding:13px 10px 0;margin-top:9px}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .sidebar-status{line-height:1.7}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .sidebar-bottom p{margin:6px 0 0}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button{border-radius:10px}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar :is(.nav-button,.nav-mode-toggle,.nav-icon-search,.nav-sort-handle):focus-visible{outline:2px solid var(--vi-sand,#c6986f);outline-offset:2px}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar{
  width:var(--sr-sidebar-pane);
  padding:16px 8px 15px;
  border-radius:24px 30px 26px 24px;
 }
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .brand{padding:0 0 16px;justify-content:center}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .brand-mark{width:44px;height:44px;flex:none}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar-nav-tools{margin-top:12px;margin-bottom:10px;gap:7px}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar :is(.nav-mode-toggle,.nav-icon-search){width:44px;min-width:44px;height:40px;min-height:40px;padding:8px}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .nav-button{width:48px;min-width:48px;max-width:48px;min-height:46px;padding:12px;gap:0;border-radius:12px}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .nav-button>.icon{display:inline-flex;width:21px;height:21px;flex:none}
 body:not(.mw-enabled):not(.touch-fullscreen)[data-desktop-nav="icons"] .sidebar .nav{width:100%;padding:0;scrollbar-width:none}
 body:not(.mw-enabled):not(.touch-fullscreen) .nav-flyout{border-radius:16px 20px 20px 16px}
}
@media(hover:hover) and (pointer:fine) and (min-width:761px){
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button:not(.active):hover{background:#eef4ef;color:#244a30}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button.active:hover{background:#2e583b;color:#fff}
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar :is(.nav-mode-toggle,.nav-icon-search):hover{background:#edf3ee;color:#244a30}
}
@media screen and (min-width:761px){
 /* Keep the focus ring visible inside the scrollable navigation strip. */
 body:not(.mw-enabled):not(.touch-fullscreen) .sidebar .nav-button:focus-visible{outline-offset:-3px}
}
