/* Floating navigation frame. The aside retains the existing scroll state. */
.app-shell {
  --shell-gap: 10px;
  --content-inset: 16px;
  --navigation-surface: #1b1b1f;
  --navigation-border: #55555e;
  --navigation-radius: 20px;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: var(--shell-gap);
  gap: var(--shell-gap);
  overflow: hidden;
}
.app-shell > .workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: var(--shell-gap);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.app-shell > .sidebar-frame {
  box-sizing: border-box;
  position: sticky;
  top: var(--shell-gap);
  align-self: start;
  height: calc(100vh - var(--shell-gap) - var(--shell-gap));
  height: calc(100dvh - var(--shell-gap) - var(--shell-gap));
  min-height: 0;
  margin: 0;
  padding: 12px 5px 12px 0;
  border: 1px solid var(--navigation-border);
  border-radius: var(--navigation-radius);
  background: var(--navigation-surface);
  box-shadow: 0 10px 28px #0003;
  overflow: hidden;
  z-index: 20;
}
/* Keep native scrollbar controls clear of both rounded ends. */
.app-shell .sidebar-frame > .sidebar.sidebar {
  box-sizing: border-box;
  position: relative;
  z-index: auto;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 6px 8px 2px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f2f1ed;
  box-shadow: none;
  transform: none;
  transition: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #626a60 transparent;
  overscroll-behavior: contain;
}
.app-shell .sidebar-frame :is(.wordmark, .sidebar-label, .side-nav, .sidebar-foot, .sidebar-social) {
  background: transparent;
}
/* The team mark stays visible while the navigation itself scrolls. */
.app-shell .sidebar-frame > .sidebar.sidebar > .wordmark {
  position: sticky;
  top: 0;
  z-index: 5;
  isolation: isolate;
  padding-block: 4px 12px;
  background: var(--navigation-surface);
}
.app-shell .sidebar-frame > .sidebar.sidebar > .wordmark::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -6px -8px 0 -12px;
  background: var(--navigation-surface);
}
.app-shell .sidebar-frame .side-nav {
  flex: none;
  overflow: visible;
  max-height: none;
}
.app-shell .sidebar-frame .sidebar-foot {
  margin-top: auto;
  border-top-color: var(--navigation-border);
}
/* Blink/WebKit: remove Windows arrow buttons and keep a rounded thumb. */
@supports selector(::-webkit-scrollbar) {
  .app-shell .sidebar-frame > .sidebar.sidebar { scrollbar-width: auto; }
  .app-shell .sidebar-frame > .sidebar::-webkit-scrollbar { width: 7px; }
  .app-shell .sidebar-frame > .sidebar::-webkit-scrollbar-track { background: transparent; }
  .app-shell .sidebar-frame > .sidebar::-webkit-scrollbar-thumb {
    border: 1px solid var(--navigation-surface);
    border-radius: 8px;
    background: #626a60;
  }
  .app-shell .sidebar-frame > .sidebar::-webkit-scrollbar-thumb:hover { background: #899183; }
  .app-shell .sidebar-frame > .sidebar::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }
}
.app-shell > .workspace > .app-topbar {
  box-sizing: border-box;
  position: relative;
  top: auto;
  margin: 0;
  align-items: center;
  padding: 10px var(--content-inset);
  border: 1px solid var(--navigation-border);
  border-radius: var(--navigation-radius);
  background: var(--navigation-surface);
  box-shadow: 0 8px 24px #0002;
}
.app-shell > .workspace > .main-frame {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: var(--shell-gap) 5px var(--shell-gap) 0;
  border: 1px solid var(--navigation-border);
  border-radius: var(--navigation-radius);
  background: #000;
  overflow: hidden;
}
.app-shell > .workspace > .main-frame > .main-content {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #5e5e66 transparent;
}
@media (min-width: 861px) {
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
    transition: grid-template-columns .28s cubic-bezier(.2,.7,.2,1), column-gap .28s cubic-bezier(.2,.7,.2,1);
  }
  .app-shell > .sidebar-frame {
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transition: opacity .14s ease, visibility 0s;
  }
  .app-shell.menu-collapsed {
    grid-template-columns: 0px minmax(0, 1fr);
    column-gap: 0;
  }
  .app-shell.menu-collapsed > .sidebar-frame {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .14s ease, visibility 0s linear .28s;
  }
}
@media (max-width: 860px) {
  .app-shell { --content-inset: 12px; }
  .app-shell > .sidebar-frame {
    position: fixed;
    left: var(--shell-gap);
    top: var(--shell-gap);
    top: max(var(--shell-gap), env(safe-area-inset-top, 0px));
    bottom: auto;
    width: min(244px, calc(100vw - 20px));
    /* Give WebKit a definite containing height for the 100%-high scrollable aside. */
    height: calc(100vh - var(--shell-gap) - var(--shell-gap));
    height: calc(100vh - max(var(--shell-gap), env(safe-area-inset-top, 0px)) - max(var(--shell-gap), env(safe-area-inset-bottom, 0px)));
    height: calc(100dvh - var(--shell-gap) - var(--shell-gap));
    height: calc(100dvh - max(var(--shell-gap), env(safe-area-inset-top, 0px)) - max(var(--shell-gap), env(safe-area-inset-bottom, 0px)));
    margin: 0;
    transform: translateX(calc(-100% - 20px));
    transition: transform .2s ease;
  }
  .app-shell.menu-open > .sidebar-frame {
    transform: translateX(0);
    box-shadow: 0 18px 48px #0007;
  }
  .app-shell > .workspace > .app-topbar {
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell { transition: none; }
  .app-shell > .sidebar-frame { transition: none; }
}

/* Page background requested as pure black; floating navigation keeps its surface. */
html,body,.app-shell,.app-shell>.workspace{background-color:#000000}

/* Group names stay whole inside the navigation width. */
.app-shell .sidebar-frame .nav-section-toggle{gap:8px;padding-inline:8px}
.app-shell .sidebar-frame .nav-section-title{white-space:nowrap;overflow-wrap:normal;word-break:normal;min-width:0;font-size:12px;letter-spacing:normal}
.app-shell .sidebar-frame .nav-section-toggle>.nav-group-icon{width:16px;height:16px;flex:0 0 16px}
.app-shell .sidebar-frame .nav-group-chevron{width:12px;height:12px;flex:0 0 12px}

/* Fade clipped scrolling content into the frame; overlays never intercept controls. */
.app-shell > .workspace > .main-frame { position: relative; isolation: isolate; }
.app-shell > .workspace > .main-frame::before,
.app-shell > .workspace > .main-frame::after {
  content: "";
  position: absolute;
  left: var(--shell-gap);
  right: 16px;
  height: 20px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s linear;
}
.app-shell > .workspace > .main-frame::before {
  top: var(--shell-gap);
  background: linear-gradient(to bottom, #000, #0000);
}
.app-shell > .workspace > .main-frame.has-sticky-fade-header::before {
  top: var(--scroll-fade-top);
}
.app-shell > .workspace > .main-frame::after {
  bottom: var(--shell-gap);
  background: linear-gradient(to top, #000, #0000);
}
.app-shell > .workspace > .main-frame.has-scroll-before::before,
.app-shell > .workspace > .main-frame.has-scroll-after::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .app-shell > .workspace > .main-frame::before,
  .app-shell > .workspace > .main-frame::after { transition: none; }
}
@media print {
  .app-shell > .workspace > .main-frame::before,
  .app-shell > .workspace > .main-frame::after { display: none; }
}
