/* Keep the main menu and account actions in separate areas, including short windows. */
body > aside.app-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 24px 16px 16px;
}
body > aside.app-sidebar > .brand {
  flex: 0 0 auto;
}
body > aside.app-sidebar > .brand small {
  margin-bottom: 24px;
}
body > aside.app-sidebar > #nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 4px;
  margin: 0 -4px;
}
body > aside.app-sidebar > #nav > button {
  flex: 0 0 auto;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.35;
}
body > aside.app-sidebar > .asidefoot {
  position: static;
  inset: auto;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: white;
}
body > aside.app-sidebar > .asidefoot > button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #245f50;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}
body > aside.app-sidebar > .asidefoot > button:hover {
  background: #eef5f1;
}
body > aside.app-sidebar button:focus-visible {
  outline: 3px solid #3680aa;
  outline-offset: -3px;
}
@media (max-width: 760px) {
  body > aside.app-sidebar {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 18px 16px;
  }
  body > aside.app-sidebar > #nav {
    flex-direction: row;
    flex: 0 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 12px;
  }
  body > aside.app-sidebar > #nav > button {
    width: auto;
    white-space: nowrap;
  }
  body > aside.app-sidebar > .asidefoot {
    display: none;
  }
}
