@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 400;
	src: local(''),
			 url('fonts/BarlowRH-Light.woff2') format('woff2'),
			 url('fonts/BarlowRH-Light.woff') format('woff');
}

@font-face {
	font-family: 'Barlow';
	font-style: italic;
	font-weight: 400;
	src: local(''),
			 url('fonts/Barlow-LightItalic.woff2') format('woff2'),
			 url('fonts/Barlow-LightItalic.woff') format('woff');
}

@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 700;
	src: local(''),
			 url('fonts/BarlowRH-Bold.woff2') format('woff2'),
			 url('fonts/BarlowRH-Bold.woff') format('woff');
}

@font-face {
	font-family: 'Barlow';
	font-style: italic;
	font-weight: 700;
	src: local(''),
			 url('fonts/Barlow-BoldItalic.woff2') format('woff2'),
			 url('fonts/Barlow-BoldItalic.woff') format('woff');
}

[hidden] {
	display: none !important;
}

html {
	background: #fff;
	color: #000;
	margin: 0;
	padding: 0;
	overflow-x: clip;
	font-family: 'Barlow', sans-serif;
	font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
	html {
		background: #333;
		color: #fff;
	}
}

body {
	font-size: 1.2em;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	max-width:100vw;
	overflow-x: clip;
}

body>* {
	width: 100%;
	box-sizing: border-box;
}

pre {
	white-space:pre-wrap;
}

img {
	max-width: 100%;
}

a {
	color: hsl(212.7, 67.8%, 29.2%);
	color: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
}

a:hover {
	color: #ee7c28;
	color: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
}

@media (prefers-color-scheme: dark) {
	a {
		color: hsl(var(--hue_0), var(--sat_0), var(--lum_1_high));
	}

	a:hover {
		color: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	}
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
}

h2 {
	padding: 0.25rem;
	background: #386fb6;
	color: #fff;
	position: relative;
	margin-bottom: 1rem;
	font-weight: 500;
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_high));
	color: var(--contrast_0_high);
}

h2:before {
	content: '';
	display: block;
	position: absolute;
	z-index: -1;
	background: #386fb6;
	top: 0;
	bottom: 0;
	left: calc(calc(100vw - 100%) / -2);
	width: 100vw;
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_high));
	color: var(--contrast_0_high);
}

*+h2 {
	margin-top: 4rem;
}

h3 {
	padding: 0.25rem;
	background: hsl(212.7, 67.8%, 29.2%);
	color: #fff;
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	color: var(--contrast_0_low);
}

h4 {
	padding: 0.25rem;
	background: hsl(25, 85%, 55%);
	color: #000;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

table {
	border-collapse: collapse;
	min-width: 100%;
	border: solid 1px #d1d3d4;
}

@media (prefers-color-scheme: dark) {
	table {
		border-color: #4c4c4c;
	}
}

th {
	white-space: nowrap;
}

th, td {
	padding: 0.25em;
	text-align: right;
	border-top: solid 1px #d1d3d4;
	vertical-align: top;
}

@media (prefers-color-scheme: dark) {
	th, td {
		border-color: #4c4c4c;
	}
}

input, select, textarea {
	font: inherit;
	box-sizing: border-box;
	max-width: 100%;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
	width: 100%;
	border: solid 0.125em hsl(212.7, 67.8%, 29.2%);
	border-color: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	border-radius: 0.25rem;
	background: #fff;
	padding: 0.25rem 0.5rem;
	color: #000;
}

@media (prefers-color-scheme: dark) {
	input[type="text"],
	input[type="password"],
	input[type="number"],
	textarea {
		border-color: hsl(var(--hue_0), var(--sat_0), var(--lum_0_high));
		background: #000;
		color: #fff;
	}
}

input[type="range"] {
	width: 100%;
	padding: 0;
	margin: 0;
}

textarea {
	height: 6em;
	max-width: 30em;
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	border: none;
	background: transparent;
	padding: 0;
}

select {
	width: 100%;
}

input:invalid,
textarea:invalid,
.value-invalid {
	border-color: hsl(13.1, 64.6%, 37.6%);
}

@media (prefers-color-scheme: dark) {
	input:invalid,
	textarea:invalid,
	.value-invalid {
		border-color: hsl(8.2, 86.5%, 53.7%);
	}
}

button, select, .button-like {
	border: solid 0.125em hsl(212.7, 67.8%, 29.2%);
	border-radius: 0.25rem;
	padding: 0.25em 0.5em;
	color: #fff;
	font-size: inherit;
	font-family: inherit;
	cursor: pointer;
	min-height: 2em;
	box-sizing: border-box;
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;

	background: hsl(212.7, 67.8%, 29.2%);
	background: -moz-linear-gradient(top, hsl(213.8, 53.8%, 46.7%) 0%, hsl(212.7, 67.8%, 29.2%) 100%);
	background: -webkit-linear-gradient(top, hsl(213.8, 53.8%, 46.7%) 0%,hsl(212.7, 67.8%, 29.2%) 100%);
	background: linear-gradient(to bottom, hsl(213.8, 53.8%, 46.7%) 0%,hsl(212.7, 67.8%, 29.2%) 100%);

	border-color: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	background: -moz-linear-gradient(top, hsl(var(--hue_0), var(--sat_0), var(--lum_0_high)) 0%, hsl(var(--hue_0), var(--sat_0), var(--lum_0_low)) 100%);
	background: -webkit-linear-gradient(top, hsl(var(--hue_0), var(--sat_0), var(--lum_0_high)) 0%,hsl(var(--hue_0), var(--sat_0), var(--lum_0_low)) 100%);
	background: linear-gradient(to bottom, hsl(var(--hue_0), var(--sat_0), var(--lum_0_high)) 0%,hsl(var(--hue_0), var(--sat_0), var(--lum_0_low)) 100%);
	color: var(--contrast_0_low);
}

button svg {
	vertical-align: text-bottom;
}

.button-like {
	line-height: 1.8;
	padding: 0 0.5em;
}

.button-like:hover {
	color: #fff;
}

optgroup {
	font-family: inherit;
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_high));
	color: var(--contrast_0_high);
	font-weight: 400;
}

option {
	font-family: inherit;
	background: hsl(212.7, 67.8%, 29.2%);
	color: #fff;
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	color: var(--contrast_0_low);
}

button:disabled, input:disabled, select:disabled {
	border: solid 0.125em hsl(225, 1.8%, 43.5%);
	color: hsl(225, 1.8%, 10%);
	background: hsl(225, 1.8%, 80%);
	background: -moz-linear-gradient(top, hsl(225, 1.8%, 80%) 0%, hsl(225, 1.8%, 40%) 100%);
	background: -webkit-linear-gradient(top, hsl(225, 1.8%, 80%) 0%,hsl(225, 1.8%, 40%) 100%);
	background: linear-gradient(to bottom, hsl(225, 1.8%, 80%) 0%,hsl(225, 1.8%, 40%) 100%);
}

