/**
 * EKM incoming bubble text — terminal brute-force override (.1460)
 * Reimage theirs = fixed dark surface (#2a2a32) → always light ink.
 * Standard theirs = theme-aware (light ink on dark themes, dark ink on light).
 */

/* Dark themes — light text on theirs surfaces */
html[data-dark] .msg-bubble.theirs .msg-thread-prose,
html[data-dark] .msg-bubble.theirs .msg-bubble-sender,
html[data-dark] .msg-bubble.theirs,
html[data-dark] .msg-hub-spruce-bubble.inbound .msg-thread-prose,
html[data-dark] .msg-hub-spruce-bubble.inbound,
html[data-dark] .pq-comment-card.theirs .pq-comment-body,
html[data-dark] .pq-comment-card.theirs,
html[data-dark] .theme-preview-bubble.theirs {
  color: var(--msg-bubble-theirs-fg, var(--msg-bubble-theirs-reimage-fg, #ece9e3)) !important;
  -webkit-text-fill-color: var(--msg-bubble-theirs-fg, var(--msg-bubble-theirs-reimage-fg, #ece9e3)) !important;
}

/* Light themes — dark text on light theirs surfaces */
html:not([data-dark]) .msg-bubble.theirs .msg-thread-prose,
html:not([data-dark]) .msg-bubble.theirs .msg-bubble-sender,
html:not([data-dark]) .msg-bubble.theirs,
html:not([data-dark]) .msg-hub-spruce-bubble.inbound .msg-thread-prose,
html:not([data-dark]) .msg-hub-spruce-bubble.inbound,
html:not([data-dark]) .pq-comment-card.theirs .pq-comment-body,
html:not([data-dark]) .pq-comment-card.theirs,
html:not([data-dark]) .theme-preview-bubble.theirs {
  color: var(--text-on-surface-card, #1a1a18) !important;
  -webkit-text-fill-color: var(--text-on-surface-card, #1a1a18) !important;
}

/* Reimage hub LAST — fixed dark bubble shell beats light-theme theirs rule (higher specificity) */
html .msg-hub-reimage-layout .msg-bubble.theirs,
html .msg-hub-reimage-layout .msg-bubble.theirs .msg-thread-prose,
html .msg-hub-reimage-layout .msg-bubble.theirs .msg-bubble-sender,
html[data-dark] .msg-hub-reimage-layout .msg-bubble.theirs,
html[data-dark] .msg-hub-reimage-layout .msg-bubble.theirs .msg-thread-prose,
html[data-dark] .msg-hub-reimage-layout .msg-bubble.theirs .msg-bubble-sender,
html:not([data-dark]) .msg-hub-reimage-layout .msg-bubble.theirs,
html:not([data-dark]) .msg-hub-reimage-layout .msg-bubble.theirs .msg-thread-prose,
html:not([data-dark]) .msg-hub-reimage-layout .msg-bubble.theirs .msg-bubble-sender {
  color: #ece9e3 !important;
  -webkit-text-fill-color: #ece9e3 !important;
}
