@media (max-width: 760px) {
  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .sidebar-brand,
  .sidebar-bottom {
    flex: 0 0 auto;
  }

  .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 28px;
  }

  .sidebar-nav::after {
    content: "";
    display: block;
    height: max(20px, env(safe-area-inset-bottom));
  }

  .sidebar-bottom {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    background: #fff;
  }
}
