/*
 * 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,
.xt-demo-shell .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);
	/* The same edge as Vitrine's full-width header: 4vw, never under 16px. */
	padding: 0 max(16px, 4vw);
	/* The edge light runs past the strip's ends; clip it sideways only, so menus still drop below. */
	overflow-x: clip;
	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.is-deferred {
	/* A modal or overlay of the store is open: the tip waits behind it (visibility, not the
	   entrance animation's opacity, so it comes back without replaying). */
	visibility: hidden;
	pointer-events: none;
}

.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 {
	grid-column: 1;
	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 {
	grid-column: 2;
	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;
}

@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 */

/* Pinned to the third column, so a demo without presets keeps them on the right edge. */
.xt-demo .xt-demo__actions {
	grid-column: 3;
	justify-self: end;
	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;
	}

	/* A demo without presets has no sheet toggle to push the actions right: they take the space. */
	.xt-demo .xt-demo__bar:not(:has(.xt-demo__sheet-toggle)) > .xt-demo__actions {
		margin-left: auto;
	}

	.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,
	.xt-demo.is-picking::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);
	}
}

/* Touch: every control in the strip answers a 44px touch while the drawn pill stays 30–34px.
   The hit area is a transparent layer centred on the control; the strip is 52px tall. */
@media (pointer: coarse) {
	.xt-demo :is(.xt-demo__btn, .xt-demo__icon-btn, .xt-demo__mark, .xt-demo__name, .xt-demo__pill) {
		position: relative;
	}

	.xt-demo :is(.xt-demo__btn, .xt-demo__icon-btn, .xt-demo__mark, .xt-demo__name, .xt-demo__pill)::before {
		content: "";
		position: absolute;
		inset: min(0px, calc((100% - 44px) / 2));
	}

	/* Menu rows are stacked, so they grow the 3px instead of overlapping. */
	.xt-demo .xt-demo__link {
		min-height: 44px;
	}
}

@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;
	}
}


/* ------------------------------------------------------------------------------------------
 * Picker: the catalogue behind the plugin name (and the starter switcher). A search-first
 * panel: one field, a rail of categories, and entries that carry their own identity (icon or
 * thumbnail, a one-line pitch, the Free/Pro badge). Desktop drops it from the bar; phones get a
 * bottom sheet.
 * ------------------------------------------------------------------------------------------ */

.xt-demo .xt-demo__name {
	gap: 9px;
	padding: 0 8px 0 6px;
}

.xt-demo .xt-demo__name-icon {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.xt-demo .xt-demo__name:not(:has(.xt-demo__name-icon)) {
	padding-left: 12px;
}

.xt-demo .xt-demo__switch {
	display: grid;
	place-items: center;
	margin-left: -2px;
}

.xt-demo .xt-demo__kbd,
.xt-demo .xtp__kbd {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border: 1px solid var(--xd-line-strong);
	border-bottom-width: 2px;
	border-radius: 6px;
	color: var(--xd-fg-3);
	font: 560 11px/1 "XT Demo Mona", ui-sans-serif, system-ui, sans-serif;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.xt-demo .xt-demo__kbd {
	margin-left: 2px;
	transition: color 0.25s var(--xd-ease), border-color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__name:hover .xt-demo__kbd,
.xt-demo .xt-demo__name[aria-expanded="true"] .xt-demo__kbd {
	border-color: var(--xd-fg-3);
	color: var(--xd-fg-2);
}

.xt-demo .xtp__kbd .xt-demo-icon {
	width: 11px;
	height: 11px;
	stroke-width: 2;
}

/* The store dims a little while the picker is open: the catalogue is the subject. */
.xt-demo-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(6, 9, 15, 0.42);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s var(--xd-ease);
}

.xt-demo.is-picking ~ .xt-demo-stage::after {
	opacity: 1;
}

.xt-demo .xtp {
	position: absolute;
	z-index: 6;
	top: calc(100% + 8px);
	left: var(--xtp-x, 12px);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(760px, calc(100vw - 24px));
	height: min(600px, calc(100vh - var(--xd-top) - var(--xd-h) - 28px));
	height: min(600px, calc(100dvh - var(--xd-top) - var(--xd-h) - 28px));
	overflow: hidden;
	border: 1px solid var(--xd-line-soft);
	border-radius: 18px;
	background: rgba(11, 15, 23, 0.985);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 28px 64px -12px rgba(0, 0, 0, 0.6);
	color: var(--xd-fg-2);
	transform-origin: 40px top;
	animation: xt-demo-menu 0.34s var(--xd-ease);
	outline: none;
}

.xt-demo .xtp--grid {
	width: min(900px, calc(100vw - 24px));
	height: min(660px, calc(100vh - var(--xd-top) - var(--xd-h) - 28px));
	height: min(660px, calc(100dvh - var(--xd-top) - var(--xd-h) - 28px));
}

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

.xt-demo .xtp__grab,
.xt-demo .xtp__top {
	display: none;
}

.xt-demo .xtp__head {
	border-bottom: 1px solid var(--xd-line);
}

.xt-demo .xtp__search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 58px;
	padding: 0 16px 0 20px;
	cursor: text;
}

.xt-demo .xtp__search > .xt-demo-icon {
	width: 18px;
	height: 18px;
	color: var(--xd-fg-3);
}

.xt-demo .xtp__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: none;
	box-shadow: none;
	color: var(--xd-fg);
	font: 460 16px/1.2 "XT Demo Mona", ui-sans-serif, system-ui, sans-serif;
	letter-spacing: -0.005em;
	caret-color: var(--xd-blue-light);
	-webkit-appearance: none;
	appearance: none;
}

