/*
 * Material Community
 * Scoped under .mf-community-section so the existing modpack/project styles,
 * DataTables and author page remain untouched.
 */
.mf-community-section {
    --mf-c-bg: rgba(8, 20, 27, .96);
    --mf-c-panel: rgba(101, 203, 255, .055);
    --mf-c-panel-strong: rgba(9, 25, 34, .94);
    --mf-c-line: rgba(0, 193, 255, .18);
    --mf-c-line-accent: rgba(0, 193, 255, .34);
    --mf-c-text: #F7FCFF;
    --mf-c-muted: #9CB4BE;
    --mf-c-accent: #00C1FF;
    --mf-c-accent-2: #046585;
    --mf-c-cyan: #65CBFF;
    --mf-c-blue: #2E9DFF;
    --mf-c-danger: #FF7588;
    --mf-c-warning: #FFC65B;
    --mf-c-radius: 20px;
    position: relative;
    z-index: 4;
    padding: 36px 0 28px;
    color: var(--mf-c-text);
    font-family: Montserrat, Arial, sans-serif;
}

.mf-community-section[hidden],
.mf-community-section [hidden] {
    display: none !important;
}

.mf-community-shell {
    position: relative;
    isolation: isolate;
    overflow: visible;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(17, 38, 49, .98), rgba(12, 29, 38, .98)),
        #102630;
    box-shadow:
        0 20px 55px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .025);
    padding: 28px;
}

.mf-community-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .34;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(101, 203, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 203, 255, .018) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.mf-community-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(
            266deg,
            rgba(0, 193, 255, .04) 3.37%,
            #00C1FF 37.32%,
            rgba(0, 193, 255, 0) 76.05%,
            rgba(0, 193, 255, .38) 105.23%
        );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}


.mf-community-ambient {
    position: absolute;
    z-index: -1;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    opacity: .13;
}

.mf-community-ambient--one {
    top: -180px;
    right: -70px;
    background: #00C1FF;
}

.mf-community-ambient--two {
    bottom: -230px;
    left: -130px;
    background: #046585;
}

.mf-community-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 26px;
}

.mf-community-heading-wrap {
    min-width: 0;
}

.mf-community-kicker {
    display: block;
    margin: 0 0 7px;
    color: var(--mf-c-accent);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mf-community-heading-wrap h2,
.mf-comments-heading h3 {
    color: var(--mf-c-text);
    margin: 0;
    font-weight: 800;
    letter-spacing: -.04em;
}

.mf-community-heading-wrap h2 {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
}

.mf-community-heading-wrap p {
    max-width: 700px;
    margin: 9px 0 0;
    color: var(--mf-c-muted);
    font-size: 14px;
    line-height: 1.6;
}

.mf-like-button {
    position: relative;
    flex: 0 0 auto;
    min-width: 146px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: visible;
    border: 1px solid rgba(109, 232, 220, .22);
    border-radius: 999px;
    background: rgba(101, 203, 255, .07);
    color: #ecffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.mf-like-button:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: rgba(0, 193, 255, .46);
    background: rgba(0, 193, 255, .09);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22), 0 0 22px rgba(0, 193, 255, .08);
}

.mf-like-button:disabled {
    cursor: wait;
    opacity: .72;
}

.mf-like-button__icon {
    width: 21px;
    height: 21px;
    display: inline-flex;
}

.mf-like-button__icon svg {
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: fill .25s ease, transform .25s cubic-bezier(.2, .9, .2, 1.5), color .25s ease;
}

.mf-like-button__count {
    min-width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #d8f7f3;
    font-size: 11px;
}

.mf-like-button.is-liked {
    color: #06171E;
    border-color: transparent;
    background: linear-gradient(100deg, var(--mf-c-accent), #089ACB);
    box-shadow: 0 13px 28px rgba(0, 193, 255, .18);
}

.mf-like-button.is-liked .mf-like-button__icon svg {
    fill: currentColor;
    transform: scale(1.08);
}

.mf-like-button.is-liked .mf-like-button__count {
    color: #06202B;
    background: rgba(0, 0, 0, .11);
}

.mf-like-button__sparkles,
.mf-like-button__sparkles::before,
.mf-like-button__sparkles::after {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mf-c-accent);
    opacity: 0;
    content: "";
    pointer-events: none;
}

.mf-like-button__sparkles {
    left: 28px;
    top: 22px;
}

.mf-like-button__sparkles::before {
    left: 25px;
    top: -18px;
    background: var(--mf-c-cyan);
}

.mf-like-button__sparkles::after {
    left: -14px;
    top: -18px;
    background: #fff;
}

.mf-like-button.is-bursting .mf-like-button__icon svg {
    animation: mfHeartPop .58s cubic-bezier(.2, .9, .2, 1.5);
}

.mf-like-button.is-bursting .mf-like-button__sparkles {
    animation: mfSparkOne .6s ease-out;
}

.mf-like-button.is-bursting .mf-like-button__sparkles::before {
    animation: mfSparkTwo .6s ease-out;
}

.mf-like-button.is-bursting .mf-like-button__sparkles::after {
    animation: mfSparkThree .6s ease-out;
}

.mf-version-nav-wrap {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
}

.mf-version-tabs {
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding: 3px 2px 6px;
    scroll-snap-type: x proximity;
}

.mf-version-tabs::-webkit-scrollbar {
    display: none;
}

