.feed-card .card-body {
    padding: 0.95rem 1rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #6c757d;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.post-meta {
    font-size: 0.82rem;
    color: #6c757d;
}

.post-comment-action {
    color: #495057;
    text-decoration: none;
}

.post-comment-action:hover,
.post-comment-action:focus {
    color: #0d6efd;
    text-decoration: underline;
}

.load-area {
    padding: 1rem 0;
    background: rgba(248, 249, 250, 0.92);
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.82rem;
}

.load-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feed-container {
    padding-bottom: 1.25rem;
}


.skeleton-row {
    border-radius: 0.5rem;
    min-height: 150px;
}

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

.status-pill {
    border-radius: 999px;
    padding: 0.25rem 0.62rem;
    font-size: 0.78rem;
    border-width: 1px;
    user-select: none;
}

.status-pill-readonly {
    cursor: default !important;
}

.status-pill-1 {
    color: #0f5132;
    background: #e7f4ea;
    border-color: #a7e3c1;
}

.status-pill-2 {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #a3cfbb;
}

.status-pill-3 {
    color: #664d03;
    background: #fff3cd;
    border-color: #ffdf7e;
}

.status-pill-4 {
    color: #58151c;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.status-pill-btn {
    cursor: pointer;
}

.status-pill-btn:hover {
    filter: brightness(0.98);
}

.status-row {
    margin-top: 0.45rem;
}

.status-chip-wrap {
    position: relative;
}

.status-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    max-width: 94vw;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 0.7rem;
    z-index: 30;
    margin-top: 0.35rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.status-dropdown.show {
    display: block;
}

.status-option {
    border: 0;
    width: 100%;
    text-align: left;
    background: transparent;
    display: block;
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid #edf2f7;
}

.status-option:last-child {
    border-bottom: 0;
}

.status-option:hover {
    background: #f4f7ff;
}

.status-option:focus-visible {
    outline: 0;
    background: #edf1ff;
}

.status-option-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #212529;
}

.status-option-meta {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.15;
}

.status-option-active {
    background: #f1f5ff;
}

.feed-category-tabs {
    display: flex;
    gap: 0.55rem;
}

.feed-category-tab {
    flex: 1 1 0;
    border-radius: 0.42rem;
}

.feed-status-filters {
    margin-top: 0.65rem;
}

.status-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 0.42rem;
    min-height: 2rem;
    padding: 0.28rem 0.62rem;
    font-weight: 600;
    text-decoration: none;
    max-width: 100%;
}

.status-filter-toggle:hover {
    filter: brightness(0.98);
}

.status-filter-toggle-inactive {
    opacity: 0.65;
    background: #fff !important;
}

.status-filter-check {
    width: 0.92rem;
    height: 0.92rem;
    flex: 0 0 0.92rem;
    border-radius: 0.2rem;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.58);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.56rem;
    line-height: 1;
}

.status-filter-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comments-modal .modal-content {
    border-radius: 1rem;
}

.comments-modal .modal-dialog {
    max-width: min(1140px, calc(100vw - 2rem));
}

.comment-composer {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 0.85rem;
    padding: 0.85rem;
}

.comment-login-callout {
    background: linear-gradient(135deg, #eef5ff, #f8fbff);
    border: 1px solid #d7e7ff;
    border-radius: 0.85rem;
    padding: 0.95rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-item {
    display: block;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 0.82rem;
}

.comment-body {
    background: #f8f9fa;
    border: 1px solid #edf0f3;
    border-radius: 0.85rem;
    padding: 0.7rem 0.8rem;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.comment-content {
    margin-top: 0.55rem;
    padding-left: 2.65rem;
    color: #212529;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    .comment-content {
        padding-left: 0;
    }
}

@media (min-width: 768px) {
    .feed-inner {
        max-width: 760px;
    }
}

@media (max-width: 420px) {
    .feed-category-tabs {
        gap: 0.4rem;
    }

    .feed-category-tab {
        font-size: 0.88rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .feed-status-filters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem !important;
        width: 100%;
    }

    .status-filter-toggle {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .status-filter-label {
        flex: 1 1 auto;
    }
}
