.request-status:empty,
.selected-files:empty {
  display: none;
}

.request-status {
  margin-top: 12px;
  border: 1px solid #d8d7d2;
  border-radius: 10px;
  background: #fafafa;
  padding: 11px 13px;
  color: #555761;
  font-size: 12px;
  line-height: 1.45;
}

.request-status.success {
  border-color: #b9dcca;
  background: #eff9f3;
  color: #17613d;
}

.request-status.error {
  border-color: #edc0c0;
  background: #fff2f2;
  color: #9c2525;
}

.request-status.listening {
  border-color: #bbc5ff;
  background: #eef1ff;
  color: #293c91;
}

.request-status.order-success {
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
}

.selected-files {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 17px;
}

.contact-fields label {
  margin: 0;
  color: #555761;
  font-size: 11px;
}

.contact-fields input {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 1px solid #d8d7d2;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  outline: none;
  color: #171820;
  font-size: 13px;
}

.contact-fields input:focus {
  border-color: #2343d8;
  box-shadow: 0 0 0 3px rgba(35, 67, 216, 0.1);
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e1e0dc;
  border-radius: 9px;
  background: #fff;
  padding: 9px 11px;
  font-size: 11px;
}

.selected-file span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file button {
  border: 0;
  background: transparent;
  color: #9c2525;
  font-size: 11px;
  cursor: pointer;
}

.intake.is-listening .actions button:nth-child(4),
.intake.is-listening .field button {
  background: #ffdede;
  color: #b52323;
  animation: microphone-pulse 1.3s ease-in-out infinite;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.camera-open {
  overflow: hidden;
}

.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 13, 18, 0.84);
  backdrop-filter: blur(10px);
}

.camera-panel {
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: #171820;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.camera-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.camera-head > div:first-child {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.camera-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.camera-head b {
  font-size: 16px;
}

.camera-head small,
.camera-panel > p {
  color: #b9bbc5;
  font-size: 11px;
}

.camera-close,
.camera-switch {
  border: 1px solid #4a4c57;
  border-radius: 9px;
  background: transparent;
  padding: 9px 12px;
  color: #fff;
  font-size: 12px;
}

.camera-switch {
  border-color: #6677ca;
  color: #cbd2ff;
}

.camera-switch:disabled {
  opacity: 0.55;
}

.camera-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #050506;
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.camera-frame {
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.12);
}

.camera-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px 10px;
}

.camera-capture,
.camera-done {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 0 24px;
  font-weight: 750;
}

.camera-capture {
  min-width: 190px;
  background: #fff;
  color: #171820;
}

.camera-capture:disabled {
  opacity: 0.6;
}

.camera-done {
  background: #2343d8;
  color: #fff;
}

.camera-panel > p {
  margin: 0;
  padding: 0 20px 19px;
  text-align: center;
}

@keyframes microphone-pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(181, 35, 35, 0.12);
  }
}

@media (max-width: 560px) {
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .camera-overlay {
    padding: 0;
  }
  .camera-panel {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .camera-head {
    align-items: flex-start;
    padding: 14px;
  }
  .camera-head-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .camera-close,
  .camera-switch {
    padding: 8px 10px;
    font-size: 11px;
  }
  .camera-stage {
    aspect-ratio: auto;
    height: calc(100dvh - 190px);
  }
  .camera-controls {
    padding-top: 14px;
  }
  .camera-capture {
    min-width: 0;
    flex: 1;
  }
}
