@import "./guide-schemes.css";
.xht-guide-shell {
	position: relative;
}

.xht-guide-page {
	--xht-guide-ink: #0f172a;
	--xht-guide-muted: #64748b;
	--xht-guide-subtle: #f8fafc;
	--xht-guide-soft: #f1f5f9;
	--xht-guide-line: #edf2f7;
	--xht-guide-blue: #2563eb;
	--xht-guide-cyan: #0891b2;
	--xht-guide-green: #16a34a;
	--xht-guide-orange: #ea580c;
	--xht-guide-slate: #475569;
	--xht-guide-shadow: 0 16px 42px rgba(15, 23, 42, 0.035);

	display: grid;
	gap: 18px;
	color: var(--xht-guide-ink);
}

.xht-guide-scenarios,
.xht-guide-status,
.xht-guide-directions {
	--xht-section-tone: var(--xht-guide-cyan);
	--xht-section-soft: #ecfeff;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 26px;
	background: #fff;
	border: 1px solid #eef2f7;
	padding: clamp(30px, 4vw, 48px);
	box-shadow: 0 22px 58px rgba(15, 23, 42, 0.052);
	animation: xht-guide-enter 360ms ease both;
}

.xht-guide-scenarios {
	--xht-section-tone: var(--xht-guide-ink);
	--xht-section-soft: var(--xht-guide-ink);
}

.xht-guide-directions {
	--xht-section-tone: var(--xht-guide-slate);
	--xht-section-soft: #f8fafc;

	animation-delay: 80ms;
}

.xht-guide-status {
	--xht-section-tone: #512da8;
	--xht-section-soft: #f5f3ff;

	border: 1px solid rgba(226, 232, 240, 0.78);
	background: #fff;
	box-shadow:
		0 2px 8px rgba(15, 23, 42, 0.02),
		0 18px 52px rgba(15, 23, 42, 0.055);
	animation-delay: 40ms;
}

.xht-guide-status::before {
	display: none;
}

.xht-guide-status .xht-guide-section-heading__badge {
	height: 24px;
	border-radius: 6px;
	background: #4c1d95;
	padding: 0 9px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	box-shadow: 0 10px 22px rgba(76, 29, 149, 0.18);
}

.xht-guide-status .xht-guide-section-heading__badge::before {
	display: none;
}

.xht-guide-status-groups {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 22px;
	margin-top: 6px;
}

.xht-guide-status-group {
	--xht-status-group-bg: rgba(238, 242, 255, 0.72);
	--xht-status-group-accent: linear-gradient(
		180deg,
		#3b82f6 0%,
		#6366f1 48%,
		#512da8 100%
	);
	--xht-status-group-shadow: rgba(81, 45, 168, 0.24);

	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid rgba(226, 232, 240, 0.74);
	border-radius: 20px;
	background: #fff;
	transition:
		border-color 240ms ease,
		transform 240ms ease;
}

.xht-guide-status-group:hover {
	border-color: rgba(203, 213, 225, 0.9);
	transform: translateY(-1px);
}

.xht-guide-status-group--auto {
	--xht-status-group-bg: rgba(255, 247, 237, 0.72);
	--xht-status-group-accent: linear-gradient(
		180deg,
		#f97316 0%,
		#fb7185 100%
	);
	--xht-status-group-shadow: rgba(249, 115, 22, 0.28);

	border-color: rgba(251, 146, 60, 0.24);
}

.xht-guide-status-group__accent {
	position: absolute;
	top: 50%;
	left: 0;
	z-index: 2;
	width: 4px;
	min-height: 62px;
	height: 35%;
	border-radius: 0 999px 999px 0;
	background: var(--xht-status-group-accent);
	box-shadow: 2px 0 14px var(--xht-status-group-shadow);
	transform: translateY(-50%);
}

.xht-guide-status-group__label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid rgba(226, 232, 240, 0.82);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent),
		var(--xht-status-group-bg);
	padding: 28px 0 28px 4px;
}

