.community-page {
    max-width: 960px;
    margin: 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

.page-layout-v2 .main-content .community-page .hero-section {
    padding: 12px 16px;
    text-align: left;
}

.page-layout-v2 .main-content .community-page .hero-section h1 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    letter-spacing: 0;
}

.community-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.community-search {
    display: flex;
    gap: 8px;
    flex: 1 1 320px;
}

.community-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d3df;
    border-radius: 8px;
    font-size: 0.95rem;
}

.community-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #0f5ea9;
    background: #0f5ea9;
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.community-btn.secondary {
    background: #fff;
    color: #0f5ea9;
}

.community-btn.danger {
    border-color: #b91c1c;
    background: #b91c1c;
    color: #fff;
}

.community-btn.compact {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 0.78rem;
}

.community-alert {
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.community-alert.success {
    background: #edf9f1;
    color: #166534;
    border: 1px solid #b7ebc6;
}

.community-alert.error {
    background: #fef2f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.community-list-wrap {
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.community-category-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative;
}

.community-board-actions,
.community-search-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.community-category-select-form {
    flex: 1 1 auto;
    min-width: 0;
}

.community-card-select-native {
    position: absolute;
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0 !important;
}

.community-category-trigger,
.community-card-select-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 128px;
    min-height: 40px;
    padding: 0 12px 0 14px;
    border: 1px solid #bfd3e8;
    border-radius: 999px;
    background: #f7fbff;
    color: #1f4f7b;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.community-card-select-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-category-trigger svg,
.community-card-select-trigger svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.community-category-select-form .community-card-select-trigger {
    max-width: 160px;
}

.community-write-meta-row .community-card-select-trigger {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 0;
    border-right: 1px solid #edf2f7;
    border-radius: 0;
    background: #fbfdff;
    box-shadow: none;
    overflow: hidden;
}

.community-report-form .community-card-select-trigger {
    flex: 1 1 180px;
    min-width: 160px;
    border-radius: 8px;
    background: #fff;
}

.community-board-actions {
    margin-left: auto;
}

.community-inline-category-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 7px;
    border-bottom: 1px solid #edf2f7;
    background: #fbfdff;
    overflow-x: auto;
    scrollbar-width: none;
}

.community-inline-category-filter::-webkit-scrollbar {
    display: none;
}

.community-inline-category-filter .community-category-chip {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.74rem;
}

.community-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #bfd3e8;
    border-radius: 12px;
    background: #fff;
    color: #0f5ea9;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(17, 48, 80, 0.06);
}

.community-icon-btn.primary {
    border-color: #0f5ea9;
    background: #0f5ea9;
    color: #fff;
}

.community-icon-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.community-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.community-search-dropdown {
    position: relative;
}

.community-list-bottom-actions {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.community-list-bottom-actions .community-search-dropdown {
    justify-self: start;
}

.community-list-bottom-actions > .community-icon-btn {
    justify-self: end;
}

.community-list-bottom-actions .community-pagination {
    min-width: 0;
    margin: 0;
}

.community-search-dropdown summary {
    list-style: none;
}

.community-search-dropdown summary::-webkit-details-marker {
    display: none;
}

.community-search-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid #d6e3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 48, 80, 0.16);
}

.community-list-bottom-actions > .community-search-dropdown:last-child .community-search-popover {
    right: 0;
    left: auto;
}

.community-category-modal,
.community-card-select-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.community-category-modal.hidden,
.community-card-select-modal.hidden {
    display: none;
}

.community-category-backdrop,
.community-card-select-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.community-category-card,
.community-card-select-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 32px));
    max-height: 72vh;
    max-height: min(72vh, calc(100dvh - 112px));
    border: 1px solid #d7dee5;
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 35, 55, 0.24);
    overflow: hidden;
}

.community-category-head,
.community-card-select-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #e9eef2;
}

.community-category-head h3,
.community-card-select-head h3 {
    margin: 0;
    color: #2a3d4b;
    font-size: 1rem;
    font-weight: 900;
}

