:root {
  --bg: #ffffff;
  --fg: #000000;
  --border: #e5e7eb;
  --primary: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --profile-avatar-size: 2.25rem;
  --profile-text-size: 0.875rem;
  --swipe-icon-size: 3.75rem;
  --swipe-icon-font-size: 1.8rem;
}

.hidden-pdf-container {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1000 !important;
  pointer-events: none !important;
}


.dark {
  --bg: #111827;
  --fg: #ffffff;
  --border: #374151;
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-400: #9ca3af;
  --gray-500: #d1d5db;
  --gray-600: #e5e7eb;
  --gray-700: #f3f4f6;
  --gray-800: #f9fafb;
  --gray-900: #ffffff;
}

* {margin:0;padding:0;box-sizing:border-box}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  transition: all 0.3s ease;
  overflow: hidden;
}

.fullscreen {position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}

.fullscreen .main-container {
  height: calc(100vh - 60px);
}

.fullscreen .canvas-wrapper {
  padding-top: 70px;
  max-height: calc(100vh - 130px);
  overflow: hidden;
}

.fullscreen .viewport-actions {
  top: -55px;
}

.fullscreen .viewport.square {
  width: 300px !important;
  height: 300px !important;
  max-width: 300px !important;
  max-height: 300px !important;
}

.fullscreen .viewport.portrait {
  width: 300px !important;
  height: 375px !important;
  max-width: 300px !important;
  max-height: 375px !important;
}

.fullscreen.with-preview .viewport.square {
  width: 150px !important;
  height: 150px !important;
  max-width: 150px !important;
  max-height: 150px !important;
  border: 5px solid lime !important;
}

.fullscreen.with-preview .viewport.portrait {
  width: 150px !important;
  height: 190px !important;
  max-width: 150px !important;
  max-height: 190px !important;
  border: 5px solid lime !important;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {display:flex;align-items:center;gap:1rem}
.header-center {display:flex;flex-direction:column;align-items:center;gap:0.25rem}
.title-emoji {font-size:1.5em;animation:bounce 2s infinite}
.title-sparkle {font-size:1.2em;animation:sparkle 1.5s ease-in-out infinite}
.subtitle {font-size:0.875rem;color:var(--gray-500);font-weight:400;text-align:center}
.header-right {display:flex;align-items:center;gap:0.5rem}

h1 {font-size:1.25rem;font-weight:600}

.btn-icon, .btn-primary, .btn-secondary, .btn-danger, .btn-success {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-icon {padding:0.5rem;background:transparent;color:var(--fg)}
.btn-icon:hover {background:var(--gray-100)}
.btn-icon.active {background:var(--primary);color:white}

.btn-primary {background:var(--primary);color:white}
.btn-primary:hover {background:#2563eb}
.btn-primary:disabled {opacity:0.5;cursor:not-allowed}

.btn-secondary {background:var(--gray-200);color:var(--fg)}
.btn-secondary:hover {background:var(--gray-300)}
.btn-secondary:disabled {opacity:0.5;cursor:not-allowed}

.btn-danger {background:var(--danger);color:white}
.btn-danger:hover {background:#dc2626}
.btn-danger:disabled {opacity:0.5;cursor:not-allowed}

.btn-success {background:var(--success);color:white}
.btn-success:hover {background:#059669}
.btn-success:disabled {opacity:0.5;cursor:not-allowed}

.select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.875rem;
}

.icon {width:1.25rem;height:1.25rem}

.main-container {
  display: grid;
  grid-template-columns: 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}


.canvas-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.canvas-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  padding-top: 10px;
}

.canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 2rem;
}

.viewport {
  position: relative;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  max-width: 90vw;
  max-height: 90vh;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  z-index: 100;
}

.viewport::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 1000;
}

.viewport.square {
  width: min(70vh, 70vw, 600px);
  height: min(70vh, 70vw, 600px);
  aspect-ratio: 1/1;
}

.viewport.portrait {
  width: min(56vh, 70vw, 480px);
  height: min(70vh, 87.5vw, 600px);
  aspect-ratio: 4/5;
}

.with-preview .viewport.square {
  width: min(70vh, 60vw, 600px);
  height: min(70vh, 60vw, 600px);
}

.with-preview .viewport.portrait {
  width: min(56vh, 60vw, 480px);
  height: min(70vh, 75vw, 600px);
}

.canvas-bg-image {
  position: absolute;
  cursor: move;
  user-select: none;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  z-index: 5;
  touch-action: none;
}

.canvas-bg-image:hover {
  border-color: var(--primary);
}

.upload-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--gray-500);
  text-align: center;
  background: var(--gray-50);
  border: 2px dashed var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-prompt:hover {
  border-color: var(--primary);
  background: var(--gray-100);
}

