.capture-dialog { width: min(1480px, 96vw); max-width: 96vw; }
.capture-body { padding: 0 24px 24px; overflow-y: auto; max-height: 73vh; }
.capture-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.capture-controls label { display: flex; align-items: center; gap: 6px; }
.capture-status { padding: 12px; background: #eef1ff; border-radius: 8px; color: #34395c; }
.capture-status span { color: #626779; }
.capture-workspace { display: flex; gap: 20px; margin: 12px 0; align-items: start; }
.capture-video { background: #252734; color: #dedfeb; width: min(600px, 60%); min-height: 110px; border-radius: 8px; overflow: hidden; }
.capture-video > span { display: block; padding: 20px; }
.capture-video video { width: 100%; display: block; max-height: 310px; object-fit: contain; }
.capture-timing { font-size: 13px; color: #626779; }
.capture-diagnostics { padding: 14px; background: #f4f5f8; margin: 14px 0; border-radius: 8px; }
.capture-diagnostics summary { cursor: pointer; }
.capture-diagnostics pre { font-size: 11px; max-height: 200px; overflow: auto; white-space: pre-wrap; }
.capture-review table { min-width: 1220px; }
.capture-review td { vertical-align: top; white-space: normal; }
.capture-review small { display: block; margin: 4px 0; }
.capture-review select { max-width: 205px; }
.capture-price { min-width: 90px; }
.capture-crop { width: 180px; max-height: 130px; object-fit: contain; }
.capture-ok { color: #397657; font-size: 12px; }
.capture-source { background: #eef1ff; color: #4656a5; }
.calibration { padding: 12px; border: 1px solid #cbd0e5; }
.calibration-image { position: relative; width: 100%; user-select: none; touch-action: none; line-height: 0; }
.calibration-image > img { width: 100%; display: block; }
.calibration-region { position: absolute; border: 2px solid #e7ad12; background: #ffcc0020; cursor: move; touch-action: none; box-sizing: border-box; }
.calibration-region > span { position: absolute; left: 0; bottom: 100%; background: #222; color: white; font-size: 12px; line-height: 18px; padding: 0 4px; }
.calibration-region > b { position: absolute; bottom: -5px; right: -5px; width: 12px; height: 12px; background: #e7ad12; cursor: se-resize; touch-action: none; }
.region-number { width: 85px; }
.calibration-preview { max-width: 100%; max-height: 100px; border: 1px solid #888; }

@media (max-width: 700px) {
  .capture-body { padding: 0 12px 12px; }
  .capture-workspace { flex-direction: column; }
  .capture-video { width: 100%; }
  .capture-dialog { width: 98vw; max-width: 98vw; }
}
