.p-community {
    background-image:
        radial-gradient(circle at top left, rgba(30, 158, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #f5f8fc 0%, #eef3fa 28%, #edf2f9 100%);
    background-repeat: no-repeat;
}

.community-page {
    padding: 24px 0 56px;
}

.community-shell {
    width: min(var(--tibiu-shell-width), calc(100% - var(--tibiu-shell-gutter)));
    margin: 0 auto;
}

.community-side-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.78);
}

.community-side-card h2,
.community-side-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.3;
}

.community-side-card p {
    color: #5f6c80;
    font-size: 14px;
    line-height: 1.7;
}

.community-side-list {
    display: grid;
    gap: 10px;
}

.community-topic-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.92);
    color: var(--tibiu-color-text);
    font-size: 14px;
    font-weight: 600;
}

.community-topic-pill--skeleton {
    background: rgba(244, 247, 251, 0.92);
}

.community-topic-pill--skeleton span,
.community-topic-pill--skeleton small {
    display: block;
}

.community-topic-pill small {
    color: #7f8a99;
    font-size: 12px;
    font-weight: 600;
}

.community-main {
    padding-top: 6px;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.community-main-col {
    min-width: 0;
}

.community-rail {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.community-surface {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.community-filter-bar {
    display: grid;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.community-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.community-filter-kicker {
    display: inline-block;
    color: #7f8a99;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.community-filter-lead h1 {
    margin: 6px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.community-filter-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #506175;
    font-size: 13px;
    font-weight: 700;
}

.community-filter-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2196f3;
    box-shadow: 0 0 0 6px rgba(33, 150, 243, 0.12);
}

.community-filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.community-filter-tab {
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    color: #5f6c80;
    display: grid;
    gap: 6px;
    text-align: left;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.community-filter-tab strong,
.community-filter-tab span {
    display: block;
}

.community-filter-tab strong {
    color: #1b2533;
    font-size: 16px;
    line-height: 1.2;
}

.community-filter-tab span {
    color: #6e7b8c;
    font-size: 12px;
    line-height: 1.5;
}

.community-filter-tab.is-active {
    border-color: rgba(33, 150, 243, 0.18);
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.12), rgba(33, 150, 243, 0.06));
    box-shadow: 0 12px 24px rgba(33, 150, 243, 0.12);
    transform: translateY(-1px);
}

.community-filter-tab.is-active strong {
    color: #0b73dc;
}

.community-filter-tab.is-active span {
    color: #397dc7;
}

.community-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 4px;
}

.community-filter-copy {
    color: #42556c;
    font-size: 14px;
    line-height: 1.7;
}

.community-filter-hint {
    color: #7c8898;
    font-size: 13px;
    white-space: nowrap;
}

.community-compose {
    padding: 22px;
    margin-bottom: 16px;
}

.community-fab {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 12010;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    background: #2196f3;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(33, 150, 243, 0.28);
}

.community-fab ti-icon {
    color: #fff;
}

.community-compose-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.community-compose-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e9eff, #78c7ff);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    text-decoration: none;
}

.community-avatar img {
    width: auto;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-compose-title strong,
.community-compose-title span {
    display: block;
}

.community-compose-title span {
    margin-top: 4px;
    color: #7a8796;
    font-size: 13px;
}

.community-compose-guide {
    color: #8291a2;
    font-size: 13px;
    text-align: right;
}

.community-compose-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(244, 247, 251, 0.96);
}

.community-editor-input {
    width: 100%;
    min-height: 168px;
}

.community-editor-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.community-editor-input .tiptap,
.community-editor-input .ProseMirror {
    min-height: 168px;
    border: 0;
    background: transparent;
    color: var(--tibiu-color-text);
    font-size: 16px;
    line-height: 1.8;
    outline: none;
    white-space: pre-wrap;
}

.community-editor-input .ProseMirror {
    word-break: break-word;
}

.community-editor-input .ProseMirror p {
    margin: 0;
}

.community-editor-input .ProseMirror p + p {
    margin-top: 10px;
}

.community-editor-input .ProseMirror p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: #8794a3;
    pointer-events: none;
    height: 0;
}

.community-compose-assist {
    display: grid;
    gap: 12px;
}

.community-token-row,
.community-media-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.community-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(33, 150, 243, 0.11);
    color: #0f79e2;
    font-size: 13px;
    font-weight: 700;
}

.community-chip--comic {
    background: rgba(24, 33, 47, 0.08);
    color: var(--tibiu-color-text);
}

.community-media-pill {
    min-width: 112px;
    min-height: 86px;
    padding: 14px;
    border-radius: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: flex-end;
}

.community-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.community-upload-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    border-radius: 18px;
    background: rgba(244, 247, 251, 0.96);
}

.community-upload-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-upload-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 52px;
    background: linear-gradient(180deg, rgba(10, 18, 31, 0) 0%, rgba(10, 18, 31, 0.72) 100%);
}