.xt-demo .xtp__input::placeholder {
	color: var(--xd-fg-3);
	opacity: 1;
}

.xt-demo .xtp__input::-webkit-search-cancel-button,
.xt-demo .xtp__input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.xt-demo .xtp__input:focus-visible {
	outline: 0;
}

.xt-demo .xtp__clear,
.xt-demo .xtp__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: transparent;
	color: var(--xd-fg-3);
	transition: background-color 0.2s var(--xd-ease), color 0.2s var(--xd-ease);
}

.xt-demo .xtp__clear:hover,
.xt-demo .xtp__close:hover {
	background: var(--xd-g3);
	color: var(--xd-fg);
}

.xt-demo .xtp__clear .xt-demo-icon {
	width: 14px;
	height: 14px;
}

.xt-demo .xtp__body {
	display: grid;
	grid-template-columns: 196px minmax(0, 1fr);
	min-height: 0;
}

/* Rail */

.xt-demo .xtp__rail {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 10px;
	overflow-y: auto;
	border-right: 1px solid var(--xd-line);
	scrollbar-width: none;
}

.xt-demo .xtp__chip {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	height: 34px;
	padding: 0 10px 0 12px;
	border-radius: 999px;
	background: transparent;
	color: var(--xd-fg-2);
	font-size: 13.5px;
	font-weight: 520;
	text-align: left;
	white-space: nowrap;
	transition: background-color 0.2s var(--xd-ease), color 0.2s var(--xd-ease);
}

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

.xt-demo .xtp__chip-count {
	color: var(--xd-fg-3);
	font-size: 12px;
	font-weight: 520;
	font-variant-numeric: tabular-nums;
}

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

.xt-demo .xtp__chip[aria-pressed="true"] .xtp__chip-count {
	color: rgba(6, 9, 15, 0.55);
}

.xt-demo .xtp__chip:focus-visible {
	outline-offset: -2px;
}

.xt-demo .xtp__rail-rule {
	flex: none;
	height: 1px;
	margin: 8px 12px;
	background: var(--xd-line);
}

/* Entries */

.xt-demo .xtp__scroll {
	min-height: 0;
	padding: 0 10px 12px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-padding: 40px 0 8px;
	scrollbar-color: var(--xd-g4) transparent;
	scrollbar-width: thin;
}

.xt-demo .xtp__section + .xtp__section {
	margin-top: 4px;
}

.xt-demo .xtp__section-label {
	position: sticky;
	z-index: 1;
	top: 0;
	padding: 14px 12px 6px;
	background: linear-gradient(rgba(11, 15, 23, 1) 70%, rgba(11, 15, 23, 0));
	color: var(--xd-fg-3);
	font-size: 12px;
	font-weight: 580;
	letter-spacing: 0.01em;
}

.xt-demo .xtp__section:first-child:not(:has(.xtp__section-label)) {
	padding-top: 10px;
}

.xt-demo .xtp__opt {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 62px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--xd-fg-2);
	scroll-margin: 40px 0 8px;
	transition: background-color 0.16s var(--xd-ease);
}