@media (prefers-color-scheme: dark) {
	button:disabled, input:disabled, select:disabled {
		color: hsl(225, 1.8%, 0%);
		background: hsl(225, 1.8%, 60%);
		background: -moz-linear-gradient(top, hsl(225, 1.8%, 60%) 0%, hsl(225, 1.8%, 30%) 100%);
		background: -webkit-linear-gradient(top, hsl(225, 1.8%, 60%) 0%,hsl(225, 1.8%, 30%) 100%);
		background: linear-gradient(to bottom, hsl(225, 1.8%, 60%) 0%,hsl(225, 1.8%, 30%) 100%);
	}
}

button.no-style {
	border: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
	min-height: 0;
	display: block;
	background: transparent;
	text-align: inherit;
	font-weight: 500;
}

ol.form {
	padding: 0;
	list-style: none;
	max-width: 41em;
	margin: 0 auto;
}

ol.form>li {
	margin: 0.5rem 0;
}

ol.form label {
	font-weight: bold;
}

ol.form .desc {
	margin: 0;
	font-size: 0.75em;
	font-style: italic;
}

ol.form ul {
	width: 20em;
	list-style: none;
	padding: 0;
}

ol.form li+li {
	margin-top: 0.5em;
}

@media (min-width: 40em) {
	ol.form>li {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
	}

	ol.form .label-block {
		width: calc(100% - 21em);
		text-align: right;
		margin-right: 0.5em;
	}

	ol.form input,
	ol.form textarea,
	ol.form select {
		flex: 1 1 0;
		margin-left: 0.5em;
	}

	ol.form input[type="checkbox"],
	ol.form input[type="radio"] {
		width: auto;
	}

	ol.form > li > input[type="checkbox"] {
		flex: 0 0 auto;
		margin-right: auto;
	}

	ol.form > li > * + button {
		margin-left: 0.5em;
	}
}

::placeholder {
	color: inherit;
	font-style: oblique;
	opacity: 0.6;
}

::-moz-selection,
::selection {
	background: hsl(25, 85%, 55%);
	color: #fff;
	text-shadow: none;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

@media (prefers-color-scheme: dark) {
	::-moz-selection,
	::selection {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		color: var(--contrast_1_low);
	}
}

.popup {
	position: relative;
	background: #fff;
	color: #000;
	width: auto;
	max-width: 20em;
	margin: 1rem auto;
}

@media (prefers-color-scheme: dark) {
	.popup {
		background: #333;
		color: #fff;
	}
}

.popup h2 {
	margin-bottom: 0;
	padding: 0 2.5rem 0 0.5rem;
}

.popup h2::before {
	content: none;
}

.popup-content {
	padding: 0 1rem;
	overflow: clip;
	display: flow-root;
}

.panel {
	margin: 0;
	padding: 0;
}

.panel-header {
	padding: 0 0 1rem;
}

.collapsing .panel-header {
	cursor: pointer;
}

.panel-header h2 {
	margin-bottom: 0;
}

.panel-content {
	padding: 1em 0 1em;
}

.panel-header + .panel-content {
	padding-top: 0;
}

.panel-content.full-width {
	padding: 0 1em 1em;
	margin: 0 calc(50% - 50vw);
}

.panel-content > h3 {
	margin: 1rem 0;
}

.control-set {
	text-align: center;
}

.control-set > * {
	margin-bottom: 0.5rem;
}

.control-set > * + * {
	margin-left: 0.5rem;
}

.inline-control {
	margin: 0.5rem 0;
}

.table-wrap {
	overflow-x: auto;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	line-height: normal;
	padding: 15px 23px 14px;
	left: 5px;
	top: 5px;
	text-decoration: none;
	text-transform: none;
	width: auto;
	z-index: 100000;
}

.priority-message-interrupt {
	border: solid 0.125em hsl(13.1, 64.6%, 37.6%);
}

.priority-message-interrupt h2 {
	background: hsl(8.2, 86.5%, 53.7%);
	background: -moz-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%, hsl(13.1, 64.6%, 37.6%) 100%);
	background: -webkit-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
	background: linear-gradient(to bottom, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
}

.mfp-close {
	color: #fff;
	width: 2.4rem;
	height: 1em;
	font-size: 1.2rem;
	line-height: 1;
	font-family: inherit;
	font-weight: bold;
}

.mfp-close-btn-in .mfp-close {
	color: #fff;
}

#banner-msg {
	border-top: solid 0.125em hsl(23.1, 64.6%, 37.6%);
	background: hsl(25, 85%, 55%);
	color: #000;
	padding: 0.5rem;
	text-align: center;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 900;
	display: none;
	border-bottom-color: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

@media (prefers-color-scheme: dark) {
	#banner-msg {
		border-bottom-color: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		color: var(--contrast_1_low);
	}
}

#banner-msg .message {
	padding: 0 1em;
}

#banner-dismiss {
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1.2rem;
	width: 2rem;
	line-height: 2;
	font-weight: bold;
}

body>header {
	background: #000;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 0.5rem;
	position: relative;
	line-height: 1;
}

#timer-name {
	margin: 0.5rem 0;
	flex: 1 0 0;
	min-width: 12em;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: clip;
	color: #fff;
	text-decoration: none;
}

#timer-name img {
	height: 1em;
	vertical-align: -0.1em;
}

.hamburger {
	display: none;
	padding: 0 2em 0 0;
	margin-right: 0.5rem;
	background: url(image/hamburger.svg) right center no-repeat;
	width: 8rem;
	text-align: right;
	border: none;
	margin-top: 0;
}

/* Top level nav */
nav {
	margin: 0;
	flex: 0 1 auto;
}

nav>ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

nav>ul>li {
	margin: 0.5rem 1em;
	padding: 0;
}

nav a {
	color: #fff;
	text-decoration: none;
	display: block;
	transition: 0.1s linear all;
}

nav .extra {
	margin-left: auto;
}

/* Dropdowns */
nav>ul>li>ul {
	position: absolute;
	top: 1.4em;
	right: -9999px;
	opacity: 0;
	transition: 0.1s linear opacity;
	min-width: 18em;
	z-index: 1000;
	background: #000;
	color: #fff;
}

nav>ul>li {
	position: relative;
}

/* Top level nav items */
nav>ul>li > a {
	text-decoration: none;
}

/* Top level hover state, preserve hover state when hovering dropdown  */
nav>ul>li:hover>ul,
nav>ul>li:focus>ul,
ul.show-menu {
	right: 0;
	opacity: 0.99;
}

nav>ul>li>ul li {
	position: static;
}