.xht-guide-status-group__label h3 {
	margin: 0;
	color: #334155;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.32em;
	line-height: 1.1;
	writing-mode: vertical-lr;
}

.xht-guide-status-group__list {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: rgba(248, 250, 252, 0.82);
}

.xht-guide-status-row {
	--xht-status-item-tone: #64748b;
	--xht-status-item-soft: rgba(100, 116, 139, 0.08);
	--xht-status-item-shadow: rgba(100, 116, 139, 0.16);
	--xht-status-item-border: rgba(100, 116, 139, 0.22);

	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, 34%) minmax(96px, 15%) minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-height: 56px;
	border-bottom: 1px solid rgba(226, 232, 240, 0.62);
	padding: 12px 24px;
	color: inherit;
	text-decoration: none;
	transition:
		background 220ms ease,
		color 220ms ease;
}

.xht-guide-status-row:last-child {
	border-bottom: 0;
}

.xht-guide-status-row:hover {
	z-index: 1;
	background: rgba(255, 255, 255, 0.96);
	color: inherit;
	text-decoration: none;
}

.xht-guide-status-row--blue {
	--xht-status-item-tone: #2563eb;
	--xht-status-item-soft: rgba(37, 99, 235, 0.08);
	--xht-status-item-shadow: rgba(37, 99, 235, 0.18);
	--xht-status-item-border: rgba(37, 99, 235, 0.24);
}

.xht-guide-status-row--purple {
	--xht-status-item-tone: #7c3aed;
	--xht-status-item-soft: rgba(124, 58, 237, 0.08);
	--xht-status-item-shadow: rgba(124, 58, 237, 0.18);
	--xht-status-item-border: rgba(124, 58, 237, 0.24);
}

.xht-guide-status-row--teal {
	--xht-status-item-tone: #0f766e;
	--xht-status-item-soft: rgba(20, 184, 166, 0.1);
	--xht-status-item-shadow: rgba(20, 184, 166, 0.18);
	--xht-status-item-border: rgba(20, 184, 166, 0.25);
}

.xht-guide-status-row--rose {
	--xht-status-item-tone: #e11d48;
	--xht-status-item-soft: rgba(225, 29, 72, 0.08);
	--xht-status-item-shadow: rgba(225, 29, 72, 0.16);
	--xht-status-item-border: rgba(225, 29, 72, 0.22);
}

.xht-guide-status-row--cyan {
	--xht-status-item-tone: #0891b2;
	--xht-status-item-soft: rgba(8, 145, 178, 0.08);
	--xht-status-item-shadow: rgba(8, 145, 178, 0.16);
	--xht-status-item-border: rgba(8, 145, 178, 0.22);
}

.xht-guide-status-row--slate {
	--xht-status-item-tone: #475569;
	--xht-status-item-soft: rgba(71, 85, 105, 0.08);
	--xht-status-item-shadow: rgba(71, 85, 105, 0.16);
	--xht-status-item-border: rgba(71, 85, 105, 0.22);
}

.xht-guide-status-row--emerald {
	--xht-status-item-tone: #059669;
	--xht-status-item-soft: rgba(5, 150, 105, 0.08);
	--xht-status-item-shadow: rgba(5, 150, 105, 0.16);
	--xht-status-item-border: rgba(5, 150, 105, 0.22);
}

.xht-guide-status-row--indigo {
	--xht-status-item-tone: #4f46e5;
	--xht-status-item-soft: rgba(79, 70, 229, 0.08);
	--xht-status-item-shadow: rgba(79, 70, 229, 0.18);
	--xht-status-item-border: rgba(79, 70, 229, 0.24);
}

.xht-guide-status-row--orange {
	--xht-status-item-tone: #ea580c;
	--xht-status-item-soft: rgba(234, 88, 12, 0.09);
	--xht-status-item-shadow: rgba(234, 88, 12, 0.18);
	--xht-status-item-border: rgba(234, 88, 12, 0.24);
}

