/*
 * XT demo bar. One ink strip above any store theme, drawn in the xplodedthemes.com system:
 * ink and graphite tiers, hairlines, Mona Sans, pill controls, one lit action, and the
 * orange trace reserved for pointing at what a preset changes.
 */

.xt-demo {
	--xd-ink: #06090f;
	--xd-g1: #0b0f17;
	--xd-g2: #10151f;
	--xd-g3: #161c29;
	--xd-g4: #1f2737;
	--xd-line: #1c2331;
	--xd-line-soft: rgba(150, 180, 240, 0.09);
	--xd-line-strong: #2b3446;
	--xd-fg: #f7f8f8;
	--xd-fg-2: #b0bcd6;
	--xd-fg-3: #8691a8;
	--xd-blue: #1b95e0;
	--xd-blue-light: #4aaced;
	--xd-action: #1373b7;
	--xd-action-hover: #1479c0;
	--xd-trace: #ff8a3d;
	--xd-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--xd-h: 52px;
	--xd-top: 0px;

	position: relative;
	z-index: 99980;
	color: var(--xd-fg-2);
	font: 400 14px/1.4 "XT Demo Mona", "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-feature-settings: "ss01", "cv11";
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.xt-demo *,
.xt-demo *::before,
.xt-demo *::after {
	box-sizing: border-box;
}

.xt-demo :where(p, ul, li, a, span, button, nav, div, svg) {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-shadow: none;
	list-style: none;
	background: none;
}

.xt-demo ::selection {
	background: rgba(27, 149, 224, 0.35);
	color: var(--xd-fg);
}

.xt-demo :where(a) {
	color: inherit;
}

.xt-demo a,
.xt-demo a:hover,
.xt-demo a:focus {
	text-decoration: none;
	box-shadow: none;
}

/* Themes style button:hover (Twenty Twelve paints it light grey); every bar button sets its own. */
.xt-demo button:hover,
.xt-demo button:focus,
.xt-demo button:active {
	background-image: none;
	box-shadow: none;
	text-shadow: none;
}

.xt-demo :where(button) {
	appearance: none;
	min-height: 0;
	color: inherit;
	background-image: none;
	box-shadow: none;
	border-radius: 0;
	cursor: pointer;
}

.xt-demo :focus-visible {
	outline: 2px solid var(--xd-blue);
	outline-offset: 3px;
}

.xt-demo .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.xt-demo-icon {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
}

/* Live states hide with the attribute; menus have their own rules (the phone sheet shows them). */
.xt-demo [hidden]:not(.xt-demo__menu) {
	display: none !important;
}

/* The shell: the bar, and the store in a frame filling the rest of the screen. */

html:has(> body.xt-demo-shell) {
	height: 100%;
	background: #06090f;
}

body.xt-demo-shell {
	display: flex;
	flex-direction: column;
	height: 100%;
	height: 100dvh;
	margin: 0;
	overflow: hidden;
	background: #06090f;
}

.xt-demo-shell .xt-demo {
	flex: none;
}

.xt-demo-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: #fff;
}

.xt-demo-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.xt-demo.is-loading ~ .xt-demo-stage .xt-demo-frame {
	opacity: 0.6;
}

/* Strip */

.xt-demo .xt-demo__bar {
	position: relative;
	display: grid;
	/* Equal side columns keep the presets on the screen's true centre, not the gap's. */
	grid-template-columns: var(--xd-side, max-content) minmax(0, 1fr) var(--xd-side, max-content);
	align-items: center;
	gap: 10px;
	height: var(--xd-h);
	padding: 0 clamp(12px, 2vw, 20px);
	background: rgba(6, 9, 15, 0.94);
	border-bottom: 1px solid var(--xd-line);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
}

/* The strip's bottom edge carries XT blue, so it reads as the brand's layer over the store. */
.xt-demo .xt-demo__bar::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, rgba(27, 149, 224, 0.35) 0%, rgba(74, 172, 237, 0.9) 22%, #1b95e0 50%, rgba(74, 172, 237, 0.9) 78%, rgba(27, 149, 224, 0.35) 100%);
	pointer-events: none;
}