.mf-version-tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 43px;
    min-width: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    scroll-snap-align: center;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: #a9bdc2;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.mf-version-tab::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -4px;
    height: 2px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--mf-c-accent), var(--mf-c-cyan));
    box-shadow: 0 0 13px rgba(0, 193, 255, .55);
    transform: scaleX(0);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.mf-version-tab:hover,
.mf-version-tab.is-active {
    color: #f7ffff;
    border-color: rgba(0, 193, 255, .3);
    background: linear-gradient(110deg, rgba(48, 243, 215, .12), rgba(4, 101, 133, .08));
    transform: translateY(-1px);
}

.mf-version-tab.is-active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .18);
}

.mf-version-tab.is-active::after {
    transform: scaleX(1);
    opacity: 1;
}

.mf-version-tab__draft {
    padding: 4px 6px;
    border-radius: 999px;
    color: #ffd68a;
    background: rgba(255, 190, 72, .11);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mf-version-scroll {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
    color: #b9d2d7;
    transition: opacity .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.mf-version-scroll svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mf-version-scroll:not(:disabled):hover {
    color: var(--mf-c-accent);
    border-color: rgba(0, 193, 255, .28);
    transform: scale(1.04);
}

.mf-version-scroll:disabled {
    opacity: .25;
}

.mf-older-versions,
.mf-load-more,
.mf-more-replies {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(75, 224, 213, .18);
    border-radius: 11px;
    background: rgba(57, 199, 202, .055);
    color: #c6e5e7;
    font-size: 11px;
    font-weight: 800;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.mf-older-versions {
    margin: 0 0 14px 46px;
    padding: 9px 13px;
}

.mf-older-versions:hover,
.mf-load-more:hover,
.mf-more-replies:hover {
    color: #fff;
    border-color: rgba(0, 193, 255, .34);
    background: rgba(0, 193, 255, .08);
    transform: translateY(-1px);
}

.mf-release-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(66, 239, 205, .15);
    border-radius: var(--mf-c-radius);
    background: linear-gradient(145deg, rgba(101, 203, 255, .065), rgba(255, 255, 255, .018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    padding: 24px;
}

.mf-release-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(48, 243, 215, .07);
    filter: blur(58px);
    pointer-events: none;
}

.mf-release-card.is-switching {
    animation: mfPostSwitch .34s cubic-bezier(.2, .8, .2, 1);
}

.mf-release-author-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
}

.mf-release-avatar,
.mf-comment-avatar {
    position: relative;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(55, 230, 222, .28), rgba(0, 193, 255, .16));
}

.mf-release-avatar {
    width: 52px;
    height: 52px;
    padding: 2px;
    box-shadow: 0 0 24px rgba(48, 243, 215, .13);
}

.mf-release-avatar img,
.mf-comment-avatar img,
.mf-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.mf-release-avatar img,
.mf-comment-avatar img {
    border: 2px solid #081317;
}

.mf-avatar-fallback {
    display: grid;
    place-items: center;
    color: #e8fffb;
    background: linear-gradient(135deg, #174950, #07516B);
    font-size: 11px;
    font-weight: 900;
}

.mf-release-identity {
    min-width: 0;
    flex: 1;
}

.mf-release-name-line,
.mf-comment-identity,
.mf-release-meta,
.mf-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.mf-release-name-line {
    gap: 8px;
}

.mf-release-author-name,
.mf-comment-name {
    color: #f8ffff;
    font-weight: 800;
    text-decoration: none !important;
}

.mf-release-author-name {
    font-size: 15px;
}

.mf-release-author-name:hover,
.mf-comment-name:hover {
    color: var(--mf-c-accent);
}

.mf-creator-badge,
.mf-comment-author-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #7BDDFF;
    background: rgba(0, 193, 255, .095);
    border: 1px solid rgba(0, 193, 255, .18);
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mf-creator-badge {
    padding: 5px 7px;
}

.mf-release-meta {
    gap: 11px;
    margin: 6px 0 0;
    color: var(--mf-c-muted);
    font-size: 10px;
    font-weight: 600;
}

.mf-time,
.mf-release-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mf-time svg,
.mf-release-comment-count svg,
.mf-release-files__title svg,
.mf-comment-action svg,
.mf-file-card svg,
.mf-gate-icon svg,
.mf-community-error svg,
.mf-toast svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mf-time svg,
.mf-release-comment-count svg {
    width: 13px;
    height: 13px;
}

.mf-release-comment-count b {
    color: #c9e5e6;
    font-weight: 700;
}

.mf-release-tag {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 8px;
    border: 1px solid rgba(69, 233, 205, .19);
    border-radius: 999px;
    background: rgba(54, 215, 195, .075);
    color: #79DFFF;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .02em;
}

.mf-release-tag--draft {
    color: #ffd586;
    border-color: rgba(255, 198, 91, .25);
    background: rgba(255, 198, 91, .08);
}

.mf-release-version-line {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0 10px;
}

.mf-release-version-line span {
    color: var(--mf-c-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.mf-release-version-line strong {
    color: var(--mf-c-accent);
    font-size: 15px;
    font-weight: 900;
}

.mf-release-body {
    position: relative;
    z-index: 1;
    color: #d7e7e8;
    font-size: 13px;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.mf-release-body strong {
    color: #fff;
    font-weight: 800;
}

.mf-release-files {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 17px;
    background: rgba(1, 8, 10, .28);
}

.mf-release-files__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #cde8e8;
    font-size: 11px;
}

.mf-release-files__title svg {
    width: 16px;
    height: 16px;
    color: var(--mf-c-accent);
}

.mf-file-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.mf-file-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(113, 222, 223, .13);
    border-radius: 13px;
    background: rgba(101, 203, 255, .045);
    color: #f2ffff !important;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.mf-file-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 193, 255, .28);
    background: rgba(0, 193, 255, .055);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .17);
}

.mf-file-card__icon,
.mf-file-card__download {
    display: grid;
    place-items: center;
}

.mf-file-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--mf-c-accent);
    background: rgba(0, 193, 255, .09);
}