.xht-guide-status-row__main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.xht-guide-status-row__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 0;
	background: transparent;
	color: var(--xht-status-item-tone);
	transition:
		color 220ms ease,
		transform 220ms ease;
}

.xht-guide-status-row:hover .xht-guide-status-row__icon {
	transform: scale(1.08) rotate(-3deg);
}

.xht-guide-status-row__title {
	overflow: hidden;
	color: #0f172a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.32;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 220ms ease;
}

.xht-guide-status-row:hover .xht-guide-status-row__title {
	color: var(--xht-status-item-tone);
}

.xht-guide-status-row__badge {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	gap: 5px;
	max-width: 100%;
	border: 1px solid rgba(226, 232, 240, 0.7);
	border-radius: 999px;
	background: #f8fafc;
	padding: 4px 8px;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.xht-guide-status-row.is-configured .xht-guide-status-row__badge {
	border-color: rgba(167, 243, 208, 0.9);
	background: #ecfdf5;
	color: #047857;
}

.xht-guide-status-row.is-missing .xht-guide-status-row__badge {
	border-color: rgba(254, 215, 170, 0.95);
	background: #fff7ed;
	color: #c2410c;
}

.xht-guide-status-row__description {
	color: #64748b;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.48;
	transition: color 220ms ease;
}

.xht-guide-status-row:hover .xht-guide-status-row__description {
	color: #475569;
}

.xht-guide-status-row__action {
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
	border: 0;
	border-radius: 999px;
	background: var(--xht-status-item-soft);
	padding: 3px 8px;
	color: var(--xht-status-item-tone);
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition:
		background 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.xht-guide-status-row__action:hover {
	background: rgba(255, 255, 255, 0.86);
	color: var(--xht-status-item-tone);
	text-decoration: none;
	transform: translateY(-1px);
}

.xht-guide-status-tutorial__steps {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	counter-reset: xht-status-tutorial-step;
	list-style: none;
}

.xht-guide-status-tutorial__steps li {
	position: relative;
	min-height: 28px;
	padding-left: 38px;
	color: #334155;
	font-size: 13px;
	line-height: 1.55;
	counter-increment: xht-status-tutorial-step;
}

.xht-guide-status-tutorial__steps li::before {
	content: counter(xht-status-tutorial-step);
	position: absolute;
	top: -2px;
	left: 0;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: #f5f3ff;
	color: #512da8;
	font-size: 12px;
	font-weight: 800;
}

.xht-guide-status-tutorial__footer-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	box-sizing: border-box;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	padding: 0 18px;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition:
		background 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.xht-guide-status-tutorial__footer-link:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
	text-decoration: none;
}

.xht-guide-status-tutorial__step-link {
	margin: 0 2px;
	color: #4f46e5;
	text-decoration: underline;
	text-decoration-color: rgba(79, 70, 229, 0.3);
	transition:
		color 180ms ease,
		text-decoration-color 180ms ease;
}

.xht-guide-status-tutorial__step-link:hover {
	color: #4338ca;
	text-decoration-color: rgba(67, 56, 202, 0.6);
}

.xht-guide-section-heading {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 36px;
}

.xht-guide-section-heading__badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	width: fit-content;
	border-radius: 11px;
	background: var(--xht-section-soft);
	padding: 8px 10px;
	color: var(--xht-section-tone);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1;
	box-shadow: none;
}

.xht-guide-section-heading__badge::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentcolor;
	opacity: 0.78;
}

