.ce-v6-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: none;
    position: relative;
}
.ce-v6-comment-textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: var(--ce-space-md) 0;
    min-height: 24px; /* Start small */
    height: 24px; /* Initial height */
    color: var(--ce-text-primary);
    font-size: 1rem;
    line-height: 1.5;
    resize: none; /* Disable manual resize */
    transition: none;
    overflow-y: hidden; /* Hide scrollbar initially */
}

.ce-v6-comment-textarea:focus {
    outline: none;
    box-shadow: none;
}
.ce-v6-comment-actions { 
    display: flex; 
    align-items: center; 
    gap: var(--ce-space-sm);
    margin-left: auto; /* Push actions to the right */
    padding-right: 6px; /* Align with text area */
}

.ce-v6-media-btn {
    background: transparent;
    border: none;
    color: var(--ce-text-secondary);
    cursor: pointer;
    padding: var(--ce-space-sm);
    border-radius: 50%;
    transition: var(--ce-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-v6-media-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--ce-text-primary);
}

.ce-v6-btn-primary-glass {
    background: var(--ce-primary);
    color: #fff;
    border: none;
    border-radius: 999px; /* Pill shape */
    padding: var(--ce-space-sm) var(--ce-space-lg);
    font-weight: 500;
    box-shadow: none;
    transition: var(--ce-transition-fast);
    display: flex;
    align-items: center;
    gap: var(--ce-space-sm);
}
.ce-v6-typing-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(124, 179, 66, 0.25);
    color: #1f2937;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ce-v6-typing-indicator.active {
    display: flex;
    animation: ceTypingFade 0.25s ease;
}
.ce-v6-typing-avatars {
    display: flex;
    align-items: center;
}
.ce-v6-typing-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    margin-right: -8px;
}
.ce-v6-typing-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ce-v6-typing-avatar:last-child {
    margin-right: 0;
}
.ce-v6-typing-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
    font-weight: 500;
}
.ce-v6-typing-text { color: #1f2937; }
.ce-v6-typing-dots {
    display: inline-flex;
    gap: 4px;
    margin-top: 2px;
}
.ce-v6-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(124, 179, 66, 0.82);
    animation: ceTypingBounce 1.2s infinite ease-in-out;
}
.ce-v6-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.ce-v6-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes ceTypingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes ceTypingFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.ce-v6-btn-primary-glass:hover { 
    transform: none; 
    filter: brightness(1.1);
    box-shadow: none; 
}