.mf-file-card__icon svg {
    width: 18px;
    height: 18px;
}

.mf-file-card__details {
    min-width: 0;
}

.mf-file-card__details strong,
.mf-file-card__details small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mf-file-card__details strong {
    color: #ecffff;
    font-size: 10px;
    line-height: 1.4;
}

.mf-file-card__details small {
    margin-top: 3px;
    color: var(--mf-c-muted);
    font-size: 8px;
}

.mf-file-card__download {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: #a8c8cb;
    background: rgba(255, 255, 255, .045);
}

.mf-file-card__download svg {
    width: 15px;
    height: 15px;
}

.mf-comments-panel {
    margin: 21px 0 0;
    padding: 24px;
    border: 1px solid rgba(111, 222, 224, .13);
    border-radius: var(--mf-c-radius);
    background: rgba(2, 9, 12, .38);
}

.mf-comments-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 19px;
}

.mf-comments-heading h3 {
    font-size: 22px;
    line-height: 1.15;
}

.mf-comments-total {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #a8c4c7;
    background: rgba(255, 255, 255, .045);
    font-size: 9px;
    font-weight: 800;
}

.mf-composer-gate {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border: 1px dashed rgba(86, 213, 210, .22);
    border-radius: 16px;
    background: rgba(101, 203, 255, .035);
}

.mf-gate-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--mf-c-accent);
    background: rgba(0, 193, 255, .08);
}

.mf-gate-icon svg {
    width: 20px;
    height: 20px;
}

.mf-composer-gate strong,
.mf-composer-gate p {
    display: block;
}

.mf-composer-gate strong {
    color: #f0ffff;
    font-size: 12px;
}

.mf-composer-gate p {
    margin: 4px 0 0;
    color: var(--mf-c-muted);
    font-size: 10px;
    line-height: 1.55;
}

.mf-gate-action {
    display: inline-flex;
    margin-top: 9px;
    color: var(--mf-c-accent) !important;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
}

.mf-comment-composer {
    position: relative;
    padding: 15px;
    border: 1px solid rgba(75, 231, 220, .17);
    border-radius: 17px;
    background: rgba(101, 203, 255, .035);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.mf-comment-composer:focus-within {
    border-color: rgba(0, 193, 255, .33);
    box-shadow: 0 0 0 3px rgba(0, 193, 255, .035), 0 16px 34px rgba(0, 0, 0, .16);
}

.mf-composer-input-wrap {
    position: relative;
}

.mf-comment-composer textarea,
.mf-inline-editor textarea {
    width: 100%;
    resize: none;
    outline: 0;
    color: #e9f7f8;
    caret-color: var(--mf-c-accent);
    background: transparent;
    border: 0;
    font-family: inherit;
    line-height: 1.65;
}

.mf-comment-composer textarea {
    min-height: 84px;
    max-height: 260px;
    padding: 4px 3px 8px;
    font-size: 12px;
}

.mf-comment-composer textarea::placeholder,
.mf-inline-editor textarea::placeholder {
    color: #688087;
}

.mf-composer-focus {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mf-c-accent), var(--mf-c-cyan), transparent);
    transform: scaleX(.25);
    opacity: .2;
    transition: transform .25s ease, opacity .25s ease;
}

.mf-composer-input-wrap:focus-within .mf-composer-focus {
    transform: scaleX(1);
    opacity: .75;
}

.mf-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 11px;
}

.mf-composer-tools {
    display: flex;
    align-items: center;
    gap: 11px;
}

.mf-emoji-wrap {
    position: relative;
}

.mf-tool-button {
    min-height: 33px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    color: #b1c9cc;
    background: rgba(255, 255, 255, .035);
    font-size: 9px;
    font-weight: 800;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.mf-tool-button:hover,
.mf-tool-button[aria-expanded="true"] {
    color: #fff;
    border-color: rgba(0, 193, 255, .25);
    background: rgba(0, 193, 255, .065);
}

.mf-tool-button span {
    font-size: 16px;
    line-height: 1;
}

.mf-emoji-picker {
    position: absolute;
    z-index: 20;
    left: 0;
    bottom: calc(100% + 9px);
    width: 230px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 10px;
    border: 1px solid rgba(74, 234, 212, .19);
    border-radius: 14px;
    background: rgba(5, 15, 18, .98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    transform-origin: bottom left;
}

.mf-emoji-picker.is-open {
    animation: mfPopoverIn .18s ease-out;
}

.mf-emoji-button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 17px;
    transition: transform .15s ease, background .15s ease;
}

.mf-emoji-button:hover {
    transform: translateY(-2px) scale(1.08);
    background: rgba(255, 255, 255, .065);
}

.mf-character-count {
    color: #728b91;
    font-size: 9px;
    font-weight: 700;
}

.mf-character-count.is-near-limit {
    color: var(--mf-c-warning);
}

.mf-send-button {
    position: relative;
    min-width: 142px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    color: #06171E;
    background: linear-gradient(100deg, var(--mf-c-accent), #0799C9);
    box-shadow: 0 10px 24px rgba(45, 238, 142, .13);
    font-size: 10px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.mf-send-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .36), transparent 72%);
    transform: translateX(-110%);
    transition: transform .48s ease;
}

