/* RemySpace — phase5-comments.css
   Classic compact profile comment wall (not chat bubbles). */

.rs-profile-comments {
    padding: 8px 10px 12px;
}

.rs-profile-comment-form {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--module-border, #a7b6c9);
}

.rs-profile-comment-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--module-border, #a7b6c9);
    border-radius: 2px;
    background: #fff;
    color: inherit;
    font: inherit;
    resize: vertical;
}

.rs-profile-comment-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.rs-pc-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.rs-pc-attachment {
    position: relative;
    width: 72px;
    height: 72px;
    border: 1px solid var(--module-border, #a7b6c9);
    overflow: hidden;
    background: #f3f5f8;
}

.rs-pc-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-pc-attachment-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    border: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.rs-pc-embed-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}

.rs-pc-embed-url {
    flex: 1 1 180px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--module-border, #a7b6c9);
    border-radius: 2px;
    font: inherit;
}

.rs-pc-status {
    margin: 6px 0 0;
    font-size: 0.9em;
    color: var(--profile-muted, #66707d);
    min-height: 1.2em;
}

.rs-pc-status.rs-pc-status-error {
    color: #a12622;
}

.rs-profile-comments-signin {
    margin: 0 0 12px;
    font-size: 0.95em;
}

.rs-profile-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rs-profile-comment {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(167, 182, 201, 0.55);
}

.rs-profile-comment:last-child {
    border-bottom: 0;
}

.rs-pc-avatar-link {
    flex: 0 0 auto;
}

.rs-pc-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid var(--module-border, #a7b6c9);
    display: block;
    background: #eef1f5;
}

.rs-pc-main {
    flex: 1 1 auto;
    min-width: 0;
}

.rs-pc-header {
    margin-bottom: 4px;
    line-height: 1.35;
}

.rs-pc-author {
    font-weight: 700;
    text-decoration: none;
}

.rs-pc-meta {
    color: var(--profile-muted, #66707d);
    font-size: 0.85em;
    margin-left: 4px;
}

.rs-pc-body {
    margin: 0 0 6px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rs-pc-media {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.rs-pc-media-img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--module-border, #a7b6c9);
}

.rs-pc-embed {
    margin: 8px 0;
    max-width: 100%;
}

.rs-pc-embed iframe {
    max-width: 100%;
}

.rs-pc-actions {
    margin-top: 4px;
    font-size: 0.85em;
}

.rs-pc-actions button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--profile-link, #3b5998);
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.rs-pc-actions .rs-danger-text {
    color: #a12622;
}

.rs-pc-action-sep {
    color: var(--profile-muted, #66707d);
    margin: 0 4px;
}

.rs-profile-comments-load-more {
    margin-top: 10px;
}

.rs-profile-comments-empty {
    margin: 4px 0 0;
}
