#btn_diy {
	width: fit-content;
	padding: 0 0.5rem;
	position: fixed;
	top: 3rem;
	right: 0.5rem;
	border: 1px solid #EE831F;
	color: #F26C4F;
	border-radius: 0.25rem;
	background: #FBF5E4;
	font-size: 0.75rem;
	line-height: 1rem;
}

#btn_diy:hover {
	filter: brightness(1.2);
	cursor: pointer;
}

#btn_diy::after {
	filter: brightness(0.8);
}

#diy_panel {
	position: relative;
	z-index: 1001;
}

#diy_panel .mm_card {
	border: 1px solid var(--border_base);
	margin: 0;
	padding: 0.5rem;
	background-color: rgb(235, 235, 235);
	border-radius: 0;
}

#diy_panel .card_head {
	background-color: rgb(235, 235, 235);
	padding: 0;
}

#diy_panel .card_body {
	background-color: #FEFEFE;
	border-radius: 0.5rem;
	border: 1px solid var(--border_base);
	padding: 0.5rem 1rem;
	min-height: calc(7.5rem + 1px);
}

#diy_panel .card_head h4 {
	margin-top: 0.325rem;
}

#diy_panel .card_head p a {
	margin-top: 0.125rem;
	float: right;
	height: 1.625rem;
	border: 1px solid var(--border_base);
	background: #FEFEFE;
	text-align: center;
	color: initial;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	color: #AAA;
}

#diy_panel .card_head p a:hover {
	cursor: pointer;
	filter: brightness(1.1);
}

#diy_panel .card_head p a:active {
	filter: brightness(0.8);
}

#controlnav {
	margin: auto;
	float: left;
	list-style: none;
}

#controlnav li {
	float: left;
}

#controlnav .active {
	border-top-right-radius: 0.5rem;
	border-top-left-radius: 0.5rem;
	border: 1px solid var(--border_base);
	border-bottom: none;
	background-color: #FEFEFE;
	position: relative;
}

#controlnav .active::after {
	content: "";
	position: absolute;
	display: block;
	top: 100%;
	left: -1px;
	width: calc(100% + 2px);
	height: 1px;
	background-color: #FEFEFE;
	z-index: 2;
	border-left: 1px solid var(--border_base);
	border-right: 1px solid var(--border_base);
}

#controlnav a {
	color: initial;
	font-size: 0.875rem;
	font-weight: 700;
	display: block;
	line-height: 1.5rem;
	padding: 0.25rem 1rem;
}

#controlnav a:hover {
	color: var(--font_primary);
	filter: brightness(1.2);
}

#controlnav a:active {
	filter: brightness(0.8);
}

#preview a {
	margin-right: 0.5rem;
	padding: 0 1rem;
	line-height: 1.5rem;
}

#navsave a {
	margin-left: 0.5rem;
	margin-right: 0.5rem;
	padding: 0 1rem;
	background: #E6A234 !important;
	border-color: #DB7D29 !important;
	color: #ffffff !important;
	font-weight: 700;
	text-shadow: 1px 1px 2px #666;
	line-height: 1.5rem;
}

#navcancel a {
	width: 1.5rem;
	overflow: hidden;
	color: #EE831F !important;
}

#navcancel a:before {
	content: "\d7";
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.25;
}

#button_redo a:before,
#button_undo a:before {
	content: "\f0e2";
	display: inline-block;
	font-size: 1rem;
	font-style: normal;
	font-family: "FontAwesome";
	overflow: hidden;
	color: #CCC;
}

#button_undo a {
	width: 1.5rem;
	border-right: 0 !important;
	border-radius: 0.25rem 0 0 0.25rem !important;
	overflow: hidden;
	line-height: 1.5rem;
}

#button_redo a {
	width: 1.5rem;
	border-radius: 0 0.25rem 0.25rem 0 !important;
	overflow: hidden;
	line-height: 1.5rem;
}

#button_redo a:before {
	content: "\f01e";
}

#button_more {
	margin-right: 1rem;
	width: 1rem;
	overflow: hidden;
	border-radius: 0.25rem;
	color: #CCC;
	line-height: 1.5rem;
}

#button_more:before {
	content: "";
	display: inline-block;
	border-top: 0.3em solid;
	border-right: 0.3em solid transparent;
	border-bottom: 0;
	border-left: 0.3em solid transparent;
	vertical-align: middle;
	color: #CCC;
}

#controlcontent li {
	float: left;
	margin-right: 0.5rem;
	list-style: none;
	text-align: center;
}

#controlcontent li a {
	display: block;
	color: #333 !important;
	font-size: 0.75rem;
	padding: 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.25rem;
}

#controlcontent li a:hover {
	border-color: var(--border_base);
	background-color: var(--bg_base);
}

#controlcontent li a:active {
	filter: brightness(0.9);
}

#controlcontent li img,
#controlcontent li label span {
	display: block;
	margin: 7px auto 0;
	width: 80px;
	height: 60px;
	text-align: center;
}

#controlcontent .content {
	display: none;
}

#contentframe a:hover {
	cursor: move;
}

.area {
	margin-bottom: 0.25rem;
	padding: 0.25rem;
	background: #DDF0DF;
	width: 100%;
}

@media (max-width: 768px) {
	#controlnav {
		margin-top: 0.5rem;
	}
	
	#btn_diy {
		display: none;
	}
}