/* V296 — Reseller sidebar keeps Sign Out visible in short Windows browser windows. */
@media (min-width: 761px) {
  #appView.app { min-height: 100vh; min-height: 100dvh; }
  #appView > aside.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }
  #appView > aside.sidebar > .brand { flex: 0 0 auto; }
  #appView > aside.sidebar > #nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #344a68 transparent;
    padding-bottom: 12px;
  }
  #appView > aside.sidebar > .sidebar-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  #appView > aside.sidebar #logoutBtn { min-height: 38px; }
}
@media (min-width: 761px) and (max-height: 500px) {
  #appView > aside.sidebar { padding-top: 8px; padding-bottom: 9px; }
  #appView > aside.sidebar .brand { padding-bottom: 10px; }
  #appView > aside.sidebar .wallet-mini { padding: 8px 10px; }
  #appView > aside.sidebar > .sidebar-footer { padding-top: 8px; gap: 7px; }
}
#modal .modal-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
