.tasks-page .tasks-avatar,
.tasks-page .tasks-avatar-sm,
.tasks-page .tasks-avatar-lg {
	border-radius: 50%;
	object-fit: cover;
	background: #f1f5f9;
}

.tasks-page .tasks-avatar-lg {
	border: 3px solid rgba(158, 97, 255, .25);
}

.tasks-page .tasks-task-description {
	line-height: 1.65;
	white-space: pre-wrap;
	word-break: break-word;
}

.tasks-page .tasks-card {
	display: block;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: .75rem;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tasks-page .tasks-card:hover {
	border-color: rgba(158, 97, 255, .35);
	box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
	transform: translateY(-1px);
	color: inherit;
}

.tasks-page .tasks-card__title {
	font-weight: 600;
	margin-bottom: .35rem;
}

.tasks-page .tasks-card__meta {
	font-size: .8125rem;
	color: #64748b;
}

.tasks-page .tasks-user-card:hover .fw-semibold {
	color: #9e61ff;
}

.tasks-chat-wrap {
	display: flex;
	flex-direction: column;
	min-height: 420px;
}

.tasks-chat-head {
	font-weight: 600;
}

.tasks-chat-messages {
	flex: 1;
	min-height: 280px;
	max-height: 420px;
	overflow-y: auto;
	background: rgba(15, 23, 42, .02);
}

.tasks-chat-msg {
	max-width: 85%;
	margin-bottom: .75rem;
	padding: .65rem .85rem;
	border-radius: .75rem;
	font-size: .9375rem;
	line-height: 1.45;
}

.tasks-chat-msg--mine {
	margin-left: auto;
	background: rgba(158, 97, 255, .12);
	border: 1px solid rgba(158, 97, 255, .18);
}

.tasks-chat-msg--other {
	margin-right: auto;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .08);
}

.tasks-chat-msg__meta {
	font-size: .6875rem;
	color: #94a3b8;
	margin-bottom: .25rem;
}

.tasks-chat-msg--system {
	max-width: 100%;
	text-align: center;
	background: transparent;
	border: 0;
	color: #64748b;
	font-size: .8125rem;
	padding: .25rem 0;
}

.tasks-page--my .tasks-shell-body {
	padding: 0;
}

.tasks-page--my .tasks-shell-section--compact {
	padding: 1.1rem 1.35rem;
}

.tasks-page--my .tasks-shell-section--last {
	border-bottom: 0;
	border-radius: 0 0 1.25rem 1.25rem;
}

.tasks-my-nav-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .85rem 1.35rem;
	border-bottom: 1px solid rgba(15, 23, 42, .08);
	background: rgba(15, 23, 42, .02);
}

.tasks-my-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border-bottom: 0;
	background: transparent;
}

.tasks-my-nav__filter {
	flex: 0 0 auto;
	width: 100%;
	max-width: 13.5rem;
	margin-left: auto;
}

.tasks-my-nav__status-select {
	width: 100%;
}

.tasks-my-nav__status-select .tasks-custom-select__trigger {
	min-height: 2.05rem;
	padding: .38rem .85rem;
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 600;
	background: #fff;
}

@media (max-width: 767.98px) {
	.tasks-my-nav__filter {
		max-width: none;
		width: 100%;
		margin-left: 0;
	}
}

.tasks-my-nav__link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .85rem;
	border: 1.5px solid rgba(15, 23, 42, .1);
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-size: .8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.tasks-my-nav__link:hover {
	border-color: rgba(158, 97, 255, .35);
	color: #7c3aed;
}

.tasks-my-nav__link.is-active {
	border-color: rgba(158, 97, 255, .45);
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.tasks-my-nav__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 .3rem;
	margin-left: .15rem;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: .625rem;
	font-weight: 700;
	line-height: 1;
}

.tasks-my-nav__badge.d-none {
	display: none !important;
}

.tasks-shell-head__actions--my {
	justify-content: flex-end;
}

.tasks-my-head__btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.tasks-my-head__btn--find {
	padding: .58rem 1.05rem;
	border-radius: .75rem;
	border: 1.5px solid rgba(158, 97, 255, .35);
	background: rgba(158, 97, 255, .08);
	color: #7c3aed;
	transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tasks-my-head__btn--find:hover {
	background: rgba(158, 97, 255, .14);
	border-color: rgba(158, 97, 255, .5);
	color: #6d28d9;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(158, 97, 255, .12);
}

.tasks-my-head__btn--create {
	padding: .58rem 1.05rem;
	border-radius: .75rem;
}

@media (max-width: 767.98px) {
	.tasks-shell-head__actions--my {
		width: 100%;
	}
}

html.dark-theme .tasks-my-nav-bar,
html[data-bs-theme="dark"] .tasks-my-nav-bar {
	background: rgba(255, 255, 255, .03);
	border-bottom-color: rgba(148, 163, 184, .12);
}

html.dark-theme .tasks-my-nav,
html[data-bs-theme="dark"] .tasks-my-nav {
	background: transparent;
	border-bottom-color: transparent;
}

html.dark-theme .tasks-my-nav__status-select .tasks-custom-select__trigger,
html[data-bs-theme="dark"] .tasks-my-nav__status-select .tasks-custom-select__trigger {
	background: rgba(255, 255, 255, .04);
}

html.dark-theme .tasks-my-nav__link,
html[data-bs-theme="dark"] .tasks-my-nav__link {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(148, 163, 184, .18);
	color: #cbd5e1;
}

html.dark-theme .tasks-my-nav__link.is-active,
html[data-bs-theme="dark"] .tasks-my-nav__link.is-active {
	border-color: rgba(158, 97, 255, .45);
	background: rgba(158, 97, 255, .16);
	color: #c4b5fd;
}

html.dark-theme .tasks-my-head__btn--find,
html[data-bs-theme="dark"] .tasks-my-head__btn--find {
	border-color: rgba(158, 97, 255, .4);
	background: rgba(158, 97, 255, .12);
	color: #c4b5fd;
}

html.dark-theme .tasks-my-head__btn--find:hover,
html[data-bs-theme="dark"] .tasks-my-head__btn--find:hover {
	border-color: rgba(158, 97, 255, .55);
	background: rgba(158, 97, 255, .2);
	color: #ddd6fe;
}

.tasks-my-stack {
	display: flex;
	flex-direction: column;
	gap: .65rem;
}

.tasks-my-loading {
	padding: .5rem 0;
	font-size: .875rem;
}

.tasks-my-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 1.35rem 1rem;
	border: 1.5px dashed rgba(15, 23, 42, .1);
	border-radius: .85rem;
	background: rgba(15, 23, 42, .02);
	color: #94a3b8;
	font-size: .875rem;
	text-align: center;
}

.tasks-my-empty .bi {
	font-size: 1.35rem;
	opacity: .75;
}

.tasks-my-card {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .8rem .95rem;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: .75rem;
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tasks-my-card:hover {
	border-color: rgba(158, 97, 255, .28);
	box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
	color: inherit;
}

.tasks-my-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.tasks-my-card__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .3rem;
	margin-bottom: .35rem;
}

