* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	cursor: default;
	touch-action: manipulation;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

:root {
	--bg-color: #eaeaea;
	--bg2-color: #fafafa;
	--txt-color: #111;
	--color1: #004882;

	@media (prefers-color-scheme: dark) {
		--bg-color: #000;
		--bg2-color: #222;
		--txt-color: #fff;
	}
}

ul {
	list-style: none;
	overflow: scroll;
}

label {
	font-weight: 500;
}

input[type=file] {
	overflow-x: scroll;
}

body {
	background-color: var(--bg-color);
	color: var(--txt-color);
	min-height: 100vh;
}
body, input, button, textarea {
	font-family: Menlo, monospace;
	font-size: 14px;
	line-height: 1.25em;
}

.flex {
	display: flex;
	flex-wrap: nowrap;
}

.x {
	flex-direction: row;
	gap: 5px;
	padding: 0 10px;
}

.y {
	flex-direction: column;
	gap: 10px;
	padding: 10px;
}

hr {
	border: none;
	box-shadow: none;
	height: 0;
	border-top: 1px solid gray;
}

input,
button {
	padding: 8px 12px;
	border-radius: 0;
	background-color: #222;
	color: #fff;
	border: 2px solid lightgray;
	cursor: pointer;
}

button {
	font-weight: 700;
	text-transform: uppercase;
}

input:hover,
button:hover {
	border-color: var(--color1);
}

button:active, .active {
	background-color: var(--color1) !important;
	border-color: darkorange !important;
}

input[type=file] {
	background-color: transparent;
	color: var(--txt-color);
	border: none;
	padding: 8px;
	background-color: var(--bg-color);
	border: 1px solid transparent;
}

textarea {
	border: 2px solid lightgray;
	padding: 5px;
	cursor: text;
	word-break: break-word;
}

input[type=text], textarea {
	background-color: rgba(255,255,255,.125);
	color: var(--txt-color);
	cursor: text;
}

input.unset {
	background-color: rgba(255,165,0,.25);
}

input[type=checkbox] {
	accent-color: var(--color1);
}

*:disabled {
	pointer-events: none;
	opacity: .5;
	background-color: gray;
	border-color: gray;
}

a {
	color: var(--color1);
	text-decoration: none;
	cursor: pointer;
	text-align: center;
}

p {
	font-size: 14px;
	opacity: .75;
}

header {
	position: fixed;
	z-index: 20;
	top: 0;
	left: 0;
	background-color: var(--bg2-color);
	width: 300px;
	height: 49px;
	border-bottom: 1px solid gray;
	align-items: center;
}

h1 {
	text-transform: uppercase;
	font-size: 1.5em;
	font-weight: 500;
}

.grow {
	flex-grow: 1;
}

footer {
	position: fixed;
	left: 0;
	bottom: 0;
	height: 50px;
	background-color: var(--bg2-color);
	width: 300px;
	padding: 10px;
}

aside {
	position: fixed;
	left: 0;
	top: 50px;
	bottom: 0;
	width: 300px;
	height: calc(100vh - 100px);
	background-color: var(--bg2-color);
	z-index: 20;
	gap: 20px;
}

main {
	width: calc(100vw - 300px);
	margin-left: 300px;
}

form {
	padding: 0 !important;
}

table {
	background-color: var(--bg2-color);
	border-collapse: collapse;
	overflow-x: scroll;
}

tr {
	border: 1px solid gray;
}

thead tr {
	font-weight: 700;
	background-color: #111;
	color: white;
}

ul {
	display: flex;
	flex-flow: column nowrap;
	gap: 1px;
}

li label {
	padding: 8px 0;
	cursor: pointer;
}
.last-clicked {
	background-color: rgba(95,158,160,.25);
	font-weight: 700;
	outline: 1px solid darkorange;
}
thead tr.last-clicked {
	background-color: midnightblue;
}
li:hover,
tr:hover {
	background-color: #cbdbe7;
	color: #000;
}
thead tr:hover {
	background-color: #111;
	color: #cbdbe7;
}

input[type=checkbox] {
	opacity: 0;
}
input[type=checkbox]:checked {
	opacity: 1;
}

li:has(input:checked) {
	background-color: var(--color1);
	color: #fff;
}
li label {
	font-weight: 700;
}

td {
	padding: 3px 6px;
}

.hidden {
	display: none;
}
