/* Change point overlays — prototype-change-points.md */
/**
 * 改动高亮：不遮挡大面积内容，仅在改动元素边缘做围栏式圈选。
 * - 2px 实色边框
 * - 左上角小标签（修改/新增/删除）
 * - 无 background 不遮挡内容
 */
.proto-change-highlight {
  position: fixed;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: 4px;
  transition: opacity 0.2s;
  z-index: 1800;
  background: transparent !important;
}

.proto-change-highlight--add {
  border: 2px solid #52c41a;
  box-shadow: 0 0 0 1px rgba(82, 196, 26, 0.15);
}

.proto-change-highlight--modify {
  border: 2px solid #faad14;
  box-shadow: 0 0 0 1px rgba(250, 173, 20, 0.15);
}

.proto-change-highlight--delete {
  border: 2px dashed #ff4d4f;
  box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.15);
}

.proto-change-highlight.is-hidden {
  opacity: 0;
}

.proto-change-highlight.is-pulse {
  animation: proto-change-pulse 0.6s ease 2;
}

@keyframes proto-change-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(114, 46, 209, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(114, 46, 209, 0.35);
  }
}

.proto-change-highlight__tag {
  position: absolute;
  top: -10px;
  left: 8px;
  font-size: 10px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}

.proto-change-highlight--add .proto-change-highlight__tag {
  background: #52c41a;
}

.proto-change-highlight--modify .proto-change-highlight__tag {
  background: #faad14;
  color: rgba(0, 0, 0, 0.85);
}

.proto-change-highlight--delete .proto-change-highlight__tag {
  background: #ff4d4f;
}

.proto-change-hit {
  position: fixed;
  z-index: 1799;
  pointer-events: auto;
  cursor: help;
  background: transparent;
}

.proto-change-tooltip {
  position: fixed;
  z-index: 2050;
  pointer-events: auto;
  max-width: 360px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.85);
  border: 1px solid #f0f0f0;
}

.proto-change-tooltip strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.proto-change-tooltip__row {
  margin-top: 6px;
}

.proto-change-tooltip__label {
  color: rgba(0, 0, 0, 0.45);
  font-size: 11px;
}

.proto-change-tooltip__del {
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.45);
}
