/* ATREYA_SIDEBAR_SB01R2_GLOBAL_LOGOUT_ANCHOR */
/*
  Global authenticated-sidebar logout placement authority.
  The existing logout element is reused and anchored directly below the page navigation.
  No page renderer, logout handler, auth logic, route logic, theme, language or responsive shell is rewritten.
*/
.d03-sidebar > .atreya-sb01r2-logout-slot,
aside.sidebar > .atreya-sb01r2-logout-slot,
.app-shell > aside.sidebar > .atreya-sb01r2-logout-slot{
  display:block !important;
  flex:0 0 auto !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:7px 14px 10px !important;
  margin:0 !important;
  position:relative !important;
  z-index:7 !important;
}

.atreya-sb01r2-logout-slot > .atreya-sb01r2-logout{
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  float:none !important;
  clear:both !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  transform:none !important;
  flex:0 0 auto !important;
  z-index:8 !important;
}

.atreya-sb01r2-logout-slot > .d03-logout.atreya-sb01r2-logout,
.atreya-sb01r2-logout-slot > #logoutBtn.atreya-sb01r2-logout,
.atreya-sb01r2-logout-slot > [data-action="logout"].atreya-sb01r2-logout{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* Decorative/account regions remain below the common logout position. */
.d03-sidebar > .atreya-sb01r2-logout-slot + .d03-side-art,
aside.sidebar > .atreya-sb01r2-logout-slot + .side-foot{
  margin-top:0 !important;
}

/* Never force a desktop sidebar into mobile/tablet layouts. */
@media (max-width:900px){
  .d03-sidebar > .atreya-sb01r2-logout-slot,
  aside.sidebar > .atreya-sb01r2-logout-slot,
  .app-shell > aside.sidebar > .atreya-sb01r2-logout-slot{
    width:100% !important;
  }
}
