/* RBS Forum R26 - compact friends panel and profile wallpaper tint.
   Leaves account-owned backgrounds and all server-side friend data intact. */

/* Personalized profile wallpaper remains enabled; darker tone for Anonymous/Breach. */
@supports selector(:has(*)) {
  body.rbs-modern.rbs-breach .wapper > .content:has(.profile-page) {
    background-color: #041a14 !important;
    background-blend-mode: multiply;
  }
}

/* Four cards by default, exactly two columns even on narrow phones. */
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 8px;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-grid::after {
  display: none !important;
  content: none !important;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-grid[data-rbs26-view="collapsed"] > a.small-friend:nth-of-type(n+5) {
  display: none !important;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-panel {
  overflow: hidden;
  border: 1px solid rgba(34, 183, 130, .25);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(1, 31, 26, .96), rgba(2, 24, 24, .96));
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-panel > .block_head {
  border-bottom: 1px solid rgba(44, 201, 141, .23);
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-panel > .block_head a {
  color: #62f2b5;
  text-decoration: none;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-panel > .block_head a:hover {
  color: #ecfff7;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-panel > .block_head small {
  font-size: .77em;
  color: #91c9b6;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-more,
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin: 8px 0 3px;
  border: 1px solid rgba(26, 222, 151, .66);
  border-radius: 10px;
  background: rgba(0, 67, 49, .52);
  color: #b9ffe3;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-more:hover,
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-all-link:hover {
  background: rgba(8, 105, 72, .72);
  border-color: #3bf5ad;
  color: white;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-more:focus-visible,
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-all-link:focus-visible {
  outline: 2px solid #47ffc0;
  outline-offset: 3px;
}
body.rbs-modern.rbs-breach .profile-page .rbs26-friends-more[hidden] {
  display: none !important;
}
@media (max-width: 575.98px) {
  body.rbs-modern.rbs-breach .profile-page .rbs26-friends-grid { gap: 8px; }
  body.rbs-modern.rbs-breach .profile-page .rbs26-friends-more { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.rbs-modern.rbs-breach .profile-page .rbs26-friends-more { transition: none; }
}
