/* ═══════════════════════════════════════════════════════════════════
   editor.css — Dark Figma redesign (103044:1058 / 103044:1502)
   Linked AFTER lenticular-core.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset overrides ── */
body {
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
}
/* Fix 2: kill core.css input[type="number"] defaults */
input[type="number"] {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ═══════════════ TOP BAR ═══════════════ */
.ed-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-sizing: border-box;
}
.ed-logo {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.ed-tabs {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 48px;
  margin-right: auto;
}
/* A: Override core.css green tab styles */
.mode-tab.ed-tab,
.mode-tab {
  flex: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.6) !important;
  cursor: pointer;
  transition: color 0.2s;
}
.mode-tab.ed-tab.active,
.mode-tab.active {
  background: transparent !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.mode-tab:not(.active):hover {
  color: rgba(255,255,255,0.84) !important;
  background: transparent !important;
}
.ed-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ed-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 40px;
  flex-shrink: 0;
  background: #fff;
  color: #000F16;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.ed-cta:hover {
  opacity: 0.85;
}

/* ═══════════════ MAIN LAYOUT ═══════════════ */
.ed-main {
  display: flex;
  height: calc(100vh - 70px);
  min-height: 720px;
  margin-top: 70px;
  overflow: hidden;
}

/* ═══════════════ LEFT PANEL ═══════════════ */
.ed-left {
  width: 340px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.ed-left::-webkit-scrollbar { display: none; }

/* Sections */
.ed-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ed-section-label {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Canvas Size row */
.ed-canvas-row {
  display: flex;
  gap: 8px;
}
.ed-value-box {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 12px;
  background: #1A1E1F;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.ed-value-prefix {
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,0.84);
  flex-shrink: 0;
}
.ed-value-input {
  min-width: 0;
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  outline: none;
  width: 0;
  min-width: 0;
  text-align: left;
  -moz-appearance: textfield;
  padding: 0 !important;
  border-radius: 0 !important;
}
.ed-value-input::-webkit-outer-spin-button,
.ed-value-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ed-value-suffix {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.44);
  flex-shrink: 0;
}

/* LPI box */
.ed-lpi-box {
  height: 44px;
  border-radius: 12px;
  background: #1A1E1F;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.ed-lpi-input {
  width: 60px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  outline: none;
  -moz-appearance: textfield;
  padding: 0 !important;
  border-radius: 0 !important;
}
.ed-lpi-input::-webkit-outer-spin-button,
.ed-lpi-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ed-lpi-unit {
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.44);
}

/* Stripes Direction */
.ed-dir-row {
  display: flex;
  gap: 8px;
}
.ed-dir-btn {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.44);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.ed-dir-btn.active {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}
.ed-dir-btn:not(.active):hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.84);
}

/* Prism height row */
.ed-prism-info {
  display: inline-flex;
  align-items: center;
  color: #fff;
  cursor: default;
  margin-left: 4px;
  position: relative;
}
.ed-prism-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-prism-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
}
.ed-prism-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  margin-top: -6px;
}
.ed-prism-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}
.ed-prism-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.ed-prism-slider::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.ed-prism-slider::-moz-range-progress {
  height: 4px;
  background: #fff;
  border-radius: 2px;
}
.ed-prism-value-box {
  width: 76px;
  height: 40px;
  border-radius: 8px;
  background: #1A1E1F;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
  flex-shrink: 0;
}
.ed-prism-value {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  outline: none;
  min-width: 0;
  width: 100%;
  text-align: left;
  -moz-appearance: textfield;
  padding: 0 !important;
  border-radius: 0 !important;
}
.ed-prism-value::-webkit-outer-spin-button,
.ed-prism-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ed-prism-value-box .ed-value-suffix {
  font-size: 12px;
}

/* ═══════════════ UPLOAD ZONE ═══════════════ */
.ed-upload-zone {
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ed-upload-plus {
  font-size: 28px;
  font-weight: 300;
  color: rgba(255,255,255,0.44);
  line-height: 1;
}
.ed-upload-zone:hover,
.ed-upload-zone.drag-over {
  border-color: rgba(255,255,255,0.44);
  background: rgba(255,255,255,0.04);
}
.ed-upload-title {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.ed-upload-hint {
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,0.44);
}

/* ═══════════════ VIDEO ═══════════════ */
.video-preview-wrap {
  display: none;
  position: relative;
  margin-top: 4px;
}
.video-preview {
  width: 100%;
  border-radius: 12px;
  background: #000;
  display: block;
}
.video-remove-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-remove-btn:hover {
  background: rgba(255,255,255,0.12);
}
.video-info {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.44);
  margin-top: 6px;
}
.extract-progress {
  font-size: 12px;
  color: rgba(255,255,255,0.44);
  text-align: center;
  margin-top: 4px;
  display: none;
}