.tasks-my-card__badges .badge,
.tasks-my-card__chips .badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: .6875rem;
	font-weight: 600;
	padding: .24rem .5rem;
	line-height: 1;
}

.tasks-my-card__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .3rem;
	margin-bottom: .35rem;
}

.tasks-my-card__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #64748b !important;
	background: rgba(15, 23, 42, .05) !important;
	font-weight: 500 !important;
	line-height: 1;
}

.tasks-my-card__category {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1;
	color: #64748b;
	background: rgba(15, 23, 42, .05);
	padding: .24rem .5rem;
	border-radius: 999px;
	white-space: nowrap;
}

.tasks-my-card__title {
	font-size: .9375rem;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.35;
	margin-bottom: .2rem;
	word-break: break-word;
}

.tasks-my-card:hover .tasks-my-card__title {
	color: #7c3aed;
}

.tasks-my-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .85rem;
	font-size: .8125rem;
	color: #64748b;
	line-height: 1.4;
}

.tasks-my-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: .32rem;
	min-width: 0;
}

.tasks-my-card__meta-item > span {
	word-break: break-word;
}

.tasks-my-card__meta-icon {
	flex-shrink: 0;
	font-size: .8125rem;
	line-height: 1;
	color: #94a3b8;
}

.tasks-my-card__arrow {
	flex-shrink: 0;
	align-self: center;
	font-size: .8125rem;
	color: #cbd5e1;
	transition: color .15s ease, transform .15s ease;
}

.tasks-my-card:hover .tasks-my-card__arrow {
	color: #9e61ff;
	transform: translateX(2px);
}

.tasks-deal-sidebar-facts {
	display: flex;
	flex-direction: column;
	gap: .85rem;
}

