:root {
	--color-smart: #c40027;
	--color-assoc: #70538e;
	--color-stupid: #1c528c;
	--color-smartichoke: #ccddcc;
	--color-duelofwords: #468c0d;
}

body {
	margin: 0;
	background: #ccc;
	font: 400 93.75% "Open Sans",sans-serif; color: #000;
}

h1, h2, h3, h4, h5, h6, h7 {
	font-weight: bold; font-weight: 600;
}
h1 {
	margin: 0 0 1.2rem 0;
	font-size: 1.4em;
}
h1:last-child {
	margin-bottom: 0;
}
h2 {
	font-size: 1.2em;
}
h3 {
	font-size: 1.1em;
}
h1+h2 {
	margin-top: -0.8em;
}
h1.hug,h2.hug,h3.hug {
	margin-bottom: 0;
}

p {
	margin: 1.2em 0 0 0;
}
p:first-child, p.first {
	margin-top: 0 !important;
}
p.label {
	font-size: 0.8125rem; font-weight: 600; text-transform: uppercase;
}
p.label.beta {
	margin-top: 0;
	color: #900;
}

strong {
	font-weight: 700;
}
strong.soft {
	font-weight: 600;
}

blockquote {
	margin: 1.2em 0 0 2em;
}

img {
	max-width: 100%; height: auto;
}

hr {
	margin: 1rem -1rem;
	border: none; border-top: 1px solid #ddd;
}
@media (min-width: 768px) {
	hr {
		margin: 2rem -2rem;
	}
}
hr.inner {
	margin-left: 0; margin-right: 0;
}

input, select, textarea {
	-webkit-appearance: none;
	box-sizing: border-box;
	border-radius: 0;
	font: 400 1rem "Open Sans",sans-serif;
}
input[type="text"], input[type="email"], input[type="password"], textarea {
	width: 100%; margin: 0; padding: 0.75rem;
	background: #fff; /* border: 1px solid #aaa; */ border: none;
}
input[type="file"] {
	max-width: 220px;
}
input[readonly], textarea[readonly], select[readonly] {
	background: #eee; color: #777;
}
select {
	-webkit-appearance: none;
	width: 100%; margin: 0; padding: 0.75rem; padding-right: 2rem;
	background: #fff url(/cdn/i/select.svg) right bottom no-repeat; background-size: 2rem auto; /* border: 1px solid #aaa; border-radius: 0; */ border: none;
}
select::-ms-expand {
	display: none;
}
input[type="checkbox"], input[type="radio"] {
	margin: 0; padding: 0;
	vertical-align: middle;
}
input::placeholder, textarea::placeholder {
	color: #ccc;
}
p+fieldset {
	margin-top: 1rem;
}
fieldset {
	display: block; position: relative;
	padding: 0;
	border: none;
}
/*fieldset .cell {
	display: block; position: relative; box-sizing: border-box;
	width: 100%;
}*/
fieldset .cell {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid #ccc;
}
fieldset .cell.check {
	display: block;
	background: #f9f9f9;
	padding: 0.75rem;
	font-size: 0.875rem; color: #333; white-space: nowrap;
}
fieldset .cell.file {
	border: 1px solid #aaa;
}
fieldset .cell.group {
	border-top: none;
}
fieldset .cell.error {
	border-left: 0.5rem solid #d00;
}
fieldset .cell.error input[type="text"], fieldset .cell.error input[type="email"], fieldset .cell.error input[type="password"], fieldset .cell.error textarea, fieldset .cell.error select {
	border-left: none;
}
fieldset .cell.check input[type="checkbox"], fieldset .cell.check input[type="radio"] {
	vertical-align: middle;
}
/* fieldset .cell label.text {
	display: block; position: absolute;
	left: 0; top: 0; padding: 0.5rem 0.75rem;
	font-size: 0.9rem; color: #333;
} */
fieldset .cell label.text {
	flex: 0 0 fit-content;
	padding: 0.5rem 0.75rem;
	background: #f9f9f9; border-bottom: 1px solid #ddd;
	font-size: 0.875rem; color: #333;
}
fieldset .cell.disabled label.text {
	color: #999;
}
fieldset .cell label.check {
	display: inline-block;
	margin: 0 0 0 0.5em;
	white-space: normal;
	cursor: pointer;
}
/* fieldset .cell input[type="text"], fieldset .cell input[type="email"], fieldset .cell input[type="password"], fieldset .cell textarea, fieldset .cell select {
	padding-top: 2rem;
} */
fieldset .cell input[type="text"], fieldset .cell input[type="email"], fieldset .cell input[type="password"], fieldset .cell textarea, fieldset .cell select {
	flex: 1 1 auto;
}
fieldset .cell .filewrap {
	display: block;
	padding: 2rem 0.75rem 0.75rem 0.75rem;
}
fieldset .overlay {
	display: inline-block; position: relative;
	width: 20px; height: 20px;
	vertical-align: top;
	cursor: pointer;
}
fieldset .overlay input {
	position: absolute; z-index: -1; opacity: 0;
}
fieldset .overlay .check {
	position: absolute; box-sizing: border-box;
	left: 0; top: 0; width: 20px; height: 20px;
	background: #fff; border: 1px solid #ccc;
}
fieldset .overlay.radio .check {
	border-radius: 10px;
}
fieldset .overlay:hover input ~ .check,
fieldset .overlay input:focus ~ .check {
	outline: 5px auto -webkit-focus-ring-color;
}
fieldset .overlay input:disabled ~ .check {
	opacity: 0.33;
	background: #ccc;
	pointer-events: none;
}
fieldset .overlay .check::after {
	content: "";
	display: none; position: absolute;
	left: 3px; top: 3px; width: 12px; height: 12px;
	background: #666;
}
fieldset .overlay.radio .check::after {
	border-radius: 6px;
}
fieldset .overlay input:checked ~ .check::after {
	display: block;
}
fieldset .overlay input:disabled ~ .check::after {
	background: #777;
}
.form_submit {
	display: block; position: relative;
	text-align: right;
}
.form_submit button {
	margin: 1rem 0 0 1rem;
}