.xt-demo .xtp__opt.is-active {
	background: var(--xd-g3);
}

.xt-demo .xtp__ico {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--xd-g3);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.xt-demo .xtp__ico img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xt-demo .xtp__ico-letter {
	color: var(--xd-fg);
	font-size: 16px;
	font-weight: 620;
}

.xt-demo .xtp__main {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.xt-demo .xtp__line {
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
	white-space: nowrap;
}

.xt-demo .xtp__name {
	overflow: hidden;
	color: var(--xd-fg);
	font-size: 14.5px;
	font-weight: 580;
	font-stretch: 103%;
	letter-spacing: -0.008em;
	text-overflow: ellipsis;
}

.xt-demo .xtp__name mark {
	border-radius: 3px;
	background: rgba(27, 149, 224, 0.3);
	color: #fff;
	box-shadow: 0 0 0 1px rgba(27, 149, 224, 0.3);
}

.xt-demo .xtp__sub {
	flex: none;
	color: var(--xd-fg-3);
	font-size: 12.5px;
}

.xt-demo .xtp__text {
	overflow: hidden;
	color: var(--xd-fg-3);
	font-size: 13px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xt-demo .xtp__opt.is-active .xtp__text {
	color: var(--xd-fg-2);
}

.xt-demo .xtp__side {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xt-demo .xtp__badge,
.xt-demo .xtp__here {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 9px;
	border: 1px solid var(--xd-line-strong);
	border-radius: 999px;
	color: var(--xd-fg-2);
	font-size: 11.5px;
	font-weight: 560;
	white-space: nowrap;
}

.xt-demo .xtp__badge--quiet {
	border-color: var(--xd-line);
	color: var(--xd-fg-3);
}

.xt-demo .xtp__here {
	border-color: rgba(74, 172, 237, 0.35);
	background: rgba(27, 149, 224, 0.12);
	color: var(--xd-blue-light);
}

.xt-demo .xtp__here::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
}

.xt-demo .xtp__go {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--xd-g4);
	color: var(--xd-fg);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.16s var(--xd-ease), transform 0.24s var(--xd-ease);
}

.xt-demo .xtp__go svg {
	width: 14px;
	height: 14px;
}

.xt-demo .xtp__opt.is-active .xtp__go {
	opacity: 1;
	transform: none;
}

.xt-demo .xtp__opt:not(.is-active) .xtp__go {
	width: 0;
	margin-left: -8px;
}

.xt-demo .xtp__opt.is-going .xtp__go svg {
	animation: xt-demo-spin 0.8s linear infinite;
}

/* All Access: the one entry that is every plugin at once. */
.xt-demo .xtp__opt--pinned {
	margin-top: 10px;
	border: 1px solid var(--xd-line-strong);
	background: linear-gradient(100deg, rgba(27, 149, 224, 0.13), rgba(27, 149, 224, 0) 55%), var(--xd-g1);
}

.xt-demo .xtp__opt--pinned.is-active {
	border-color: rgba(74, 172, 237, 0.45);
	background: linear-gradient(100deg, rgba(27, 149, 224, 0.2), rgba(27, 149, 224, 0.04) 65%), var(--xd-g2);
}

.xt-demo .xtp__opt--pinned .xtp__ico {
	box-shadow: inset 0 0 0 1px rgba(74, 172, 237, 0.4);
}

/* Grid (starters) */

.xt-demo .xtp__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding-top: 10px;
}

.xt-demo .xtp__card {
	display: grid;
	gap: 10px;
	padding: 6px 6px 12px;
	border-radius: 14px;
	color: var(--xd-fg-2);
	transition: background-color 0.16s var(--xd-ease);
}

.xt-demo .xtp__card.is-active {
	background: var(--xd-g3);
}