.community-upload-card span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 10px;
    background: rgba(10, 18, 31, 0.6);
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.community-upload-modal {
    display: grid;
    gap: 14px;
    text-align: left;
}

.community-upload-pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.community-upload-tip {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #728297;
}

.community-upload-list {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow: auto;
}

.community-upload-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #f7faff;
}

.community-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.community-upload-file {
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: #243244;
    word-break: break-all;
}

.community-upload-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.community-upload-name,
.community-upload-folder {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(33, 150, 243, 0.14);
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.community-upload-empty {
    padding: 18px 14px;
    border-radius: 16px;
    background: #f7faff;
    font-size: 13px;
    line-height: 1.7;
    color: #728297;
    text-align: center;
}

.community-busy {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(19, 31, 51, 0.32);
    backdrop-filter: blur(8px);
}

.community-busy.is-visible {
    display: flex;
}

.community-busy-card {
    width: min(100%, 320px);
    display: grid;
    gap: 12px;
    padding: 22px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 48px rgba(18, 26, 44, 0.22);
    text-align: center;
}

.community-busy-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 999px;
    border: 4px solid rgba(33, 150, 243, 0.14);
    border-top-color: #1976d2;
    animation: community-busy-spin .8s linear infinite;
}

.community-busy-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #1a2332;
}

.community-busy-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #6c7a8f;
}

.community-busy-progress {
    height: 10px;
    border-radius: 999px;
    background: #eaf1fb;
    overflow: hidden;
}

.community-busy-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    transition: width .2s ease;
}

.community-busy-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #5f6f84;
}