.mf-send-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(45, 238, 142, .2);
}

.mf-send-button:not(:disabled):hover::before {
    transform: translateX(110%);
}

.mf-send-button__icon {
    width: 16px;
    height: 16px;
}

.mf-send-button__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mf-send-button__spinner,
.mf-inline-spinner {
    width: 13px;
    height: 13px;
    display: none;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mfSpin .7s linear infinite;
}

.mf-send-button.is-loading .mf-send-button__label,
.mf-send-button.is-loading .mf-send-button__icon {
    display: none;
}

.mf-send-button.is-loading .mf-send-button__spinner,
.is-loading > .mf-inline-spinner,
.mf-inline-spinner.is-visible {
    display: inline-block;
}

.mf-composer-note {
    margin: 10px 0 0;
    color: #6f888e;
    font-size: 8px;
    line-height: 1.5;
}

.mf-quote-draft {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 11px;
    padding: 10px 12px;
    border-left: 2px solid var(--mf-c-accent);
    border-radius: 0 10px 10px 0;
    background: rgba(0, 193, 255, .045);
}

.mf-quote-draft span {
    color: #8fa7ac;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mf-quote-draft span strong {
    color: #C4F0FF;
}

.mf-quote-draft p {
    margin: 4px 0 0;
    color: #bfd1d3;
    font-size: 9px;
    line-height: 1.5;
}

.mf-quote-draft button {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 8px;
    color: #9ab2b6;
    background: rgba(255, 255, 255, .045);
    font-size: 18px;
    line-height: 1;
}

.mf-comments-list {
    display: grid;
    gap: 10px;
    margin: 17px 0 0;
}

.mf-comment-thread {
    min-width: 0;
}

.mf-comment {
    --mf-depth: 0;
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    opacity: 0;
    transform: translateY(8px);
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    background: rgba(255, 255, 255, .022);
    transition: opacity .26s ease, transform .26s ease, border-color .22s ease, background .22s ease;
}

.mf-comment.is-entered {
    opacity: 1;
    transform: translateY(0);
}

.mf-comment:hover {
    border-color: rgba(93, 214, 215, .14);
    background: rgba(101, 203, 255, .03);
}

.mf-comment.is-author {
    border-color: rgba(0, 193, 255, .13);
    background: linear-gradient(110deg, rgba(0, 193, 255, .035), rgba(255, 255, 255, .018));
}

.mf-comment.is-pending {
    border-style: dashed;
    border-color: rgba(255, 198, 91, .23);
}

.mf-comment.is-editing {
    border-color: rgba(0, 193, 255, .28);
    box-shadow: 0 0 0 3px rgba(0, 193, 255, .025);
}

.mf-comment-avatar {
    width: 36px;
    height: 36px;
    padding: 1px;
}

.mf-comment-main {
    min-width: 0;
}

.mf-comment-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 11px;
}

.mf-comment-identity {
    min-width: 0;
    gap: 6px;
}

.mf-comment-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.mf-comment-author-badge {
    padding: 4px 6px;
    font-size: 7px;
}

.mf-comment-verified {
    width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #06171E;
    background: var(--mf-c-accent);
    font-size: 8px;
    font-weight: 900;
}

.mf-comment-meta {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
    color: #71898f;
    font-size: 8px;
}

.mf-status-badge {
    display: inline-flex;
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.mf-status-badge--pending {
    color: #ffd181;
    border: 1px solid rgba(255, 198, 91, .16);
    background: rgba(255, 198, 91, .07);
}

.mf-comment-body {
    margin: 7px 0 0;
    color: #cbdcde;
    font-size: 10px;
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.mf-comment-body a {
    color: #64e5ff !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(100, 229, 255, .35) !important;
    text-underline-offset: 2px;
}

.mf-comment-deleted-text {
    color: #71858a;
    font-style: italic;
}

.mf-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 9px 0 0;
}

.mf-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 0;
    border-radius: 8px;
    color: #718a90;
    background: transparent;
    font-size: 8px;
    font-weight: 800;
    transition: color .17s ease, background .17s ease, transform .17s ease;
}

.mf-comment-action svg {
    width: 12px;
    height: 12px;
}

.mf-comment-action:hover,
.mf-comment-action.is-expanded {
    color: var(--mf-c-accent);
    background: rgba(0, 193, 255, .055);
    transform: translateY(-1px);
}

.mf-replies-toggle svg {
    transition: transform .2s ease;
}

.mf-replies-toggle.is-expanded svg {
    transform: rotate(180deg);
}

.mf-comment-quote {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-left: 2px solid rgba(55, 223, 245, .55);
    border-radius: 0 9px 9px 0;
    background: rgba(55, 223, 245, .035);
}

.mf-comment-quote strong {
    display: block;
    color: #70e9f7;
    font-size: 8px;
}

.mf-comment-quote p {
    margin: 3px 0 0;
    color: #90a7ac;
    font-size: 8px;
    line-height: 1.45;
}

.mf-thread-descendants {
    position: relative;
    display: grid;
    gap: 8px;
    margin: 9px 0 0 24px;
    padding-left: 13px;
    border-left: 1px solid rgba(74, 224, 215, .13);
    animation: mfRepliesOpen .25s ease-out;
}

.mf-comment-children {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
}

.mf-comment-children:empty {
    display: none;
}

