.photo-analyzer {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.analyzer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.analyzer-heading h2 {
  color: var(--text-main);
  font-size: 1.25rem;
}

.analyzer-heading p {
  max-width: 650px;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.analyzer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.url-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.url-input {
  width: 260px;
  max-width: 100%;
  padding: 8px 12px;
  background: var(--bg-main, #090d16);
  border: 1px solid var(--border-color, #232d45);
  border-radius: 7px;
  color: var(--text-main, #ffffff);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.url-input:focus {
  border-color: #38bdf8;
}

.url-btn,
.file-picker,
#analyzePhoto {
  padding: 9px 14px;
  border: 1px solid #252525;
  border-radius: 7px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.url-btn {
  background: #2a3a52;
  border-color: #38bdf8;
  color: #38bdf8;
  transition: all 0.15s ease;
}

.url-btn:hover {
  background: #38bdf8;
  color: #090d16;
}

.file-picker {
  background: #ffffff;
  color: #222222;
}

#analyzePhoto {
  background: #202020;
  color: #ffffff;
}

#analyzePhoto:disabled {
  border-color: #d4d4d4;
  background: #e5e5e3;
  color: #8a8a8a;
  cursor: not-allowed;
}

.analyzer-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 16px 0;
}

.analysis-status {
  min-height: 20px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.subject-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.subject-control-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.subject-options {
  display: flex;
  background: #141b2d;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.subject-btn {
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.subject-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.subject-btn.active {
  background: #38bdf8;
  color: #090d16;
  font-weight: 700;
}

.analysis-status[data-state="error"] {
  color: #111111;
  font-weight: 700;
}

.analysis-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.photo-stage {
  min-height: 280px;
  position: relative;
  display: block;
  overflow: visible;
  border: 1px dashed #b8b8b8;
  border-radius: 9px;
  background: transparent;
  padding: 0;
  margin: 0;
}

.photo-wrapper {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  margin: 0;
  padding: 0;
}

.photo-stage img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  transition: opacity 0.15s ease;
}

/* 캔버스를 이미지 바로 위에 절대 위치로 1:1 포개어 배치 */
.photo-stage canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.photo-stage canvas[hidden] {
  display: none !important;
}

.photo-stage.has-image {
  min-height: 0;
  border: none;
  background: transparent;
}

.photo-stage.has-image .photo-placeholder {
  display: none;
}

#photoOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

#photoOverlay .template-lines {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 0.8;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

#photoOverlay .analysis-horizon {
  stroke: #38bdf8;
  stroke-width: 1.1;
  stroke-dasharray: 4 2;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

#photoOverlay .analysis-target {
  stroke: #f43f5e;
  stroke-width: 1.4;
  fill: rgba(244, 63, 94, 0.2);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

#photoOverlay .template-target-ring {
  stroke: #38bdf8;
  stroke-width: 1.2;
  stroke-dasharray: 2 2;
  fill: rgba(56, 189, 248, 0.25);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

#photoOverlay .virtual-subject-item {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
}

/* 파이프라인 단계 인디케이터 */
.pipeline-steps-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141b2d;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.pipeline-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.45;
  transition: all 0.2s ease;
}

.pipeline-step-item.active {
  opacity: 1;
  color: #38bdf8;
}

.pipeline-step-item.done {
  opacity: 0.85;
  color: #4ade80;
}

.pipeline-step-item .step-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pipeline-step-item .step-label {
  font-size: 0.78rem;
  font-weight: 600;
}

.pipeline-arrow {
  color: var(--border-color);
  font-size: 0.8rem;
}

/* 좌측 뷰 모드 탭 */
.stage-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.view-mode-tabs {
  display: flex;
  gap: 6px;
  background: #141b2d;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 3px;
}

.view-mode-btn {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.view-mode-btn:hover {
  color: #ffffff;
}

.view-mode-btn.active {
  background: #38bdf8;
  color: #090d16;
  font-weight: 700;
}

/* 2단계 기하학 텔레메트리 대시보드 */
.geometry-telemetry-panel {
  background: #141b2d;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
}

.geometry-telemetry-panel h4 {
  font-size: 0.82rem;
  color: #38bdf8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.telemetry-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.telemetry-val {
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 700;
}

.analysis-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.analysis-summary {
  margin-bottom: 4px;
  color: #333333;
  font-size: 0.86rem;
  line-height: 1.5;
}

.detected-genres {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 0.72rem;
}

.detected-genres b {
  margin-right: 3px;
  color: #333333;
}

.detected-genres span {
  padding: 3px 7px;
  border: 1px solid #cfcfcd;
  border-radius: 999px;
  background: #f2f2f0;
  color: #444444;
}

.recommendation-card {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  text-align: left;
  cursor: pointer;
}

.recommendation-card:hover {
  border-color: #555555;
  background: #f6f6f4;
}

.recommendation-card.active {
  border-color: #222222;
  box-shadow: inset 3px 0 #222222;
}

.recommendation-preview {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dededc;
  border-radius: 5px;
  background: #fafafa;
}

.template-mini-svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #333333;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.template-mini-svg .overlay-target {
  stroke-width: 2.5;
}

.recommendation-rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #262626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.recommendation-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recommendation-copy b {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-copy small {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.recommendation-card strong {
  font-size: 0.82rem;
}