@media (max-width: 60em){
	nav {
		margin: 0;
	}

	#timer-name {
		width: calc(100% - 9rem);
		min-width: 0;
	}
	.hamburger {
		display: block;
	}

	.nav-over .hamburger {
		background: url(image/close.svg) right center no-repeat;
	}

	#nav-main {
		display: none;
		position: absolute;
		z-index: 100;
		left: 0;
		right: 0;
		background: #000;
		top: 2.4rem;
		border-top: solid 1px #fff;
	}

	#nav-main li {
		width: 100%;
		margin: 0.5em;
	}

	.nav-over #nav-main {
		display: block;
	}

	nav>ul>li>ul {
		position: static;
		opacity: 1;
		min-width: 15em;
	}

	.extra>a {
		display: none;
	}
}

@media (max-width: 20em){
	#timer-name {
		flex: 0 0 1.2em;
	}

	.hamburger {
		width: calc(100% - 3.2em);
	}
}

.extra ul {
	border-top: solid 1px #fff;
	padding: 0.5em 1em;
	list-style: none;
}

.extra li {
	margin: 0.5em 0;
}

.admin-hide {
	display: none;
}

main {
	padding: 0 0.5em 1em;
	max-width: 59em;
	margin: 0 auto;
}

/* Socket status */

.socket-warning {
	text-align: center;
	padding: 1rem 0.25rem;
	border: solid 0.125em hsl(13.1, 64.6%, 37.6%);
	background: hsl(8.2, 86.5%, 53.7%);
	background: -moz-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%, hsl(13.1, 64.6%, 37.6%) 100%);
	background: -webkit-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
	background: linear-gradient(to bottom, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
	color: #fff;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 10000;
}

/* Home */

.page-home .header h1 {
	text-align: center;
	font-size: 1em;
	margin: 1rem 0;
}

.page-home .header h1 img {
	margin: 0 auto;
	padding: 0 3%;
	max-width: 94%;
	max-height: 40vw;
	width: auto;
	height: auto;
}

main.page-home {
	max-width: 35em;
}

.page-home h3 {
	font-size: 2em;
	padding: 0;
	color: inherit;
	background: transparent;
}

.page-home #description {
	margin: 1em 0;
}

.page-home .home-menu {
	max-width: 20em;
	margin: 1em auto;
	padding: 0;
	list-style: none;
}

.page-home .home-menu li {
	margin: 0.5em 0;
	padding: 0;
}

.page-home .home-menu li a {
	width: 100%;
	font-size: 1.2em;
	text-align: center;
}

@media (max-width: 30em) {
	.page-home .home-menu li a {
		font-size: 1em;
	}
}

/* Race */
.timing-clock {
	font-size: 3rem;
	background: #000;
	color: #fff;
	border-radius: 0.5rem;
	padding: 0.25em 0;
	display: block;
	text-align: center;
	font-weight: bold;
	margin: 0.5rem 0;
	position: relative;
}

.race-running .timing-clock {
	background: hsl(92.7, 67.8%, 29.2%);
}

.race-stopped .timing-clock {
	background: #9e3d22;
}

.timing-clock.staging {
	background: hsl(25, 85%, 55%);
	color: #000;
}

.timing-clock .warning {
	position: absolute;
	left: 0.25em;
	font-size: 1.2rem;
	text-align: left;
}

#next-round {
	white-space: nowrap;
	display: inline-block;
}

.round {
	margin-bottom: 1rem;
}

.race-results {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.25rem;
	justify-content: center;
}

.leaderboard .pilot {
	text-align: left;
}

.node {
	box-sizing: border-box;
	min-width: 7em;
	max-width: 24em;
	margin: 0.5rem 0;
	padding: 0 0.25rem;
	flex: 1 0 7em;
	align-self: flex-start;
}

.node-controls {
	margin-top: 0.25em;
}

.enter-exit-control {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0.25em -0.25em;
	flex-wrap: wrap;
	font-size: 1rem;
}

.enter-exit-control > *{
	margin: 0.25em;
}

.enter-exit-control label {
	text-align: left;
	flex: 1 0;
}

.enter-exit-control input {
	width: 4em;
}

.enter-exit-control button {
	margin-left: auto;
}

.node-controls .catch-passes {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin: 0.25em -0.25em;
}

.catch-pass {
	margin: 0.25em;
}

#schedule_m {
	width: 4em;
	text-align: right;
}

#schedule_s {
	width: 3em;
	text-align: right;
}

@media (max-width: 42em) {
	.compact-field input {
		width: 100%;
	}
}

@media (max-width: 137em) {
	.node:first-child:nth-last-child(16),
	.node:first-child:nth-last-child(16) ~ .node {
		flex: 0 auto;
		width: 12.5%;
	}
}

@media (max-width: 129em) {
	.node:first-child:nth-last-child(15),
	.node:first-child:nth-last-child(15) ~ .node {
		flex: 0 auto;
		width: 12.5%;
	}
}

@media (max-width: 120em) {
	.node:first-child:nth-last-child(14),
	.node:first-child:nth-last-child(14) ~ .node {
		flex: 0 auto;
		width: 14.2857%;
	}
}

@media (max-width: 112em) {
	.node:first-child:nth-last-child(13),
	.node:first-child:nth-last-child(13) ~ .node {
		flex: 0 auto;
		width: 14.2857%;
	}
}

@media (max-width: 103em) {
	.node:first-child:nth-last-child(12),
	.node:first-child:nth-last-child(12) ~ .node {
		flex: 0 auto;
		width: 16.6667%;
	}
}

@media (max-width: 95em) {
	.node:first-child:nth-last-child(11),
	.node:first-child:nth-last-child(11) ~ .node {
		flex: 0 auto;
		width: 16.6667%;
	}
}

@media (max-width: 86em) {
	.node:first-child:nth-last-child(10),
	.node:first-child:nth-last-child(10) ~ .node {
		flex: 0 auto;
		width: 20%;
	}
}

@media (max-width: 78em) {
	.node:first-child:nth-last-child(9),
	.node:first-child:nth-last-child(9) ~ .node {
		flex: 0 auto;
		width: 20%;
	}
}

@media (max-width: 69em) {
	.node:first-child:nth-last-child(1) {
		flex: 0 auto;
		width: 100%;
	}

	.node:first-child:nth-last-child(2),
	.node:first-child:nth-last-child(2) ~ .node {
		flex: 0 auto;
		width: 50%;
	}

	.node:first-child:nth-last-child(4),
	.node:first-child:nth-last-child(4) ~ .node,
	.node:first-child:nth-last-child(7),
	.node:first-child:nth-last-child(7) ~ .node,
	.node:first-child:nth-last-child(8),
	.node:first-child:nth-last-child(8) ~ .node,
	.node:first-child:nth-last-child(10),
	.node:first-child:nth-last-child(10) ~ .node,
	.node:first-child:nth-last-child(11),
	.node:first-child:nth-last-child(11) ~ .node,
	.node:first-child:nth-last-child(12),
	.node:first-child:nth-last-child(12) ~ .node,
	.node:first-child:nth-last-child(16),
	.node:first-child:nth-last-child(16) ~ .node {
		flex: 0 auto;
		width: 25%;
	}

	.node:first-child:nth-last-child(13),
	.node:first-child:nth-last-child(13) ~ .node,
	.node:first-child:nth-last-child(14),
	.node:first-child:nth-last-child(14) ~ .node,
	.node:first-child:nth-last-child(15),
	.node:first-child:nth-last-child(15) ~ .node {
		width: 20%;
	}
}

