.memory-comments-section {
    max-width: 900px;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
}

.memory-comments-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.memory-comments-heading p {
    margin: 7px 0 0;
    color: var(--muted);
}

.memory-comment-list {
    display: grid;
    gap: 13px;
    margin-top: 22px;
}

.memory-comment-card {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #faf8f3;
}

.memory-comment-card.correction {
    border-color: #d5c4a8;
    background: var(--gold-soft);
}

.memory-comment-card.resolved {
    opacity: 0.72;
}

.memory-comment-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.memory-comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--sage);
    color: white;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 700;
}

.memory-comment-author strong,
.memory-comment-author span {
    display: block;
}

.memory-comment-author span {
    color: var(--muted);
    font-size: 12px;
}

.comment-type-badge,
.comment-status-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.comment-type-badge {
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.correction .comment-type-badge {
    background: white;
    color: #765324;
}

.comment-status-badge {
    margin-left: 6px;
    background: #e9e9e9;
    color: #555;
}

.memory-comment-body {
    margin: 15px 0 0;
    color: var(--ink);
    line-height: 1.7;
}

.memory-comment-resolution {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

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

.memory-comment-form {
    display: grid;
    gap: 15px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.comment-form-grid {
    display: grid;
    grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1.65fr);
    gap: 14px;
    align-items: start;
}

.memory-comment-form textarea {
    min-height: 130px;
}

.correction-explanation {
    padding: 13px 15px;
    border: 1px solid #d5c4a8;
    border-radius: 13px;
    background: var(--gold-soft);
    color: #765f40;
    font-size: 13px;
}

@media (max-width: 700px) {
    .memory-comments-heading,
    .memory-comment-card-header {
        flex-direction: column;
    }

    .comment-form-grid {
        grid-template-columns: 1fr;
    }
}