.community-media-pill--azure {
    background: linear-gradient(135deg, #20a3ff, #75c8ff);
}

.community-media-pill--violet {
    background: linear-gradient(135deg, #5767ff, #89a1ff);
}

.community-media-pill--sunset {
    background: linear-gradient(135deg, #ff7a59, #ffb46a);
}

.community-media-pill--mint {
    background: linear-gradient(135deg, #16b7a4, #67e1cd);
}

.community-tool-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.community-tools {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.community-tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #506175;
    font-size: 13px;
    font-weight: 700;
}

.community-tool-label {
    line-height: 1;
}

.community-compose-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.community-compose-status {
    color: #7b8898;
    font-size: 13px;
}

.community-compose-submit {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #2196f3;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.community-emoji-panel {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(33, 150, 243, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.community-emoji-panel[hidden] {
    display: none;
}

.community-emoji-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.community-emoji-tab {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: #eef7ff;
    color: #536471;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.community-emoji-tab.is-active {
    background: #1d9bf0;
    color: #fff;
}

.community-emoji-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    max-height: 190px;
    overflow: auto;
}

.community-emoji-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.community-emoji-btn img {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto;
    object-fit: contain;
}

.community-emoji-empty {
    color: #536471;
    font-size: 13px;
}

.community-feed-grid {
    column-count: 2;
    column-gap: 18px;
}

.community-card {
    display: inline-block;
    width: auto;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
    break-inside: avoid;
}

.community-card--skeleton {
    pointer-events: none;
}

.community-avatar--skeleton {
    background: rgba(230, 236, 244, 0.9);
    color: transparent;
}

.community-card-author--skeleton {
    display: grid;
    gap: 10px;
}

.community-card--skeleton .community-card-body {
    display: grid;
    gap: 10px;
}

.community-card--skeleton .community-card-body .community-skeleton--quote,
.community-card--skeleton .community-card-body .community-skeleton-media {
    margin-top: 4px;
}

.community-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-card-author {
    min-width: 0;
    flex: 1 1 auto;
}

.community-card-author strong,
.community-card-author span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-card-author span {
    margin-top: 4px;
    color: #7d8897;
    font-size: 12px;
}

.community-card-author a,
.community-reply-copy a {
    color: inherit;
    text-decoration: none;
}

.community-card-author a:hover,
.community-reply-copy a:hover {
    text-decoration: underline;
}

.community-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(33, 150, 243, 0.1);
    color: #0f79e2;
    font-size: 12px;
    font-weight: 700;
}

.community-card-badge--recommended {
    background: rgba(33, 150, 243, 0.1);
    color: #0f79e2;
}

.community-card-badge--following {
    background: rgba(24, 33, 47, 0.08);
    color: #4d5b6a;
}

.community-card-badge--trending {
    background: rgba(255, 127, 89, 0.12);
    color: #dc6a36;
}

.community-card-badge--realtime {
    background: rgba(22, 183, 164, 0.12);
    color: #12927f;
}

.community-card-head-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.community-follow-btn {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(33, 150, 243, 0.12);
    color: #0f79e2;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}

.community-follow-btn.is-following {
    background: rgba(15, 23, 42, 0.08);
    color: #4d5b6a;
}

.community-card-body {
    margin-top: 14px;
}

.community-card-meta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.community-card-meta--recommended {
    background: rgba(33, 150, 243, 0.08);
    color: #0f79e2;
}

.community-card-meta--following {
    background: rgba(24, 33, 47, 0.06);
    color: #556579;
}

.community-card-meta--trending {
    background: rgba(255, 127, 89, 0.1);
    color: #dc6a36;
}

.community-card-meta--realtime {
    background: rgba(22, 183, 164, 0.1);
    color: #12927f;
}

.community-richtext {
    color: #293545;
    font-size: 15px;
    line-height: 1.8;
}

.community-richtext p {
    margin: 0;
}

.community-richtext p + p {
    margin-top: 10px;
}

.community-card-body p,
.community-richtext {
    color: #293545;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.community-inline-tag,
.community-inline-quote {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 2px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    vertical-align: baseline;
    white-space: nowrap;
}

.community-inline-tag--mention {
    background: rgba(33, 150, 243, 0.12);
    color: #0f79e2;
}

.community-inline-tag--topic {
    background: rgba(22, 183, 164, 0.12);
    color: #12927f;
}

.community-inline-quote {
    background: rgba(24, 33, 47, 0.08);
    color: var(--tibiu-color-text);
}

.community-editor-suggest {
    position: absolute;
    z-index: 12020;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.community-editor-suggest-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #405166;
    text-align: left;
}

.community-editor-suggest-item strong,
.community-editor-suggest-item span {
    display: block;
}

.community-editor-suggest-item span {
    color: #7a8796;
    font-size: 12px;
}

.community-editor-suggest-item.is-active {
    background: rgba(33, 150, 243, 0.1);
    color: #0f79e2;
}

.community-editor-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12030;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(8px);
}

.community-editor-picker {
    width: min(360px, 100%);
    max-height: min(70vh, 520px);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.community-editor-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.community-editor-picker-head strong {
    color: #253141;
    font-size: 16px;
    line-height: 1.3;
}

.community-editor-picker-search {
    padding: 12px 12px 0;
}

.community-editor-picker-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(244, 247, 251, 0.96);
    color: #253141;
    box-sizing: border-box;
}

.community-editor-picker-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(244, 247, 251, 0.96);
    color: #617086;
    font-size: 20px;
    line-height: 1;
}

.community-editor-picker-list {
    max-height: calc(min(70vh, 520px) - 68px);
    overflow: auto;
    padding: 10px;
}

.community-editor-picker-item {
    width: 100%;
    display: block;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #405166;
    text-align: left;
}

.community-editor-picker-item + .community-editor-picker-item {
    margin-top: 4px;
}

.community-editor-picker-item strong,
.community-editor-picker-item span {
    display: block;
}

.community-editor-picker-item strong {
    font-size: 14px;
    line-height: 1.4;
}

.community-editor-picker-item span {
    margin-top: 4px;
    color: #7a8796;
    font-size: 12px;
    line-height: 1.5;
}

.community-editor-picker-item:hover {
    background: rgba(33, 150, 243, 0.08);
}

.community-editor-picker-item--create {
    background: rgba(33, 150, 243, 0.08);
}

.community-editor-picker-empty {
    padding: 18px 14px;
    color: #7a8796;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.community-comic-quote-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.community-comic-quote-label {
    color: #253141;
    font-size: 13px;
    font-weight: 700;
}

.community-comic-quote-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.community-comic-quote-row .community-compose-submit {
    min-height: 44px;
    white-space: nowrap;
}

.community-comic-quote-status {
    min-height: 20px;
    color: #7a8796;
    font-size: 13px;
    line-height: 1.55;
}

.community-card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.community-card-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.95);
    color: #617086;
    font-size: 12px;
    font-weight: 700;
}

.community-card-quote {
    margin-top: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(22, 183, 164, 0.12), rgba(30, 158, 255, 0.08));
}

.community-card-quote strong,
.community-card-quote span,
.community-card-quote small {
    display: block;
}

.community-card-quote strong {
    font-size: 15px;
}

.community-card-quote span {
    margin-top: 6px;
    color: #5f6e81;
    font-size: 13px;
    line-height: 1.6;
}

.community-card-quote small {
    margin-top: 8px;
    color: #7a8796;
    font-size: 12px;
    line-height: 1.4;
}

.community-card-gallery {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.community-card-gallery[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-card-gallery[data-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-card-gallery[data-count="3"] .community-gallery-tile:first-child {
    grid-column: 1 / -1;
}

.community-gallery-tile {
    position: relative;
    overflow: hidden;
    min-height: 130px;
    border-radius: 20px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}

.community-gallery-tile--image {
    padding: 0;
    background: #eef3f7;
    text-decoration: none;
}

.community-gallery-tile--image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-gallery-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 30, 0.04), rgba(10, 20, 30, 0.34));
}

.community-gallery-tile--image::before {
    display: none;
}