/* Dual slider restyle */
.dual-range-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.ed-video-card {
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 8px;
}
.ed-video-card .video-preview {
  border-radius: 8px;
}
.ed-duration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.ed-duration-row .video-info {
  margin-top: 0;
}
.ed-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ed-play-btn:hover {
  background: rgba(255,255,255,0.2);
}
.ed-time-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.ed-time-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 108px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: #1A1E1F;
  border: 1px solid rgba(255,255,255,0.12);
}
.ed-time-suffix {
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,0.44);
}
.ed-time-input {
  min-width: 0;
  width: 44px;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 0;
  outline: none;
  text-align: left;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ed-time-input::-webkit-outer-spin-button,
.ed-time-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dual-range-track {
  flex: 1;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.dual-range-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.dual-range-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 2px;
  pointer-events: none;
}
.dual-range-thumb {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 2;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
.dual-range-thumb:hover,
.dual-range-thumb.dragging { cursor: grabbing; box-shadow: 0 0 8px rgba(0,0,0,0.5); }
.video-time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.44);
  padding: 0 3px;
  margin-top: -2px;
}

/* Video controls */
.ed-video-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.ed-stepper-wrap {
  position: relative;
}
.ed-stepper-arrows {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.ed-video-ctrl-label {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.ed-stepper {
  height: 44px;
  width: 96px;
  border-radius: 10px;
  background: #1A1E1F;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 0 30px 0 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ed-extract-btn {
  height: 52px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.2s;
}
.ed-extract-btn:hover {
  background: rgba(255,255,255,0.14);
}

/* ═══════════════ FRAME LIST ═══════════════ */
.ed-frame-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ed-frame-list-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.ed-frame-count {
  font-weight: 600;
  color: rgba(255,255,255,0.44);
}
.ed-clear-frames {
  background: none;
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.ed-clear-frames:hover {
  opacity: 0.7;
}

/* Slot cards */
.slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot {
  position: relative;
  display: grid;
  grid-template-columns: 20px 40px 1fr 24px;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, opacity 0.15s;
}
.slot.dragging {
  transform: scale(0.97);
  border-color: rgba(255,255,255,0.4);
  border-style: dashed;
}
.slot.drag-over {
  border-color: #fff;
  background: rgba(255,255,255,0.16);
}
.slot:hover {
  background: rgba(255,255,255,0.12);
}
.slot.selected {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
.slot .idx {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff !important;
  flex-shrink: 0;
}
.slot.selected .idx {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}
.slot:hover .idx {
  visibility: hidden;
}
.slot:hover::before {
  content: '≡';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  background: transparent;
  border-radius: 0;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.slot .thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.slot .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slot .name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot .meta {
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,0.44);
}
.slot .remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.slot:hover .remove {
  background: transparent;
}
.slot .remove:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
/* Dragging state */
.slot[draggable="true"]:active {
  opacity: 0.5;
  outline: 1px dashed #fff;
  outline-offset: -1px;
  border-radius: 12px;
  transform: scale(0.98);
}
/* Empty slot state */
.ed-slot-empty {
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.44);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════ NAKED UPLOAD ═══════════════ */
.ed-naked-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
}
.ed-naked-upload-wrap {
  position: relative;
}
.ed-naked-card {
  height: 148px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.ed-naked-card:hover {
  border-color: rgba(255,255,255,0.44);
  background: rgba(255,255,255,0.04);
}
.ed-naked-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.ed-naked-card-title {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.ed-naked-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ed-naked-remove:hover {
  background: rgba(255,255,255,0.12);
}
.ed-swap-ab {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #282C2E;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.ed-swap-ab:hover {
  background: #383D40;
}

/* ═══════════════ BUTTONS ═══════════════ */
.ed-action-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-btn-generate {
  height: 52px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #000F16;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}
.ed-btn-generate:disabled {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}
.ed-btn-generate:not(:disabled):hover {
  opacity: 0.9;
}
.ed-btn-generate.regenerate {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.ed-btn-generate.regenerate:hover {
  background: rgba(255,255,255,0.14);
}
.ed-btn-print {
  height: 52px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #000F16;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}
.ed-btn-print:hover {
  opacity: 0.9;
}

/* ═══════════════ CENTER PANEL ═══════════════ */
.ed-center {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Center head: download pills */
.ed-center-head {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 16px 24px;
  width: 100%;
  box-sizing: border-box;
}
.ed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.ed-pill:hover {
  color: #fff;
}
.ed-pill-info {
  flex-shrink: 0;
  color: inherit;
}

/* Preview card */
.ed-card2d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(446px, calc(100% - 96px));
  aspect-ratio: 446 / 581;
  border-radius: 12px;
  overflow: hidden;
  background: #18181C;
}
#previewCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none !important;
  outline: none !important;
}
#nakedColorPreviewCanvas,
#nakedDepthPreviewCanvas {
  border: none !important;
}
/* clear-all entry migrated to per-card × buttons (design) */
#btnClearNakedEye {
  display: none !important;
}
#pixelInfo {
  display: none !important;
}
/* download entries migrated to center pills + How-to-Print modal */
#btnDownload,
#btnDownloadJig {
  display: none !important;
}
/* success feedback moved to the Added-N-frames toast */
#extractProgress {
  display: none !important;
}

/* Toolbar */
.toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.toolbar button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toolbar button:hover {
  background: rgba(255,255,255,0.14);
}
.toolbar .zoom-val {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.84);
  min-width: 36px;
  text-align: center;
  line-height: 28px;
}

/* Preview hint */
.preview-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.44);
  white-space: nowrap;
  pointer-events: none;
}

