.community-forum-page {
    --community-accent: #36c6ff;
    --community-accent-rgb: 54, 198, 255;
    width: 100%;
    min-width: 0;
}

.community-forum-tabs {
    position: relative;
    z-index: 12;
    display: flex;
    width: min(440px, calc(100% - 28px));
    margin: 18px auto 2px;
    justify-content: center;
}

.community-forum-tabs-track {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(122, 171, 208, 0.24);
    border-radius: 8px;
    background: rgba(5, 13, 23, 0.9);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
}

.community-forum-tabs-indicator {
    position: absolute;
    z-index: -1;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 16px) / 3);
    border: 1px solid rgba(var(--community-accent-rgb), 0.62);
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(var(--community-accent-rgb), 0.24), rgba(var(--community-accent-rgb), 0.1));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 22px rgba(var(--community-accent-rgb), 0.14);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.community-forum-tabs[data-active-tab="macros"] {
    --community-accent: #b66cff;
    --community-accent-rgb: 182, 108, 255;
}

.community-forum-tabs[data-active-tab="macros"] .community-forum-tabs-indicator {
    transform: translateX(calc(100% + 4px));
}

.community-forum-tabs[data-active-tab="chat"] {
    --community-accent: #ffad4d;
    --community-accent-rgb: 255, 173, 77;
}

.community-forum-tabs[data-active-tab="chat"] .community-forum-tabs-indicator {
    transform: translateX(calc(200% + 8px));
}

.community-forum-tab {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 5px;
    color: #8498ad;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.community-forum-tab:hover,
.community-forum-tab:focus-visible {
    color: #eaf7ff;
    outline: none;
}

.community-forum-tab:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(var(--community-accent-rgb), 0.72);
}

.community-forum-tab:active {
    transform: scale(0.98);
}

.community-forum-tab.is-active {
    color: #ffffff;
}

.community-forum-tab-icon {
    position: relative;
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    place-items: center;
    color: currentColor;
}

.community-forum-tab-icon.is-configs {
    grid-template-columns: repeat(2, 5px);
    grid-auto-rows: 5px;
    gap: 2px;
}

.community-forum-tab-icon.is-configs i {
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 1px;
}

.community-forum-tab-icon.is-configs i:first-child {
    grid-row: span 2;
    height: 12px;
}

.community-forum-tab-icon.is-chat i {
    width: 15px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
}

.community-forum-tab-icon.is-macros i {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 9px;
    font-style: normal;
    font-weight: 950;
}

.community-forum-tab-icon.is-chat i::after {
    content: '';
    position: absolute;
    right: 1px;
    bottom: 0;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    transform: skewY(35deg);
}

.community-forum-tab-badge {
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    border-radius: 9px;
    background: #ff9d3c;
    color: #09111c;
    font-size: 9px;
    font-weight: 950;
    box-shadow: 0 0 12px rgba(255, 157, 60, 0.34);
}

.community-forum-tab-badge[hidden],
.community-forum-panel[hidden] {
    display: none !important;
}

.community-forum-panel {
    min-width: 0;
    animation: communityPanelIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.community-forum-page.is-switching .community-forum-tabs-track {
    border-color: rgba(var(--community-accent-rgb), 0.38);
}

@keyframes communityPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .community-forum-tabs {
        width: min(390px, calc(100% - 24px));
        margin-top: 12px;
    }

    .community-forum-tab {
        min-height: 40px;
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-forum-tabs-indicator,
    .community-forum-tab,
    .community-forum-panel {
        animation: none;
        transition: none;
    }
}
.community-forum-loading {
    display: grid;
    gap: 12px;
    width: min(1180px, calc(100% - 24px));
    margin: 24px auto;
}

.community-forum-loading span {
    display: block;
    height: 108px;
    border: 1px solid #203247;
    border-radius: 8px;
    background: #0b1521;
    animation: communityForumLoading 1.1s ease-in-out infinite alternate;
}

.community-forum-loading span:nth-child(2) {
    animation-delay: 100ms;
}

.community-forum-loading span:nth-child(3) {
    animation-delay: 200ms;
}

@keyframes communityForumLoading {
    from { opacity: 0.48; }
    to { opacity: 0.9; }
}