.xht-guide-scenarios .xht-guide-section-heading__badge {
	height: 24px;
	border-radius: 6px;
	background: var(--xht-guide-ink);
	padding: 0 9px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.xht-guide-directions .xht-guide-section-heading__badge {
	height: 24px;
	border-radius: 6px;
	background: var(--xht-guide-blue);
	padding: 0 9px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.xht-guide-section-heading--feature .xht-guide-section-heading__badge {
	margin-top: 0;
}

.xht-guide-scenarios .xht-guide-section-heading__badge::before,
.xht-guide-directions .xht-guide-section-heading__badge::before {
	display: none;
}

.xht-guide-section-heading__copy,
.xht-guide-section-heading > div {
	min-width: 0;
	max-width: 820px;
}

.xht-guide-section-heading h2 {
	margin: 0;
	color: var(--xht-guide-ink);
	font-weight: 700;
	letter-spacing: 0;
}

.xht-guide-section-heading h2 {
	font-size: clamp(21px, 2.25vw, 30px);
	line-height: 1.16;
}

.xht-guide-section-heading--feature h2 {
	font-size: clamp(23px, 2.35vw, 31px);
}

.xht-guide-section-heading--feature p {
	margin-top: 10px;
}

.xht-guide-section-heading p {
	max-width: 720px;
	margin: 9px 0 0;
	color: #475569;
	font-size: 14px;
	line-height: 1.68;
}

.xht-guide-feature-map {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
}

.xht-guide-feature-stage {
	--xht-stage-tone: #3b82f6;
	--xht-stage-glow: rgba(59, 130, 246, 0.05);
	--xht-stage-badge-bg: rgba(59, 130, 246, 0.12);

	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.xht-guide-feature-stage--complete {
	--xht-stage-tone: #f97316;
	--xht-stage-glow: rgba(249, 115, 22, 0.05);
	--xht-stage-badge-bg: rgba(249, 115, 22, 0.12);
}

.xht-guide-feature-stage--operate {
	--xht-stage-tone: #10b981;
	--xht-stage-glow: rgba(16, 185, 129, 0.05);
	--xht-stage-badge-bg: rgba(16, 185, 129, 0.12);
}

.xht-guide-stage-header {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 16px;
	border: 1px solid var(--xht-stage-glow);
	border-radius: 12px;
	background: var(--xht-stage-glow);
	padding: 16px 20px;
}

.xht-guide-stage-header__watermark {
	position: absolute;
	right: -10px;
	bottom: -15px;
	width: 80px;
	height: 80px;
	color: var(--xht-stage-tone);
	opacity: 0.12;
	pointer-events: none;
	transform: rotate(-10deg);
}

.xht-guide-stage-header__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--xht-stage-badge-bg);
	color: var(--xht-stage-tone);
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

.xht-guide-stage-header__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.xht-guide-stage-header__title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xht-guide-stage-header__title {
	margin: 0;
	color: #0f172a;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
}

.xht-guide-stage-header__description {
	margin: 0;
	color: #475569;
	font-size: 13px;
	line-height: 1.5;
}

.xht-guide-stage-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xht-guide-feature-map__arrow {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 30px;
	color: #cbd5e1;
}

.xht-guide-map-action {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	padding: 16px 20px;
	appearance: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	text-align: left;
	text-decoration: none;
	transition: all 300ms ease;
}

.xht-guide-map-action:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	text-decoration: none;
	transform: translateY(-1px);
}

.xht-guide-map-action__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.xht-guide-map-action__badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-transform: uppercase;
}

.xht-guide-map-action__badge--auto {
	background: #faf5ff;
	color: #9333ea;
}

.xht-guide-map-action__badge--manual {
	background: #ecfdf5;
	color: #10b981;
}

.xht-guide-map-action__title {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.xht-guide-map-action__title strong {
	color: #0f172a;
	font-size: 15px;
	font-weight: 700;
}

.xht-guide-map-action__jump-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: #64748b;
	opacity: 0;
	transform: translate(-2px, 2px);
	transition:
		color 220ms ease,
		opacity 220ms ease,
		transform 220ms ease;
}

.xht-guide-map-action:hover .xht-guide-map-action__jump-icon,
.xht-guide-map-action:focus-visible .xht-guide-map-action__jump-icon {
	color: #2563eb;
	opacity: 1;
	transform: translate(0, 0);
}

