/* ---- History hover-diff overlay ------------------------------------ */
/* Rendered by the `historyDiffOverlay` TipTap extension
   (extensions/builtins/history-diff-overlay.ts) as ProseMirror
   decorations — never applied to real document content, so these rules
   only ever appear while a history entry is being hovered or pinned.

   Nothing here tints a whole block edge-to-edge (that reads as a flat bar
   spanning the full page width). Added text gets an inline highlight that's
   only ever as wide as the text itself; an added *empty* line gets the small
   fixed-size marker below instead, since there's no text for an inline
   decoration to wrap. `modified` blocks get word-level decorations
   (--word-added / -removed-word below) so a one-word edit doesn't tint the
   whole paragraph. */

.docx-editor-history-diff-added-empty-marker {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background-color: rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(16, 185, 129, 0.55);
  vertical-align: middle;
}

.docx-editor-history-diff-removed-pill {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 3px 0;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid rgba(239, 68, 68, 0.55);
  border-radius: 3px;
  white-space: pre-wrap;
  word-break: break-word;
}

.docx-editor-history-diff-removed-pill__marker {
  flex: none;
  opacity: 0.7;
}

.docx-editor-history-diff-removed-pill__text {
  text-decoration: line-through;
  text-decoration-color: rgba(185, 28, 28, 0.55);
}

/* ---- Word-level (within a `modified` block) ------------------------ */

.docx-editor-history-diff--word-added {
  background-color: rgba(16, 185, 129, 0.32);
  border-radius: 2px;
}

.docx-editor-history-diff-removed-word {
  text-decoration: line-through;
  text-decoration-color: rgba(185, 28, 28, 0.7);
  color: #b91c1c;
  background-color: rgba(239, 68, 68, 0.14);
  border-radius: 2px;
  padding: 0 1px;
}
