html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background: #f6f6f6;
	overflow: hidden;
}

#grid {
	display: grid;
	width: 100vw;
	height: 100vh;
	user-select: none;
	touch-action: none;
}

/* Disable transitions during resize */
#grid.resizing .cell {
	transition: none !important;
}

.cell {
	width: 24px;
	height: 24px;
	box-sizing: border-box;

	background: white;
	border: 1px solid #e0e0e0;

	display: flex;
	align-items: center;
	justify-content: center;

	font-family: system-ui, -apple-system, sans-serif;
	font-size: 14px;
	color: #999;

	transition:
		background-color 120ms ease,
		color 120ms ease,
		transform 80ms ease;

	-webkit-user-drag: none;
}

/* subtle hover */
.cell:hover {
	background: #f0f0f0;
}

/* filled */
.cell.filled {
	background: black;
	transform: scale(0.96);
}

/* marked */
.cell.marked {
	background: white;
	color: #aaa;
}