/* Farm Flow v0.9.17 – Mobile Logout */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mobile-logout-btn {
  display: none;
}

@media (max-width: 680px) {
  .topbar {
    gap: 8px !important;
  }

  .topbar-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .topbar-left > div {
    min-width: 0;
  }

  .topbar-left h2,
  .topbar-left .eyebrow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px !important;
  }

  .mobile-logout-btn {
    display: grid !important;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #d3dfeb !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #b7473a !important;
    box-shadow: 0 8px 18px rgba(20, 48, 68, .08);
    font-size: 20px;
  }

  .mobile-logout-btn:hover,
  .mobile-logout-btn:focus-visible {
    background: #fff1ef !important;
    border-color: #e7b9b2 !important;
    color: #9d3429 !important;
    outline: none;
  }

  .mobile-logout-btn.is-loading {
    pointer-events: none;
    opacity: .62;
  }

  .sidebar {
    overflow: hidden !important;
    padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }

  .sidebar-head {
    flex: 0 0 auto;
  }

  .sidebar .nav-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.28) transparent;
  }

  .sidebar .nav-list::-webkit-scrollbar {
    width: 5px;
  }

  .sidebar .nav-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.28);
    border-radius: 999px;
  }

  .sidebar-story {
    display: none !important;
  }

  .sidebar-user {
    flex: 0 0 auto;
    margin-top: 10px;
    padding: 12px 7px 0 !important;
    border-top: 1px solid rgba(255,255,255,.12);
    background: transparent;
  }

  .sidebar-user #logout-btn {
    width: 42px;
    height: 42px;
    color: #ffffff !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
  }
}

@media (max-width: 430px) {
  .topbar {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .topbar h2 {
    max-width: 115px;
  }

  .topbar .eyebrow {
    max-width: 115px;
  }

  .mobile-logout-btn {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}
