#editor:has(.task-batch-editor) {
  width: min(800px, calc(100% - 24px));
}

.task-batch-rows {
  display: grid;
  gap: 10px;
}

.task-batch-row {
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.task-batch-row legend {
  padding-inline: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.task-batch-row-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(8.3rem, 1fr) minmax(0, 0.9fr);
  gap: 10px;
}

.task-batch-row-fields :is(input, select) {
  width: 100%;
  min-width: 0;
}

.task-batch-remove {
  margin-top: 8px;
}

.task-batch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.task-batch-editor button:disabled {
  opacity: .55;
  cursor: default;
}

.task-batch-count {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .task-batch-row-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-batch-title {
    grid-column: 1 / -1;
  }
}