.analysis-tips {
  margin: 6px 0 0 18px;
  color: #4b4b4b;
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .analysis-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .photo-analyzer {
    padding: 16px;
  }

  .analyzer-heading {
    flex-direction: column;
  }

  .analyzer-actions {
    width: 100%;
  }

  .file-picker,
  #analyzePhoto {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   JEV (Joint Environment Viewer) HUD 피사체 타겟팅 오버레이 스타일
   ========================================================================== */
.hud-mode-btn {
  margin-left: auto;
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hud-mode-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
}

.hud-mode-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.jev-hud-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  cursor: crosshair;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
}

.jev-hud-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
  animation: jevPulseHint 2s infinite ease-in-out;
}

@keyframes jevPulseHint {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(56, 189, 248, 0.8); }
}

.jev-reticle {
  position: absolute;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.15s ease, height 0.15s ease;
}

.jev-reticle.tracking {
  transform: translate(-50%, -50%) scale(1.08);
}

/* 4각 코너 브래킷 (뷰파인더 오토포커스 / 밀리터리 HUD 형태) */
.jev-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #38bdf8;
  border-style: solid;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.8));
}

.jev-tl {
  top: 0;
  left: 0;
  border-width: 2.5px 0 0 2.5px;
}

.jev-tr {
  top: 0;
  right: 0;
  border-width: 2.5px 2.5px 0 0;
}

.jev-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2.5px 2.5px;
}

.jev-br {
  bottom: 0;
  right: 0;
  border-width: 0 2.5px 2.5px 0;
}

/* 센터 십자선 */
.jev-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.jev-crosshair::before,
.jev-crosshair::after {
  content: '';
  position: absolute;
  background: #38bdf8;
  box-shadow: 0 0 4px #38bdf8;
}

.jev-crosshair::before {
  top: 0;
  bottom: 0;
  left: 4.5px;
  width: 1px;
}

.jev-crosshair::after {
  left: 0;
  right: 0;
  top: 4.5px;
  height: 1px;
}

/* JEV 타겟 락온 태그 */
.jev-lock-tag {
  position: absolute;
  top: -20px;
  left: 0;
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* JEV 실시간 좌표 디스플레이 */
.jev-coord-tag {
  position: absolute;
  bottom: -20px;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #38bdf8;
  font-size: 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  white-space: nowrap;
}

/* ==========================================================================
   📹 실시간 카메라 뷰파인더 & 전문가 구도 코칭 HUD 스타일
   ========================================================================== */
.live-badge {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.camera-start-btn,
.placeholder-cam-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid #38bdf8;
  color: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transition: all 0.2s ease;
}

.camera-start-btn:hover,
.placeholder-cam-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.camera-start-btn.live-active {
  background: #dc2626;
  border-color: #f87171;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
  animation: liveCamPulse 2s infinite;
}

@keyframes liveCamPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.85); }
}

/* 카메라 뷰포트: 화면에 가득 차서 버튼이 잘리지 않도록 높이 제한 및 줌 클리핑 */
.camera-viewport {
  position: relative;
  width: 100%;
  max-height: 56vh;
  overflow: hidden;
  background: #05070c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-viewport video,
.camera-viewport img {
  display: block;
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  margin: 0;
  padding: 0;
  transform-origin: center center;
  transition: transform 0.12s ease-out, opacity 0.15s ease;
}

.camera-viewport video[hidden],
.camera-viewport img[hidden] {
  display: none !important;
}

.shutter-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 60;
  pointer-events: none;
  animation: flashAnim 0.28s ease-out forwards;
}

.shutter-flash[hidden] {
  display: none !important;
}

