:root {
  --primary: #8EB874;
  --primary-hover: #7DA564;
  --primary-light: #F0F7EB;
  --bg-body: #FFFFFF;
  --bg-panel: #F0F1E3;
  --bg-input: #FFFFFF;
  --text-main: #2B3674;
  --text-sub: #A3AED0;
  --border: #E0E5F2;
  --toggle-off: #CBD5E0;
  --toggle-on: #8EB874;
}

.dark {
  --bg-body: #000000;
  --bg-panel: #000000;
  --bg-input: #000000;
  --text-main: #FFFFFF;
  --text-sub: #8F9BBA;
  --border: #333333;
  --toggle-off: #333333;
  --toggle-on: #A3D985;
  --primary: #A3D985;
  --primary-hover: #8EB874;
  --primary-light: #111111;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Lock background body scroll without blocking touch-scroll inside open modals */
body.no-scroll {
  overflow: hidden !important;
}

/* Zero-latency touch response on all buttons, toggles & swatches */
button,
.dropdown-btn,
.dropdown-item,
.pdf-tool-btn,
.mode-switch-btn,
.toggle-wrapper,
.color-swatch-btn,
.pdf-doc-pill,
.pdf-thumb-card {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

button:active:not(:disabled),
.pdf-tool-btn:active:not(:disabled) {
  transform: scale(0.97);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.grid-left-container { position: relative; z-index: 50; }
.grid-right-container { position: relative; z-index: 10; }

.panel-left,
.panel-right {
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.panel-left { overflow: visible !important; }
.panel-right { overflow: hidden; }

input[type="number"],
input[type="text"],
input[type="password"] {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 2px solid transparent;
  border-radius: 99px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
  font-weight: 700;
  text-align: center;
  width: 100%;
  font-size: 0.95rem;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  background-color: var(--bg-panel);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(142, 184, 116, 0.15);
}

input::placeholder {
  color: var(--text-sub);
  opacity: 0.5;
  font-weight: normal;
}

.dropdown {
  position: relative;
  width: 100%;
  user-select: none;
}

.dropdown-btn {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 2px solid transparent;
  border-radius: 99px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.dropdown-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.dropdown-content {
  position: absolute;
  top: 115%;
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px -5px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 99999 !important;
  max-height: 280px;
  overflow-y: auto;
}

.dropdown.up .dropdown-content {
  top: auto;
  bottom: 115%;
  transform-origin: bottom;
}

.dropdown-item {
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dropdown-header {
  padding: 8px 18px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-sub);
  background-color: var(--bg-input);
  letter-spacing: 0.05em;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 99px;
  border: 1px solid var(--border);
}

input[type="range"]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--primary);
  -webkit-appearance: none;
  margin-top: -8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.15);
}

.toggle-wrapper {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
}

.toggle-input { display: none; }

.toggle-track {
  position: absolute;
  inset: 0;
  background-color: var(--toggle-off);
  border-radius: 34px;
  transition: background-color 0.2s;
}

.toggle-circle {
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-track { background-color: var(--toggle-on); }
.toggle-input:checked + .toggle-track .toggle-circle { left: calc(100% - 23px); }

/* Prevent Tailwind .block from overriding CropperJS hidden source image */
.cropper-hidden {
  display: none !important;
}

#imgContainer > .cropper-container,
#pdfStageInner > .cropper-container {
  width: 100% !important;
  height: 100% !important;
}

.cropper-view-box,
.cropper-face {
  outline: 2px solid var(--primary);
  border-radius: 0;
}

.cropper-modal {
  opacity: 0.9;
  transition: background-color 0.15s;
}

/* Lock Cropper State (Image Resizer & PDF Studio) */
.pdf-cropper-locked .cropper-crop-box,
.img-cropper-locked .cropper-crop-box {
  pointer-events: none !important;
}

.pdf-cropper-locked .cropper-point,
.pdf-cropper-locked .cropper-line,
.img-cropper-locked .cropper-point,
.img-cropper-locked .cropper-line {
  display: none !important;
}

.pdf-cropper-locked .cropper-view-box,
.img-cropper-locked .cropper-view-box {
  outline: 2px solid var(--primary) !important;
}

/* =========================================================================
 * BG STUDIO WORKSPACE CROPPER, TOUCH PINCH & BRUSH CURSOR STYLES
 * Enforce full main-workspace height (420px mobile / 480px desktop)
 * ========================================================================= */
#bgStudioViewport {
  min-height: 420px !important;
  height: 420px !important;
  flex-shrink: 0 !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 640px) {
  #bgStudioViewport {
    min-height: 480px !important;
    height: 480px !important;
  }
}

