/* ============================================================
   IMMP hero visual - technician with checklist signals
   ============================================================ */
.ci-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wb-font-sans);
}

.ci-photo-frame {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1.04 / 1;
  isolation: isolate;
  /* No overflow:hidden — signal cards can pop out beyond the photo edge for a 3D feel. */
}
.ci-photo-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 24px;
  background: #dfe6ee;
  box-shadow:
    0 1px 1px rgba(11, 31, 59, 0.04),
    0 34px 72px -30px rgba(11, 31, 59, 0.32),
    0 12px 28px -14px rgba(11, 31, 59, 0.18);
}

.ci-photo-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
}

.ci-photo-base {
  z-index: 1;
  filter: saturate(0.82) contrast(1.02);
}

.ci-photo-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 25, 45, 0.1), transparent 42%, rgba(7, 25, 45, 0.025)),
    linear-gradient(180deg, rgba(7, 25, 45, 0.05), transparent 36%, rgba(7, 25, 45, 0.08));
  pointer-events: none;
  display: none;
}

.ci-photo-grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(219, 235, 251, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 235, 251, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 62%);
  pointer-events: none;
  display: none;
}

.ci-signal-layer {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.ci-signal {
  position: absolute;
  width: clamp(174px, 43%, 218px);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  padding: 12px 12px 11px;
  border: 1px solid rgba(220, 235, 249, 0.72);
  border-radius: 12px;
  color: #102a49;
  background: rgba(246, 250, 254, 0.94);
  box-shadow:
    0 18px 42px -20px rgba(5, 22, 42, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(9px);
  transform-origin: 50% 100%;
}

/* Two-card layout: signal #1 = top-right (Ready for review),
   signal #2 = bottom-left (Inspection checklist). Both nudge slightly
   beyond the photo edge so they feel 3D / popped-out. */
.ci-signal--1 {
  top: -5%;
  right: -5%;
  width: clamp(180px, 45%, 226px);
  box-shadow:
    0 22px 50px -22px rgba(5, 22, 42, 0.7),
    0 6px 14px -8px rgba(5, 22, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ci-signal--2 {
  bottom: -5%;
  left: -5%;
  width: clamp(188px, 46%, 232px);
  box-shadow:
    0 22px 50px -22px rgba(5, 22, 42, 0.7),
    0 6px 14px -8px rgba(5, 22, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ci-signal-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #285f96;
  background: #e8f1fa;
}

.ci-signal-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ci-signal-copy b {
  overflow: hidden;
  color: #0b1f3a;
  font: 700 11px/1.15 var(--wb-font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-signal-copy small {
  overflow: hidden;
  color: #647386;
  font: 500 8px/1.25 var(--wb-font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-signal-track {
  height: 3px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5ee;
}

.ci-signal-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #285f96, #2f9877);
  transform: scaleX(1);
  transform-origin: left center;
}

.ci-signal-status {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
}

.ci-signal-spinner,
.ci-signal-check {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ci-signal-spinner {
  border: 2px solid #d4dee8;
  border-top-color: #285f96;
}

.ci-signal-check {
  color: #146a4e;
  background: #dff3e9;
}

.ci-photo-caption {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  max-width: 250px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(215, 233, 250, 0.2);
  border-radius: 11px;
  color: #edf6ff;
  background: rgba(7, 25, 45, 0.74);
  box-shadow: 0 16px 38px -18px rgba(5, 19, 36, 0.72);
  backdrop-filter: blur(10px);
}

.ci-photo-caption > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ci-photo-caption b {
  font: 700 10px/1.2 var(--wb-font-sans);
}

.ci-photo-caption small {
  color: rgba(226, 239, 252, 0.7);
  font: 500 8px/1.35 var(--wb-font-sans);
}

.ci-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 50%;
  background: #5ed2a6;
  box-shadow: 0 0 0 4px rgba(94, 210, 166, 0.16);
}

@media (max-width: 900px) {
  .ci-photo-frame {
    width: min(100%, 620px);
    aspect-ratio: 1.18 / 1;
  }
}

@media (max-width: 620px) {
  .ci-photo-frame {
    width: 100%;
    aspect-ratio: 0.96 / 1;
    border-radius: 18px;
  }

  .ci-photo-base {
    object-position: 50% 50%;
  }

  .ci-signal {
    width: 50%;
    grid-template-columns: 28px minmax(0, 1fr) 17px;
    gap: 7px;
    padding: 9px;
    border-radius: 10px;
  }

  .ci-signal--1 {
    top: -3%;
    right: -3%;
    width: 56%;
  }

  .ci-signal--2 {
    bottom: -3%;
    left: -3%;
    width: 60%;
  }

  .ci-signal-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .ci-signal-copy b {
    font-size: 9px;
  }

  .ci-signal-copy small {
    font-size: 7px;
  }

  .ci-signal-status {
    width: 17px;
    height: 17px;
  }

  .ci-photo-caption {
    right: 10px;
    bottom: 10px;
    max-width: 52%;
    padding: 9px 10px;
  }

  .ci-photo-caption b {
    font-size: 8px;
  }

  .ci-photo-caption small {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-signal {
    opacity: 1 !important;
    transform: none !important;
  }

  .ci-signal-spinner {
    display: none;
  }

  .ci-signal-check {
    opacity: 1 !important;
    transform: none !important;
  }
}
