/*
  BravesTickets Ticket Conversation Contrast Fix
  Purpose: Fix faded/white conversation text appearing against light ticket message cards.
  Safe patch: CSS-only visual override plus header include.
*/

/* Ticket conversation/message bubbles should always be readable on light cards. */
html body .thread-list .thread-item,
html body .workbench-thread-list .thread-item,
html body .card .thread-list .thread-item,
html body .content-card .thread-list .thread-item {
  background: #ffffff !important;
  color: #111827 !important;
  opacity: 1 !important;
  border: 1px solid #e5e7eb !important;
}

html body .thread-list .thread-item.user,
html body .workbench-thread-list .thread-item.user {
  background: #f9fafb !important;
  color: #111827 !important;
}

html body .thread-list .thread-item.technician,
html body .thread-list .thread-item.admin,
html body .workbench-thread-list .thread-item.technician,
html body .workbench-thread-list .thread-item.admin {
  background: #fffdf3 !important;
  color: #111827 !important;
}

html body .thread-list .thread-item.internal,
html body .workbench-thread-list .thread-item.internal {
  background: #f8f6ff !important;
  color: #111827 !important;
  border-color: #d9d1ff !important;
}

/* Message body text */
html body .thread-list .thread-item .thread-body,
html body .workbench-thread-list .thread-item .thread-body,
html body .thread-list .thread-item .thread-body *,
html body .workbench-thread-list .thread-item .thread-body * {
  color: #111827 !important;
  opacity: 1 !important;
}

/* Message metadata */
html body .thread-list .thread-meta,
html body .workbench-thread-list .thread-meta,
html body .thread-list .thread-meta span,
html body .workbench-thread-list .thread-meta span {
  color: #4b5563 !important;
  opacity: 1 !important;
}

html body .thread-list .thread-meta strong,
html body .workbench-thread-list .thread-meta strong {
  color: #111827 !important;
  opacity: 1 !important;
}

/* Empty state text inside conversation cards */
html body .card.content-card .thread-list + p,
html body .card.content-card p,
html body .card .thread-list p {
  opacity: 1 !important;
}

/* Reply/internal note boxes should also stay readable. */
html body textarea#message,
html body textarea#note,
html body .stack-form textarea,
html body .workbench-form textarea {
  background: #ffffff !important;
  color: #111827 !important;
  opacity: 1 !important;
  border-color: #d1d5db !important;
}

html body textarea#message::placeholder,
html body textarea#note::placeholder,
html body .stack-form textarea::placeholder,
html body .workbench-form textarea::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}
