/* /gestures: the agent gesture vocabulary.
 *
 * Page-scoped tokens layer over /style.css so the page follows the site theme
 * in both directions (the theme boot script stamps data-theme on <html>).
 */

:root {
	--gv-radius: 14px;
	--gv-border: rgba(255, 255, 255, 0.08);
	--gv-border-strong: rgba(255, 255, 255, 0.2);
	--gv-surface: rgba(255, 255, 255, 0.03);
	--gv-surface-2: rgba(255, 255, 255, 0.06);
	--gv-surface-3: rgba(255, 255, 255, 0.1);
	--gv-accent: #7dd3fc;
	--gv-accent-ink: #04141f;
	--gv-muted: rgba(255, 255, 255, 0.6);
}
:root[data-theme='light'] {
	--gv-border: rgba(0, 0, 0, 0.1);
	--gv-border-strong: rgba(0, 0, 0, 0.24);
	--gv-surface: rgba(0, 0, 0, 0.03);
	--gv-surface-2: rgba(0, 0, 0, 0.05);
	--gv-surface-3: rgba(0, 0, 0, 0.09);
	--gv-accent: #0369a1;
	--gv-accent-ink: #f8fbff;
	--gv-muted: rgba(0, 0, 0, 0.58);
}

.gv-page {
	min-height: 100vh;
	background: var(--bg, #000);
	color: var(--text, #fafafa);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.gv-page main {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px) 96px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.gv-hero {
	padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 3vw, 40px);
	max-width: 780px;
}

.gv-hero-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 10px;
	border: 1px solid var(--gv-border);
	border-radius: 999px;
	background: var(--gv-surface);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gv-muted);
}

.gv-hero-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gv-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gv-accent) 22%, transparent);
}

.gv-hero h1 {
	margin: 20px 0 14px;
	font-size: clamp(34px, 6vw, 58px);
	line-height: 1.04;
	letter-spacing: -0.03em;
	font-weight: 680;
}

.gv-hero-lede {
	margin: 0;
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.62;
	color: var(--gv-muted);
}
.gv-hero-lede strong {
	color: var(--text, #fafafa);
	font-weight: 600;
}

.gv-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 26px 0 0;
}

.gv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--gv-border-strong);
	border-radius: 10px;
	background: var(--gv-surface-2);
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 550;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}
.gv-btn:hover {
	background: var(--gv-surface-3);
	transform: translateY(-1px);
}
.gv-btn:active {
	transform: translateY(0);
}
.gv-btn:focus-visible {
	outline: 2px solid var(--gv-accent);
	outline-offset: 2px;
}
.gv-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}
.gv-btn--primary {
	background: var(--gv-accent);
	border-color: transparent;
	color: var(--gv-accent-ink);
}
.gv-btn--primary:hover {
	background: color-mix(in srgb, var(--gv-accent) 86%, white);
}
.gv-btn--ghost {
	background: transparent;
	border-color: var(--gv-border);
}