.community-gallery-tile > span {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.community-gallery-tile--tall {
    min-height: 224px;
}

.community-gallery-tile--medium {
    min-height: 168px;
}

.community-gallery-tile--short {
    min-height: 132px;
}

.community-gallery-tile--azure {
    background: linear-gradient(135deg, #1e9eff, #78c7ff);
}

.community-gallery-tile--violet {
    background: linear-gradient(135deg, #6570ff, #99a2ff);
}

.community-gallery-tile--mint {
    background: linear-gradient(135deg, #15b29f, #77e2d1);
}

.community-gallery-tile--sunset {
    background: linear-gradient(135deg, #ff7f59, #ffc26b);
}

.community-gallery-tile--ink {
    background: linear-gradient(135deg, #283548, #4c6687);
}

.community-card-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.community-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.9);
    color: #566578;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}

.community-card-action:disabled {
    cursor: wait;
    opacity: 0.62;
}

.community-card-action--link {
    text-decoration: none;
}

.community-skeleton {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 999px;
    background: rgba(229, 235, 242, 0.92);
}

.community-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: community-skeleton-shimmer 1.3s ease-in-out infinite;
}

.community-skeleton--line {
    height: 12px;
}

.community-skeleton--w-xs {
    width: 92px;
}

.community-skeleton--w-sm {
    width: 124px;
}

.community-skeleton--w-md {
    width: 58%;
}

.community-skeleton--w-lg {
    width: 82%;
}

.community-skeleton--w-xl {
    width: 94%;
}

.community-skeleton--pill {
    width: 72px;
    height: 34px;
}

.community-skeleton--quote {
    height: 74px;
    margin-top: 14px;
    border-radius: 20px;
}

.community-skeleton-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.community-skeleton--media {
    min-height: 132px;
    border-radius: 20px;
}

.community-skeleton--media-tall {
    min-height: 196px;
}

@keyframes community-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.community-empty {
    padding: 40px 20px;
    text-align: center;
    color: #758294;
    font-size: 14px;
}

.community-empty--feed {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 44px 28px;
    border-radius: 28px;
}

.community-empty--section {
    padding: 28px 20px;
    border-radius: 22px;
    background: rgba(244, 247, 251, 0.96);
}

.community-empty-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(33, 150, 243, 0.08);
    color: #2196f3;
}

.community-empty strong {
    color: #1b2533;
    font-size: 18px;
    line-height: 1.3;
}

.community-empty p {
    max-width: 520px;
    margin: 0;
    color: #6b788a;
    font-size: 14px;
    line-height: 1.8;
}

.community-empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(33, 150, 243, 0.1);
    color: #0f79e2;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.community-note-list {
    display: grid;
    gap: 12px;
}

.community-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(244, 247, 251, 0.96);
}

.community-note--skeleton {
    display: grid;
    gap: 10px;
}

.community-note strong,
.community-note span {
    display: block;
}

.community-note span {
    margin-top: 6px;
    color: #6a7788;
    font-size: 13px;
    line-height: 1.6;
}

.community-side-empty {
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(244, 247, 251, 0.96);
    text-align: left;
}

.community-side-empty strong,
.community-side-empty span {
    display: block;
}

.community-side-empty strong {
    color: #253141;
    font-size: 14px;
    line-height: 1.5;
}

.community-side-empty span {
    margin-top: 6px;
    color: #6a7788;
    font-size: 13px;
    line-height: 1.6;
}

.community-post-page {
    padding-top: 18px;
}

.community-editor-topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 8px 0 14px;
    margin-bottom: 14px;
    background: rgba(245, 248, 252, 0.96);
    backdrop-filter: blur(10px);
}

.community-editor-topbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-editor-topbar-status {
    margin-left: auto;
}

.community-editor-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2196F3;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(25, 42, 70, 0.08);
}

.community-editor-topbar-copy {
    min-width: 0;
}

.community-editor-topbar-copy strong,
.community-editor-topbar-copy span {
    display: block;
}

.community-editor-topbar-copy strong {
    color: #252f3d;
    font-size: 16px;
    line-height: 1.25;
}

.community-editor-topbar-copy span {
    margin-top: 2px;
    color: #6a7788;
    font-size: 12px;
    line-height: 1.4;
}

.community-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin-bottom: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.community-editor-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.community-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.community-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.community-editor-compose {
    margin-bottom: 0;
}

.community-compose-submit.is-loading,
.community-compose-submit.is-disabled {
    opacity: 0.7;
    pointer-events: none;
}

@keyframes community-busy-spin {
    to {
        transform: rotate(360deg);
    }
}

.community-editor-rail {
    top: 88px;
}

