.patient-details {
  margin: 16px 0;
  border: 1px solid #c8d7e0;
  border-radius: 12px;
  background: #f7fafb;
}
.patient-details summary {
  cursor: pointer;
  padding: 14px;
  font-weight: 800;
  color: #0d3b5c;
}
.patient-fields { padding: 0 14px 14px; }
.scan-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.scan-input button { margin: 0; white-space: nowrap; }
.scanner-dialog {
  width: min(680px, calc(100% - 24px));
  border: 0;
  border-radius: 16px;
  padding: 20px;
  color: #17324a;
}
.scanner-dialog::backdrop { background: #0d263bcc; }
.scanner-dialog video {
  display: block;
  width: 100%;
  max-height: 55vh;
  background: #111;
  border-radius: 12px;
  margin: 12px 0;
}
@media (max-width: 650px) {
  .scan-input { grid-template-columns: 1fr; }
  .scan-input button { width: 100%; }
}