.community-category-close,
.community-card-select-close {
    border: 1px solid #cfd8df;
    border-radius: 8px;
    background: #f5f8fb;
    color: #3f5563;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.community-category-body,
.community-card-select-body {
    display: grid;
    gap: 8px;
    overflow-y: auto;
    padding: 10px 12px 14px;
}

.community-category-option,
.community-card-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c7d5df;
    border-radius: 10px;
    background: #fafdff;
    color: #203847;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 900;
    cursor: pointer;
}

.community-category-option.active,
.community-card-select-option.active {
    border-color: #1f67cf;
    background: #eef6ff;
    color: #0f5ea9;
}

.community-category-option strong,
.community-card-select-option strong {
    display: none;
    color: #1f67cf;
    font-size: 0.76rem;
    font-weight: 900;
}

.community-category-option.active strong,
.community-card-select-option.active strong {
    display: block;
}

.community-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #cad8e5;
    border-radius: 999px;
    background: #f7fbff;
    color: #1f4f7b;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.community-category-chip.active {
    border-color: #1f67cf;
    background: #1f67cf;
    color: #fff;
}

.community-list-header,
.community-list-row-link {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 104px 54px 66px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
}

.community-list-row-link {
    color: inherit;
    text-decoration: none;
}

.community-list-row-link:hover {
    background: #f8fbff;
}

.community-list-header {
    background: #eef5fc;
    font-size: 0.82rem;
    color: #43607c;
    font-weight: 900;
}

.community-list-header > div {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-list-header > div:nth-child(2) {
    text-align: left;
}

.community-list-section-label {
    padding: 6px 12px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fbff;
    color: #526a82;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.community-list-item:last-child .community-list-row-link {
    border-bottom: 0;
}

.community-list-item.is-pinned-notice .community-list-row-link {
    background: #fff8e7;
}

.community-list-item.is-pinned-notice .community-list-row-link:hover {
    background: #fff2cf;
}

.community-list-item.is-popular-post .community-list-row-link {
    background: #fff5f7;
}

.community-list-item.is-popular-post .community-list-row-link:hover {
    background: #ffedf1;
}

.community-list-no,
.community-list-author,
.community-list-views,
.community-list-date {
    color: #60758a;
    font-size: 0.86rem;
}

.community-list-no,
.community-list-views,
.community-list-date {
    text-align: center;
}

.community-list-author,
.community-list-date {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-list-author {
    text-align: center;
}

.community-list-title {
    min-width: 0;
}

.community-list-submeta {
    display: none;
}

.community-list-submeta-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-post-category-prefix {
    display: inline;
    color: #526a82;
    font-weight: 900;
}

.community-post-prefixes {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
    white-space: nowrap;
}

.community-post-category-prefix.is-notice {
    color: #c26b00;
}

.community-post-category-prefix.is-popular {
    color: #d12f5b;
}

.community-list-no-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.community-list-no-badge.is-notice {
    border: 1px solid #f4c56c;
    background: #fff1cd;
    color: #a85a00;
}

.community-list-no-badge.is-popular {
    border: 1px solid #f5b7c6;
    background: #ffe8ee;
    color: #b91f4b;
}

.community-owner-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 18px;
    padding: 0 6px;
    border: 1px solid #9fc7ee;
    border-radius: 999px;
    background: #eef7ff;
    color: #0f5ea9;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

.community-post-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    color: #1f2937;
    text-decoration: none;
    font-weight: 800;
}

.community-post-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-list-item.is-blinded .community-list-row-link {
    background: #fafafa;
}

.is-blinded-text {
    color: #8a96a3 !important;
    font-weight: 800;
}

.community-title-metrics {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    justify-self: end;
    color: #6f8497;
    font-size: 0.78rem;
    font-weight: 900;
}

.community-title-metric {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.community-title-metric svg,
.community-list-views svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.community-list-views {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 800;
}

.community-post-link:hover {
    color: #0f5ea9;
}

.community-empty {
    text-align: center;
    color: #6b7280;
    padding: 26px 10px;
}

.community-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #c9d8e8;
    background: #f6fbff;
    color: #2e587a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
}

.community-pagination {
    margin-top: 14px;
}

.community-write-form,
.community-comment-form {
    display: grid;
    gap: 10px;
}

.community-write-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.community-write-shell .community-write-form {
    gap: 0;
    width: 100%;
    min-width: 0;
}

.community-write-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    min-height: 50px;
    border-bottom: 1px solid #e6eef6;
    background: #fff;
}