@media (max-width: 53em) {
	.node:first-child:nth-last-child(3),
	.node:first-child:nth-last-child(3) ~ .node,
	.node:first-child:nth-last-child(5),
	.node:first-child:nth-last-child(5) ~ .node,
	.node:first-child:nth-last-child(6),
	.node:first-child:nth-last-child(6) ~ .node,
	.node:first-child:nth-last-child(9),
	.node:first-child:nth-last-child(9) ~ .node,
	.node:first-child:nth-last-child(11),
	.node:first-child:nth-last-child(11) ~ .node,
	.node:first-child:nth-last-child(12),
	.node:first-child:nth-last-child(12) ~ .node {
		flex: 0 auto;
		width: 33.3333%;
	}
}

@media (max-width: 45em) {
	.node:first-child:nth-last-child(13),
	.node:first-child:nth-last-child(13) ~ .node,
	.node:first-child:nth-last-child(14),
	.node:first-child:nth-last-child(14) ~ .node,
	.node:first-child:nth-last-child(15),
	.node:first-child:nth-last-child(15) ~ .node {
		width: 33.3333%;
	}
}

@media (max-width: 36em) {
	.node:first-child:nth-last-child(7),
	.node:first-child:nth-last-child(7) ~ .node,
	.node:first-child:nth-last-child(8),
	.node:first-child:nth-last-child(8) ~ .node,
	.node:first-child:nth-last-child(10),
	.node:first-child:nth-last-child(10) ~ .node,
	.node:first-child:nth-last-child(16),
	.node:first-child:nth-last-child(16) ~ .node {
		width: 33.3333%;
	}

	.node:first-child:nth-last-child(4),
	.node:first-child:nth-last-child(4) ~ .node{
		width: 50%;
	}
}

@media (max-width: 27em) {
	.node:first-child:nth-last-child(3),
	.node:first-child:nth-last-child(3) ~ .node,
	.node:first-child:nth-last-child(5),
	.node:first-child:nth-last-child(5) ~ .node,
	.node:first-child:nth-last-child(6),
	.node:first-child:nth-last-child(6) ~ .node,
	.node:first-child:nth-last-child(7),
	.node:first-child:nth-last-child(7) ~ .node,
	.node:first-child:nth-last-child(8),
	.node:first-child:nth-last-child(8) ~ .node,
	.node:first-child:nth-last-child(9),
	.node:first-child:nth-last-child(9) ~ .node,
	.node:first-child:nth-last-child(10),
	.node:first-child:nth-last-child(10) ~ .node,
	.node:first-child:nth-last-child(11),
	.node:first-child:nth-last-child(11) ~ .node,
	.node:first-child:nth-last-child(12),
	.node:first-child:nth-last-child(12) ~ .node,
	.node:first-child:nth-last-child(13),
	.node:first-child:nth-last-child(13) ~ .node,
	.node:first-child:nth-last-child(14),
	.node:first-child:nth-last-child(14) ~ .node,
	.node:first-child:nth-last-child(15),
	.node:first-child:nth-last-child(15) ~ .node,
	.node:first-child:nth-last-child(16),
	.node:first-child:nth-last-child(16) ~ .node {
		width: 50%;
	}
}

@media (max-width: 19em) {
	.node:first-child:nth-last-child(1),
	.node:first-child:nth-last-child(1) ~ .node,
	.node:first-child:nth-last-child(2),
	.node:first-child:nth-last-child(2) ~ .node,
	.node:first-child:nth-last-child(3),
	.node:first-child:nth-last-child(3) ~ .node,
	.node:first-child:nth-last-child(4),
	.node:first-child:nth-last-child(4) ~ .node,
	.node:first-child:nth-last-child(5),
	.node:first-child:nth-last-child(5) ~ .node,
	.node:first-child:nth-last-child(6),
	.node:first-child:nth-last-child(6) ~ .node,
	.node:first-child:nth-last-child(7),
	.node:first-child:nth-last-child(7) ~ .node,
	.node:first-child:nth-last-child(8),
	.node:first-child:nth-last-child(8) ~ .node,
	.node:first-child:nth-last-child(8),
	.node:first-child:nth-last-child(8) ~ .node,
	.node:first-child:nth-last-child(9),
	.node:first-child:nth-last-child(9) ~ .node,
	.node:first-child:nth-last-child(10),
	.node:first-child:nth-last-child(10) ~ .node,
	.node:first-child:nth-last-child(11),
	.node:first-child:nth-last-child(11) ~ .node,
	.node:first-child:nth-last-child(12),
	.node:first-child:nth-last-child(12) ~ .node,
	.node:first-child:nth-last-child(13),
	.node:first-child:nth-last-child(13) ~ .node,
	.node:first-child:nth-last-child(14),
	.node:first-child:nth-last-child(14) ~ .node,
	.node:first-child:nth-last-child(15),
	.node:first-child:nth-last-child(15) ~ .node,
	.node:first-child:nth-last-child(16),
	.node:first-child:nth-last-child(16) ~ .node {
		width: 100%;
	}
}

.node h3,
.node h4,
.node h5 {
	padding: 0.25rem;
	background: hsl(25, 85%, 55%);
	color: #000;
	white-space: nowrap;
	overflow: clip;
	font-size: 1rem;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

@media (prefers-color-scheme: dark) {
	.node h3,
	.node h4,
	.node h5 {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		color: var(--contrast_1_low);
	}
}

.node h5 {
	background: #9e3d22;
	color: #fff;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
	color: var(--contrast_1_low);
}

@media (prefers-color-scheme: dark) {
	.node h5 {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
		color: var(--contrast_1_high);
	}
}

.datarow {
	font-size: 1rem;
}

.datarow td:first-child {
	text-align: left;
}

.item-blocks select,
.item-blocks input {
	flex: 1;
	min-width: 0;
}

.item-blocks .set_method {
	flex: 0 0 5em;
	margin-right: auto;
}

.item-blocks .set_rank {
	flex: 0 0 5em;
}

.item-blocks .unlock {
	flex: 0 0 auto;
	width: 2em;
}

.unlock svg {
	height: 1em;
}

.item-blocks .duplicate {
	flex: 0 0 auto;
}

.page-rounds .node table {
	margin-top: 0;
}

.race-results h4 {
	overflow: clip;
}

.race-header {
	margin: 0.25rem -0.125rem 0;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.race-header>* {
	margin: 0 0.125rem 0.25rem;
}

#heat_list {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}

#heat_list>li {
	margin: 1em 0;
	padding: 0;
}

#heat_list ol.heats {
	padding-top: 1em;
}

.heats {
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.25em;
}