/* First view of a visit: the strip drops in, a light pulse runs along its edge, the presets follow. */
.xt-demo.is-intro .xt-demo__bar {
	animation: xt-demo-in 0.7s var(--xd-ease) both;
}

.xt-demo.is-intro .xt-demo__bar::before,
.xt-demo.is-loading .xt-demo__bar::before {
	content: "";
	position: absolute;
	z-index: 1;
	bottom: -2px;
	left: 0;
	width: 30%;
	height: 3px;
	border-radius: 3px;
	background: radial-gradient(closest-side, rgba(200, 232, 255, 1), rgba(74, 172, 237, 0.75) 45%, rgba(27, 149, 224, 0));
	pointer-events: none;
	animation: xt-demo-pulse 1.6s 0.45s cubic-bezier(0.55, 0, 0.45, 1) both;
}

.xt-demo.is-intro .xt-demo__presets > .xt-demo__group {
	animation: xt-demo-rise 0.6s calc(0.35s + var(--xd-i, 0) * 0.06s) var(--xd-ease) both;
}

/* While the store reloads after a pick, the light keeps running along the edge. */
.xt-demo.is-loading .xt-demo__bar::before {
	animation: xt-demo-pulse 1.1s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}

@keyframes xt-demo-in {
	from {
		transform: translateY(-100%);
	}
}

@keyframes xt-demo-pulse {
	from {
		opacity: 1;
		transform: translateX(-100%);
	}

	85% {
		opacity: 1;
	}

	to {
		opacity: 0;
		transform: translateX(340%);
	}
}

@keyframes xt-demo-rise {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

/* One-time tip under the presets */
.xt-demo .xt-demo__intro {
	position: absolute;
	z-index: 3;
	top: calc(100% + 12px);
	left: var(--xd-intro-x, 12px);
	width: min(310px, calc(100vw - 24px));
	padding: 14px 16px;
	border: 1px solid var(--xd-line-soft);
	border-radius: 14px;
	background: var(--xd-g1);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	animation: xt-demo-menu 0.45s 0.9s var(--xd-ease) both;
}

.xt-demo .xt-demo__intro::before {
	content: "";
	position: absolute;
	top: -6px;
	left: var(--xd-intro-caret, 24px);
	width: 10px;
	height: 10px;
	border-top: 1px solid var(--xd-line-soft);
	border-left: 1px solid var(--xd-line-soft);
	background: var(--xd-g1);
	transform: rotate(45deg);
}

.xt-demo .xt-demo__intro-title {
	margin-bottom: 4px;
	color: var(--xd-fg);
	font-size: 14.5px;
	font-weight: 580;
}

.xt-demo .xt-demo__intro-text {
	color: var(--xd-fg-2);
	font-size: 13px;
	line-height: 1.5;
	text-wrap: pretty;
}

.xt-demo .xt-demo__intro-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}

.xt-demo .xt-demo__intro .xt-demo__btn {
	height: 30px;
	padding: 0 14px;
	font-size: 13px;
}

.xt-demo .xt-demo__start {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.xt-demo .xt-demo__mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-right: 2px;
	border-radius: 999px;
	color: var(--xd-fg);
	transition: transform 0.35s var(--xd-ease);
}

.xt-demo .xt-demo__mark svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.xt-demo .xt-demo__mark:hover {
	transform: rotate(-8deg);
}

.xt-demo .xt-demo__name {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 10px 0 12px;
	border-radius: 999px;
	color: var(--xd-fg);
	font-size: 14.5px;
	font-weight: 580;
	font-stretch: 104%;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: background-color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__name .xt-demo-icon {
	color: var(--xd-fg-3);
	transition: transform 0.35s var(--xd-ease);
}

.xt-demo .xt-demo__name:hover,
.xt-demo .xt-demo__name[aria-expanded="true"] {
	background: var(--xd-g2);
}

.xt-demo .xt-demo__name[aria-expanded="true"] .xt-demo-icon,
.xt-demo .xt-demo__pill[aria-expanded="true"] .xt-demo-icon {
	transform: rotate(180deg);
}

.xt-demo .xt-demo__live {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 7px;
	height: 24px;
	padding: 0 10px;
	border: 1px solid rgba(255, 138, 61, 0.28);
	border-radius: 999px;
	color: var(--xd-fg-2);
	font-size: 12.5px;
	font-weight: 520;
	white-space: nowrap;
}

.xt-demo .xt-demo__dot {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--xd-trace);
}

