/* PII filter — chat highlight styling.
   When the org PII filter scrubs a prompt, the user's OWN message bubble shows their real
   words with the caught spans marked red (so they see what was caught) — while the AI only
   ever received the redacted placeholder. Applied by chat-firstparty.js on the 'pii_redacted'
   run event. Scoped to .msg.user so it never affects assistant content. */

.msg.user mark.pii-redacted {
  background: rgba(229, 72, 77, 0.16);
  color: inherit;
  border-bottom: 2px solid #e5484d;
  border-radius: 3px;
  padding: 0 2px;
  cursor: help;
  -webkit-text-decoration: none;
  text-decoration: none;
}

/* Footer note under a scrubbed user message: "🔒 N item(s) hidden from the AI". */
.msg.user .pii-redacted-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #e5484d;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 4px;
}
.msg.user .pii-redacted-note svg { width: 12px; height: 12px; flex: 0 0 auto; }