.heats>li {
	width: calc(20% - 0.5em);
	margin: 0 0.25em 0.5em;
	padding: 0;
	box-sizing: border-box;
}

.heats h3 {
	position: relative;
}

@media (max-width: 68em){
	.heats>li {
		width: calc(25% - 0.5em);
	}
}

@media (max-width: 48em){
	.heats>li {
		width: calc(33.3333% - 0.5em);
	}
}

@media (max-width: 36em){
	.heats>li {
		width: calc(50% - 0.5em);
	}
}

@media (max-width: 23em){
	.heats>li {
		width: 100%;
	}
}

.page-format ol.heats {
	margin: 1rem 0;
}

.page-format .heats>li {
	position: relative;
	width: calc(33.3333% - 0.5em);
}

.page-format .heats>li>h4,
.page-format .heats>li>ol {
	flex-basis: 100%;
}

.page-format .heats>li>.set_heat_name {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 4.25rem);
	background: transparent;
	border: transparent;
	color: var(--contrast_1_high);
	font-weight: bold;
}

.page-format .heats>li>h4 {
	color: transparent;
	font-size: 1.17em;
}

@media (max-width: 54em){
	.page-format .heats>li {
		width: calc(50% - 0.5em);
	}
}

@media (max-width: 35em){
	.page-format .heats>li {
		width: 100%;
	}
}

.pilots .new-pilot-container,
.new-class-container,
.heats .new_heat_container {
	display: flex;
	align-items: center;
	justify-content: center;
	border: dotted 0.125em #d1d3d4;
}

.new-pilot-container>button,
.new-class-container>button,
.new_heat_container>button {
	margin: 1rem;
}

@media (prefers-color-scheme: dark) {
	.pilots .new-pilot-container,
	.new-class-container,
	.heats .new_heat_container {
		border-color: #4c4c4c;
	}
}

.heats>li {
	border: solid 0.0625em #d1d3d4;
}

@media (prefers-color-scheme: dark) {
	.heats>li {
		border-color: #4c4c4c;
	}
}

.heats ol,
.heats ul {
	font-size: 1rem;
	padding: 0.5rem 0.5rem 0;
	list-style: none;
	border-top: none;
}

.heats ol li,
.heats ul li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 0.5rem;
}

.heats .channel-block {
	width: 2.5em;
	margin-right: 0.5rem;
	position: relative;
}

.heats .channel-block .fr {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
}

@media (pointer: coarse), (hover: none) {
	.heats .channel-block:focus::after,
	.heats .channel-block:hover::after {
		content: attr(title);
		position: absolute;
		z-index: 10;
		left: calc(100% - 1px);
		color: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		background-color: var(--contrast_1_low);
		border: solid 1px hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		padding: 0.25rem;
	}
	@media (prefers-color-scheme: dark) {
		.heats .channel-block:focus::after,
		.heats .channel-block:hover::after {
			color: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
			background-color: var(--contrast_1_high);
			border: solid 1px hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
		}
	}
}

.heats .pilot-name {
	flex: 1;
}

.heats label.auto_frequency {
	margin: 0.25rem;
	display: block;
}

.pilots {
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.25em;
}

.pilots li {
	width: calc(20% - 0.5em);
	margin: 0 0.25em 0.5em;
	padding: 0.25rem;
	border: solid 0.0625em #d1d3d4;
	border-radius: 0.5rem;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
}

@media (prefers-color-scheme: dark) {
	.pilots li {
		border-color: #4c4c4c;
	}
}

@media (max-width: 68em){
	.pilots li {
		width: calc(25% - 0.5em);
	}
}

@media (max-width: 48em){
	.pilots li {
		width: calc(33.3333% - 0.5em);
	}
}

@media (max-width: 36em){
	.pilots li {
		width: calc(50% - 0.5em);
	}
}

@media (max-width: 23em){
	.pilots li {
		width: 100%;
	}
}

.pilots li .callsign {
	flex-basis: 100%;
}

.pilots li .name {
	flex-basis: 100%;
	font-size: 0.75em;
	color: hsl(213.8, 53.8%, 46.7%);
	color: hsl(var(--hue_0), var(--sat_0), var(--lum_0_high));
}

.pilot_attr {
	margin:0.25rem 0;
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
}

.pilot_attr .desc {
	margin: 0;
	font-size: 0.75em;
	font-style: italic;
}

.pilot_attr input:not([type="checkbox"]) {
	flex-basis: 100%;
}

.pilot_attr [type="checkbox"] {
	order: -1;
	flex: 0 1 auto;
	margin-right: 0.5rem;
}

@media (max-width: 45em) {
	.responsive-wrap th {
		font-size: 0.75em;
	}
}

@media (max-width: 38em) {
	.responsive-wrap {
		font-size: 1rem;
		overflow: auto;
	}
	.responsive-wrap th {
		font-size: 0.75em;
	}
	.responsive-wrap .behind {
		display: none;
	}
}

.page-heats .race_classes>ol {
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin: 0 -0.25em;
}

