On the Subject of Shape Fill

Establish regularity in irregularity and familiarity in the unfamiliar.

Various shapes with various fills will appear on the grid.

All possible shapes and fills that may appear are present in the table below:

Circle
Diamond
Heart
Octagon
Square
Star
Trapezoid
Triangle
Cross
Diagonal
Dots
Empty
Filled
Horizontal
Vertical
X

Each shape and fill is assigned three rules each, for each stage of the module.

For the first stage, every shape except for one and every fill except for one will be present in the grid. Use the missing shape and fill for either the row or column.

Shape rules will always refer to rows. Fill rules will always refer to columns.

Exactly one row or column will obey the discovered rule. Press on the cell in the grid that is found at the intersection for the given row/column.

For the next two stages, the rules to use are determined by the shape and fill you pressed in the previous stage.

Upon successfully completing three stages, the module will disarm.

Shapes

Refer to the rules in these tables based on the determined shape. The first row indicates the rule for the first stage, the second row indicates the rule for the second stage, and the third row indicates the rule for the third stage.

Circle
The row must not contain any squares.
The row must contain exactly three distinct shapes.
The rows immediately above and below this one (wrapping around) must have exactly four or six distinct shapes.
Diamond
The row must contain exactly one heart.
The row must contain either diamonds or octagons, but not both.
The row and the row immediately above (wrapping around) have the same shape count.
Heart
The row must contain exactly two trapezoids.
The row has an equal number of squares and diamonds.
The row and the row two below this one (wrapping around) have a total of seven distinct shapes.
Octagon
The row must not contain either trapezoids or stars.
The row must have both or neither of hearts and triangles.
The row contains exactly two of the following: circles, squares, diamonds.
Square
The row must contain both a diamond and a triangle.
The row must have an even number of distinct shapes.
The row contains two more shapes than the row below it (wrapping around).
Star
The row must contain exactly one circle.
The row contains five different shapes.
The number of total squares, diamonds, and trapezoids in this row must be 3 or 5.
Trapezoid
The row must not contain any octagons.
The row contains either both or neither of circles and octagons.
The row and the row two above this one (wrapping around) have a total of six distinct shapes.
Triangle
The row must contain exactly two squares.
The row contains either both or neither of diamonds and triangles.
The rows two above and two below the current row (wrapping around) have the same number of shapes.

Fills

Refer to the rules in these tables based on the determined fill. The first row indicates the rule for the first stage, the second row indicates the rule for the second stage, and the third row indicates the rule for the third stage.

Cross
The column must not contain any filled fills.
The column must contain exactly three distinct fills.
The columns immediately adjacent to this one (wrapping around) must have exactly four or six distinct fills.
Diagonal
The column must contain exactly one dots fill.
The column must contain either diagonal or empty fills, but not both.
The column and the column immediately left (wrapping around) have the same fill count.
Dots
The column must contain exactly two vertical fills.
The column has an equal number of diagonal and filled fills.
The column and the column two to its right (wrapping around) have a total of seven distinct fills.
Empty
The column must not contain either horizontal or vertical fills.
This column must have both or neither of dots and X fills.
This column contains exactly two of the following: cross, diagonal, filled.
Filled
The column must contain both a diagonal and an X fill.
The column must have an even number of distinct fills.
The column contains two more fills than the column to its immediate right (wrapping around).
Horizontal
The column must contain exactly one cross.
The column contains five different fills.
The number of total filled, diagonal, and vertical fills in this column must be 3 or 5.
Vertical
The column must not contain any empty fills.
The column contains either both or neither of cross and empty fills.
The column and the column two to its left (wrapping around) have a total of six distinct fills.
X
The column must contain exactly two filled fills.
The column contains either both or neither of diagonal and X fills.
The columns two to the right and two to the left (wrapping around) have the same number of fills.