scan css and look for faulty css code that can cause web performance degrade/mem leak etc. this is a collection of css made for discord, especially the new discord visual refresh ui:
/* ==== imports ==== */
@import url("https://croissantdunord.github.io/discord-adblock/adblock.css");
@import url("https://raw.githubusercontent.com/surgedevs/visual-refresh-compact-title-bar/refs/heads/main/hidden.css");
@import url("https://davart154.github.io/Themes/Snippets/Simplified%20Panel%20Area/SimplifiedPanelArea.css");
@import url("https://raw.githubusercontent.com/Krammeth/css-snippets/refs/heads/main/PopoutsRevamped.css");

/* === disabled === */
/*
@import url("https://ukriu.github.io/cssCord/Other/noDistractions.css");
*/
/*
@import url('https://raw.githubusercontent.com/rechington/Discord-Mods/main/collapsible_sidebars_refresh.css');
*/

/* ==== custom ==== */

/* square corner */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

.svg_cc5dd2 > mask,
.svg__44b0c > rect,
.svg__44b0c > circle {
    display: none;
}

.mask__68edb > foreignObject,
.svg__44b0c > foreignObject {
    mask: none;
}

.wrapper__44b0c:has(rect)::after {
    content: '';
    display: block;
    position: absolute;
    height: 8px;
    width: 8px;
    bottom: -4px;
    right: -4px;
    border: 0px solid var(--background-base-lower);
}

#app-mount .wrapper__44b0c:has(rect[fill='#40a258'])::after {
    background: #40a258 !important;
}

#app-mount .wrapper__44b0c:has(rect[fill='#d83a41'])::after {
    background: #d83a41 !important;
}

#app-mount .wrapper__44b0c:has(rect[fill='#cc954c'])::after {
    background: #cc954c !important;
}

#app-mount .wrapper__44b0c:has(rect[fill='#82838b'])::after {
    background: #82838b !important;
}

#app-mount .wrapper__44b0c:has(rect[fill='#9147ff'])::after {
    background: #9147ff !important;
}

/* collapse tag */
[class^="chipletContainerInner_"] > span > .unselectable__10651 {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
}

[class^="chipletContainerInner_"]:hover > span > .unselectable__10651 {
    max-width: 20ch;
    margin-right: .3ch;
}

[class^="chipletContainerInner_"] > span > img.badge__10651 {
    margin-right: 0;
}

[class^="chipletContainerInner_"]:hover > span > img.badge__10651 {
    margin-right: .6ch;
}

[class^="chipletContainerInner_"] {
    position: relative;
}

    [class^="chipletContainerInner_"]::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        pointer-events: none;
    }

/* redesign topbar */
:root {
    --custom-app-top-bar-height: 0px
}

[class^=bar] {
    padding-left: 0px;
}

    [class^=bar] > [class^=title] {
        position: relative;
    }

        [class^=bar] > [class^=title] > [class^=icon] {
            height: 16px;
            width: 16px;
        }

    [class^=bar] > [class^=trailing] {
        gap: unset;
    }

        [class^=bar] > [class^=trailing] > [class^=recentsIcon]:hover {
            background-color: var(--background-modifier-hover);
            color: var(--interactive-hover);
        }

        [class^=bar] > [class^=trailing] > [class^=recentsIcon] > [class^=button] {
            height: 16px;
            width: 16px;
            padding: 0px 0px;
        }

        [class^=bar] > [class^=trailing] > a[href="https://support.discord.com"] {
            display: none;
        }

        [class^=bar] > [class^=trailing] > [class^=winButtons] {
            gap: unset;
        }

            [class^=bar] > [class^=trailing] > [class^=winButtons] > [class^=winButton] {
                width: calc(var(--custom-app-top-bar-height) * 2);
            }