.page-heats .race_classes>ol>li {
	width: calc(33.3333% - 0.5em);
	margin: 0 0.25em 0.5em;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.race_formats>ul {
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin: 0 -0.25em;
}

#unclassified_heats>ol,
.race_classes>ol {
	padding: 0;
	list-style: none;
}

#unclassified_heats>ol>li,
.race_classes>ol>li {
	margin: 1rem 0;
	position: relative;
}

.actions {
	position: absolute;
	top: 0.25rem;
	right: 0.25em;
	font-size: 0.9rem;
	z-index: 90;
}

.actions button {
	margin-left:0.5em;
	font-weight: bold;
}

@media(min-width:30em) {
	.page-format .race_classes>ol>li {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 0.5rem;
		column-gap: 0.75rem;
	}

	.race_classes h3 {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.race_classes .set_race_class_name {
		grid-column: 1 / -1;
		grid-row: 1;
		max-width: calc(100% - 4.25rem);
	}

	.race_classes .set_race_class_description {
		grid-column: 1;
		grid-row: 2 / span 4;
		height: 100%;
	}

	.race_classes .field-format {
		grid-column: 2;
		grid-row: 2;
	}

	.race_classes .field-ranking {
		grid-column: 2;
		grid-row: 3;
	}

	.race_classes .field {
		display: flex;
		align-items: center;
	}

	.race_classes .field label {
		flex: 0 0 33%;
	}

	.race_classes .field :nth-child(2) {
		flex: 1;
	}

	.race_classes .field :not(:first-child) {
		margin-left: 0.5em;
	}

	.race_classes .field-rounds {
		grid-column: 2;
		grid-row: 4;
	}

	.race_classes .field-advance {
		grid-column: 2;
		grid-row: 5;
	}

	.race_classes .heats {
		grid-column: 1 / -1;
		grid-row: 6;
	}
}

.race_classes h3 {
	/* position: sticky;
	top: 0;
	z-index: 100; */
}

.race_classes h3>button,
.race_classes .heats h4>button,
#unclassified_heats .heats h4>button {
	position: absolute;
	right: 0.25em;
	font-size: 0.8rem;
}

.race_formats>ul>li {
	width: calc(33.3333% - 0.5em);
	margin: 0 0.25em 0.5em;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.race_classes>ol>li>h3,
.race_classes>ol>li>.set_race_class_name,
.race_classes>ol>li>.set_race_class_description,
.race_formats>ul>li>h3 {
	flex-basis: 100%;
}

.page-format .race_classes h3 {
	color: transparent;
}

.race_classes>ol>li>.set_race_class_name {
	background: transparent;
	border: transparent;
	color: var(--contrast_0_low);
	font-weight: bold;
}

.race_classes>ol>li>*,
.race_formats>ul>li>* {
	flex: 1;
}

.race_classes>ol>li>.duplicate_class {
	flex: 0;
}

@media (max-width: 30em){
	.race_classes>ol>li,
	.race_formats>ul>li {
		width: 100%;
	}
}

.class-info,
.format-info {
	border: solid 0.0625em #d1d3d4;
	border-top: none;
	padding: 0 1em;
	overflow: clip;
}

@media (prefers-color-scheme: dark) {
	.class-info,
	.format-info {
		border-color: #4c4c4c;
	}
}

.class-info .description {
	margin: 0.5em 0;
	padding-bottom: 1em;
	border-bottom: solid 0.0625em #d1d3d4;
}

@media (prefers-color-scheme: dark) {
	.class-info .description {
		border-color: #4c4c4c;
	}
}

.format-info {
	padding: 1em;
	list-style: none;
}

.format-info>li {
	display: flex;
	flex-wrap: wrap;
}

.format-info .label {
	font-weight: 700;
	margin-right: 0.25em;
}

.format-info .label::after {
	content: ':';
}

.format-info .value {
	text-align: right;
	margin-left: auto;
}

.event-leaderboard {
	margin-bottom: 1em;
}

.node-list {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.25rem;
	justify-content: center;
}

.simulate_lap {
	font-size: 1rem;
}

.lap_0 {
	background: #eee;
}

@media (prefers-color-scheme: dark) {
	.lap_0 {
		background: #666;
	}
}

.from_start {
	display: block;
	font-size: 0.75em;
}

.after-time-expired {
	background: #eee;
}

@media (prefers-color-scheme: dark) {
	.after-time-expired {
		background: #666;
	}
}

.late-lap {
	text-decoration: line-through;
}

.lap-deleted {
	background: #d1d3d4;
}

@media (prefers-color-scheme: dark) {
	.lap-deleted {
		background: #4c4c4c;
	}
}

@media (prefers-color-scheme: dark) {
	.lap_split {
		color: #999;
	}
}

.restore_deleted_lap {
	float: left;
}

.btn-danger {
	border: solid 0.125em hsl(13.1, 64.6%, 37.6%);
	background: hsl(8.2, 86.5%, 53.7%);
	background: -moz-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%, hsl(13.1, 64.6%, 37.6%) 100%);
	background: -webkit-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
	background: linear-gradient(to bottom, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
	color: #fff;
}

.btn-warning {
	border: solid 0.125em hsl(23.1, 64.6%, 37.6%);
	background: hsl(41.1, 86.2%, 54.5%);
	background: -moz-linear-gradient(top, hsl(41.1, 86.2%, 54.5%) 0%, hsl(23.1, 64.6%, 37.6%) 100%);
	background: -webkit-linear-gradient(top, hsl(41.1, 86.2%, 54.5%) 0%,hsl(23.1, 64.6%, 37.6%) 100%);
	background: linear-gradient(to bottom, hsl(41.1, 86.2%, 54.5%) 0%,hsl(23.1, 64.6%, 37.6%) 100%);
	color: #000;
}

.rssi-graph {
	width: 100%;
	height: 10rem;
	background: #000;
	position: relative;
}

.rssi-graph.page {
	height: 3rem;
}

.rssi-graph canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.rssi-graph button {
	position: absolute;
	bottom: 0.25em;
	left: 0.25em;
	color: #fff;
	z-index: 1;
	background: transparent;
	border: none;
}

.graph-key {
	background: #000;
	color: #fff;
	padding: 0.5em 0;
	border-radius: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	font-size: 0.75em;
}

.graph-key li {
	display: inline-block;
	margin: 0 0.5em;
	text-align: center;
}

.graph-key li span {
	display: inline-block;
	width: 0.75em;
	height: 0.75em;
	border-radius: 0.25rem;
}

.crossing {
	text-align: center;
	color: #fff;
	background: hsl(212.7, 67.8%, 29.2%);
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	color: var(--contrast_0_low);
}

.crossing.is-crossing {
	background: hsl(25, 85%, 55%);
	color: #000;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

.min-lap-warning {
	background: hsl(25, 85%, 55%);
	color: #000;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

@media (prefers-color-scheme: dark) {
	.min-lap-warning {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		color: var(--contrast_1_low);
	}
}

.page-marshal td:not(:last-child) {
	cursor: pointer;
}

.invalid {
	opacity: 0.2;
	pointer-events: none;
}

.lap-highlighted td:first-child::before {
	content: "\25B6 ";
	font-size: 0.75em;
	vertical-align: top;
	margin-right: 0.25rem;
	color: hsl(var(--hue_0), var(--sat_0), var(--lum_0_high));
	background: var(--contrast_0_high);
	border-radius: 2.5em;
	padding: 0.25em;
	line-height: 1;
	position: absolute;
	display: block;
	width: 1em;
	height: 1em;
}

@media (prefers-color-scheme: dark) {
	.lap-highlighted td:first-child::before {
		color: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
		background: var(--contrast_0_low);
	}
}

.node-warnings {
	text-align: left;
	background: hsl(25, 85%, 55%);
	color: #000;
	margin: 0;
	padding: 0.5em 0.5em 0.5em 1.5em;
	font-size: 1rem;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

@media (prefers-color-scheme: dark) {
	.node-warnings {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		color: var(--contrast_1_low);
	}
}

.node-warnings li+li {
	margin-top: 0.5em;
}

.page-race tr.lap td:first-child {
	display: none;
}

.channel-block {
	background: #9e3d22;
	color: #fff;
	display: inline-block;
	line-height: 1;
	vertical-align: top;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
	color: var(--contrast_1_low);
}

@media (prefers-color-scheme: dark) {
	.channel-block {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
		color: var(--contrast_1_high);
	}
}

.channel-block .ch {
	font-size: 1.2em;
	font-weight: bold;
	margin: 0.25rem;
}

.channel-block .fr {
	font-size: 0.75em;
	margin-top: 0;
	margin: 0 0.25rem 0.25rem;
}

.page-race .channel-block {
	display: inline-flex;
	border-radius: 0.25rem;
	flex: 1;
}

.tuning-detail .popup-content {
	padding: 1rem;
}

.page-racepublic h2 {
	margin-top: 0;
}

.control-set select {
	width: auto;
}

.form-note {
	text-align: center;
	font-style: italic;
	margin-bottom: 2em;
}

.form-note.emphasis {
	margin: 1em 0;
	background: #eee;
	overflow: auto;
}

@media (prefers-color-scheme: dark) {
	.form-note.emphasis {
		background: #444;
	}
}

.form-note.emphasis ul {
	padding: 0;
}

.form-note.emphasis li {
	list-style: none;
	margin: 0.5rem 0;
}

th.speak,
td.speak {
	width: 2.2em;
}

.pilot-info-inline {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.25em;
}

.pilot-info-inline:not(:first-of-type) {
	margin-top: 0.25em;
}

.pilot-info-inline button, .delete_pilot {
	margin-left: 0.25em;
}

.pilot-team {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1;
}

.pilot-team label {
	margin-right: 0.5em;
}

.pilots input {
	flex: 1 1 0;
	min-width: 0;
}

.calibration-guide {
	margin-top: 0.5rem;
	max-width: 41em;
	margin: 0 auto;
}

.calibration-guide th,
.calibration-guide td {
	text-align: left;
	font-size: 0.75em;
}

#practice-warning,
.race_status_message {
	text-align: center;
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	font-weight: bold;
}

#practice-warning,
.race_status_message>* {
	margin: 0.5em 1em;
}

.swatch {
	padding: 1em;
	display: inline-block;
}

.primary-color {
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	background: -moz-linear-gradient(top, hsl(var(--hue_0), var(--sat_0), var(--lum_0_high)) 0%, hsl(var(--hue_0), var(--sat_0), var(--lum_0_low)) 100%);
	background: -webkit-linear-gradient(top, hsl(var(--hue_0), var(--sat_0), var(--lum_0_high)) 0%,hsl(var(--hue_0), var(--sat_0), var(--lum_0_low)) 100%);
	background: linear-gradient(to bottom, hsl(var(--hue_0), var(--sat_0), var(--lum_0_high)) 0%,hsl(var(--hue_0), var(--sat_0), var(--lum_0_low)) 100%);
	color: var(--contrast_0_low);
}
.secondary-color {
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
	background: -moz-linear-gradient(top, hsl(var(--hue_1), var(--sat_1), var(--lum_1_high)) 0%, hsl(var(--hue_1), var(--sat_1), var(--lum_1_low)) 100%);
	background: -webkit-linear-gradient(top, hsl(var(--hue_1), var(--sat_1), var(--lum_1_high)) 0%,hsl(var(--hue_1), var(--sat_1), var(--lum_1_low)) 100%);
	background: linear-gradient(to bottom, hsl(var(--hue_1), var(--sat_1), var(--lum_1_high)) 0%,hsl(var(--hue_1), var(--sat_1), var(--lum_1_low)) 100%);
	color: var(--contrast_1_low);
}

button .narrow {
	display: none;
}
button .wide {
	display: inline;
}

@media (max-width: 45em) {
	button .narrow {
		display: inline;
	}
	button .wide {
		display: none;
	}
}

#actions>ul {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

@media(min-width: 42em) {
	#actions>ul {
		grid-template-columns: 1fr 1fr;
	}
}

#actions>ul>li {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
}

.action > select:first-of-type {
	order: -2;
	flex: 1 1 0;
}

.action > .delete-action {
	order: -1;
	flex: 0 0 auto;
}

.action > fieldset {
	flex: 1 1 0;
}

#db-management {
	list-style: none;
	padding: 0;
}

#db-management > * {
	margin: 0.5rem;
	padding: 0.25rem;
	border: solid 0.0625em #d1d3d4;
	border-radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
	#db-management > * {
		border-color: #4c4c4c;
	}
}

