/* Nygui R6.1 — one document scroll on desktop.
   Previous R2 rule fixed the sidebar to 100dvh, so it physically ended
   partway down a long page and introduced a second independent scrollbar.
   The sidebar now stretches alongside the complete main page and scrolls
   together with it; the small-screen slide-out menu retains its own scroll. */
@media (min-width: 801px) {
  .app-shell { align-items: stretch !important; }
  .app-shell > aside.sidebar {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    bottom: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100vh !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
    align-self: stretch !important;
  }
  .app-shell > aside.sidebar #mainNav {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
  .app-shell > aside.sidebar .sidebar-bottom {
    position: static !important;
    margin-top: 28px !important;
  }
}
/* Make availability obvious without opening Messenger first.  The existing
   launcher keeps its exact click handler (open/close chats). */
#nyugiChatLauncher .nygui-r61-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #ffffff66;
  background: #00000026;
  color: inherit;
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
#nyugiChatLauncher .nygui-r61-dot {
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nygui-r61-indicator, #999);
  border: 1px solid #fff8;
}
@media (max-width: 760px) {
  /* Native phone dock already hides the launcher label; retain a readable dot
     without widening the circular touch target or covering its icon. */
  #nyugiChatLauncher .nygui-r61-presence {
    display: inline-flex !important;
    position: absolute;
    top: -6px;
    right: -6px;
    margin: 0;
    padding: 3px;
    border: 1px solid #fff;
    background: var(--surface);
    min-width: 17px;
    min-height: 17px;
    align-items: center;
    justify-content: center;
  }
  #nyugiChatLauncher .nygui-r61-presence-label { display: none !important; }
  #nyugiChatLauncher .nygui-r61-dot { flex-basis: 9px; }
}