.mf-thread-descendants .mf-comment {
    background: rgba(255, 255, 255, .017);
}

.mf-thread-descendants .mf-comment-children {
    margin-left: min(calc(var(--mf-depth) * 7px), 28px);
}

.mf-replies-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: #799197;
    font-size: 8px;
    font-weight: 700;
}

.mf-more-replies {
    justify-self: start;
    padding: 7px 10px;
    font-size: 8px;
}

.mf-inline-editor {
    margin: 8px 0 0;
    padding: 10px;
    border: 1px solid rgba(0, 193, 255, .18);
    border-radius: 12px;
    background: rgba(2, 10, 12, .45);
}

.mf-inline-editor textarea {
    min-height: 76px;
    padding: 0;
    font-size: 10px;
}

.mf-inline-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.mf-edit-countdown {
    color: #82999e;
    font-size: 8px;
    font-weight: 700;
}

.mf-inline-editor__footer > div {
    display: flex;
    gap: 6px;
}

.mf-inline-cancel,
.mf-inline-save,
.mf-retry-button {
    border-radius: 9px;
    font-size: 8px;
    font-weight: 900;
}

.mf-inline-cancel {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #a7bdc1;
    background: rgba(255, 255, 255, .035);
}

.mf-inline-save,
.mf-retry-button {
    padding: 7px 11px;
    border: 0;
    color: #06171E;
    background: linear-gradient(100deg, var(--mf-c-accent), #0799C9);
}

.mf-inline-save.is-loading {
    opacity: .65;
}

.mf-empty-comments {
    padding: 34px 15px 22px;
    text-align: center;
}

.mf-empty-comments > span {
    display: block;
    margin-bottom: 9px;
    font-size: 26px;
    filter: saturate(.8);
}

.mf-empty-comments h4,
.mf-community-error h3 {
    margin: 0;
    color: #ecffff;
    font-size: 13px;
    font-weight: 800;
}

.mf-empty-comments p,
.mf-community-error p {
    max-width: 490px;
    margin: 6px auto 0;
    color: #7f969b;
    font-size: 9px;
    line-height: 1.6;
}

.mf-empty-comments .mf-retry-button,
.mf-community-error .mf-retry-button {
    margin-top: 12px;
}

.mf-load-more {
    min-width: 170px;
    min-height: 38px;
    margin: 16px auto 0;
    padding: 8px 14px;
}

.mf-comments-loading {
    display: grid;
    gap: 9px;
    margin-top: 17px;
}

.mf-comment-skeleton {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 14px;
    background: rgba(255, 255, 255, .018);
}

.mf-comment-skeleton::after,
.mf-community-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .045) 48%, transparent 72%);
    transform: translateX(-100%);
    animation: mfShimmer 1.45s infinite;
}

.mf-comment-skeleton i,
.mf-comment-skeleton span,
.mf-skeleton-tabs i,
.mf-skeleton-avatar,
.mf-skeleton-post i {
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
}

.mf-comment-skeleton i {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
}

.mf-comment-skeleton span {
    width: 32%;
    height: 8px;
}

.mf-comment-skeleton span:last-child {
    width: 72%;
}

.mf-community-skeleton {
    position: relative;
    overflow: hidden;
}

.mf-skeleton-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mf-skeleton-tabs i {
    width: 95px;
    height: 42px;
    border-radius: 12px;
}

.mf-skeleton-post {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: var(--mf-c-radius);
}

.mf-skeleton-avatar {
    width: 52px;
    height: 52px;
}

.mf-skeleton-post > div {
    display: grid;
    align-content: start;
    gap: 10px;
}

.mf-skeleton-post i {
    width: 28%;
    height: 9px;
}

.mf-skeleton-post i:nth-child(2) {
    width: 44%;
}

.mf-skeleton-post i:nth-child(3) {
    width: 89%;
    margin-top: 13px;
}

.mf-skeleton-post i:nth-child(4) {
    width: 72%;
}

.mf-community-content {
    opacity: 0;
    transform: translateY(5px);
}

.mf-community-content.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease;
}

.mf-community-error {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.mf-community-error > svg {
    width: 28px;
    height: 28px;
    margin-bottom: 11px;
    color: var(--mf-c-warning);
}

.mf-toast-region {
    position: fixed;
    z-index: 10050;
    right: 18px;
    bottom: 18px;
    width: min(360px, calc(100vw - 30px));
    display: grid;
    gap: 9px;
    pointer-events: none;
}

.mf-toast {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    opacity: 0;
    transform: translateY(12px) scale(.97);
    pointer-events: auto;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(7, 17, 20, .97);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
    backdrop-filter: blur(14px);
    transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.mf-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mf-toast.is-leaving {
    opacity: 0;
    transform: translateX(16px) scale(.97);
}

.mf-toast__icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.mf-toast__icon svg {
    width: 17px;
    height: 17px;
}

.mf-toast--success .mf-toast__icon {
    color: var(--mf-c-accent);
    background: rgba(0, 193, 255, .08);
}

.mf-toast--error .mf-toast__icon {
    color: var(--mf-c-danger);
    background: rgba(255, 117, 136, .08);
}

.mf-toast--info .mf-toast__icon {
    color: var(--mf-c-cyan);
    background: rgba(55, 223, 245, .08);
}

.mf-toast p {
    margin: 0;
    color: #d9e9ea;
    font-size: 10px;
    line-height: 1.45;
}

.mf-toast__close {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 7px;
    color: #799095;
    background: transparent;
    font-size: 17px;
    line-height: 1;
}

.mf-toast__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.mf-shake {
    animation: mfShake .42s ease;
}

/* Light mode follows the existing html.light-mode/body class switch. */
.light-mode .mf-community-section {
    --mf-c-bg: rgba(255, 255, 255, .96);
    --mf-c-panel: rgba(8, 69, 76, .045);
    --mf-c-panel-strong: #fff;
    --mf-c-line: rgba(8, 78, 83, .12);
    --mf-c-text: #111b20;
    --mf-c-muted: #65777c;
}

.light-mode .mf-community-shell {
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 248, 247, .98));
    box-shadow: 0 24px 65px rgba(15, 47, 50, .1), inset 0 1px 0 #fff;
}

