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.

7.3 KB
Raw Blame
/* deploy-button.css — scoped under .deploy-button-root
 *
 * Monochrome by design: this component renders inside the /dashboard agent
 * rows, so it borrows the dashboard-next palette (--nxt-*) with plain
 * monochrome fallbacks for any page that doesn't load tokens.css. Keep it
 * on-brand — glass surfaces, white accent, 10px controls, 999px chips,
 * semantic green/red only for success/error. No coloured accents. */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.deploy-button-root {
	display: inline-flex;
	align-items: center;
	font-family: inherit;
}

/* ── Chain select + deploy row ───────────────────────────────────────────── */

.deploy-chain-row {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	flex-wrap: wrap;
}

.deploy-chain-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0.45em 2em 0.45em 0.65em;
	border: 1px solid var(--nxt-stroke-strong, rgba(255, 255, 255, 0.14));
	border-radius: var(--nxt-radius-sm, 10px);
	background-color: var(--nxt-accent-soft, rgba(255, 255, 255, 0.04));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.7em center;
	color: var(--nxt-ink-dim, #b5b5b5);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	transition:
		background-color var(--duration-fast),
		border-color var(--duration-fast),
		color var(--duration-fast);
	max-width: 12em;
}

.deploy-chain-select:hover:not(:disabled) {
	background-color: rgba(255, 255, 255, 0.07);
	color: var(--nxt-ink, #fff);
	border-color: rgba(255, 255, 255, 0.28);
}

.deploy-chain-select:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

.deploy-chain-select:disabled {
	opacity: 0.6;
	cursor: progress;
}

.deploy-chain-select optgroup {
	color: var(--ink-dim);
	font-style: italic;
}

.deploy-chain-select option {
	background: #111;
	color: #e6e6e6;
	font-style: normal;
}

/* ── Deploy button ───────────────────────────────────────────────────────── */

.deploy-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.5em 1em;
	border: 1px solid var(--nxt-stroke-strong, rgba(255, 255, 255, 0.14));
	border-radius: var(--nxt-radius-sm, 10px);
	background: var(--nxt-accent-soft, rgba(255, 255, 255, 0.04));
	color: var(--nxt-ink, var(--ink));
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background var(--duration-fast),
		color var(--duration-fast),
		border-color var(--duration-fast);
	white-space: nowrap;
}

.deploy-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.deploy-btn:active:not(:disabled) {
	background: rgba(255, 255, 255, 0.12);
}

.deploy-btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

.deploy-btn--disabled,
.deploy-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	border-color: rgba(255, 255, 255, 0.1);
	color: var(--ink-dim);
}

/* ── Success chip ────────────────────────────────────────────────────────── */

.deploy-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.35em 0.85em;
	border-radius: var(--nxt-radius-pill, 999px);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity var(--duration-fast);
}

.deploy-chip--success {
	background: rgba(74, 222, 128, 0.1);
	border: 1px solid rgba(74, 222, 128, 0.4);
	color: var(--nxt-success, var(--success));
}

.deploy-chip--success:hover {
	opacity: 0.82;
}

.deploy-chip:focus-visible {
	outline: 2px solid rgba(74, 222, 128, 0.6);
	outline-offset: 2px;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */

.deploy-progress {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	font-size: 0.78rem;
	color: #aaa;
}

.progress-step {
	padding: 0.2em 0.5em;
	border-radius: 6px;
	transition:
		color var(--duration-base),
		background var(--duration-base);
}

.progress-step--pending {
	color: #666;
}

.progress-step--active {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-step--done {
	color: var(--nxt-success, var(--success));
}

.progress-sep {
	color: #444;
	font-size: 0.7em;
}

/* ── Error state ─────────────────────────────────────────────────────────── */

.deploy-error {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.32em 0.32em 0.32em 0.75em;
	border: 1px solid rgba(248, 113, 113, 0.28);
	border-radius: var(--nxt-radius-pill, 999px);
	background: rgba(127, 29, 29, 0.18);
	font-size: 0.72rem;
	color: rgba(252, 165, 165, 0.95);
	max-width: 100%;
	line-height: 1.4;
}

.deploy-error::before {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nxt-danger, var(--danger));
	box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

.deploy-error-msg {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.deploy-action-btn {
	flex-shrink: 0;
	padding: 0.18em 0.65em;
	border: 1px solid rgba(248, 113, 113, 0.35);
	border-radius: var(--nxt-radius-pill, 999px);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(252, 165, 165, 0.95);
	font-size: 0.7rem;
	font-family: inherit;
	cursor: pointer;
	transition:
		background var(--duration-fast),
		border-color var(--duration-fast),
		color var(--duration-fast);
}

.deploy-action-btn:hover {
	background: rgba(248, 113, 113, 0.12);
	border-color: rgba(248, 113, 113, 0.6);
	color: #fecaca;
}

.deploy-action-btn:focus-visible,
.deploy-vanity-link:focus-visible {
	outline: 2px solid rgba(252, 165, 165, 0.7);
	outline-offset: 2px;
}

/* ── Tooltip ─────────────────────────────────────────────────────────────── */

.deploy-tooltip {
	margin-left: 0.5em;
	font-size: 0.75rem;
	color: var(--ink-dim);
	font-style: italic;
}

/* ── Touch targets: 44px minimum on coarse pointers ─────────────────────── */

@media (pointer: coarse) {
	.deploy-btn,
	.deploy-chain-select,
	.deploy-chip,
	.deploy-action-btn {
		min-height: 44px;
	}
}

/* No light-mode block: three.ws is a dark-only product (no prefers-color-scheme
   switch anywhere in theme.css / style.css). This control must stay dark to match
   the page it lives in, regardless of the visitor's OS theme. */