.cotc-frame {
  position: relative;
}

.cotc-overlay {
  position: absolute;
  z-index: 5;
  width: 0;
  height: 0;
  pointer-events: none;
  transform-origin: center;
}

.cotc-overlay[hidden] {
  display: none;
}

.cotc-handle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid #26322f;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #26322f;
  box-shadow: 0 3px 9px rgba(35, 53, 45, 0.2);
  font: 700 18px/1 ui-sans-serif, system-ui, sans-serif;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.cotc-handle:hover,
.cotc-handle.is-dragging {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(35, 53, 45, 0.27);
}

.cotc-handle.is-dragging {
  cursor: grabbing;
}

.cotc-resize {
  right: -17px;
  bottom: -16px;
  width: 34px;
  min-width: 34px;
  font-size: 14px;
  letter-spacing: -2px;
}

.cotc-rotate-right {
  left: -16px;
  top: -16px;
}

.cotc-delete {
  right: -16px;
  top: -16px;
  font-size: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .cotc-handle {
    transition-duration: 0.01ms;
  }
}