.gv-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin: 30px 0 0;
	padding: 0;
}
.gv-stat {
	padding: 12px 14px;
	border: 1px solid var(--gv-border);
	border-radius: 12px;
	background: var(--gv-surface);
}
.gv-stat dt {
	margin: 0 0 4px;
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gv-muted);
}
.gv-stat dd {
	margin: 0;
	font-size: 22px;
	font-weight: 640;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

/* ── Two-column body ───────────────────────────────────────────────────── */

.gv-body {
	display: grid;
	grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}

.gv-stage-col {
	position: sticky;
	top: 84px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gv-stage-card,
.gv-override {
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	background: var(--gv-surface);
	overflow: hidden;
}

.gv-stage {
	position: relative;
	aspect-ratio: 3 / 4;
	background:
		radial-gradient(120% 90% at 50% 8%, var(--gv-surface-2), transparent 70%),
		var(--gv-surface);
	display: grid;
	place-items: center;
}
.gv-stage canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.gv-stage-empty,
.gv-stage-loading,
.gv-stage-error {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 8px;
	padding: 28px;
	text-align: center;
}
.gv-stage-empty-icon {
	font-size: 30px;
	opacity: 0.8;
}
.gv-stage-empty-title,
.gv-stage-error-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}
.gv-stage-empty-body,
.gv-stage-error-body {
	margin: 0;
	max-width: 34ch;
	font-size: 13px;
	line-height: 1.55;
	color: var(--gv-muted);
}
.gv-stage-error-body a,
.gv-footnote a,
.gv-hints-skills a {
	color: var(--gv-accent);
}

.gv-spinner {
	width: 22px;
	height: 22px;
	border: 2px solid var(--gv-border-strong);
	border-top-color: var(--gv-accent);
	border-radius: 50%;
	animation: gv-spin 0.7s linear infinite;
}
@keyframes gv-spin {
	to {
		transform: rotate(360deg);
	}
}
.gv-stage-loading p {
	margin: 0;
	font-size: 13px;
	color: var(--gv-muted);
}

.gv-stage-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-top: 1px solid var(--gv-border);
}
.gv-stage-titles {
	min-width: 0;
}
.gv-stage-slot {
	margin: 0;
	font-size: 14px;
	font-weight: 620;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gv-stage-clip {
	margin: 2px 0 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	color: var(--gv-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gv-stage-controls {
	display: flex;
	gap: 6px;
	flex: none;
}
.gv-icon-btn {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 1px solid var(--gv-border);
	border-radius: 9px;
	background: var(--gv-surface-2);
	color: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}
.gv-icon-btn:hover:not([disabled]) {
	background: var(--gv-surface-3);
	transform: translateY(-1px);
}
.gv-icon-btn:focus-visible {
	outline: 2px solid var(--gv-accent);
	outline-offset: 2px;
}
.gv-icon-btn[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}
.gv-icon-btn[aria-pressed='true'] {
	background: var(--gv-accent);
	color: var(--gv-accent-ink);
	border-color: transparent;
}

.gv-sr-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.gv-stage-note {
	margin: 0;
	padding: 0 14px 13px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--gv-muted);
}

/* ── Override builder ──────────────────────────────────────────────────── */

.gv-override {
	padding: 16px;
}

.gv-apply {
	padding-top: 4px;
}
.gv-apply-status {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--gv-muted);
	min-height: 1em;
}
.gv-apply-status.is-ok {
	color: #4ade80;
}
.gv-apply-status.is-err {
	color: #f87171;
}
.gv-apply-status a {
	color: inherit;
}
:root[data-theme='light'] .gv-apply-status.is-ok {
	color: #15803d;
}
:root[data-theme='light'] .gv-apply-status.is-err {
	color: #b91c1c;
}

.gv-json {
	margin: 14px 0 12px;
	border-top: 1px solid var(--gv-border);
	padding-top: 12px;
}
.gv-json > summary {
	font-size: 12px;
	color: var(--gv-muted);
	cursor: pointer;
	list-style: none;
}
.gv-json > summary::-webkit-details-marker {
	display: none;
}
.gv-json > summary::before {
	content: '▸ ';
}
.gv-json[open] > summary::before {
	content: '▾ ';
}
.gv-json > summary:hover {
	color: var(--text, #fafafa);
}
.gv-json > summary:focus-visible {
	outline: 2px solid var(--gv-accent);
	outline-offset: 2px;
}
.gv-json .gv-code {
	margin-top: 10px;
}
.gv-override-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 620;
}
.gv-override-lede {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--gv-muted);
}
.gv-field {
	display: block;
	margin-bottom: 12px;
}
.gv-field-label {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gv-muted);
}
.gv-select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--gv-border-strong);
	border-radius: 9px;
	background: var(--gv-surface-2);
	color: inherit;
	font: inherit;
	font-size: 13px;
}
.gv-select:focus-visible {
	outline: 2px solid var(--gv-accent);
	outline-offset: 1px;
}

.gv-code {
	margin: 0 0 12px;
	padding: 12px;
	border: 1px solid var(--gv-border);
	border-radius: 10px;
	background: var(--gv-surface-2);
	overflow-x: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	line-height: 1.6;
}
.gv-override-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ── Slot grid ─────────────────────────────────────────────────────────── */

.gv-section-head {
	margin: 26px 0 14px;
}
.gv-section-head:first-child {
	margin-top: 0;
}
.gv-section-head h2 {
	margin: 0 0 6px;
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 640;
	letter-spacing: -0.02em;
	scroll-margin-top: 90px;
}
.gv-section-head p {
	margin: 0;
	max-width: 68ch;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gv-muted);
}

