.profint-camera-capture {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(360px, 1.28fr);
  gap: .85rem;
  align-items: stretch;
  padding: .9rem;
  border: 1px solid #cfe5ec;
  border-radius: 10px;
  background: #fbfdff;
  color: #101828;
}

.profint-camera-capture[hidden] {
  display: none !important;
}

.profint-camera-capture__copy {
  display: grid;
  align-content: start;
  gap: .4rem;
  min-width: 0;
}

.profint-camera-capture__label {
  color: #075985;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profint-camera-capture__copy h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.profint-camera-capture__copy p {
  margin: 0;
  color: #607089;
  font-size: .78rem;
  line-height: 1.55;
}

.profint-camera-capture__hint {
  margin-top: .35rem;
  padding: .58rem .65rem;
  border: 1px solid #e5edf2;
  border-radius: 8px;
  background: #fff;
  color: #4a5b73;
  font-size: .76rem;
  line-height: 1.4;
}

.profint-camera-capture__workspace {
  display: grid;
  gap: .6rem;
  min-width: 0;
}

.profint-camera-capture__stage {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px solid #bfd5df;
  border-radius: 10px;
  background: #111827;
}

.profint-camera-capture__stage video,
.profint-camera-capture__stage canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profint-camera-capture__placeholder {
  display: grid;
  gap: .34rem;
  justify-items: center;
  max-width: 260px;
  padding: 1rem;
  color: rgba(255, 255, 255, .82);
  text-align: center;
}

.profint-camera-capture__placeholder i {
  font-size: 2rem;
}

.profint-camera-capture__placeholder strong {
  font-size: .92rem;
  font-weight: 780;
}

.profint-camera-capture__placeholder span {
  font-size: .76rem;
  line-height: 1.4;
}

.profint-camera-capture__guide {
  pointer-events: none;
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 44% / 50%;
}

.profint-camera-capture__guide span {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(125, 211, 252, .95);
  border-style: solid;
}

.profint-camera-capture__guide span:nth-child(1) {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 10px;
}

.profint-camera-capture__guide span:nth-child(2) {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 10px;
}

.profint-camera-capture__guide span:nth-child(3) {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 10px;
}

.profint-camera-capture__guide span:nth-child(4) {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 10px;
}

.profint-camera-capture__badge {
  position: absolute;
  top: .65rem;
  right: .65rem;
  padding: .28rem .5rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.profint-camera-capture__badge[data-mode="live"],
.profint-camera-capture__badge[data-mode="saved"] {
  background: rgba(4, 120, 87, .88);
}

.profint-camera-capture__badge[data-mode="working"] {
  background: rgba(14, 116, 144, .88);
}

.profint-camera-capture__badge[data-mode="warning"] {
  background: rgba(180, 83, 9, .9);
}

.profint-camera-capture__badge[data-mode="error"] {
  background: rgba(185, 28, 28, .9);
}

.profint-camera-capture__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.profint-camera-capture__actions .btn {
  min-height: 38px;
}

@media (max-width: 720px) {
  .profint-camera-capture {
    grid-template-columns: 1fr;
  }

  .profint-camera-capture__stage {
    min-height: 220px;
  }
}