#db-management h3 {
	margin-bottom: 0.5rem;
}

@media(min-width: 40em) {
	#db-management {
		display: flex;
		flex-wrap: wrap;
	}

	#db-management > * {
		flex: 0 0 auto;
		width: calc(50% - 2.5rem);
	}
}

@media (max-width: 70em) {
	#db-management ol.form > li {
		display: block;
	}

	#db-management ol.form .label-block {
		width: auto;
		text-align: left;
		margin: 0 0 0.25rem 0;
	}

	#db-management ol.form input,
	#db-management ol.form textarea,
	#db-management ol.form select {
		margin-left: 0;
	}

	#db-management .control-set {
		text-align: left;
	}
}

/* Marshaling */

#race-graph {
	background: #222;
}

#race-display {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.5em;
}

#race-header {
	width: 100%;
	margin: 0 0.5em;
}

#race-view {
	flex: 1 1 24em;
	margin: 0 0.5em 1em;
}

.sidebar-controls {
	flex: 0 1 11em;
	margin: 0 0.5em;
}

.control-block {
	margin: 0 0 1em;
}

.control-block h3 {
	margin: 0 0 0.5em;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
	color: var(--contrast_1_low);
}

.control-block button {
	margin-top: 0.5em;
	display: inline-block;
}

@media (max-width: 48em) {
	.sidebar-controls {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: flex-start;
		flex: 1 1 auto;
		margin: 0 0.25em;
		display: flex;
		flex-wrap: wrap;
	}

	.control-block {
		flex: 0 1 11em;
		margin: 0 0.25em 1em;
	}
}

footer {
	margin-top: auto;
	text-align: center;
	font-size: 0.75em;
}

footer a {
	color: inherit;
}

footer .rh-logo {
	display: inline-block;
	margin: 0 0.25em;
}

footer svg {
	height: 2.5em;
	vertical-align: -0.75em;
}

.page-docs pre {
	background: #eee;
	padding: 1rem;
	overflow: auto;
}

@media (prefers-color-scheme: dark) {
	.page-docs pre {
		background: #222;
	}
}

.LED-color span,
.LED-chase span {
	display: block;
	min-width: 1.2em;
	height: 1.2em;
	margin: 0;
}

.LED-chase span {
	background: url(image/chase.svg) center no-repeat;
}

.led img {
	display: block;
	margin: 0;
}

.callout-items .control-block {
	display: flex;
	gap: 0.5rem;
	width: 20em;
}

.callout-items button {
	margin-top: 0;
}

.callout-items .play_callout {
	order: -1;
}

.vrx-header {
	font-size: 0.8rem;
	padding: 0.25em;
	text-align: center;
	color: #fff;
	background: hsl(212.7, 67.8%, 29.2%);
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	color: var(--contrast_0_low);
}