.community-post-main-col {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.community-post-rail {
    top: 88px;
}

.community-detail-card {
    padding: 22px;
}

.community-reply-compose {
    display: grid;
    gap: 14px;
}

.community-reply-compose-head,
.community-reply-compose-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.community-reply-compose-head h3 {
    margin: 0;
}

.community-reply-compose-head span,
.community-reply-compose-meta span {
    color: #7c8897;
    font-size: 12px;
}

.community-reply-compose-box {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(244, 247, 251, 0.96);
}

.community-reply-compose-box textarea {
    width: 100%;
    min-height: 98px;
    resize: vertical;
    border: 0;
    background: transparent;
    color: var(--tibiu-color-text);
    font-size: 16px;
    line-height: 1.8;
    outline: none;
}

.community-reply-compose-box textarea::placeholder {
    color: #8794a3;
}

.community-reply-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.community-reply-assist:empty,
.community-editor-picker-inline[hidden] {
    display: none;
}

.community-reply-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.community-reply-image-item {
    position: relative;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f7fb;
}

.community-reply-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-reply-image-item button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 20, 25, 0.72);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.community-editor-picker-inline {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(33, 150, 243, 0.14);
    border-radius: 14px;
    background: #fff;
}

.community-editor-picker-inline .community-editor-picker-search input {
    width: 100%;
}

.community-reply-mention-list {
    display: grid;
    max-height: 220px;
    overflow: auto;
}

.community-reply-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0f1419;
    text-align: left;
}

.community-reply-mention-item:hover {
    background: #f7f9fb;
}

.community-reply-mention-item span {
    display: grid;
    gap: 2px;
}

.community-reply-mention-item small {
    color: #536471;
}

.community-card-body--detail p {
    font-size: 16px;
    line-height: 1.95;
}

.community-card-body--detail .community-richtext {
    font-size: 16px;
    line-height: 1.95;
}

.community-reply-list {
    display: grid;
    gap: 14px;
}

.community-reply-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.community-reply-card:first-child {
    border-top: 0;
    padding-top: 0;
}

.community-reply-card--skeleton {
    pointer-events: none;
}

.community-avatar--sm {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 15px;
}

.community-reply-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.community-reply-copy strong {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.community-reply-copy small {
    color: #7c8897;
    font-size: 12px;
    font-weight: 500;
}

.community-reply-copy p {
    margin-top: 8px;
    color: #334252;
    font-size: 14px;
    line-height: 1.75;
}

.community-inline-emoji {
    width: 24px;
    height: 24px;
    margin: 0 2px;
    vertical-align: -6px;
}

.community-reply-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 180px));
    gap: 8px;
    margin-top: 10px;
}

.community-reply-media a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f7fb;
}

.community-reply-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.community-related-list {
    display: grid;
    gap: 10px;
}

.community-related-item {
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(244, 247, 251, 0.96);
    color: var(--tibiu-color-text);
    text-decoration: none;
}

.community-related-item--skeleton {
    pointer-events: none;
}

.community-related-item--skeleton span {
    display: block;
}

.community-related-item strong,
.community-related-item span {
    display: block;
}

