.batch-rename-modal-card {
  width: min(520px, calc(100vw - 28px));
}

.batch-rename-modal-body {
  display: grid;
  gap: 12px;
}

.batch-rename-modal-note {
  margin: 0;
  font: 600 0.83rem "Manrope", "Segoe UI", sans-serif;
  color: #5b6f8f;
}

#batchRenameMode {
  max-width: 220px;
}

.batch-rename-scope {
  display: grid;
  gap: 8px;
}

.batch-rename-scope-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #27476b;
  font: 650 0.82rem "Manrope", "Segoe UI", sans-serif;
}

.batch-rename-pick-region-btn {
  width: fit-content;
}

.batch-rename-region-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-rename-clear-regions-btn {
  min-height: 34px;
}

.batch-rename-region-summary {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #ccd9eb;
  border-radius: 10px;
  background: #ffffff;
  color: #1d3858;
  font: 600 0.79rem "Manrope", "Segoe UI", sans-serif;
}

.batch-rename-status {
  margin: 0;
  min-height: 18px;
  color: #33577e;
  font: 650 0.79rem "Manrope", "Segoe UI", sans-serif;
}

.batch-rename-status.is-error {
  color: #b42318;
}

.batch-rename-region-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  cursor: crosshair;
  background: rgba(18, 42, 84, 0.1);
  border: 1px dashed rgba(72, 114, 184, 0.5);
}

.batch-rename-region-overlay.is-armed::before {
  content: "Drag to define OCR region";
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(70, 107, 172, 0.6);
  border-radius: 10px;
  background: rgba(245, 250, 255, 0.9);
  color: #2b4d74;
  font: 700 0.74rem "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.batch-rename-region-box {
  position: absolute;
  border: 2px solid #3a7cf0;
  border-radius: 8px;
  background: rgba(58, 124, 240, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}