.tasks-deal-sidebar-facts__item {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.tasks-deal-sidebar-facts__label {
	font-size: .75rem;
	font-weight: 600;
	color: #64748b;
}

.tasks-deal-sidebar-facts__value {
	font-size: .9375rem;
	font-weight: 600;
	color: #334155;
	line-height: 1.4;
	word-break: break-word;
}

html.dark-theme .tasks-deal-sidebar-facts__label,
html[data-bs-theme="dark"] .tasks-deal-sidebar-facts__label {
	color: #94a3b8;
}

html.dark-theme .tasks-deal-sidebar-facts__value,
html[data-bs-theme="dark"] .tasks-deal-sidebar-facts__value {
	color: #e2e8f0;
}

html.dark-theme .tasks-my-card,
html[data-bs-theme="dark"] .tasks-my-card {
	background: rgba(255, 255, 255, .03);
	border-color: rgba(148, 163, 184, .14);
}

html.dark-theme .tasks-my-card__title,
html[data-bs-theme="dark"] .tasks-my-card__title {
	color: #e2e8f0;
}

html.dark-theme .tasks-my-card:hover .tasks-my-card__title,
html[data-bs-theme="dark"] .tasks-my-card:hover .tasks-my-card__title {
	color: #c4b5fd;
}

html.dark-theme .tasks-my-card:hover .tasks-my-card__arrow,
html[data-bs-theme="dark"] .tasks-my-card:hover .tasks-my-card__arrow {
	color: #94a3b8;
}

html.dark-theme .tasks-my-card:hover,
html[data-bs-theme="dark"] .tasks-my-card:hover {
	border-color: rgba(148, 163, 184, .22);
	box-shadow: none;
}

html.dark-theme .tasks-my-card__category,
html[data-bs-theme="dark"] .tasks-my-card__category {
	color: #94a3b8;
	background: rgba(255, 255, 255, .06);
}

html.dark-theme .tasks-my-card__meta-icon,
html[data-bs-theme="dark"] .tasks-my-card__meta-icon {
	color: #64748b;
}

html.dark-theme .tasks-my-empty,
html[data-bs-theme="dark"] .tasks-my-empty {
	background: rgba(255, 255, 255, .03);
	border-color: rgba(148, 163, 184, .16);
	color: #94a3b8;
}

.tasks-review-item {
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.tasks-review-item:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

html.dark-theme .tasks-page .tasks-card,
html[data-bs-theme="dark"] .tasks-page .tasks-card {
	border-color: rgba(148, 163, 184, .16);
	background: rgba(255, 255, 255, .03);
}

html.dark-theme .tasks-chat-messages,
html[data-bs-theme="dark"] .tasks-chat-messages {
	background: rgba(0, 0, 0, .15);
}

html.dark-theme .tasks-chat-msg--other,
html[data-bs-theme="dark"] .tasks-chat-msg--other {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(148, 163, 184, .12);
}

.tasks-chat-image {
	max-width: min(100%, 280px);
	border-radius: .5rem;
	display: block;
}

.tasks-chat-attach a {
	text-decoration: none;
	word-break: break-all;
}

.tasks-admin-dispute {
	background: rgba(15, 23, 42, .02);
}

.tasks-admin-moderation {
	background: rgba(15, 23, 42, .02);
}

.tasks-admin-changes {
	padding: .75rem .85rem;
	border-radius: .75rem;
	border: 1px solid rgba(158, 97, 255, .18);
	background: rgba(158, 97, 255, .04);
}

.tasks-admin-changes__list {
	margin-top: .45rem;
}

.tasks-admin-changes__item + .tasks-admin-changes__item {
	margin-top: .55rem;
}

.tasks-admin-changes__diff {
	padding-left: .15rem;
}

.tasks-admin-changes__was,
.tasks-admin-changes__now {
	line-height: 1.45;
	word-break: break-word;
}

.tasks-payment-block {
	background: rgba(158, 97, 255, .04);
}

.tasks-payment-block__title {
	color: #5b21b6;
}

.tasks-direct-payment-notice__list {
	margin: 0;
	padding-left: 1.15rem;
}

.tasks-direct-payment-notice__list li + li {
	margin-top: .35rem;
}

.tasks-direct-payment-notice--compact {
	line-height: 1.45;
}

.tasks-yoo-pay-box .yoo-widget-box {
	min-height: 420px;
	border-radius: .75rem;
	overflow: hidden;
}

.tasks-yoo-pay-box .yoo-pay-sum {
	font-size: 1.25rem;
}

.tasks-payment-choice {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.tasks-payment-choice--grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: .85rem;
	width: 100%;
}

.tasks-payment-choice--compact .tasks-payment-choice__box {
	padding: .85rem .95rem;
}

.tasks-payment-choice--compact .tasks-payment-choice__list {
	display: none;
}

.tasks-payment-switch {
	padding-top: .25rem;
	border-top: 1px solid rgba(15, 23, 42, .08);
}

@media (min-width: 768px) {
	.tasks-payment-choice--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tasks-payment-choice__item {
	display: block;
	margin: 0;
	cursor: pointer;
}

.tasks-payment-choice__item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tasks-payment-choice__box {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	border: 1.5px solid rgba(15, 23, 42, .1);
	border-radius: 1rem;
	padding: 1rem 1.05rem;
	height: 100%;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.tasks-payment-choice__item:hover .tasks-payment-choice__box {
	border-color: rgba(158, 97, 255, .28);
	box-shadow: 0 8px 24px rgba(158, 97, 255, .08);
}

.tasks-payment-choice__item input:checked + .tasks-payment-choice__box {
	border-color: #9e61ff;
	background: linear-gradient(135deg, rgba(158, 97, 255, .07), rgba(158, 97, 255, .02));
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12);
}

.tasks-payment-choice__item--disabled {
	opacity: .55;
	cursor: not-allowed;
}

.tasks-payment-choice__item--disabled .tasks-payment-choice__box {
	pointer-events: none;
}

.tasks-payment-choice__icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: .75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, .06);
	color: #475569;
	font-size: 1.1rem;
}

.tasks-payment-choice__icon--safe {
	background: rgba(158, 97, 255, .12);
	color: #7c3aed;
}

.tasks-payment-choice__item input:checked + .tasks-payment-choice__box .tasks-payment-choice__icon {
	background: rgba(158, 97, 255, .18);
	color: #7c3aed;
}

.tasks-payment-choice__content {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	min-width: 0;
}

.tasks-payment-choice__name {
	font-weight: 600;
	font-size: .9375rem;
	color: #1e293b;
	line-height: 1.35;
}

.tasks-payment-choice__desc {
	font-size: .8125rem;
	color: #64748b;
	line-height: 1.45;
}

.tasks-payment-choice__list {
	margin: .55rem 0 0;
	padding-left: 1.1rem;
	font-size: .75rem;
	color: #64748b;
	line-height: 1.5;
}

.tasks-payment-choice__list li + li {
	margin-top: .2rem;
}

.tasks-deadline-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.tasks-deadline-tab {
	margin: 0;
	cursor: pointer;
}

.tasks-deadline-tab input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tasks-deadline-tab span {
	display: inline-flex;
	align-items: center;
	padding: .45rem .85rem;
	border-radius: 999px;
	border: 1.5px solid rgba(15, 23, 42, .12);
	background: #fff;
	font-size: .8125rem;
	font-weight: 500;
	color: #475569;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.tasks-deadline-tab input:checked + span {
	border-color: #9e61ff;
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.tasks-budget-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.tasks-budget-tab {
	margin: 0;
	cursor: pointer;
}

.tasks-budget-tab input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tasks-budget-tab span {
	display: inline-flex;
	align-items: center;
	padding: .45rem .85rem;
	border-radius: 999px;
	border: 1.5px solid rgba(15, 23, 42, .12);
	background: #fff;
	font-size: .8125rem;
	font-weight: 500;
	color: #475569;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.tasks-budget-tab input:checked + span {
	border-color: #9e61ff;
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.tasks-budget-row__field--wide {
	flex: 1 1 100%;
	max-width: 20rem;
}

.tasks-deadline-panel {
	max-width: 320px;
}

.tasks-deadline-date-field .tasks-form-control {
	padding-right: 2.75rem;
	cursor: pointer;
}

html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-deadline-date-field .tasks-form-control,
html.light-theme .tasks-page--create .tasks-deadline-date-field .tasks-form-control {
	border: 1.5px solid rgba(15, 23, 42, .14) !important;
}

.tasks-budget-row__field {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.tasks-budget-row__prefix {
	position: absolute;
	left: .85rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	font-size: .8125rem;
	font-weight: 500;
	color: #64748b;
	pointer-events: none;
}

.tasks-budget-row__input {
	padding-left: 2.15rem !important;
	width: 100%;
}

html.dark-theme .tasks-deadline-tab span,
html[data-bs-theme="dark"] .tasks-deadline-tab span,
html.dark-theme .tasks-budget-tab span,
html[data-bs-theme="dark"] .tasks-budget-tab span {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(148, 163, 184, .18);
	color: #cbd5e1;
}

html.dark-theme .tasks-deadline-tab input:checked + span,
html[data-bs-theme="dark"] .tasks-deadline-tab input:checked + span,
html.dark-theme .tasks-budget-tab input:checked + span,
html[data-bs-theme="dark"] .tasks-budget-tab input:checked + span {
	border-color: rgba(158, 97, 255, .5);
	background: rgba(158, 97, 255, .18);
	color: #c4b5fd;
	font-weight: 600;
}

html.dark-theme .tasks-payment-choice__list,
html[data-bs-theme="dark"] .tasks-payment-choice__list {
	color: #94a3b8;
}

/* Unified shell layout (create form design for all tasks pages) */
.tasks-page .container {
	width: 100%;
	/* Match Bootstrap .container widths */
	max-width: 100%;
}
@media (min-width: 576px) {
	.tasks-page .container { max-width: 540px; }
}
@media (min-width: 768px) {
	.tasks-page .container { max-width: 720px; }
}
@media (min-width: 992px) {
	.tasks-page .container { max-width: 960px; }
}
@media (min-width: 1200px) {
	.tasks-page .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
	.tasks-page .container { max-width: 1320px; }
}

.tasks-shell,
.tasks-create-shell {
	width: 100%;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 1.25rem;
	box-shadow: 0 16px 48px rgba(15, 23, 42, .06);
	overflow: hidden;
}

.tasks-shell-head,
.tasks-create-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.35rem 1.35rem 1.1rem;
	border-bottom: 1px solid rgba(15, 23, 42, .07);
	background: linear-gradient(180deg, rgba(158, 97, 255, .06), rgba(158, 97, 255, 0));
	border-radius: 1.25rem 1.25rem 0 0;
}

.tasks-shell-head__main {
	flex: 1 1 16rem;
	min-width: 0;
}

.tasks-shell-head__actions,
.tasks-shell-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}

.tasks-shell-back,
.tasks-create-back {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .8125rem;
	color: #64748b;
	text-decoration: none;
	margin-bottom: .65rem;
	transition: color .15s ease;
}

.tasks-shell-back:hover,
.tasks-create-back:hover {
	color: #9e61ff;
}

.tasks-shell-title,
.tasks-create-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 .35rem;
	color: #1e293b;
	letter-spacing: -.02em;
}

.tasks-shell-lead,
.tasks-create-lead {
	font-size: .875rem;
	color: #64748b;
	line-height: 1.5;
	max-width: 36rem;
	margin: 0;
}

.tasks-shell-body,
.tasks-create-form {
	width: 100%;
}

.tasks-shell-section,
.tasks-form-section {
	padding: 1.25rem 1.35rem 1.35rem;
	border-bottom: 1px solid rgba(15, 23, 42, .06);
	width: 100%;
}

.tasks-shell-section:has(.tasks-filters) {
	overflow: visible;
}

.tasks-shell-section:last-child,
.tasks-form-section:last-of-type {
	border-bottom: 0;
	border-radius: 0 0 1.25rem 1.25rem;
}

.tasks-shell-section--flush {
	padding-left: 0;
	padding-right: 0;
}

.tasks-shell-section__title,
.tasks-form-section__title {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9e61ff;
	margin: 0 0 .85rem;
}

.tasks-shell-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	margin-bottom: .75rem;
}

.tasks-shell-badge-row .ms-auto {
	margin-left: auto !important;
}

.tasks-meta-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem 1.25rem;
	font-size: .875rem;
	color: #64748b;
}

.tasks-meta-grid strong {
	color: #334155;
	font-weight: 600;
}

