/* Forum lists: edge-to-edge bands and separators; text retains its inset. */
html body .wapper .content .block:has(> :is(#forum,#forum_topics)){
 padding-left:0!important;padding-right:0!important;
}
html body .wapper .content .block:has(> :is(#forum,#forum_topics))>.block_head{
 margin-left:0!important;margin-right:0!important;padding-left:30px!important;padding-right:30px!important;
}
html body .wapper .content .block>:is(#forum,#forum_topics){
 width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
}
html body .wapper .content :is(#forum,#forum_topics) .row{
 margin-left:0!important;margin-right:0!important;
}
html body .wapper .content :is(#forum,#forum_topics) .col-lg-12{
 padding-left:0!important;padding-right:0!important;
}
html body .wapper .content :is(#forum,#forum_topics) h2{
 margin-left:0!important;margin-right:0!important;padding-left:30px!important;padding-right:30px!important;
}
html body .wapper .content :is(#forum,#forum_topics) :is(.col-lg-8,.col-lg-4){
 padding-left:24px!important;padding-right:24px!important;
}

/* Friends search: remove only the extra 24px wrapper inset from the template. */
html body .wapper .content .block.block-search.am-friends-card>.input-search:has(> #search_login){
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin-left:0!important;margin-right:0!important;
}

/* Lists: the heading owns its glow, so it cannot spill beneath a menu row. */
html body .wapper .content .block.am-friends-lists:has(#infriends-tab){
 padding:0!important;background-image:none!important;overflow:hidden!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab)>.block_head{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 height:56px!important;min-height:56px!important;margin:0!important;padding:0 24px!important;
 background-image:radial-gradient(ellipse 34% 90% at 30% 48%,rgba(167,216,248,.28),rgba(79,150,204,.15) 49%,transparent 100%),radial-gradient(ellipse 75% 120% at 30% 40%,rgba(45,94,141,.09),transparent 85%)!important;
 background-size:100% 100%!important;background-repeat:no-repeat!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab) .vertical-navigation,
html body .wapper .content .block.am-friends-lists:has(#infriends-tab) .vertical-navigation>ul{
 margin:0!important;padding:0!important;width:100%!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab) .vertical-navigation>ul>li{
 padding:0!important;margin:0!important;width:100%!important;background:transparent!important;
 border-left:0!important;box-shadow:none!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab) .vertical-navigation>ul>li>a{
 box-sizing:border-box!important;display:block!important;width:100%!important;
 height:auto!important;min-height:44px!important;margin:0!important;padding:12px 24px!important;
 line-height:20px!important;background:transparent!important;box-shadow:none!important;
 white-space:normal!important;overflow-wrap:anywhere!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab) .vertical-navigation>ul>li:is(.active,.selected,:hover,:focus-within,:has(>a.active),:has(>a[aria-current="page"])){
 background:linear-gradient(90deg,rgba(48,95,123,.31),rgba(46,76,103,.12))!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab) .vertical-navigation>ul>li>a:focus-visible{
 outline:2px solid #b79a63!important;outline-offset:-3px!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab)>.am-friends-list-footer{
 height:10px!important;min-height:10px!important;max-height:10px!important;
 margin:0!important;padding:0!important;background:transparent!important;
}

/* Quoted forum messages: retain content, author links and original text size. */
html body .wapper .content .topic-answers .with_code blockquote{
 box-sizing:border-box!important;max-width:100%!important;margin:0 0 10px!important;
 padding:12px 14px!important;border:1px solid #435668!important;border-left:3px solid #b79a63!important;
 border-radius:6px!important;background:linear-gradient(110deg,rgba(39,60,77,.8),rgba(24,36,49,.82))!important;
 color:inherit!important;font-size:inherit!important;overflow-wrap:anywhere;
}
@media(max-width:991.98px){
 html.am-mobile-layout body .wapper .content .block:has(> :is(#forum,#forum_topics))>.block_head,
 html.am-mobile-layout body .wapper .content :is(#forum,#forum_topics) h2{
  padding-left:14px!important;padding-right:14px!important;
 }
 html.am-mobile-layout body .wapper .content :is(#forum,#forum_topics)>.row,
 html.am-mobile-layout body .wapper .content #forum_topics.row{
  padding-left:0!important;padding-right:0!important;
 }
 html.am-mobile-layout body .wapper .content :is(#forum,#forum_topics) .col-lg-8{
  padding-left:14px!important;padding-right:14px!important;
 }
 html.am-mobile-layout body .wapper .content .topic-answers .with_code blockquote{
  padding:10px!important;
 }
}

/* Transparent avatar pixels show the forum card instead of the old purple fill.
   Applies to the avatar element, without altering image files or animation. */
html body .wapper .content .topic-answers div[id^="answer"] .center-area .left-side img{
 background:transparent!important;box-shadow:none!important;
}

/* Put the small rounded tail inside the last link's clickable/painted area. */
html body .wapper .content .block.am-friends-lists:has(#infriends-tab)>.am-friends-list-footer{
 display:none!important;height:0!important;min-height:0!important;max-height:0!important;
}
html body .wapper .content .block.am-friends-lists:has(#infriends-tab) .vertical-navigation>ul>li:last-child>a{
 padding-bottom:22px!important;
}