.light-mode .mf-community-shell::before {
    opacity: .7;
    background-image:
        linear-gradient(rgba(4, 68, 70, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 68, 70, .025) 1px, transparent 1px);
}

.light-mode .mf-like-button,
.light-mode .mf-version-tab,
.light-mode .mf-version-scroll,
.light-mode .mf-tool-button,
.light-mode .mf-file-card,
.light-mode .mf-comments-total,
.light-mode .mf-inline-cancel {
    color: #284247;
    background: rgba(8, 79, 83, .045);
    border-color: rgba(8, 79, 83, .1);
}

.light-mode .mf-release-card,
.light-mode .mf-comments-panel,
.light-mode .mf-comment,
.light-mode .mf-comment-composer,
.light-mode .mf-composer-gate,
.light-mode .mf-release-files {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(8, 79, 83, .1);
}

.light-mode .mf-release-body,
.light-mode .mf-comment-body,
.light-mode .mf-toast p {
    color: #364d52;
}

.light-mode .mf-release-author-name,
.light-mode .mf-comment-name,
.light-mode .mf-file-card__details strong,
.light-mode .mf-composer-gate strong,
.light-mode .mf-empty-comments h4 {
    color: #14262a;
}

.light-mode .mf-comment-composer textarea,
.light-mode .mf-inline-editor textarea {
    color: #21383d;
}

.light-mode .mf-emoji-picker,
.light-mode .mf-toast {
    background: rgba(255, 255, 255, .98);
    border-color: rgba(8, 79, 83, .12);
    box-shadow: 0 18px 45px rgba(15, 47, 50, .15);
}

.light-mode .mf-release-avatar img,
.light-mode .mf-comment-avatar img {
    border-color: #eef7f6;
}

@keyframes mfSpin {
    to { transform: rotate(360deg); }
}

@keyframes mfShimmer {
    to { transform: translateX(100%); }
}

