:root {
  --wl-brand: #2563eb;
  --wl-brand-soft: #eff6ff;
  --wl-sidebar-width: 132px;
  --wl-title-width: 196px;
  --vp-sidebar-width: var(--wl-sidebar-width);
}

@media (min-width: 960px) {
  .VPNavBarTitle.has-sidebar {
    width: var(--wl-title-width) !important;
  }

  .VPNavBar.has-sidebar .content {
    padding-left: calc(var(--wl-title-width) + 32px) !important;
  }

  .VPSidebar {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: var(--wl-sidebar-width) !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(243, 246, 250, 0.92));
    border-right: 1px solid rgba(226, 232, 240, 0.72);
  }

  .VPSidebar .group,
  .VPSidebarGroup {
    width: 100% !important;
    max-width: 100% !important;
  }

  .wl-sidebar-outline {
    margin-bottom: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.96));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 10px 9px 8px;
  }

  .wl-sidebar-outline__title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--vp-c-text-1);
  }

  .wl-sidebar-outline__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .wl-sidebar-outline__item + .wl-sidebar-outline__item {
    margin-top: 4px;
  }

  .wl-sidebar-outline__link {
    display: block;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.4;
    font-size: 12px;
    color: var(--vp-c-text-2);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .wl-sidebar-outline__link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--wl-brand);
  }

  .VPSidebarItem .item {
    justify-content: center;
    min-height: 28px;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 8px;
  }

  .VPSidebarItem .link {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .VPSidebarItem .text {
    width: 100%;
    min-width: 0;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.35;
  }

  .VPSidebarItem.is-active > .item,
  .VPSidebarItem .item:hover {
    background: var(--wl-brand-soft);
  }

  .VPSidebarItem .indicator,
  .VPSidebarItem .caret,
  .VPDoc.has-aside .aside {
    display: none !important;
  }

  .VPDoc.has-aside .content {
    padding-right: 0 !important;
  }

  .VPDoc.has-aside .content-container {
    max-width: 820px !important;
  }
}

.dark .VPSidebar {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.92));
  border-right-color: rgba(51, 65, 85, 0.72);
}

.dark .wl-sidebar-outline {
  border-color: rgba(51, 65, 85, 0.88);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
}
