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

	.taskCreate__wrapper-fullscreen {
		width: calc(100% - 64px);
		right: 0;
		height: 100%;
		border-radius: 0;
	}
	body.withTaskPanel .taskCreate__wrapper-fullscreen {
		height: calc(100% - 40px);
	}
	.taskCreate__wrapper-fullscreen .taskCreate__head ws-btn[right-icon="peek-compact"] {
		display: none;
	}
	.taskCreate__wrapper-fullscreen .taskCreate__head ws-btn[right-icon="peek-full"] {
		display: block;
	}
}
@media (max-width: 480px) {
	.taskCreate__wrapper {
		right: 0;
		width: 100%;
	}

	body.mobileTaskCreate main {
		display: none;
	}

	body.mobileTaskCreate .taskCreate__wrapper {
		display: block;
		height: 100%;
		position: relative;
		background: var(--base-cont-mod-top);
	}

	body.mobileTaskCreate .taskCreate__wrapper {
		--layer: 0;
		--zIndex: 1032;
		z-index: calc(var(--zIndex) + var(--layer));
		padding-bottom: var(--keyboard-height);
		box-sizing: border-box;
	}

	.taskCreate__head > ws-btn[right-icon*="peek"] {
		display: none;
	}

	.editor.taskCreate__content__editor .editor__data {
		max-height: unset; /* прибираємо обмеження, щоб тулбар не зникав при скролі */
	}
	.taskCreate.taskCreate {
		height: 100%;
		min-height: unset;
	}
	.taskCreate__content .taskCreate__content__item {
		flex-shrink: 0;
	}
	.taskCreate__content .taskCreate__content__editor-wrapper {
		max-height: unset;
	}
}
.taskCreate {
	min-height: 600px;
}

.taskCreate .taskCreate__content {
	width: 100%;
	max-width: 740px;
	margin: 0 auto;
}

.taskCreate .chip > span:not([class]) {
	font: var(--font-ui-12-mini-reg);
	color: var(--base-txt-secondary);
}

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

.taskCreate__head ws-btn[right-icon="peek-full"] {
	display: none;
}

.taskCreate__head .space ~ .space {
	margin-left:4px;
}

.taskCreate__head .minimize {
	cursor: zoom-out;
}

.taskCreate__head .space:hover {
	background: var(--base-hlt-b-notr-hover);
}

.taskCreate__head .space:hover:active {
	background: var(--base-hlt-b-notr-selected);
}

.taskCreate__head > .in {
	padding: 0 8px;
	color: var(--base-txt-secondary);
}