@keyframes flashAnim {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  padding: 20px;
}

.placeholder-icon {
  font-size: 2.4rem;
  opacity: 0.85;
}

.placeholder-inner strong {
  color: #ffffff;
  font-size: 1.05rem;
}

/* 상단 촬영 코칭 플로팅 배너 */
.vf-top-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.vf-top-hud[hidden] {
  display: none !important;
}

.vf-template-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.vf-coaching-msg {
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.vf-match-meter {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.vf-match-meter.perfect {
  background: #22c55e;
  color: #052e16;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.75);
}

/* ==========================================================================
   🎛️ 카메라 하단 전용 컨트롤 독 (줌 슬라이더 + 구도 칩 + 대형 셔터 바)
   ========================================================================== */
.camera-control-dock {
  background: #0b0f19;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  z-index: 35;
}

.camera-control-dock[hidden] {
  display: none !important;
}

/* 줌 인/아웃 컨트롤 행 */
.camera-zoom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
}

.zoom-presets {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zoom-pill {
  width: 36px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.5);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zoom-pill.active {
  background: #fbbf24;
  color: #090d16;
  border-color: #fbbf24;
  transform: scale(1.06);
}

.zoom-slider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}

.zoom-icon {
  font-size: 0.7rem;
  color: #94a3b8;
  user-select: none;
}

#zoomSlider {
  flex: 1;
  accent-color: #fbbf24;
  cursor: pointer;
  height: 5px;
}

.zoom-readout {
  min-width: 36px;
  text-align: right;
  font-size: 0.76rem;
  color: #fbbf24;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* 구도 칩 */
.vf-intent-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
}

.vf-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vf-chip.active {
  background: #38bdf8;
  color: #090d16;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* 대형 셔터 버튼 및 좌우 보조 버튼 */
.vf-shutter-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 420px;
  padding-top: 4px;
}

.cam-aux-btn {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cam-aux-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cam-aux-btn[hidden] {
  display: none !important;
}

.vf-shutter-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.12s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.vf-shutter-btn:hover {
  transform: scale(1.05);
}

.vf-shutter-btn:active {
  transform: scale(0.92);
}

.vf-shutter-btn .shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  transition: background 0.15s ease;
}

.vf-shutter-btn.ready-green {
  border-color: #4ade80;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.8);
}

.vf-shutter-btn.ready-green .shutter-inner {
  background: #4ade80;
}

/* SVG 구도 정렬 벡터 화살표 및 락온 효과 */
#photoOverlay .guide-vector-line {
  stroke: #fbbf24;
  stroke-width: 0.9;
  stroke-dasharray: 2.5 1.8;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.95));
}

#photoOverlay .template-target-ring.aligned-green {
  stroke: #4ade80;
  fill: rgba(74, 222, 128, 0.28);
  stroke-dasharray: none;
  stroke-width: 1.6;
}

@media (max-width: 600px) {
  .camera-viewport,
  .camera-viewport video,
  .camera-viewport img {
    max-height: 50vh;
  }

  .vf-coaching-msg {
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   🎯 다중 피사체(구름 + 사람 + 바다 등) 동시 선택 & 멀티 JEV 마커 스타일
   ========================================================================== */
.clear-subjects-btn {
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #fb7185 !important;
}

.clear-subjects-btn:hover {
  background: rgba(244, 63, 94, 0.15) !important;
}

.multi-target-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.multi-jev-node {
  position: absolute;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  transition: left 0.08s linear, top 0.08s linear, transform 0.15s ease;
  will-change: left, top;
}

.multi-jev-node:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.multi-jev-node .node-box {
  position: absolute;
  inset: 0;
  border: 2px solid #38bdf8;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.multi-jev-node.tracking-locked .node-box {
  border-color: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.7);
}

.multi-jev-node.primary .node-box {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
}

.multi-jev-node .node-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 13, 22, 0.92);
  color: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.multi-jev-node .track-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: trackPulse 1s infinite;
}

@keyframes trackPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.multi-jev-node.primary .node-badge {
  border-color: #fbbf24;
  color: #fde68a;
}

.multi-jev-node .node-remove {
  color: #fb7185;
  font-weight: 900;
  margin-left: 2px;
}

#photoOverlay .multi-balance-polygon {
  stroke: rgba(56, 189, 248, 0.85);
  stroke-width: 0.7;
  stroke-dasharray: 2 2;
  fill: rgba(56, 189, 248, 0.08);
}