.vrx-header.has-unlocked {
	background: hsl(25, 85%, 55%);
	color: #000;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

.vrx-list {
	list-style: none;
	padding: 0;
	margin: 1rem -0.5rem;
	display: flex;
	flex-wrap: wrap;
}

.vrx-list>li {
	margin: 0.5rem;
	padding: 0;
	font-size: 0.9rem;
}

.vrx-list td {
	text-align: left;
}

.vrx-list table>tr:first-child>th,
.vrx-list table>tr:first-child>td {
	border-top: 0;
}

#cluster-status>ul {
	list-style: none;
	padding: 0;
	margin: 1rem -0.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#cluster-status>ul>li {
	margin: 0.5rem;
	padding: 0;
	font-size: 0.9rem;
	max-width: 30em;
	padding: 0.5rem 0.5rem 0;
	border: solid 0.0625em #d1d3d4;
	border-radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
	#cluster-status>ul>li {
		border-color: #4c4c4c;
	}
}

.tinytable {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tinytable .label {
	text-align: left;
	font-weight: bold;
}

.tinytable .data {
	text-align: left;
	margin: 0 0 0.25em 1em;
}

@media(min-width: 20em) {
	#cluster-status>ul>li {
		flex: 1 0 23em;
	}

	.tinytable>li {
		display: flex;
		flex-wrap: wrap;
		margin-bottom: 0.5em;
	}

	.tinytable .label {
		flex: 1 1 auto;
		margin-bottom: 0.25em;
	}

	.tinytable .data {
		flex: 1 1 auto;
		text-align: right;
	}
}

button.color-picker {
	width: 2em;
	padding: 0;
	background: transparent;
}

#color-picker {
	padding: 0.5em;
}

#color-picker-swatch {
	width: 100%;
	height: 2em;
	background: hsl(var(--color-picker-hue), var(--color-picker-sat), var(--color-picker-lum));
	margin: 0.5em 0;
}

.heat-plan-result {
	max-width: 32em;
}

.heat-plan td {
	vertical-align: middle;
}

.heat-plan td.calc_to {
	width: 1.1em;
	text-align: center;
}

.heat-plan td.channel {
	max-width: 2.2rem;
}

.heat-plan .channel-block {
	border-radius: 0.25rem;
	background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_low));
	color: var(--contrast_0_low);
}

@media (prefers-color-scheme: dark) {
	.heat-plan .channel-block {
		background: hsl(var(--hue_0), var(--sat_0), var(--lum_0_high));
		color: var(--contrast_0_high);
	}
}

.heat-plan .pilot-name {
	text-align: left;
}

.no-freq .channel-block {
	background-color: #999;
	color: #333;
}

.freq-change .channel-block {
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
	color: var(--contrast_1_low);
}

@media (prefers-color-scheme: dark) {
	.freq-change .channel-block {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
		color: var(--contrast_1_high);
	}
}

.no-pilot .pilot-name {
	opacity: 0.5;
}

#plugin-list>ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#plugin-list>ul>li {
	margin: 0.5rem 0;
	padding: 0.25rem;
	border: solid 0.0625em #d1d3d4;
	border-radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
	#plugin-list>ul>li {
		border-color: #4c4c4c;
	}
}

#plugin-list h3 {
	background: transparent;
	padding: 0;
	color: inherit;
}

#plugin-list li.load-fail {

}

#plugin-list .main-info {
	margin: 0.25rem 0;
	padding: 0.25rem;
}

#plugin-list .author {
	font-size: 0.9rem;
}

#plugin-list .details {
	margin: 0.25rem 0;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
}

#plugin-list .details .description {
	flex-basis: 100%;
	padding: 0.25rem;
}

#plugin-list .details .website,
#plugin-list .details .license {
	font-size: 0.9rem;
	padding: 0.25rem;
}

#plugin-list .status {
	margin: 0.25rem 0;
	padding: 0.25rem;
	font-size: 0.9rem;
	border-radius: 0.25rem;
}

#plugin-list .load-fail .status {
	background: hsl(25, 85%, 55%);
	color: #000;
	background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
}

@media (prefers-color-scheme: dark) {
	#plugin-list .load-fail .status {
		background: hsl(var(--hue_1), var(--sat_1), var(--lum_1_low));
		color: var(--contrast_1_low);
	}
}

@media(min-width:60em) {
	#plugin-list>ul {
	}
	#plugin-list>ul>li {
		display: grid;
		grid-template-columns: 1fr 2fr;
	}
	#plugin-list .main-info {
		grid-column: 1;
	}
	#plugin-list .details {
		grid-column: 2;
	}
	#plugin-list .status {
		grid-row: 2;
		grid-column: 1 / -1;
	}
}

.dialog-content {
	padding: 1rem;
}

.popup .notice {
	text-align: center;
	vertical-align: middle;
	font-weight: bold;
	padding: 0.5rem;
	background: hsl(41.1, 86.2%, 54.5%);
	background: -moz-linear-gradient(top, hsl(41.1, 86.2%, 54.5%) 0%, hsl(23.1, 64.6%, 37.6%) 100%);
	background: -webkit-linear-gradient(top, hsl(41.1, 86.2%, 54.5%) 0%,hsl(23.1, 64.6%, 37.6%) 100%);
	background: linear-gradient(to bottom, hsl(41.1, 86.2%, 54.5%) 0%,hsl(23.1, 64.6%, 37.6%) 100%);
	color: #000;
}

.popup .warning {
	background: hsl(8.2, 86.5%, 53.7%);
	background: -moz-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%, hsl(13.1, 64.6%, 37.6%) 100%);
	background: -webkit-linear-gradient(top, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
	background: linear-gradient(to bottom, hsl(8.2, 86.5%, 53.7%) 0%,hsl(13.1, 64.6%, 37.6%) 100%);
	color: #fff;
}

.dialog-actions {
	display: flex;
	align-items: center;
	justify-content: center;
}

.dialog-actions > * {
	margin: 0.5rem 0.5rem 0;
}

#message-notification {
	position: fixed;
	bottom: 0.5rem;
	left: 0.5rem;
	width: auto;
	z-index: 950;
	padding: 0.5rem;
	min-width: 2em;
	text-align: center;
	border-radius: 2em;
	background-color: hsl(var(--hue_1), var(--sat_1), var(--lum_1_high));
	color: var(--contrast_1_high);
	text-decoration: none;
	min-width: 2em;
	font-weight: bold;
}

#message-center {
	max-width: 40rem;
}

#message-center .popup-content {
	margin-top: 1rem;
}

#message-queue {
	margin: 1rem 0;
	padding: 0;
	list-style: none;
}

#message-queue>li {
	margin: 0.5rem 0;
	padding: 0;
	display: flex;
}

#message-queue>li>button {
	margin-left: auto;
}

.mfp-content #parameters {
	max-width: 43em;
}

/* ************* */
/* Print Styling */
/* ************* */

@media print {
	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group;
	}

	tr, img {
		break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	@page {
		margin: 0.5cm;
	}

	p, h2, h3 {
		orphans: 3;
		widows: 3;
	}

	h2, h3 {
		break-after: avoid;
	}

	hr {
		border-top: solid 0.0625em;
	}

	#banner-msg,
	body>header {
		display: none;
	}

	.panel-content {
		display: block !important;
	}

	.unprinted {
		display: none !important;
	}
}