.upload-icon {width:3rem;height:3rem;margin-bottom:1rem}
.upload-hint {font-size:0.875rem;margin-top:0.5rem}

.empty-state {
  text-align: center;
  color: var(--gray-500);
  padding: 4rem 2rem;
}

.empty-icon {width:4rem;height:4rem;margin:0 auto 1rem;opacity:0.5}
.empty-state h2 {font-size:1.5rem;margin-bottom:0.5rem;color:var(--fg)}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  background: var(--bg);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--gray-300);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {transform:rotate(360deg)}
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform:translateY(0)}
  40% {transform:translateY(-8px)}
  60% {transform:translateY(-4px)}
}

@keyframes sparkle {
  0%, 100% {opacity:1;transform:scale(1)}
  50% {opacity:0.7;transform:scale(1.1)}
}


.config-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.config-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
}

.input-small {
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.input-small:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-small {
  padding: 0.25rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small:hover {
  background: var(--gray-50);
}

.icon-small {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-preview {
  width: 3rem;
  height: 3rem;
  border: 2px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.avatar-preview:hover {
  border-color: var(--primary);
  background: var(--gray-50);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  color: var(--gray-400);
}

.avatar-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.btn-danger-small {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-danger-small:hover {
  background: #dc2626;
  border-color: #dc2626;
}


.viewport-avatar {
  position: absolute;
  z-index: 110;
  pointer-events: auto;
}

.viewport-profile-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.viewport-profile-avatar {
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.viewport-profile-name {
  font-size: var(--profile-text-size);
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}



.version {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}

.main-container.with-preview {
  grid-template-columns: 1fr 315px;
}

.preview-pane {
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.preview-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
  flex-shrink: 0;
}

.preview-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.preview-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preview-content {
  flex: 1;
  padding: 0;
  display: block;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.preview-iframe {
  width: 143%;
  height: 143%;
  border: none;
  transform: scale(0.7);
  transform-origin: top left;
  overflow: hidden;
  margin: 0;
}

.preview-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.preview-loading-content {
  text-align: center;
  color: var(--gray-600);
}

.preview-loading-content .spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
}

.preview-loading-content p {
  font-size: 14px;
  margin: 0;
}

.slide-indicator {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  min-width: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.viewport-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.viewport-actions {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: all;
  min-height: 40px;
}

.viewport-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  box-shadow: var(--shadow);
  pointer-events: all;
}

.viewport-btn:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.viewport-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.viewport-icon {
  width: 16px;
  height: 16px;
  color: var(--fg);
}

.viewport-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  min-height: 32px;
  box-shadow: var(--shadow);
  pointer-events: all;
}

.viewport-font-slider {
  width: 80px;
  height: 1.5rem;
  background: var(--gray-200);
  border-radius: 0.75rem;
  outline: none;
  cursor: pointer;
}

.viewport-font-slider::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.viewport-font-slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
}

.viewport-font-size {
  font-size: 0.75rem;
  color: var(--fg);
  font-weight: 500;
  min-width: 2.5rem;
}

.viewport-add-profile {
  position: absolute;
  bottom: 10%;
  left: 2rem;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewport-add-profile:hover {
  opacity: 1;
  border-color: var(--primary);
  background: var(--gray-50);
}

.viewport-avatar {
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.viewport-avatar:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.position-bottom-right {
  bottom: 10%;
  right: 2rem;
}

.position-bottom-left {
  bottom: 10%;
  left: 2rem;
}

.position-top-right {
  top: 10%;
  right: 2rem;
}

.position-top-left {
  top: 10%;
  left: 2rem;
}

.viewport-swipe-icon {
  position: absolute;
  z-index: 300;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: var(--swipe-icon-size);
  height: var(--swipe-icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.viewport-swipe-icon.swipe-bottom-right {
  bottom: 10%;
  right: 2rem;
}

.viewport-swipe-icon.swipe-top-right {
  top: 10%;
  right: 2rem;
}

.viewport-swipe-icon.swipe-middle-right {
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
}

.viewport-swipe-icon:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.viewport-swipe-icon:hover:not(.swipe-middle-right) {
  transform: scale(1.1);
}

.viewport-swipe-icon.swipe-middle-right:hover {
  transform: translateY(-50%) scale(1.1);
}

.swipe-icon-display {
  font-size: var(--swipe-icon-font-size);
  color: var(--fg);
}

.swipe-icon-menu {
  position: absolute;
  z-index: 310;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  max-width: 300px;
  pointer-events: all;
}

.swipe-icon-menu.menu-bottom-right {
  bottom: calc(10% + 4rem);
  right: 5rem;
}

.swipe-icon-menu.menu-top-right {
  top: calc(10% + 4rem);
  right: 5rem;
}

.swipe-icon-menu.menu-middle-right {
  top: 50%;
  right: 5rem;
  transform: translateY(-50%);
}

.swipe-menu-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.swipe-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  padding: 0.5rem;
}

.swipe-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.swipe-menu-item:hover {
  background: var(--gray-50);
  border-color: var(--primary);
}

.swipe-menu-item.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.swipe-menu-item small {
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.2;
}

.swipe-menu-separator {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.swipe-menu-location {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.swipe-location-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
}

.swipe-location-select {
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
}

.swipe-location-select:focus {
  border-color: var(--primary);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-container {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-50);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-content {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .main-container {
    display: flex;
    flex-direction: column;
  }
  .main-container.with-preview {
    display: flex;
    flex-direction: column;
  }
  .canvas-container {order:1;height:60vh}
  .preview-pane {order:3;height:40vh;border-left:none;border-top:1px solid var(--border)}
  .viewport.square, .viewport.portrait {width:90vw;height:auto;max-width:400px}
  .viewport.square {aspect-ratio:1/1}
  .viewport.portrait {aspect-ratio:4/5}
  .header {flex-wrap:wrap;gap:0.5rem}
  .header-center {order:3;width:100%;justify-content:center}
  .preview-header {padding:12px}
  .preview-content {padding:12px}
  
  .fullscreen .canvas-wrapper {
    padding-top: 80px;
  }
  
  .fullscreen .viewport-actions {
    top: -60px;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .fullscreen .viewport-btn {
    min-width: 28px;
    min-height: 28px;
    padding: 6px;
  }
  
  .fullscreen .slide-indicator {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .fullscreen .viewport.square {
    width: 250px !important;
    height: 250px !important;
    max-width: 250px !important;
    max-height: 250px !important;
  }
  
  .fullscreen .viewport.portrait {
    width: 250px !important;
    height: 315px !important;
    max-width: 250px !important;
    max-height: 315px !important;
  }
}

.text-callout {
position: absolute;
background: var(--bg);
border: 2px solid var(--primary);
border-radius: 8px;
box-shadow: var(--shadow-lg);
padding: 8px;
z-index: 100;
user-select: none;
cursor: move;
display: inline-block;
max-width: 300px;
min-width: 80px;
word-wrap: break-word;
pointer-events: auto;
}

.text-callout.selected {
border-color: var(--success);
}

.text-callout:hover {
border-color: var(--success);
}

.text-callout.interact-dragging {
opacity: 0.8;
transform: rotate(2deg);
}

.text-callout.interact-resizing {
opacity: 0.9;
}

.callout-display {
white-space: pre-wrap;
word-wrap: break-word;
line-height: 1.4;
cursor: text;
padding: 2px;
}

.callout-display:hover {
background: rgba(59, 130, 246, 0.1);
border-radius: 4px;
}

.callout-editor {
background: var(--gray-50);
border: 1px solid var(--primary);
border-radius: 4px;
outline: none;
resize: none;
font-family: inherit;
line-height: 1.4;
color: var(--fg);
padding: 2px;
min-width: 100px;
min-height: 20px;
}

.text-callout.editing {
border-color: var(--success);
box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.callout-delete {
position: absolute;
top: -8px;
right: -8px;
width: 20px;
height: 20px;
background: var(--danger);
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
font-size: 12px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.2s ease;
}

.text-callout:hover .callout-delete {
opacity: 1;
}

.callout-delete:hover {
background: #dc2626;
transform: scale(1.1);
}


.image-overlay {
position:absolute;
user-select:none;
pointer-events:auto;
cursor:move;
border:2px solid transparent;
}

.image-overlay.selected {
border-color: var(--success);
}