.tour-bubble {
	position: fixed;
	z-index: 900;
	max-width: min(270px, calc(100vw - 32px));
	padding: 12px 14px 10px;
	background: var(--bg-panel);
	border: 1px solid var(--border-strong);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(27, 36, 48, 0.16);
	opacity: 0;
	transition: opacity .22s ease;
}

.tour-bubble::after {
	content: '';
	position: absolute;
	width: 10px;
	height: 10px;
	background: var(--bg-panel);
	border: 1px solid var(--border-strong);
}

.tour-bubble[data-placement="top"]::after {
	left: var(--arrow-x);
	bottom: -6px;
	border-width: 0 1px 1px 0;
	transform: translateX(-50%) rotate(45deg);
}

.tour-bubble[data-placement="bottom"]::after {
	left: var(--arrow-x);
	top: -6px;
	border-width: 1px 0 0 1px;
	transform: translateX(-50%) rotate(45deg);
}

.tour-bubble[data-placement="left"]::after {
	top: var(--arrow-y);
	right: -6px;
	border-width: 1px 1px 0 0;
	transform: translateY(-50%) rotate(45deg);
}

.tour-bubble[data-placement="right"]::after {
	top: var(--arrow-y);
	left: -6px;
	border-width: 0 0 1px 1px;
	transform: translateY(-50%) rotate(45deg);
}

.tour-text {
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--text);
}

.tour-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 11px;
}

.tour-progress {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 12px;
}

.tour-progress span {
	width: 5px;
	height: 3px;
	border-radius: 1px;
	background: var(--text-faint);
	transition: height .28s ease, background .28s ease;
}

.tour-progress span.done {
	height: 5px;
	background: var(--data-1);
}

.tour-progress span.current {
	height: 12px;
	background: var(--accent);
}

.tour-skip {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 12px;
	color: var(--text-dim);
	cursor: pointer;
}

.tour-skip:hover {
	color: var(--accent);
}

.tour-skip:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.tour-ring {
	position: fixed;
	z-index: 899;
	border: 2px solid var(--accent);
	border-radius: 8px;
	pointer-events: none;
	opacity: 0;
	animation: tour-pulse 2.4s ease-in-out infinite;
	transition: opacity .22s ease;
}

.tour-visible {
	opacity: 1;
}

.tour-away {
	opacity: 0;
	pointer-events: none;
}

@keyframes tour-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(199, 107, 31, 0.16); }
	50% { box-shadow: 0 0 0 9px rgba(199, 107, 31, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.tour-bubble, .tour-ring, .tour-progress span {
		transition: opacity .22s ease;
		animation: none;
	}
}