.community-related-item span {
    margin-top: 6px;
    color: #68788a;
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 1080px) {
    .community-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-editor-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-rail {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-feed-grid {
        column-count: 2;
    }
}

@media (max-width: 760px) {
    .community-page {
        padding-top: 16px;
    }

    .community-shell {
        width: calc(100% - 20px);
    }

    .community-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-side-card,
    .community-filter-bar {
        border-radius: 24px;
    }

    .community-filter-bar {
        padding: 14px;
        display: grid;
    }

    .community-filter-head,
    .community-filter-summary,
    .community-filter-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-filter-head,
    .community-filter-summary {
        display: grid;
    }

    .community-filter-status {
        justify-self: start;
    }

    .community-filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-filter-tab {
        min-height: 68px;
    }

    .community-fab {
        right: 14px;
        bottom: 18px;
        min-height: 46px;
        padding: 0 16px;
        gap: 8px;
    }

    .community-reply-compose-head,
    .community-reply-compose-meta,
    .community-card-head-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-feed-grid {
        column-count: 1;
    }

    .community-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-detail-card {
        padding: 18px;
    }

    .community-post-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-editor-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-post-page {
        padding-top: 10px;
    }

    .community-editor-topbar {
        padding: 6px 0 12px;
        margin-bottom: 12px;
    }

    .community-editor-topbar-row {
        flex-wrap: wrap;
    }

    .community-editor-topbar-status {
        margin-left: 0;
    }

    .community-editor-back {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .community-comic-quote-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Twitter-like community index */
.p-community-index {
    background: #f7f9fb;
    background-image: none;
}

.p-community-index .community-page {
    padding: 0 0 48px;
}

@media (min-width: 961px) {
    .p-community-index:not(.p-community-search) .tibiu-site-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 60;
        background: rgba(244, 247, 251, 0.94);
        backdrop-filter: blur(14px);
    }

    .p-community-index:not(.p-community-search) .community-page {
        padding-top: 89px;
    }

    .p-community-index:not(.p-community-search) .community-filter-bar {
        top: 89px;
    }

    .p-community-index:not(.p-community-search) .community-left-rail,
    .p-community-index:not(.p-community-search) .community-rail {
        top: 101px;
        max-height: calc(100vh - 117px);
    }
}

.p-community-index .community-shell {
    width: min(1240px, calc(100% - 28px));
}

.p-community-index .community-layout {
    grid-template-columns: 216px minmax(0, 640px) 320px;
    gap: 0;
    align-items: start;
}

.p-community-index .community-left-rail,
.p-community-index .community-rail {
    position: sticky;
    top: 74px;
    max-height: calc(100vh - 92px);
    overflow: auto;
}

.p-community-index .community-left-rail {
    padding: 12px 16px 0 0;
}

.p-community-index .community-rail {
    padding: 12px 0 0 16px;
}

.p-community-index .community-main-col {
    min-height: 100vh;
    border-right: 1px solid #e6ecf0;
    border-left: 1px solid #e6ecf0;
    background: #fff;
}

.p-community-index .community-surface,
.p-community-index .community-side-card {
    border-color: #e6ecf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

.p-community-index .community-left-nav {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 0;
    background: transparent;
}

.p-community-index .community-left-nav-item,
.p-community-index .community-left-compose {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    color: #0f1419;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.p-community-index .community-left-nav-item:hover {
    background: #e8f5fd;
    color: #0f7fdc;
}

.p-community-index .community-left-nav-item.is-active {
    color: #0f7fdc;
}

.p-community-index .community-left-compose {
    justify-content: center;
    margin-top: 10px;
    background: #1d9bf0;
    color: #fff;
    box-shadow: 0 10px 22px rgba(29, 155, 240, 0.18);
}

.p-community-index .community-left-compose ti-icon {
    color: #fff;
}

.p-community-index .community-filter-bar {
    position: sticky;
    top: 64px;
    z-index: 20;
    gap: 8px;
    margin: 0;
    padding: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.p-community-index .community-filter-head {
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
}

.p-community-index .community-filter-kicker,
.p-community-index .community-filter-summary,
.p-community-index .community-filter-tab span {
    display: none;
}

.p-community-index .community-filter-lead h1 {
    margin: 0;
    color: #0f1419;
    font-size: 21px;
    line-height: 1.2;
}

.p-community-index .community-filter-status {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #e6ecf0;
    background: #f7f9fb;
    color: #536471;
    font-size: 12px;
}

.p-community-index .community-filter-status-dot {
    background: #00ba7c;
    box-shadow: 0 0 0 5px rgba(0, 186, 124, 0.12);
}

.p-community-index .community-mobile-search {
    display: none;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #f2f2f2;
    color: #6b7280;
    text-decoration: none;
    box-shadow: none;
}

.p-community-index .community-mobile-search:hover {
    background: #eeeeee;
    color: #4b5563;
}

.p-community-index .community-filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.p-community-index .community-filter-tab {
    position: relative;
    justify-content: center;
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    transform: none;
    box-shadow: none;
}

.p-community-index .community-filter-tab:hover {
    background: #f7f9fb;
}

.p-community-index .community-filter-tab strong {
    color: #536471;
    font-size: 15px;
    line-height: 1.2;
}

.p-community-index .community-filter-tab.is-active {
    background: transparent;
    box-shadow: none;
}

.p-community-index .community-filter-tab.is-active strong {
    color: #0f1419;
}

.p-community-index .community-filter-tab.is-active::after {
    content: "";
    position: absolute;
    right: 28%;
    bottom: 0;
    left: 28%;
    height: 4px;
    border-radius: 999px;
    background: #1d9bf0;
}

.p-community-index .community-feed-grid {
    column-count: 1;
    column-gap: 0;
}

.p-community-index .community-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    width: auto;
    margin: 0;
    padding: 16px;
    border-width: 0 0 1px;
    border-color: #eff3f4;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    break-inside: auto;
    transition: background-color .18s ease;
}

.p-community-index .community-card:hover {
    background: #f7f9fb;
}

.p-community-index .community-card--skeleton {
    display: block;
}

.p-community-index .community-card-head {
    align-items: flex-start;
    gap: 10px;
}

.p-community-index .community-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 999px;
    background: #1d9bf0;
    color: #fff;
}

.p-community-index .community-card-author {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: 1px;
}

.p-community-index .community-card-author strong,
.p-community-index .community-card-author span {
    display: inline;
}

.p-community-index .community-card-author strong {
    color: #0f1419;
    font-size: 15px;
    line-height: 1.35;
}

.p-community-index .community-card-author span {
    margin: 0;
    color: #536471;
    font-size: 14px;
}

.p-community-index .community-card-badge,
.p-community-index .community-card-meta {
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
}

.p-community-index .community-card-badge {
    margin-left: auto;
    background: #eef7ff;
    color: #0f7fdc;
}

.p-community-index .community-card-main {
    min-width: 0;
}

.p-community-index .community-card-body {
    margin-top: 4px;
    padding-left: 0;
}

.p-community-index .community-card-meta {
    margin-bottom: 8px;
    background: transparent;
    color: #536471;
    padding-left: 0;
}

.p-community-index .community-richtext,
.p-community-index .community-card-body p {
    color: #0f1419;
    font-size: 15px;
    line-height: 1.55;
}

.p-community-index .community-richtext[data-post-detail-url] {
    cursor: pointer;
}

.p-community-index .community-richtext[data-post-detail-url]:hover {
    color: #1d4ed8;
}

.p-community-index .community-card-tags {
    margin-top: 10px;
    gap: 6px;
}

.p-community-index .community-card-tag {
    min-height: 26px;
    padding: 0 10px;
    background: #eef7ff;
    color: #0f7fdc;
}

.p-community-index .community-card-quote {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e6ecf0;
    border-radius: 8px;
    background: #fff;
}

.p-community-index .community-card-gallery {
    overflow: hidden;
    gap: 2px;
    margin-top: 12px;
    border: 1px solid #e6ecf0;
    border-radius: 8px;
}

.p-community-index .community-gallery-tile {
    min-height: 150px;
    border-radius: 0;
}

.p-community-index .community-gallery-tile--tall {
    min-height: 230px;
}

.p-community-index .community-gallery-tile--medium {
    min-height: 180px;
}

.p-community-index .community-gallery-tile--short {
    min-height: 140px;
}

.p-community-index .community-card-actions {
    justify-content: space-between;
    margin-top: 12px;
    padding-left: 0;
    gap: 6px;
}

.p-community-index .community-card-action {
    min-width: 0;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 999px;
    background: transparent;
    color: #536471;
    font-size: 13px;
    font-weight: 700;
}

.p-community-index .community-card-action:hover {
    background: #e8f5fd;
    color: #1d9bf0;
}

.p-community-index .community-card-action--like:hover {
    background: #fce8f1;
    color: #f91880;
}

.community-card-action--like.is-active {
    background: rgba(249, 24, 128, 0.12);
    color: #f91880;
}

.p-community-index .community-card-action--fav:hover {
    background: #e6f8f1;
    color: #00ba7c;
}

.community-card-action--fav.is-active {
    background: rgba(0, 186, 124, 0.12);
    color: #00a86f;
}

.community-card-action--share:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.p-community-index .community-card-action--link {
    color: #1d9bf0;
}

.p-community-index .community-side-card {
    padding: 0;
    overflow: hidden;
    background: #f7f9fb;
}

.p-community-index .community-side-card + .community-side-card {
    margin-top: 16px;
}

.p-community-index .community-side-card h3 {
    margin: 0;
    padding: 14px 16px 8px;
    color: #0f1419;
    font-size: 19px;
}

.p-community-index .community-side-list {
    gap: 0;
}

.p-community-index .community-topic-pill,
.p-community-index .community-note {
    border-radius: 0;
    background: transparent;
}

.p-community-index .community-topic-pill {
    min-height: 48px;
    padding: 0 16px;
}

.p-community-index .community-note {
    padding: 12px 16px;
}

.p-community-index .community-topic-pill:hover,
.p-community-index .community-note:hover {
    background: #eff3f4;
}

.p-community-index .community-empty--feed {
    margin: 22px;
    border-radius: 8px;
}

.p-community-index .community-fab {
    display: none;
}

.p-community-search .community-search-head {
    position: sticky;
    top: 64px;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 14px;
    border-width: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.p-community-search .community-search-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    color: #0f1419;
}

.p-community-search .community-search-back:hover {
    background: #eff3f4;
}

.p-community-search .community-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0 8px 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #eff3f4;
}

.p-community-search .community-search-form:focus-within {
    border-color: #1d9bf0;
    background: #fff;
}

.p-community-search .community-search-form input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f1419;
    font-size: 15px;
}

