@media (max-width: 900px) {
  .app-topbar > .topbar-user > .signout-button {
    display: none !important;
  }

  .app-topbar {
    padding-inline: 10px;
    gap: 8px;
  }

  .topbar-left,
  .topbar-user {
    min-width: 0;
  }

  .topbar-left {
    gap: 8px;
  }

  .topbar-user {
    gap: 6px;
  }

  /* Keep the mobile drawer inside the visible browser viewport. */
  .app-sidebar {
    height: calc(100vh - 68px) !important;
    height: calc(100dvh - 68px) !important;
    max-height: calc(100dvh - 68px);
    overflow: hidden;
  }

  .app-sidebar .sidebar-content {
    min-height: 0;
    overflow: hidden;
    padding-bottom: max(17px, env(safe-area-inset-bottom));
  }

  .app-sidebar .sidebar-section {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

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

  .app-sidebar .sidebar-footer {
    flex: 0 0 auto;
    margin-top: auto;
    background: #fff;
  }

  .mobile-sidebar-signout {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #cbd8e5;
    border-radius: 10px;
    background: #fff;
    color: #0f3554;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-sidebar-signout:hover,
  .mobile-sidebar-signout:focus-visible {
    border-color: #356ac3;
    background: #eef5fb;
    color: #245fb7;
    outline: none;
  }

  .mobile-sidebar-signout:disabled {
    cursor: not-allowed;
    opacity: 0.65;
  }

  .mobile-sidebar-signout-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
  }

  .mobile-sidebar-signout-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (min-width: 901px) {
  .mobile-sidebar-signout {
    display: none !important;
  }
}
