/* V3.22. Restore the prior visible shell; only the center is data-dependent.
   Site-wide startup visibility is owned by index.html. Do not add a global
   body:not(ready) rule for headers, sidebars, mobile nav or SSR articles. */
.topbar .top-actions #sc322DiscordTop{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  gap:7px;
  min-height:42px;
  padding:8px 15px;
  border:0;
  border-radius:999px;
  background:#5865f2;
  color:#fff;
  font-weight:750;
  font-size:13px;
  line-height:1;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:0 4px 14px rgba(67,75,192,.18);
  cursor:pointer;
  transition:filter .16s ease,box-shadow .16s ease,transform .16s ease;
}
.topbar .top-actions #sc322DiscordTop svg{
  display:block;
  width:20px;
  height:20px;
  fill:currentColor;
  flex:0 0 auto;
}
.topbar .top-actions #sc322DiscordTop:hover{
  filter:brightness(1.08);
  box-shadow:0 5px 15px rgba(67,75,192,.22);
}
.topbar .top-actions #sc322DiscordTop:focus-visible{
  outline:3px solid #153d92;
  outline-offset:3px;
}
.topbar .top-actions #sc322DiscordTop:active{transform:translateY(1px)}
@media(max-width:760px){
  /* Same topbar DOM button. The original notification remains first, and
     the official Discord icon sits directly to its right on mobile. */
  .topbar .top-actions{align-items:center;gap:5px!important}
  .topbar #sc272Notifications{order:1}
  .topbar .top-actions #sc322DiscordTop{
    order:2;
    padding:0;
    width:40px;
    min-width:40px;
    height:40px;
    min-height:40px;
    border-radius:14px;
    font-size:0;
  }
  .topbar .top-actions #sc322DiscordTop svg{width:22px;height:22px}
  .topbar .top-actions #sc322DiscordTop .sc322-discord-label{display:none!important}
}
@media(max-width:420px){
  /* Keep bell + Discord in the actual 320px viewport without horizontal
     overflow. Language switch, search and Signal logo remain available. */
  .topbar .sc272-mobile-brand strong{display:none!important}
  .topbar .sc272-mobile-brand{max-width:36px!important;gap:0!important}
  .topbar .search-wrap{flex:1 1 48px;min-width:48px}
  .topbar .top-actions #sc322DiscordTop{width:38px;min-width:38px;height:38px;min-height:38px}
}
@media(prefers-reduced-motion:reduce){
  .topbar .top-actions #sc322DiscordTop{transition:none}
}
