.toolbar {
	background: linear-gradient(to bottom, #6b6b6b 0, #262626 100%);
	color: white;
}

.toolbar .addressbar button {
	text-indent: -99999px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent url(icons.svg) no-repeat;
	background-position: -64px -128px;
	cursor: pointer;
	outline: 0;
	filter: grayscale(1);
}

.toolbar .addressbar button:hover {
	filter: grayscale(0);
}

.toolbar .addressbar input {
	width: calc(100% - 32px - 20px);
	border: 0;
	padding: 4px 2px;
	border-radius: 3px;
}

.toolbar .labels {
	list-style: none;
	margin: 0;
	padding: 0;
}

.toolbar .labels > li {
	user-select: none;
	display: inline-block;
	position: relative;
	box-sizing: border-box;
	padding-top: 32px;
	text-align: center;
	margin: 5px;
	word-break: break-word;
	vertical-align: top;
	width: 60px;
}

.toolbar .labels > li::before {
	content: "";
	display: inline-block;
	width: 32px;
	height: 32px;
	text-align: center;
	position: absolute;
	top: 0;
	right: 14px;
	margin: auto;
	background-clip: content-box;
	background: transparent url(icons.svg) no-repeat;
	filter: grayscale(1);
}

.toolbar .labels > li:not(.disabled) {
	cursor: pointer;
}

.toolbar .labels > li:not(.disabled):hover::before {
	filter: grayscale(0);
}

.toolbar .labels > li.home::before {
	background-position: -64px -128px;
}

.toolbar .labels > li.back::before {
	background-position: 0 -160px;
}

.toolbar .labels > li.back::before {
	background-position: 0 -160px;
}

.toolbar .labels > li.up::before {
	background-position: -32px -160px;
}

.toolbar .labels > li.refresh::before {
	background-position: -96px -160px;
}

.toolbar .labels > li.logout::before {
	background-position: -64px -160px;
	filter: hue-rotate(257deg);
}


main.fileBrowser {
	width: 100%;
	height: calc(100vh - 100px - 40px);
}

#rnFile,
#rnDir {
	cursor: auto;
}

.spn-rnFileTitle,
.spn-rnDirTitle {
	cursor: pointer;
}

.rnctl {
	display: none;
	text-align: right;
}

.rnFilename,
.rnDirname {
	margin-bottom: 6px;
}

ul.curdir {
	list-style: none;
}

li.node {
	border: 1px solid transparent;
	display: inline-block;
	position: relative;
	box-sizing: border-box;
	padding-top: 36px;
	text-align: center;
	margin: 12px;
/*	word-break: break-word; */
	vertical-align: top;
	width: 60px;
	line-height: 1em;
	user-select: none;
}

li.node span {
	font-size: small;
	overflow-wrap: break-word;
}

li.node::before {
	content: "";
	display: inline-block;
	width: 32px;
	height: 32px;
	text-align: center;
	background-clip: content-box;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: auto;
	background: transparent url(icons.svg) no-repeat;
}

li.node::before {
	background-position: 0 -96px;
	filter: grayscale(1);
	transform: scale(150%);
}

/* MIME Types */
/* inode/directory */
li.node.type-directory::before {
	background-position: 0 0;
	filter: hue-rotate(314deg);
}

li.node.type-application::before {
	filter: hue-rotate(240deg);
}

li.node.type-audio::before {
	filter: hue-rotate(156deg);
}

li.node.type-video::before {
	filter: hue-rotate(200deg);
}

/* text/* */
li.node.type-text::before {
	background-position: -32px -64px;
	filter: hue-rotate(110deg);
}

/* text/html | application/xml */
li.node.type-application.type-xml::before,
li.node.type-text.type-html::before {
	background-position: -64px -32px;
}

/* application/javascript || text/javascript */
li.node.type-javascript::before {
	background-position: -96px 0;
}

/* application/json || text/json */
li.node.type-json::before {
	background-position: -96px -32px;
}

/* image/* */
li.node.type-image::before {
	background-position: 0 -64px;
	filter: hue-rotate(60deg);
}

/* application/octet-stream */
li.node.type-octet-stream::before {
	background-position: -32px 0;
	filter: hue-rotate(224deg) grayscale(40%);
}

/* application/msword | application/vnd.openxmlformats-officedocument.wordprocessingml.document */
li.node.type-vnd-openxmlformats-officedocument-wordprocessingml-document::before,
li.node.type-msword::before {
	background-position: -64px -64px;
	filter: hue-rotate(130deg);
}

/* application/vnd.ms-excel | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet */
li.node.type-vnd-openxmlformats-officedocument-spreadsheetml-sheet::before,
li.node.type-text.type-csv::before,
li.node.type-excel::before,
li.node.type-vnd-ms-excel::before {
	background-position: -32px -96px;
	filter: hue-rotate(345deg);
}

/* application/vnd.ms-powerpoint | application/vnd.openxmlformats-officedocument.presentationml.presentation */
li.node.type-vnd-openxmlformats-officedocument-presentationml-presentation::before,
li.node.type-powerpoint::before,
li.node.type-vnd-ms-powerpoint::before {
	background-position: -64px -96px;
	filter: hue-rotate(274deg);
}

/* application/pdf */
li.node.type-pdf::before {
	background-position: -96px -64px;
}

/* image/svg+xml */
li.node.type-image.type-svg-xml::before {
	background-position: -64px 0;
}

/* text/css */
li.node.type-text.type-css::before {
	background-position: 0 -32px;
}

/*
	  0 -128: drive
	  0 -160: back
	-32  -32: php
	-32 -128: optical
	-32 -160: up
	-64 -128: home
	-64 -160: forward
	-96  -96: markdown
	-96 -128: blanc
	-96 -160: refresh
*/


/* Dialog */
.dialog {
	display: none;
}

.dialog ul {
	list-style: none;
}

.dialog li {
	cursor: pointer;
	margin-top: 0.8em;
}


/* Loader */
.loader-wrap {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	background-color: #fff;
	top: 0;
	left: 0;
	opacity: .6;
}

.loader {
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow:
    0 -30px 0 #eee,     /*  上  */
    21px -21px 0 #ddd,  /* 右上 */
    30px 0 0 #ccc,      /*  右  */
    21px 21px 0 #bbb,   /* 右下 */
    0 30px 0 #aaa,      /*  下  */
    -21px 21px 0 #999,  /* 左下 */
    -30px 0 0 #666,     /*  左  */
    -21px -21px 0 #000; /* 左上 */
  animation: rotate 1s steps(8) 0s infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