.p-community-search .community-search-form button {
    min-height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #1d9bf0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.p-community-search .community-search-tabs-bar {
    top: 122px;
}

.p-community-search .community-search-status {
    padding: 12px 16px;
    border-bottom: 1px solid #eff3f4;
    color: #536471;
    font-size: 14px;
}

.p-community-search .community-search-section {
    border-bottom: 1px solid #eff3f4;
}

.p-community-search .community-search-section h2 {
    margin: 0;
    padding: 14px 16px 6px;
    color: #0f1419;
    font-size: 19px;
    line-height: 1.25;
}

.p-community-search .community-search-list {
    display: grid;
}

.p-community-search .community-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px;
    border-top: 1px solid #eff3f4;
    color: #0f1419;
    text-decoration: none;
}

.p-community-search .community-search-item:hover {
    background: #f7f9fb;
}

.p-community-search .community-search-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 999px;
    background: #eef7ff;
    color: #1d9bf0;
    font-size: 21px;
    font-weight: 800;
}

.p-community-search .community-search-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.p-community-search .community-search-item-copy strong,
.p-community-search .community-search-item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-community-search .community-search-item-copy strong {
    font-size: 15px;
}

.p-community-search .community-search-item-copy small {
    color: #536471;
    font-size: 13px;
}

