Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

64.1 KB
Raw Blame
<!doctype html>
<html lang="en">
	<head>
		<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title data-i18n="create_review.meta_title">Preview your avatar · three.ws</title>
		<link rel="icon" href="/favicon.ico" sizes="any" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
		<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
		<link rel="manifest" href="/manifest.webmanifest" />
		<meta
			name="description"
			content="Preview the 3D avatar you just generated, then save it to your three.ws account."
		 data-i18n-attr="content:create_review.meta_description"/>
		<meta name="robots" content="noindex" />

		<style>
			:root {
				color-scheme: dark;
				--accent: #ffffff;
				--accent-ink: #000000;
				--bg: #000000;
				--panel: var(--bg-0);
				--border: var(--stroke);
				--text: var(--ink);
				--muted: var(--ink-dim);
			}
			* { box-sizing: border-box; }
			html, body { height: 100%; margin: 0; padding: 0; }
			body {
				font: 15px/1.55 -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
				color: var(--text);
				background: var(--bg);
				display: flex;
				flex-direction: column;
				min-height: 100vh;
				overflow-x: hidden;
			}
			body::before {
				content: '';
				position: fixed;
				inset: 0;
				z-index: -1;
				pointer-events: none;
				background:
					radial-gradient(800px 500px at 50% -100px, rgba(255, 255, 255, 0.03) 0, transparent 70%),
					radial-gradient(600px 400px at 50% 110%, rgba(255, 255, 255, 0.02) 0, transparent 70%),
					#000000;
			}

			.topbar {
				display: flex;
				align-items: center;
				margin-bottom: 20px;
			}
			.back-link {
				display: inline-flex;
				align-items: center;
				gap: 8px;
				background: var(--panel);
				border: 1px solid var(--border);
				color: var(--muted);
				padding: 10px 16px 10px 12px;
				border-radius: 9px;
				font-size: 13px;
				font-weight: 500;
				text-decoration: none;
				cursor: pointer;
				transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
				-webkit-tap-highlight-color: transparent;
			}
			.back-link:hover {
				border-color: #2d2d2d;
				color: var(--text);
				background: #141414;
			}
			.back-link:active { transform: scale(0.97); }
			.back-link svg { flex-shrink: 0; display: block; }

			main.stage {
				flex: 1;
				max-width: 1100px;
				width: 100%;
				margin: 0 auto;
				padding: 16px 22px 80px;
			}
			h1 {
				font-size: 28px;
				font-weight: 600;
				letter-spacing: -0.015em;
				margin: 0 0 6px;
			}
			.sub {
				color: var(--muted);
				margin: 0 0 28px;
				max-width: 64ch;
			}

			.grid {
				display: grid;
				grid-template-columns: minmax(0, 1fr) 380px;
				gap: 28px;
				align-items: start;
			}
			@media (max-width: 880px) {
				.grid { grid-template-columns: 1fr; gap: 16px; }
			}
			/* Phone-class viewport: drop the panel padding, drop the modal
			   max-width, swap modal animation to a slide-up sheet so it feels
			   native rather than "desktop dialog squashed onto a phone". */
			@media (max-width: 560px) {
				main.stage { padding: 12px 14px 60px; }
				.topbar { margin-bottom: 14px; }
				.back-link {
					padding: 11px 16px 11px 12px;
					font-size: 14px;
					border-radius: 10px;
				}
				h1 { font-size: 22px; }
				.sub { margin-bottom: 18px; font-size: 14px; }
				.viewer { min-height: 360px; aspect-ratio: 3 / 4; }
				.panel { padding: 16px; gap: 12px; }
				.panel h2 { font-size: 17px; }
				.feature-tile { padding: 9px; }
				.feature-name { font-size: 12px; }
				.feature-desc { font-size: 10px; }
				.fm-backdrop { padding: 0; align-items: flex-end; }
				.fm-dialog {
					max-width: 100%;
					max-height: 88vh;
					border-radius: 18px 18px 0 0;
					padding: 22px 20px 26px;
					animation: fmSheet 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
				}
				@keyframes fmSheet { from { transform: translateY(20px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
				.fm-head h3 { font-size: 17px; }
				.fm-head p { font-size: 12.5px; }

				/* Flow diagram: stack vertically on mobile */
				.fm-flow {
					flex-direction: column;
					align-items: stretch;
					gap: 0;
					padding: 14px;
				}
				.fm-flow-step {
					flex-direction: row;
					align-items: center;
					text-align: left;
					gap: 10px;
					padding: 4px 0;
				}
				.fm-flow-detail { max-width: none; }
				.fm-flow-badge { margin-top: 0; margin-left: auto; }
				.fm-flow-connector {
					width: auto;
					height: 20px;
					justify-content: flex-start;
					padding-left: 12px;
				}
				.fm-flow-line {
					width: 1.5px;
					height: 100%;
					background: linear-gradient(180deg, var(--border) 0%, rgba(255, 255, 255, 0.15) 50%, var(--border) 100%);
				}
				.fm-flow-pulse {
					animation: flowPulseMobile 2.4s ease-in-out infinite;
				}
				@keyframes flowPulseMobile {
					0%, 100% { transform: translateY(-8px); opacity: 0; }
					15% { opacity: 1; }
					85% { opacity: 1; }
					100% { transform: translateY(8px); opacity: 0; }
				}

				.fm-pricing-row { padding: 8px 12px; font-size: 12px; }
				.fm-pricing-head { padding: 9px 12px; }
				.fm-pricing-foot { padding: 7px 12px; }
			}

			.viewer {
				background:
					radial-gradient(120% 60% at 50% 108%, rgba(255, 255, 255, 0.03) 0, transparent 55%),
					radial-gradient(80% 80% at 50% 0%, rgba(255, 255, 255, 0.04) 0, transparent 60%),
					var(--panel);
				border: 1.5px solid var(--border);
				border-radius: 14px;
				aspect-ratio: 4 / 5;
				min-height: 480px;
				position: relative;
				overflow: hidden;
			}
			/* Soft ground ellipse — anchors the avatar so it doesn't look like
			   it's floating in a void. Sits behind the canvas, pure decoration. */
			.viewer::after {
				content: '';
				position: absolute;
				left: 50%;
				bottom: 8%;
				width: 46%;
				height: 28px;
				transform: translateX(-50%);
				background: radial-gradient(ellipse at center,
					rgba(0, 0, 0, 0.55) 0%,
					rgba(0, 0, 0, 0.25) 38%,
					transparent 72%);
				filter: blur(6px);
				pointer-events: none;
				z-index: 0;
			}
			.viewer .mv-container {
				position: absolute;
				inset: 0;
				width: 100%;
				height: 100%;
				background: transparent;
				display: block;
				z-index: 2;
			}
			.viewer .mv-container canvas {
				display: block;
				width: 100% !important;
				height: 100% !important;
			}
			.viewer-loading {
				position: absolute;
				inset: 0;
				display: flex;
				align-items: center;
				justify-content: center;
				color: var(--muted);
				font-size: 13px;
				gap: 8px;
				background: var(--panel);
				z-index: 3;
				transition: opacity var(--duration-base) var(--ease-standard);
			}
			.viewer-loading.is-hidden {
				opacity: 0;
				pointer-events: none;
			}
			.spinner-sm {
				width: 16px;
				height: 16px;
				border: 2px solid rgba(255, 255, 255, 0.1);
				border-top-color: rgba(255, 255, 255, 0.55);
				border-radius: 50%;
				animation: spin 0.75s linear infinite;
			}
			@keyframes spin { to { transform: rotate(360deg); } }

			.panel {
				background:
					linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0, transparent 90px),
					var(--panel);
				border: 1.5px solid var(--border);
				border-radius: 14px;
				padding: 22px;
				display: flex;
				flex-direction: column;
				gap: 16px;
				position: relative;
				overflow: hidden;
			}
			.panel-head { display: flex; flex-direction: column; gap: 8px; }
			.panel h2 {
				margin: 0;
				font-size: 19px;
				font-weight: 600;
				letter-spacing: -0.01em;
				line-height: 1.25;
				word-break: break-word;
			}
			.tags { display: flex; gap: 6px; flex-wrap: wrap; }
			.meta-tag {
				display: inline-flex;
				align-items: center;
				gap: 5px;
				background: rgba(255, 255, 255, 0.04);
				border: 1px solid var(--border);
				color: var(--muted);
				padding: 3px 9px;
				border-radius: 999px;
				font-size: 11px;
				letter-spacing: 0.02em;
				text-transform: capitalize;
			}
			.meta-tag::before {
				content: '';
				width: 5px;
				height: 5px;
				border-radius: 50%;
				background: var(--accent);
				opacity: 0.75;
			}
			.meta-tag.is-size::before { background: var(--muted); }
			.label {
				display: block;
				font-size: 11px;
				color: var(--muted);
				text-transform: uppercase;
				letter-spacing: 0.06em;
				margin-bottom: 6px;
			}
			.panel input {
				width: 100%;
				background: #080808;
				color: var(--text);
				border: 1.5px solid var(--border);
				border-radius: 9px;
				padding: 10px 12px;
				font: inherit;
				transition: border-color var(--duration-fast), background var(--duration-fast);
			}
			.panel input::placeholder { color: #4a4d5a; }
			.panel input:focus {
				outline: none;
				border-color: var(--accent);
				background: var(--bg-0);
			}

			/* ── Name + live handle preview ────────────────────────────────── */
			.name-field { display: flex; flex-direction: column; gap: 6px; }
			.name-field-head {
				display: flex;
				align-items: baseline;
				justify-content: space-between;
				gap: 8px;
				margin-bottom: 0;
			}
			.name-field-head .label { margin-bottom: 0; }
			.handle-copy {
				appearance: none;
				background: transparent;
				border: 1px solid var(--border);
				color: var(--muted);
				font: inherit;
				font-size: 10.5px;
				font-weight: 500;
				padding: 2px 8px;
				border-radius: 6px;
				cursor: pointer;
				transition: color var(--duration-fast), border-color var(--duration-fast);
				text-transform: uppercase;
				letter-spacing: 0.04em;
			}
			.handle-copy:disabled { opacity: 0.4; cursor: not-allowed; }
			.handle-copy:not(:disabled):hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
			.handle-copy.is-copied { color: var(--text); border-color: rgba(255, 255, 255, 0.4); }
			.handle-preview {
				display: flex;
				align-items: center;
				min-height: 28px;
				padding: 5px 10px;
				background: #080808;
				border: 1px solid var(--border);
				border-radius: 7px;
				font-family: ui-monospace, 'SF Mono', monospace;
				font-size: 11.5px;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
			.handle-host { color: var(--muted); }
			.handle-slug { color: var(--text); font-weight: 500; }
			.handle-preview.is-empty .handle-slug { color: #4a4d5a; font-style: italic; }
			.handle-preview.is-flashing { animation: handleFlash 0.5s ease-out; }
			@keyframes handleFlash {
				0% { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
				100% { background: #080808; border-color: var(--border); }
			}

			.feature-grid {
				list-style: none;
				padding: 0;
				margin: 0;
				display: grid;
				grid-template-columns: 1fr 1fr;
				gap: 6px;
			}
			.feature-grid > li { display: flex; }
			.feature-grid .feature-tile { flex: 1; width: 100%; }
			.feature-tile {
				appearance: none;
				display: flex;
				flex-direction: column;
				gap: 3px;
				padding: 10px;
				background: rgba(255, 255, 255, 0.025);
				border: 1px solid transparent;
				border-radius: 9px;
				transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
				cursor: pointer;
				color: var(--text);
				text-align: left;
				font: inherit;
				position: relative;
			}
			.feature-tile:hover, .feature-tile:focus-visible {
				background: rgba(255, 255, 255, 0.05);
				border-color: rgba(255, 255, 255, 0.2);
				transform: translateY(-1px);
				box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
				outline: none;
			}
			.feature-tile:hover .feature-try, .feature-tile:focus-visible .feature-try {
				opacity: 1;
				transform: translateX(0);
			}
			.feature-icon {
				font-size: 17px;
				line-height: 1;
			}
			.feature-name {
				font-size: 12.5px;
				color: var(--text);
				font-weight: 600;
				letter-spacing: -0.005em;
			}
			.feature-desc {
				font-size: 10.5px;
				color: var(--muted);
				line-height: 1.35;
			}
			.feature-try {
				position: absolute;
				top: 8px;
				right: 9px;
				font-size: 10px;
				color: var(--accent);
				opacity: 0;
				transform: translateX(-3px);
				transition: opacity var(--duration-fast), transform var(--duration-fast);
				font-weight: 600;
				letter-spacing: 0.02em;
			}

			/* ── Feature-preview modal ─────────────────────────────────────── */
			.fm-backdrop {
				position: fixed;
				inset: 0;
				z-index: 200;
				background: rgba(2, 3, 6, 0.72);
				backdrop-filter: blur(6px);
				display: flex;
				align-items: center;
				justify-content: center;
				padding: 20px;
				animation: fmFadeIn 0.18s ease-out;
			}
			@keyframes fmFadeIn { from { opacity: 0; } to { opacity: 1; } }
			.fm-dialog {
				background: var(--panel);
				border: 1.5px solid var(--border);
				border-radius: 16px;
				width: 100%;
				max-width: 520px;
				max-height: calc(100vh - 40px);
				overflow-y: auto;
				padding: 28px;
				display: flex;
				flex-direction: column;
				gap: 16px;
				box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
				animation: fmRise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
			}
			@keyframes fmRise { from { transform: translateY(8px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
			.fm-head {
				display: flex;
				align-items: flex-start;
				gap: 14px;
			}
			.fm-icon {
				font-size: 28px;
				line-height: 1;
				flex-shrink: 0;
			}
			.fm-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
			.fm-head-text h3 {
				margin: 0;
				font-size: 18px;
				font-weight: 600;
				letter-spacing: -0.01em;
			}
			.fm-head-text p {
				margin: 0;
				color: var(--muted);
				font-size: 13px;
				line-height: 1.5;
			}
			.fm-close {
				margin-left: auto;
				background: rgba(255, 255, 255, 0.05);
				border: 1px solid var(--border);
				color: var(--text);
				width: 30px;
				height: 30px;
				border-radius: 999px;
				cursor: pointer;
				font-size: 14px;
				font-family: inherit;
				flex-shrink: 0;
				display: inline-flex;
				align-items: center;
				justify-content: center;
				transition: background var(--duration-fast), border-color var(--duration-fast);
			}
			.fm-close:hover { background: rgba(255, 255, 255, 0.1); border-color: #2e2e2e; }
			.fm-body { display: flex; flex-direction: column; gap: 14px; }
			.fm-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
			.fm-bullets li {
				display: flex;
				align-items: flex-start;
				gap: 10px;
				font-size: 13px;
				color: var(--text);
				line-height: 1.5;
			}
			.fm-bullets li::before {
				content: '';
				width: 6px;
				height: 6px;
				border-radius: 50%;
				background: var(--text);
				margin-top: 7px;
				flex-shrink: 0;
				box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
			}
			.fm-code {
				background: #080808;
				border: 1px solid var(--border);
				border-radius: 9px;
				padding: 12px 14px;
				font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
				font-size: 12px;
				color: #cdd;
				overflow-x: auto;
				white-space: pre;
				position: relative;
			}
			.fm-copy {
				position: absolute;
				top: 8px;
				right: 8px;
				background: rgba(255, 255, 255, 0.06);
				border: 1px solid var(--border);
				color: var(--muted);
				border-radius: 6px;
				padding: 3px 8px;
				font-size: 10.5px;
				cursor: pointer;
				font-family: inherit;
				transition: color var(--duration-fast), border-color var(--duration-fast);
			}
			.fm-copy:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
			.fm-copy.copied { color: var(--text); }
			.fm-row {
				display: flex;
				justify-content: space-between;
				align-items: center;
				gap: 12px;
				padding: 10px 12px;
				background: rgba(255, 255, 255, 0.025);
				border: 1px solid var(--border);
				border-radius: 8px;
				font-size: 13px;
			}
			.fm-row strong { font-weight: 600; }
			.fm-row .muted { color: var(--muted); font-size: 12px; }
			/* Schematic placeholder for "this is the value you'll get on save"
			   rendering — clearly inert so it doesn't read as a real address. */
			.fm-placeholder {
				font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
				font-size: 11px;
				color: var(--muted);
				background: rgba(255, 255, 255, 0.04);
				border: 1px dashed var(--border);
				border-radius: 6px;
				padding: 3px 7px;
				letter-spacing: 0.02em;
			}
			.fm-actions { display: flex; gap: 8px; }
			.fm-cta {
				flex: 1;
				background: var(--accent);
				color: var(--accent-ink);
				border: none;
				border-radius: 9px;
				padding: 10px 14px;
				font: inherit;
				font-weight: 600;
				cursor: pointer;
				transition: filter var(--duration-fast);
			}
			.fm-cta:hover { filter: brightness(1.05); }
			.fm-cta.ghost {
				background: transparent;
				color: var(--text);
				border: 1.5px solid var(--border);
			}
			.fm-cta.ghost:hover { border-color: #2e2e2e; }
			.fm-note {
				font-size: 11.5px;
				color: var(--muted);
				line-height: 1.45;
			}
			.fm-note code, .fm-bullets code, .fm-flow-detail code {
				background: rgba(255, 255, 255, 0.06);
				border: 1px solid var(--border);
				border-radius: 4px;
				padding: 1px 5px;
				font-size: 0.92em;
				font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
				color: var(--text);
			}

			/* Wider dialog for code-heavy modals (embed, paid skills, reputation) */
			.fm-dialog--wide { max-width: 640px; }

			/* Code block <pre> tag inside fm-code — make snippets scroll horizontally
			   instead of bursting out of the dialog, preserve whitespace, no margin. */
			.fm-code pre {
				margin: 0;
				padding: 0;
				background: transparent;
				color: inherit;
				font: inherit;
				white-space: pre;
				overflow-x: auto;
			}

			/* Language tabs above .fm-code */
			.fm-tabs {
				display: flex;
				gap: 4px;
				background: rgba(255, 255, 255, 0.03);
				border: 1px solid var(--border);
				border-radius: 9px;
				padding: 3px;
			}
			.fm-tab {
				appearance: none;
				flex: 1;
				background: transparent;
				color: var(--muted);
				border: none;
				border-radius: 6px;
				padding: 6px 10px;
				font: inherit;
				font-size: 12px;
				font-weight: 500;
				cursor: pointer;
				transition: background var(--duration-fast), color var(--duration-fast);
			}
			.fm-tab:hover { color: var(--text); }
			.fm-tab.is-active {
				background: rgba(255, 255, 255, 0.1);
				color: var(--text);
			}

			/* ── Identity card ─────────────────────────────────────────────── */
			.fm-id-card {
				background:
					linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.015) 100%),
					rgba(255, 255, 255, 0.02);
				border: 1px solid var(--border);
				border-radius: 12px;
				padding: 16px;
				display: flex;
				flex-direction: column;
				gap: 14px;
			}
			.fm-id-card-top {
				display: flex;
				align-items: flex-start;
				gap: 14px;
			}
			.fm-id-avatar {
				width: 64px;
				height: 64px;
				border-radius: 10px;
				object-fit: cover;
				border: 1px solid var(--border);
				background: #0b0b0b;
				flex-shrink: 0;
			}
			.fm-id-avatar--fallback {
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 22px;
				font-weight: 700;
				color: var(--muted);
				background:
					linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%),
					#0b0b0b;
			}
			.fm-id-card-top-right {
				flex: 1;
				min-width: 0;
				display: flex;
				flex-direction: column;
				gap: 8px;
			}
			.fm-id-head {
				display: flex;
				align-items: center;
				justify-content: space-between;
				gap: 10px;
			}
			.fm-id-chain {
				font-size: 11px;
				color: var(--muted);
				text-transform: uppercase;
				letter-spacing: 0.06em;
				display: inline-flex;
				align-items: center;
				gap: 5px;
			}
			.fm-id-chain::before {
				content: '';
				width: 5px;
				height: 5px;
				border-radius: 50%;
				background: var(--muted);
				box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
			}
			.fm-id-pill {
				font-size: 10px;
				color: var(--text);
				background: rgba(255, 255, 255, 0.06);
				border: 1px solid rgba(255, 255, 255, 0.18);
				border-radius: 999px;
				padding: 2px 8px;
				text-transform: uppercase;
				letter-spacing: 0.05em;
			}
			.fm-id-card[data-state='loading'] .fm-id-pill {
				color: var(--muted);
				background: rgba(255, 255, 255, 0.04);
				border-color: var(--border);
			}
			.fm-id-card[data-state='error'] .fm-id-pill { color: #ffb3b3; border-color: rgba(255, 92, 92, 0.4); background: rgba(255, 92, 92, 0.08); }
			.fm-id-meta {
				display: grid;
				grid-template-columns: 1fr 1fr;
				gap: 10px;
				font-size: 12px;
			}
			.fm-id-meta > div { display: flex; flex-direction: column; gap: 2px; }
			.fm-id-meta .muted { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
			.fm-id-meta strong { font-size: 13px; font-weight: 600; }
			.fm-id-addr-link {
				display: flex;
				align-items: center;
				gap: 10px;
				background: #080808;
				border: 1px solid var(--border);
				border-radius: 8px;
				padding: 10px 12px;
				text-decoration: none;
				transition: border-color var(--duration-fast), background var(--duration-fast);
				cursor: pointer;
			}
			.fm-id-addr-link:hover,
			.fm-id-addr-link:focus-visible {
				border-color: rgba(255, 255, 255, 0.25);
				background: rgba(255, 255, 255, 0.04);
			}
			.fm-id-addr-link:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.3); outline-offset: 2px; }
			.fm-id-addr {
				font-family: ui-monospace, 'SF Mono', monospace;
				font-size: 12px;
				color: var(--text);
				word-break: break-all;
				flex: 1;
				min-width: 0;
			}
			.fm-id-explorer-hint {
				font-size: 11px;
				color: var(--muted);
				white-space: nowrap;
				flex-shrink: 0;
				opacity: 0.7;
				transition: opacity var(--duration-fast);
			}
			.fm-id-addr-link:hover .fm-id-explorer-hint { opacity: 1; }
			.fm-id-card[data-state='loading'] .fm-id-addr-link { pointer-events: none; }
			.fm-id-card[data-state='loading'] .fm-id-addr { color: var(--muted); }
			.fm-id-card[data-state='loading'] .fm-id-explorer-hint { display: none; }
			.fm-id-card[data-state='loading'] .fm-id-addr-link {
				background: repeating-linear-gradient(110deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
				background-size: 200% 100%;
				animation: shimmer 1.5s linear infinite;
			}
			@keyframes shimmer { from { background-position: 0 0; } to { background-position: -200% 0; } }
			.fm-id-sample-note {
				font-size: 11px;
				color: var(--muted);
				margin: 0;
				line-height: 1.4;
				padding: 0 2px;
			}
			@media (max-width: 560px) {
				.fm-id-card { padding: 14px; gap: 12px; }
				.fm-id-card-top { gap: 12px; }
				.fm-id-avatar { width: 52px; height: 52px; border-radius: 8px; }
				.fm-id-meta { gap: 8px; }
				.fm-id-addr { font-size: 11px; }
				.fm-id-explorer-hint { font-size: 10px; }
				.fm-id-addr-link { padding: 8px 10px; gap: 8px; }
			}

			/* ── x402 flow diagram ─────────────────────────────────────────── */
			.fm-flow {
				display: flex;
				align-items: stretch;
				gap: 0;
				background: rgba(255, 255, 255, 0.02);
				border: 1px solid var(--border);
				border-radius: 12px;
				padding: 16px 14px;
			}
			.fm-flow-step {
				flex: 1;
				display: flex;
				flex-direction: column;
				align-items: center;
				gap: 6px;
				text-align: center;
				min-width: 0;
			}
			.fm-flow-num {
				width: 26px;
				height: 26px;
				border-radius: 50%;
				background: rgba(255, 255, 255, 0.06);
				border: 1.5px solid rgba(255, 255, 255, 0.18);
				color: var(--text);
				font-size: 12px;
				font-weight: 700;
				display: inline-flex;
				align-items: center;
				justify-content: center;
				flex-shrink: 0;
			}
			.fm-flow-step--mid .fm-flow-num {
				background: rgba(255, 255, 255, 0.08);
				border-color: rgba(255, 255, 255, 0.22);
				color: var(--text);
			}
			.fm-flow-step--end .fm-flow-num {
				background: rgba(255, 255, 255, 0.10);
				border-color: rgba(255, 255, 255, 0.25);
				color: var(--text);
			}
			.fm-flow-label {
				font-size: 13px;
				font-weight: 600;
				color: var(--text);
			}
			.fm-flow-detail {
				font-size: 11px;
				line-height: 1.4;
				color: var(--muted);
				max-width: 140px;
			}
			.fm-flow-detail code {
				background: rgba(255, 255, 255, 0.06);
				border: 1px solid var(--border);
				border-radius: 4px;
				padding: 0 4px;
				font-size: 0.92em;
				font-family: ui-monospace, 'SF Mono', monospace;
				color: var(--text);
			}
			.fm-flow-badge {
				font-family: ui-monospace, 'SF Mono', monospace;
				font-size: 10px;
				font-weight: 600;
				color: var(--muted);
				background: #080808;
				border: 1px solid var(--border);
				border-radius: 5px;
				padding: 2px 8px;
				margin-top: auto;
			}
			.fm-flow-badge--warn {
				color: var(--muted);
				border-color: rgba(255, 255, 255, 0.15);
				background: rgba(255, 255, 255, 0.04);
			}
			.fm-flow-badge--ok {
				color: var(--text);
				border-color: rgba(255, 255, 255, 0.2);
				background: rgba(255, 255, 255, 0.05);
			}
			.fm-flow-connector {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 32px;
				flex-shrink: 0;
				position: relative;
			}
			.fm-flow-line {
				width: 100%;
				height: 1.5px;
				background: linear-gradient(90deg, var(--border) 0%, rgba(255, 255, 255, 0.15) 50%, var(--border) 100%);
			}
			.fm-flow-pulse {
				position: absolute;
				width: 6px;
				height: 6px;
				border-radius: 50%;
				background: var(--text);
				box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
				animation: flowPulse 2.4s ease-in-out infinite;
			}
			@keyframes flowPulse {
				0%, 100% { transform: translateX(-12px); opacity: 0; }
				15% { opacity: 1; }
				85% { opacity: 1; }
				100% { transform: translateX(12px); opacity: 0; }
			}

			/* ── Pricing preview card ─────────────────────────────────────── */
			.fm-pricing-preview {
				background:
					linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%),
					rgba(255, 255, 255, 0.02);
				border: 1px solid var(--border);
				border-radius: 12px;
				overflow: hidden;
			}
			.fm-pricing-head {
				display: flex;
				align-items: center;
				justify-content: space-between;
				gap: 8px;
				padding: 10px 14px;
				border-bottom: 1px solid var(--border);
			}
			.fm-pricing-title {
				font-size: 12px;
				font-weight: 600;
				color: var(--text);
				letter-spacing: 0.01em;
			}
			.fm-pricing-pill {
				font-size: 9px;
				color: var(--muted);
				background: rgba(255, 255, 255, 0.04);
				border: 1px solid var(--border);
				border-radius: 999px;
				padding: 2px 8px;
				letter-spacing: 0.05em;
				text-transform: uppercase;
			}
			.fm-pricing-rows {
				display: flex;
				flex-direction: column;
			}
			.fm-pricing-row {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 9px 14px;
				font-size: 12.5px;
				border-bottom: 1px solid rgba(255, 255, 255, 0.03);
			}
			.fm-pricing-row:last-child { border-bottom: none; }
			.fm-pricing-skill {
				color: var(--text);
				font-weight: 500;
			}
			.fm-pricing-amount {
				font-family: ui-monospace, 'SF Mono', monospace;
				font-size: 12px;
				color: var(--accent);
				font-weight: 600;
			}
			.fm-pricing-amount .muted {
				font-weight: 400;
				font-family: inherit;
			}
			.fm-pricing-foot {
				padding: 8px 14px;
				font-size: 11px;
				color: var(--muted);
				border-top: 1px solid var(--border);
				background: rgba(255, 255, 255, 0.015);
			}

			/* ── Syntax highlighting (code blocks) ────────────────────────── */
			.fm-code--highlighted pre { color: #cdd; }
			.syn-comment { color: #6a6d82; font-style: italic; }
			.syn-keyword { color: #bbb; }
			.syn-string { color: #999; }

			/* ── Browser-chrome iframe preview ─────────────────────────────── */
			.fm-browser {
				border: 1px solid var(--border);
				border-radius: 11px;
				overflow: hidden;
				background: #080808;
			}
			.fm-browser-bar {
				display: flex;
				align-items: center;
				gap: 6px;
				padding: 8px 10px;
				background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
				border-bottom: 1px solid var(--border);
			}
			.fm-browser-dot {
				width: 9px;
				height: 9px;
				border-radius: 50%;
				background: #2e2e2e;
			}
			.fm-browser-dot:nth-child(1) { background: #ff5f57; }
			.fm-browser-dot:nth-child(2) { background: #febc2e; }
			.fm-browser-dot:nth-child(3) { background: #28c840; }
			.fm-browser-url {
				flex: 1;
				margin-left: 8px;
				background: rgba(255, 255, 255, 0.04);
				border-radius: 999px;
				padding: 3px 10px;
				font-family: ui-monospace, monospace;
				font-size: 11px;
				color: var(--muted);
				text-align: center;
			}
			.fm-browser-stage {
				position: relative;
				aspect-ratio: 16 / 9;
				display: flex;
				align-items: center;
				justify-content: center;
				background: radial-gradient(60% 80% at 50% 20%, rgba(255, 255, 255, 0.03), transparent 70%);
			}
			.fm-browser-shot {
				width: 100%;
				height: 100%;
				object-fit: contain;
				background: #070707;
			}
			.fm-browser-skeleton {
				color: var(--muted);
				font-size: 12.5px;
			}

			/* ── Reputation card ───────────────────────────────────────────── */
			.rep-card {
				background: rgba(255, 255, 255, 0.025);
				border: 1px solid var(--border);
				border-radius: 12px;
				padding: 14px 16px;
				display: flex;
				flex-direction: column;
				gap: 12px;
			}
			.rep-card-head {
				display: flex;
				align-items: flex-start;
				justify-content: space-between;
				gap: 10px;
			}
			.rep-card-head strong { font-size: 14px; }
			.rep-card-head .muted { font-size: 11.5px; }
			.rep-sample-pill {
				font-size: 10px;
				background: rgba(255, 255, 255, 0.06);
				color: var(--muted);
				border: 1px solid rgba(255, 255, 255, 0.15);
				border-radius: 999px;
				padding: 2px 8px;
				letter-spacing: 0.06em;
			}
			.rep-stats {
				display: grid;
				grid-template-columns: 1.4fr 1fr 1fr;
				gap: 10px;
				padding: 10px 12px;
				background: #080808;
				border: 1px solid var(--border);
				border-radius: 9px;
				font-size: 12px;
			}
			.rep-stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
			.rep-stats strong { font-weight: 600; font-size: 14px; }
			.rep-stat-big { font-size: 18px !important; }
			.rep-stats .muted { font-size: 10.5px; }
			.rep-card-foot { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; }

			.fm-download-list {
				list-style: none;
				padding: 0;
				margin: 0;
				display: flex;
				flex-direction: column;
				gap: 8px;
			}
			.fm-download-row {
				width: 100%;
				appearance: none;
				background: rgba(255, 255, 255, 0.025);
				border: 1.5px solid var(--border);
				border-radius: 10px;
				padding: 12px 14px;
				color: var(--text);
				text-align: left;
				font: inherit;
				display: flex;
				flex-direction: column;
				gap: 4px;
				cursor: pointer;
				transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-instant);
			}
			.fm-download-row:hover:not([data-busy='1']) {
				background: rgba(255, 255, 255, 0.05);
				border-color: rgba(255, 255, 255, 0.25);
				transform: translateY(-1px);
			}
			.fm-download-row[data-busy='1'] {
				cursor: progress;
				opacity: 0.7;
			}
			.fm-download-head {
				display: flex;
				align-items: baseline;
				justify-content: space-between;
				gap: 8px;
			}
			.fm-download-head strong {
				font-size: 14px;
				font-weight: 600;
				letter-spacing: -0.005em;
			}
			.fm-download-ext {
				font-family: ui-monospace, 'SF Mono', monospace;
				font-size: 11px;
				color: var(--muted);
			}
			.fm-download-blurb {
				font-size: 12px;
				color: var(--muted);
				line-height: 1.4;
			}
			.fm-download-status {
				font-size: 11.5px;
				color: var(--muted);
				min-height: 1em;
				margin-top: 2px;
			}
			.fm-download-status[data-tone='busy'] { color: var(--text); }
			.fm-download-status[data-tone='ok'] { color: var(--accent); }
			.fm-download-status[data-tone='err'] { color: #ffb3b3; }

			/* ── Card grid for modals (voices, widgets) ────────────────────── */
			.fm-card-grid {
				display: grid;
				grid-template-columns: 1fr 1fr;
				gap: 8px;
			}
			.fm-mini-card {
				display: flex;
				flex-direction: column;
				gap: 4px;
				padding: 10px 12px;
				background: rgba(255, 255, 255, 0.025);
				border: 1px solid var(--border);
				border-radius: 9px;
			}
			.fm-mini-card-icon { font-size: 18px; line-height: 1; }
			.fm-mini-card-name { font-weight: 600; font-size: 12.5px; color: var(--text); }
			.fm-mini-card-desc { font-size: 10.5px; color: var(--muted); line-height: 1.35; }

			/* ── KPI metrics row ────────────────────────────────────────────── */
			.fm-kpi-row {
				display: grid;
				grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
				gap: 10px;
				padding: 12px;
				background: #080808;
				border: 1px solid var(--border);
				border-radius: 10px;
			}
			.fm-kpi { display: flex; flex-direction: column; gap: 3px; }
			.fm-kpi-value {
				font-size: 20px;
				font-weight: 600;
				color: var(--text);
				letter-spacing: -0.02em;
			}
			.fm-kpi-label {
				font-size: 10.5px;
				color: var(--muted);
				text-transform: uppercase;
				letter-spacing: 0.05em;
			}

			/* ── Pipeline flow strip (video modal) ─────────────────────────── */
			.fm-pipeline {
				display: flex;
				align-items: center;
				justify-content: center;
				gap: 10px;
				padding: 16px;
				background: rgba(255, 255, 255, 0.025);
				border: 1px solid var(--border);
				border-radius: 10px;
			}
			.fm-pipeline-step {
				display: flex;
				flex-direction: column;
				align-items: center;
				gap: 4px;
				min-width: 64px;
				text-align: center;
			}
			.fm-pipeline-icon { font-size: 24px; line-height: 1; }
			.fm-pipeline-label { font-size: 11.5px; font-weight: 600; color: var(--text); }
			.fm-pipeline-sub { font-size: 10px; color: var(--muted); }
			.fm-pipeline-arrow { color: var(--muted); font-size: 16px; opacity: 0.5; flex-shrink: 0; }

			/* ── Sub-feature cards (mocap, knowledge) ──────────────────────── */
			.fm-sub-features {
				display: flex;
				flex-direction: column;
				gap: 8px;
			}
			.fm-sub-feature {
				display: flex;
				align-items: flex-start;
				gap: 12px;
				padding: 12px 14px;
				background: rgba(255, 255, 255, 0.025);
				border: 1px solid var(--border);
				border-radius: 10px;
			}
			.fm-sub-feature-icon { font-size: 20px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
			.fm-sub-feature-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
			.fm-sub-feature-name { font-size: 13px; font-weight: 600; color: var(--text); }
			.fm-sub-feature-desc { font-size: 12px; color: var(--muted); line-height: 1.45; }

			/* ── MCP tool catalog ───────────────────────────────────────────── */
			.fm-tool-catalog {
				display: flex;
				flex-direction: column;
				background: #080808;
				border: 1px solid var(--border);
				border-radius: 10px;
				padding: 12px 14px;
				max-height: 240px;
				overflow-y: auto;
			}
			.fm-tool-cat {
				font-size: 10.5px;
				color: var(--muted);
				text-transform: uppercase;
				letter-spacing: 0.06em;
				padding: 8px 0 4px;
				border-bottom: 1px solid var(--border);
			}
			.fm-tool-cat:first-child { padding-top: 0; }
			.fm-tool-item {
				display: flex;
				align-items: baseline;
				gap: 10px;
				padding: 5px 0;
				font-size: 12px;
			}
			.fm-tool-item code {
				font-family: ui-monospace, 'SF Mono', monospace;
				font-size: 11px;
				color: var(--text);
				white-space: nowrap;
				flex-shrink: 0;
			}
			.fm-tool-item .muted { font-size: 11px; }

			/* ── Capabilities section (full-width below grid) ──────────────── */
			.capabilities {
				margin-top: 32px;
			}
			.capabilities-heading {
				font-size: 11px;
				color: var(--muted);
				text-transform: uppercase;
				letter-spacing: 0.06em;
				margin: 0 0 16px;
				display: flex;
				align-items: center;
				gap: 6px;
			}
			.capabilities-heading::before {
				content: '';
				width: 5px;
				height: 5px;
				border-radius: 50%;
				background: var(--text);
				box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
			}
			.capabilities .feature-grid {
				grid-template-columns: 1fr 1fr 1fr;
			}
			.capabilities .feature-grid > li:last-child:nth-child(3n+1) {
				grid-column: 1 / -1;
			}
			@media (max-width: 880px) {
				.capabilities .feature-grid { grid-template-columns: 1fr 1fr; }
				.capabilities .feature-grid > li:last-child:nth-child(3n+1) { grid-column: auto; }
				.capabilities .feature-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
			}
			@media (max-width: 560px) {
				.capabilities { margin-top: 24px; }
				.capabilities .feature-grid { grid-template-columns: 1fr 1fr; }
				.fm-card-grid { grid-template-columns: 1fr; }
				.fm-tool-catalog { max-height: 180px; }
			}

			/* ── Emote chip strip on viewer ────────────────────────────────── */
			.emote-strip {
				position: absolute;
				bottom: 12px;
				left: 50%;
				transform: translateX(-50%) translateY(6px);
				display: flex;
				gap: 6px;
				padding: 7px 9px;
				background: rgba(10, 11, 18, 0.85);
				border: 1px solid var(--border);
				border-radius: 999px;
				backdrop-filter: blur(8px);
				z-index: 4;
				max-width: calc(100% - 24px);
				overflow-x: auto;
				scrollbar-width: none;
				opacity: 0;
				transition: opacity var(--duration-base), transform var(--duration-base);
				pointer-events: none;
			}
			.emote-strip::-webkit-scrollbar { display: none; }
			.emote-strip.is-visible {
				opacity: 1;
				transform: translateX(-50%) translateY(0);
				pointer-events: auto;
			}
			.emote-chip {
				appearance: none;
				background: rgba(255, 255, 255, 0.06);
				border: 1px solid transparent;
				border-radius: 999px;
				color: var(--text);
				font: inherit;
				font-size: 14px;
				cursor: pointer;
				width: 32px;
				height: 32px;
				display: inline-flex;
				align-items: center;
				justify-content: center;
				flex-shrink: 0;
				transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
			}
			.emote-chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: scale(1.05); }
			.emote-chip.is-active { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); }
			.emote-strip-close {
				appearance: none;
				background: transparent;
				border: none;
				color: var(--muted);
				font-size: 16px;
				cursor: pointer;
				width: 26px;
				height: 32px;
				padding: 0;
				display: inline-flex;
				align-items: center;
				justify-content: center;
				flex-shrink: 0;
			}
			.emote-strip-close:hover { color: var(--text); }

			.cta {
				background: var(--accent);
				color: var(--accent-ink);
				border: none;
				border-radius: 10px;
				padding: 12px 16px;
				font: inherit;
				font-weight: 600;
				cursor: pointer;
				transition: filter var(--duration-fast), opacity var(--duration-fast);
			}
			.cta:hover { filter: brightness(1.04); }
			.cta:disabled { opacity: 0.45; cursor: not-allowed; }

			.secondary {
				background: transparent;
				color: var(--text);
				border: 1.5px solid var(--border);
				border-radius: 10px;
				padding: 10px 14px;
				font: inherit;
				cursor: pointer;
				text-decoration: none;
				display: inline-flex;
				align-items: center;
				justify-content: center;
				gap: 6px;
				transition: border-color var(--duration-fast), color var(--duration-fast);
			}
			.secondary:hover { border-color: #2e2e2e; color: var(--text); }

			.type-selector {
				display: flex;
				flex-direction: column;
				gap: 6px;
			}
			.type-selector-label {
				font-size: 11px;
				font-weight: 600;
				text-transform: uppercase;
				letter-spacing: 0.07em;
				color: var(--muted);
				margin: 0;
			}
			.type-selector-btns {
				display: grid;
				grid-template-columns: 1fr 1fr;
				gap: 6px;
			}
			.type-btn {
				background: transparent;
				color: var(--muted);
				border: 1.5px solid var(--border);
				border-radius: 8px;
				padding: 9px 10px;
				font: inherit;
				font-size: 13px;
				font-weight: 500;
				cursor: pointer;
				transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
				text-align: center;
			}
			.type-btn:hover { border-color: #2e2e2e; color: var(--text); }
			/* Selected state is a solid white pill with black ink — a real, legible
			   "on" signal. Unselected buttons stay outline (white text on black), so
			   each state honours its own contrast: white button → black text, black
			   button → white text. */
			.type-btn.active {
				border-color: var(--accent);
				color: var(--accent-ink);
				background: var(--accent);
			}
			/* Richer two-line type cards: bold title + muted one-line description so
			   the agent/item distinction is legible at a glance. */
			.type-btn {
				display: flex;
				flex-direction: column;
				gap: 3px;
				padding: 11px 12px;
				text-align: left;
			}
			.type-btn-title {
				font-size: 14px;
				font-weight: 600;
				letter-spacing: -0.005em;
				color: var(--text);
			}
			.type-btn.active .type-btn-title { color: var(--accent-ink); }
			.type-btn-desc {
				font-size: 11px;
				line-height: 1.35;
				color: var(--muted);
			}
			.type-btn.active .type-btn-desc { color: rgba(0, 0, 0, 0.66); }

			/* Item soft-nudge — replaces the agent capability grid for items. Reads
			   as guidance, not an error; the promote button is the escape hatch. */
			.item-nudge {
				margin-top: 32px;
				display: flex;
				align-items: flex-start;
				gap: 14px;
				flex-wrap: wrap;
				padding: 18px 20px;
				background:
					linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0, transparent 80px),
					var(--panel);
				border: 1.5px solid var(--border);
				border-radius: 14px;
			}
			.item-nudge-icon { font-size: 22px; line-height: 1.2; flex-shrink: 0; }
			.item-nudge-text {
				display: flex;
				flex-direction: column;
				gap: 4px;
				min-width: 220px;
				flex: 1;
			}
			.item-nudge-text strong { font-size: 14px; font-weight: 600; color: var(--text); }
			.item-nudge-text span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
			.item-nudge-promote {
				appearance: none;
				background: transparent;
				border: 1.5px solid var(--border);
				color: var(--text);
				border-radius: 9px;
				padding: 9px 14px;
				font: inherit;
				font-size: 12.5px;
				font-weight: 500;
				cursor: pointer;
				white-space: nowrap;
				align-self: center;
				transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
			}
			.item-nudge-promote:hover {
				border-color: var(--accent);
				color: var(--accent);
				background: color-mix(in srgb, var(--accent) 8%, transparent);
			}
			.item-nudge-promote:focus-visible {
				outline: 2px solid rgba(255, 255, 255, 0.3);
				outline-offset: 2px;
			}
			@media (max-width: 560px) {
				.item-nudge { margin-top: 24px; padding: 16px; }
				.item-nudge-promote { width: 100%; }
			}

			.guest-note {
				font-size: 12.5px;
				color: var(--muted);
				line-height: 1.5;
			}
			.guest-note strong { color: var(--text); font-weight: 600; }

			#save-loading {
				position: fixed;
				inset: 0;
				z-index: 9999;
				background: #000;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				gap: 16px;
			}
			#save-loading img { width: 56px; height: 56px; animation: pulse 1.6s ease-in-out infinite; }
			#save-loading[data-state='error'] img { animation: none; opacity: 0.5; }
			#save-loading .label { color: rgba(255, 255, 255, 0.82); font-size: 15px; font-weight: 500; }
			#save-loading[data-state='error'] .label { color: #ffb3b3; }
			#save-loading .sublabel {
				color: rgba(255, 255, 255, 0.42);
				font-size: 12.5px;
				max-width: 360px;
				text-align: center;
				line-height: 1.5;
			}
			#save-loading .progress {
				width: min(320px, 70vw);
				height: 4px;
				background: rgba(255, 255, 255, 0.08);
				border-radius: 999px;
				overflow: hidden;
				margin-top: 4px;
			}
			#save-loading .progress[hidden] { display: none; }
			#save-loading .progress-bar {
				height: 100%;
				width: 0%;
				background: var(--accent);
				border-radius: 999px;
				transition: width var(--duration-fast) var(--ease-out);
			}
			#save-loading .abort-btn {
				margin-top: 6px;
				background: transparent;
				color: rgba(255, 255, 255, 0.55);
				border: 1px solid rgba(255, 255, 255, 0.14);
				border-radius: 999px;
				padding: 6px 14px;
				font: inherit;
				font-size: 12px;
				cursor: pointer;
				transition: border-color var(--duration-fast), color var(--duration-fast);
			}
			#save-loading .abort-btn[hidden] { display: none; }
			#save-loading .abort-btn:hover {
				color: #fff;
				border-color: rgba(255, 255, 255, 0.28);
			}
			#save-loading .error-actions {
				display: flex;
				gap: 10px;
				margin-top: 8px;
			}
			#save-loading .error-actions[hidden] { display: none; }
			#save-loading .retry-btn {
				background: var(--accent);
				color: var(--accent-ink);
				border: none;
				border-radius: 10px;
				padding: 10px 18px;
				font: inherit;
				font-weight: 600;
				cursor: pointer;
				transition: filter var(--duration-fast);
			}
			#save-loading .retry-btn:hover { filter: brightness(1.06); }
			#save-loading .cancel-btn {
				background: transparent;
				color: rgba(255, 255, 255, 0.72);
				border: 1.5px solid rgba(255, 255, 255, 0.18);
				border-radius: 10px;
				padding: 10px 16px;
				font: inherit;
				cursor: pointer;
				transition: border-color var(--duration-fast), color var(--duration-fast);
			}
			#save-loading .cancel-btn:hover {
				border-color: rgba(255, 255, 255, 0.32);
				color: #fff;
			}
			@keyframes pulse {
				0%, 100% { opacity: 0.55; transform: scale(1); }
				50% { opacity: 1; transform: scale(1.06); }
			}

			.status-toast {
				position: fixed;
				bottom: 32px;
				left: 50%;
				transform: translateX(-50%);
				padding: 11px 20px;
				border-radius: 12px;
				font-size: 13px;
				font-weight: 500;
				border: 1px solid var(--border);
				background: var(--panel);
				z-index: 50;
				box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
			}
			.status-toast.error { border-color: rgba(255, 92, 92, 0.4); color: #ffb3b3; background: #140a0a; }
			.status-toast.success { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
		</style>
		<link rel="stylesheet" href="/nav.css" />
		<link rel="stylesheet" href="/footer.css" />
		<link rel="stylesheet" href="/mobile.css" />

		<script>
			// Optimistic auth check so the page can decide whether to show
			// "Save to my account" vs. "Sign in to save". Authoritative answer
			// arrives via the /api/auth/me round-trip below.
			window.__authed = null;
			fetch('/api/auth/me', { credentials: 'include' })
				.then((r) => (r.ok ? r.json() : null))
				.then((data) => {
					window.__authed = !!(data && data.user);
					document.dispatchEvent(new CustomEvent('three-ws:auth-resolved', {
						detail: { authed: window.__authed, user: data?.user || null },
					}));
				})
				.catch(() => {
					window.__authed = false;
					document.dispatchEvent(new CustomEvent('three-ws:auth-resolved', {
						detail: { authed: false, user: null },
					}));
				});
		</script>
	</head>
	<body>
		<header>
			<div id="nav-container"></div>
		</header>
		<script src="/nav.js"></script>

		<main class="stage" id="main">
			<div class="topbar">
				<a href="/create" class="back-link" id="back-link" aria-label="Back to create" data-i18n-attr="aria-label:create_review.back_to_create_arialabel">
					<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
						<line x1="19" y1="12" x2="5" y2="12" />
						<polyline points="12 19 5 12 12 5" />
					</svg>
					Back to create
				</a>
			</div>

			<h1 id="heading" data-i18n="create_review.meet_your_avatar">Meet your avatar</h1>
			<p class="sub" id="subhead" data-i18n="create_review.try_every_capability_before_you_save_talk">
				Try every capability before you save. Talk to it, drop it on any site,
				take it offline — see what your new agent can do, then claim it.
			</p>

			<div id="content" class="grid" hidden>
				<div class="viewer">
					<div class="viewer-loading" id="viewer-loading">
						<div class="spinner-sm" aria-hidden="true"></div>
						<span data-i18n="create_review.loading_3d_preview">Loading 3D preview…</span>
					</div>
					<!--
						Three.js viewer (TalkScene) mounted by create-review.js. We use
						our own renderer instead of <model-viewer> so the IdleAnimation
						layer can drive ARKit blink + spine-bone breathing — model-viewer
						4.x does not expose morphTargetInfluences as a stable API.
					-->
					<div id="mv-container" class="mv-container" aria-label="Avatar preview"></div>
					<div id="emote-strip" class="emote-strip" role="toolbar" aria-label="Animations"></div>
				</div>

				<div class="panel">
					<div class="panel-head">
						<h2 id="avatar-name" data-i18n="create_review.your_avatar">Your avatar</h2>
						<div class="tags">
							<span class="meta-tag" id="tag-source">—</span>
							<span class="meta-tag is-size" id="tag-size" data-i18n="create_review.kb">— KB</span>
						</div>
					</div>

					<div class="name-field">
						<div class="name-field-head">
							<label class="label" for="f-name" data-i18n="create_review.name_handle">Name &amp; handle</label>
							<button
								class="handle-copy"
								id="handle-copy-btn"
								type="button"
								aria-label="Copy your future handle URL"
								title="Copy handle URL"
								disabled
							 data-i18n="create_review.copy" data-i18n-attr="aria-label:create_review.copy_your_future_handle_url_arialabel;title:create_review.copy_handle_url_title">Copy</button>
						</div>
						<input
							id="f-name"
							maxlength="60"
							placeholder="Give your avatar a name"
							autocomplete="off"
						/>
						<div class="handle-preview" id="handle-preview" aria-live="polite">
							<span class="handle-host" data-i18n="create_review.three_ws">three.ws/@</span><span class="handle-slug" id="handle-slug" data-i18n="create_review.your_avatar_2">your-avatar</span>
						</div>
					</div>

					<div class="type-selector" id="type-selector">
						<p class="type-selector-label" data-i18n="create_review.is_this_an_agent_or_an_item">Is this an agent or an item?</p>
						<div class="type-selector-btns" role="group" aria-label="Creation type">
							<button class="type-btn active" id="type-btn-avatar" data-type="avatar" type="button" aria-pressed="true" data-i18n-html="create_review.agent_thinks_talks_remembers_can_go_on">
								<span class="type-btn-title">Agent</span>
								<span class="type-btn-desc">Thinks, talks, remembers — can go on-chain</span>
							</button>
							<button class="type-btn" id="type-btn-object" data-type="object" type="button" aria-pressed="false" data-i18n-html="create_review.item_a_3d_object_or_prop_for">
								<span class="type-btn-title">Item</span>
								<span class="type-btn-desc">A 3D object or prop — for scenes &amp; trading</span>
							</button>
						</div>
					</div>

					<button class="cta" id="save-btn" type="button" disabled data-i18n="create_review.save_to_my_account">
						Save to my account
					</button>
					<button class="secondary" id="start-over-btn" type="button" data-i18n="create_review.start_over">
						Start over
					</button>

					<p class="guest-note" id="guest-note" hidden data-i18n-html="create_review.not_signed_in_this_preview_lives_in">
						<strong>Not signed in.</strong> This preview lives in your browser
						only — sign in to claim the handle and ship your agent.
					</p>
				</div>
			</div>

			<div class="capabilities" id="capabilities" hidden>
				<p class="capabilities-heading" data-i18n="create_review.your_agent_unlocks">Your agent unlocks</p>
				<ul class="feature-grid">
					<li>
						<button class="feature-tile" type="button" data-feature="body" aria-label="Try animations on your avatar" data-i18n-html="create_review.3d_body_animations_expressions_posable_rig_t" data-i18n-attr="aria-label:create_review.try_animations_on_your_avata_arialabel">
							<span class="feature-icon" aria-hidden="true">🧍</span>
							<span class="feature-name">3D Body</span>
							<span class="feature-desc">Animations, expressions, posable rig</span>
							<span class="feature-try" aria-hidden="true">Try →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="voice" aria-label="Try talking to your avatar" data-i18n-html="create_review.voice_persona_mic_in_livekit_voice_out" data-i18n-attr="aria-label:create_review.try_talking_to_your_avatar_arialabel">
							<span class="feature-icon" aria-hidden="true">🗣️</span>
							<span class="feature-name">Voice &amp; Persona</span>
							<span class="feature-desc">Mic in, LiveKit voice out, pinned memory</span>
							<span class="feature-try" aria-hidden="true">Try →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="voice-library" aria-label="Browse voice library" data-i18n-html="create_review.voice_library_clone_or_pick_from_100" data-i18n-attr="aria-label:create_review.browse_voice_library_arialabel">
							<span class="feature-icon" aria-hidden="true">🎙️</span>
							<span class="feature-name">Voice Library</span>
							<span class="feature-desc">Clone or pick from 100+ voices</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="video" aria-label="See video generation" data-i18n-html="create_review.video_talking_head_clips_from_your_avatar" data-i18n-attr="aria-label:create_review.see_video_generation_arialabel">
							<span class="feature-icon" aria-hidden="true">🎬</span>
							<span class="feature-name">Video</span>
							<span class="feature-desc">Talking-head clips from your avatar</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="mocap" aria-label="See face mocap and streaming" data-i18n-html="create_review.mocap_streaming_face_capture_obs_pose_studio" data-i18n-attr="aria-label:create_review.see_face_mocap_and_streaming_arialabel">
							<span class="feature-icon" aria-hidden="true">🎥</span>
							<span class="feature-name">Mocap &amp; Streaming</span>
							<span class="feature-desc">Face capture, OBS, pose studio</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="identity" aria-label="See on-chain identity details" data-i18n-html="create_review.on_chain_identity_solana_wallet_transferable" data-i18n-attr="aria-label:create_review.see_on_chain_identity_detail_arialabel">
							<span class="feature-icon" aria-hidden="true">🪪</span>
							<span class="feature-name">On-Chain Identity</span>
							<span class="feature-desc">Solana wallet, transferable asset</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="token-launch" aria-label="See token launch" data-i18n-html="create_review.token_launch_one_click_pump_fun_token" data-i18n-attr="aria-label:create_review.see_token_launch_arialabel">
							<span class="feature-icon" aria-hidden="true">🪙</span>
							<span class="feature-name">Token Launch</span>
							<span class="feature-desc">One-click pump.fun token</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="paid" aria-label="See paid-skills pricing example" data-i18n-html="create_review.paid_skills_earn_usdc_per_call_via" data-i18n-attr="aria-label:create_review.see_paid_skills_pricing_exam_arialabel">
							<span class="feature-icon" aria-hidden="true">💸</span>
							<span class="feature-name">Paid Skills</span>
							<span class="feature-desc">Earn USDC per call via x402</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="analytics" aria-label="See analytics dashboard" data-i18n-html="create_review.analytics_revenue_views_transcripts_tracked" data-i18n-attr="aria-label:create_review.see_analytics_dashboard_arialabel">
							<span class="feature-icon" aria-hidden="true">📊</span>
							<span class="feature-name">Analytics</span>
							<span class="feature-desc">Revenue, views, transcripts tracked</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="embed" aria-label="See embed snippet" data-i18n-html="create_review.embed_anywhere_one_snippet_any_site_or" data-i18n-attr="aria-label:create_review.see_embed_snippet_arialabel">
							<span class="feature-icon" aria-hidden="true">🧩</span>
							<span class="feature-name">Embed Anywhere</span>
							<span class="feature-desc">One snippet, any site or app</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="widgets" aria-label="See widget types" data-i18n-html="create_review.widgets_8_types_turntable_to_live_feed" data-i18n-attr="aria-label:create_review.see_widget_types_arialabel">
							<span class="feature-icon" aria-hidden="true">🧱</span>
							<span class="feature-name">Widgets</span>
							<span class="feature-desc">8 types: turntable to live feed</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="developer" aria-label="See developer API" data-i18n-html="create_review.developer_api_mcp_tools_api_keys_scopes" data-i18n-attr="aria-label:create_review.see_developer_api_arialabel">
							<span class="feature-icon" aria-hidden="true">🛠️</span>
							<span class="feature-name">Developer API</span>
							<span class="feature-desc">MCP tools, API keys, scopes</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="knowledge" aria-label="See knowledge and memory" data-i18n-html="create_review.knowledge_memory_persistent_context_and_stra" data-i18n-attr="aria-label:create_review.see_knowledge_and_memory_arialabel">
							<span class="feature-icon" aria-hidden="true">🧠</span>
							<span class="feature-name">Knowledge &amp; Memory</span>
							<span class="feature-desc">Persistent context and strategy</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="reputation" aria-label="See reputation system" data-i18n-html="create_review.reputation_reviews_history_and_validation_se" data-i18n-attr="aria-label:create_review.see_reputation_system_arialabel">
							<span class="feature-icon" aria-hidden="true">⭐</span>
							<span class="feature-name">Reputation</span>
							<span class="feature-desc">Reviews, history, and validation</span>
							<span class="feature-try" aria-hidden="true">See →</span>
						</button>
					</li>
					<li>
						<button class="feature-tile" type="button" data-feature="download" aria-label="Download this avatar" data-i18n-html="create_review.download_glb_vrm_usdz_use_it_anywhere" data-i18n-attr="aria-label:create_review.download_this_avatar_arialabel">
							<span class="feature-icon" aria-hidden="true">📦</span>
							<span class="feature-name">Download</span>
							<span class="feature-desc">GLB · VRM · USDZ — use it anywhere</span>
							<span class="feature-try" aria-hidden="true">Save →</span>
						</button>
					</li>
				</ul>
			</div>

			<!-- Item soft-nudge: shown instead of the agent capabilities when the
			     creation is tagged as an Item. Explains items don't get a brain,
			     with a one-click escape hatch back to the agent path. Visibility is
			     toggled by create-review.js (syncCapabilities). -->
			<div class="item-nudge" id="item-nudge" hidden>
				<span class="item-nudge-icon" aria-hidden="true">🧩</span>
				<div class="item-nudge-text">
					<strong data-i18n="create_review.this_is_an_item_it_won_t">This is an item — it won't get a brain.</strong>
					<span data-i18n="create_review.items_are_3d_objects_place_them_in">Items are 3D objects: place them in scenes, attach them to an agent, or trade them. Thinking, voice and memory are for agents.</span>
				</div>
				<button class="item-nudge-promote" id="item-nudge-promote" type="button" data-i18n="create_review.made_a_character_make_it_an_agent">
					Made a character? Make it an agent →
				</button>
			</div>
		</main>

		<footer class="h-footer-horizon">
			<div class="h-footer-glow-line" aria-hidden="true"></div>
			<div class="h-footer-floor" aria-hidden="true"></div>
			<div class="h-footer-haze" aria-hidden="true"></div>
			<div class="h-footer-watermark" aria-hidden="true">three.ws</div>
			<div class="h-footer-inner">
				<div class="h-footer-brand-col">
					<div class="h-footer-brand">
						<img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />
						<span class="wordmark-dot" aria-hidden="true"></span>
						<span data-i18n="create_review.three_ws_2">three.ws</span>
					</div>
					<p class="h-footer-tagline" data-i18n="create_review.give_your_ai_a_body">Give your AI a body.</p>
				</div>
				<nav class="h-footer-links" aria-label="Footer">
					<div class="h-footer-link-col">
						<h4 class="h-footer-link-heading" data-i18n="create_review.product">Product</h4>
						<a href="/create" data-i18n="create_review.create">Create</a>
						<a href="/studio" data-i18n="create_review.studio">Studio</a>
						<a href="/widgets" data-i18n="create_review.widgets">Widgets</a>
						<a href="/discover" data-i18n="create_review.discover">Discover</a>
					</div>
					<div class="h-footer-link-col">
						<h4 class="h-footer-link-heading" data-i18n="create_review.resources">Resources</h4>
						<a href="/blog" data-i18n="create_review.blog">Blog</a>
						<a href="/dashboard" data-i18n="create_review.dashboard">Dashboard</a>
					</div>
				</nav>
			</div>
			<div class="h-footer-bottom">
				<p class="h-footer-legal" data-i18n="create_review.2026_three_ws_all_rights_reserved">© 2026 three.ws — All rights reserved.</p>
				<div class="h-footer-legal-links">
					<a href="/legal/privacy" data-i18n="create_review.privacy_policy">Privacy Policy</a>
					<a href="/legal/tos" data-i18n="create_review.terms_of_use">Terms of Use</a>
				</div>
			</div>
		</footer>

		<div
			class="status-toast"
			id="status-toast"
			role="status"
			aria-live="polite"
			aria-atomic="true"
			hidden
		></div>

		<script type="module" src="/src/create-review.js"></script>
		<script src="/brand.js" defer></script>
		<div id="footer-container"></div>
		<script src="/footer.js"></script>
	<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>