.tasks-meta-grid__full {
	grid-column: 1 / -1;
}

@media (min-width: 992px) {
	.tasks-shell-body > .row > .col-lg-8 {
		border-right: 1px solid rgba(15, 23, 42, .06);
	}

	.tasks-shell-body > .row > .col-md-6:first-child {
		border-right: 1px solid rgba(15, 23, 42, .06);
	}
}

html.dark-theme .tasks-shell-body > .row > .col-lg-8,
html[data-bs-theme="dark"] .tasks-shell-body > .row > .col-lg-8,
html.dark-theme .tasks-shell-body > .row > .col-md-6:first-child,
html[data-bs-theme="dark"] .tasks-shell-body > .row > .col-md-6:first-child {
	border-right-color: rgba(148, 163, 184, .1);
}

.tasks-filters {
	display: grid;
	grid-template-columns: 1fr;
	gap: .75rem;
	position: relative;
	z-index: 20;
}

.tasks-filters .tasks-custom-select.is-open {
	z-index: 50;
}

@media (min-width: 768px) {
	.tasks-filters {
		grid-template-columns: 1fr 1.15fr;
		align-items: end;
	}
}

.tasks-filters .tasks-custom-select {
	width: 100%;
}

.tasks-filters .form-control,
.tasks-filters .form-select,
.tasks-filters .tasks-form-control {
	width: 100%;
}

.tasks-filters > div {
	display: flex;
	flex-direction: column;
}

.tasks-filters .tasks-custom-select__trigger {
	box-sizing: border-box;
	min-height: calc(.62rem * 2 + 1.25 * .9375rem + 3px);
}

.tasks-bid-item {
	border: 1.5px solid rgba(15, 23, 42, .08);
	border-radius: .85rem;
	padding: 1rem;
	margin-bottom: .75rem;
	background: rgba(15, 23, 42, .02);
}

.tasks-bid-item:last-child {
	margin-bottom: 0;
}

.tasks-bids-section {
	border-top: 1px solid rgba(15, 23, 42, .06);
}

.tasks-bids-section .tasks-bid-item {
	padding: 1.15rem 1.25rem;
}

.tasks-bid-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
}

.tasks-bids-section .tasks-bid-chat-root {
	width: 100%;
	margin-top: .65rem;
}

.tasks-bids-section .tasks-bid-chat-root:empty {
	display: none;
	margin: 0;
}

.tasks-bids-section .tasks-bid-chat-wrap {
	width: 100%;
}

.tasks-bids-section .tasks-bid-chat-messages {
	max-height: 320px;
	min-height: 160px;
}

.tasks-shell-section .tasks-bid-chat-messages {
	max-height: 280px;
	min-height: 140px;
}

.tasks-payment-block {
	border: 1.5px solid rgba(158, 97, 255, .18) !important;
	border-radius: .85rem !important;
	background: rgba(158, 97, 255, .04);
}

.tasks-proposal-block,
.tasks-proposal-confirm {
	border: 1.5px solid rgba(158, 97, 255, .18);
	border-radius: .85rem;
	background: rgba(158, 97, 255, .04);
}

.tasks-shell-body .tasks-chat-wrap {
	border: 1.5px solid rgba(15, 23, 42, .08);
	border-radius: .85rem;
	overflow: hidden;
	background: #fff;
	box-shadow: none;
}

.tasks-shell-body .tasks-chat-wrap .tasks-chat-head {
	padding: .85rem 1rem;
	border-bottom: 1px solid rgba(15, 23, 42, .06);
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9e61ff;
}

.tasks-shell-body .tasks-chat-messages {
	border-radius: 0;
	border: 0;
}

.tasks-shell-body .tasks-chat-form {
	border-top: 1px solid rgba(15, 23, 42, .06) !important;
	padding: .85rem 1rem !important;
}

.tasks-shell-stack {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tasks-shell-stack .tasks-shell {
	margin: 0;
}

@media (max-width: 575.98px) {
	.tasks-meta-grid {
		grid-template-columns: 1fr;
	}
}

/* Create task form */
.tasks-page--create .container {
	width: 100%;
	max-width: 100%;
}
@media (min-width: 576px) {
	.tasks-page--create .container { max-width: 540px; }
}
@media (min-width: 768px) {
	.tasks-page--create .container { max-width: 720px; }
}
@media (min-width: 992px) {
	.tasks-page--create .container { max-width: 960px; }
}
@media (min-width: 1200px) {
	.tasks-page--create .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
	.tasks-page--create .container { max-width: 1320px; }
}

.tasks-create-shell {
	width: 100%;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 1.25rem;
	box-shadow: 0 16px 48px rgba(15, 23, 42, .06);
	overflow: hidden;
}

.tasks-create-head {
	padding: 1.35rem 1.35rem 1.1rem;
	border-bottom: 1px solid rgba(15, 23, 42, .07);
	background: linear-gradient(180deg, rgba(158, 97, 255, .06), rgba(158, 97, 255, 0));
}

.tasks-create-back {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .8125rem;
	color: #64748b;
	text-decoration: none;
	margin-bottom: .65rem;
	transition: color .15s ease;
}

.tasks-create-back:hover {
	color: #9e61ff;
}

.tasks-create-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 .35rem;
	color: #1e293b;
	letter-spacing: -.02em;
}

.tasks-create-lead {
	font-size: .875rem;
	color: #64748b;
	line-height: 1.5;
	max-width: 36rem;
}

.tasks-create-form {
	padding: .35rem 0 0;
	width: 100%;
}

.tasks-form-section {
	padding: 1.25rem 1.35rem 1.35rem;
	border-bottom: 1px solid rgba(15, 23, 42, .06);
	width: 100%;
}

.tasks-create-form .row {
	width: 100%;
}

.tasks-form-section:last-of-type {
	border-bottom: 0;
}

.tasks-form-section__title {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9e61ff;
	margin: 0 0 .85rem;
}

.tasks-form-section__hint {
	font-size: .8125rem;
	color: #64748b;
	margin: -.35rem 0 1rem;
}

.tasks-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
	gap: .65rem;
	margin-bottom: .85rem;
}

.tasks-photo-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: .75rem;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, .1);
	background: rgba(15, 23, 42, .03);
}

.tasks-photo-item.is-removed {
	display: none;
}

.tasks-photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tasks-photo-item__remove {
	position: absolute;
	top: .35rem;
	right: .35rem;
	width: 1.65rem;
	height: 1.65rem;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, .72);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	transition: background .15s ease;
}

.tasks-photo-item__remove:hover {
	background: rgba(220, 38, 38, .92);
}

.tasks-photo-upload__btn:disabled {
	opacity: .55;
	pointer-events: none;
}

.tasks-task-photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
	gap: .75rem;
}

.tasks-task-photos__item {
	display: block;
	border-radius: .85rem;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, .08);
	background: rgba(15, 23, 42, .02);
	transition: box-shadow .15s ease, transform .15s ease;
}

.tasks-task-photos__item:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
	transform: translateY(-1px);
}

.tasks-task-photos__item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

