.eccph-comments-wrap {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    border-top: 1px solid #eaeaea;
    padding-top: 30px;
}

.eccph-comments-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #111;
}

/* Form Styles */
.eccph-comment-form-card {
    background: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
}

.eccph-comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    font-size: 0.95rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.eccph-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.eccph-file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.eccph-file-upload-btn input[type="file"] {
    display: none;
}

.eccph-post-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.eccph-post-btn:hover {
    background-color: #005177;
}

/* Image Preview Chip */
.eccph-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.eccph-preview-pill img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #cbd5e0;
}

.eccph-preview-name {
    font-size: 0.85rem;
    color: #4a5568;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eccph-clear-preview-btn {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

/* Role Composer Badge */
.eccph-composer-badge {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Role Locked Banner */
.eccph-lock-banner {
    background: #fffaf0;
    border: 1px dashed #dd6b20;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #dd6b20;
    margin-bottom: 30px;
}

.eccph-lock-banner svg {
    margin-bottom: 8px;
    color: #dd6b20;
}

.eccph-lock-text {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Comments List & Cards */
.eccph-comments-list {
    margin-top: 20px;
}

.eccph-comment-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.eccph-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.eccph-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eccph-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4a5568;
}

.eccph-author-name {
    font-weight: 600;
    color: #2d3748;
}

.eccph-author-role {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: #edf2f7;
    border-radius: 4px;
    color: #4a5568;
}

.eccph-author-role.worker {
    background: #feebc8;
    color: #c05621;
}

.eccph-author-role.member {
    background: #ebf8ff;
    color: #2b6cb0;
}

.eccph-comment-date {
    color: #a0aec0;
}

.eccph-comment-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2d3748;
    margin-bottom: 12px;
}

/* Comment Actions */
.eccph-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
    position: relative;
}

/* Reaction Button Group & Selector Popover */
.eccph-reaction-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eccph-reaction-badge-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4a5568;
    transition: background 0.15s ease;
}

.eccph-reaction-badge-btn:hover,
.eccph-reaction-badge-btn.user-reacted {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.eccph-reaction-badge-btn.user-reacted {
    background: #ebf8ff;
    border-color: #beef;
}

.eccph-reaction-selector-wrap {
    position: relative;
    display: inline-block;
}

.eccph-react-trigger-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #4a5568;
}

.eccph-react-trigger-btn:hover {
    background: #f7fafc;
}

.eccph-reaction-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 6px;
    gap: 8px;
    z-index: 10;
}

.eccph-reaction-popover.active {
    display: flex;
}

.eccph-popover-emoji {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: transform 0.15s ease;
    line-height: 1;
}

.eccph-popover-emoji:hover {
    transform: scale(1.25);
}

/* Threaded Inline Reply Styling */
.eccph-reply-form-wrapper {
    margin-top: 12px;
    padding-left: 40px;
    border-left: 2px solid #edf2f7;
    margin-bottom: 12px;
}

.eccph-reply-form {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
}

.eccph-reply-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    resize: vertical;
    font-size: 0.9rem;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.eccph-reply-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.eccph-cancel-reply-btn {
    background: none;
    border: 1px solid #cbd5e0;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: #4a5568;
}

.eccph-post-reply-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.eccph-post-reply-btn:hover {
    background: #005177;
}