dialog::backdrop {
	background: rgba(0, 0, 0, 0.3);
}

dialog:modal {
	width: calc(100% - 50px);
	height: calc(100% - 50px);
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border: 1px solid darkgreen;
	outline: none;
	resize: both;
	box-shadow: 0 0 4px 0 darkgreen;
}

div.head .rect1, div.head .rect2, div.head .rect3  {
	display: none;
	width: 50px;
	height: 100%;
}
div.head .rect1 {
	background-color: red;
}
div.head .rect2 {
	background-color: darkgreen;
}
div.head .rect3 {
	background-color: olive;
}

div.head {
	display: flex;
	align-items: center;
	--height: 30px;
	background-color: darkgreen;
	padding: 4px;
	cursor: move;
}
div.head:hover {
	filter: brightness(110%);
}

div.head span {
	font-size: 12px;
	position: relative;
}

div.head span.title {
	color: #ddd;
	margin-left: 4px;
	font-weight: bold;
}

div.head span.sub-title {
	color: #ccc;
	margin-left: 8px;
	font-style: italic;
}

div.head form {
	margin: 0;
}
div.head button {
	margin-right: 4px;
	background-color: transparent;
	border: none;
	color: #ccc;
	font-size: x-small;
}
div.head button:hover {
	cursor: pointer;
}

div.contents {
	display: flex;
	width: 100%;
	height: 100%;
}
div.left {
	position: relative;
	width: 16px;
	height: 100%;
	background-color: #ddd;
	display: none;
}

div.left span {
	writing-mode: vertical-rl;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	color: #ccc;
	font-weight: 700;
	width: 100%;
    height: 100%;
    margin-left: 3px;
	margin-top: 3px;
}
div.close2 {
	display: none;
	position: absolute;
	right: 0;
	top: 3px;
	cursor: pointer;
	color: #666;
}
div.close2 svg:hover {
	color: #999;
}

div.body {
	display: flex;
	width: 100%;
	height: unset;
	--border: 3px solid #999;
	--border-top: none;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 10px;
}




ng-sphere.icon {
	margin-left: 8px;
}

buttons {
	display: flex;
	position: absolute;
	right: 4px;
}

ng-sphere {
	position: relative;
	--width: 16px;
	--height: 16px;
	cursor: pointer;
	margin-right: 4px;
}
ng-sphere:hover {
	filter: brightness(90%);
}
ng-sphere:active {
	filter: brightness(80%);
}

ng-sphere:hover::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: center;
}
ng-sphere.apply:hover::after {
	background-size: 14px 14px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><polyline points="2.5,7 6,10 11,3" style="fill:none;stroke:white;stroke-width:2px;" /></svg>');
}

ng-sphere.reset:hover::after {
	background-size: 12px 12px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" style="fill:none;stroke:white;stroke-width:2px;" focusable="false" aria-hidden="true"><path d="M10 5h5V0"></path><path d="M15 8a6.957 6.957 0 0 1-7 7 6.957 6.957 0 0 1-7-7 6.957 6.957 0 0 1 7-7 6.87 6.87 0 0 1 6.3 4"></path></svg>');
}

ng-sphere.close:hover::after {
	background-size: 12px 12px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="fill:none;stroke:white;stroke-width:2px;" focusable="false" aria-hidden="true" viewBox="0 0 16 16"><path d="M2 2l12 12M14 2L2 14"></path></svg>');
}