.taskCreate__content {
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.taskCreate__content > div {
	padding: 0 24px;
}
.taskCreate__content .taskCreate__content__editor-wrapper {
	margin-top: 12px;
	max-height: 60vh;
	padding-bottom: 12px;
	flex-grow: 1;
}

.taskCreate__content__title textarea {
	max-height: 84px;
	min-height: 32px;
	height: 32px;
	font: var(--font-ui-22-title-1-semi);
	width: 100%;
	box-sizing: border-box;
	border: none;
	resize: none;
	padding: 0;
	overflow: hidden;
	background: transparent;
    position: relative;
    z-index: 1;
}

.taskCreate__content__title .taskCreate__content__title-placeholder {
	font: var(--font-ui-22-title-1-semi);
	opacity: 1;
	color: var(--base-txt-tertiary);
    position: absolute;
    left: 24px;
    z-index: 0;
	white-space: nowrap;
}

.taskCreate__content__title .taskCreate__content__title-placeholder-sub {
    font: var(--font-ui-22-title-1-semi);
    opacity: 1;
    color: var(--base-txt-muted)
}

.taskCreate__content__title textarea:not(:placeholder-shown) + .taskCreate__content__title-placeholder {
    display: none;
}

.taskCreate__content .editor__data {
	min-height: 32px;
	font: var(--font-txt-15-large-reg);
	padding: 12px 0;
	cursor: text;
}

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

.taskCreate__content .editor__data:empty:before {
	content: attr(data-placeholder);
	color: var(--base-txt-tertiary)
}
.taskCreate__content__item {
	align-items: flex-start;
	gap: 12px;
	overflow: hidden;
}
.taskCreate__head .taskCreate__content__item {
	gap: 0 4px;
	flex-wrap: nowrap;
	padding: 0 24px 0 6px;
	box-sizing: border-box;
	min-height: unset;
}

.taskCreate__content__item + .taskCreate__content__item {
	border-top: 1px solid var(--base-line-tertiary);
}
.taskCreate__content__item > [data-container] {
	overflow: hidden;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
}
.taskCreate__content__item > [data-container=priority] .chip {
	padding: 0 8px;
}
.taskCreate__content__item > [data-container]:not([data-container=priority]):not([data-container=template]) {
	flex-shrink: 1;
}
.taskCreate__content__item > [data-container]:not([data-container=priority]) > * {
	flex-shrink: 1;
}
.taskCreate__head [data-container] {
	max-width: 143px;
}
.taskCreate__head ws-icon[name="project-solid"] {
	--icon-color: var(--base-txt-alert-major);
}


.taskCreate__content__item .params {
	flex-wrap: wrap;
	flex-shrink: 1;
	gap: 4px;
	padding: 4px 0;
}

.taskCreate__content__item > .in {
	padding: 10px 0;
	font: var(--font-sp-caption-11-micro-upper-med);
	color: var(--base-txt-tertiary);
	text-transform: uppercase;
}

.taskCreate__content__item .data {
	font: 12px/22px var(--font-base);
	color: var(--base-txt-secondary);
	height: 24px;
	border-radius: 12px;
	background: var(--base-cont-mod-low);
	max-width: 190px;
	overflow: hidden;
	padding: 0 2px;
}

.taskCreate__content__item .data > .in {
	padding: 0 4px;
	color: var(--base-txt-tertiary);
}
.taskCreate__content__item .data > .limit ~ .limit {
	border-left: 1px solid var(--base-line-secondary);
	margin-left: 2px;
	padding-left: 6px;
}
.taskCreate__content__item .prior > .in {
	width:20px;
	text-align: center;
	padding:0;
	color:var(--white-primary);
}

.taskCreate__content__item .data > ws-icon svg {
	width: 16px;
	height:16px;
}
.taskCreate__content__item .data > ws-icon[name=close_sm] {width: 16px;height: 16px;}

.taskCreate__content__item .data > .space ws-icon, .taskCreate__content__item .data > .space svg {
	width: 16px;
	height: 16px;
}

.taskCreate__content__item .data:hover {
	background: var(--base-hlt-hover);
}

.taskCreate__content__item .params a.require .chip.chip-dashed {
	outline: 1px dashed var(--base-txt-alert-minor);
	outline-offset: -1px;
}
.taskCreate__content__item .params a.require .chip.chip-dashed > span:not([class]) {
	color: var(--base-txt-alert-minor);
}
.taskCreate__content__item .params a.require .chip.chip-dashed:hover {
	outline-color: var(--base-txt-alert-major);
}
.taskCreate__content__item .params a.require .chip.chip-dashed:hover > span:not([class]) {
	color: var(--base-txt-alert-major);
}
.taskCreate__buttons {
	padding: 12px 20px calc(var(--app-sa-bot) + 20px) 20px;
	height: 32px;
	border-top: var(--screen-px) solid var(--base-line-tertiary);
	gap: 8px;
	width: calc(100% - 40px);
	max-width: 700px;
	margin: 0 auto;
}

.taskCreate__buttons > .flex_content {
	position: relative;
}

.taskCreate__buttons .but {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.taskCreate__buttons .editor__toolbar {
	overflow: visible;
}

.taskCreate__buttons .format_toolbar {
	position: absolute;
	bottom: 44px;
	left: -16px;
	background: var(--base-cont-top);
	box-shadow: 0 0 4px 1px var(--colors-alpha-dark-20);
	border-radius: 4px;
	padding: 4px;
	display: none;
}

.taskCreate__buttons .format_toolbar-active {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row;
}
.taskCreate__buttons .btn-primary i{
	font: var(--font-ui-13-small-bold) !important;
}
.taskCreate__buttons .btn-primary i:not(:empty){
	padding-left: var(--sp_fix_04);
}
.taskCreate__content__editor textarea {
}
.taskCreate .attachWrapper .fileItem {
	width: calc(100% / 2 - 19px);
	background: var(--base-cont-mod-top);
}
.taskCreate .attachWrapper .fileItem__content .name {
	padding: 0 2px;
}
.taskCreate .attachWrapper .fileItem__content .links ws-icon {
	opacity: 1;
}

.taskCreate__subscribers {
	height:24px;
	font:12px/24px var(--font-base);
	color:var(--base-txt-tertiary);
	position:relative;
	white-space:nowrap;
	gap: 8px;
	cursor: pointer;
}

.taskCreate__subscribers__item:not(.taskCreate__subscribers__item-subscribe) {
}

.taskCreate__subscribers .plus ws-icon {
	border:1px dashed var(--base-txt-secondary);
	width: 24px;
	height:24px;
	box-sizing:border-box;
	border-radius:12px;
}

.taskCreate__subscribers .plus svg {
	width: 16px;
	height: 16px;
}

.taskCreate__subscribers__item:not(.taskCreate__subscribers__item-hidden) ws-icon {
	display:none;
}

.taskCreate__subscribers__item {
	position:relative;
	margin-right: -2px;
}
.taskCreate__subscribers__item:nth-child(n+6) {
	display: none
}
.taskCreate__subscribers__item:nth-child(n+5):last-child {
	display: inline-block
}
.taskCreate__subscribers__item .av_sm {
  box-shadow: 0 0 0 2px var(--base-cont-top);
}
.taskCreate__subscribers__item ws-icon {
	position:absolute;
	bottom:-3px;
	left:-3px;
	background:var(--base-btn-togg-off);
	border-radius:3px;
	width:12px;
	height:12px;
	box-shadow:0 0 0 1px var(--base-cont-mod-top);
}

.taskCreate__subscribers__item ws-icon svg {
	width:10px;
	height:10px;
	fill:var(--white-primary)
}

.taskCreate__subscribers .more {
	display: inline-block;
	padding: 0 6px;
	min-width: 24px;
	height: 24px;
	box-sizing: border-box;
	text-align: center;
	font: var(--font-ui-10-nano-med);
	line-height: 24px;
	border-radius: 12px;
	background: var(--base-cont-low);
	vertical-align: top;
	position: relative;
	color: var(--base-txt-primary);
	box-shadow: 0 0 0 2px var(--base-cont-top);
}
.taskCreate-initClose > :not(.editBlock-close) {
	opacity: 0.5;
	pointer-events: none
}
.taskCreate-initClose .editBlock-close {
	position: absolute;
	z-index:1;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--base-cont-mod-top);
	border-top: 2px solid var(--base-btn-alert-primary-minor);
	padding:12px 0 24px;
}
.taskCreate__content__item > [data-container=labels]:not(.require):has(.data_place),
.taskCreate__content__item > [data-container=limits]:not(.require):has(.data_place) {
	display: none;
}
.taskCreate__content__item > [data-container].require .data_place {
	border-color: var(--base-txt-alert-minor);
	color: var(--base-txt-alert-minor);
}
.taskCreate__content__item > [data-container].require .data_place:hover {
	background: var(--base-hlt-w-hover);
}
.taskCreate__content__item > [data-container=labels].require ~ [data-container=limits].require ~ [data-container=more] {
	display:none
}
.taskCreate__content__editor .editor__toolbar {
	height: 36px;
	background: linear-gradient(0deg, var(--base-hlt-g-easy) 0%, var(--base-hlt-g-easy) 100%), var(--base-cont-mod-top);
	padding: 0 12px;
	border-radius: 10px;
	margin: 0 -12px;
	gap: 2px;
}
.taskCreate__content__editor .editor__toolbar-active {
	background: linear-gradient(0deg, var(--base-hlt-g-hover) 0%, var(--base-hlt-g-hover) 100%), var(--base-cont-mod-top);
}
.taskCreate__content__editor .editor__toolbar .editor-btn {
	padding:2px;
	--icon-color:var(--base-txt-tertiary);
	--icon-size: 16px;
}
.ai_loading .editor__toolbar .editor-btn[data-btn=ai] {
	transform:rotate(3600deg);
	transition:10s transform ease;
	--icon-color:var(--base-txt-link-minor);
}
.taskCreate__content__editor .editor__toolbar-active .editor-btn {
	--icon-color:var(--base-txt-primary);
}
.taskCreate__content__editor .editor__toolbar .editor-btn:not(.btn_act):hover {
	background: var(--base-hlt-g-hover);
	--icon-color:var(--base-txt-primary);
}
.taskCreate__content__editor .editor__toolbar .editor-btn.btn_act:hover {
	background: none !important;
	border-color: var(--base-line-primary) !important;
}
.taskCreate__content__editor .editor__toolbar .editor-btn.btn_act:hover:active {
	background: none !important;
	border-color: transparent !important;
}
.taskCreate__content__editor .editor__toolbar .editor-btn:not(.btn_act):hover:active {
	background: none !important;
	border-color: var(--base-line-primary) !important;
}

.taskCreate__content .editor .editor__data {
	margin: 0 -24px;
	padding: 12px 24px;
}

.taskCreate__wrapper-fullscreen .taskCreate .taskCreate__content__editor-wrapper {
	flex-grow: 1;
	max-height: 100%;
}

.taskCreate__content .taskCreate__content__item {
	padding: 4px 24px;
}
.taskCreate__content .taskCreate__content__title {
    position: relative;
	padding: 8px 24px;
}

.taskCreateMass .subtaskList .subtaskList__item {
	padding: 0 12px 0 12px;
	background: var(--base-cont-mod-top);
}
.taskCreateMass-foot {
	padding: 16px;
	gap: 4px;
}
.taskCreateMass .subtaskList .subtaskList__item .remove {
	margin:0 -8px 0 2px
}
.taskCreateMass .subtaskList .subtaskList__item:not(:hover) .remove {
	opacity:0
}
.taskCreateMass .subtaskList__item ws-icon[name=lock-fill] {
	background: var(--base-txt-alert-minor);
	--icon-color: var(--base-txt-alt-light);
	border-radius:12px;
	width:24px;
	height:24px;
	margin:0 4px;
	--icon-size: 16px;
}
.taskCreateMass-withInvite ws-icon[name=lock-fill] {
	display: none
}
.taskCreateMass:not(.taskCreateMass-withInvite) .subtaskList__item ws-icon[name=lock-fill] ~ .av_sm {
	display: none
}

.taskCreateMass ws-icon[name=parent] {
	width:24px;
	height: 24px;
	--icon-color: var(--base-txt-btn-a);
	--icon-size:16px;
	border-radius: 6px;
	background: var(--base-hlt-hover);
	margin:-2px;
}
.taskCreateMass .subtaskList__item:not(.subtaskList__item-form) .in {
	font-weight: bold;
}

.mobile-head .taskCreate__buttons {
	height: unset;
	border: unset;
	max-width: unset;
	margin: unset;
	padding: 0;
	width: unset;
}