/* ═══════════════ RIGHT PANEL ═══════════════ */
.ed-right {
  flex: 1;
  position: relative;
  padding: 16px 24px;
  overflow: hidden;
}

/* preview-pane-title restyle (overrides core.css) */
.preview-pane-title {
  top: 16px !important;
  left: 24px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  border: none !important;
  color: rgba(255,255,255,0.44) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* 3D placeholder */
.ed-3d-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(446px, calc(100% - 96px));
  aspect-ratio: 446 / 581;
  border-radius: 12px;
  background: #18181C;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D canvas positioning */
#live3DCanvas {
  position: absolute;
  inset: 48px 16px 16px 16px;
  width: auto !important;
  height: auto !important;
}
#nakedThreeContainer {
  position: absolute;
  inset: 48px 16px 16px 16px;
}

/* ═══════════════ NAKED MODE OVERRIDES ═══════════════ */
body.naked-eye-active .ed-card2d {
  display: none;
}
/* Naked 2D preview stack — two-map column */
.naked-preview-stack {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}
body.naked-eye-active .naked-preview-stack {
  display: flex;
}
.ed-map {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ed-map:last-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ed-map-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
  gap: 8px;
  flex-shrink: 0;
}
.ed-map-label {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.ed-map-dl {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ed-map-dl:hover {
  background: rgba(255,255,255,0.14);
}
.ed-map-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 16px 16px;
}
.ed-map-body canvas {
  max-width: 55%;
  max-height: 60%;
  object-fit: contain;
}

/* ═══════════════ BUBBLES ═══════════════ */
.ed-bubble {
  position: fixed;
  z-index: 50;
  max-width: 300px;
  background: #2A2A2E;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  line-height: 1.4;
  pointer-events: auto;
}
#bubblePrism {
  max-width: 300px;
}
.ed-bubble-images {
  display: flex;
  gap: 0;
  border-radius: 2px;
  overflow: hidden;
  margin: -12px -12px 8px -12px;
  height: 142px;
}
.ed-bubble-img-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.ed-bubble-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ed-bubble-img-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.4);
  border-radius: 26px;
  height: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}
.ed-bubble-text {
  margin-top: 4px;
  color: #fff;
}
.ed-pill-info {
  cursor: default;
}

/* ═══════════════ FULLSCREEN LOADING ═══════════════ */
.ed-loading {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ed-loading-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  animation: ed-spin 0.8s linear infinite;
}
@keyframes ed-spin {
  to { transform: rotate(360deg); }
}
.ed-loading-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ═══════════════ MODAL (light) ═══════════════ */
.ed-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-modal {
  width: 450px;
  max-height: 86vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  font-family: 'Montserrat', sans-serif;
}
.ed-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 8px 24px;
}
.ed-modal-title {
  font-weight: 700;
  font-size: 16px;
  color: #000F16;
}
.ed-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #0A0A0B;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-modal-close:hover {
  background: rgba(0,0,0,0.06);
}
.ed-modal-sub {
  margin: 0 24px;
  font-weight: 600;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}
.ed-modal-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 24px 0;
}
.ed-modal-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-modal-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed-modal-step-num {
  width: 20px;
  height: 20px;
  border-radius: 16px;
  background: #1F1F1F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.ed-modal-step-card {
  background: rgba(0,15,22,0.04);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-modal-step-title {
  font-weight: 700;
  font-size: 14px;
  color: #000F16;
}
.ed-modal-step-desc {
  font-weight: 600;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}
.ed-modal-step-desc strong {
  color: #000F16;
}
.ed-modal-step-bullet {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.33;
  color: #000F16;
}
.ed-modal-step-foot {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.33;
  color: rgba(0,15,22,0.44);
}
.ed-modal-btn {
  padding: 8px 24px;
  border-radius: 10px;
  border: none;
  background: #fff;
  color: #000F16;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background 0.2s;
}
.ed-modal-btn:hover {
  background: rgba(0,0,0,0.04);
}
.ed-modal-cta {
  margin: 24px 24px 0;
  height: 36px;
  border-radius: 12px;
  background: #000F16;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  transition: opacity 0.2s;
}
.ed-modal-cta:hover {
  opacity: 0.85;
}

/* ═══════════════ RESPONSIVE <1200px ═══════════════ */
@media (max-width: 1199px) {
  .ed-main {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .ed-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: none;
    overflow-y: visible;
  }
  .ed-center {
    flex: none;
    height: 60vh;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .ed-right {
    flex: none;
    height: 50vh;
  }
  .ed-center-head {
    justify-content: center;
    flex-wrap: wrap;
  }
}