.gv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.gv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0;
	border: 1px solid var(--gv-border);
	border-radius: 12px;
	background: var(--gv-surface);
	color: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.gv-card:hover {
	transform: translateY(-2px);
	border-color: var(--gv-border-strong);
	background: var(--gv-surface-2);
}
.gv-card:focus-visible {
	outline: 2px solid var(--gv-accent);
	outline-offset: 2px;
}
.gv-card[aria-current='true'] {
	border-color: var(--gv-accent);
	background: color-mix(in srgb, var(--gv-accent) 10%, transparent);
}
.gv-card--skeleton {
	aspect-ratio: 3 / 4;
	cursor: default;
	background: linear-gradient(100deg, var(--gv-surface) 30%, var(--gv-surface-2) 50%, var(--gv-surface) 70%);
	background-size: 220% 100%;
	animation: gv-shimmer 1.3s linear infinite;
}
@keyframes gv-shimmer {
	to {
		background-position: -220% 0;
	}
}

.gv-card-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--gv-surface-2);
	overflow: hidden;
}
.gv-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.25s ease;
}
.gv-card:hover .gv-card-thumb img {
	transform: scale(1.04);
}
.gv-card-thumb-fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 26px;
}

.gv-card-body {
	padding: 10px 11px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.gv-card-slot {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	font-weight: 600;
}
.gv-card-clip {
	font-size: 11.5px;
	color: var(--gv-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gv-card-note {
	margin-top: 2px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--gv-muted);
	opacity: 0.85;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.gv-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 7px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--gv-accent) 88%, transparent);
	color: var(--gv-accent-ink);
	font-size: 10px;
	font-weight: 640;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.gv-badge--warn {
	background: #f59e0b;
	color: #1a1206;
}

.gv-grid-hint {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--gv-muted);
}
.gv-grid-hint kbd {
	padding: 1px 5px;
	border: 1px solid var(--gv-border-strong);
	border-radius: 5px;
	background: var(--gv-surface-2);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
}

.gv-error {
	padding: 18px;
	border: 1px solid var(--gv-border-strong);
	border-radius: 12px;
	background: var(--gv-surface);
}
.gv-error-title {
	margin: 0 0 6px;
	font-weight: 620;
}
.gv-error-body {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--gv-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	word-break: break-word;
}

/* ── Hints + layers tables ─────────────────────────────────────────────── */

.gv-hints,
.gv-layers {
	border: 1px solid var(--gv-border);
	border-radius: 12px;
	overflow: hidden;
}
.gv-hints-loading {
	padding: 16px;
	font-size: 13px;
	color: var(--gv-muted);
}

.gv-row {
	display: grid;
	grid-template-columns: minmax(120px, 1.1fr) minmax(90px, 0.9fr) minmax(100px, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 11px 14px;
	border-top: 1px solid var(--gv-border);
	font-size: 13px;
}
.gv-row:first-child {
	border-top: 0;
}
.gv-row--head {
	background: var(--gv-surface-2);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gv-muted);
}
.gv-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12.5px;
	overflow-wrap: anywhere;
}
.gv-arrow {
	color: var(--gv-muted);
}
.gv-count {
	justify-self: end;
	padding: 2px 8px;
	border: 1px solid var(--gv-border);
	border-radius: 999px;
	background: var(--gv-surface-2);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.gv-hints details {
	border-top: 1px solid var(--gv-border);
}
.gv-hints details > summary {
	padding: 9px 14px;
	font-size: 12px;
	color: var(--gv-muted);
	cursor: pointer;
	list-style: none;
}
.gv-hints details > summary::-webkit-details-marker {
	display: none;
}
.gv-hints details > summary:hover {
	color: var(--text, #fafafa);
}
.gv-hints details > summary:focus-visible {
	outline: 2px solid var(--gv-accent);
	outline-offset: -2px;
}
.gv-hints-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 14px 14px;
}
.gv-hints-skills code {
	padding: 2px 7px;
	border: 1px solid var(--gv-border);
	border-radius: 7px;
	background: var(--gv-surface-2);
	font-size: 11.5px;
}

.gv-footnote {
	margin-top: 26px;
	padding: 16px;
	border: 1px dashed var(--gv-border-strong);
	border-radius: 12px;
}
.gv-footnote p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--gv-muted);
}
.gv-footnote code,
.gv-section-head code,
.gv-override-lede code {
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--gv-surface-2);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.gv-body {
		grid-template-columns: minmax(0, 1fr);
	}
	.gv-stage-col {
		position: static;
		order: 2;
	}
	.gv-main-col {
		order: 1;
	}
	.gv-stage {
		aspect-ratio: 4 / 3;
	}
	.gv-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.gv-row .gv-arrow {
		display: none;
	}
}

