.dnv-app {
  border: 1px solid #d6d6d6;
  padding: 24px;
  border-radius: 12px;
  max-width: 820px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.dnv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dnv-field label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.dnv-field input[type='url'] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cdd4e0;
}

.dnv-recorder,
.dnv-camera {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dnv-recorder button,
.dnv-camera button,
.dnv-submit {
  background: #1f4b99;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.dnv-recorder__countdown {
  font-weight: 700;
  color: #d97706;
}

.dnv-recorder button:hover,
.dnv-camera button:hover,
.dnv-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(31, 75, 153, 0.2);
}

.dnv-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#dnv-video,
#dnv-photo-preview {
  width: 180px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  background: #f5f7fb;
  border: 1px solid #e1e6ef;
}

#dnv-photo-preview {
  aspect-ratio: 9 / 16;
}

.dnv-progress {
  background: #f5f7fb;
  border-radius: 12px;
  border: 1px solid #e1e6ef;
  padding: 10px;
}

.dnv-progress__bar {
  height: 8px;
  background: linear-gradient(90deg, #5a7cf7, #93b4ff);
  width: 0;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.dnv-progress__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dnv-step {
  background: #fff;
  border: 1px dashed #cdd4e0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #4b5563;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dnv-step.done {
  border-color: #33b26e;
  color: #0f5132;
  background: #e8f7ee;
}

.dnv-step.active {
  border-color: #1f4b99;
  color: #1f4b99;
  background: #eef3ff;
}

.dnv-step__label {
  position: relative;
}

.dnv-step__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.dnv-step__spinner::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #cdd4e0;
  border-top-color: #1f4b99;
  animation: dnv-spin 0.8s linear infinite;
}

@keyframes dnv-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.dnv-log {
  padding: 8px 10px;
  background: #f8fafc;
  border-left: 4px solid #1f4b99;
  margin-bottom: 8px;
}

.dnv-result {
  margin-top: 16px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e1e6ef;
}

.dnv-video {
  width: 100%;
  max-width: 480px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #d6d6d6;
}

.dnv-error {
  color: #a94442;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 8px;
}

.dnv-consent label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

.dnv-reset-btn {
  margin-top: 12px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.dnv-loading {
  opacity: 0.6;
  pointer-events: none;
}