/* The live signal: the brand's orange, beating like an on-air light. */
.xt-demo .xt-demo__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--xd-trace);
	animation: xt-demo-live 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes xt-demo-live {
	from {
		opacity: 0.7;
		transform: scale(1);
	}

	to {
		opacity: 0;
		transform: scale(3.2);
	}
}

/* Preset pills */

.xt-demo .xt-demo__presets {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	justify-content: safe center;
	gap: 6px;
	min-width: 0;
	overflow: hidden;
}

.xt-demo .xt-demo__presets::-webkit-scrollbar {
	display: none;
}

.xt-demo .xt-demo__pill {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 11px 0 14px;
	border: 1px solid var(--xd-line-strong);
	border-radius: 999px;
	color: var(--xd-fg-2);
	font-size: 13.5px;
	font-weight: 520;
	white-space: nowrap;
	transition: background-color 0.25s var(--xd-ease), border-color 0.25s var(--xd-ease), color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__pill .xt-demo-icon {
	width: 14px;
	height: 14px;
	color: var(--xd-fg-3);
	transition: transform 0.35s var(--xd-ease), color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__pill,
.xt-demo .xt-demo__name,
.xt-demo .xt-demo__icon-btn {
	background-color: transparent;
}

.xt-demo .xt-demo__pill:hover {
	border-color: var(--xd-fg-3);
	background-color: var(--xd-g2);
	color: var(--xd-fg);
}

.xt-demo .xt-demo__pill[aria-expanded="true"] {
	border-color: var(--xd-fg);
	background: var(--xd-fg);
	color: var(--xd-ink);
}

.xt-demo .xt-demo__pill[aria-expanded="true"] .xt-demo-icon {
	color: var(--xd-ink);
}

.xt-demo .xt-demo__count {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(27, 149, 224, 0.2);
	color: var(--xd-blue-light);
	font-size: 11.5px;
	font-weight: 620;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.xt-demo .xt-demo__count--dot {
	min-width: 0;
	width: 6px;
	height: 6px;
	padding: 0;
	background: var(--xd-blue);
}

.xt-demo .xt-demo__pill[aria-expanded="true"] .xt-demo__count {
	background: var(--xd-action);
	color: #fff;
}

/* Menus */

.xt-demo .xt-demo__group {
	flex: none;
}

.xt-demo .xt-demo__menu {
	position: absolute;
	z-index: 2;
	top: calc(100% + 8px);
	left: var(--xd-menu-x, 12px);
	width: min(360px, calc(100vw - 24px));
	max-height: calc(100vh - var(--xd-top) - var(--xd-h) - 24px);
	padding: 8px;
	overflow-y: auto;
	border: 1px solid var(--xd-line-soft);
	border-radius: 16px;
	background: rgba(11, 15, 23, 0.97);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	scrollbar-color: var(--xd-g4) transparent;
	scrollbar-width: thin;
	transform-origin: var(--xd-menu-origin, 24px) top;
	animation: xt-demo-menu 0.32s var(--xd-ease);
}

.xt-demo .xt-demo__menu[hidden] {
	display: none;
}

.xt-demo .xt-demo__menu--demos {
	width: min(280px, calc(100vw - 24px));
}

@keyframes xt-demo-menu {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
}

.xt-demo .xt-demo__menu-label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px 8px;
	color: var(--xd-fg);
	font-size: 13px;
	font-weight: 580;
}

.xt-demo .xt-demo__menu-label span {
	color: var(--xd-fg-3);
	font-weight: 460;
}

.xt-demo .xt-demo__item,
.xt-demo .xt-demo__link {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 12px;
	align-items: start;
	padding: 10px 10px 11px;
	border-radius: 10px;
	transition: background-color 0.2s var(--xd-ease);
}

.xt-demo .xt-demo__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--xd-fg-2);
	font-size: 14px;
	font-weight: 520;
}

.xt-demo .xt-demo__link .xt-demo-icon {
	color: var(--xd-blue-light);
}