html.dark-theme .tasks-photo-item,
html[data-bs-theme="dark"] .tasks-photo-item,
html.dark-theme .tasks-task-photos__item,
html[data-bs-theme="dark"] .tasks-task-photos__item {
	border-color: rgba(148, 163, 184, .16);
	background: rgba(255, 255, 255, .03);
}

.tasks-form-label {
	font-size: .8125rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: .4rem;
}

.tasks-form-optional {
	font-weight: 400;
	color: #94a3b8;
}

.tasks-form-control {
	width: 100%;
	max-width: 100%;
	display: block;
	border-radius: .75rem;
	border: 1.5px solid rgba(15, 23, 42, .14);
	padding: .62rem .85rem;
	font-size: .9375rem;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tasks-form-control:focus {
	border-color: rgba(158, 97, 255, .55);
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12);
	outline: none;
}

.tasks-form-floating > .form-control:not(textarea),
.tasks-form-floating > .form-control.tasks-form-control:not(textarea) {
	height: calc(3.5rem + calc(var(--bs-border-width) * 2));
	min-height: calc(3.5rem + calc(var(--bs-border-width) * 2));
	line-height: 1.25;
	padding: 1rem .75rem;
}

.tasks-form-floating > .form-control:not(textarea):focus,
.tasks-form-floating > .form-control:not(textarea):not(:placeholder-shown) {
	padding-top: 1.625rem;
	padding-bottom: .625rem;
}

.tasks-form-floating > textarea.form-control,
.tasks-form-floating > textarea.form-control.tasks-form-control,
.tasks-form-floating > textarea.tasks-form-control.tasks-form-textarea {
	min-height: 10rem;
	height: auto;
	padding: 1rem .75rem;
}

.tasks-form-floating > textarea.form-control:focus,
.tasks-form-floating > textarea.form-control:not(:placeholder-shown) {
	padding-top: 1.625rem;
	padding-bottom: .625rem;
}

/* Сброс глобального .row .form-floating > label { left: calc(...) } */
.tasks-page .row .form-floating > label {
	left: 0 !important;
}

.tasks-form-floating > label {
	color: #64748b;
}

.tasks-form-floating > .form-control:focus ~ label,
.tasks-form-floating > .form-control:not(:placeholder-shown) ~ label,
.tasks-form-floating > textarea.form-control:focus ~ label,
.tasks-form-floating > textarea.form-control:not(:placeholder-shown) ~ label {
	color: #9e61ff;
	opacity: 1;
}

.tasks-page .form-floating > .form-control:focus ~ label::after,
.tasks-page .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.tasks-page .form-floating > textarea.form-control:focus ~ label::after,
.tasks-page .form-floating > textarea.form-control:not(:placeholder-shown) ~ label::after {
	background-color: #fff;
	inset: 1rem 0.375rem;
}

html.dark-theme .tasks-page .form-floating > .form-control:focus ~ label::after,
html.dark-theme .tasks-page .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
html.dark-theme .tasks-page .form-floating > textarea.form-control:focus ~ label::after,
html.dark-theme .tasks-page .form-floating > textarea.form-control:not(:placeholder-shown) ~ label::after,
html[data-bs-theme="dark"] .tasks-page .form-floating > .form-control:focus ~ label::after,
html[data-bs-theme="dark"] .tasks-page .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
html[data-bs-theme="dark"] .tasks-page .form-floating > textarea.form-control:focus ~ label::after,
html[data-bs-theme="dark"] .tasks-page .form-floating > textarea.form-control:not(:placeholder-shown) ~ label::after {
	background-color: rgba(37, 32, 51, .98);
}

.tasks-form-floating.tasks-deadline-date-field > label {
	z-index: 3;
}

.tasks-budget-row__field .tasks-form-floating {
	width: 100%;
}

html.dark-theme .tasks-form-floating > label,
html[data-bs-theme="dark"] .tasks-form-floating > label {
	color: #94a3b8;
}

/* Переопределение lk-page: border:none !important в светлой теме */
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page .form-control,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page .form-select,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page textarea.form-control,
html.light-theme .tasks-page .form-control,
html.light-theme .tasks-page .form-select,
html.light-theme .tasks-page textarea.form-control,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-create-form .form-control,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-create-form .form-select,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-create-form textarea.form-control,
html.light-theme .tasks-page--create .tasks-create-form .form-control,
html.light-theme .tasks-page--create .tasks-create-form .form-select,
html.light-theme .tasks-page--create .tasks-create-form textarea.form-control {
	width: 100% !important;
	max-width: 100% !important;
	border: 1.5px solid rgba(15, 23, 42, .14) !important;
	box-shadow: none !important;
	background: #fff !important;
}

html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page .form-control:focus,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page .form-select:focus,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page textarea.form-control:focus,
html.light-theme .tasks-page .form-control:focus,
html.light-theme .tasks-page .form-select:focus,
html.light-theme .tasks-page textarea.form-control:focus,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-create-form .form-control:focus,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-create-form .form-select:focus,
html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-create-form textarea.form-control:focus,
html.light-theme .tasks-page--create .tasks-create-form .form-control:focus,
html.light-theme .tasks-page--create .tasks-create-form .form-select:focus,
html.light-theme .tasks-page--create .tasks-create-form textarea.form-control:focus {
	border-color: rgba(158, 97, 255, .55) !important;
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12) !important;
}

.tasks-form-textarea {
	width: 100%;
	min-height: 10rem;
	resize: vertical;
	line-height: 1.55;
}

.tasks-form-hint {
	font-size: .8125rem;
	color: #64748b;
	margin-top: .45rem;
}

.tasks-budget-field {
	width: 100%;
}

.tasks-budget-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: .65rem;
	width: 100%;
}

.tasks-budget-row__toggle {
	margin: 0;
	cursor: pointer;
	flex: 0 0 auto;
}

.tasks-budget-row__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tasks-budget-row__toggle-box {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	height: 100%;
	min-height: 42px;
	padding: 0 1rem;
	border-radius: .75rem;
	border: 1.5px solid rgba(15, 23, 42, .12);
	background: #fff;
	font-size: .875rem;
	font-weight: 500;
	color: #475569;
	white-space: nowrap;
	transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
	user-select: none;
}

.tasks-budget-row__toggle:hover .tasks-budget-row__toggle-box {
	border-color: rgba(158, 97, 255, .3);
}

.tasks-budget-row__toggle input:checked + .tasks-budget-row__toggle-box {
	border-color: #9e61ff;
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .1);
}

.tasks-budget-row__input:disabled {
	background: rgba(15, 23, 42, .04);
	color: #94a3b8;
	cursor: not-allowed;
}

.tasks-create-notice {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	margin-top: .85rem;
	padding: .65rem .85rem;
	border-radius: .75rem;
	font-size: .8125rem;
	line-height: 1.45;
}

.tasks-create-notice--warn {
	background: rgba(245, 158, 11, .1);
	color: #92400e;
	border: 1px solid rgba(245, 158, 11, .22);
}

.tasks-create-footer {
	padding: 1rem 1.35rem 1.35rem;
	background: rgba(15, 23, 42, .02);
	border-top: 1px solid rgba(15, 23, 42, .06);
	width: 100%;
}

