.qa-main-heading:first-child {
    display: none;
}

.pinned-to-group {
    position: relative;
}

.pinned-to-group::after {
    content: "PINNED";
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    --f: .5em;
    --r: .8em;
    position: absolute;
    top: 5px;
    left: calc(-1* var(--f));
    padding-inline: .25em;
    line-height: 1.8;
    background: #8BC34A;
    border-left: calc(var(--f)) solid #0000;
    border-bottom: var(--f) solid #0005;
    border-right: calc(1.5* var(--r)) solid #0000;
    clip-path: polygon(0 0, 0 calc(100% - var(--f)), var(--f) 100%, var(--f) calc(100% - var(--f)), 100% calc(100% - var(--f)), calc(100% - var(--r)) calc(50% - var(--f) / 2), 100% 0);
}

.sidepanel-message * {
    margin: 0;
    line-height: 1.2;
}

.sceditor-nlf {
    display: none;
}

.qa-main-heading {
    margin-top: 24px;
}

.group-header {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 16px 8px 16px;
}

.group-header-left {
    flex-basis: 96px;
    flex-shrink: 0;
    flex-grow: 0;
}

.group-logo {
    position: relative;
    height: 96px;
    width: 96px;
    overflow: hidden;
    border-radius: 100%;
}

.group-logo img {
    position: absolute;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.group-name {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    align-items: center;
    color: var(--body-deep);
}

a.action-link {
    font-size: 13px;
    line-height: 36px;
    display: inline-block;
    padding: 0 16px;
    background: seagreen;
    color: white !important;
    border-radius: 45px;
}

a.action-link.leave {
    background: firebrick !important;
}

.group-info {
    font-size: 13px;
    opacity: 0.8;
}

.group-description {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 16px;
}

.group-members-bar {
    display: flex;
    align-items: center;
    padding: 8px 0 0 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-instruction-link,
.group-members-bar button {
    border: 1px solid rgba(155, 155, 155, 0.8);
    height: 36px;
    border-radius: 6px;
    padding: 0 12px;
    color: #333;
    line-height: 36px;
    display: flex;
    font-weight: bold;
    color: inherit !important;
    font-size: 13px !important;
}

.admin-instruction-link {
    border: 1px solid rgba(33, 140, 255, 0.571);
}

.group-members-bar button:before {
    font-family: "Material Symbols Rounded";
    font-size: 21px;
    line-height: 36px;
    font-weight: 500;
    direction: ltr;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    margin-right: 8px;
    content: "\e7f0";
}

a.group-members-preview {
    display: flex;
    width: max-content;
    padding: 2px;
    padding-left: 10px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(155, 155, 155, 0.4);
}

.admin-instruction-link:hover,
.group-members-bar button:hover,
a.group-members-preview:hover {
    background: rgba(155, 155, 155, 0.15);
}

a.group-members-preview img {
    display: inline-block;
    margin-left: -8px;
    width: 30px;
    height: 30px !important;
    object-fit: cover;
    border-radius: 100%;
    overflow: hidden;
    border: 1px solid rgba(155, 155, 155, 0.2);
}

a.group-members-preview span.member-count {
    line-height: 30px;
    display: inline-block;
    height: 30px;
    margin: 0 6px;
    font-weight: bold;
    color: #333;
}

.dark-theme .group-members-bar button,
.dark-theme a.group-members-preview span.member-count {
    color: #eee !important;
}

.group-mods-preview {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 8px 16px;
    overflow: hidden;
}

a.group-mod {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(155, 155, 155, 0.3);
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.dark-theme .group-mod {
    color: #ddd;
}

a.group-mod:hover {
    background: rgba(155, 155, 155, 0.1);
}

a.group-mod .handle {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.group-mod .avatar {
    height: 40px;
    width: 40px;
}

a.group-mod img {
    height: 40px !important;
    width: 40px;
    object-fit: cover;
    border-radius: 100%;
}

span.group-mod-right {
    display: flex;
    flex-direction: column;
}

a.group-mods-link {
    display: inline-block;
    height: 40px;
    border: 1px solid rgba(155, 155, 155, 0.3);
    line-height: 40px;
    text-align: center;
    border-radius: 6px;
    color: #555;
    font-weight: bold;
    padding: 0 12px;
}

.dark-theme a.group-mods-link {
    color: #ccc;
}

a.group-mods-link:hover {
    background: rgba(155, 155, 155, 0.1);
}

h3.mods-title {
    font-size: 13px;
    margin: 16px 0 0 16px;
    font-weight: bold;
}

.group-header-stats {
    font-size: 13px;
    font-weight: 600;
    color: #999;
}

span.group-header-stats-data {
    color: #333;
}

.dark-theme span.group-header-stats-data {
    color: #eee;
}

.group-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 0 16px;
    font-size: 12px;
}

.group-action-bar a:not(.new-post-link) {
    color: var(--body-deep) !important;
    padding: 4px 8px;
    display: block;
    font-size: 12px;
    border-bottom: 3px solid transparent;
}

.group-action-bar a:hover:not(.new-post-link) {
    border-bottom: 3px solid var(--accent) !important;
}

.group-action-bar a.active:not(.new-post-link) {
    border-bottom: 3px solid var(--accent);
    font-weight: bold;
    color: var(--body-deep) !important;
}

.dark-theme .group-action-bar a {
    color: #ccc;
}

.dark-theme .group-action-bar a.active {
    color: #eee !important;
    font-weight: bold;
}

a.new-post-link {
    display: block;
    background: var(--primary-button-bg);
    color: var(--on-primary-btn) !important;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: normal;
    font-size: 15px;
}


/* Moderators */
ul.group-members {
    list-style: none;
    padding: 0 16px;
    margin: 0;
    align-items: center;
    margin-top: 24px;
}

li.group-member {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.group-member-avatar {
    flex-basis: 50px;
    width: 50px;
    flex-shrink: 0;
}

.group-member-avatar a {
    height: 50px;
    width: 50px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    display: inline-block;
}

.group-member-avatar img {
    height: 100% !important;
    width: 100%;
    position: absolute;
    object-fit: cover;
    top: 0;
}

.group-member-info .qa-user-link {
    font-size: 15px;
    margin-bottom: 4px;
    display: block;
    margin-top: -6px;
    color: var(--body-deep) !important;
    font-weight: bold;
}

.group-member-stats {
    opacity: 0.8;
    font-size: 13px;
}

span.member-level {
    padding: 0 12px;
    margin-right: 8px;
    background: #c01fff30;
    color: #c142f5;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    width: max-content;
    line-height: 18px;
}

.member-menu-icon {
    height: 0;
    width: 0;
}

.member-menu-icon::before {
    content: "\e5d4" !important;
    display: inline-block;
    height: 40px !important;
    width: 40px !important;
    font-family: 'Material Symbols Rounded';
    border: none !important;
    text-align: center;
    transform: none !important;
    color: #000;
    font-size: 20px;
    position: absolute !important;
    top: -15px !important;
    line-height: 40px;
    border-radius: 100%;
}

.member-menu-icon:hover::before {
    background: rgba(155, 155, 155, 0.15);
}

.dark-theme .member-menu-icon::before {
    color: #fff;
}

.member-menu-icon:checked::before {
    background: rgba(155, 155, 155, 0.25);
}

.member-menu-icon::after {
    display: none;
}

.member-menu {
    display: none;
    width: 120px;
    height: auto;
    background: #fff;
    padding: 8px 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    z-index: 2;
    border-radius: 6px;
}

.dark-theme .member-menu {
    background: #202225;
}

.member-menu a {
    display: block;
    padding: 0 16px;
    line-height: 36px;
}

.member-menu a:hover {
    background: rgba(155, 155, 155, 0.15);
}

.group-member-menu {
    position: relative;
    width: 30px;
    height: 30px;
}

.member-menu {
    position: absolute;
    right: 30px;
}

input.member-menu-icon:checked~.member-menu {
    display: block;
}


.my-groups {}

.my-group-item {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.my-group-item:last-child {
    margin-bottom: 0;
}

.my-group-item.selected {
    background: rgba(155, 155, 155, 0.2);
    padding: 8px;
    margin: -8px -8px 8px -8px;
    border-radius: 8px;
}

.my-group-item-logo {
    flex-basis: 30px;
    height: 30px;
    width: 30px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.my-group-item-logo img {
    position: absolute;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.my-group-item-name {
    font-size: 14px;
    line-height: 30px;
}

.my-group-item-name:not(:hover) {
    color: #333 !important;
}

.dark-theme .my-group-item-name:not(:hover) {
    color: #eee !important;
}

.sidepanel-message {
    font-size: 12px;
}

@media (max-width: 500px) {
    .group-header-left {
        flex-basis: 80px;
    }

    .group-logo {
        height: 80px;
        width: 80px;
    }

    .group-name {
        font-size: 22px;
    }
}