.task-comments-panel {
  padding: 24px;
  background-color: #f4f5f7;
  border-left: 1px solid #e2e8f0;
  max-height: 85vh;
  min-height: 0;
  flex: 1;
}

@media (max-width: 991.98px) {
  .task-comments-panel {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    max-height: none;
  }
}

.task-comments__composer {
  background-color: #ffffff;
  border: 1px solid var(--input-border, #cbd5e1);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-comments__composer:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.task-comments__input {
  border: none;
  padding: 2px 0;
  font-size: 14px;
  color: var(--text-body);
  resize: none;
  background: transparent;
  box-shadow: none !important;
}

.task-comments__input::placeholder {
  color: #64748b;
}

.task-comments__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 120px;
}

.task-comments__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.task-comments__empty i {
  font-size: 22px;
}

.task-comment-item__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-comment-item__author {
  font-size: 13.5px;
}

.task-comment-item__time {
  font-size: 12px;
  color: #2563eb;
  text-decoration: underline;
}

.task-comment-item__bubble {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  word-break: break-word;
}

.task-comment-item__actions {
  font-size: 12px;
  color: #64748b;
  padding-left: 4px;
}

.task-comment-item__action-btn {
  background: none;
  border: none;
  padding: 0;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.task-comment-item__action-btn:hover {
  color: #0f172a;
}

.task-comment-item__action-link {
  background: none;
  border: none;
  padding: 0;
  color: #475569;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}

.task-comment-item__action-link:hover {
  color: #0f172a;
}