/* reduce context menu padding */
.layer_da8173 > .menu_c1e9c4 {
    min-width: 0;
    width: 165px !important;
}

    .layer_da8173 > .menu_c1e9c4 .scroller_c1e9c4 {
        margin: -4px;
    }

    .layer_da8173 > .menu_c1e9c4 .separator_c1e9c4 {
        margin: 0px 0px !important;
    }

    .layer_da8173 > .menu_c1e9c4 .wrapper_f563df {
        padding: 0px !important;
        margin: -4px;
    }

    .layer_da8173 > .menu_c1e9c4 .item_c1e9c4 {
        min-height: 0;
        padding: 3px 6px;
    }

    .layer_da8173 > .menu_c1e9c4 .icon_f563df {
        width: 36px;
    }

    .layer_da8173 > .menu_c1e9c4 .button_f563df {
        width: 40px;
        height: 40px;
        border-radius: 0px;
    }

    .layer_da8173 > .menu_c1e9c4 .icon_c1e9c4 {
        width: 16px;
        height: 16px;
    }

    .layer_da8173 > .menu_c1e9c4 .iconContainer_c1e9c4 {
        display: flex;
        justify-content: center;
        align-items: center;
    }

/* hypercompact channels list */
.unread__2ea32 {
    width: 6px;
    height: 6px;
    border-radius: 0%;
    left: auto;
    right: 4px;
    top: 1px;
}

.modeSelected__2ea32 .link__2ea32 {
    background-color: var(--brand-700) !important;
}

.link__2ea32 {
    padding-left: 0px;
    border-radius: 0px !important;
}

    .link__2ea32::before {
        width: 0px;
        left: 0px;
        background-color: transparent;
    }

    .link__2ea32:hover {
        background-color: var(--brand-800) !important;
    }

    .link__2ea32 .icon__2ea32 {
        scale: 0.5;
    }

    .link__2ea32 .linkTop__2ea32 {
        gap: 0px;
    }

.wrapper__2ea32 {
    margin: -1px;
}

.name__2ea32,
.overflow__82b15 {
    font-size: 14px;
    font-weight: 0;
    line-height: 0.98;
}

.wrapper__29444 {
    padding: var(--space-xxs) var(--space-xs);
    padding-left: 0px;
    box-sizing: content-box;
}

    .wrapper__29444 .mainContent__29444 {
        flex-direction: row-reverse !important;
        flex: none !important;
        gap: 8px;
    }

    .wrapper__29444 .icon__29444 {
        scale: 1;
    }

.spine__5b40b {
    display: none !important;
}

.spineBorder__5b40b {
    left: 10px;
    width: 0px;
    background: transparent !important;
    height: 100%;
}

.typeThread__2ea32 {
    margin-left: 0px !important;
}

    .typeThread__2ea32 .link__2ea32 {
        padding-left: 15px !important;
    }

/* compact codeblock */
:root {
    --codeblock-height: 100px;
}

.codeContainer__75297 > code {
    max-height: var(--codeblock-height);
    overflow-y: scroll;
}

    .codeContainer__75297 > code::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    .codeContainer__75297 > code::-webkit-scrollbar-corner {
        background-color: transparent;
    }

    .codeContainer__75297 > code::-webkit-scrollbar-thumb {
        background-clip: padding-box;
        background-color: var(--scrollbar-thin-thumb);
        border: 1px solid transparent;
        border-radius: 0px;
        min-height: 10px;
    }

    .codeContainer__75297 > code:hover::-webkit-scrollbar-track,
    .codeContainer__75297 > code:hover::-webkit-scrollbar-thumb {
        visibility: visible;
    }

    .codeContainer__75297 > code::-webkit-scrollbar-track {
        background-color: var(--scrollbar-thin-track);
        border: 1px solid var(--scrollbar-thin-track);
        border-color: var(--scrollbar-thin-track);
    }

/* compact members list */
.member__5d473 {
    height: 30px !important;
    padding: var(--space-xxs) var(--space-xs);
    margin: calc(var(--space-xxs) / 2) var(--space-xxs);
}

    .member__5d473:hover {
        background: var(--bg-overlay-hover, var(--background-modifier-hover));
    }

.memberInner__5d473,
.childContainer__91a9d {
    padding: 0px !important;
    display: flex !important;
    align-items: center !important;
    align-content: center !important;
    max-width: 100%;
}

.avatar__91a9d {
    scale: 0.75;
    margin-right: 0px;
}

.content__91a9d {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 2px;
}

