Definition 1. A binary operation $\cdot:X\times X\to X$, $\cdot:(xy)\mapsto xy$, on a set $X$ will be called a line operation if $$xx=x,\quad xy=yx,\quad (xy)x=y$$ for every $x,y\in X$.
Remark 1. Every set $X$ endowed with a line operation is a commutative quasigroup: for every elements $a,b\in X$, the equation $ax=b$ has a unique solution $x=ab$.
Definition 2. A line operation $\cdot:X\times X\to X$ on a set $X$ is called planar if $$x(yz)=(xy)(xz)=z(y(xz)).$$
Example. Every linear space $X$ over a $3$-element field $F$ carries the planar line operation $\cdot:X\times X\to X$ assigning to every points $x,y\in X$ the unique point $xy\in X$ such that the set $\{x,y,xy\}$ coincides with the line $\{x+f(y-x):f\in F\}$ passing through the points $x,y$ in the $F$-linear space $X$.
Definition 3. A set $X$ endowed with a planar line operation $\cdot:X\times X\to X$ will be called a liner.
A subset $A\subseteq X$ of a liner $(X,\cdot)$ is called flat if $AA=\{xy:x,y\in A\}\subseteq A$. Flat subsets of liners will be called flats. Since the intersection of any family of flats is flat, for every set $B\subseteq X$, the intersection $\overline B$ of all flat subsets of $X$ that contain $B$ is a flat in $X$, called the flat hull of the set in $B$. For a subset $A$ of a liner $(X,\cdot)$ the rank $r(A)$ is the smallest cardinality of a set $B\subseteq X$ whose flat hull $\overline{B}$ contains the set $A$. Flats of rank 2 and 3 in $X$ are called lines and planes in $X$. It can be shown that every line $L$ in $X$ coincides with the set $\{x,y,x y\}$ for any distinct points $x,y\in L$ and every plane $P$ in $X$ coincides with the 9-element set $$\{x,y,z,xy,xz,yz,(yz)x,(xz)y,(xy)z\}$$for some points $x,y,z\in P$.
Question 1. What is the cardinality of liners of rank 4? Is it always equal to 27?
Question 2. What is the cardinality of the free liner with four generators? Is it infinite?
Question 3. Are liners known in the theory of quasigroups, maybe under a different name? Do they belong to some known and well-studied class of quasigroups?
Remark (added in Edit 10.10.2023): The answers to Questions 1--3 are (well-)known (to specialists). Question 1 has the negative answer: there exists a liner of cardinality 81. It was constructed by Hall in 1960. Question 2 also has (or at least seems to have) a negative answer: the cardinality of the free liner on 4 generators is 81. Question 3 has positive answer: liners indeed are known in the theory of quasigroups and have many different names (not only involutive quandles), in particular Hall Triple Systems. The necessary information on Hall Triple Systems can be found in Section 28 of Handbook of Combinatorial Designs. and also in this survey paper of Lucien Beneteau.