/**
 * Cuadro de diálogo de imagen (instalador) — reutilizado en admin usuarios.
 */
.logo-editor-dialog {
  max-width: min(560px, 96vw);
  width: calc(100% - 2rem);
  margin: auto;
  border: 1px solid #334155;
  border-radius: 16px;
  background: linear-gradient(165deg, #111827, #0c1424);
  color: #e2e8f0;
  padding: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(125, 211, 252, 0.08) inset;
}
.logo-editor-dialog::backdrop {
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(5px);
}
.logo-editor-inner { padding: 1.15rem 1.25rem 1.25rem; }
.logo-editor-title { margin: 0 0 .35rem; font-size: 1.05rem; color: #f8fafc; letter-spacing: -0.02em; }
.logo-modal-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 1.25rem;
  margin: .85rem 0 1rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, 0.65);
}
.logo-modal-mode label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; font-size: .86rem; }
.logo-modal-preview-block[hidden] { display: none !important; }
.logo-modal-preview-block { margin-top: .25rem; }
.logo-modal-preview-block > .muted { font-size: .76rem; margin-bottom: .4rem; display: block; color: #94a3b8; }
.logo-modal-preview-wrap {
  border-radius: 12px;
  border: 1px solid #475569;
  background: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%) 50% / 14px 14px;
  padding: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-modal-preview-wrap img {
  max-width: 100%;
  max-height: min(38vh, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.logo-modal-crop-wrap { margin-top: 1rem; }
.logo-modal-crop-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .65rem; }
.logo-modal-crop-actions .btn { margin-top: 0; }
.logo-modal-crop-wrap[hidden] { display: none !important; }
.logo-modal-crop-stage {
  max-height: min(44vh, 340px);
  margin: 0 0 .75rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #475569;
  background: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%) 50% / 14px 14px;
}
.logo-modal-crop-stage img { display: block; max-width: 100%; }
.logo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
}
.logo-editor-actions .btn { margin-top: 0; }
.cropper-modal { background: rgba(6, 10, 18, 0.55) !important; }
.cropper-view-box { outline: 2px solid rgba(125, 211, 252, 0.95) !important; outline-offset: -1px; }
.cropper-line, .cropper-point { background: rgba(14, 165, 233, 0.45) !important; }

.logo-modal-frame-wrap[hidden] { display: none !important; }
.logo-modal-frame-wrap { margin-top: .75rem; }
.profile-frame-viewport {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 242, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.profile-frame-viewport.is-dragging { cursor: grabbing; }
.profile-frame-viewport img,
.profile-frame-viewport video {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
}
.wizard-crop-frame {
  position: absolute;
  inset: 10%;
  border: 2px dashed rgba(0, 242, 255, 0.75);
  border-radius: 8px;
  pointer-events: none;
}
.wizard-crop-zoom {
  margin-top: .65rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .72rem;
  color: #94a3b8;
}
.wizard-crop-zoom input[type="range"] { flex: 1; accent-color: #00f2ff; }
.logo-modal-mode[hidden] { display: none !important; }
