.task-set-section {
	/* margin-top: -40px; */
	/* padding-top: 40px; */
	box-sizing: border-box;
}

.task-set__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	gap: 30px;

	width: 100%;
}

.task-set__loading {
	text-align: center;
	padding: 24px 16px;
	color: var(--gray-color);
	font-size: 0.95em;
}

.task-set__item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: start;
	align-self: stretch;

	gap: 50px;
}

.task-set__item-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;

	width: 100%;
}

.task-set__item-header-date {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;

	width: 100%;
}

.task-set__item-title {
	font-size: 1.125em;
	font-weight: 400;
	line-height: 140%;
	font-style: normal;

	color: var(--main-color);

	border-bottom: 1px solid transparent;

	transition: all .2s ease;

	display: inline;

	margin-right: 10px;
}

.task-set__item-link {
	display: inline;
	align-items: center;
}

.task-set__item-link:hover .task-set__item-title {
	color: var(--accent-color);
	border-bottom: 1px solid var(--accent-color);
}

.task-set__item-date {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 10px;

	width: fit-content;
	
	padding: 4px 8px 5px 8px;

	border-radius: 100px;
	background: var(--highlight-color);

	font-size: 0.875em;
	font-weight: 400;
	font-style: normal;
	line-height: normal;

	color: var(--accent-color);
}

.task-set__item-header-date .only-mobile {
	display: none;
}

.task-set__item-creator {
	font-size: 1em;
	font-style: normal;
	font-weight: 400;
	line-height: normal;

	color: var(--gray-color);
}

.task-set__item-creator-link {
	border-bottom: 1px solid transparent;
	color: var(--accent-color);

	transition: border .2s ease;
}

.task-set__item-creator-link:hover {
	border-bottom: 1px solid var(--accent-color);
}

.task-set__item-members-action {
	display: flex;
	justify-content: space-between;
	align-items: center;

	width: 100%;
	max-width: 350px;
}

.task-set__item-members {
	display: flex;
	align-items: center;
	gap: 10px;
}

.task-set__item-members-images {
	display: flex;
	align-items: flex-start;
	gap: 0;
}

.task-set__item-member-image {
	width: 30px;
	aspect-ratio: 1/1;

	border-radius: 100px;
	border: 1px solid #FFF;

	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.task-set__item-member-image:not(:first-child) {
	margin-left: -6px;
}

.task-set__item-members-cta {
	font-size: 0.875em;
	font-weight: 400;
	line-height: normal;
	color: var(--gray-color);
	white-space: nowrap;
}

.task-set__item-members-count {
	font-size: 0.875em;
	font-weight: 400;
	font-style: normal;
	line-height: normal;

	color: var(--gray-color);
}

.task-set__item-action {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;

	padding: 10px 15px 12px 15px;

	border: none;
	cursor: pointer;
	font: inherit;

	border-radius: 100px;
	background: var(--accent-color);

	font-size: 0.875em;
	font-weight: 500;
	font-style: normal;
	line-height: normal;

	color: var(--white-color);

	transition: all .2s ease;
}

a.task-set__item-action {
	text-decoration: none;
}

.task-set__item-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.task-set__item-dropdown {
	position: relative;
	align-self: center;
}

.task-set__item-action--dropdown-toggle {
	list-style: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.task-set__item-dropdown summary::-webkit-details-marker {
	display: none;
}

.task-set__item-dropdown-chevron {
	font-size: 0.7em;
	opacity: 0.9;
	transition: transform 0.2s ease;
}

.task-set__item-dropdown[open] .task-set__item-dropdown-chevron {
	transform: rotate(180deg);
}

.task-set__item-dropdown-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 30;
	min-width: 188px;
	padding: 6px;
	box-sizing: border-box;

	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: var(--white-color);
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.task-set__item-dropdown-item {
	display: flex;
	width: 100%;
	align-items: center;
	padding: 10px 12px;
	box-sizing: border-box;

	border: none;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	font: inherit;
	font-size: 0.875em;
	font-weight: 500;
	text-align: left;
	color: var(--main-color);

	transition: background 0.15s ease;
}

.task-set__item-dropdown-item:hover {
	background: var(--highlight-color);
}

.task-set__item-dropdown-item.task-set__item-action--complete {
	color: var(--accent-color);
	font-weight: 500;
}

.task-set__item-dropdown-item.task-set__item-action--complete:hover {
	background: var(--highlight-color);
	color: var(--accent-color);
}

.task-set__item-dropdown-item.task-set__item-action--cancel {
	color: #8a5a5a;
	font-weight: 500;
}

.task-set__item-dropdown-item.task-set__item-action--cancel:hover {
	background: var(--highlight-color);
	color: #8a5a5a;
}

.task-set__item-action:hover {
	color: var(--accent-color);
	background-color: var(--highlight-color);
}

/* Отдельная вторичная кнопка (если не в выпадающем меню) */
.task-set__item-action.task-set__item-action--complete {
	background: transparent;
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
}

.task-set__item-action.task-set__item-action--complete:hover {
	color: var(--white-color);
	background-color: var(--accent-color);
}

/* Неактивная метка вместо «Участвовать» для завершённых заданий */
.task-set__item-status--finished {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 10px 20px 12px;
	box-sizing: border-box;

	border-radius: 999px;
	border: none;

	font-size: 0.875em;
	font-weight: 500;
	font-style: normal;
	line-height: normal;

	color: #6b7c93;
	background: #f4f4f6;

	cursor: default;
	pointer-events: none;
	user-select: none;
}






.task-set__item-status--canceled {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 10px 20px 12px;
	box-sizing: border-box;

	border-radius: 999px;
	border: none;

	font-size: 0.875em;
	font-weight: 500;
	font-style: normal;
	line-height: normal;

	color: #6b5c62;
	background: #f5eff0;

	cursor: default;
	pointer-events: none;
	user-select: none;
}


@media screen and (max-width: 950px) {
	.task-set__item {
		flex-direction: column;
		gap: 15px;
	}
	.task-set__item-members-action {
		max-width: 100%;
	}
	.task-set__item-title {
		margin: 0;
	}
	.task-set__item-header-date .only-desktop {
		display: none;
	}
	.task-set__item-header-date .only-mobile {
		display: block;
	}
	.task-set__item-creator {
		display: none;
	}
	.task-set__item-members {
		max-width: 100%;
	}
}

@media screen and (max-width: 350px) {
	.task-set__item-members-count {
		display: none;
	}
}