#insertImgCropperWrapper {
  min-height: 340px !important;
  height: 340px !important;
  flex-shrink: 0 !important;
}

#bgStudioTransformStage {
  will-change: transform;
  transform-origin: center center;
}

#bgStudioCropBox {
  pointer-events: none;
  z-index: 20;
}

.bg-crop-face {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* When Move/Crop tool is active and Cropper is NOT locked, allow dragging the crop box face */
#bgStudioCropBox.crop-interactive .bg-crop-face {
  pointer-events: auto;
  cursor: move;
}

/* 4 Edge Resize Lines */
.bg-crop-line {
  position: absolute;
  pointer-events: auto;
  z-index: 22;
}
.bg-crop-line.line-n { top: -6px; left: 10px; right: 10px; height: 12px; cursor: ns-resize; }
.bg-crop-line.line-s { bottom: -6px; left: 10px; right: 10px; height: 12px; cursor: ns-resize; }
.bg-crop-line.line-w { left: -6px; top: 10px; bottom: 10px; width: 12px; cursor: ew-resize; }
.bg-crop-line.line-e { right: -6px; top: 10px; bottom: 10px; width: 12px; cursor: ew-resize; }

/* 8 Resize Handles (Corners + Midpoints) */
.bg-crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 2px solid #ffffff;
  border-radius: 50%;
  pointer-events: auto;
  z-index: 25;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease;
}

.bg-crop-handle:hover {
  transform: scale(1.25);
}

.bg-crop-handle.nw { top: -7px; left: -7px; cursor: nwse-resize; }
.bg-crop-handle.n  { top: -7px; left: calc(50% - 7px); cursor: ns-resize; }
.bg-crop-handle.ne { top: -7px; right: -7px; cursor: nesw-resize; }
.bg-crop-handle.e  { top: calc(50% - 7px); right: -7px; cursor: ew-resize; }
.bg-crop-handle.se { bottom: -7px; right: -7px; cursor: nwse-resize; }
.bg-crop-handle.s  { bottom: -7px; left: calc(50% - 7px); cursor: ns-resize; }
.bg-crop-handle.sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.bg-crop-handle.w  { top: calc(50% - 7px); left: -7px; cursor: ew-resize; }

/* When Lock Cropper is enabled in BG Studio */
#bgStudioCropBox.crop-locked,
#bgStudioCropBox.crop-locked .bg-crop-face,
#bgStudioCropBox.crop-locked .bg-crop-line,
#bgStudioCropBox.crop-locked .bg-crop-handle {
  pointer-events: none !important;
}

#bgStudioCropBox.crop-locked .bg-crop-handle,
#bgStudioCropBox.crop-locked .bg-crop-line {
  display: none !important;
}

/* Live Brush Cursor Circle inside BG Studio */
#bgStudioBrushCursor {
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid var(--primary);
  background: rgba(142, 184, 116, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

/* Live Floating Cropper Dimension Pills */
#pdfLiveCropBadge,
#imgLiveCropBadge {
  position: absolute;
  z-index: 65;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--primary);
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  margin-top: -8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Live Quality Preview Overlays (Non-blocking) */
#imgLiveQualityPreview,
#pdfLiveQualityPreview {
  pointer-events: none !important;
  z-index: 25 !important;
  opacity: 1 !important;
}

/* Eyedropper Color Picker Overlay */
#pickerOverlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  touch-action: none;
}

#pickerImage {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  pointer-events: none;
}

#magnifier {
  display: none;
  position: fixed;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 10060;
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: white;
}

/* Modals (Full-Page Smooth Scrolling Enabled) */
#previewModal,
#insertImageModal,
#passwordModal,
#bgStudioModal {
  transition: opacity 0.15s ease-out;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

#previewModal.hidden,
#insertImageModal.hidden,
#passwordModal.hidden,
#bgStudioModal.hidden {
  opacity: 0;
  pointer-events: none;
}

#previewContentArea {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: auto;
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
  width: 100%;
  max-height: 45vh;
  overflow-y: auto;
  padding: 6px;
}

.batch-preview-item {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.12s, border-color 0.12s;
  background: var(--bg-panel);
  user-select: none;
}

.batch-preview-item.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.batch-preview-item.drag-over {
  border-color: var(--primary);
  transform: scale(1.04);
}

.batch-preview-item:hover {
  border-color: var(--primary);
}

.batch-preview-item img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  background: #fff;
  pointer-events: none;
  display: block;
}

.modal-card-ctrl {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 12;
  pointer-events: none;
}

