.scantech-poc {
  --scantech-navy: #102a43;
  --scantech-blue: #137cbd;
  --scantech-cyan: #2cb1bc;
  --scantech-ink: #243b53;
  --scantech-muted: #627d98;
  --scantech-line: #d9e2ec;
  --scantech-light: #f5f8fa;
  color: var(--scantech-ink);
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 840px;
}

.scantech-poc *,
.scantech-poc *::before,
.scantech-poc *::after {
  box-sizing: border-box;
}

.scantech-poc__header h2,
.scantech-poc__panel h3 {
  color: var(--scantech-navy);
  margin: 0 0 10px;
}

.scantech-poc__header p,
.scantech-poc__panel p {
  margin: 0 0 14px;
}

.scantech-poc__eyebrow {
  color: var(--scantech-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.scantech-poc__panel {
  background: #fff;
  border: 1px solid var(--scantech-line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
  padding: clamp(18px, 4vw, 30px);
}

.scantech-poc__video-wrap {
  aspect-ratio: 4 / 3;
  background: #0b1724;
  border-radius: 12px;
  max-height: 520px;
  overflow: hidden;
  position: relative;
}

.scantech-poc__video-wrap video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.scantech-poc [hidden] {
  display: none !important;
}

.scantech-poc__guide {
  border: 3px solid var(--scantech-cyan);
  border-radius: 10px;
  height: 34%;
  left: 12%;
  pointer-events: none;
  position: absolute;
  top: 33%;
  width: 76%;
}

.scantech-poc__guide--ocr {
  height: 42%;
  left: 8%;
  top: 29%;
  width: 84%;
}

.scantech-poc__preview {
  align-items: center;
  background: #0b1724;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  max-height: 520px;
  min-height: 220px;
  overflow: hidden;
}

.scantech-poc__preview img {
  display: block;
  height: auto;
  max-height: 520px;
  max-width: 100%;
  object-fit: contain;
}

.scantech-poc__actions,
.scantech-poc__field-row {
  display: flex;
  gap: 10px;
}

.scantech-poc__actions {
  flex-wrap: wrap;
  margin-top: 16px;
}

.scantech-poc__button,
.scantech-poc__copy {
  align-items: center;
  background: var(--scantech-blue);
  border: 1px solid var(--scantech-blue);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.scantech-poc__button:hover,
.scantech-poc__copy:hover {
  transform: translateY(-1px);
}

.scantech-poc__button:disabled,
.scantech-poc__copy:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.scantech-poc__button--secondary {
  background: transparent;
  color: var(--scantech-blue);
}

.scantech-poc__file-label,
.scantech-poc__field {
  display: grid;
  font-weight: 700;
  gap: 8px;
  margin-top: 18px;
}

.scantech-poc__file-label input {
  border: 1px dashed var(--scantech-muted);
  border-radius: 8px;
  font: inherit;
  padding: 12px;
  width: 100%;
}

.scantech-poc__field input,
.scantech-poc__field textarea {
  background: var(--scantech-light);
  border: 1px solid var(--scantech-line);
  border-radius: 8px;
  color: var(--scantech-ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

.scantech-poc__field textarea {
  min-height: 130px;
  resize: vertical;
}

.scantech-poc__copy {
  flex: 0 0 auto;
}

.scantech-poc__status {
  color: var(--scantech-muted);
  font-size: 14px;
  margin-top: 12px !important;
}

.scantech-poc__status[data-state="success"] {
  color: #137333;
}

.scantech-poc__status[data-state="error"] {
  color: #b42318;
}

.scantech-poc__status[data-state="working"] {
  color: var(--scantech-blue);
}

.scantech-poc__format {
  color: var(--scantech-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0 !important;
  min-height: 1.4em;
}

.scantech-poc__detected-fields {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .scantech-poc__detected-fields {
    grid-template-columns: 1fr;
  }

  .scantech-poc__field-row {
    align-items: stretch;
    flex-direction: column;
  }

  .scantech-poc__copy {
    width: 100%;
  }
}
