/* ========================================================
   CAI ZHU STUDIO PRO - SCENE IMAGE MAPPING STYLES
   ======================================================== */

.scene-image-map {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(99, 91, 255, 0.25);
  background: linear-gradient(135deg, var(--surface-2), var(--brand-soft));
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  backdrop-filter: var(--glass-blur);
  transition: all 0.2s ease;
}

.scene-image-map:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px var(--brand-glow);
}

.scene-image-map img {
  width: 104px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  background: #090c13;
  border: 1px solid var(--line);
}

.scene-image-map > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scene-image-map b {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scene-image-map select {
  padding: 8px 10px;
  background: var(--surface-solid);
  border-color: var(--line);
  font-size: 12px;
  border-radius: 8px;
}

.scene-image-map select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.scene-image-map small, .scene-image-empty {
  font-size: 11px;
  color: var(--muted);
}

.scene-image-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  background: var(--surface-2);
  text-align: center;
  font-weight: 500;
}

.scene-image-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  margin: 10px 0;
  padding: 14px;
  border: 1.5px dashed rgba(0, 229, 255, 0.55);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.055);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.scene-image-input:hover,
.scene-image-input:focus,
.scene-image-input.drag-over {
  outline: none;
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.scene-image-input > i {
  flex: 0 0 auto;
  font-size: 30px;
  color: var(--brand);
}

.scene-image-input > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.scene-image-input b { color: var(--text); font-size: 13px; }
.scene-image-input span { color: var(--brand); font-size: 12px; font-weight: 700; }
.scene-image-input small { color: var(--muted); font-size: 11px; }
.scene-anchor-source {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 12px;
  background: rgba(8, 22, 34, .62);
}

.anchor-source-thumb {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, .55);
}
.anchor-provenance { color: #34d399 !important; font-size: 11px; }
.scene-anchor-source > i { color: var(--muted); font-size: 22px; }
.scene-anchor-source > div { display: grid; gap: 3px; }
.scene-anchor-source b { color: var(--text); font-size: 13px; }
.scene-anchor-source small { color: var(--muted); font-size: 11px; }
.scene-anchor-source.ready { border-color: rgba(16, 185, 129, .42); }
.scene-anchor-source.ready > i,
.scene-anchor-source.ready small { color: #34d399; }

.scene-image-replace {
  align-self: flex-start;
  padding: 5px 9px;
  font-size: 11px;
  color: var(--brand) !important;
  background: rgba(0, 229, 255, 0.08) !important;
  border: 1px solid rgba(0, 229, 255, 0.34) !important;
  border-radius: 7px;
  box-shadow: none !important;
}

.scene-image-replace:hover,
.scene-image-replace:focus-visible {
  color: var(--text) !important;
  background: rgba(0, 229, 255, 0.16) !important;
  border-color: var(--brand) !important;
}

/* Master Face Lock Module (Sync with inspector.css) */
.master-face-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-solid);
  border: 1.5px dashed var(--success);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 12px 0;
}

.master-face-lock[hidden] {
  display: none;
}

.master-face-lock img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--success);
  box-shadow: 0 2px 8px var(--success-soft);
}

.master-face-lock > div {
  display: flex;
  flex-direction: column;
}

.master-face-lock small {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.1em;
  font-weight: 900;
  color: var(--success);
  text-transform: uppercase;
}

.master-face-lock b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.master-face-lock span {
  font-size: 10px;
  color: var(--muted);
}
