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.

4.5 KB
Raw Blame
.share-panel-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9000;
	backdrop-filter: blur(2px);
}

.share-panel-modal {
	background: var(--bg-1);
	border: 1px solid #333;
	border-radius: 12px;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	padding: 24px;
	color: var(--ink);
	font-family: system-ui, sans-serif;
	font-size: 14px;
}

.share-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.share-panel-title {
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	margin: 0;
}

.share-panel-close {
	background: none;
	border: none;
	color: var(--ink-dim);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 4px;
}

.share-panel-close:hover {
	color: #fff;
	background: #2e2e2e;
}

.share-panel-row {
	margin-bottom: 18px;
}

.share-panel-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--ink-dim);
	margin-bottom: 6px;
}

.share-panel-field {
	display: flex;
	gap: 6px;
	align-items: flex-start;
}

.share-panel-code {
	flex: 1;
	background: #111;
	border: 1px solid #2e2e2e;
	border-radius: 6px;
	padding: 8px 10px;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #c8d3f5;
	word-break: break-all;
	white-space: pre-wrap;
	line-height: 1.5;
	min-height: 36px;
}

.share-panel-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-shrink: 0;
}

.share-panel-btn {
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	color: #d0d0d0;
	cursor: pointer;
	font-size: 12px;
	padding: 6px 12px;
	white-space: nowrap;
	transition:
		background var(--duration-fast),
		color var(--duration-fast);
}

.share-panel-btn:hover {
	background: #383838;
	color: #fff;
}

.share-panel-btn.copied {
	color: #4caf7d;
	border-color: #4caf7d44;
}

.share-panel-og-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid #2e2e2e;
	margin-bottom: 8px;
	background: #111;
}

.share-panel-qr {
	display: flex;
	justify-content: center;
	margin-top: 4px;
}

.share-panel-qr canvas {
	border-radius: 6px;
	border: 4px solid #fff;
}

.share-panel-divider {
	border: none;
	border-top: 1px solid #2a2a2a;
	margin: 20px 0;
}

/* ── Customise controls ──────────────────────────────────────────────────────── */

.share-panel-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.share-panel-fieldset {
	flex: 1 1 140px;
	min-width: 140px;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	padding: 8px 10px 10px;
	margin: 0;
}

.share-panel-fieldset legend {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-dim);
	padding: 0 4px;
}

.share-panel-segments {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.share-panel-segment {
	flex: 1;
	min-width: 0;
	background: #1f1f1f;
	border: 1px solid #2e2e2e;
	border-radius: 5px;
	color: #b0b0b0;
	cursor: pointer;
	font-size: 11px;
	padding: 5px 8px;
	white-space: nowrap;
	text-align: center;
	transition:
		background var(--duration-fast),
		color var(--duration-fast),
		border-color var(--duration-fast);
}

.share-panel-segment:hover {
	background: #2a2a2a;
	color: #fff;
}

.share-panel-segment--active {
	background: #393939;
	border-color: #4d6aa3;
	color: #e8eeff;
}

.share-panel-segment--active:hover {
	background: #364568;
}

/* ── Live preview ────────────────────────────────────────────────────────────── */

.share-panel-preview {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	background:
		linear-gradient(45deg, #1d1d1d 25%, transparent 25%) 0 0 / 16px 16px,
		linear-gradient(-45deg, #1d1d1d 25%, transparent 25%) 0 8px / 16px 16px,
		linear-gradient(45deg, transparent 75%, #1d1d1d 75%) 8px -8px / 16px 16px,
		linear-gradient(-45deg, transparent 75%, #1d1d1d 75%) 8px 0 / 16px 16px,
		#252525;
	padding: 16px;
	border: 1px solid #2a2a2a;
	min-height: 200px;
}

.share-panel-preview-frame {
	display: block;
	border: 0;
	border-radius: 8px;
	background: transparent;
	max-width: 100%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.share-panel-preview-frame[data-bg='dark'] {
	background: #0d0d0d;
}

.share-panel-preview-frame[data-bg='light'] {
	background: #f5f5f5;
}