button {
	-webkit-appearance: none;
	margin: 0; padding: 0;
	background: none; border: none;
	font-size: 1rem;
}


a {
	color: #000; text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

ul.sq {
	list-style: square;
	margin: 1.2rem 0; padding-left: 1.5rem;
}
ul.sq:first-child {
	margin-top: 0;
}
ul.sq:last-child {
	margin-bottom: 0;
}
ul.sq.hug {
	margin-top: 0.6rem;
}
ul.sq li {
	margin-top: 0.6rem;
}

table {
	width: 100%; max-width: 100%; min-width: 20%; margin: 1.2rem auto;
}
table:first-child {
	margin-top: 0;
}
table:last-child {
	margin-bottom: 0;
}
table th {
	padding: 0.75em;
	background: #eee; border: 1px solid #ccc;
	font-weight: bold; text-align: center;
}
table.ruled th {
	padding-top: 0;
	background: none; border: none; border-bottom: 1px solid #999;
	vertical-align: bottom;
}
table.striped th {
	background: #ddd; border: none;
}
table td {
	padding: 0.75em;
	border: 1px solid #ccc;
	vertical-align: top;
}
table.ruled td {
	border: none; border-bottom: 1px solid #ccc;
}
table.ruled tr:first-child td {
	border-top: 1px solid #ccc;
}
table.ruled tr.floor td {
	border-bottom: 2px solid #999;
}
table.boxed tr {
	border-left: 1px solid #ccc; border-right: 1px solid #ccc;
}
table.boxed th, table.boxed td {
	border-left: none; border-right: none;
}
table.striped td {
	border: none;
}
table.striped tr:nth-child(2n+0) td {
	background: #eee;
}
table.striped tr:nth-child(2n+1):last-child td {
	border-bottom: 2px solid #eee;
}
table th.disabled, table td.disabled {
	background: #ddd;
	color: #bbb;
}
table th.border_left, table td.border_left {
	border-left: 1px solid #ccc;
}
table th.border_right, table td.border_right {
	border-right: 1px solid #ccc;
}
table.admin .icon {
	width: 1em; min-width: 1em; max-width: 1em;
	text-align: center;
}
table.admin th {
	text-align: left;
}
table.admin td.icon.stat {
	border-right: 1px solid #eee !important;
}
table.admin td.icon.stat .warning {
	color: #d00;
}
table.admin .label {
	text-align: right;
	cursor: pointer;
}
table.admin .input {
	padding: 0.25rem;
}
table.admin .input input {
}
table.admin .icon.ctrl {
	background: #eee;
	border-left: 1px solid #ddd !important;
	cursor: pointer;
}
table.admin .icon.ctrl.disabled {
	cursor: default;
}
table.admin .icon .neg {
	color: #d55;
}
table.admin .icon .off {
	color: #bbb;
}

.eblock {
	display: block; position: relative;
	margin-bottom: 1.5rem; padding: 1rem;
	background: #fee; border: 1px solid #d00;
	color: #700;
}
.eblock a {
	color: #b00 !important;
}
.eblock ul {
	list-style: square;
	padding-left: 1rem;
}

/*
.rblock {
	display: block; position: relative;
	margin-top: 1rem;
}
.rblock:first-child {
	margin-top: 0;
}
.rblock::after {
	content: "";
	display: block; clear: both;
}
.rblock.gut {
	margin-left: -0.5rem; margin-right: -0.5rem;
}
.rblock.biggut {
	margin-left: -1rem; margin-right: -1rem;
}
.rblock.hug {
	margin-top: 0.25rem;
}
.rblock .col {
	display: block; position: relative; box-sizing: border-box; float: left;
	width: 100%; min-height: 1px; margin-top: 1rem;
}
.rblock .col:first-child {
	margin-top: 0;
}
.rblock .col.hug {
	margin-top: 0.5rem;
}
.rblock.gut>.col {
	padding: 0 0.5rem;
}
.rblock.biggut>.col {
	padding: 0 1rem;
}
@media (min-width: 768px) {
	.rblock .col { margin-top: 0 !important; }

	.rblock .col.p15 { width: 15%; }
	.rblock .col.p16 { width: 16.6666%; }
	.rblock .col.p20 { width: 20%; }
	.rblock .col.p25 { width: 25%; }
	.rblock .col.p30 { width: 30%; }
	.rblock .col.p33 { width: 33.3333%; }
	.rblock .col.p35 { width: 35%; }
	.rblock .col.p40 { width: 40%; }
	.rblock .col.p50 { width: 50%; }
	.rblock .col.p60 { width: 60%; }
	.rblock .col.p66 { width: 66.6666%; }
	.rblock .col.p70 { width: 70%; }
	.rblock .col.p75 { width: 75%; }
	.rblock .col.p80 { width: 80%; }
}
*/
.rblock {
	display: block; position: relative;
	margin: 1rem 0 0 0;
}
.rblock:first-child { margin-top: 0 !important; }
.rblock.hug { margin-top: 0.125rem; }
.rblock.snug { margin-top: 0.5rem; }
.rblock.middle { align-items: center; }
.rblock .col {
	display: block; position: relative;
	min-height: 1px; margin-top: 1rem;
}
.rblock .col:first-child {
	margin-top: 0;
}
@media (min-width: 768px) {
	.rblock {
		display: grid;
		grid-template: auto / repeat(12, 1fr); column-gap: 1rem;
	}
	.rblock.nogut { column-gap: 0; }
	.rblock.biggut { column-gap: 2rem; }

	.rblock .col {
		grid-column-start: auto; grid-column-end: span 12;
		margin-top: 0;
	}

	.rblock .col.f1 { grid-column-end: span 1; }
	.rblock .col.f2 { grid-column-end: span 2; }
	.rblock .col.f3 { grid-column-end: span 3; }
	.rblock .col.f4 { grid-column-end: span 4; }
	.rblock .col.f5 { grid-column-end: span 5; }
	.rblock .col.f6 { grid-column-end: span 6; }
	.rblock .col.f7 { grid-column-end: span 7; }
	.rblock .col.f8 { grid-column-end: span 8; }
	.rblock .col.f9 { grid-column-end: span 9; }
	.rblock .col.f10 { grid-column-end: span 10; }
	.rblock .col.f11 { grid-column-end: span 11; }
	.rblock .col.f12 { grid-column-end: span 12; }

	.rblock .col.p20 { grid-column-end: span 2; }
	.rblock .col.p25 { grid-column-end: span 3; }
	.rblock .col.p33 { grid-column-end: span 4; }
	.rblock .col.p50 { grid-column-end: span 6; }
	.rblock .col.p66 { grid-column-end: span 8; }
	.rblock .col.p80 { grid-column-end: span 10; }
}

.btn {
	-webkit-appearance: none;
	display: inline-block;
	padding: 0.5rem 0.75rem;
	background: #c40027; border: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset;
	font: 1em "Open Sans",sans-serif; color: #fff; vertical-align: middle; white-space: nowrap; text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
	cursor: pointer;
}
.btn.negative { background: #333; }
.btn.disabled {
	background: #bbb;
	cursor: auto;
}
.btn ~ .btn {
	margin-left: 0.6rem;
}
.btn i {
	margin-right: 0.5em;
}
.btn.launch {
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	font-size: 1rem;
}
.btn.launch i {
	margin-left: 0.5em; margin-right: 0;
}

.toggle {
	display: inline-block;
	cursor: pointer;
}
.toggle i {
	margin-right: 0.35em;
}
.toggle .on {
	display: none;
	color: #333;
}
.toggle .off {
	display: block;
	color: #aaa;
}
.toggle.enabled .on {
	display: block;
}
.toggle.enabled .off {
	display: none;
}

.imageswap {
	display: none;
}
.imageswap.full {
	display: block;
	margin: 1.2em 0 0 0;
}
.imageswap.side {
	float: right;
	width: 50%; margin: 0 0 1rem 1rem;
}
@media (min-width: 768px) {
	.imageswap.full { display: none; }
	.imageswap.side { display: block; }
}

.pin_input {
	display: block;
	text-align: center;
}
.pin_input input {
	width: 8rem;
	font-size: 1.5rem; text-align: center; letter-spacing: 0.5rem;
}

.gap {
	margin: 0 0.5em;
	color: #eee;
}
.flush {
	display: block; position: relative; clear: both;
}

.tms-color-smart { color: var(--color-smart); }
.tms-bgcolor-smart { background: var(--color-smart); }
.tms-bgcolor-assoc { background: var(--color-assoc); }
.tms-bgcolor-stupid { background: var(--color-stupid); }
.tms-bgcolor-thermo { background: #e55c00; }
.tms-bgcolor-fnc { background: #777; }