.memberInner__5d473 {
    position: absolute;
    top: calc(0px - var(--space-xxs) / 3);
    left: var(--space-xxs);
    max-width: calc(100% - var(--space-sm));
}

.membersGroup_c8ffbb {
    padding: var(--space-xs) var(--space-xxs) var(--space-xs) var(--space-sm) !important;
}

/* Pin page switcher to bottom of search results */
[class^=searchResultsWrap_] [class^=container_]:has([class^=pageControlContainer_]) {
    position: sticky;
    bottom: 0px;
    z-index: 999;
    background: var(--bg-overlay-1, var(--background-secondary));
}

/* Remove the Create Invite button from Channel Lists */
[class^="iconVisibility_"] [aria-label="Create Invite"] {
    display: none !important;
}

[class^="iconVisibility_"] [class^="channelInfo_"] {
    display: flex !important;
}

/* Hide nitro bookmarks */
[class*=toolbar_] [class*=clickable_]:has(path[d^="M4 5a3 3 0 0"]),
#message-save-for-later-upsell,
[class*=buttonContainer_] [class*=button_]:has(path[d^="M17 4H7a1 1 0 0 0-1"]),
[class*=tabBar_] div:nth-child(4) {
    display: none;
}

/* Hide activity */
[class^='membersGroup']:has([role=button]),
[class*='membersGroup']:has([role=button]),
[class^='member'] [class^='container']:has([class*='badges']),
[class*='member'] [class*='container']:has([class*='badges']) {
    display: none;
}

/* no pf react */
.avatarPopover__2d0a, .statusPopover__2d0ab {
    display: none;
}