.community-write-head strong {
    color: #1f3448;
    font-size: 1rem;
    font-weight: 900;
}

.community-write-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 50px;
    color: #335167;
}

.community-write-back svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.community-write-meta-row {
    display: grid;
    grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
    border-bottom: 1px solid #edf2f7;
    background: #fbfdff;
    min-width: 0;
}

.community-write-select,
.community-write-author,
.community-write-password,
.community-write-title,
.community-write-editor {
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2937;
    box-sizing: border-box;
    font: inherit;
}

.community-write-select {
    min-height: 46px;
    padding: 0 22px 0 12px;
    border-right: 1px solid #edf2f7;
    color: #1f4f7b;
    font-size: 0.92rem;
    font-weight: 900;
}

.community-write-author {
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.92rem;
}

.community-write-password {
    min-height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    font-size: 0.92rem;
}

.community-write-title {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.98rem;
    font-weight: 800;
}

.community-editor-box {
    background: #fff;
}

.community-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid #edf2f7;
    color: #60758a;
    font-size: 0.78rem;
    font-weight: 800;
    min-width: 0;
}

.community-editor-toolbar span:first-child {
    color: #1f4f7b;
    font-size: 0.86rem;
    font-weight: 900;
}

.community-editor-toolbar span:last-child {
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-write-editor {
    display: block;
    min-height: clamp(180px, calc(100dvh - 430px), 320px);
    padding: 14px 12px;
    line-height: 1.65;
    resize: vertical;
}

.community-write-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #edf2f7;
    background: #fbfdff;
}

.community-write-foot .community-btn {
    min-width: 0;
}

.community-post-shell {
    overflow: visible;
}

.community-post-head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-post-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 13px 12px 10px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.community-post-title-row h1 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #142f45;
    font-size: clamp(1rem, 2.1vw, 1.18rem);
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-post-meta-row,
.community-post-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #edf2f7;
    background: #fbfdff;
    color: #60758a;
    font-size: 0.82rem;
    font-weight: 800;
}

.community-post-metrics {
    gap: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
    background: #fff;
    font-size: 0.78rem;
}

.community-post-content-panel {
    min-height: 170px;
    padding: 16px 12px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    color: #1f2937;
    line-height: 1.7;
    white-space: pre-wrap;
}

.community-post-content-panel.is-blinded-content {
    min-height: 92px;
    color: #8a96a3;
    font-weight: 800;
}

.community-like-center {
    display: flex;
    justify-content: center;
    padding: 12px 12px 10px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.community-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 52px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #bfd3e8;
    border-radius: 999px;
    background: #f8fbff;
    color: #60758a;
    font-size: 1.22rem;
    font-weight: 900;
    cursor: pointer;
}

.community-like-button strong {
    color: #526a82;
    font-size: 0.86rem;
}

.community-like-button.active {
    border-color: #f2a6b7;
    background: #fff1f4;
    color: #e11d48;
}

.community-like-button.active strong {
    color: #be123c;
}

.community-like-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.community-post-foot {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
}

