:root {
    --community-gold: #f59e0b;
    --community-ink: #070a0f;
    --community-panel: rgba(9, 14, 24, .86);
    --community-muted: #7c899b;
    --community-line: rgba(255, 255, 255, .09);
    --community-rail-h: 86px;
}

body.community-page {
    background: #05070b;
    color: #f8fafc;
    font-family: Inter, sans-serif;
}

body.community-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(3, 6, 12, .52), #05070b 72%),
        url("../assets/rankings-bg.jpg") center top / cover no-repeat;
    filter: saturate(.68);
}

body.community-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .2;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.018) 3px, rgba(255,255,255,.018) 4px);
}

.community-page h1,
.community-page h2,
.community-page h3,
.community-page .font-heading {
    font-family: Outfit, sans-serif;
}

.data-font,
.rank-stats strong,
.ranking-value,
.ranking-position {
    font-family: "JetBrains Mono", monospace;
}

.community-site-link {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.community-site-link:hover,
.community-site-link.active { color: #fff; }

.community-site-link.active { position: relative; }
.community-site-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    background: var(--community-gold);
}

.community-drop-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    color: #cbd5e1;
    font-size: 14px;
    transition: .2s ease;
}

.community-drop-link i { width: 18px; color: #64748b; text-align: center; }
.community-drop-link:hover { color: var(--community-gold); background: rgba(255,255,255,.05); }

.community-mobile-link {
    color: #94a3b8;
    font-family: Outfit, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.community-mobile-link.active { color: var(--community-gold); }
.community-mobile-label {
    margin-top: .25rem;
    color: #475569;
    font: 700 .7rem/1 Outfit, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.community-mobile-sub { padding-left: 1rem; color: #94a3b8; font-size: .9rem; }
.community-mobile-sub i { width: 20px; color: #64748b; }

.community-hero {
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.community-hero-inner {
    min-height: 280px;
    padding-top: clamp(3.6rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.community-hero-title {
    margin: .4rem 0 .8rem;
    color: #fff;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .95;
}
.community-hero-title span { color: var(--community-gold); }
.community-hero-lede { max-width: 650px; color: #9aa7b9; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.7; }

.community-rail-wrap {
    position: sticky;
    top: var(--site-sticky-top);
    z-index: 35;
    background: transparent;
    pointer-events: none;
}

.community-rail {
    min-height: var(--community-rail-h);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.community-tab {
    position: relative;
    display: grid;
    grid-template-columns: 24px auto;
    grid-template-rows: auto auto;
    align-content: center;
    justify-content: center;
    column-gap: .75rem;
    padding: .9rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .75rem;
    background: rgba(7, 11, 18, .72);
    backdrop-filter: blur(14px) saturate(115%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
    color: #667386;
    text-align: left;
    transition: color .2s, background .2s;
    pointer-events: auto;
}
.community-tab i { grid-row: 1 / 3; align-self: center; font-size: 1rem; }
.community-tab span { font-family: Outfit, sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.community-tab small { font-size: .65rem; }
.community-tab::after {
    content: "";
    position: absolute;
    left: 28%;
    right: 28%;
    bottom: 0;
    height: 2px;
    background: var(--community-gold);
    transform: scaleX(0);
    transition: transform .2s ease;
}
.community-tab:hover { color: #d5dce6; border-color: rgba(255,255,255,.13); background: rgba(14, 20, 31, .82); }
.community-tab.active { color: #fff; border-color: rgba(245,158,11,.2); background: linear-gradient(180deg, rgba(28, 24, 16, .84), rgba(8, 12, 20, .8)); }
.community-tab.active i { color: var(--community-gold); }
.community-tab.active::after { transform: scaleX(1); }

.community-main { flex: 1; width: 100%; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 7rem; }
.community-panel { animation: panel-in .22s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

.panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}
.panel-kicker { margin-bottom: .35rem; color: var(--community-gold); font: 700 .66rem/1 "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
.panel-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; }
.panel-heading h2 + p { max-width: 590px; margin-top: .45rem; color: var(--community-muted); line-height: 1.6; }

.primary-action {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1.15rem;
    border-radius: .65rem;
    background: var(--community-gold);
    color: #140d02;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(245,158,11,.13);
    transition: transform .2s, background .2s;
}
.primary-action:hover { transform: translateY(-2px); background: #fbbf24; }

.rank-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 1rem;
    border: 1px solid var(--community-line);
    border-radius: 1rem;
    background: linear-gradient(120deg, rgba(17,25,39,.9), rgba(8,12,20,.88));
    overflow: hidden;
}
.rank-stats > div { padding: 1.25rem 1.5rem; }
.rank-stats > div:not(:last-child) { border-right: 1px solid var(--community-line); }
.rank-stats small, .rank-stats span { display: block; color: #536074; font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.rank-stats strong { display: block; margin: .35rem 0 .15rem; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.rank-stats strong.green { color: #4ade80; }
.rank-stats strong.red { color: #fb7185; }
.rank-stats strong.gold { color: var(--community-gold); }
.stat-cx-label { display: flex !important; align-items: center; gap: .28rem; }
.stat-cx-label img { width: 15px; height: 15px; object-fit: contain; }

.grid-fund-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .7rem .75rem .7rem .8rem;
    border: 1px solid rgba(245, 158, 11, .18);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(20, 15, 7, .9), rgba(10, 14, 21, .86));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 30px rgba(0,0,0,.13);
}
.grid-fund-pill.is-critical { border-color: rgba(248,113,113,.25); }
.grid-fund-icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245,158,11,.24);
    border-radius: 50%;
    background: rgba(245,158,11,.1);
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(245,158,11,.08);
}
.grid-fund-pill.is-critical .grid-fund-icon {
    border-color: rgba(248,113,113,.28);
    background: rgba(248,113,113,.09);
    color: #fb7185;
}
.grid-fund-name { min-width: 142px; }
.grid-fund-name small,
.grid-fund-metric small {
    display: block;
    margin-bottom: .2rem;
    color: #566276;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.grid-fund-name strong {
    color: #d9e0ea;
    font: 700 .68rem/1 "JetBrains Mono", monospace;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.grid-fund-metric strong {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #f8fafc;
    font: 700 .9rem/1 "JetBrains Mono", monospace;
}
.grid-fund-metric strong b {
    color: #725f3c;
    font: 700 .55rem/1 Inter, sans-serif;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.grid-fund-days strong { color: #fbbf24; }
.grid-fund-divider { width: 1px; height: 28px; background: rgba(255,255,255,.075); }
.grid-fund-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    flex: none;
    padding: .72rem 1rem;
    border-radius: 999px;
    background: var(--community-gold);
    color: #160e02;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: transform .18s, background .18s;
}
.grid-fund-cta:hover { transform: translateY(-1px); background: #fbbf24; }
.grid-fund-cta i { font-size: .6rem; }

.panel-toolbar {
    position: sticky;
    top: calc(var(--site-sticky-top) + var(--community-rail-h));
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2rem;
    padding: .75rem;
    border: 1px solid var(--community-line);
    border-radius: .85rem;
    background: rgba(8, 12, 20, .9);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.filter-set { display: flex; gap: .3rem; padding: .25rem; border-radius: .6rem; background: rgba(255,255,255,.035); }
.filter-chip {
    padding: .58rem .85rem;
    border-radius: .45rem;
    color: #6f7c90;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
    transition: .18s ease;
}
.filter-chip:hover { color: #dce3ed; }
.filter-chip.active { background: rgba(245,158,11,.13); color: #fbbf24; box-shadow: inset 0 0 0 1px rgba(245,158,11,.2); }
.faction-avatar { color: #94a3b8; }
.faction-tag {
    color: var(--community-gold);
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    letter-spacing: .04em;
}
.faction-name { color: #f8fafc; }
.faction-row-meta,
.faction-podium-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    color: #64748b;
}
.faction-podium-meta { justify-content: center; }
.faction-row-meta .theater-badge,
.faction-podium-meta .theater-badge { margin-right: .1rem; }
.faction-podium .podium-person h3 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .35rem;
    white-space: normal;
}
.filter-chip[data-rank-mode].active {
    background: rgba(56, 189, 248, .12);
    color: #7dd3fc;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .22);
}
#theater-filter-set[hidden] { display: none !important; }
#rank-sort-power[hidden] { display: none !important; }
.ranking-row.is-clickable,
.podium-entry.is-clickable {
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.ranking-row.is-clickable:hover,
.ranking-row.is-clickable:focus-visible {
    background: rgba(255,255,255,.035);
    outline: none;
}
.podium-entry.is-clickable:hover,
.podium-entry.is-clickable:focus-visible {
    border-color: rgba(125, 211, 252, .35);
    outline: none;
}
.faction-modal-overlay .overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 14, .72);
    opacity: 0;
    transition: opacity .22s ease;
}
.faction-modal {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(86vh, 920px);
    overflow: auto;
    padding: 1.35rem 1.35rem 1.5rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1rem;
    background: linear-gradient(165deg, rgba(18, 24, 36, .98), rgba(7, 10, 16, .98));
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    transform: translateY(12px) scale(.985);
    transition: transform .22s ease;
}
.community-overlay.open .faction-modal { transform: translateY(0) scale(1); }
.faction-modal .drawer-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
}
.faction-modal-hero { padding-right: 2.5rem; margin-bottom: 1.15rem; text-align: center; }
.faction-modal-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    color: #7b879a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.faction-modal-hero h2 {
    margin-top: .55rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
}
.faction-modal-owner {
    margin-top: .45rem;
    color: #6f7c90;
    font-size: .78rem;
}
.faction-modal-owner strong { color: #fbbf24; }
.faction-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: 1.25rem;
}
.faction-modal-stats > div {
    padding: .85rem .7rem;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: .75rem;
    background: rgba(255,255,255,.03);
    text-align: center;
}
.faction-modal-stats small {
    display: block;
    margin-bottom: .35rem;
    color: #64748b;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.faction-modal-stats strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    color: #f8fafc;
    font: 700 1rem/1 "JetBrains Mono", monospace;
}
.faction-modal-roster-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.faction-modal-roster-head p {
    color: #e8edf5;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.faction-modal-roster-head small { color: #64748b; font-size: .68rem; }
.faction-modal-roster-head > span { color: #7b879a; font-size: .72rem; }
.faction-member-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.faction-member-row {
    display: grid;
    grid-template-columns: 42px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: .7rem;
    background: rgba(255,255,255,.025);
}
.faction-member-row.is-leader {
    border-color: rgba(245,158,11,.22);
    background: rgba(245,158,11,.05);
}
.faction-member-rank {
    color: #64748b;
    font: 800 .72rem/1 "JetBrains Mono", monospace;
}
.faction-member-copy { min-width: 0; }
.faction-member-name {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #f1f5f9;
    font-size: .86rem;
    font-weight: 700;
}
.faction-member-copy small {
    display: block;
    margin-top: .2rem;
    color: #64748b;
    font-size: .68rem;
}
.faction-leader-pill {
    display: inline-flex;
    align-items: center;
    padding: .12rem .4rem;
    border-radius: .35rem;
    background: rgba(245,158,11,.14);
    color: #fbbf24;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.faction-member-power {
    text-align: right;
}
.faction-member-power strong {
    display: block;
    color: #e2e8f0;
    font: 700 .95rem/1 "JetBrains Mono", monospace;
}
.faction-member-power small {
    color: #64748b;
    font-size: .58rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
@media (max-width: 720px) {
    .faction-modal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faction-member-row { grid-template-columns: 36px 36px minmax(0, 1fr); }
    .faction-member-power {
        grid-column: 2 / -1;
        text-align: left;
        padding-left: calc(36px + .75rem);
    }
}
.community-search { position: relative; min-width: 210px; margin-left: auto; }
.community-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #4b586b; font-size: .75rem; }
.community-search input,
.community-select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .55rem;
    background: rgba(0,0,0,.25);
    color: #e8edf5;
    font-size: .78rem;
    outline: none;
    transition: border .2s, box-shadow .2s;
}
.community-search input { padding: .7rem .8rem .7rem 2.35rem; }
.community-search input:focus, .community-select:focus { border-color: rgba(245,158,11,.45); box-shadow: 0 0 0 3px rgba(245,158,11,.08); }
.community-search input::placeholder { color: #465267; }
.community-select { width: auto; padding: .7rem 2rem .7rem .8rem; color-scheme: dark; }

.rank-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: end;
    min-height: 250px;
    margin: 3.5rem 0 2.5rem;
}
.podium-entry {
    position: relative;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--community-line);
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(23,31,45,.82), rgba(8,12,19,.94));
    overflow: hidden;
    text-align: center;
}
.podium-entry.first { transform: translateY(-1.25rem); border-color: rgba(245,158,11,.28); }
.podium-entry::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: #64748b; }
.podium-entry.first::before { background: var(--community-gold); }
.podium-entry.third::before { background: #b45309; }
.podium-rank { display: block; color: #64748b; font: 800 .66rem/1 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.podium-entry.first .podium-rank { color: var(--community-gold); }
.podium-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin: 1.1rem 0 .85rem;
    min-width: 0;
}
.podium-copy {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.citizen-avatar {
    width: 44px; height: 44px; flex: none; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; background: rgba(255,255,255,.04); color: #64748b; overflow: hidden;
}
.citizen-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podium-person h3 {
    overflow: hidden;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.podium-person p {
    margin-top: .35rem;
    color: #536074;
    font-size: .68rem;
    justify-content: center;
}
.podium-entry .ranking-roles {
    justify-content: center;
    margin-top: .35rem;
}
.podium-entry .citizen-presence {
    justify-content: center;
    text-align: center;
}
.podium-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: 1rem;
    color: #f8fafc;
    font: 700 1.7rem/1 "JetBrains Mono", monospace;
}
.podium-score small { margin-left: .3rem; color: #536074; font: 700 .6rem/1 Inter, sans-serif; text-transform: uppercase; }

.role-supporter { --role-accent: rgba(134,239,172,.46); --role-color: #86efac; --role-wash: rgba(74,222,128,.035); }
.role-patron { --role-accent: rgba(252,165,165,.48); --role-color: #fca5a5; --role-wash: rgba(248,113,113,.04); }
.role-benefactor { --role-accent: rgba(251,191,36,.5); --role-color: #fbbf24; --role-wash: rgba(245,158,11,.045); }
.role-keeper { --role-accent: rgba(232,121,249,.5); --role-color: #e879f9; --role-wash: rgba(232,121,249,.04); }
.podium-entry.role-supporter,
.podium-entry.role-patron,
.podium-entry.role-benefactor,
.podium-entry.role-keeper {
    border-color: color-mix(in srgb, var(--role-color) 25%, transparent);
    background:
        linear-gradient(125deg, var(--role-wash), transparent 48%),
        linear-gradient(160deg, rgba(23,31,45,.82), rgba(8,12,19,.94));
    box-shadow: inset 3px 0 0 var(--role-accent);
}
.ranking-roles { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; min-height: 0; }
.ranking-roles:empty { display: none; }
.ranking-role {
    display: inline-flex; align-items: center; padding: .18rem .38rem;
    border: 1px solid color-mix(in srgb, var(--role-color) 34%, transparent);
    border-radius: .3rem; background: var(--role-wash); color: var(--role-color);
    font: 800 .49rem/1 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase;
}
.podium-person .ranking-roles { margin-top: .35rem; }
.citizen-presence {
    display: flex; align-items: center; flex-wrap: wrap; gap: .32rem;
    margin-top: .38rem; color: #657287; font-size: .59rem; line-height: 1.35;
}
.citizen-presence > span:not(.presence-divider) { display: inline-flex; align-items: center; gap: .28rem; }
.presence-online { color: #86efac; }
.presence-online > i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.45); }
.presence-health.healthy { color: #86efac; }
.presence-health.wounded { color: #fbbf24; }
.presence-health.critical { color: #fb7185; }
.presence-location i, .presence-offline i { color: #536074; }
.presence-divider { color: #364154; }
.podium-entry .citizen-presence {
    justify-content: center;
    text-align: center;
}
.podium-entry > .citizen-presence {
    margin-top: -.15rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    justify-content: center;
}
.cx-unit-logo { width: 24px; height: 24px; flex: none; object-fit: contain; filter: drop-shadow(0 0 7px rgba(245,158,11,.18)); }
.grid-fund-metric .cx-unit-logo { width: 18px; height: 18px; }

.registry { border: 1px solid var(--community-line); border-radius: 1rem; background: var(--community-panel); overflow: hidden; }
.registry-title { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--community-line); }
.registry-title p { font-family: Outfit, sans-serif; font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.registry-title small, .registry-title > span { color: #536074; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.registry-head, .ranking-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 180px; align-items: center; }
.registry-head { padding: .75rem 1.25rem; background: rgba(255,255,255,.025); color: #536074; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.registry-head span:last-child { text-align: right; }
.ranking-row { min-height: 88px; padding: .75rem 1.25rem; border-top: 1px solid rgba(255,255,255,.045); transition: background .18s; }
.ranking-row:hover { background: rgba(245,158,11,.035); }
.ranking-row.role-supporter,
.ranking-row.role-patron,
.ranking-row.role-benefactor,
.ranking-row.role-keeper {
    background: linear-gradient(90deg, var(--role-wash), transparent 42%);
    box-shadow: inset 3px 0 0 var(--role-accent);
}
.ranking-row.role-supporter:hover,
.ranking-row.role-patron:hover,
.ranking-row.role-benefactor:hover,
.ranking-row.role-keeper:hover {
    background: linear-gradient(90deg, var(--role-wash), rgba(255,255,255,.012) 48%, transparent);
}
.ranking-position { color: #59667a; font-size: .8rem; font-weight: 700; }
.ranking-position.top { color: var(--community-gold); }
.ranking-citizen { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.ranking-citizen .citizen-avatar { width: 36px; height: 36px; border-radius: 50%; }
.ranking-citizen strong { display: block; overflow: hidden; font: 700 .88rem/1.2 Outfit, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.ranking-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; min-width: 0; }
.ranking-citizen small { display: block; margin-top: .3rem; color: #536074; font-size: .64rem; }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: .3rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.5); }
.ranking-value { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; color: #f4f7fb; font-size: .92rem; font-weight: 700; text-align: right; }
.ranking-value small { display: block; margin-top: .2rem; color: #536074; font: 700 .56rem/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.ranking-value .cx-unit-logo { width: 21px; height: 21px; }

.community-pagination { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.community-pagination button {
    display: inline-flex; align-items: center; gap: .5rem; padding: .65rem .85rem;
    border: 1px solid var(--community-line); border-radius: .5rem; color: #a7b1c0; background: rgba(255,255,255,.025);
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
}
.community-pagination button:disabled { opacity: .3; cursor: not-allowed; }
.community-pagination span { color: #536074; font: 600 .66rem/1 "JetBrains Mono", monospace; }

.community-load-more {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.load-more {
    min-width: 220px;
    padding: .75rem 1rem;
    border: 1px solid var(--community-line);
    border-radius: .55rem;
    background: rgba(255,255,255,.03);
    color: #bbc4d1;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.load-more:hover { border-color: rgba(245,158,11,.3); color: #fbbf24; }
.load-more:disabled { opacity: .55; cursor: wait; }

.feed-head, .trade-columns {
    display: flex; justify-content: space-between; padding: 0 1.1rem .75rem;
    color: #536074; font-size: .61rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.notes-list { border-top: 1px solid var(--community-line); }
.note-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 2rem;
    width: 100%;
    padding: 1.65rem 1rem;
    border-bottom: 1px solid var(--community-line);
    color: inherit;
    text-align: left;
    transition: background .18s;
}
.note-row:hover { background: rgba(255,255,255,.022); }
.note-main { display: flex; align-items: center; gap: 1.15rem; min-width: 0; }
.note-copy { min-width: 0; }
.note-cover {
    width: 180px; aspect-ratio: 8 / 3; flex: none; overflow: hidden;
    border: 1px solid rgba(255,255,255,.08); border-radius: .7rem; background: rgba(255,255,255,.025);
}
.note-cover img { width: 100%; height: 100%; object-fit: cover; }
.note-meta { display: flex; gap: .65rem; align-items: center; margin-bottom: .55rem; color: #667386; font-size: .65rem; }
.note-meta .citizen-avatar { width: 34px; height: 34px; border-radius: 50%; }
.note-meta-copy { display: grid; gap: .28rem; }
.note-meta-copy > span:first-child { display: flex; align-items: center; gap: .65rem; }
.note-meta-copy strong { color: #aab4c3; font-weight: 700; }
.note-category { color: var(--community-gold); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.editor-pick-badge {
    display: inline-flex; align-items: center; padding: .18rem .42rem;
    border: 1px solid rgba(251,191,36,.35); border-radius: .3rem;
    background: rgba(245,158,11,.08); color: #fbbf24;
    font: 800 .48rem/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase;
}
.note-row.is-featured { background: linear-gradient(90deg, rgba(245,158,11,.035), transparent 46%); }
.note-row h3 { color: #f1f5f9; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; transition: color .18s; }
.note-row:hover h3 { color: #fbbf24; }
.note-row p { max-width: 750px; margin-top: .55rem; color: #768397; font-size: .85rem; line-height: 1.6; }
.note-rating-summary { align-self: center; text-align: right; }
.stars-display { color: #d97706; font-size: .75rem; letter-spacing: .08em; }
.note-rating-summary strong { display: block; margin-top: .5rem; color: #d8dee8; font: 700 .75rem/1 "JetBrains Mono", monospace; }
.note-rating-summary small { color: #536074; font-size: .62rem; }
.reaction-summary { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .28rem; margin-top: .55rem; }
.reaction-chip {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 30px; padding: .28rem .55rem;
    border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: #8b97a8;
    background: rgba(255,255,255,.03); font: 700 .62rem/1 Inter, sans-serif; letter-spacing: .02em;
    transition: border-color .16s, background .16s, color .16s, transform .16s;
}
.reaction-chip i { font-size: .68rem; }
.reaction-chip .reaction-icon {
    width: 16px; height: 16px; object-fit: contain; display: block; flex: none;
}
.reaction-chip.is-static .reaction-icon { width: 13px; height: 13px; }
.reaction-chip b { color: #d7dee8; font: 700 .62rem/1 "JetBrains Mono", monospace; }
.reaction-chip:hover { border-color: rgba(245,158,11,.28); color: #f8fafc; background: rgba(245,158,11,.06); }
.reaction-chip.is-active {
    border-color: rgba(245,158,11,.4); color: #fbbf24; background: rgba(245,158,11,.1);
}
.reaction-chip.is-static { cursor: default; padding: .2rem .42rem; min-height: 0; pointer-events: none; }
.reaction-line { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }

.community-overlay { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: flex-end; visibility: hidden; }
.community-overlay[hidden] { display: none; }
.community-overlay.open { visibility: visible; }
.community-overlay.faction-modal-overlay {
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
}
.overlay-backdrop { position: absolute; inset: 0; width: 100%; background: rgba(1,3,7,.74); opacity: 0; backdrop-filter: blur(5px); transition: opacity .25s; }
.reader-drawer {
    position: relative; z-index: 1; display: flex; flex-direction: column; width: min(720px, 92vw); height: 100%;
    border-left: 1px solid rgba(255,255,255,.12); background: #090d15; box-shadow: -30px 0 80px rgba(0,0,0,.45);
    transform: translateX(100%); transition: transform .28s cubic-bezier(.22,.7,.23,1);
}
.community-overlay.open .overlay-backdrop { opacity: 1; }
.community-overlay.open .reader-drawer { transform: translateX(0); }
.drawer-close {
    position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2; width: 38px; height: 38px;
    border: 1px solid var(--community-line); border-radius: 50%; color: #94a3b8; background: rgba(255,255,255,.04);
}
#reader-content { flex: 1; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 6vw, 4.5rem) 3rem; overflow-y: auto; }
#reader-title { margin: .8rem 0; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.reader-byline { display: flex; align-items: center; gap: .75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--community-line); color: #728095; font-size: .78rem; }
.reader-byline .citizen-avatar { width: 38px; height: 38px; border-radius: 50%; }
.reader-cover {
    width: 100%; aspect-ratio: 8 / 3; max-height: 300px; margin-top: 1.5rem; overflow: hidden;
    border: 1px solid rgba(255,255,255,.09); border-radius: .9rem; background: rgba(255,255,255,.025);
}
.reader-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reader-body { max-width: 65ch; padding-top: 2rem; color: #c3cad5; font-size: 1rem; line-height: 1.85; }
.reader-body p + p { margin-top: 1.35rem; }
.reader-body h3 { margin: 2rem 0 .7rem; color: #fff; font-size: 1.25rem; }
.reader-rating {
    flex: none; padding: 1.2rem clamp(1.5rem, 6vw, 4.5rem); border-top: 1px solid var(--community-line);
    background: rgba(13,18,29,.98);
}
.reader-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: var(--community-gold); font: 700 .66rem/1 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.rating-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rating-copy strong { display: block; font-size: .78rem; }
.rating-copy small { color: #667386; font-size: .65rem; }
.rating-stars { display: flex; flex-direction: row-reverse; gap: .2rem; }
.rating-stars button { padding: .25rem; color: #424c5d; font-size: 1.3rem; transition: color .13s, transform .13s; }
.rating-stars button:hover, .rating-stars button:hover ~ button, .rating-stars button.selected, .rating-stars button.selected ~ button { color: var(--community-gold); }
.rating-stars button:hover { transform: scale(1.12); }
.rating-stars button:focus-visible { outline: 2px solid var(--community-gold); outline-offset: 2px; border-radius: .2rem; }

.share-card {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: .95rem; padding: .85rem .95rem;
    border: 1px solid rgba(255,255,255,.07); border-radius: .75rem;
    background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(245,158,11,.04));
}
.share-card-copy { min-width: 0; }
.share-card-eyebrow {
    margin-bottom: .35rem; color: #8b7350;
    font: 800 .52rem/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase;
}
.share-card-copy strong {
    display: block; overflow: hidden; color: #f4f7fb;
    font: 700 .82rem/1.25 Outfit, sans-serif; text-overflow: ellipsis; white-space: nowrap;
}
.share-card-copy p {
    display: -webkit-box; margin-top: .3rem; overflow: hidden; color: #738193;
    font-size: .68rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.share-card-copy small { display: block; margin-top: .35rem; color: #536074; font-size: .58rem; }
.share-card-action {
    flex: none; display: inline-flex; align-items: center; gap: .4rem;
    padding: .62rem .8rem; border: 1px solid rgba(245,158,11,.28); border-radius: .55rem;
    color: #fbbf24; background: rgba(245,158,11,.08);
    font: 800 .62rem/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.share-card-action:hover { background: rgba(245,158,11,.14); }

.owner-controls {
    display: flex;
    gap: .5rem;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid var(--community-line);
}
.owner-controls button {
    padding: .5rem .7rem;
    border: 1px solid var(--community-line);
    border-radius: .45rem;
    color: #aeb8c7;
    font-size: .65rem;
    font-weight: 700;
}
.owner-controls button:hover { border-color: rgba(245,158,11,.3); color: #fbbf24; }
.owner-controls button.danger:hover { border-color: rgba(251,113,133,.32); color: #fb7185; }
.trade-owner-controls { justify-content: flex-end; }
.staff-controls {
    margin-top: .9rem; padding-top: .9rem;
    border-top: 1px solid rgba(245,158,11,.16);
}
.staff-controls-label {
    margin: 0 0 .55rem; color: #fbbf24;
    font: 800 .58rem/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.staff-controls-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.staff-controls-row:last-child { margin-bottom: 0; }
.staff-controls button {
    padding: .5rem .7rem; border: 1px solid rgba(245,158,11,.22); border-radius: .45rem;
    color: #d6c49a; background: rgba(245,158,11,.04); font-size: .65rem; font-weight: 700;
}
.staff-controls button:hover { border-color: rgba(245,158,11,.4); color: #fbbf24; background: rgba(245,158,11,.08); }
.staff-controls button.danger { border-color: rgba(251,113,133,.22); color: #f0a8b4; }
.staff-controls button.danger:hover { border-color: rgba(251,113,133,.4); color: #fb7185; }
.trade-staff-controls { margin-top: .75rem; }
.trade-item.is-hidden .trade-summary { opacity: .72; }
.trade-item.is-hidden .trade-badge { border-color: rgba(245,158,11,.35); color: #fbbf24; }

.form-overlay { z-index: 90; }
.community-form-drawer { width: min(660px, 94vw); overflow-y: auto; }
.community-form-wrap { padding: clamp(3.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3.5rem) 3rem; }
.community-form-wrap h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; }
.community-form-intro { margin: .5rem 0 1.6rem; color: #7c899b; font-size: .82rem; line-height: 1.6; }
#community-form { display: grid; gap: 1rem; }
.community-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.community-form-field { display: grid; gap: .4rem; }
.community-form-field > span { color: #b7c0cd; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.community-form-field input,
.community-form-field textarea,
.community-form-field select {
    width: 100%;
    padding: .72rem .8rem;
    border: 1px solid var(--community-line);
    border-radius: .55rem;
    background: rgba(0,0,0,.26);
    color: #f1f5f9;
    font-size: .8rem;
    outline: none;
    color-scheme: dark;
}
.community-form-field textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.community-form-field textarea[name="body"] { min-height: 260px; }
.community-form-field input:focus,
.community-form-field textarea:focus,
.community-form-field select:focus { border-color: rgba(245,158,11,.5); box-shadow: 0 0 0 3px rgba(245,158,11,.08); }
.community-form-field small { color: #536074; font-size: .58rem; text-align: right; }
.community-image-field { display: grid; gap: .5rem; }
.community-image-field > span { color: #b7c0cd; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.community-image-field > span small { margin-left: .35rem; color: #536074; font-size: .55rem; }
.community-image-picker {
    display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; align-items: center;
    padding: .8rem; border: 1px solid var(--community-line); border-radius: .7rem; background: rgba(0,0,0,.18);
}
#community-image-preview {
    aspect-ratio: 8 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    overflow: hidden; border: 1px dashed rgba(255,255,255,.13); border-radius: .55rem; color: #536074; background: rgba(255,255,255,.025);
}
#community-image-preview i { font-size: 1.25rem; }
#community-image-preview b { font-size: .56rem; letter-spacing: .04em; text-transform: uppercase; }
#community-image-preview.has-image { border-style: solid; }
#community-image-preview img { width: 100%; height: 100%; object-fit: cover; }
#community-field-image { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.community-file-button {
    display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .75rem;
    border: 1px solid var(--community-line); border-radius: .45rem; color: #d7dee8; background: rgba(255,255,255,.035);
    font-size: .65rem; font-weight: 800; cursor: pointer;
}
.community-file-button:hover { border-color: rgba(245,158,11,.3); color: #fbbf24; }
.community-image-picker p { margin-top: .55rem; color: #59667a; font-size: .58rem; line-height: 1.5; }
.community-image-picker p strong { color: #aab4c3; font-weight: 800; }
.community-image-picker p.error { color: #fb7185; }
.community-remove-image { display: flex; align-items: center; gap: .45rem; margin-top: .65rem; color: #94a3b8; font-size: .62rem; cursor: pointer; }
.community-remove-image input { accent-color: var(--community-gold); }
.community-submit { justify-content: center; margin-top: .5rem; }
.community-submit:disabled { opacity: .55; cursor: wait; transform: none; }

.trade-notice {
    display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; padding: .95rem 1.1rem;
    border: 1px solid rgba(56,189,248,.16); border-radius: .75rem; background: rgba(56,189,248,.045); color: #7dd3fc;
}
.trade-notice i { flex: none; }
.trade-notice strong, .trade-notice span { font-size: .73rem; }
.trade-notice span { margin-left: .35rem; color: #718199; }
.trade-columns { display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .9fr) minmax(160px, .8fr) 120px; }
.trade-list { border: 1px solid var(--community-line); border-radius: .9rem; background: var(--community-panel); overflow: hidden; }
.trade-item + .trade-item { border-top: 1px solid var(--community-line); }
.trade-summary {
    display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(180px, .9fr) minmax(160px, .8fr) 120px;
    align-items: center; gap: 1rem; width: 100%; padding: 1.1rem; text-align: left; transition: background .18s;
}
.trade-summary:hover { background: rgba(255,255,255,.025); }
.trade-primary { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.trade-badge { flex: none; min-width: 42px; padding: .38rem .45rem; border-radius: .35rem; font: 800 .61rem/1 "JetBrains Mono", monospace; text-align: center; }
.trade-badge.wtb { color: #7dd3fc; background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.18); }
.trade-badge.wts { color: #86efac; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.16); }
.trade-badge.wtt { color: #fbbf24; background: rgba(245,158,11,.09); border: 1px solid rgba(245,158,11,.18); }
.trade-primary strong { display: block; overflow: hidden; color: #eef2f7; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.trade-primary small, .trade-cell small { display: block; margin-top: .25rem; color: #536074; font-size: .62rem; }
.trade-cell { color: #a7b1c0; font-size: .74rem; }
.theater-label { display: inline-flex; align-items: center; gap: .4rem; color: #a7b1c0; font-size: .7rem; }
.theater-label i { color: #536074; font-size: .6rem; }
.trade-detail {
    max-height: 0; padding: 0 1.1rem; overflow: hidden; background: rgba(0,0,0,.18);
    transition: max-height .25s, padding .25s;
}
.trade-item.open .trade-detail { max-height: 260px; padding: 1rem 1.1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.045); }
.trade-detail p { max-width: 750px; color: #8996a8; font-size: .78rem; line-height: 1.65; }
.trade-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.meetup { color: #64748b; font-size: .68rem; }
.copy-contact { padding: .55rem .75rem; border: 1px solid var(--community-line); border-radius: .45rem; color: #d0d7e2; font-size: .65rem; font-weight: 700; }

.loading-state, .empty-state {
    grid-column: 1 / -1; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
    color: #59667a; font: 600 .7rem/1.5 "JetBrains Mono", monospace; text-align: center;
}
.loading-state i { color: var(--community-gold); font-size: 1.1rem; }
.empty-state i { color: #3d485a; font-size: 1.5rem; }

.community-toast {
    position: fixed; left: 50%; bottom: 1.5rem; z-index: 100; max-width: min(420px, calc(100vw - 2rem));
    padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.11); border-radius: .65rem; background: rgba(13,18,29,.96);
    color: #dce2eb; font-size: .76rem; box-shadow: 0 18px 50px rgba(0,0,0,.4); opacity: 0; transform: translate(-50%, 14px); pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.community-toast.show { opacity: 1; transform: translate(-50%, 0); }

.community-footer { margin-top: auto; padding: 3rem 1.5rem; border-top: 1px solid var(--community-line); background: rgba(5,7,11,.78); text-align: center; }
.community-footer .footer-connect { margin-bottom: 1.5rem; }
.community-footer > p { color: #64748b; font-family: Outfit, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.community-footer > small { color: #3f4a5a; font: 600 .58rem/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 900px) {
    .panel-toolbar { flex-wrap: wrap; }
    .community-search { width: 100%; order: 3; }
    .rank-podium { grid-template-columns: 1fr; margin-top: 2rem; }
    .podium-entry.first { order: -1; transform: none; }
    .trade-columns { display: none; }
    .trade-summary { grid-template-columns: minmax(0, 1fr) 110px; }
    .trade-summary .trade-cell:nth-child(2) { display: none; }
    .trade-summary .trade-cell:nth-child(3) { grid-column: 1; margin-left: 52px; }
    .note-row { grid-template-columns: 1fr 120px; gap: 1rem; }
    .grid-fund-name { min-width: 0; }
}

@media (max-width: 640px) {
    :root { --community-rail-h: 72px; }
    .community-hero-inner { min-height: 230px; padding-top: 3rem; padding-bottom: 2.7rem; }
    .community-hero-title { font-size: 2.75rem; }
    .community-rail { gap: .35rem; padding-left: .5rem; padding-right: .5rem; }
    .community-tab { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .55rem .2rem; border-radius: .6rem; text-align: center; }
    .community-tab i { font-size: .85rem; }
    .community-tab span { font-size: .62rem; }
    .community-tab small { display: none; }
    .community-main { padding-top: 2.4rem; }
    .panel-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
    .panel-heading .primary-action { align-self: stretch; justify-content: center; }
    .rank-stats { grid-template-columns: repeat(2, 1fr); }
    .rank-stats > div { padding: 1rem; }
    .rank-stats > div:nth-child(2) { border-right: 0; }
    .rank-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--community-line); }
    .grid-fund-pill { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: .65rem; border-radius: .85rem; }
    .grid-fund-name { grid-column: 2; }
    .grid-fund-metric { grid-row: 2; grid-column: 1 / 3; }
    .grid-fund-days { grid-column: 3; text-align: right; }
    .grid-fund-divider { display: none; }
    .grid-fund-cta { grid-row: 1; grid-column: 3; padding: .65rem .8rem; font-size: .58rem; }
    .ranking-toolbar .filter-set { width: 100%; overflow-x: auto; }
    .ranking-toolbar .filter-chip { flex: 1; }
    .registry-head, .ranking-row { grid-template-columns: 52px minmax(0, 1fr) 92px; }
    .registry-head, .ranking-row { padding-left: .75rem; padding-right: .75rem; }
    .ranking-citizen .citizen-avatar { display: none; }
    .ranking-citizen small { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ranking-value { font-size: .74rem; }
    .note-row { grid-template-columns: 1fr; padding: 1.35rem .5rem; }
    .note-main { align-items: flex-start; }
    .note-cover { width: 120px; }
    .note-rating-summary { text-align: left; }
    .trade-toolbar .filter-set { width: 100%; }
    .trade-toolbar .filter-chip { flex: 1; }
    .community-select { flex: 1; }
    .trade-summary { grid-template-columns: 1fr; }
    .trade-summary .trade-cell:nth-child(3) { grid-column: auto; margin-left: 52px; }
    .trade-summary .trade-cell:last-child { margin-left: 52px; }
    .trade-notice { align-items: flex-start; }
    .trade-notice span { display: block; margin: .25rem 0 0; }
    .reader-drawer { width: 100vw; }
    .rating-line { align-items: flex-start; flex-direction: column; }
    .share-card { align-items: flex-start; flex-direction: column; }
    .share-card-action { width: 100%; justify-content: center; }
    .community-form-grid { grid-template-columns: 1fr; }
    .community-image-picker { grid-template-columns: 1fr; }
    #community-image-preview { max-height: 190px; }
    .owner-controls { flex-wrap: wrap; }
    .staff-controls-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