/* custom guild icon size */
.visual-refresh {
    --size: 32;
    --guildbar-avatar-size: calc(var(--size) * 1px);
    --guildbar-folder-size: var(--g-48);
    --g-48: calc(var(--guildbar-avatar-size) + 8px);
    --g-19-r: calc((var(--size) / 2 - 1) / var(--size) * 40px);
    --g-40-r: calc(var(--guildbar-avatar-size) / (var(--size) + 8) * 48);
    --g-48-r: calc(var(--guildbar-avatar-size) * 48 / 40);
    --g-56-r: calc(var(--g-48) * 56 / 48);
    --g-4-r: calc((var(--g-48-r) - var(--guildbar-avatar-size)) / -2);
    --g-4-r-2: calc((var(--g-56-r) - var(--g-48)) / -2);
}

    .visual-refresh .folderIcon__48112 > .wrapper_cc5dd2 {
        width: var(--g-48) !important;
        height: var(--g-48) !important;
    }

        .visual-refresh .folderIcon__48112 > .wrapper_cc5dd2 > .svg_cc5dd2 {
            width: var(--g-56-r);
            height: var(--g-56-r);
            top: var(--g-4-r-2);
            left: var(--g-4-r-2);
        }

            .visual-refresh .folderIcon__48112 > .wrapper_cc5dd2 > .svg_cc5dd2 > foreignObject
            .visual-refresh .svg_cc5dd2 {
                /* width: var(--g-48-r);
    height: var(--g-48-r); */
                top: var(--g-4-r);
                left: var(--g-4-r);
            }

    .visual-refresh .wrapper__6e9f8,
    .visual-refresh .icon__6e9f8,
    .visual-refresh .childWrapper__6e9f8 {
        width: 40px;
        height: 40px;
    }

    .visual-refresh .folder__48112,
    .visual-refresh .folderIconWrapper__48112 {
        width: 40px;
        height: 40px;
    }

    .visual-refresh .expandedFolderIconWrapper__48112 {
        width: var(--g-40-r);
        height: var(--g-40-r);
        margin: 0;
    }

    .visual-refresh .closedFolderIconWrapper__48112 {
        width: var(--g-40-r);
        height: var(--g-40-r);
    }

    .visual-refresh .guildIcon__48112 {
        width: var(--g-19-r);
        height: var(--g-19-r);
    }

    .visual-refresh .stack_dbd263 {
        height: auto !important;
        padding-bottom: 0px !important;
    }

    .visual-refresh .tutorialContainer__1f388 .svg_cc5dd2 > mask > use:last-child {
        display: none;
    }

    .visual-refresh .tutorialContainer__1f388 .numberBadge__2b1f5 {
        outline: 0px solid var(--bg-base-tertiary);
        border-radius: 0%;
    }

    .visual-refresh .unreadMentionsIndicatorBottom_ef3116,
    .visual-refresh .unreadMentionsIndicatorTop_ef3116 {
        width: calc(var(--guildbar-avatar-size) + var(--custom-guild-list-padding) * 2);
        padding: calc(var(--custom-guild-list-padding) / 2);
    }

    /* Collapsible sidebars - Optimized for speed */
    /* Left sidebar - fixed with hover bridge */
    .visual-refresh [class^="sidebarList_"] {
        position: fixed;
        width: 150px;
        container-type: unset;
        opacity: 0;
        height: 100%;
        z-index: 998;
        left: -70px;
        filter: none;
    }

    .visual-refresh [class*="guilds"] {
        z-index: 999;
        position: relative;
    }

    .visual-refresh [class^="sidebar_"]:hover [class^="sidebarList_"] {
        left: 50px;
        opacity: 1;
        width: 200px;
    }

    .visual-refresh [class^="container_"] [class^="membersWrap_"] {
        position: absolute;
        height: 100vh;
        opacity: 0;
        z-index: 999;
        right: -240px;
        top: 0;
        filter: none;
        background: var(--background-secondary);
        max-width: 240px;
    }

        .visual-refresh [class^="container_"] [class^="membersWrap_"]:hover,
        .visual-refresh [class^="container_"] [class^="membersWrap_"]:focus-within {
            right: 0;
            opacity: 1;
        }

        .visual-refresh [class^="container_"] [class^="membersWrap_"]::before {
            content: "";
            position: absolute;
            width: 10px;
            height: 100%;
            right: 100%;
            top: 0;
        }

    .visual-refresh [class^="panels_"] {
        position: fixed;
        width: 0px;
        bottom: 10px;
        left: -50px;
        z-index: 999;
        background: var(--background-primary);
    }

        .visual-refresh [class^="panels_"]:hover {
            width: 245px;
            z-index: 1000;
        }

    .visual-refresh [class^="nameTag_"],
    .visual-refresh [class^="userInfo_"] {
        position: relative;
        text-align: left;
        width: auto;
        padding-right: 0px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .visual-refresh [class^="panels_"] [class^="username_"] {
        margin-left: 8px;
        padding-right: 0px;
    }

    .visual-refresh [class^="avatar_"],
    .visual-refresh [class^="avatarWrapper_"] {
        margin-right: 8px;
        vertical-align: middle;
    }

    .visual-refresh [class^="panels_"] [class^="container_"] {
        width: 100%;
        padding: 0 8px;
    }

    .visual-refresh [class^="panels_"]:hover [class^="container_"] {
        width: 240px;
    }

    .visual-refresh [class^="panels_"] [class^="container__"] [class^="buttons__"] {
        opacity: 0;
        transform-origin: left center;
        padding-left: 8px;
    }

    .visual-refresh [class^="panels_"]:hover [class^="container__"] [class^="buttons__"] {
        opacity: 1;
    }

    .visual-refresh [class^="sidebarResizeHandle_"] {
        display: none;
    }

[class*='membersGroup']:has([role=button]),
[class*='member'] [class*='container']:has([class*='badges']) {
    display: none;
}

/* Better Pickers */
[class^=lockedEmoji_]:has(+[class*=emojiLockIconContainer_]),
[class*=categorySectionNitroLocked_] [class*=emojiItem_] > img,
[class*=soundRowNitroLocked_] [class^= soundButton_] {
    filter: none;
}

[class^=emojiLockIconContainer_],
[class^=picker_] [class^=sectionFooter_],
:is(#emoji-picker-tab-panel, [class^=picker_]) :is( [class^=upsellContainer_], [class^=nitroBottomDivider_], [class^=categoryItemLockIconContainer_] ) {
    display: none;
}

#emoji-picker-tab-panel [class*=categorySectionNitroLocked_],
[class^=picker_] :is( [class*=sectionContainerNitroLocked_], [class*=soundRowNitroLocked_] ) {
    background-color: transparent;
}

#emoji-picker-tab-panel [class^=closeButton_] {
    padding: 16px 16px calc(100% - 106px) calc(100% - 40px);
    margin: 0;
}