@media (max-width: 575.98px) {
	.tasks-budget-row {
		flex-wrap: wrap;
	}

	.tasks-budget-row__field {
		flex: 1 1 100%;
	}

	.tasks-budget-row__toggle {
		width: 100%;
	}

	.tasks-budget-row__toggle-box {
		width: 100%;
		justify-content: center;
	}
}

.tasks-create-submit {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .7rem 1.35rem;
	font-weight: 600;
	border-radius: .75rem;
}

html.dark-theme .tasks-shell,
html[data-bs-theme="dark"] .tasks-shell,
html.dark-theme .tasks-create-shell,
html[data-bs-theme="dark"] .tasks-create-shell {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(148, 163, 184, .14);
	box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}

html.dark-theme .tasks-shell-head,
html[data-bs-theme="dark"] .tasks-shell-head,
html.dark-theme .tasks-create-head,
html[data-bs-theme="dark"] .tasks-create-head {
	border-bottom-color: rgba(148, 163, 184, .12);
	background: linear-gradient(180deg, rgba(158, 97, 255, .1), rgba(158, 97, 255, 0));
}

html.dark-theme .tasks-shell-title,
html[data-bs-theme="dark"] .tasks-shell-title,
html.dark-theme .tasks-create-title,
html[data-bs-theme="dark"] .tasks-create-title,
html.dark-theme .tasks-payment-choice__name,
html[data-bs-theme="dark"] .tasks-payment-choice__name {
	color: #e2e8f0;
}

html.dark-theme .tasks-shell-lead,
html[data-bs-theme="dark"] .tasks-shell-lead,
html.dark-theme .tasks-create-lead,
html[data-bs-theme="dark"] .tasks-create-lead,
html.dark-theme .tasks-payment-choice__desc,
html[data-bs-theme="dark"] .tasks-payment-choice__desc,
html.dark-theme .tasks-form-section__hint,
html[data-bs-theme="dark"] .tasks-form-section__hint {
	color: #94a3b8;
}

html.dark-theme .tasks-shell-section,
html[data-bs-theme="dark"] .tasks-shell-section,
html.dark-theme .tasks-form-section,
html[data-bs-theme="dark"] .tasks-form-section {
	border-bottom-color: rgba(148, 163, 184, .1);
}

html.dark-theme .tasks-meta-grid strong,
html[data-bs-theme="dark"] .tasks-meta-grid strong {
	color: #e2e8f0;
}

html.dark-theme .tasks-bid-item,
html[data-bs-theme="dark"] .tasks-bid-item {
	background: rgba(255, 255, 255, .03);
	border-color: rgba(148, 163, 184, .14);
}

html.dark-theme .tasks-shell-body .tasks-chat-wrap,
html[data-bs-theme="dark"] .tasks-shell-body .tasks-chat-wrap {
	background: rgba(255, 255, 255, .03);
	border-color: rgba(148, 163, 184, .14);
}

html.dark-theme .tasks-shell-body .tasks-chat-wrap .tasks-chat-head,
html[data-bs-theme="dark"] .tasks-shell-body .tasks-chat-wrap .tasks-chat-head {
	border-bottom-color: rgba(148, 163, 184, .12);
}

html.dark-theme .tasks-shell-body .tasks-chat-messages,
html[data-bs-theme="dark"] .tasks-shell-body .tasks-chat-messages {
	background: rgba(255, 255, 255, .02);
}

html.dark-theme .tasks-create-shell,
html[data-bs-theme="dark"] .tasks-create-shell {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(148, 163, 184, .14);
	box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}

html.dark-theme .tasks-create-head,
html[data-bs-theme="dark"] .tasks-create-head {
	border-bottom-color: rgba(148, 163, 184, .12);
	background: linear-gradient(180deg, rgba(158, 97, 255, .1), rgba(158, 97, 255, 0));
}

html.dark-theme .tasks-create-title,
html[data-bs-theme="dark"] .tasks-create-title,
html.dark-theme .tasks-payment-choice__name,
html[data-bs-theme="dark"] .tasks-payment-choice__name {
	color: #e2e8f0;
}

html.dark-theme .tasks-create-lead,
html[data-bs-theme="dark"] .tasks-create-lead,
html.dark-theme .tasks-payment-choice__desc,
html[data-bs-theme="dark"] .tasks-payment-choice__desc,
html.dark-theme .tasks-form-section__hint,
html[data-bs-theme="dark"] .tasks-form-section__hint {
	color: #94a3b8;
}

html.dark-theme .tasks-form-label,
html[data-bs-theme="dark"] .tasks-form-label {
	color: #cbd5e1;
}

html.dark-theme .tasks-form-control,
html[data-bs-theme="dark"] .tasks-form-control,
html.dark-theme .tasks-payment-choice__box,
html[data-bs-theme="dark"] .tasks-payment-choice__box,
html.dark-theme .tasks-budget-row__toggle-box,
html[data-bs-theme="dark"] .tasks-budget-row__toggle-box {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(148, 163, 184, .18);
	color: #e2e8f0;
}

html.dark-theme .tasks-payment-choice__item input:checked + .tasks-payment-choice__box,
html[data-bs-theme="dark"] .tasks-payment-choice__item input:checked + .tasks-payment-choice__box {
	background: linear-gradient(135deg, rgba(158, 97, 255, .16), rgba(158, 97, 255, .05));
}

html.dark-theme .tasks-form-section,
html[data-bs-theme="dark"] .tasks-form-section {
	border-bottom-color: rgba(148, 163, 184, .1);
}

html.dark-theme .tasks-create-footer,
html[data-bs-theme="dark"] .tasks-create-footer {
	background: rgba(0, 0, 0, .15);
	border-top-color: rgba(148, 163, 184, .1);
}

html.dark-theme .tasks-budget-row__prefix,
html[data-bs-theme="dark"] .tasks-budget-row__prefix {
	color: #94a3b8;
}

html.dark-theme .tasks-create-notice--warn,
html[data-bs-theme="dark"] .tasks-create-notice--warn {
	background: rgba(245, 158, 11, .12);
	color: #fcd34d;
	border-color: rgba(245, 158, 11, .25);
}

/* Custom select */
.tasks-custom-select {
	position: relative;
	width: 100%;
}

.tasks-custom-select__native {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tasks-custom-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	width: 100%;
	text-align: left;
	cursor: pointer;
	background: #fff;
}

.tasks-custom-select__label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tasks-custom-select__chevron {
	flex-shrink: 0;
	font-size: .875rem;
	color: #94a3b8;
	transition: transform .2s ease, color .15s ease;
}

.tasks-custom-select.is-open .tasks-custom-select__chevron {
	transform: rotate(180deg);
	color: #9e61ff;
}

.tasks-custom-select.is-open .tasks-custom-select__trigger {
	border-color: rgba(158, 97, 255, .55) !important;
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12) !important;
}

.tasks-custom-select.is-open {
	z-index: 40;
}

.tasks-custom-select__menu {
	position: absolute;
	z-index: 60;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 280px;
	overflow-y: auto;
	padding: .35rem;
	border-radius: .85rem;
	border: 1.5px solid rgba(158, 97, 255, .22);
	background: #fff;
	box-shadow: 0 12px 40px rgba(15, 23, 42, .12), 0 0 0 1px rgba(158, 97, 255, .06);
}

