#response {
	display: flex;
	flex-direction: column;
	align-items: center;

	max-width: 95vw;
	height: 95vh;
	margin: 2.5vh auto;
}

#response > h2 {
	flex: 0 0 auto;
}

#response > p {
	flex: 0 0 auto;
	margin: 0 0 1rem;
}

#response > p:empty {
	display: none;
}

#response > form {
	min-width: 0;
	max-width: 100%;
	flex: 1 1 0;
	overflow: auto;
}

button {
	cursor: pointer;
	margin: 0 0.25rem;
	font-family: inherit;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
}

tr:nth-child(even) {
	background: rgba(0,0,0,0.1);
}

tr > :nth-child(even) {
	background-image: radial-gradient(circle at center, rgba(0,0,0,0.15) 0 1px, transparent 1px 100%);
	background-repeat: repeat;
	background-size: 0.25rem 0.25rem;
}

tr > :first-child {
	min-width: 10rem;
	max-width: 10rem;
}
tr > :not(:first-child) {
	min-width: 8rem;
	max-width: 8rem;
}
th, td {
	text-align: center;
}
th[scope] {
	padding: 1rem 0 0.5rem;
}
th[scope] > div > span {
	display: block;
	margin-bottom: 0.5rem;
}
td[scope] {
	text-align: right;
	font-weight: bold;
}
td[scope] > div > span {
	margin-right: 1rem;
}

td[scope] {
	position: sticky;
	left: 0;
	z-index: 10;
}

th[scope] {
	position: sticky;
	background-color: #FFFFFF;
	top: 0;
	z-index: 9;
}

th:empty {
	position: sticky;
	background-color: #FFFFFF;
	left: 0;
	top: 0;
	z-index: 11;
}

tr:nth-child(odd) > td[scope] {
	background-color: #FFFFFF;
}
tr:nth-child(even) > td[scope] {
	background-color: #E4E4E4;
}

td > div {
	padding: 0.5rem 0.25rem;
	height: 2rem;
	position: relative;
}
td:first-child > div {
	padding: 0;
	height: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

td > div > label > input {
	appearance: none;

	width: 1.75rem;
	height: 1rem;
	margin: 0;
	padding: 0;

	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);

	z-index: 1;

	--color: lightgrey;
	--bgcolor: white;
	--position: center;

	background-color: var(--bgcolor);
	background-image: radial-gradient(circle at 0.5rem, var(--color) 0 calc(0.35rem), transparent 0.35rem 1rem);
	background-position: var(--position) top 50%;
	background-repeat: no-repeat;
	background-size: 1rem 1rem;
	border: 1px solid black;
	border-radius: 1rem;
}

td:not([scope]) > div:hover {
	outline: black 1px solid;
}

td > div > label:first-child > input:checked {
	--color: crimson;
	--bgcolor: lightpink;
	--position: left;
}
td > div > label:last-child > input:checked {
	--color: forestgreen;
	--bgcolor: lightgreen;
	--position: right;
}

td > div > label > span {
	position: absolute;
	top: 0;

	z-index: 2;
	height: 100%;
	width: 50%;
	cursor: pointer;
	box-sizing: border-box;
	
	display: flex;
	align-items: center;

	user-select: none;

	left: 0;
	right: auto;
	padding-left: 0;
	padding-right: 1.5rem;
	justify-content: flex-end;
}

td > div > label:last-child > span {
	left: auto;
	right: 0;
	padding-right: 0;
	padding-left: 1.5rem;
	justify-content: flex-start;
}




td.constrained > div > label > span {
	width: 100%;
	
	text-align: right;
	padding-left: 0;
	padding-right: calc(50% + 1.5rem);
}
td.constrained > div > label:last-child > span {
	text-align: left;
	padding-left: calc(50% + 1.5rem);
	padding-right: 0;
}
td.constrained input:not(:checked) {
	background: none;
	border: none;
}

td > div > label > :checked + span {
	z-index: 1;
}

.Y {
	background-color: lightgreen !important;
}

.N {
	background-color: lightpink !important;
}
