.composer-scope {
    display: inline-flex;
    margin-right: auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    overflow: hidden;
}

    .composer-scope .scope-btn {
        background: transparent;
        border: none;
        color: var(--text-secondary);
        padding: .4rem .85rem;
        font-size: .8rem;
        font-weight: 600;
        cursor: pointer;
        transition: background .15s, color .15s;
    }

        .composer-scope .scope-btn.active {
            background: var(--accent-blue);
            color: #fff;
        }

.feed-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.feed-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed var(--border-default);
    border-radius: 12px;
}

.post-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.post-head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.post-avatar,
.comment-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
}

.comment-avatar {
    width: 30px;
    height: 30px;
    font-size: .7rem;
}

.post-headtext {
    flex: 1 1 auto;
    min-width: 0;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: .92rem;
}

.post-time {
    font-size: .75rem;
    color: var(--text-tertiary);
}

.post-delete {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
    border-radius: 6px;
}

    .post-delete:hover {
        color: var(--danger-color);
    }

.post-body {
    margin: .7rem 0 .2rem;
    color: var(--text-primary);
    font-size: .92rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-attachments.has-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .5rem;
    margin: .7rem 0 .2rem;
}

.post-attachment-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    cursor: zoom-in;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .85rem;
    padding-top: .7rem;
    border-top: 1px solid var(--border-subtle);
}

.post-action {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    padding: .4rem .7rem;
    border-radius: 8px;
    transition: background .15s, color .15s, border-color .15s, transform .08s;
}

    .post-action:hover {
        background: var(--bg-elevated);
        color: var(--text-primary);
    }

    .post-action:active {
        transform: scale(.96);
    }

    .post-action svg {
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
    }

.like-btn .heart-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill .15s, color .15s;
}

.like-btn.liked {
    color: var(--accent-pink);
}

    .like-btn.liked .heart-icon {
        fill: currentColor;
        stroke: currentColor;
    }

.comment-btn .comment-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.like-count {
    font-variant-numeric: tabular-nums;
}

.comment-count {
    font-variant-numeric: tabular-nums;
    color: var(--text-tertiary);
}

.post-actions .post-action.comment-btn {
    margin-left: .1rem;
}

.post-comments {
    margin-top: .75rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: .75rem;
}

.comment-loading {
    color: var(--text-secondary);
    font-size: .82rem;
    padding: .25rem 0;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: .6rem;
}

.comment-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.comment-bubble {
    flex: 1 1 auto;
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: .45rem .65rem;
    min-width: 0;
}

.comment-author {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    gap: .5rem;
    align-items: baseline;
}

.comment-time {
    font-size: .68rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.comment-text {
    font-size: .85rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-delete {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .2rem;
}

    .comment-delete:hover {
        color: var(--danger-color);
    }

.comment-compose {
    display: flex;
    gap: .5rem;
    align-items: center;
}

    .comment-compose .comment-input {
        flex: 1 1 auto;
        margin-bottom: 0;
        font-size: .85rem;
    }

    .comment-compose .comment-send {
        flex: 0 0 auto;
    }