.tasks-custom-select__menu[hidden] {
	display: none;
}

.tasks-custom-select__menu--fixed {
	position: fixed;
	right: auto;
	z-index: 2000;
}

.tasks-custom-select__option {
	display: block;
	width: 100%;
	padding: .55rem .75rem;
	border: 0;
	border-radius: .55rem;
	background: transparent;
	color: #334155;
	font-size: .9375rem;
	text-align: left;
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
}

.tasks-custom-select__option:hover,
.tasks-custom-select__option:focus {
	outline: none;
	background: rgba(158, 97, 255, .08);
	color: #5b21b6;
}

.tasks-custom-select__option.is-selected {
	background: rgba(158, 97, 255, .12);
	color: #6d28d9;
	font-weight: 600;
}

html:not(.dark-theme):not([data-bs-theme="dark"]) .tasks-page--create .tasks-custom-select__trigger,
html.light-theme .tasks-page--create .tasks-custom-select__trigger {
	border: 1.5px solid rgba(15, 23, 42, .14) !important;
	box-shadow: none !important;
}

html.dark-theme .tasks-custom-select__menu,
html[data-bs-theme="dark"] .tasks-custom-select__menu {
	background: #2a2438;
	border-color: rgba(158, 97, 255, .28);
	box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
}

html.dark-theme .tasks-custom-select__trigger,
html[data-bs-theme="dark"] .tasks-custom-select__trigger {
	background: rgba(255, 255, 255, .05);
	color: #e2e8f0;
}

html.dark-theme .tasks-custom-select__option,
html[data-bs-theme="dark"] .tasks-custom-select__option {
	color: #e2e8f0;
}

html.dark-theme .tasks-custom-select__option:hover,
html[data-bs-theme="dark"] .tasks-custom-select__option:focus,
html.dark-theme .tasks-custom-select__option.is-selected,
html[data-bs-theme="dark"] .tasks-custom-select__option.is-selected {
	color: #e9d5ff;
}

.tasks-task-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
}

.tasks-deal-sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: .65rem;
}

.tasks-deal-sidebar-actions .btn,
.tasks-deal-sidebar-actions .tasks-task-actions__btn {
	width: 100%;
	justify-content: center;
}

.tasks-task-actions__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .58rem 1.05rem;
	border-radius: .75rem;
	border: 1.5px solid transparent;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
	transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tasks-task-actions__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

.tasks-task-actions__btn--edit {
	background: rgba(158, 97, 255, .12);
	border-color: rgba(158, 97, 255, .35);
	color: #6d28d9;
}

.tasks-task-actions__btn--edit:hover {
	background: rgba(158, 97, 255, .18);
	border-color: #9e61ff;
	color: #5b21b6;
}

.tasks-task-actions__btn--cancel {
	background: #fff;
	border-color: rgba(239, 68, 68, .35);
	color: #dc2626;
}

.tasks-task-actions__btn--cancel:hover {
	background: rgba(239, 68, 68, .08);
	border-color: #ef4444;
	color: #b91c1c;
}

html.dark-theme .tasks-task-actions__btn,
html[data-bs-theme="dark"] .tasks-task-actions__btn {
	box-shadow: none;
}

html.dark-theme .tasks-task-actions__btn--edit,
html[data-bs-theme="dark"] .tasks-task-actions__btn--edit {
	background: rgba(158, 97, 255, .16);
	border-color: rgba(158, 97, 255, .42);
	color: #e9d5ff;
}

html.dark-theme .tasks-task-actions__btn--edit:hover,
html[data-bs-theme="dark"] .tasks-task-actions__btn--edit:hover {
	background: rgba(158, 97, 255, .24);
	border-color: #b692f6;
	color: #f3e8ff;
}

html.dark-theme .tasks-task-actions__btn--cancel,
html[data-bs-theme="dark"] .tasks-task-actions__btn--cancel {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(248, 113, 113, .38);
	color: #fca5a5;
}

html.dark-theme .tasks-task-actions__btn--cancel:hover,
html[data-bs-theme="dark"] .tasks-task-actions__btn--cancel:hover {
	background: rgba(239, 68, 68, .14);
	border-color: #f87171;
	color: #fecaca;
}

/* Кастомные диалоги confirm / alert */
.tasks-dialog .modal-dialog {
	max-width: 420px;
}

.tasks-dialog__content {
	border: 1px solid rgba(158, 97, 255, .18);
	border-radius: 1rem;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
	overflow: hidden;
}

.tasks-dialog__header {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	padding: 1.25rem 1.25rem .75rem;
	border-bottom: 0;
}

.tasks-dialog__head-text {
	flex: 1 1 auto;
	min-width: 0;
}

.tasks-dialog__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: .35rem;
}

.tasks-dialog__body {
	font-size: .9375rem;
	line-height: 1.5;
	color: #64748b;
	white-space: pre-wrap;
}

.tasks-dialog__icon {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: .75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.tasks-dialog__icon--confirm {
	background: rgba(158, 97, 255, .12);
	color: #7c3aed;
}

.tasks-dialog__icon--alert {
	background: rgba(245, 158, 11, .14);
	color: #d97706;
}

.tasks-dialog__icon--success {
	background: rgba(34, 197, 94, .14);
	color: #16a34a;
}

.tasks-dialog__footer {
	padding: .75rem 1.25rem 1.25rem;
	border-top: 0;
	gap: .5rem;
}

.tasks-dialog__footer .btn {
	border-radius: .65rem;
	min-width: 6.5rem;
}

html.dark-theme .tasks-dialog__content,
html[data-bs-theme="dark"] .tasks-dialog__content {
	background: #252033;
	border-color: rgba(158, 97, 255, .24);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

html.dark-theme .tasks-dialog__title,
html[data-bs-theme="dark"] .tasks-dialog__title {
	color: #f1f5f9;
}

html.dark-theme .tasks-dialog__body,
html[data-bs-theme="dark"] .tasks-dialog__body {
	color: #94a3b8;
}

.tasks-bid-chat-block {
	margin-top: .5rem;
}

.tasks-bid-chat-root {
	width: 100%;
}

.tasks-bid-chat-wrap {
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin-top: .65rem;
	border: 1.5px solid rgba(158, 97, 255, .16);
	border-radius: .85rem;
	overflow: hidden;
	background: #fff;
}

.tasks-bid-chat-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 .35rem;
	margin-left: .25rem;
	border-radius: 999px;
	background: #9e61ff;
	color: #fff;
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1;
}

.tasks-bid-chat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .65rem .85rem;
	border-bottom: 1px solid rgba(15, 23, 42, .08);
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #9e61ff;
	background: rgba(158, 97, 255, .06);
}

.tasks-bid-chat-head .btn-link {
	color: #64748b;
	text-decoration: none;
	line-height: 1;
}

.tasks-bid-chat-head .btn-link:hover {
	color: #9e61ff;
}