.xt-demo .xt-demo__item:hover,
.xt-demo .xt-demo__item:focus-visible,
.xt-demo .xt-demo__item.is-pointing,
.xt-demo .xt-demo__link:hover,
.xt-demo .xt-demo__link:focus-visible {
	background: var(--xd-g3);
	color: var(--xd-fg);
}

.xt-demo .xt-demo__item:focus-visible,
.xt-demo .xt-demo__link:focus-visible {
	outline-offset: -2px;
}

.xt-demo .xt-demo__link.is-current {
	color: var(--xd-fg);
}

.xt-demo .xt-demo__tick {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1.5px solid var(--xd-line-strong);
	border-radius: 999px;
	color: #fff;
	transition: background-color 0.2s var(--xd-ease), border-color 0.2s var(--xd-ease);
}

.xt-demo .xt-demo__item--toggle .xt-demo__tick {
	border-radius: 6px;
}

.xt-demo .xt-demo__tick .xt-demo-icon {
	width: 12px;
	height: 12px;
	stroke-width: 2.4;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.2s var(--xd-ease), transform 0.3s var(--xd-ease);
}

.xt-demo .xt-demo__item:hover .xt-demo__tick {
	border-color: var(--xd-fg-3);
}

.xt-demo .xt-demo__item.is-on .xt-demo__tick {
	border-color: var(--xd-action);
	background: var(--xd-action);
}

.xt-demo .xt-demo__item.is-on .xt-demo__tick .xt-demo-icon {
	opacity: 1;
	transform: none;
}

.xt-demo .xt-demo__item.is-busy .xt-demo__tick {
	border-color: var(--xd-blue);
	border-top-color: transparent;
	background: none;
	animation: xt-demo-spin 0.7s linear infinite;
}

.xt-demo .xt-demo__item.is-busy .xt-demo__tick .xt-demo-icon {
	opacity: 0;
}

@keyframes xt-demo-spin {
	to {
		transform: rotate(360deg);
	}
}

.xt-demo .xt-demo__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.xt-demo .xt-demo__label {
	color: var(--xd-fg);
	font-size: 14px;
	font-weight: 540;
	line-height: 1.3;
}

.xt-demo .xt-demo__text {
	color: var(--xd-fg-3);
	font-size: 13px;
	line-height: 1.45;
	text-wrap: pretty;
}

.xt-demo .xt-demo__item.is-on .xt-demo__label {
	color: #fff;
}

.xt-demo .xt-demo__where {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 3px;
	color: var(--xd-blue-light);
	font-size: 12.5px;
	font-weight: 520;
}

.xt-demo .xt-demo__where .xt-demo-icon {
	width: 12px;
	height: 12px;
}

/* Actions */

.xt-demo .xt-demo__actions {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.xt-demo .xt-demo__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 34px;
	padding: 0 15px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--xd-fg-2);
	font-size: 13.5px;
	font-weight: 560;
	white-space: nowrap;
	transition: background-color 0.25s var(--xd-ease), border-color 0.25s var(--xd-ease), color 0.25s var(--xd-ease), box-shadow 0.25s var(--xd-ease), transform 0.2s var(--xd-ease);
}

.xt-demo .xt-demo__btn:active {
	transform: scale(0.98);
}

.xt-demo .xt-demo__btn--ghost:hover {
	background: var(--xd-g2);
	color: var(--xd-fg);
}

.xt-demo .xt-demo__btn--secondary {
	border-color: var(--xd-line-strong);
	background: var(--xd-g3);
	color: var(--xd-fg);
}

.xt-demo .xt-demo__btn--secondary:hover {
	background: var(--xd-g4);
}

.xt-demo .xt-demo__btn--primary {
	padding: 0 14px 0 17px;
	background: var(--xd-action) linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 60%);
	color: #fff;
	font-weight: 620;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px -8px rgba(27, 149, 224, 0.6);
}

.xt-demo .xt-demo__btn--primary:hover {
	background-color: var(--xd-action-hover);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.45), 0 12px 32px -8px rgba(27, 149, 224, 0.8);
}

.xt-demo .xt-demo__btn--primary .xt-demo-icon {
	transition: transform 0.3s var(--xd-ease);
}

