/* Editor de enquadramento — uploads Tokka */
.tk-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 10, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.tk-crop-overlay.is-open {
  display: flex;
}

body.tk-crop-open {
  overflow: hidden;
}

.tk-crop-dialog {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.tk-crop-dialog h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.tk-crop-dialog .tk-crop-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #555;
}

.tk-crop-stage {
  position: relative;
  margin: 0 auto 14px;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  border: 2px solid #ff7700;
}

.tk-crop-stage.is-dragging { cursor: grabbing; }

.tk-crop-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}

.tk-crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tk-crop-zoom label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tk-crop-zoom input[type="range"] {
  flex: 1;
  accent-color: #ff7700;
}

.tk-crop-actions {
  display: flex;
  gap: 8px;
}

.tk-crop-actions button {
  flex: 1;
  height: 44px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.tk-crop-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.tk-crop-actions .tk-crop-cancel {
  background: #fff;
  color: #ff7700;
  border: 1px solid #ff7700;
}

.tk-crop-actions .tk-crop-ok {
  background: #ff7700;
  color: #fff;
  border: 0;
}