.community-post-action-group {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.community-detail-card {
    padding: 14px 16px;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    background: #fff;
    overflow: visible;
}

.community-comment-identity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, 0.42fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .page-layout-v2 .main-content .community-page {
        width: 100%;
        max-width: 100%;
    }

    .community-write-head {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .community-write-back {
        width: 38px;
    }

    .community-write-meta-row {
        grid-template-columns: minmax(78px, 0.32fr) minmax(0, 1fr);
    }

    .community-write-meta-row .community-card-select-trigger {
        padding: 0 7px 0 10px;
        font-size: 0.84rem;
        gap: 4px;
    }

    .community-write-meta-row .community-card-select-trigger svg {
        width: 15px;
        height: 15px;
        flex: 0 0 auto;
    }

    .community-write-select {
        padding-left: 10px;
        font-size: 0.84rem;
    }

    .community-write-author,
    .community-write-password,
    .community-write-title {
        padding-left: 10px;
        padding-right: 10px;
    }

    .community-editor-toolbar {
        padding: 0 10px;
    }

    .community-write-editor {
        min-height: clamp(180px, calc(100dvh - 420px), 300px);
        padding: 12px 10px;
    }

    .community-write-foot {
        padding: 10px;
    }

    .community-post-title-row {
        padding: 11px 10px 9px;
    }

    .community-post-meta-row,
    .community-post-metrics,
    .community-post-content-panel {
        padding-left: 10px;
        padding-right: 10px;
    }

    .community-post-action-group {
        gap: 6px;
    }

    .community-comment-identity-row {
        grid-template-columns: minmax(0, 1fr) 86px;
    }
}

@media (max-width: 1024px) {
    .community-write-head {
        display: none;
    }
}

.community-field-label {
    display: block;
    font-size: 0.9rem;
    color: #243b53;
    font-weight: 700;
    margin-bottom: 4px;
}

.community-input,
.community-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d3df;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.community-textarea {
    min-height: 220px;
    resize: vertical;
}

.community-textarea[data-size="compact"] {
    min-height: 120px;
}

.community-section-title {
    margin: 0 0 10px;
}

.community-admin-actions,
.community-admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.community-admin-section-head {
    margin-bottom: 10px;
}

.community-admin-section-head .community-section-title {
    margin: 0;
}

.community-admin-notice-form {
    display: grid;
    gap: 10px;
}

.community-admin-notice-form .community-textarea {
    min-height: 180px;
}

.community-admin-notice-list {
    display: grid;
    gap: 8px;
}

.community-admin-notice-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    background: #f8fbff;
    color: inherit;
    text-decoration: none;
}

.community-admin-notice-item strong {
    min-width: 0;
    overflow: hidden;
    color: #1d4266;
    font-size: 0.92rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-admin-notice-item span {
    color: #667d91;
    font-size: 0.78rem;
    font-weight: 800;
}

.community-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #60758a;
    font-size: 0.9rem;
    margin-top: 8px;
}

.community-post-content {
    margin-top: 16px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: #1f2937;
}

.community-post-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.community-post-manage {
    position: relative;
}

.community-post-manage summary {
    list-style: none;
    cursor: pointer;
}

.community-post-manage summary::-webkit-details-marker {
    display: none;
}

.community-post-manage-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1500;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 28px));
    max-height: min(78vh, 520px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #d6e3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 48, 80, 0.16);
    transform: translate(-50%, -50%);
}

.community-post-manage-panel form {
    display: grid;
    gap: 8px;
}

.community-edit-delete-panel {
    gap: 10px;
}

.community-edit-delete-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.community-edit-delete-actions form {
    min-width: 0;
}

.community-edit-delete-actions .community-btn {
    width: 100%;
}

.community-report-panel {
    width: min(340px, calc(100vw - 28px));
}

.community-post-foot > .community-post-manage-panel {
    flex: 0 0 100%;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-height: none;
    margin-top: 8px;
    overflow-y: visible;
    transform: none;
}

.community-post-foot > .community-post-manage-panel[hidden] {
    display: none;
}

.community-compose-title {
    margin: 0;
    color: #1f3448;
    font-size: 0.98rem;
    font-weight: 900;
}

.community-reply-compose {
    display: grid;
    gap: 8px;
    justify-items: start;
    margin-top: 9px;
}

.community-reply-compose summary {
    list-style: none;
    cursor: pointer;
}

.community-reply-compose summary::-webkit-details-marker {
    display: none;
}

.community-post-actions .community-btn[disabled] {
    border-color: #c9d3df;
    background: #edf2f7;
    color: #60758a;
    cursor: default;
}

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

.community-comment-item {
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.community-reply-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-left: 14px;
    border-left: 3px solid #e4edf7;
}

.community-reply-item {
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 9px 10px;
    background: #f8fbff;
}

.community-reply-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #c9d8e8;
    border-radius: 10px;
    background: #fbfdff;
}

.community-textarea[data-size="reply"] {
    min-height: 82px;
}

.community-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #60758a;
    font-size: 0.86rem;
    margin-bottom: 6px;
}

.community-comment-meta strong {
    color: #1f3448;
}