.xt-demo .xtp__shot {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 10px;
	background: var(--xd-g2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.xt-demo .xtp__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.6s var(--xd-ease);
}

.xt-demo .xtp__card.is-active .xtp__shot img {
	transform: scale(1.035);
}

.xt-demo .xtp__card.is-current .xtp__shot {
	box-shadow: 0 0 0 2px var(--xd-blue);
}

.xt-demo .xtp__shot .xtp__badge,
.xt-demo .xtp__shot .xtp__here {
	position: absolute;
	top: 8px;
	right: 8px;
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(6, 9, 15, 0.78);
	color: var(--xd-fg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.xt-demo .xtp__shot .xtp__here {
	right: auto;
	left: 8px;
	color: var(--xd-blue-light);
}

.xt-demo .xtp__cap {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 0 6px;
	min-width: 0;
}

.xt-demo .xtp__card .xtp__sub {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Empty */

.xt-demo .xtp__empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 64px 24px;
	text-align: center;
}

.xt-demo .xtp__empty-title {
	color: var(--xd-fg);
	font-size: 15px;
	font-weight: 580;
	overflow-wrap: anywhere;
}

.xt-demo .xtp__empty-text {
	max-width: 36ch;
	color: var(--xd-fg-3);
	font-size: 13.5px;
}

.xt-demo .xtp__empty-btn {
	height: 34px;
	margin-top: 8px;
	padding: 0 16px;
	border: 1px solid var(--xd-line-strong);
	border-radius: 999px;
	background: var(--xd-g3);
	color: var(--xd-fg);
	font-size: 13.5px;
	font-weight: 560;
}

.xt-demo .xtp__empty-btn:hover {
	background: var(--xd-g4);
}

/* Foot: what Enter will do, the keys, and the full catalogue */

.xt-demo .xtp__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	padding: 0 16px 0 20px;
	border-top: 1px solid var(--xd-line);
	background: var(--xd-g1);
	font-size: 12.5px;
}

.xt-demo .xtp__status {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--xd-fg-3);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xt-demo .xtp__keys {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
	color: var(--xd-fg-3);
}

.xt-demo .xtp__keys .xtp__kbd + .xtp__kbd {
	margin-left: 0;
}

.xt-demo .xtp__keys .xtp__kbd:not(:first-child):not(.xtp__kbd + .xtp__kbd) {
	margin-left: 10px;
}

.xt-demo .xtp__more {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 5px;
	color: var(--xd-fg-2);
	font-weight: 540;
	transition: color 0.2s var(--xd-ease);
}

.xt-demo .xtp__more:hover {
	color: var(--xd-fg);
}

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

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

@media (pointer: coarse) {
	.xt-demo .xt-demo__kbd,
	.xt-demo .xtp__kbd--esc,
	.xt-demo .xtp__keys {
		display: none;
	}
}

/* Phones and small tablets: a bottom sheet with the categories as a scrolling row */

@media (max-width: 899px) {
	.xt-demo-stage::after {
		display: none;
	}

	.xt-demo .xtp,
	.xt-demo .xtp--grid {
		position: fixed;
		z-index: 4;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		height: min(90vh, 780px);
		height: min(90dvh, 780px);
		border: 0;
		border-top: 1px solid var(--xd-line-soft);
		border-radius: 22px 22px 0 0;
		background: var(--xd-g1);
		box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.5);
		transform: translateY(100%);
		transition: transform 0.42s var(--xd-ease);
		animation: none;
	}

	.xt-demo .xtp.is-open {
		transform: none;
	}

	.xt-demo .xtp.is-dragging {
		transition: none;
	}

	.xt-demo .xtp__head {
		padding: 8px 16px 12px;
		border-bottom: 0;
		touch-action: none;
	}

	.xt-demo .xtp__grab {
		display: block;
		width: 38px;
		height: 4px;
		margin: 0 auto 8px;
		border-radius: 999px;
		background: var(--xd-g4);
	}

	.xt-demo .xtp__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 10px;
	}

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

	.xt-demo .xtp__close {
		width: 36px;
		height: 36px;
		margin-right: -6px;
		background: var(--xd-g3);
		color: var(--xd-fg-2);
	}

	.xt-demo .xtp__search {
		height: 48px;
		padding: 0 8px 0 14px;
		border: 1px solid var(--xd-line-strong);
		border-radius: 14px;
		background: var(--xd-g2);
	}

	.xt-demo .xtp__search:focus-within {
		border-color: var(--xd-blue);
	}

	.xt-demo .xtp__input {
		font-size: 16px;
	}

	.xt-demo .xtp__body {
		display: flex;
		flex-direction: column;
	}

	.xt-demo .xtp__rail {
		flex: none;
		flex-direction: row;
		gap: 6px;
		padding: 0 16px 10px;
		overflow-x: auto;
		overflow-y: hidden;
		border-right: 0;
		border-bottom: 1px solid var(--xd-line);
		scroll-padding: 0 16px;
	}

	.xt-demo .xtp__chip {
		height: 34px;
		padding: 0 14px;
		border: 1px solid var(--xd-line-strong);
	}

	.xt-demo .xtp__chip[aria-pressed="true"] {
		border-color: var(--xd-fg);
	}

	.xt-demo .xtp__rail-rule {
		width: 1px;
		height: auto;
		margin: 6px 4px;
	}

	.xt-demo .xtp__scroll {
		flex: 1 1 auto;
		padding: 0 8px 16px;
	}

	.xt-demo .xtp__section-label {
		padding: 14px 10px 6px;
		background: linear-gradient(var(--xd-g1) 70%, rgba(11, 15, 23, 0));
	}

	.xt-demo .xtp__opt {
		grid-template-columns: 44px minmax(0, 1fr) auto;
		align-items: start;
		gap: 12px;
		padding: 12px 10px;
	}

	.xt-demo .xtp__ico {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.xt-demo .xtp__line {
		flex-wrap: wrap;
		row-gap: 0;
	}

	.xt-demo .xtp__text {
		display: -webkit-box;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.xt-demo .xtp__side {
		padding-top: 2px;
	}

	.xt-demo .xtp__go {
		display: none;
	}

	.xt-demo .xtp__opt.is-active {
		background: transparent;
	}

	.xt-demo .xtp__opt:active,
	.xt-demo .xtp__card:active {
		background: var(--xd-g3);
	}

	.xt-demo .xtp__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px;
	}

	.xt-demo .xtp__card.is-active {
		background: transparent;
	}

	.xt-demo .xtp__cap {
		flex-direction: column;
		gap: 1px;
	}

	.xt-demo .xtp__foot {
		min-height: 0;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
	}
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
	.xt-demo .xtp {
		transition: none;
	}
}

/* ------------------------------------------------------------------------------------------
 * Theme mode: the same strip above a Vitrine starter store. Back to the Vitrine landing, the
 * starter on screen (thumbnail, name, kind) opening the switcher, previous and next, screen
 * sizes in the middle, and the offer on the right.
 * ------------------------------------------------------------------------------------------ */

.xt-demo-device {
	position: relative;
	height: 100%;
	margin: 0 auto;
}

.xt-demo-frame.is-arriving {
	animation: xt-demo-arrive 0.5s var(--xd-ease, ease-out);
}

@keyframes xt-demo-arrive {
	from {
		opacity: 0.4;
		filter: blur(6px);
	}
}

.xt-demo--starter .xt-demo__bar {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.xt-demo .xt-demo__back {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 12px 0 9px;
	border-radius: 999px;
	color: var(--xd-fg);
	font-size: 14.5px;
	font-weight: 600;
	font-stretch: 106%;
	letter-spacing: -0.01em;
	transition: background-color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__back .xt-demo-icon {
	color: var(--xd-fg-3);
	transition: transform 0.3s var(--xd-ease), color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__back:hover {
	background: var(--xd-g2);
}

.xt-demo .xt-demo__back:hover .xt-demo-icon {
	color: var(--xd-fg);
	transform: translateX(-3px);
}

.xt-demo .xt-demo__rule {
	flex: none;
	width: 1px;
	height: 20px;
	background: var(--xd-line-strong);
}

.xt-demo .xt-demo__name--starter {
	padding-left: 5px;
}

.xt-demo .xt-demo__name-shot {
	display: block;
	flex: none;
	width: 32px;
	height: 24px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--xd-g3);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.xt-demo .xt-demo__name-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.xt-demo--starter .xt-demo__title-rest {
	margin-left: 8px;
	color: var(--xd-fg-3);
	font-size: 13px;
	font-weight: 480;
	font-stretch: 100%;
}

.xt-demo .xt-demo__step {
	display: inline-flex;
	flex: none;
	gap: 2px;
}

.xt-demo .xt-demo__step .xt-demo__icon-btn {
	width: 30px;
	height: 30px;
}

.xt-demo .xt-demo__step .xt-demo__tip {
	right: auto;
	left: 50%;
	opacity: 0;
	transform: translate(-50%, -4px);
}

.xt-demo .xt-demo__step .xt-demo__icon-btn:hover .xt-demo__tip,
.xt-demo .xt-demo__step .xt-demo__icon-btn:focus-visible .xt-demo__tip {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Screen sizes: the seg control from the site, one lit thumb. */
.xt-demo .xt-demo__devices {
	grid-column: 2;
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--xd-line);
	border-radius: 999px;
	background: var(--xd-g1);
}

.xt-demo .xt-demo__device {
	display: grid;
	place-items: center;
	width: 38px;
	height: 28px;
	border-radius: 999px;
	background: transparent;
	color: var(--xd-fg-3);
	transition: background-color 0.25s var(--xd-ease), color 0.25s var(--xd-ease);
}

.xt-demo .xt-demo__device:hover {
	color: var(--xd-fg);
}

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

.xt-demo .xt-demo__device:focus-visible {
	outline-offset: 1px;
}

.xt-demo .xt-demo__note {
	margin-right: 4px;
	color: var(--xd-fg-3);
	font-size: 13px;
	white-space: nowrap;
}

.xt-demo .xt-demo__cta-short {
	display: none;
}

.xt-demo .xt-demo__tier[data-tier="pro"] {
	border-color: var(--xd-fg);
	background: var(--xd-fg);
	color: var(--xd-ink);
}

.xt-demo .xt-demo__tier {
	display: inline-flex;
	align-items: center;
	height: 24px;
	margin-right: 4px;
	padding: 0 10px;
	border: 1px solid var(--xd-line-strong);
	border-radius: 999px;
	color: var(--xd-fg);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

/* The store at a tablet's or a phone's width, on the ink ground, with its own edge. */
.xt-demo-shell--starter .xt-demo-stage {
	background: #06090f radial-gradient(ellipse 60% 50% at 50% 0%, rgba(27, 149, 224, 0.1), rgba(27, 149, 224, 0));
}

.xt-demo-stage[data-device] .xt-demo-device {
	transition: width 0.55s var(--xd-ease, cubic-bezier(0.16, 1, 0.3, 1)), height 0.55s cubic-bezier(0.16, 1, 0.3, 1), margin 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.55s cubic-bezier(0.16, 1, 0.3, 1);
	width: 100%;
}

.xt-demo-stage[data-device="tablet"] .xt-demo-device,
.xt-demo-stage[data-device="phone"] .xt-demo-device {
	height: calc(100% - 48px);
	margin-top: 24px;
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(150, 180, 240, 0.14), 0 0 0 10px #10151f, 0 0 0 11px #2b3446, 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

.xt-demo-stage[data-device="tablet"] .xt-demo-device {
	width: min(834px, calc(100% - 64px));
}

.xt-demo-stage[data-device="phone"] .xt-demo-device {
	width: 390px;
	max-height: 860px;
	border-radius: 34px;
}

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

	.xt-demo .xt-demo__note {
		display: none;
	}
}

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

@media (max-width: 899px) {
	.xt-demo .xt-demo__devices,
	.xt-demo .xt-demo__step,
	.xt-demo .xt-demo__rule,
	.xt-demo .xt-demo__back-label,
	.xt-demo--starter .xt-demo__tier {
		display: none;
	}

	.xt-demo--starter .xt-demo__cta-long {
		display: none;
	}

	.xt-demo--starter .xt-demo__cta-short {
		display: inline;
	}

	.xt-demo .xt-demo__back {
		width: 34px;
		padding: 0;
		justify-content: center;
	}

	.xt-demo--starter .xt-demo__start {
		flex: 1 1 auto;
	}

	.xt-demo--starter .xt-demo__name {
		flex: 0 1 auto;
		min-width: 0;
	}

	.xt-demo--starter .xt-demo__actions {
		margin-left: auto;
	}

	.xt-demo-stage[data-device] .xt-demo-device {
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}
}

/* Narrow phones: the Presets button keeps its icon and count, so the plugin's name has room. */
@media (max-width: 479px) {
	.xt-demo .xt-demo__sheet-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.xt-demo .xt-demo__sheet-toggle {
		gap: 5px;
		padding: 0 11px;
	}

	.xt-demo .xt-demo__name .xt-demo__switch {
		display: none;
	}

	.xt-demo .xt-demo__mark {
		margin-right: 0;
	}

	.xt-demo .xt-demo__bar {
		gap: 4px;
	}
}