@keyframes mfPostSwitch {
    0% { opacity: .35; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes mfPopoverIn {
    from { opacity: 0; transform: translateY(5px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mfRepliesOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mfHeartPop {
    0% { transform: scale(.7); }
    45% { transform: scale(1.4) rotate(-7deg); }
    100% { transform: scale(1.08); }
}

@keyframes mfSparkOne {
    0% { opacity: 0; transform: translate(0, 0) scale(.3); }
    38% { opacity: 1; }
    100% { opacity: 0; transform: translate(-18px, -24px) scale(1.1); }
}

@keyframes mfSparkTwo {
    0% { opacity: 0; transform: translate(0, 0) scale(.3); }
    38% { opacity: 1; }
    100% { opacity: 0; transform: translate(10px, -18px) scale(1.1); }
}

@keyframes mfSparkThree {
    0% { opacity: 0; transform: translate(0, 0) scale(.3); }
    38% { opacity: 1; }
    100% { opacity: 0; transform: translate(-6px, -23px) scale(1.1); }
}

@keyframes mfShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

@media (max-width: 767px) {
    .mf-community-section {
        padding: 25px 0 18px;
    }

    .mf-community-shell {
        padding: 18px;
        border-radius: 22px;
    }

    .mf-community-header {
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .mf-community-heading-wrap p {
        display: none;
    }

    .mf-like-button {
        min-width: 112px;
        height: 44px;
    }

    .mf-like-button__label {
        display: none;
    }

    .mf-version-nav-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .mf-version-scroll {
        display: none;
    }

    .mf-version-tabs {
        margin-inline: -2px;
    }

    .mf-version-tab {
        min-height: 40px;
        min-width: 82px;
        padding: 8px 13px;
    }

    .mf-older-versions {
        margin-left: 0;
    }

    .mf-release-card,
    .mf-comments-panel {
        padding: 17px;
        border-radius: 18px;
    }

    .mf-file-grid {
        grid-template-columns: 1fr;
    }

    .mf-comments-heading {
        align-items: center;
    }

    .mf-composer-footer {
        align-items: flex-end;
    }

    .mf-send-button {
        min-width: 48px;
        width: 48px;
    }

    .mf-send-button__label {
        display: none;
    }

    .mf-emoji-picker {
        width: 214px;
        grid-template-columns: repeat(6, 1fr);
    }

    .mf-comment {
        grid-template-columns: 31px minmax(0, 1fr);
        gap: 9px;
        padding: 11px;
    }

    .mf-comment-avatar {
        width: 31px;
        height: 31px;
    }

    .mf-comment-header {
        display: block;
    }

    .mf-comment-meta {
        justify-content: flex-start;
        margin-top: 4px;
    }

    .mf-thread-descendants {
        margin-left: 13px;
        padding-left: 9px;
    }

    .mf-thread-descendants .mf-comment-children {
        margin-left: min(calc(var(--mf-depth) * 4px), 14px);
    }

    .mf-inline-editor__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .mf-toast-region {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 420px) {
    .mf-community-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .mf-community-heading-wrap h2 {
        font-size: 24px;
    }

    .mf-like-button {
        min-width: 82px;
        padding: 0 10px;
    }

    .mf-release-meta {
        gap: 7px;
    }

    .mf-release-tag {
        max-width: 130px;
    }

    .mf-comments-total {
        display: none;
    }

    .mf-composer-tools {
        gap: 7px;
    }

    .mf-character-count {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mf-community-section *,
    .mf-community-section *::before,
    .mf-community-section *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* ========================================================================
   ModsFire modpack/project page integration — blue/cyan edition.
   Keeps the Blade markup and JavaScript behavior unchanged.
   ======================================================================== */

.mf-community-section .container {
    max-width: 970px;
}

.mf-community-header {
    margin-bottom: 24px;
}

.mf-community-kicker {
    color: #65CBFF;
}

.mf-community-heading-wrap h2 {
    font-size: clamp(25px, 2.6vw, 34px);
}

.mf-community-heading-wrap p {
    color: #91AAB5;
}

.mf-like-button {
    border-color: rgba(0, 193, 255, .24);
    background: rgba(4, 101, 133, .18);
    color: #EAF9FF;
}

.mf-like-button:not(:disabled):hover {
    border-color: rgba(0, 193, 255, .55);
    background: rgba(0, 193, 255, .12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20), 0 0 22px rgba(0, 193, 255, .11);
}

.mf-like-button.is-liked {
    color: #03131A;
    border-color: transparent;
    background: linear-gradient(105deg, #00C1FF, #65CBFF);
    box-shadow: 0 13px 28px rgba(0, 193, 255, .20);
}

.mf-like-button.is-liked .mf-like-button__count {
    color: #03131A;
    background: rgba(0, 0, 0, .10);
}

.mf-version-tab {
    border-color: rgba(101, 203, 255, .10);
    background: rgba(101, 203, 255, .045);
    color: #9CB6C0;
}

.mf-version-tab::after {
    background: linear-gradient(90deg, #00C1FF, #65CBFF);
    box-shadow: 0 0 13px rgba(0, 193, 255, .55);
}

.mf-version-tab:hover,
.mf-version-tab.is-active {
    color: #FFFFFF;
    border-color: rgba(0, 193, 255, .34);
    background: linear-gradient(110deg, rgba(0, 193, 255, .14), rgba(4, 101, 133, .14));
}

.mf-version-scroll:not(:disabled):hover,
.mf-release-author-name:hover,
.mf-comment-name:hover {
    color: #00C1FF;
}

.mf-release-card {
    border-color: rgba(0, 193, 255, .13);
    background:
        linear-gradient(145deg, rgba(101, 203, 255, .055), rgba(255, 255, 255, .012)),
        rgba(8, 23, 31, .58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .025),
        0 14px 35px rgba(0, 0, 0, .12);
}

.mf-release-card::after {
    background: rgba(0, 193, 255, .08);
}

.mf-release-avatar,
.mf-comment-avatar {
    background: linear-gradient(135deg, rgba(0, 193, 255, .42), rgba(4, 101, 133, .22));
}

.mf-release-avatar img,
.mf-comment-avatar img {
    border-color: #0A1E28;
}

.mf-avatar-fallback {
    background: linear-gradient(135deg, #0B526D, #07384B);
}

.mf-creator-badge,
.mf-comment-author-badge {
    color: #82DFFF;
    background: rgba(0, 193, 255, .10);
    border-color: rgba(0, 193, 255, .21);
}

.mf-release-version-line strong,
.mf-release-files__title svg,
.mf-file-card__icon {
    color: #00C1FF;
}

.mf-release-tag {
    color: #7DDFFF;
    border-color: rgba(0, 193, 255, .22);
    background: rgba(0, 193, 255, .08);
}

.mf-release-files {
    border-color: rgba(101, 203, 255, .075);
    background: rgba(3, 14, 20, .29);
}

.mf-file-card {
    border-color: rgba(101, 203, 255, .13);
    background: rgba(101, 203, 255, .045);
}

.mf-file-card:hover {
    border-color: rgba(0, 193, 255, .30);
    background: rgba(0, 193, 255, .07);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .17);
}

.mf-file-card__icon {
    background: rgba(0, 193, 255, .10);
}

.mf-comments-panel {
    margin-top: 22px;
    border-color: rgba(0, 193, 255, .11);
    background:
        linear-gradient(180deg, rgba(5, 21, 29, .64), rgba(4, 17, 24, .72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.mf-comments-heading {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(101, 203, 255, .08);
}

.mf-comments-total {
    border: 1px solid rgba(0, 193, 255, .12);
    background: rgba(0, 193, 255, .055);
    color: #9FDFF5;
}

.mf-comment-composer,
.mf-composer-gate {
    border-color: rgba(0, 193, 255, .12);
    background: rgba(101, 203, 255, .035);
}

.mf-composer-input-wrap {
    border-color: rgba(101, 203, 255, .11);
    background: rgba(2, 13, 19, .42);
}

.mf-composer-input-wrap:focus-within {
    border-color: rgba(0, 193, 255, .40);
    box-shadow: 0 0 0 3px rgba(0, 193, 255, .045), 0 16px 34px rgba(0, 0, 0, .16);
}

.mf-comment-composer textarea,
.mf-inline-editor textarea {
    caret-color: #00C1FF;
}

.mf-send-button,
.mf-inline-save,
.mf-retry-button {
    color: #03141B;
    background: linear-gradient(105deg, #00C1FF, #65CBFF);
    box-shadow: 0 10px 22px rgba(0, 193, 255, .15);
}

.mf-send-button:hover,
.mf-inline-save:hover,
.mf-retry-button:hover {
    filter: brightness(1.06);
    box-shadow: 0 13px 28px rgba(0, 193, 255, .22);
}

.mf-comment {
    border-color: rgba(101, 203, 255, .075);
    background: rgba(101, 203, 255, .022);
}

.mf-comment:hover {
    border-color: rgba(0, 193, 255, .15);
    background: rgba(0, 193, 255, .032);
}

.mf-comment.is-pending {
    border-color: rgba(255, 198, 91, .18);
    background: rgba(255, 198, 91, .035);
}

.mf-comment-action:hover,
.mf-tool-button:hover,
.mf-more-replies:hover,
.mf-load-more:hover,
.mf-older-versions:hover {
    color: #FFFFFF;
    border-color: rgba(0, 193, 255, .32);
    background: rgba(0, 193, 255, .08);
}

.mf-comment-quote {
    border-left-color: #00C1FF;
    background: rgba(0, 193, 255, .045);
}

.mf-comment-quote strong {
    color: #65CBFF;
}

.mf-thread-descendants {
    border-left-color: rgba(0, 193, 255, .16);
}

.mf-inline-editor {
    border-color: rgba(0, 193, 255, .20);
    background: rgba(3, 16, 22, .52);
}

.mf-toast {
    border-color: rgba(0, 193, 255, .13);
    background: rgba(7, 24, 32, .97);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .42), 0 0 28px rgba(0, 193, 255, .06);
}

.mf-toast--success .mf-toast__icon,
.mf-toast--info .mf-toast__icon {
    color: #00C1FF;
    background: rgba(0, 193, 255, .09);
}

/* Existing page switches html.dark-mode / html.light-mode. */
html.light-mode .mf-community-section {
    --mf-c-bg: rgba(255, 255, 255, .98);
    --mf-c-panel: rgba(0, 120, 170, .045);
    --mf-c-panel-strong: #FFFFFF;
    --mf-c-line: rgba(0, 121, 170, .16);
    --mf-c-text: #12242C;
    --mf-c-muted: #617983;
}

html.light-mode .mf-community-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(243, 250, 253, .99)),
        #FFFFFF;
    box-shadow:
        0 20px 55px rgba(21, 77, 98, .11),
        inset 0 1px 0 #FFFFFF;
}

html.light-mode .mf-community-shell::before {
    opacity: .55;
    background-image:
        linear-gradient(rgba(0, 121, 170, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 121, 170, .025) 1px, transparent 1px);
}

html.light-mode .mf-community-heading-wrap p {
    color: #667F89;
}

html.light-mode .mf-like-button,
html.light-mode .mf-version-tab,
html.light-mode .mf-version-scroll,
html.light-mode .mf-tool-button,
html.light-mode .mf-file-card,
html.light-mode .mf-comments-total,
html.light-mode .mf-inline-cancel {
    color: #284A58;
    background: rgba(0, 121, 170, .045);
    border-color: rgba(0, 121, 170, .12);
}

html.light-mode .mf-release-card,
html.light-mode .mf-comments-panel,
html.light-mode .mf-comment,
html.light-mode .mf-comment-composer,
html.light-mode .mf-composer-gate,
html.light-mode .mf-release-files {
    background: rgba(255, 255, 255, .76);
    border-color: rgba(0, 121, 170, .11);
}

html.light-mode .mf-comments-heading {
    border-bottom-color: rgba(0, 121, 170, .10);
}

html.light-mode .mf-composer-input-wrap,
html.light-mode .mf-inline-editor {
    background: rgba(245, 251, 253, .92);
    border-color: rgba(0, 121, 170, .13);
}

html.light-mode .mf-release-body,
html.light-mode .mf-comment-body,
html.light-mode .mf-toast p {
    color: #38515C;
}

html.light-mode .mf-release-author-name,
html.light-mode .mf-comment-name,
html.light-mode .mf-file-card__details strong,
html.light-mode .mf-composer-gate strong,
html.light-mode .mf-empty-comments h4 {
    color: #152B34;
}

html.light-mode .mf-comment-composer textarea,
html.light-mode .mf-inline-editor textarea {
    color: #203A45;
}

html.light-mode .mf-emoji-picker,
html.light-mode .mf-toast {
    background: rgba(255, 255, 255, .99);
    border-color: rgba(0, 121, 170, .14);
    box-shadow: 0 18px 45px rgba(21, 77, 98, .15);
}

html.light-mode .mf-release-avatar img,
html.light-mode .mf-comment-avatar img {
    border-color: #EDF7FB;
}

html.light-mode .mf-like-button.is-liked,
html.light-mode .mf-send-button,
html.light-mode .mf-inline-save,
html.light-mode .mf-retry-button {
    color: #06202B;
    background: linear-gradient(105deg, #00C1FF, #89DCFF);
}

@media (max-width: 767px) {
    .mf-community-section {
        padding-top: 28px;
    }

    .mf-community-shell {
        padding: 20px 16px;
        border-radius: 13px;
    }

    .mf-community-header {
        align-items: stretch;
    }

    .mf-like-button {
        min-width: 128px;
    }

    .mf-release-card,
    .mf-comments-panel {
        border-radius: 16px;
    }
}