[class^=picker_] > [class^=container] [class^=closeButton_] {
    padding: 16px 16px calc(420px - 106px) calc(100% - 40px);
    margin: 0;
}

[class^=picker_] [class^=buttonOverlayActions_] {
    padding: 0;
}

[class^=picker_] [class^=secondaryButton_] {
    padding: 8px;
}

#emoji-picker-tab-panel, [class^=picker_] {
    [class^=nitroTopDividerShadow_], [class^=nitroTopDividerLower_]

{
    visibility: hidden;
}

[class^=nitroTopDividerLock],
[class^=nitroTopDividerLower_] {
    background: var(--background-accent);
}

}
/* === disabled === */
/*
.title_c38106 {
  display: none;
}

.title_f75fb0 {
  padding: 0px !important;
  padding-left: 0px !important;
  position: fixed;
  left: 0px;
  top: 0px;
  background: transparent !important;
  height: var(--custom-app-top-bar-height) !important;
  min-height:  0px;
  border: none !important;
  width: calc(100vw);
}

.followButton_f75fb0,
.topicClickTarget__6ec1a {
  -webkit-app-region: no-drag !important;
}

.base_c48ade:has(.bar_c38106[data-windows="true"]) .title_f75fb0 {
  width: calc(100vw - 240px)!important;
}

.children__9293f::after {
  background: linear-gradient(to right, transparent 0, var(--bg-base-tertiary) 100%)!important;
}
.topic__6ec1a {
  flex: none;
}
*/
/*
.panels_c48ade {
  position: fixed;
  left: 12px !important;
  top: calc(0px - var(--custom-app-top-bar-height)) !important;
  bottom: auto !important;
  background: transparent !important;
  border: none !important;
  -webkit-app-region: no-drag;

  .avatar__37e49 {
    scale: 0.6;
  }

  .container__37e49 {
    padding: 0px;
    min-height: 0px !important;
  }

  .nameTag__37e49 {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .avatarWrapper__37e49 {
    padding: 0px;
    height: auto !important;
  }

  .wrapper_e131a9 {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: var(--custom-guild-sidebar-width);

    .container_e131a9 {
      background-color: var(--bg-base-tertiary);
    }
  }
}

.sidebar_c48ade {
  overflow: visible;
}

.guilds_c48ade {
  margin-bottom: 0px !important;
}

.container__2637a {
  padding-bottom: 0px !important;
}

.sidebar_c48ade:has(.container_e131a9) {
  .guilds_c48ade {
    margin-bottom: 100px !important;
  }

  .container__2637a {
    padding-bottom: 100px !important;
  }
}
.title_f75fb0 {
  padding-left: var(--custom-guild-sidebar-width) !important;
}
*/

/* compact userpanel */
/*
.panels_c48ade {
  position: fixed;
  left: 12px !important;
  top: calc(0px - var(--custom-app-top-bar-height)) !important;
  bottom: auto !important;
  background: transparent !important;
  border: none !important;
  -webkit-app-region: no-drag;

  .avatar__37e49 {
    scale: 0.6;
  }

  .container__37e49 {
    padding: 0px;
    min-height: 0px !important;
  }

  .nameTag__37e49 {
    display: flex;
  gap: 8px;
    align-items: center;
  }

  .avatarWrapper__37e49 {
    padding: 0px;
    height auto !important;
  }

  .wrapper_e131a9 {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: var(--custom-guild-sidebar-width);

    .container_e131a9 {
      background-color: var(--bg-base-tertiary);
    }
  }
}

.sidebar_c48ade {
  overflow: visible;
}

.guilds_c48ade {
  margin-bottom: 0px !important;
}

.container__2637a {
  padding-bottom: 0px !important;
}

.sidebar_c48ade:has(.container_e131a9) {
  .guilds_c48ade {
    margin-bottom: 100px !important;
  }

  .container__2637a {
    padding-bottom: 100px !important;
  }
}
.title_f75fb0 {
  padding-left: var(--custom-guild-sidebar-width) !important;
}
*/