.vr-crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.vr-crop-overlay.open {
  display: flex;
}
.vr-crop-panel {
  width: 100%;
  max-width: 520px;
  max-height: 94vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 12px;
}
.vr-crop-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vr-crop-top h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.vr-crop-viewwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 1080;
  max-height: min(52vh, 520px);
  margin: 0 auto 8px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  touch-action: none;
}
.vr-crop-viewwrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: top;
  cursor: grab;
}
.vr-crop-viewwrap canvas:active {
  cursor: grabbing;
}
.vr-crop-vrmask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('/image_vr_lense_transparent.png') center / 100% 100% no-repeat;
}
.vr-crop-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.vr-crop-controls label.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 13px;
}
.vr-crop-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}
.vr-crop-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3;
}
.vr-crop-loading.open {
  display: flex;
}
