/* Restore the established AI draft identity caret without altering workspace layout. */
html body .tdr-ai-caret {
  position: relative !important;
  display: inline-block !important;
  width: 2px !important;
  height: 1.1em !important;
  margin-left: 1px !important;
  background: #1a1a1a !important;
  border-radius: 1px !important;
  vertical-align: -0.15em !important;
  animation: lawhelper-ai-presence-blink 1s steps(2, start) infinite !important;
  pointer-events: none !important;
  user-select: none !important;
  box-shadow: 0 0 0 1px #ffffff !important;
}
html body .tdr-ai-caret::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  top: -5px;
  left: 50%;
  box-sizing: border-box;
  border: 1.5px solid #1a1a1a;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px #b8b8b8;
  transform: translateX(-50%);
}
@keyframes lawhelper-ai-presence-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0.28; }
}
@media (prefers-reduced-motion: reduce) {
  html body .tdr-ai-caret { animation: none !important; opacity: 1 !important; }
}
@media (forced-colors: active) {
  html body .tdr-ai-caret { background: Highlight !important; box-shadow: none !important; }
  html body .tdr-ai-caret::before { border-color: Highlight; background: Canvas; box-shadow: none; }
}