.xht-guide-map-action__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.xht-guide-map-action__tag {
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	background: #f8fafc;
	padding: 3px 8px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
	transition: all 300ms ease;
}

.xht-guide-map-action:hover .xht-guide-map-action__tag {
	border-color: #cbd5e1;
	color: #475569;
}

.xht-guide-map-action:focus-visible,
.xht-guide-status-row__action:focus-visible,
.xht-guide-status-tutorial__footer-link:focus-visible,
.xht-guide-status-tutorial__step-link:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.22) !important;
	outline-offset: 3px;
}

@keyframes xht-guide-enter {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

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

@media (prefers-reduced-motion: reduce) {
	.xht-guide-scenarios,
	.xht-guide-status,
	.xht-guide-directions {
		animation: none;
	}

	.xht-guide-map-action,
	.xht-guide-status-group,
	.xht-guide-status-row,
	.xht-guide-status-row__action,
	.xht-guide-status-row__icon {
		transition: none;
	}

	.xht-guide-map-action:hover,
	.xht-guide-status-group:hover,
	.xht-guide-status-row:hover .xht-guide-status-row__icon,
	.xht-guide-status-row__action:hover {
		transform: none;
	}
}

@media (max-width: 960px) {
	.xht-guide-feature-map {
		flex-direction: column;
		gap: 24px;
	}

	.xht-guide-feature-map__arrow {
		display: none;
	}

	.xht-guide-status-row {
		grid-template-columns: minmax(210px, 1.35fr) auto minmax(0, 1fr);
		gap: 12px;
	}
}

@media (max-width: 782px) {
	.xht-guide-page {
		gap: 16px;
	}

	.xht-guide-scenarios,
	.xht-guide-status,
	.xht-guide-directions {
		border-radius: 22px;
		padding: 22px;
	}
	.xht-guide-section-heading {
		flex-direction: column;
		gap: 12px;
		margin-top: 18px;
	}

	.xht-guide-scenarios .xht-guide-section-heading {
		align-items: flex-start;
		margin-top: 0;
		margin-bottom: 28px;
		padding-left: 0;
	}

	.xht-guide-section-heading--feature .xht-guide-section-heading__badge {
		margin-top: 0;
	}

	.xht-guide-feature-map {
		gap: 26px;
	}

	.xht-guide-status-groups {
		gap: 18px;
	}

	.xht-guide-status-group {
		grid-template-columns: 1fr;
		border-radius: 18px;
	}

	.xht-guide-status-group__accent {
		top: 0;
		left: 24px;
		width: 35%;
		min-width: 86px;
		max-width: 180px;
		height: 4px;
		min-height: 0;
		border-radius: 0 0 999px 999px;
		box-shadow: 0 2px 14px var(--xht-status-group-shadow);
		transform: none;
	}

	.xht-guide-status-group__label {
		justify-content: flex-start;
		border-right: 0;
		border-bottom: 1px solid rgba(226, 232, 240, 0.82);
		padding: 18px 20px;
	}

	.xht-guide-status-group__label h3 {
		font-size: 14px;
		letter-spacing: 0.08em;
		writing-mode: horizontal-tb;
	}

	.xht-guide-status-row {
		grid-template-columns: 1fr auto;
		gap: 10px 14px;
		min-height: auto;
		padding: 14px 20px;
	}

	.xht-guide-status-row__main {
		grid-column: 1;
	}

	.xht-guide-status-row__badge {
		grid-column: 2;
		align-self: center;
	}

	.xht-guide-status-row__description {
		grid-column: 1 / -1;
		white-space: normal;
	}
}

@media (max-width: 480px) {
	.xht-guide-status {
		padding-right: 16px;
		padding-left: 16px;
	}

	.xht-guide-status-row {
		grid-template-columns: 1fr;
	}

	.xht-guide-status-row__badge {
		grid-column: 1;
	}

	.xht-guide-status-row__title {
		white-space: normal;
	}
}
