.menu-backdrop {
  display: none;
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  .shell aside {
    z-index: 30;
    width: min(310px, 88vw);
    height: 100vh;
    height: 100dvh;
    box-shadow: 18px 0 45px #080b1070;
    transition: transform .2s ease;
    overscroll-behavior: contain;
  }

  .shell aside.open + .menu-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    visibility: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #080b1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .menu-backdrop:hover {
    background: #080b1090;
  }

  .brand {
    height: 78px;
    flex: 0 0 78px;
    padding: 14px 22px;
  }

  .shell nav {
    flex: 1;
    min-height: 0;
    padding: 10px 12px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .nav-section {
    margin-bottom: 8px;
  }

  .nav-section > b {
    padding-top: 5px;
  }

  .shell nav button {
    min-height: 42px;
  }

  .profile {
    flex: 0 0 auto;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}
