#ascm_bg {
	background: #0006;
	position: fixed;
	top: 0;
	left: 0;
	margin: 0;
	padding: 0;
	border: none;
	width: 100vw;
	height: 100vh;
	z-index:2000;
}

#ascm_ct {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: clamp(320px, 50vw, 640px);
	background: rgba(110,88,85,0.95);
	border: none;
	padding: 1em;
	margin: 0;
	max-height: 100vh;
	overflow-y: auto;
	z-index:2000;
}

#ascm_ct label {
	display: block;
	border: none;
	padding: 0.25em;
	position: relative;
}

#ascm_ct label:hover {
	background: #fff1;
	cursor: pointer;
}

#ascm_ct input[type="checkbox"] {
	outline: none;
	-webkit-appearance: none;
	width: 32px;
	height: 16px;
	background: #444;
	border: 0.5px solid #0009;
	border-radius: 8px;
	position: relative;
	transition: background 0.25s ease-in-out;
	float: right;
	clear: both;
	margin: 0;
	cursor: pointer;
}

#ascm_ct input[type="checkbox"]:before {
	content: "";
	position: absolute;
	background: #888;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	top: 1.5px;
	left: 2.5px;
	transition: left 0.25s ease-in-out, background 0.25s ease-in-out;
}

#ascm_ct input[type="checkbox"]:checked:before {
	left: 17.5px;
	background: #009e00;
}
#ascm_ct input[type="checkbox"]:checked {
	background: #0b0;
}
#ascm_ct h2 {
	margin: 0 0 0.5em;
	font-size: 1.2em;
}
#ascm_ct a {
	color:inherit;
	text-decoration:underline;
}

#ascm_close {
	float: right;
}
.ascm_buttonbox {
	border: none;
	padding: 0;
	display: flex;
	gap: 1em;
	margin-bottom: 1em;
}

.ascm_buttonbox > * {
	flex-basis: 50%;
	margin: 0;
	box-sizing: border-box;
}

#ascm_ct button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2em;
	border: 0.5px solid #0004;
	background: #1d1d1d;
	cursor: pointer;
}

#ascm_ct button:hover {
	background: #000;
}
#ascm_ct > *:last-child {
	margin-bottom: 0;
}

#ascm_ct #ascm_alloff {
	color: #b00;
	font-size: 1em;
}

#ascm_ct #ascm_allon {
	color: #0b0;
	font-weight: bold;
	font-size: 1em;
}

#ascm_ct #ascm_save {
	color: #0b0;
	font-size: 0.85em;
}

#ascm_ct #ascm_close {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	position: relative;
	margin-right: -10px;
	margin-top: -10px;
	font-size:0;
}

#ascm_ct #ascm_close:before {
	content: "";
	background: #888;
	width: 2px;
	height: 12px;
	left: 10.5px;
	position: absolute;
	top: 5.5px;
	transform: rotate(45deg);
}
#ascm_ct #ascm_close:after {
	content: "";
	background: #888;
	width: 12px;
	height: 2px;
	position: absolute;
	left: 5.5px;
	top: 10.5px;
	transform: rotate(45deg);
}

#ascm_options {
	padding: 6px;
	border: none;
	background: #0003;
	margin: 2em 0 1em;
}

#ascm_options label + label:before {
	content: "";
	border-top: 1.5px dashed #474747;
	position: absolute;
	left: 10px;
	right: 10px;
	top: -1px;
}