.tasks-bid-chat-messages {
	flex: 1 1 auto;
	max-height: 220px;
	min-height: 120px;
	overflow-y: auto;
	padding: .85rem !important;
	background: #fff;
}

.tasks-bid-chat-messages .tasks-chat-msg--other {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, .08);
}

.tasks-bid-chat-form {
	padding: .75rem .85rem .85rem;
	background: #fff;
	border-top: 1px solid rgba(15, 23, 42, .08);
}

.tasks-bid-chat-form .tasks-chat-compose {
	border-color: rgba(15, 23, 42, .12);
	background: #f8fafc;
}

.tasks-bid-chat-form .tasks-chat-input {
	background: transparent !important;
}

.tasks-bid-chat-form .tasks-chat-compose__attach {
	background: #f8fafc;
	border-left-color: rgba(15, 23, 42, .1);
}

.tasks-bid-chat-toggle.is-active {
	border-color: #9e61ff;
	background: rgba(158, 97, 255, .1);
	color: #6d28d9;
}

.tasks-chat-compose-wrap {
	position: relative;
}

.tasks-chat-emoji-panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + .35rem);
	z-index: 20;
	max-height: 9.5rem;
	overflow-y: auto;
	padding: .5rem;
	border: 1.5px solid rgba(15, 23, 42, .1);
	border-radius: .75rem;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.tasks-chat-emoji-panel.is-open {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(2rem, 1fr));
	gap: .15rem;
}

.tasks-chat-emoji-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: .45rem;
	background: transparent;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	transition: background .12s ease;
}

.tasks-chat-emoji-item:hover {
	background: rgba(158, 97, 255, .12);
}

.tasks-chat-compose__emoji {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-right: 1px solid rgba(15, 23, 42, .1);
	background: #f8fafc;
	color: #64748b;
	cursor: pointer;
	padding: 0 .65rem;
	min-width: 2.5rem;
	font-size: 1rem;
	transition: background .15s ease, color .15s ease;
}

.tasks-chat-compose__emoji:hover,
.tasks-chat-compose__emoji.is-active {
	background: rgba(158, 97, 255, .1);
	color: #7c3aed;
}

.tasks-chat-compose {
	display: flex;
	align-items: stretch;
	gap: 0;
	width: 100%;
	border: 1.5px solid rgba(15, 23, 42, .14);
	border-radius: .75rem;
	overflow: hidden;
	background: #fff;
}

.tasks-chat-compose:focus-within {
	border-color: rgba(158, 97, 255, .55);
	box-shadow: 0 0 0 3px rgba(158, 97, 255, .12);
}

.tasks-chat-input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	max-width: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: .55rem .75rem;
	font-size: .875rem;
	background: transparent !important;
}

.tasks-chat-input:focus {
	box-shadow: none !important;
}

.tasks-chat-compose__attach,
.tasks-chat-compose__send {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-left: 1px solid rgba(15, 23, 42, .1);
	background: #fff;
	color: #64748b;
	cursor: pointer;
	padding: 0 .75rem;
	min-width: 2.75rem;
	transition: background .15s ease, color .15s ease;
}

.tasks-chat-compose__attach:hover {
	background: rgba(15, 23, 42, .04);
	color: #475569;
}

.tasks-chat-compose__send {
	border-left: 1px solid rgba(158, 97, 255, .25);
	padding: 0 .85rem;
	min-width: 3rem;
	border-radius: 0 !important;
}

.tasks-bid-chat-form .tasks-chat-file-name,
.tasks-chat-form .tasks-chat-file-name {
	margin-top: .35rem;
	padding-left: .15rem;
}

.tasks-bid-chat-form .input-group,
.tasks-chat-form .input-group {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
}

.tasks-bid-chat-form .input-group .form-control,
.tasks-chat-form .input-group .form-control {
	flex: 1 1 auto;
	width: 1% !important;
	min-width: 0;
	max-width: none !important;
}

.tasks-bid-chat-form .input-group > .btn,
.tasks-bid-chat-form .input-group > label.btn,
.tasks-chat-form .input-group > .btn,
.tasks-chat-form .input-group > label.btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0;
}

html.dark-theme .tasks-bid-chat-wrap,
html[data-bs-theme="dark"] .tasks-bid-chat-wrap {
	background: rgba(37, 32, 51, .98);
	border-color: rgba(158, 97, 255, .22);
}

html.dark-theme .tasks-bid-chat-head,
html[data-bs-theme="dark"] .tasks-bid-chat-head {
	background: rgba(158, 97, 255, .12);
	color: #c4b5fd;
	border-bottom-color: rgba(148, 163, 184, .12);
}

html.dark-theme .tasks-bid-chat-messages,
html[data-bs-theme="dark"] .tasks-bid-chat-messages {
	background: rgba(37, 32, 51, .98);
}

html.dark-theme .tasks-bid-chat-messages .tasks-chat-msg--other,
html[data-bs-theme="dark"] .tasks-bid-chat-messages .tasks-chat-msg--other {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(148, 163, 184, .14);
}

html.dark-theme .tasks-bid-chat-form,
html[data-bs-theme="dark"] .tasks-bid-chat-form {
	background: rgba(37, 32, 51, .98);
	border-top-color: rgba(148, 163, 184, .12);
}

html.dark-theme .tasks-bid-chat-form .tasks-chat-compose,
html[data-bs-theme="dark"] .tasks-bid-chat-form .tasks-chat-compose {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(148, 163, 184, .18);
}

html.dark-theme .tasks-bid-chat-form .tasks-chat-compose__attach,
html[data-bs-theme="dark"] .tasks-bid-chat-form .tasks-chat-compose__attach {
	background: rgba(255, 255, 255, .04);
	border-left-color: rgba(148, 163, 184, .18);
	color: #94a3b8;
}

html.dark-theme .tasks-shell-body .tasks-chat-compose,
html[data-bs-theme="dark"] .tasks-shell-body .tasks-chat-compose {
	background: rgba(255, 255, 255, .03);
	border-color: rgba(148, 163, 184, .18);
}

html.dark-theme .tasks-chat-compose__attach,
html[data-bs-theme="dark"] .tasks-chat-compose__attach {
	background: transparent;
	border-left-color: rgba(148, 163, 184, .18);
	color: #94a3b8;
}

html.dark-theme .tasks-chat-compose__emoji,
html[data-bs-theme="dark"] .tasks-chat-compose__emoji {
	background: rgba(255, 255, 255, .04);
	border-right-color: rgba(148, 163, 184, .18);
	color: #94a3b8;
}

html.dark-theme .tasks-chat-emoji-panel,
html[data-bs-theme="dark"] .tasks-chat-emoji-panel {
	background: rgba(37, 32, 51, .98);
	border-color: rgba(148, 163, 184, .18);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

html.dark-theme .tasks-bid-chat-toggle.is-active,
html[data-bs-theme="dark"] .tasks-bid-chat-toggle.is-active {
	border-color: rgba(158, 97, 255, .45);
	background: rgba(158, 97, 255, .16);
	color: #c4b5fd;
}

html.dark-theme .tasks-chat-input,
html[data-bs-theme="dark"] .tasks-chat-input {
	background: transparent !important;
	color: #e2e8f0;
}
