.extract-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
}
.extract-selection, .extract-save, .extract-pages, #extract-preview {
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid #e1e6f0;
  border-radius: 16px;
  background: #f7f9fd;
}
.extract-save { background: #f1f7fa; }
.extract-controls h3, .extract-pages h3 { margin: 0 0 12px; font-size: 17px; }
.extract-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #32405a; }
.extract-field select, #duplicate-copies, #extract-range-row #delete-range {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd5e5;
  border-radius: 9px;
  background: #fff;
  color: #18263b;
  font: inherit;
}
#extract-range-row { display: flex; align-items: end; margin-top: 12px; }
#extract-range-row[hidden] { display: none; }
#extract-range-row .extract-field { flex: 1 1 130px; }
#extract-range-row button { min-height: 40px; }
.extract-save .extract-field + .extract-field { margin-top: 12px; }
.extract-quick { margin-top: 12px; }
.extract-controls .delete-toolbar button { background: #fff; }
.extract-controls .delete-toolbar button:hover { background: #e9efff; }
.extract-combine { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.extract-combine input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: #2854bc; }
.extract-combine small { display: block; margin-top: 5px; color: #54627a; }
.extract-save #delete-note { min-height: 1.5em; margin: 14px 0; }
.extract-run {
  width: 100%;
  min-height: 43px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #254db3;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.extract-run:disabled { background: #dce4f3; color: #4d5f7f; cursor: default; }
.extract-pages, #extract-preview { margin-top: 14px; }
.extract-pages .delete-help { margin: 0 0 14px; }
#delete-workspace:is([data-mode=extract], [data-mode=duplicate]) .delete-card[aria-pressed=true] { border-color: #257859; background: #eefaf4; }
#delete-workspace:is([data-mode=extract], [data-mode=duplicate]) .delete-card[aria-pressed=true] .delete-thumb::after { background: #257859; }
#extract-preview summary { cursor: pointer; font-weight: 700; padding: 2px 0; }
#extract-preview .extract-field { width: min(100%, 220px); margin-top: 14px; }
#extract-preview-content { margin-top: 12px; text-align: center; }
#extract-preview-content canvas { max-width: 100%; height: auto; border: 1px solid #dce2ee; }
@media (max-width: 640px) {
  .extract-controls { grid-template-columns: minmax(0, 1fr); }
}
