#ajax-holder {display: none;}
[v-cloak] {display: none;}

.favdir-page .speedbar { margin-bottom: 16px; }

.favdir__panel *, .dd-list * { box-sizing: border-box; }
.dd-list { margin: 0; padding: 0; list-style: none; }
.favdir__panel { display: flex; flex-wrap: wrap; }
.favdir__panel, .dd-list { font-size: 14px; }
.favdir__panel { margin-top: -8px; }
.favdir__panel > a { margin: 8px 8px 0 0; }
.dd-item, .dd-placeholder { margin-top: 4px; }
.favdir__panel > a, .dd-item, .dd-placeholder {
	display: flex; align-items: center; border: 1px solid rgba(255,255,255,0.1); text-decoration: none !important; line-height: 22px; height: 32px; padding: 5px 11px;
	color: rgba(204,204,204,.8); font-weight: bold; border-radius: 6px; background: none; position: relative;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.favdir__panel-item.active {
	color: rgba(204,204,204,1) !important; border-color: #93AB7B !important;
	box-shadow: inset 0 0 6px 0 #93AB7B, 0 0 6px 0 #93AB7B;
}

@media (min-width: 576px) {
	.dd-list { display: flex; flex-wrap: wrap; margin-top: -4px; }
	.dd-item, .dd-placeholder { margin: 8px 8px 0 0; }
}

.favdir__panel-item.active { pointer-events: none; }
.favdir__panel-item .tab-count { font-weight: normal; margin-left: 4px; margin-top: 1px; }
.favdir__panel-item .tab-text { max-width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 1px; }
.favdir__panel .favdir__panel-settings {
	width: 32px !important; padding: 8px; background-color: rgba(255,255,255,0.1); border: 0 none !important;
}
.favdir__panel .favdir__panel-settings svg { width: 16px; height: 16px; display: block; }

.favdir__panel-item.public:before {
	content: ""; width: 16px; height: 16px; background-size: 100% 100%; margin-right: 4px; margin-left: -2px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23888888' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

@media (min-width: 992px) {
	.favdir__panel > a:hover, .dd-item:active { color: rgba(204,204,204,1); border-color: rgba(255,255,255,0.2); }
	.favdir__panel .favdir__panel-settings:hover { background-color: #93AB7B !important; color: #fff !important; }
}

/* Сортировка */
.dd-handle { cursor: move; margin-right: 6px; }
.dd-handle:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.dd-handle:before {
	content: ""; display: block; width: 4px; height: 10px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 50%, transparent 50%, transparent);
	background-size: 100% 4px;
}
.dd-content { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; margin-top: 1px; }
.dd-placeholder { min-width: 44px; height: 32px !important; border: 1px dashed #93AB7B; }
.dd-dragel { opacity: .8; position: absolute; pointer-events: none; z-index: 9999; }

/* Список записей в избранном */
.favdir-content { margin-top: 25px; }
.favdir-content .alert { margin-top: 25px; }

.fav_story { background-color: #3B3B3B; border-radius: 10px; padding: 16px; margin-top: 12px; position: relative; }
.fav_story:first-child { margin-top: 0; }

@media (min-width: 640px) {
	.fav_story_top { display: flex; align-items: flex-start; }
	.fav_story .favdir__bookmark {
		margin: -16px -16px 0 8px; background-color: rgba(0,0,0,0.1);
		border-radius: 10px; border-bottom-right-radius: 0; border-top-left-radius: 0;
	}
}

.fav_story_in { order: -1; flex: 1 1 auto; min-width: 0; padding-left: 84px; min-height: 68px; }
.fav_story_title { font-weight: bold; }
.fav_story_title > a, .fav_story_subtitle > a { color: inherit !important; text-decoration: none !important; transition: color .2s ease; }
.fav_story_title > a > span { display: block; }

@media (min-width: 992px) {
	.fav_story_title > a:hover { color: #93AB7B !important; }
	.fav_story_subtitle > a:hover { opacity: .8; }
}

.fav_story_in .image { margin-left: -84px; position: absolute; width: 68px; height: 68px; border-radius: 6px; }
.fav_story_in .image .custom-check-icon, .fav_story_in .favmass__item { display: block; width: 100% !important; height: 100% !important; border-radius: inherit; }
.fav_story_in .image .custom-check-icon { border: 0 none; margin: 0; background-color: rgba(0,0,0,0.5); box-shadow: none !important; }

.fav_story_tools { display: flex; margin-top: 6px; }
.fav_story_tools .rate_stars { margin-right: 20px; margin-left: -2px; }
.fav_story_tools .meta { white-space: nowrap; }
.fav_story_tools .meta > li > i { margin-right: 4px; }

.fav_type_chapter .fav_story_in { padding-left: 56px; min-height: 40px; }
.fav_type_chapter .fav_story_in .image { margin-left: -56px; width: 40px; height: 40px; border-radius: 50%; }
.fav_type_chapter .fav_story_note .btn-note { margin-top: -18px; }

/* Заметки и их редактирование */
.fav_story .note__holder:after {
	content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 10px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='%23494949' d='M8.07,10A7.88,7.88,0,0,1,0,2.35,7.24,7.24,0,0,1,.39,0,12.64,12.64,0,0,0,4.78,3.59a13.3,13.3,0,0,0,5.81,1.34A13.08,13.08,0,0,0,16,3.78,8,8,0,0,1,8.07,10Z'/%3E%3C/svg%3E");
}
.fav_story_note .note__holder { clear: both; background: #494949; border-radius: 18px; margin-top: 16px; position: relative; }
.fav_story_note .btn-note {
	box-sizing: border-box; float: right; height: 32px; line-height: 16px;
	padding: 8px; font-size: 12px; margin: -26px -8px 0 0; cursor: pointer;
}
.fav_story_note .btn-note + .note__holder { display: none; }
.note__comment { padding: 9px 14px 8px 14px; font-size: 12px; user-select: none; -moz-user-select: none; -webkit-user-select: none; }
.note__put { display: grid; }
.note__put:after { content: attr(data-replicated-value) " "; white-space: pre-wrap; visibility: hidden; }
.note__put > textarea { resize: none; overflow: hidden; }
.note__put > textarea,
.note__put:after {
	box-sizing: border-box; padding: 11px 14px 9px 14px; background: none !important; box-shadow: none !important;
	width: 100%; border: 0 none; font: inherit; grid-area: 1 / 1 / 2 / 2;
}
.note__edit-panel { display: flex; flex-wrap: wrap; border-top: 1px solid #3B3B3B; font-size: 12px; }
.note__edit-panel .btn { font-size: inherit; }
.note__edit-panel .btn:not(.note__save) { color: inherit !important; }
.note__edit-panel .switcher { margin-right: auto; padding: 0 14px; }
.note__comment.note--empty { opacity: .5; }

/* Создание и редактирование папок */
.favdir-head, .js-favdir-heading-top { margin-top: 25px; margin-bottom: .8em; }
.favdir-head .title { display: block; margin: 0; }

.js-favdir-heading-title { display: flex; align-items: center; }
.js-favdir-heading-title > .circle_menu { margin-left: 12px; }
.circle_menu {
	min-width: 24px; width: 24px; height: 24px; border-radius: 50%; background-color: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center;
	transition: background-color .2s ease;
}
.circle_menu:hover { background-color: rgba(255,255,255,0.2); }
.circle_menu i { display: block; width: 2px; height: 2px; border-radius: 50%; margin-left: 3px; background-color: #fff; }
.circle_menu i:first-child { margin-left: 0; }

.js-favdir-heading-top { display: flex; flex-wrap: wrap; }
.js-favdir-heading-top .favdir-head { margin-top: 0; margin-bottom: 0; }
.js-favdir-heading-top .favdir__rating { margin-left: auto; }

.favdir-edit .form-group > label { font-size: 12px; color: #a9b2a0; }
.favdir-edit input[type=text], .favdir-edit select, .favdir-edit textarea { width: 100%; border: 1px solid #313131; box-shadow: 0 0.25rem 0.5rem 0 rgb(0 0 0 / 3%); }
.favdir-edit input[type="text"]:focus, .favdir-edit select:focus, .favdir-edit textarea:focus { border-color: #707070; }
.favdir-edit .form_submit { display: flex; flex-wrap: wrap; align-items: center; }
.favdir-edit .form_submit .switcher { margin-right: auto; }

/* Rating */
.favdir__rating { display: flex; align-items: center; font-size: 12px; width: 100%; }
.favdir__rating-progress_bar-value { display: none; }

.favdir__rating-dislike,
.favdir__rating-like {
	box-sizing: border-box;
	background: url(../../../images/like_dislike.png) no-repeat 100% 0;
	background-size: 32px auto; height: 28px; line-height: 16px; padding-top: 6px; padding-bottom: 6px;
}
.favdir__rating-like { padding-right: 32px; color: #94AB7B; text-align: right; }
.favdir__rating-dislike { background-position: 0 100%; padding-left: 32px; text-align: left; color: #CE6868; }
.favdir__rating-dislike.active, .favdir__rating-like.active { opacity: .5; }

.favdir__rating-progress { background: #CE6868; flex: 1 1 auto; height: 12px; border-radius: 6px; margin: 0 12px; overflow: hidden; }
.favdir__rating-progress_bar { height: 100%; background: #94AB7B; position: relative; }

.favdir-link { display: flex; margin: 12px 0 12px 0; }
.favdir-link-b {
	display: flex; border-radius: 16px; padding: 8px 12px; line-height: 16px; min-height: 32px; min-width: 0;
	box-sizing: border-box; background-color: rgba(148,171,123,0.1); color: #94AB7B;
}
.favdir-link-b:hover { background-color: rgba(148,171,123,0.05); }
.favdir-link-b > a { align-self: center; color: inherit; word-break: break-word; }
.favdir-link-b > i { margin-right: 8px; }

.favdir-content .mass-action-control { margin-top: 25px; }

@media (max-width: 639px) {
	.note__edit-panel .switcher { width: 100%; padding: 10px 15px; padding-bottom: 0; }
	.favdir-edit .form_submit .switcher { width: 100%; margin-bottom: 10px; }
	.favdir-edit .form_submit .btn-border { order: 13; }
	.note__edit-panel .note__delete { margin-left: auto; }
	.fav_type_book .fav_story_top { padding-bottom: 36px; position: relative; }
	.fav_type_book .fav_story_tools .meta { position: absolute; left: 0; right: 0; bottom: 0; font-size: 12px; }

	.js-favdir-heading-top .favdir-head { width: 100%; }
	.js-favdir-heading-top .favdir__rating { margin-left: 0; }
	.favdir__rating { padding: 12px; background-color: #4E4E4E; border-radius: 10px; margin-top: 12px; }

	.favdir__bookmark_line { display: flex; align-items: center; margin: -16px; margin-bottom: 0; position: relative; height: 32px; }
	.favdir__bookmark_line:before { 
		content: attr(title); font-size: 12px; font-weight: normal; text-transform: uppercase; box-sizing: border-box; opacity: .5;
		margin-right: 12px; padding-top: 7px; padding-bottom: 6px; height: 32px; padding-left: 16px; line-height: 20px;
	}
	.favdir__bookmark_line:after {
		content: ""; flex: 1 1 auto; height: 1px; opacity: .5;
		background: linear-gradient(90deg, #929292, #94AB7B 100%);
	}
	.favdir__bookmark_line .favdir__bookmark { margin-left: auto; order: 13; }

	.favdir__bookmark_line .bookmark__popup { left: auto; right: 0; margin: 0; margin-right: 6px; margin-top: -4px; }
	.favdir__bookmark_line .bookmark__popup:after { display: none; }
	.favdir__bookmark_line .bookmark--trigger { padding-top: 7px; padding-bottom: 6px; height: 32px; }
	.favdir__bookmark_line .favdir__bookmark { position: static; }
	.favdir__bookmark_line .bookmark--trigger-hidden { display: block !important; position: absolute; left: 0; top: 0; bottom: 0; right: 0; width: 100%; opacity: 0; }
}

@media (min-width: 640px) {
	.favdir__rating { max-width: 200px; }
}