.p-community-search .community-search-empty {
    padding: 20px 16px;
    color: #536471;
    font-size: 14px;
}

.p-community-search .community-search-history {
    display: grid;
    border-top: 1px solid #eff3f4;
}

.p-community-search .community-search-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #eff3f4;
}

.p-community-search .community-search-history-head strong {
    color: #0f1419;
    font-size: 16px;
}

.p-community-search .community-search-history-head button {
    border: 0;
    background: transparent;
    color: #1d9bf0;
    font-size: 14px;
    cursor: pointer;
}

.p-community-search .community-search-history-list {
    display: grid;
}

.p-community-search .community-search-history-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 16px;
    border: 0;
    border-bottom: 1px solid #eff3f4;
    background: #fff;
    color: #0f1419;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.p-community-search .community-search-history-item:hover {
    background: #f7f9fb;
}

.p-community-search .community-search-history-item span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-community-search .community-search-history-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: #536471;
    font-style: normal;
    font-size: 20px;
}

.p-community-search .community-search-history-item i:hover {
    background: #e8f5fd;
    color: #1d9bf0;
}

.p-community-search .community-search-item--skeleton {
    display: grid;
    gap: 8px;
}

.p-community-search .community-search-results[data-active-type="posts"] .community-search-section[data-section="topics"],
.p-community-search .community-search-results[data-active-type="posts"] .community-search-section[data-section="users"],
.p-community-search .community-search-results[data-active-type="topics"] .community-search-section[data-section="posts"],
.p-community-search .community-search-results[data-active-type="topics"] .community-search-section[data-section="users"],
.p-community-search .community-search-results[data-active-type="users"] .community-search-section[data-section="posts"],
.p-community-search .community-search-results[data-active-type="users"] .community-search-section[data-section="topics"] {
    display: none;
}

.p-community-search .community-search-results[data-active-type="recent"] .community-search-section[data-section="topics"],
.p-community-search .community-search-results[data-active-type="recent"] .community-search-section[data-section="users"],
.p-community-search .community-search-results[data-active-type="recent"] .community-search-section[data-section="posts"] > h2 {
    display: none;
}

@media (max-width: 1180px) {
    .p-community-index .community-layout {
        grid-template-columns: 76px minmax(0, 640px) 300px;
    }

    .p-community-index .community-left-nav-item,
    .p-community-index .community-left-compose {
        justify-content: center;
        width: 48px;
        padding: 0;
    }

    .p-community-index .community-left-nav-item span,
    .p-community-index .community-left-compose span {
        display: none;
    }
}

@media (max-width: 980px) {
    .p-community-index .community-layout {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .p-community-index .community-rail {
        display: none;
    }
}

@media (max-width: 760px) {
    .p-community-index .community-shell {
        width: 100%;
    }

    .p-community-index .community-layout {
        display: block;
    }

    .p-community-index .community-left-rail {
        display: none;
    }

    .p-community-index .community-main-col {
        border-left: 0;
        border-right: 0;
    }

    .p-community-index .community-filter-bar {
        top: 0;
    }

    .p-community-index .community-filter-head {
        min-height: 56px;
        padding: 8px 9px;
    }

    .p-community-index .community-filter-lead {
        display: none;
    }

    .p-community-index .community-mobile-search {
        display: flex;
        flex: 1 1 auto;
        width: auto;
        margin-left: 0;
    }

    .p-community-index .community-filter-status {
        display: none;
    }

    .p-community-index .community-filter-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .p-community-index .community-filter-tab {
        min-height: 28px;
        padding: 0 4px;
    }

    .p-community-index .community-filter-tab strong {
        font-size: 14px;
    }

    .p-community-index .community-card {
        padding: 14px;
    }

    .p-community-index .community-card-badge {
        display: none;
    }

    .p-community-index .community-card-body,
    .p-community-index .community-card-actions {
        padding-left: 0;
    }

    .p-community-index .community-card-actions {
        justify-content: flex-start;
    }

    .p-community-index .community-card-action {
        padding: 0 8px;
    }

    .p-community-index .community-card-action--share,
    .p-community-index .community-card-action--link {
        display: none;
    }

    .p-community-index .community-fab {
        display: inline-flex;
    }

    .p-community-search .community-search-head {
        top: 0;
    }

    .p-community-search .community-search-tabs-bar {
        top: 58px;
    }

    .p-community-search .community-search-form button {
        display: none;
    }
}
