Factory Loop
The brief
Normal sudoku rules apply.
Draw a loop, one-cell wide, that moves orthogonally between cells.
Two loop cells may only touch orthogonally if they are directly connected along the loop. Two loop cells may only touch diagonally where they are either side of a corner cell along the loop (ie; the loop doesn't 'touch itself'.)
A green circle is on the loop, and its digit indicates the number of cells in its box that are on the loop.
A red square is NOT on the loop, and its digit indicates the number of cells in its box that are NOT on the loop.
For any two neighbouring cells along the loop, dividing one by the other gives an exact integer (one is a multiple of the other.)