.community-comment-content {
    line-height: 1.6;
    white-space: pre-wrap;
    color: #1f2937;
}

.community-comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.community-report-form {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    background: #f8fbff;
    display: grid;
    gap: 8px;
}

.community-report-form.compact {
    margin-top: 10px;
    padding: 8px;
    background: #fff;
}

.community-report-select {
    flex: 1 1 180px;
    min-width: 160px;
}

.community-admin-login {
    display: grid;
    gap: 8px;
}

.community-admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.community-admin-blacklist-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
}

.community-admin-blacklist-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.community-admin-blacklist-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 6px 5px 10px;
    border: 1px solid #d6e3ef;
    border-radius: 999px;
    background: #f8fbff;
}

.community-admin-blacklist-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.community-admin-blacklist-item span {
    min-width: 0;
    overflow: hidden;
    color: #24455f;
    font-size: 0.82rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-admin-table {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-sizing: border-box;
}

.community-admin-head,
.community-admin-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1.35fr) minmax(84px, 0.5fr) minmax(112px, 0.55fr) minmax(0, 0.9fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.community-admin-head {
    background: #f5f9ff;
    color: #43607c;
    font-size: 0.85rem;
    font-weight: 800;
}

.community-admin-row:last-child {
    border-bottom: 1px solid #dbe5f1;
}

.community-admin-id {
    color: #60758a;
    font-size: 0.82rem;
    font-weight: 900;
}

.community-admin-target-type {
    font-weight: 800;
    color: #234765;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.community-admin-preview {
    margin-top: 4px;
    color: #60758a;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.community-admin-post-main {
    min-width: 0;
}

.community-admin-post-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #173b59;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-admin-post-title span {
    color: #1f67cf;
}

.community-admin-metrics,
.community-admin-post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
}

.community-admin-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f2f7fc;
    color: #51677d;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.community-admin-inline-form {
    display: inline-flex;
    margin: 2px 4px 2px 0;
    min-width: 0;
}

.community-admin-inline-form .community-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.community-admin-block-row {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.community-category-filter.compact {
    gap: 4px;
}

.community-category-filter.compact .community-category-chip {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.76rem;
}

.community-tag.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.community-error-list {
    margin: 0;
    padding-left: 16px;
    color: #b91c1c;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .community-list-header {
        display: none;
    }

    .community-list-row-link {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "title views";
        gap: 8px;
        align-items: center;
        min-height: 54px;
        padding: 8px 10px;
        border-bottom: 1px solid #edf2f7;
    }

    .community-list-no {
        display: none;
    }

    .community-list-title {
        grid-area: title;
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .community-post-link {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        max-width: 100%;
        color: #142f45;
        font-size: 0.86rem;
        font-weight: 900;
        line-height: 1.25;
    }

    .community-post-title-text {
        min-width: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        white-space: normal;
    }

    .community-title-metrics {
        gap: 4px;
        font-size: 0.72rem;
    }

    .community-title-metric svg,
    .community-list-views svg {
        width: 12px;
        height: 12px;
    }

    .community-list-submeta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
        color: #7a8b9b;
        font-size: 0.7rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .community-list-submeta-main {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .community-list-submeta .community-owner-badge {
        margin-left: auto;
    }

    .community-list-submeta time::before {
        content: "· ";
    }

    .community-list-author,
    .community-list-date {
        display: none;
    }

    .community-list-views {
        grid-area: views;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        color: #7a8b9b;
        font-size: 0.72rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .community-category-filter {
        align-items: center;
    }

    .community-board-actions {
        justify-content: flex-end;
    }

    .community-category-trigger,
    .community-category-select-form .community-card-select-trigger {
        min-width: 116px;
    }

    .community-write-meta-row .community-card-select-trigger {
        min-width: 0;
    }

    .community-tag {
        margin-right: 4px;
    }

    .community-admin-head {
        display: none;
    }

    .community-admin-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .community-admin-topbar,
    .community-admin-section-head {
        align-items: stretch;
    }

    .community-admin-section-head .community-category-filter {
        width: 100%;
    }

    .community-admin-post-title {
        white-space: normal;
    }

    .community-admin-post-actions {
        padding-top: 2px;
    }
}
