@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&display=swap');
*{
	box-sizing:				border-box
}
body{
	margin:				0;
	background:				#f3f5f8;
	color:				#202631;
	font-family:				"Mochiy Pop P One", "Dela Gothic One", "Noto Sans JP", "Zen Antique", "Hachi Maru Pop", sans-serif;
}

header{
	padding:				18px 24px;
	background:				#202b3c;
	color:				#fff
}
header{
	font-size:				20px;
}
header span{
	font-size:				20px;
	margin-right:10px;
}
header a{
	font-size:				20px;
	margin-right:10px;
	text-decoration:none;
	color:white;
}

main{
	max-width:				1300px;
	margin:				20px auto;
	padding:				0 16px;
	display:				grid;
	grid-template-columns:				300px minmax(0,1fr);
	gap:				18px
}

.panel,.stage{
	background:				#fff;
	border:				1px solid #e0e5ec;
	border-radius:				12px;
	padding:				16px;
	box-shadow:				0 3px 14px #1522380b
}

h2{
	font-size:				15px;
	margin:				0 0 12px
}
section{
	margin-bottom:				20px
}
label{
	display:				block;
	font-size:				13px;
	margin:				10px 0 5px;
	color:				#475467
}

input[type="text"],input[type="number"],select{
	width:				100%;
	padding:				9px;
	border:				1px solid #cbd3df;
	border-radius:				7px;
	background:				#fff
}

input[type="range"]{
	width:				100%
}
input[type="color"]{
	width:				100%;
	height:				36px;
	border:				0;
	background:				none
}

button{
	border:				0;
	border-radius:				7px;
	padding:				9px 12px;
	background:				#2563eb;
	color:				#fff;
	cursor:				pointer;
	font-weight:				600
}

button.secondary{
	background:				#e8edf5;
	color:				#263448
}
button.danger{
	background:				#dc3545
}

	button:				disabled{
	opacity:				.45;
	cursor:				not-allowed
}
.row{
	display:				flex;
	gap:				8px
}
.row>*{
	flex:				1
}

.small{
	font-size:				12px;
	color:				#667085;
	line-height:				1.5
}
.layer-list{
	display:				flex;
	flex-direction:				column;
	gap:				6px
}

.layer-item{
	padding:				8px 10px;
	border:				1px solid #dce2ea;
	border-radius:				7px;
	display:				flex;
	justify-content:				space-between;
	gap:				8px;
	cursor:				pointer;
	font-size:				13px
}

.layer-item.active{
	border-color:				#2563eb;
	background:				#eff6ff
}
.layer-item span{
	overflow:				hidden;
	text-overflow:				ellipsis;
	white-space:				nowrap
}

.stage{
	min-width:				0
}
.toolbar{
	display:				flex;
	gap:				8px;
	flex-wrap:				wrap;
	align-items:				center;
	margin-bottom:				12px
}

.canvas-wrap{
	background:				 repeating-conic-gradient(#e8ebef 0% 25%,#fff 0% 50%) 50%/20px 20px;
	border:				1px solid #d5dbe4;
	border-radius:				8px;
	overflow:				auto;
	display:				flex;
	justify-content:				center;
	align-items:				center;
	padding:				12px;
	min-height:				360px
}

canvas{
	max-width:				100%;
	height:				auto;
	box-shadow:				0 2px 12px #0002;
	touch-action:				none;
	cursor:								default
}

#historytext{
	width:640px;
	height:140px;
}

@media(max-width:850px){
	main{
		grid-template-columns:				1fr
	}
	.canvas-wrap{
		justify-content:				flex-start
	}
	#historytext{
		width:300px;
	}
	}
}