@media (max-width: 420px) {
	.gv-grid {
		grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.gv-card,
	.gv-btn,
	.gv-icon-btn,
	.gv-card-thumb img {
		transition: none;
	}
	.gv-card--skeleton,
	.gv-spinner {
		animation: none;
	}
}

/* ── Motion signatures ─────────────────────────────────────────────────── */
/* Region colours are shared by the fingerprint bars, the legends and the
 * atlas, so a colour means the same body part everywhere on the page. */

:root {
	--gv-r-head: #a78bfa;
	--gv-r-arms: #7dd3fc;
	--gv-r-torso: #34d399;
	--gv-r-root: #fbbf24;
	--gv-r-legs: #f472b6;
	--gv-warn: #f59e0b;
	--gv-ok: #34d399;
}
:root[data-theme='light'] {
	--gv-r-head: #7c3aed;
	--gv-r-arms: #0284c7;
	--gv-r-torso: #059669;
	--gv-r-root: #b45309;
	--gv-r-legs: #db2777;
	--gv-warn: #b45309;
	--gv-ok: #047857;
}

[data-region='head'] { --gv-region: var(--gv-r-head); }
[data-region='arms'] { --gv-region: var(--gv-r-arms); }
[data-region='torso'] { --gv-region: var(--gv-r-torso); }
[data-region='root'] { --gv-region: var(--gv-r-root); }
[data-region='legs'] { --gv-region: var(--gv-r-legs); }

.gv-fp {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
}

.gv-fp-bar {
	display: flex;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--gv-surface-2);
}

.gv-fp-seg {
	display: block;
	height: 100%;
	background: var(--gv-region, var(--gv-muted));
	/* A region that barely moves still gets a visible hairline rather than
	 * rounding away to nothing, so the bar never implies zero when it is not. */
	min-width: 1px;
}

.gv-fp-meta {
	font-size: 11px;
	letter-spacing: 0.02em;
	color: var(--gv-muted);
	text-transform: lowercase;
}

.gv-fp--full {
	margin-top: 0;
	gap: 10px;
}
.gv-fp--full .gv-fp-bar {
	height: 10px;
}

.gv-fp-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.gv-fp-key {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--gv-muted);
}
.gv-fp-key i {
	width: 9px;
	height: 9px;
	border-radius: 3px;
	background: var(--gv-region, var(--gv-muted));
}
.gv-fp-key b {
	color: var(--text, #fafafa);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.gv-sig {
	margin-top: 14px;
	padding: 18px;
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	background: var(--gv-surface);
}

.gv-sig-title {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 620;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gv-muted);
}

.gv-sig-sentence {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
}

.gv-sig-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
	gap: 10px;
	margin: 14px 0 0;
}

.gv-sig-stat {
	padding: 8px 10px;
	border: 1px solid var(--gv-border);
	border-radius: 10px;
	background: var(--gv-surface-2);
}
.gv-sig-stat dt {
	font-size: 10px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gv-muted);
}
.gv-sig-stat dd {
	margin: 3px 0 0;
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.gv-sig-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}
.gv-sig-badges:empty {
	display: none;
}

.gv-mbadge {
	padding: 3px 9px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--gv-ok) 50%, transparent);
	background: color-mix(in srgb, var(--gv-ok) 14%, transparent);
	color: var(--gv-ok);
	font-size: 11px;
	font-weight: 620;
	letter-spacing: 0.02em;
}
.gv-mbadge.is-warn {
	border-color: color-mix(in srgb, var(--gv-warn) 55%, transparent);
	background: color-mix(in srgb, var(--gv-warn) 14%, transparent);
	color: var(--gv-warn);
}

