.feed-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
    margin-top: 20px;
}

.feed-primary,
.feed-post-list,
.feed-rail,
.feed-people-list {
    display: grid;
    gap: 18px;
}

.feed-rail {
    position: sticky;
    top: 102px;
}

.feed-toolbar,
.feed-composer-card,
.feed-highlights-panel,
.feed-post-card,
.feed-rail-card {
    border-radius: 24px;
}

.feed-toolbar,
.feed-composer-card,
.feed-highlights-panel,
.feed-rail-card {
    padding: 20px;
}

.feed-toolbar {
    display: grid;
    gap: 16px;
}

.feed-toolbar-copy {
    display: grid;
    gap: 10px;
}

.feed-heading {
    max-width: 14ch;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    line-height: 1.05;
    font-weight: 800;
}

.feed-toolbar-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feed-toolbar-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 0.8rem;
    font-weight: 600;
}

.feed-toolbar-stats strong {
    color: #0f172a;
    font-weight: 800;
}

.feed-filter-row,
.feed-tag-row,
.feed-post-actions,
.feed-post-statline,
.feed-mini-stats,
.feed-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feed-filter-chip:hover,
.feed-filter-chip:focus-visible,
.feed-tool:hover,
.feed-tool:focus-visible,
.feed-post-action:hover,
.feed-post-action:focus-visible,
.feed-person-link:hover,
.feed-person-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.feed-filter-chip.is-active {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff1a12 52%, #0ea5a7 100%);
    box-shadow: 0 16px 28px rgba(255, 75, 43, 0.18);
}

.feed-composer-card {
    display: grid;
    gap: 14px;
}

.feed-composer-head,
.feed-author-block,
.feed-post-header,
.feed-inline-reply,
.feed-person-card {
    display: flex;
    align-items: center;
}

.feed-composer-head,
.feed-post-header,
.feed-person-card {
    justify-content: space-between;
    gap: 14px;
}

.feed-author-block {
    gap: 12px;
    min-width: 0;
}

.feed-author-block strong {
    display: block;
    font-size: 0.94rem;
    line-height: 1.2;
    font-weight: 700;
}

.feed-composer-trigger {
    display: block;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    color: #64748b;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    font-size: 0.94rem;
    line-height: 1.6;
}

.feed-composer-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.feed-tool,
.feed-person-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    color: #334155;
    background: #ffffff;
    font-size: 0.83rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.feed-highlight-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(154px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.feed-highlight-strip::-webkit-scrollbar {
    display: none;
}

.feed-highlight-card {
    display: grid;
    gap: 12px;
    min-height: 168px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(160deg, #0f172a 0%, #0e7490 100%);
    align-content: end;
}

.feed-highlight-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 800;
}

.feed-highlight-card strong {
    font-size: 0.94rem;
    line-height: 1.25;
    font-weight: 700;
}

.feed-highlight-card span:last-child {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    line-height: 1.4;
}

.feed-post-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.feed-status-pill,
.feed-tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.feed-status-pill {
    color: #0f7b8d;
    background: rgba(14, 165, 164, 0.1);
}

.feed-tag-pill {
    color: #475569;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.feed-post-content {
    display: grid;
    gap: 8px;
}

.feed-post-title {
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
}

.feed-post-copy {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.72;
}

.feed-post-media {
    overflow: hidden;
    margin: 0;
    border-radius: 20px;
    background: #e2e8f0;
}

.feed-post-media img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.feed-post-meta {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.feed-post-statline {
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.feed-post-statline i {
    color: #0ea5a7;
}

.feed-post-actions {
    gap: 10px;
}

.feed-post-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 132px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    color: #334155;
    background: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feed-post-action.is-active,
.feed-post-action.is-done {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #ff1a12 52%, #0ea5a7 100%);
}

.feed-inline-reply {
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #f8fafc;
}

.feed-inline-reply input {
    width: 100%;
    min-height: 40px;
    border: none;
    background: transparent;
    color: #0f172a;
}

.feed-inline-reply input:focus {
    outline: none;
}

.feed-rail-card {
    display: grid;
    gap: 14px;
}

.feed-profile-card {
    display: grid;
    gap: 14px;
}

.feed-mini-stats span,
.feed-side-tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
}

.feed-side-tags a {
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.feed-person-card {
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #f8fafc;
}

.feed-person-link {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
}

@media (max-width: 1040px) {
    .feed-workbench {
        grid-template-columns: 1fr;
    }

    .feed-rail {
        position: static;
        top: auto;
    }
}

@media (max-width: 720px) {
    .feed-toolbar,
    .feed-composer-card,
    .feed-highlights-panel,
    .feed-rail-card,
    .feed-post-card {
        padding: 16px;
        border-radius: 20px;
    }

    .feed-heading {
        max-width: none;
        font-size: 1.72rem;
    }

    .feed-composer-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .feed-post-statline,
    .feed-post-header,
    .feed-person-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .feed-post-actions {
        width: 100%;
    }

    .feed-post-action {
        flex: 1 1 calc(50% - 10px);
    }
}
