body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.upload-zone {
  border: 2px dashed #d4d4d4;
  border-radius: 0.5rem;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  background: #fafafa;
}
.upload-zone:hover {
  border-color: #a3a3a3;
  background: #f5f5f5;
}
.upload-zone.dragging {
  border-color: #60a5fa;
  background: #eff6ff;
}

/* Manipulator widget — step 6 tile placement */
.manip-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  background: #2563eb;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: auto;
  z-index: 2;
}
.manip-handle[data-handle="t"],
.manip-handle[data-handle="b"] {
  margin-left: -7px;
}
.manip-handle[data-handle="l"],
.manip-handle[data-handle="r"] {
  margin-top: -7px;
}
.manip-center {
  position: absolute;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  border: 2px solid #2563eb;
  pointer-events: auto;
  cursor: move;
  z-index: 1;
}
.manip-rotate {
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: #2563eb;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: auto;
  cursor: grab;
  z-index: 2;
}
.manip-rotate::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: #2563eb;
}

/* Left-panel lock — applied while the auto pipeline is running. Children
   are visually dimmed; pointer-events stay on so a click-through capture
   listener can show a friendly "wait" toast instead of swallowing the
   click silently. */
.lp-locked > * {
  opacity: 0.55;
  filter: saturate(0.7);
}
.lp-locked input,
.lp-locked select,
.lp-locked textarea,
.lp-locked button {
  pointer-events: none;
}
