@media (min-width: 481px) {
	.noteBook__wrapper {
		position: fixed;
		bottom: -100%;
		right: 20px;
		z-index: 1020;
		background: var(--base-cont-mod-low);
		width: 496px;
		max-height: 100%;
		box-shadow: var(--shadow-tray-major);
		border-radius: 12px 12px 0 0;
		transition: all 0.3s ease;
	}
	.noteBook__wrapper.top-layer {
		z-index: 1021;
	}
	.noteBook__wrapper-active {
		bottom: 0
	}
}

.noteBook {
	min-height: 352px;
}

.noteBook__head {
	padding: 6px;
	height: 44px;
	box-sizing: border-box;
}

.noteBook__head ws-btn, .noteBook__head > ws-icon {
	padding: 2px;
}

.noteBook__head .space, .noteBook__head ws-icon {
	width: 28px;
	height: 28px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 4px;
	fill: var(--base-txt-primary);
	font: 14px/20px var(--font-base);
	font-weight: 400;
}
.noteBook__head .space ~ .space {
	margin-left:4px;
}


.noteBook__head .space ws-icon svg {
	width: 16px;
	height: 16px;
}

.noteBook__head .minimize {
	/*cursor: zoom-out;*/
}

.noteBook__head .space:hover {
	background: var(--colors-alpha-dark-05);
}

.noteBook__head .space:hover:active {
	background: var(--colors-alpha-dark-10);
}

.noteBook__head > .in {
	padding: 2px;
	font: var(--font-ui-16-title-3-semi);
	color: var(--base-txt-primary);
	/* color: var(--colors-graphite-700); */
}

.noteBook__head .loader_sm {
	display: none;
	border: 1px solid var(--colors-graphite-700);
	border-left-color: transparent;
	width: 12px;
	height: 12px
}

.noteBook.loading .noteBook__head .loader_sm {
	display: block;
}
.noteBook.loading .noteBook__head .space > ws-icon {
	display: none;
}

.noteBook__content {
	padding: 12px 24px;
	border-top: 0.5px solid var(--base-line-tertiary);
	min-height: 286px;
	max-height: 50vh;
	color: var(--base-txt-primary);
	box-sizing: border-box;
}

.noteBook__content .editor__data {
	min-height: 286px;
	font: 13px/20px var(--font-base);
	padding: 12px 0;
	cursor: text;

}

.noteBook__content .editor__data:focus {
	outline: none;
}

.noteBook__content .editor__data:empty:before {
	content: attr(data-placeholder);
	color: var(--base-txt-tertiary)
}

.noteBook__content__editor {
	/*padding: 4px 0;*/
}
.noteBook__content__editor textarea {
	width: 100%;
	height:400px;
	color:inherit;
	background: transparent;
	border: none;
	padding: 0;
	overflow: hidden;
	min-height:20px;
	resize: none;
	font: 12px / 20px var(--font-mono);
}

.noteBook__content__editor textarea::placeholder {
	font: inherit;
	color:inherit;
	opacity: 0.7;
	white-space: pre-wrap;
}

@media (max-width: 480px) {
	.noteBook__wrapper {
		display: none;
	}

	body.mobileNoteBook .noteBook__wrapper {
		--layer: 0;
		--zIndex: 1032;
		z-index: calc(var(--zIndex) + var(--layer));
		position: fixed;
		inset: 0;
		display: block;
		background: var(--base-cont-top);
		padding-bottom: var(--sa-bot);
	}

	.noteBook {
		height: 100%;
	}

	.noteBook__content {
		max-height: unset;
		min-height: unset;
		border-top: unset;
	}

	.noteBook .mobile-head .loader {
		display: none;
		margin: 0;
		width: 20px;
		height: 20px;
		box-sizing: border-box;
	}
	.noteBook.loading .mobile-head .loader {
		display: block;
	}
}