/* ── Slot fit verdict ──────────────────────────────────────────────────── */

.gv-fit {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid var(--gv-border);
	border-radius: 12px;
	background: var(--gv-surface);
	font-size: 13px;
	line-height: 1.5;
}
.gv-fit p {
	margin: 0;
}
.gv-fit-icon::before {
	content: '✓';
	font-weight: 700;
}
.gv-fit.is-ok {
	border-color: color-mix(in srgb, var(--gv-ok) 40%, transparent);
}
.gv-fit.is-ok .gv-fit-icon {
	color: var(--gv-ok);
}
.gv-fit.is-warn {
	border-color: color-mix(in srgb, var(--gv-warn) 50%, transparent);
	background: color-mix(in srgb, var(--gv-warn) 8%, transparent);
}
.gv-fit.is-warn .gv-fit-icon {
	color: var(--gv-warn);
}
.gv-fit.is-warn .gv-fit-icon::before {
	content: '!';
}

/* ── Nearest clips ─────────────────────────────────────────────────────── */

.gv-similar {
	margin-top: 14px;
	padding: 16px 18px;
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	background: var(--gv-surface);
}
.gv-similar-title {
	margin: 0;
	font-size: 13px;
	font-weight: 620;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gv-muted);
}
.gv-similar-lede {
	margin: 4px 0 12px;
	font-size: 12px;
	color: var(--gv-muted);
}

.gv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gv-chip,
.gv-pill {
	padding: 6px 12px;
	border: 1px solid var(--gv-border-strong);
	border-radius: 999px;
	background: var(--gv-surface-2);
	color: inherit;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.gv-chip:hover,
.gv-pill:hover {
	background: var(--gv-surface-3);
	transform: translateY(-1px);
}
.gv-chip:active,
.gv-pill:active {
	transform: translateY(0);
}
.gv-chip:focus-visible,
.gv-pill:focus-visible {
	outline: 2px solid var(--gv-accent);
	outline-offset: 2px;
}
.gv-pill[aria-pressed='true'] {
	background: var(--gv-accent);
	border-color: var(--gv-accent);
	color: var(--gv-accent-ink);
	font-weight: 620;
}

/* ── The motion atlas ──────────────────────────────────────────────────── */

.gv-atlas-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.gv-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gv-atlas-count {
	font-size: 12px;
	color: var(--gv-muted);
	font-variant-numeric: tabular-nums;
}

.gv-atlas {
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	background:
		radial-gradient(120% 90% at 50% 0%, var(--gv-surface-2), transparent 70%),
		var(--gv-surface);
	overflow: hidden;
}

.gv-atlas-svg {
	display: block;
	width: 100%;
	height: auto;
}

.gv-atlas-grid {
	stroke: var(--gv-border);
	stroke-width: 1;
	stroke-dasharray: 3 5;
}
.gv-atlas-axis {
	stroke: var(--gv-border-strong);
	stroke-width: 1;
}
.gv-atlas-label {
	fill: var(--gv-muted);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gv-atlas-dot {
	fill: var(--gv-region, var(--gv-accent));
	fill-opacity: 0.55;
	stroke: var(--gv-region, var(--gv-accent));
	stroke-width: 1;
	cursor: pointer;
	transition: fill-opacity 0.16s ease, stroke-width 0.16s ease;
}
.gv-atlas-dot:hover {
	fill-opacity: 0.95;
	stroke-width: 2;
}
.gv-atlas-dot:focus-visible {
	outline: none;
	stroke: var(--text, #fafafa);
	stroke-width: 2.5;
	fill-opacity: 0.95;
}
.gv-atlas-dot.is-dim {
	fill-opacity: 0.06;
	stroke-opacity: 0.18;
}
.gv-atlas-dot.is-active {
	fill-opacity: 1;
	stroke: var(--text, #fafafa);
	stroke-width: 2.5;
}

.gv-atlas-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
	.gv-chip,
	.gv-pill,
	.gv-atlas-dot {
		transition: none;
	}
	.gv-chip:hover,
	.gv-pill:hover {
		transform: none;
	}
}