.xt-demo .xt-demo__btn--primary:hover .xt-demo-icon {
	transform: translateX(3px);
}

.xt-demo .xt-demo__details .xt-demo-icon {
	width: 14px;
	height: 14px;
	color: var(--xd-fg-3);
}

.xt-demo .xt-demo__icon-btn {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	color: var(--xd-fg-2);
	transition: background-color 0.25s var(--xd-ease), color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__icon-btn:hover {
	background: var(--xd-g2);
	color: var(--xd-fg);
}

.xt-demo .xt-demo__tip {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	padding: 6px 10px;
	border: 1px solid var(--xd-line-soft);
	border-radius: 8px;
	background: var(--xd-g1);
	color: var(--xd-fg);
	font-size: 12.5px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 0.25s var(--xd-ease), transform 0.35s var(--xd-ease);
}

.xt-demo .xt-demo__tip:not(:empty).is-shown {
	opacity: 1;
	transform: none;
}

.xt-demo .xt-demo__sheet-head,
.xt-demo .xt-demo__sheet-foot,
.xt-demo .xt-demo__sheet-toggle {
	display: none;
}

/* Trace: one orange light from a preset to the part of the store it changes */

.xt-demo-trace {
	position: fixed;
	z-index: 99979;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.xt-demo-trace path,
.xt-demo-trace rect {
	fill: none;
	stroke: var(--xd-trace, #ff8a3d);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 5px rgba(255, 138, 61, 0.55));
}

.xt-demo-trace circle {
	fill: #ff8a3d;
	filter: drop-shadow(0 0 4px rgba(255, 138, 61, 0.8));
}

.xt-demo-trace .is-drawing {
	animation: xt-demo-draw 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes xt-demo-draw {
	from {
		stroke-dashoffset: var(--xd-len);
	}
}

/* More: the groups that don't fit, stacked as sections of one menu */

.xt-demo .xt-demo__more[hidden] {
	display: none;
}

.xt-demo .xt-demo__menu--more .xt-demo__pill {
	display: none;
}

.xt-demo .xt-demo__menu--more .xt-demo__menu,
.xt-demo .xt-demo__menu--more .xt-demo__menu[hidden] {
	position: static;
	display: block;
	width: auto;
	max-height: none;
	padding: 0;
	overflow: visible;
	border: 0;
	background: none;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	animation: none;
}

.xt-demo .xt-demo__menu--more .xt-demo__group + .xt-demo__group {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--xd-line);
}

/* Narrower desktops: shorten labels before anything wraps */

@media (max-width: 1560px) {
	.xt-demo .xt-demo__live {
		display: none;
	}
}

@media (max-width: 1360px) {
	.xt-demo .xt-demo__title-rest {
		display: none;
	}
}

@media (max-width: 1180px) {
	.xt-demo .xt-demo__details {
		display: none;
	}
}

/* Phones and small tablets: the presets move into a bottom sheet */

@media (max-width: 899px) {
	/* A backdrop filter would make the strip the sheet's containing block; go solid instead. */
	.xt-demo .xt-demo__bar {
		display: flex;
		gap: 6px;
		background: var(--xd-ink);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.xt-demo .xt-demo__name {
		min-width: 0;
		max-width: 100%;
		padding: 0 8px;
	}

	.xt-demo .xt-demo__title {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.xt-demo .xt-demo__start,
	.xt-demo .xt-demo__group--demos {
		flex: 0 1 auto;
		min-width: 0;
	}

	.xt-demo .xt-demo__btn--primary .xt-demo-icon {
		display: none;
	}

	.xt-demo .xt-demo__actions > :not(.xt-demo__btn--primary) {
		display: none;
	}

	.xt-demo .xt-demo__btn {
		padding: 0 12px;
	}

	.xt-demo .xt-demo__sheet-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.xt-demo .xt-demo__sheet-toggle + .xt-demo__actions,
	.xt-demo .xt-demo__actions {
		margin-left: 0;
	}

	.xt-demo .xt-demo__bar > .xt-demo__actions {
		order: 3;
	}

	.xt-demo .xt-demo__presets {
		position: fixed;
		z-index: 3;
		right: 0;
		bottom: 0;
		left: 0;
		display: block;
		max-height: min(82vh, 720px);
		margin: 0;
		padding: 0 16px calc(16px + env(safe-area-inset-bottom));
		overflow-y: auto;
		border: 0;
		border-top: 1px solid var(--xd-line-soft);
		border-radius: 22px 22px 0 0;
		background: var(--xd-g1);
		box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.45);
		visibility: hidden;
		transform: translateY(100%);
		transition: transform 0.45s var(--xd-ease), visibility 0s linear 0.45s;
	}

	.xt-demo.is-sheet-open .xt-demo__presets {
		visibility: visible;
		transform: none;
		transition: transform 0.45s var(--xd-ease), visibility 0s;
	}

	.xt-demo::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(6, 9, 15, 0.6);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.35s var(--xd-ease);
	}

	.xt-demo.is-sheet-open::before {
		opacity: 1;
		pointer-events: auto;
	}

	.xt-demo .xt-demo__sheet-head {
		position: sticky;
		z-index: 1;
		top: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -16px;
		padding: 14px 10px 10px 16px;
		background: var(--xd-g1);
	}

	.xt-demo .xt-demo__sheet-title {
		color: var(--xd-fg);
		font-size: 17px;
		font-weight: 560;
		font-stretch: 104%;
		letter-spacing: -0.012em;
	}

	.xt-demo .xt-demo__presets .xt-demo__group {
		padding: 6px 0 10px;
		border-top: 1px solid var(--xd-line);
	}

	.xt-demo .xt-demo__presets .xt-demo__pill {
		display: none;
	}

	.xt-demo .xt-demo__presets .xt-demo__menu,
	.xt-demo .xt-demo__presets .xt-demo__menu[hidden] {
		position: static;
		display: block;
		width: auto;
		max-height: none;
		padding: 0;
		overflow: visible;
		border: 0;
		background: none;
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		animation: none;
	}

	.xt-demo .xt-demo__presets .xt-demo__menu-label {
		padding: 10px 2px 6px;
	}

	.xt-demo .xt-demo__presets .xt-demo__item {
		margin: 0 -8px;
	}

	.xt-demo .xt-demo__sheet-foot {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding-top: 14px;
		border-top: 1px solid var(--xd-line);
	}
}

@media (prefers-reduced-motion: reduce) {
	.xt-demo *,
	.xt-demo *::before,
	.xt-demo-trace * {
		animation: none !important;
		transition: none !important;
	}
}

/* Guided tour: the store dims, one part is lit and ringed in the trace's orange, and a card
   beside it says what changed and what to do. Clicks pass through to the store. */

.xt-demo-tour {
	--xd-ease: cubic-bezier(0.16, 1, 0.3, 1);

	position: fixed;
	z-index: 2147483000;
	inset: 0;
	color: #b0bcd6;
	font: 400 14px/1.45 "XT Demo Mona", "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-feature-settings: "ss01", "cv11";
	text-align: left;
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
}

.xt-demo-tour *,
.xt-demo-tour *::before,
.xt-demo-tour *::after {
	box-sizing: border-box;
}

.xt-demo-tour :where(p, span, div, button, svg) {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
	text-shadow: none;
	background: none;
}

.xt-demo-tour button,
.xt-demo-tour button:hover,
.xt-demo-tour button:focus {
	appearance: none;
	min-height: 0;
	background-image: none;
	box-shadow: none;
	cursor: pointer;
}

.xt-demo-tour :focus-visible {
	outline: 2px solid #1b95e0;
	outline-offset: 3px;
}

.xt-demo-tour__hole {
	position: absolute;
	border: 1.5px solid #ff8a3d;
	border-radius: 12px;
	box-shadow: 0 0 0 200vmax rgba(6, 9, 15, 0.56), 0 0 14px rgba(255, 138, 61, 0.45);
	transition: left 0.5s var(--xd-ease), top 0.5s var(--xd-ease), width 0.5s var(--xd-ease), height 0.5s var(--xd-ease), border-color 0.3s var(--xd-ease);
}

.xt-demo-tour.is-acting .xt-demo-tour__hole {
	animation: xt-demo-tour-ring 1.8s var(--xd-ease) infinite;
}

.xt-demo-tour.is-free .xt-demo-tour__hole {
	top: 50% !important;
	left: 50% !important;
	width: 0 !important;
	height: 0 !important;
	border-color: transparent;
}

@keyframes xt-demo-tour-ring {
	0%,
	100% {
		box-shadow: 0 0 0 200vmax rgba(6, 9, 15, 0.56), 0 0 14px rgba(255, 138, 61, 0.45), 0 0 0 0 rgba(255, 138, 61, 0.45);
	}

	60% {
		box-shadow: 0 0 0 200vmax rgba(6, 9, 15, 0.56), 0 0 14px rgba(255, 138, 61, 0.45), 0 0 0 9px rgba(255, 138, 61, 0);
	}
}

.xt-demo-tour__card {
	position: absolute;
	width: min(340px, calc(100vw - 24px));
	padding: 14px 16px 14px 18px;
	border: 1px solid rgba(150, 180, 240, 0.09);
	border-radius: 16px;
	background: #0b0f17;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
	transition: left 0.5s var(--xd-ease), top 0.5s var(--xd-ease), opacity 0.25s var(--xd-ease);
}

.xt-demo-tour__card:focus {
	outline: none;
}

.xt-demo-tour.is-waiting .xt-demo-tour__card {
	opacity: 0;
	pointer-events: none;
}

.xt-demo-tour.is-in .xt-demo-tour__card > * {
	animation: xt-demo-tour-in 0.45s var(--xd-ease) both;
}

.xt-demo-tour.is-out {
	opacity: 0;
	transition: opacity 0.2s var(--xd-ease);
}

@keyframes xt-demo-tour-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
}

.xt-demo-tour__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: -4px -8px 6px 0;
}

.xt-demo-tour__count {
	color: #8691a8;
	font-size: 12.5px;
	font-weight: 520;
	font-variant-numeric: tabular-nums;
}

.xt-demo-tour__close {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	color: #8691a8;
	transition: background-color 0.2s var(--xd-ease), color 0.2s var(--xd-ease);
}

.xt-demo-tour .xt-demo-tour__close:hover {
	background: #10151f;
	color: #f7f8f8;
}

.xt-demo-tour__close svg {
	width: 16px;
	height: 16px;
}

.xt-demo-tour__title {
	color: #f7f8f8;
	font-size: 16px;
	font-weight: 580;
	font-stretch: 104%;
	letter-spacing: -0.012em;
	line-height: 1.25;
	text-wrap: balance;
}

.xt-demo-tour__text {
	margin-top: 5px;
	font-size: 13.5px;
	line-height: 1.5;
	text-wrap: pretty;
}

.xt-demo-tour__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 8px 11px;
	border-radius: 10px;
	background: rgba(27, 149, 224, 0.12);
	color: #4aaced;
	font-size: 13px;
	font-weight: 560;
}