.modal-card-btn-group {
  display: flex;
  gap: 3px;
  pointer-events: auto;
}

.modal-card-mini-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.modal-card-mini-btn:hover { background: var(--primary); }

.modal-card-del-btn {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.preview-img {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.preview-info {
  word-break: break-word;
  text-align: center;
  max-width: 100%;
}

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, opacity 0.25s;
  z-index: 10080;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.theme-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  background: #1e293b;
  color: white;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 10000;
}

.dark .theme-float {
  background: white;
  color: #1e293b;
  border-color: #1e293b;
}

.logo-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #6A9655);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.mode-switch-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
  user-select: none;
}

.mode-switch-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background-color: var(--primary);
  border-radius: 99px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.mode-switch-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
}

.mode-switch-btn.active { color: #fff; }
.dark .mode-switch-btn.active { color: #000; }

.pdf-doc-strip,
.pdf-thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  align-items: center;
}

.pdf-doc-strip {
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
}

.pdf-doc-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg-panel);
  cursor: pointer;
  flex: 0 0 auto;
  max-width: 230px;
  transition: border-color 0.12s, background-color 0.12s;
}

.pdf-doc-pill.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.pdf-thumb-card {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg-input);
  overflow: hidden;
  cursor: pointer;
}

.pdf-thumb-card.active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pdf-thumb-card img {
  width: 100%;
  height: 78px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.pdf-tool-btn {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, background-color 0.12s, color 0.12s, transform 0.08s;
}

.pdf-tool-btn:hover,
.pdf-tool-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.pdf-grayscale-filter {
  filter: grayscale(100%) contrast(1.15);
}

/* Placed Image Overlay Containers */
#pdfOverlaysLayer,
#imgOverlaysLayer {
  position: absolute;
  pointer-events: none;
  z-index: 55;
  overflow: visible;
}

.pdf-placed-overlay {
  position: absolute;
  pointer-events: auto;
  cursor: move;
  user-select: none;
  touch-action: none;
  border: 1.5px solid transparent;
}

.pdf-placed-overlay.selected {
  border: 2px dashed var(--primary);
  z-index: 60;
}

.pdf-placed-overlay img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  display: block;
}

.pdf-overlay-handle {
  display: none;
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  bottom: -8px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: nwse-resize;
}

.pdf-overlay-delete {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  top: -10px;
  right: -10px;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pdf-placed-overlay.selected .pdf-overlay-handle { display: block; }
.pdf-placed-overlay.selected .pdf-overlay-delete { display: flex; }

/* Pre-fill Color Swatches & Transparent Checkerboard */
.color-swatch-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.color-swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.color-swatch-btn:hover,
.color-swatch-btn.active {
  transform: scale(1.18);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(142, 184, 116, 0.35);
}

.swatch-transparent {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}

.hidden { display: none !important; }
.flex { display: flex !important; }
/* =========================================================================
 * 1. LEFT-TO-RIGHT HORIZONTAL PAGE PREVIEW SCROLL IN MODAL
 * ========================================================================= */
.pdf-pages-horiz-scroll {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 12px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pdf-pages-horiz-scroll::-webkit-scrollbar {
  height: 6px;
}

.pdf-pages-horiz-scroll::-webkit-scrollbar-track {
  background: var(--bg-panel);
  border-radius: 99px;
}

.pdf-pages-horiz-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 99px;
}

.pdf-page-preview-card {
  flex: 0 0 auto;
  width: 205px;
  max-width: 74vw;
  scroll-snap-align: center;
  background: var(--bg-panel);
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-page-preview-card:hover {
  border-color: var(--primary);
}

.pdf-page-preview-card img {
  width: 100%;
  height: 235px;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

/* =========================================================================
 * 2. RATIO : CUSTOM (4-CORNER POLYGON CROPPER & ZOOM CIRCLE LOUPE)
 * ========================================================================= */
.custom-quad-layer {
  position: absolute;
  inset: 0;
  z-index: 68;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.custom-quad-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.quad-handle {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 50%;
  background: #e06d2b;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  z-index: 75;
  cursor: pointer;
  touch-action: none;
  transition: transform 0.08s, background-color 0.08s;
}

.quad-handle.mid-handle {
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
}

.quad-handle.active-handle {
  background: #10b981 !important;
  transform: scale(1.25);
}

.crop-zoom-loupe {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  z-index: 95;
  pointer-events: none;
  background: #ffffff;
}

.crop-zoom-loupe.loupe-right {
  left: auto;
  right: 10px;
}

.quad-floating-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.94);
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
/* Reliable multi-file input hiding across desktop & mobile WebViews */
.sr-file-input {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
