.th-ai-guide-target {
	border-radius:.9rem;
	box-shadow:
		0 0 0 4px var(--th-status-success-ring),
		0 0 0 2px var(--th-color-success) !important;
	position:relative;
	z-index:1062;
}

.th-ai-guide-card {
	-webkit-backdrop-filter:blur(22px) saturate(1.08);
	animation:th-ai-guide-enter .24s ease-out;
	backdrop-filter:blur(22px) saturate(1.08);
	background:
		radial-gradient(circle at 4% 0%,var(--th-status-success-ring),var(--th-color-transparent) 34%),
		var(--th-card-bg-hover);
	border:1px solid color-mix(in srgb,var(--th-color-success) 28%,var(--th-border-base));
	border-radius:1.35rem;
	bottom:1.5rem;
	box-shadow:
		0 1.5rem 4rem var(--th-control-shadow-elevated),
		0 0 0 1px var(--th-overlay-white-shine) inset;
	color:var(--th-color-text-main);
	font-family:Inter,system-ui,sans-serif;
	left:1.5rem;
	overflow:hidden;
	position:fixed;
	width:min(28rem,calc(100vw - 3rem));
	z-index:1085;
}

.th-ai-guide-card-accent {
	background:var(--th-gradient-line);
	height:.24rem;
	inset:0 0 auto;
	position:absolute;
}

.th-ai-guide-card-header,
.th-ai-guide-card-actions {
	align-items:center;
	display:flex;
	gap:.85rem;
	justify-content:space-between;
}

.th-ai-guide-card-header {
	border-bottom:1px solid var(--th-border-base);
	padding:1.15rem 1.15rem 1rem;
}

.th-ai-guide-brand {
	align-items:center;
	display:flex;
	gap:.8rem;
	min-width:0;
}

.th-ai-guide-orb {
	align-items:center;
	background:
		radial-gradient(circle at 30% 22%,var(--th-overlay-white-strong),var(--th-color-transparent) 34%),
		var(--th-gradient-brand);
	border:1px solid var(--th-overlay-white-shine);
	border-radius:50%;
	box-shadow:
		0 0 0 4px var(--th-status-success-ring),
		0 .55rem 1.25rem var(--th-status-success-glow);
	color:var(--th-color-white);
	display:inline-flex;
	flex:0 0 2.65rem;
	font-size:1.05rem;
	height:2.65rem;
	justify-content:center;
}

.th-ai-guide-heading {
	display:grid;
	gap:.18rem;
	min-width:0;
}

.th-ai-guide-heading small {
	color:var(--th-color-success-deep);
	font-size:.67rem;
	font-weight:850;
	letter-spacing:.075em;
	line-height:1.2;
	text-transform:uppercase;
}

.th-ai-guide-heading strong {
	font-size:1.03rem;
	font-weight:850;
	letter-spacing:-.018em;
	line-height:1.25;
}

.th-ai-guide-close {
	flex:0 0 2.4rem;
	height:2.4rem;
	width:2.4rem;
}

.th-ai-guide-card-body {
	display:grid;
	gap:.75rem;
	padding:1rem 1.15rem 1.1rem;
}

.th-ai-guide-step-meta {
	align-items:center;
	display:flex;
	justify-content:space-between;
}

.th-ai-guide-progress {
	color:var(--th-color-text-muted);
	font-size:.73rem;
	font-weight:800;
	letter-spacing:.035em;
}

.th-ai-guide-step-number {
	align-items:center;
	background:var(--th-status-success-bg);
	border:1px solid var(--th-status-success-border);
	border-radius:999px;
	color:var(--th-color-success-deep);
	display:inline-flex;
	font-size:.68rem;
	font-weight:900;
	height:1.65rem;
	justify-content:center;
	letter-spacing:.04em;
	min-width:2.15rem;
	padding:0 .5rem;
}

.th-ai-guide-step-track {
	background:var(--th-icon-soft-bg);
	border-radius:999px;
	height:.32rem;
	overflow:hidden;
}

.th-ai-guide-step-track > span {
	--th-ai-guide-progress:0%;
	background:var(--th-gradient-cta);
	border-radius:inherit;
	display:block;
	height:100%;
	transition:width .28s ease;
	width:var(--th-ai-guide-progress,0%);
}

.th-ai-guide-instruction {
	align-items:flex-start;
	background:color-mix(in srgb,var(--th-status-success-bg) 72%,var(--th-card-bg));
	border:1px solid color-mix(in srgb,var(--th-color-success) 20%,var(--th-border-base));
	border-radius:1rem;
	display:flex;
	gap:.75rem;
	padding:.9rem;
}

.th-ai-guide-instruction-icon {
	align-items:center;
	background:var(--th-gradient-cta);
	border-radius:.75rem;
	box-shadow:0 .45rem 1rem var(--th-status-success-ring);
	color:var(--th-color-white);
	display:inline-flex;
	flex:0 0 2.15rem;
	height:2.15rem;
	justify-content:center;
}

.th-ai-guide-instruction p {
	font-size:.94rem;
	font-weight:650;
	letter-spacing:-.008em;
	line-height:1.5;
	margin:0;
	padding:.31rem 0;
}

.th-ai-guide-status {
	background:var(--th-status-warning-bg);
	border:1px solid var(--th-status-warning-border);
	border-radius:.8rem;
	color:var(--th-color-text-muted);
	font-size:.76rem;
	font-weight:650;
	line-height:1.45;
	padding:.7rem .8rem;
}

.th-ai-guide-status:empty {
	display:none;
}

.th-ai-guide-card-actions {
	background:color-mix(in srgb,var(--th-card-bg) 88%,var(--th-status-success-bg));
	border-top:1px solid var(--th-border-base);
	padding:.85rem 1.15rem 1rem;
}

.th-ai-guide-card-actions .th-btn {
	font-size:.83rem;
	min-height:2.65rem;
	padding:.68rem 1rem;
}

.th-ai-guide-card-actions .th-btn-primary {
	margin-left:auto;
	min-width:8.5rem;
}

.th-ai-guide-card-actions .th-btn-secondary {
	box-shadow:inset 0 0 0 1px var(--th-border-base);
}

.th-ai-guide-card-actions .th-btn:focus-visible,
.th-ai-guide-close:focus-visible {
	outline:3px solid var(--th-color-success);
	outline-offset:3px;
}

@keyframes th-ai-guide-enter {
	from {
		opacity:0;
		transform:translateY(.75rem) scale(.985);
	}

	to {
		opacity:1;
		transform:translateY(0) scale(1);
	}
}

@media (max-width: 575.98px) {
	.th-ai-guide-card {
		bottom:max(.75rem,env(safe-area-inset-bottom));
		left:.75rem;
		max-height:min(76dvh,34rem);
		overflow:auto;
		width:calc(100vw - 1.5rem);
	}

	.th-ai-guide-card-header,
	.th-ai-guide-card-body,
	.th-ai-guide-card-actions {
		padding-left:.9rem;
		padding-right:.9rem;
	}

	.th-ai-guide-card-actions .th-btn {
		flex:1 1 0;
		min-width:0;
	}

	.th-ai-guide-heading strong {
		font-size:.94rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.th-ai-guide-card {
		animation:none;
	}

	.th-ai-guide-step-track > span {
		transition:none;
	}

	.th-ai-guide-target {
		scroll-behavior:auto;
	}
}