.xt-demo-tour__hint[hidden] {
	display: none;
}

.xt-demo-tour__hint svg {
	flex: none;
	width: 15px;
	height: 15px;
}

.xt-demo-tour__foot {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 14px;
}

.xt-demo-tour .xt-demo-tour__btn {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 15px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: #b0bcd6;
	font-size: 13px;
	font-weight: 560;
	transition: background-color 0.2s var(--xd-ease), color 0.2s var(--xd-ease);
}

.xt-demo-tour .xt-demo-tour__btn[hidden] {
	display: none;
}

.xt-demo-tour .xt-demo-tour__back:hover {
	background: #10151f;
	color: #f7f8f8;
}

.xt-demo-tour .xt-demo-tour__next {
	background: #1373b7;
	color: #fff;
	font-weight: 620;
}

.xt-demo-tour .xt-demo-tour__next:hover {
	background: #1479c0;
	color: #fff;
}

.xt-demo-tour .xt-demo-tour__next.is-quiet {
	border-color: #2b3446;
	background: #161c29;
	color: #f7f8f8;
	font-weight: 560;
}

.xt-demo-tour .xt-demo-tour__next.is-quiet:hover {
	background: #1f2737;
}

@media (prefers-reduced-motion: reduce) {
	.xt-demo-tour *,
	.xt-demo-tour {
		animation: none !important;
		transition: none !important;
	}
}
