.help-tour-toggle {
	color: #fff;
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
}

.help-tour-toggle span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.onboarding-click-layer {
	position: fixed;
	inset: 0;
	z-index: 1996;
	background: transparent;
	pointer-events: auto;
}

.onboarding-highlight {
	position: fixed;
	z-index: 1999;
	border: 3px solid #ffc300;
	border-radius: 8px;
	background: transparent;
	box-shadow:
		0 0 0 9999px rgba(15, 23, 42, 0.58),
		0 10px 26px rgba(15, 23, 42, 0.22);
	pointer-events: none;
	transition:
		top 0.18s ease,
		left 0.18s ease,
		width 0.18s ease,
		height 0.18s ease;
}

.onboarding-highlight.is-hidden {
	display: none;
}

.onboarding-popover {
	position: fixed;
	z-index: 2000;
	width: min(360px, calc(100vw - 24px));
	padding: 14px;
	border: 1px solid #c8d8eb;
	border-radius: 8px;
	background: #fff;
	color: #16233f;
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
	transition:
		top 0.18s ease,
		left 0.18s ease;
}

.onboarding-popover__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid #d7e3ef;
	border-radius: 8px;
	background: #f8fbff;
	color: #64748b;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.onboarding-popover__close:hover,
.onboarding-popover__close:focus {
	border-color: #267afc;
	color: #267afc;
	outline: none;
}

.onboarding-popover__eyebrow {
	padding-right: 34px;
	color: #267afc;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.onboarding-popover__title {
	margin: 6px 34px 8px 0;
	color: #16233f;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.2;
}

.onboarding-popover__text {
	margin: 0;
	color: #475569;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.onboarding-popover__progress {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
}

.onboarding-popover__dots {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.onboarding-popover__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #d7e3ef;
}

.onboarding-popover__dot.is-active {
	background: #267afc;
}

.onboarding-popover__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

.onboarding-popover__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid #d7e3ef;
	border-radius: 8px;
	background: #fff;
	color: #267afc;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.onboarding-popover__button:hover,
.onboarding-popover__button:focus {
	border-color: #267afc;
	outline: none;
}

.onboarding-popover__button:disabled {
	opacity: 0.45;
	cursor: default;
}

.onboarding-popover__button--primary {
	border-color: #267afc;
	background: #267afc;
	color: #fff;
}

body.is-onboarding-training-active [data-onboarding-training-task],
body.is-onboarding-training-active [data-onboarding-training-workspace] {
	position: relative;
	z-index: 1998;
	pointer-events: auto;
}

body.is-onboarding-training-active [data-onboarding-training-task] {
	border: 2px solid #ffc300;
	box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

@media (max-width: 576px) {
	.onboarding-popover {
		padding: 12px;
	}

	.onboarding-popover__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.onboarding-popover__button {
		width: 100%;
	}
}

@media (max-width: 900px) {
	body[data-username-role='Operator'] header .user-nickname,
	body[data-username-role='Executor'] header .user-nickname {
		max-width: calc(100vw - 240px);
	}
}
