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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Refactor code structure for improved readability and maintainability
nirholasa494cf692d8e
diff --git a/src/app.js b/src/app.jsindex da8a6b2c3..884f86238 100644--- a/src/app.js+++ b/src/app.js@@ -109,10 +109,9 @@ class App {return;}- // Load specified model or default CZ avatar- const model = options.model || '/avatars/cz.glb';- const resolvedModel = isDecentralizedURI(model) ? resolveURI(model) : model;- this.view(resolvedModel, '', new Map());+ // Resume a stashed editor session (post-login round-trip), else+ // load the model named in the URL or fall back to the CZ avatar.+ this._maybeResumeOrLoad(options);// Boot the agent system once identity is readythis._initAgentSystem();@@ -121,6 +120,61 @@ class App {this._initWidgetBridge();}+ /**+ * If the URL carries ?resume=<token>, restore the stashed editor session+ * (load source + replay edits + optionally auto-open Publish). Otherwise+ * load the model from #model= or the default CZ avatar.+ */+ async _maybeResumeOrLoad(options) {+ const params = new URLSearchParams(location.search);+ const resumeToken = params.get('resume');++ if (resumeToken) {+ try {+ const { restoreSession, clearStash } = await import(+ './editor/edit-persistence.js'+ );+ const stashed = await restoreSession(resumeToken);+ if (stashed) {+ if (stashed.source.url) {+ await this.view(stashed.source.url, '', new Map());+ } else if (stashed.source.file) {+ const f = stashed.source.file;+ await this.load(new Map([[f.name, f]]));+ }++ if (this.editor && this.editor.session) {+ this.editor.session.restoreEdits(stashed.edits);+ // Panels snapshotted the original material values before+ // restoreEdits mutated them — rebuild so the GUI mirrors+ // the restored state.+ this.editor.materialEditor?.rebuild?.();+ this.editor.textureInspector?.rebuild?.();+ this.editor.sceneExplorer?.rebuild?.();+ }++ if (params.get('publish') === '1') {+ this.editor?._openPublishModal?.();+ }++ await clearStash(resumeToken);++ const clean = new URL(location.href);+ clean.searchParams.delete('resume');+ clean.searchParams.delete('publish');+ history.replaceState(null, '', clean.toString());+ return;+ }+ } catch (err) {+ console.warn('[3d-agent] resume failed', err);+ }+ }++ const model = options.model || '/avatars/cz.glb';+ const resolvedModel = isDecentralizedURI(model) ? resolveURI(model) : model;+ this.view(resolvedModel, '', new Map());+ }+// ── Agent System Init ─────────────────────────────────────────────────────async _initAgentSystem() {@@ -486,7 +540,7 @@ class App {this.onError('No .gltf or .glb asset found.');}- this.view(rootFile, rootPath, fileMap);+ return this.view(rootFile, rootPath, fileMap);}/**@@ -515,7 +569,7 @@ class App {if (typeof rootFile === 'object') URL.revokeObjectURL(fileURL);};- viewer+ return viewer.load(fileURL, rootPath, fileMap).catch((e) => {// Emit load errordiff --git a/src/editor/edit-persistence.js b/src/editor/edit-persistence.jsnew file mode 100644index 000000000..293b0d172--- /dev/null+++ b/src/editor/edit-persistence.js@@ -0,0 +1,207 @@+/**+ * edit-persistence — round-trip the editor's in-progress state across a+ * navigation (the "sign in to publish" redirect being the driving case).+ *+ * Edits are small JSON → `sessionStorage` under `edt:<id>`.+ * Source bytes (for dropped files) go to IndexedDB under `3dagent/edt-bytes`,+ * keyed by the same id. URL-loaded models store only the url and re-fetch.+ */++const DB_NAME = '3dagent';+const STORE_NAME = 'edt-bytes';+const SS_PREFIX = 'edt:';+const BLOB_VERSION = 1;++function base64url(bytes) {+ let s = '';+ for (const b of bytes) s += String.fromCharCode(b);+ return btoa(s).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');+}++function newToken() {+ const rand = crypto.getRandomValues(new Uint8Array(6));+ return 'edt_' + base64url(rand);+}++function openDB() {+ return new Promise((resolve, reject) => {+ let req;+ try {+ req = indexedDB.open(DB_NAME, 1);+ } catch (err) {+ reject(err);+ return;+ }+ req.onupgradeneeded = () => {+ const db = req.result;+ if (!db.objectStoreNames.contains(STORE_NAME)) {+ db.createObjectStore(STORE_NAME);+ }+ };+ req.onsuccess = () => resolve(req.result);+ req.onerror = () => reject(req.error);+ req.onblocked = () => reject(new Error('indexedDB blocked'));+ });+}++async function idbPut(key, value) {+ const db = await openDB();+ try {+ await new Promise((resolve, reject) => {+ const tx = db.transaction(STORE_NAME, 'readwrite');+ tx.objectStore(STORE_NAME).put(value, key);+ tx.oncomplete = () => resolve();+ tx.onerror = () => reject(tx.error);+ tx.onabort = () => reject(tx.error);+ });+ } finally {+ db.close();+ }+}++async function idbGet(key) {+ const db = await openDB();+ try {+ return await new Promise((resolve, reject) => {+ const tx = db.transaction(STORE_NAME, 'readonly');+ const req = tx.objectStore(STORE_NAME).get(key);+ req.onsuccess = () => resolve(req.result ?? null);+ req.onerror = () => reject(req.error);+ });+ } finally {+ db.close();+ }+}++async function idbDelete(key) {+ const db = await openDB();+ try {+ await new Promise((resolve, reject) => {+ const tx = db.transaction(STORE_NAME, 'readwrite');+ tx.objectStore(STORE_NAME).delete(key);+ tx.oncomplete = () => resolve();+ tx.onerror = () => reject(tx.error);+ tx.onabort = () => reject(tx.error);+ });+ } finally {+ db.close();+ }+}++function snapshotEdits(session) {+ return {+ materialEdits: { ...(session.materialEdits || {}) },+ transformEdits: { ...(session.transformEdits || {}) },+ visibilityEdits: { ...(session.visibilityEdits || {}) },+ };+}++const EMPTY_EDITS = {+ materialEdits: {},+ transformEdits: {},+ visibilityEdits: {},+};++/**+ * Stash current editor state so the user can continue after a round-trip (login).+ * Returns a short token to be placed in the URL (e.g. ?resume=abc123).+ *+ * @param {import('./session.js').EditorSession} session+ * @returns {Promise<string>}+ */+export async function stashSession(session) {+ const id = newToken();+ const edits = snapshotEdits(session);+ const blob = { v: BLOB_VERSION, edits, ts: Date.now() };++ if (session.sourceURL) {+ blob.source = { url: session.sourceURL };+ } else if (session.sourceFile) {+ const file = session.sourceFile;+ blob.source = { file: { name: file.name, type: file.type } };+ try {+ const bytes = await file.arrayBuffer();+ await idbPut(id, { name: file.name, type: file.type, bytes });+ } catch (err) {+ console.warn('[edit-persistence] failed to stash file bytes', err);+ // fall through — restore returns null if bytes are missing+ }+ } else {+ blob.source = null;+ }++ try {+ sessionStorage.setItem(SS_PREFIX + id, JSON.stringify(blob));+ } catch (err) {+ console.warn('[edit-persistence] sessionStorage write failed', err);+ }++ return id;+}++/**+ * Restore previously stashed state.+ *+ * @param {string} token+ * @returns {Promise<null | {+ * source: { url: string } | { file: File },+ * edits: { materialEdits: object, transformEdits: object, visibilityEdits: object }+ * }>}+ */+export async function restoreSession(token) {+ if (!token || typeof token !== 'string') return null;++ let raw = null;+ try {+ raw = sessionStorage.getItem(SS_PREFIX + token);+ } catch {+ return null;+ }+ if (!raw) return null;++ let blob;+ try {+ blob = JSON.parse(raw);+ } catch {+ return null;+ }+ if (!blob || !blob.source) return null;++ const edits = blob.edits || EMPTY_EDITS;++ if (blob.source.url) {+ return { source: { url: blob.source.url }, edits };+ }++ if (blob.source.file) {+ let rec = null;+ try {+ rec = await idbGet(token);+ } catch (err) {+ console.warn('[edit-persistence] idb read failed', err);+ return null;+ }+ if (!rec || !rec.bytes) return null;+ const file = new File([rec.bytes], rec.name || 'model.glb', {+ type: rec.type || 'model/gltf-binary',+ });+ return { source: { file }, edits };+ }++ return null;+}++/** Delete the stash (after successful resume). */+export async function clearStash(token) {+ if (!token) return;+ try {+ sessionStorage.removeItem(SS_PREFIX + token);+ } catch {+ /* ignore */+ }+ try {+ await idbDelete(token);+ } catch {+ /* ignore */+ }+}diff --git a/src/editor/index.js b/src/editor/index.jsindex 15f84f75d..c2c1f2bc2 100644--- a/src/editor/index.js+++ b/src/editor/index.js@@ -124,6 +124,54 @@ export class Editor {window.location.reload();}+ async _openPublishModal() {+ if (this._publishInFlight) return;+ this._publishInFlight = true;+ this._setPublishEnabled(false);++ let modal = null;+ try {+ const [publishMod, modalMod] = await Promise.all([+ import('./publish.js'),+ import('./publish-modal.js'),+ ]);+ const { publishEditedGLB, AuthRequiredError } = publishMod;+ const { PublishModal } = modalMod;++ modal = new PublishModal(document.body);+ modal.onRetry(() => this._openPublishModal());+ modal.open();++ try {+ const result = await publishEditedGLB(this.session, { onStep: modal.onStep });+ modal.showResult(result.urls);+ } catch (err) {+ if (err instanceof AuthRequiredError || err?.name === 'AuthRequiredError') {+ modal.showAuthRequired();+ } else {+ modal.showError(err);+ }+ console.error('[editor] publish failed', err);+ }+ } catch (err) {+ console.error('[editor] publish modal failed to load', err);+ if (modal) modal.showError(err);+ else window.alert('Publish failed: ' + (err.message || err));+ } finally {+ this._publishInFlight = false;+ this._setPublishEnabled(true);+ }+ }++ _setPublishEnabled(enabled) {+ if (!this._publishCtrl) return;+ const row = this._publishCtrl.__li || this._publishCtrl.domElement;+ if (row) {+ row.style.pointerEvents = enabled ? '' : 'none';+ row.style.opacity = enabled ? '' : '0.4';+ }+ }+dispose() {this.materialEditor.dispose();this.textureInspector.dispose();@@ -135,6 +183,7 @@ export class Editor {}this.exportFolder = null;this._exportCtrl = null;+ this._publishCtrl = null;this._attached = false;}}diff --git a/src/editor/publish-modal.js b/src/editor/publish-modal.jsindex ab0965c81..9cf57c4d4 100644--- a/src/editor/publish-modal.js+++ b/src/editor/publish-modal.js@@ -97,7 +97,9 @@ export class PublishModal {const values = rows.map((r) => r.value);this.body.querySelectorAll('.publish-copy-btn').forEach((btn) => {- btn.addEventListener('click', () => this._copyValue(btn, values[Number(btn.dataset.idx)]));+ btn.addEventListener('click', () =>+ this._copyValue(btn, values[Number(btn.dataset.idx)]),+ );});this.body.querySelectorAll('.publish-open-btn').forEach((btn) => {btn.addEventListener('click', () => {@@ -134,7 +136,9 @@ export class PublishModal {this.body.querySelector('.publish-signin-btn').addEventListener('click', () => {window.location.href = `/login?next=${next}`;});- this.body.querySelector('.publish-cancel-btn').addEventListener('click', () => this.close());+ this.body+ .querySelector('.publish-cancel-btn')+ .addEventListener('click', () => this.close());const signIn = this.body.querySelector('.publish-signin-btn');if (signIn) {try {@@ -163,7 +167,9 @@ export class PublishModal {this.close();if (typeof fn === 'function') fn();});- this.body.querySelector('.publish-cancel-btn').addEventListener('click', () => this.close());+ this.body+ .querySelector('.publish-cancel-btn')+ .addEventListener('click', () => this.close());const retry = this.body.querySelector('.publish-retry-btn');if (retry) {try {diff --git a/src/editor/session.js b/src/editor/session.jsindex f6fa421b4..28ac9e250 100644--- a/src/editor/session.js+++ b/src/editor/session.js@@ -93,6 +93,80 @@ export class EditorSession {);}+ /**+ * Replay previously-stashed edits onto the freshly loaded viewport.+ * UUIDs don't cross the reload boundary, so matching is by name — the+ * same strategy glb-export.js uses. After viewport mutation the three+ * maps are re-keyed by the new uuid so further edits update in place.+ *+ * @param {{materialEdits?: object, transformEdits?: object, visibilityEdits?: object}} edits+ */+ restoreEdits({ materialEdits, transformEdits, visibilityEdits } = {}) {+ this.materialEdits = { ...(materialEdits || {}) };+ this.transformEdits = { ...(transformEdits || {}) };+ this.visibilityEdits = { ...(visibilityEdits || {}) };+ this._applyRestoredToViewport();+ this._emit();+ }++ _applyRestoredToViewport() {+ const content = this.viewer && this.viewer.content;+ if (!content) return;++ const matByName = new Map();+ const nodeByName = new Map();+ content.traverse((node) => {+ if (node.name && !nodeByName.has(node.name)) nodeByName.set(node.name, node);+ if (!node.geometry) return;+ const mats = Array.isArray(node.material) ? node.material : [node.material];+ for (const mat of mats) {+ if (mat && mat.name && !matByName.has(mat.name)) matByName.set(mat.name, mat);+ }+ });++ const rekey = (map, lookup, apply) => {+ const rekeyed = {};+ for (const k in map) {+ const edit = map[k];+ const target = lookup.get(edit.name);+ if (!target) {+ rekeyed[k] = edit;+ continue;+ }+ apply(target, edit);+ rekeyed[target.uuid] = { ...edit, uuid: target.uuid };+ }+ return rekeyed;+ };++ this.materialEdits = rekey(this.materialEdits, matByName, (mat, edit) => {+ if (edit.baseColor && mat.color) mat.color.setRGB(...edit.baseColor);+ if (edit.emissive && mat.emissive) mat.emissive.setRGB(...edit.emissive);+ if (edit.metalness !== undefined) mat.metalness = edit.metalness;+ if (edit.roughness !== undefined) mat.roughness = edit.roughness;+ if (edit.opacity !== undefined) mat.opacity = edit.opacity;+ if (edit.alphaMode !== undefined) {+ mat.transparent = edit.alphaMode === 'BLEND';+ }+ if (edit.alphaCutoff !== undefined) mat.alphaTest = edit.alphaCutoff;+ mat.needsUpdate = true;+ });++ this.transformEdits = rekey(this.transformEdits, nodeByName, (node, edit) => {+ if (edit.position) node.position.fromArray(edit.position);+ if (edit.rotation) {+ node.rotation.set(edit.rotation[0], edit.rotation[1], edit.rotation[2]);+ }+ if (edit.scale) node.scale.fromArray(edit.scale);+ });++ this.visibilityEdits = rekey(this.visibilityEdits, nodeByName, (node, edit) => {+ node.visible = edit.visible !== false;+ });++ if (this.viewer && this.viewer.invalidate) this.viewer.invalidate();+ }+async getSourceBuffer() {if (this.sourceBuffer) return this.sourceBuffer;diff --git a/style.css b/style.cssindex b55d4f85e..884552c5a 100644--- a/style.css+++ b/style.css@@ -17,165 +17,167 @@box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);z-index: 9999;}-.save-toast a { color: #9a8cff; }-+.save-toast a {+ color: #9a8cff;+}:root {- /* Phi ratio */- --phi: 1.618;-- /* Spacing scale (each step × φ) */- --space-3xs: 0.146rem; /* ~2.3px */- --space-2xs: 0.236rem; /* ~3.8px */- --space-xs: 0.382rem; /* ~6.1px */- --space-sm: 0.618rem; /* ~9.9px */- --space-md: 1rem; /* 16px */- --space-lg: 1.618rem; /* ~25.9px */- --space-xl: 2.618rem; /* ~41.9px */- --space-2xl: 4.236rem; /* ~67.8px */-- /* Typography scale (minor third adjusted to phi) */- --text-xs: 0.618rem; /* ~9.9px */- --text-sm: 0.764rem; /* ~12.2px */- --text-base: 1rem; /* 16px */- --text-lg: 1.236rem; /* ~19.8px */- --text-xl: 1.618rem; /* ~25.9px */- --text-2xl: 2.618rem; /* ~41.9px */-- /* Line heights — golden ratio */- --leading-tight: 1.382;- --leading-normal: 1.618;- --leading-loose: 2.058;-- /* Radii — phi-based */- --radius-sm: 3px; /* ~5/φ */- --radius-md: 5px; /* base */- --radius-lg: 8px; /* ~5×φ */-- /* Header height */- --header-h: 3.5rem;-- /* Font stacks */- --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;- --font-body: 'Inter', system-ui, sans-serif;- --font-mono: 'SF Mono', 'Fira Code', ui-monospace, monospace;-- /* Accent */- --accent: #8b5cf6;- --accent-soft: rgba(139, 92, 246, 0.18);-}--html, body {- margin: 0;- padding: 0;- font-family: 'Inter', 'Raleway', sans-serif;- background: #000;- height: 100%;- overflow: hidden;- color: #e0e0e0;- font-size: var(--text-base);- line-height: var(--leading-normal);+ /* Phi ratio */+ --phi: 1.618;++ /* Spacing scale (each step × φ) */+ --space-3xs: 0.146rem; /* ~2.3px */+ --space-2xs: 0.236rem; /* ~3.8px */+ --space-xs: 0.382rem; /* ~6.1px */+ --space-sm: 0.618rem; /* ~9.9px */+ --space-md: 1rem; /* 16px */+ --space-lg: 1.618rem; /* ~25.9px */+ --space-xl: 2.618rem; /* ~41.9px */+ --space-2xl: 4.236rem; /* ~67.8px */++ /* Typography scale (minor third adjusted to phi) */+ --text-xs: 0.618rem; /* ~9.9px */+ --text-sm: 0.764rem; /* ~12.2px */+ --text-base: 1rem; /* 16px */+ --text-lg: 1.236rem; /* ~19.8px */+ --text-xl: 1.618rem; /* ~25.9px */+ --text-2xl: 2.618rem; /* ~41.9px */++ /* Line heights — golden ratio */+ --leading-tight: 1.382;+ --leading-normal: 1.618;+ --leading-loose: 2.058;++ /* Radii — phi-based */+ --radius-sm: 3px; /* ~5/φ */+ --radius-md: 5px; /* base */+ --radius-lg: 8px; /* ~5×φ */++ /* Header height */+ --header-h: 3.5rem;++ /* Font stacks */+ --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;+ --font-body: 'Inter', system-ui, sans-serif;+ --font-mono: 'SF Mono', 'Fira Code', ui-monospace, monospace;++ /* Accent */+ --accent: #8b5cf6;+ --accent-soft: rgba(139, 92, 246, 0.18);+}++html,+body {+ margin: 0;+ padding: 0;+ font-family: 'Inter', 'Raleway', sans-serif;+ background: #000;+ height: 100%;+ overflow: hidden;+ color: #e0e0e0;+ font-size: var(--text-base);+ line-height: var(--leading-normal);}* {- box-sizing: border-box;+ box-sizing: border-box;}body {- display: flex;- flex-direction: column;+ display: flex;+ flex-direction: column;}.wrap {- display: flex;- flex-direction: column;- width: 100vw;- flex-grow: 1;- position: relative;+ display: flex;+ flex-direction: column;+ width: 100vw;+ flex-grow: 1;+ position: relative;}.viewer-container {- flex-grow: 1;- position: relative;- min-height: 0;+ flex-grow: 1;+ position: relative;+ min-height: 0;}.dropzone {- display: flex;- align-items: center;- justify-content: center;- gap: var(--space-md);- padding: var(--space-sm) var(--space-lg);- padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom, 0));- padding-left: max(var(--space-lg), env(safe-area-inset-left, 0));- padding-right: max(var(--space-lg), env(safe-area-inset-right, 0));- background: rgba(255, 255, 255, 0.03);- border-top: 1px solid rgba(255, 255, 255, 0.06);- z-index: 1;+ display: flex;+ align-items: center;+ justify-content: center;+ gap: var(--space-md);+ padding: var(--space-sm) var(--space-lg);+ padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom, 0));+ padding-left: max(var(--space-lg), env(safe-area-inset-left, 0));+ padding-right: max(var(--space-lg), env(safe-area-inset-right, 0));+ background: rgba(255, 255, 255, 0.03);+ border-top: 1px solid rgba(255, 255, 255, 0.06);+ z-index: 1;}.placeholder {- display: none;+ display: none;}.placeholder:hover {- border-color: rgba(255, 255, 255, 0.3);- background: rgba(255, 255, 255, 0.05);+ border-color: rgba(255, 255, 255, 0.3);+ background: rgba(255, 255, 255, 0.05);}.placeholder p {- font-size: var(--text-lg);- color: rgba(255, 255, 255, 0.4);- font-weight: 300;- letter-spacing: 0.02em;+ font-size: var(--text-lg);+ color: rgba(255, 255, 255, 0.4);+ font-weight: 300;+ letter-spacing: 0.02em;}.viewer {- width: 100%;- height: 100%;- position: absolute;- top: 0;- left: 0;- z-index: 0;+ width: 100%;+ height: 100%;+ position: absolute;+ top: 0;+ left: 0;+ z-index: 0;}.model-info {- position: absolute;- bottom: 20px;- left: 20px;- z-index: 5;- pointer-events: none;- opacity: 0;- transform: translateY(8px);- animation: fadeInUp 0.4s ease 0.3s forwards;+ position: absolute;+ bottom: 20px;+ left: 20px;+ z-index: 5;+ pointer-events: none;+ opacity: 0;+ transform: translateY(8px);+ animation: fadeInUp 0.4s ease 0.3s forwards;}.annotation-label {- position: absolute;- z-index: 4;- pointer-events: none;- transform: translate(-50%, -100%) translateY(-8px);- opacity: 0;- animation: fadeInUp 0.3s ease 0.5s forwards;+ position: absolute;+ z-index: 4;+ pointer-events: none;+ transform: translate(-50%, -100%) translateY(-8px);+ opacity: 0;+ animation: fadeInUp 0.3s ease 0.5s forwards;}@keyframes fadeInUp {- to {- opacity: 1;- transform: translateY(0);- }+ to {+ opacity: 1;+ transform: translateY(0);+ }}.axes {- width: 100px;- height: 100px;- margin: 20px;- padding: 0px;- position: absolute;- left: 0px;- bottom: 0px;- z-index: 10;- pointer-events: none;+ width: 100px;+ height: 100px;+ margin: 20px;+ padding: 0px;+ position: absolute;+ left: 0px;+ bottom: 0px;+ z-index: 10;+ pointer-events: none;}/******************************************************************************@@ -183,172 +185,179 @@ body {*/header {- display: flex;- background: rgba(0, 0, 0, 0.8);- backdrop-filter: blur(20px);- -webkit-backdrop-filter: blur(20px);- padding: 0 var(--space-lg);- padding-top: env(safe-area-inset-top, 0);- padding-left: max(var(--space-lg), env(safe-area-inset-left, 0));- padding-right: max(var(--space-lg), env(safe-area-inset-right, 0));- height: calc(var(--header-h) + env(safe-area-inset-top, 0));- line-height: var(--header-h);- align-items: center;- overflow-x: auto;- overflow-y: hidden;- white-space: nowrap;- border-bottom: 1px solid rgba(255, 255, 255, 0.06);- z-index: 1;-- -webkit-app-region: drag;+ display: flex;+ background: rgba(0, 0, 0, 0.8);+ backdrop-filter: blur(20px);+ -webkit-backdrop-filter: blur(20px);+ padding: 0 var(--space-lg);+ padding-top: env(safe-area-inset-top, 0);+ padding-left: max(var(--space-lg), env(safe-area-inset-left, 0));+ padding-right: max(var(--space-lg), env(safe-area-inset-right, 0));+ height: calc(var(--header-h) + env(safe-area-inset-top, 0));+ line-height: var(--header-h);+ align-items: center;+ overflow-x: auto;+ overflow-y: hidden;+ white-space: nowrap;+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);+ z-index: 1;++ -webkit-app-region: drag;}header h1 {- color: #fff;- font-family: var(--font-display);- font-size: var(--text-lg);- font-weight: 600;- line-height: var(--header-h);- margin: 0;- letter-spacing: -0.01em;- display: flex;- align-items: center;- gap: var(--space-xs);+ color: #fff;+ font-family: var(--font-display);+ font-size: var(--text-lg);+ font-weight: 600;+ line-height: var(--header-h);+ margin: 0;+ letter-spacing: -0.01em;+ display: flex;+ align-items: center;+ gap: var(--space-xs);}header h1 > a {- color: inherit;- font-size: inherit;- text-decoration: inherit;- display: flex;- align-items: center;- gap: 0.5rem;+ color: inherit;+ font-size: inherit;+ text-decoration: inherit;+ display: flex;+ align-items: center;+ gap: 0.5rem;}header h1 .wordmark-dot {- width: 8px;- height: 8px;- border-radius: 50%;- background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);- box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);- display: inline-block;+ width: 8px;+ height: 8px;+ border-radius: 50%;+ background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);+ box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);+ display: inline-block;}.features-nav {- margin-left: auto;- display: flex;- gap: var(--space-md);- -webkit-app-region: no-drag;- align-items: center;+ margin-left: auto;+ display: flex;+ gap: var(--space-md);+ -webkit-app-region: no-drag;+ align-items: center;}.features-nav a {- color: rgba(255, 255, 255, 0.5);- text-decoration: none;- font-size: var(--text-sm);- font-weight: 500;- letter-spacing: -0.005em;- padding: 0.35rem 0.7rem;- border-radius: var(--radius-md);- transition: color 0.18s ease, background 0.18s ease;- position: relative;+ color: rgba(255, 255, 255, 0.5);+ text-decoration: none;+ font-size: var(--text-sm);+ font-weight: 500;+ letter-spacing: -0.005em;+ padding: 0.35rem 0.7rem;+ border-radius: var(--radius-md);+ transition:+ color 0.18s ease,+ background 0.18s ease;+ position: relative;}.features-nav a:hover {- color: #fff;- background: rgba(255, 255, 255, 0.04);+ color: #fff;+ background: rgba(255, 255, 255, 0.04);}.features-nav a.active {- color: #fff;- background: rgba(255, 255, 255, 0.06);+ color: #fff;+ background: rgba(255, 255, 255, 0.06);}.features-nav a.active::after {- content: '';- position: absolute;- left: 50%;- bottom: -2px;- transform: translateX(-50%);- width: 18px;- height: 2px;- border-radius: 2px;- background: linear-gradient(90deg, #a78bfa, #6366f1);+ content: '';+ position: absolute;+ left: 50%;+ bottom: -2px;+ transform: translateX(-50%);+ width: 18px;+ height: 2px;+ border-radius: 2px;+ background: linear-gradient(90deg, #a78bfa, #6366f1);}.nav-sign-in {- border: 1px solid rgba(255, 255, 255, 0.12);- border-radius: var(--radius-md);+ border: 1px solid rgba(255, 255, 255, 0.12);+ border-radius: var(--radius-md);}.nav-sign-in.signed-in {- display: none;+ display: none;}.gui-wrap {- position: absolute;- top: 0;- right: 0;- bottom: 0;- pointer-events: none;- transition: opacity 0.2s ease, transform 0.2s ease;+ position: absolute;+ top: 0;+ right: 0;+ bottom: 0;+ pointer-events: none;+ transition:+ opacity 0.2s ease,+ transform 0.2s ease;}.gui-wrap--hidden {- opacity: 0;- transform: translateX(12px);- pointer-events: none !important;- visibility: hidden;+ opacity: 0;+ transform: translateX(12px);+ pointer-events: none !important;+ visibility: hidden;}.gui-wrap > .main {- pointer-events: all;- max-height: 100%;- overflow: auto;+ pointer-events: all;+ max-height: 100%;+ overflow: auto;}/* Controls toggle button (top-right) */.gui-toggle {- position: absolute;- top: var(--space-sm);- right: var(--space-sm);- display: flex;- align-items: center;- gap: 6px;- padding: 6px 10px;- background: rgba(18, 18, 26, 0.85);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-md);- color: rgba(255, 255, 255, 0.6);- font-family: var(--font-body);- font-size: var(--text-xs);- font-weight: 500;- letter-spacing: 0.02em;- cursor: pointer;- backdrop-filter: blur(12px);- -webkit-backdrop-filter: blur(12px);- transition: color 0.18s, background 0.18s, border-color 0.18s;- z-index: 30;+ position: absolute;+ top: var(--space-sm);+ right: var(--space-sm);+ display: flex;+ align-items: center;+ gap: 6px;+ padding: 6px 10px;+ background: rgba(18, 18, 26, 0.85);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-md);+ color: rgba(255, 255, 255, 0.6);+ font-family: var(--font-body);+ font-size: var(--text-xs);+ font-weight: 500;+ letter-spacing: 0.02em;+ cursor: pointer;+ backdrop-filter: blur(12px);+ -webkit-backdrop-filter: blur(12px);+ transition:+ color 0.18s,+ background 0.18s,+ border-color 0.18s;+ z-index: 30;}.gui-toggle:hover {- color: #fff;- background: rgba(28, 28, 38, 0.9);- border-color: rgba(255, 255, 255, 0.18);+ color: #fff;+ background: rgba(28, 28, 38, 0.9);+ border-color: rgba(255, 255, 255, 0.18);}.gui-toggle--active {- color: #fff;- background: var(--accent-soft);- border-color: rgba(139, 92, 246, 0.45);+ color: #fff;+ background: var(--accent-soft);+ border-color: rgba(139, 92, 246, 0.45);}.gui-toggle__label {- font-size: 11px;+ font-size: 11px;}.dg li.gui-stats:not(.folder) {- height: auto;+ height: auto;}/******************************************************************************@@ -356,150 +365,150 @@ header h1 .wordmark-dot {*/.dg.ac {- z-index: 10 !important;+ z-index: 10 !important;}.dg.main .close-button.close-bottom {- background-color: #111 !important;- color: rgba(255, 255, 255, 0.5) !important;- border-top: 1px solid rgba(255, 255, 255, 0.06) !important;+ background-color: #111 !important;+ color: rgba(255, 255, 255, 0.5) !important;+ border-top: 1px solid rgba(255, 255, 255, 0.06) !important;}.dg.main .close-button.close-bottom:hover {- background-color: #1a1a1a !important;- color: rgba(255, 255, 255, 0.8) !important;+ background-color: #1a1a1a !important;+ color: rgba(255, 255, 255, 0.8) !important;}.dg.a {- margin-right: 0 !important;+ margin-right: 0 !important;}.dg li:not(.folder) {- background: #0a0a0a !important;- border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;+ background: #0a0a0a !important;+ border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;}.dg li.folder {- border-bottom: 0 !important;+ border-bottom: 0 !important;}.dg li.title {- background: #111 !important;- border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;+ background: #111 !important;+ border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;}.dg .cr.function .property-name {- width: 100% !important;+ width: 100% !important;}.dg .c select {- background: #1a1a1a !important;- color: #ccc !important;- border: 1px solid rgba(255, 255, 255, 0.1) !important;- border-radius: var(--radius-sm) !important;+ background: #1a1a1a !important;+ color: #ccc !important;+ border: 1px solid rgba(255, 255, 255, 0.1) !important;+ border-radius: var(--radius-sm) !important;}-.dg .c input[type="text"] {- background: #1a1a1a !important;- color: #ccc !important;- border: 1px solid rgba(255, 255, 255, 0.1) !important;- border-radius: var(--radius-sm) !important;+.dg .c input[type='text'] {+ background: #1a1a1a !important;+ color: #ccc !important;+ border: 1px solid rgba(255, 255, 255, 0.1) !important;+ border-radius: var(--radius-sm) !important;}@media screen and (max-width: 700px) {- header {- padding: 0 1em;- height: 3rem;- line-height: 3rem;- }-- header h1 {- font-size: 1em;- line-height: 3rem;- }-- .placeholder {- display: none;- }-- .placeholder p {- font-size: 1rem;- }-- .upload-btn label {- padding: var(--space-xs) var(--space-md);- font-size: var(--text-sm);- }-- .dropzone {- flex-direction: column;- gap: var(--space-xs);- padding: var(--space-xs) var(--space-md);- }-- footer {- bottom: auto;- top: calc(3rem + 0.5em);- left: 0.5em;- right: auto;- }-- .gui-wrap {- max-width: 65vw;- }-- .axes {- width: 60px;- height: 60px;- margin: 10px;- bottom: 0;- }-- .model-info {- bottom: 10px;- left: 10px;- transform: scale(0.85) translateY(8px);- transform-origin: bottom left;- }-- @keyframes fadeInUp {- to {- opacity: 1;- transform: scale(0.85) translateY(0);- }- }-- .annotation-label {- transform: scale(0.8) translate(-50%, -100%) translateY(-6px);- transform-origin: center bottom;- }-- .report {- padding: var(--space-md);- max-width: 100vw;- }-- .report-table th,- .report-table td {- padding: var(--space-2xs) var(--space-xs);- font-size: var(--text-sm);- }-- .report-toggle {- left: 10px;- height: 36px;- }-- .report-toggle-text {- line-height: 36px;- font-size: 0.75em;- }-- .report-toggle-close {- width: 36px;- height: 36px;- line-height: 36px;- }+ header {+ padding: 0 1em;+ height: 3rem;+ line-height: 3rem;+ }++ header h1 {+ font-size: 1em;+ line-height: 3rem;+ }++ .placeholder {+ display: none;+ }++ .placeholder p {+ font-size: 1rem;+ }++ .upload-btn label {+ padding: var(--space-xs) var(--space-md);+ font-size: var(--text-sm);+ }++ .dropzone {+ flex-direction: column;+ gap: var(--space-xs);+ padding: var(--space-xs) var(--space-md);+ }++ footer {+ bottom: auto;+ top: calc(3rem + 0.5em);+ left: 0.5em;+ right: auto;+ }++ .gui-wrap {+ max-width: 65vw;+ }++ .axes {+ width: 60px;+ height: 60px;+ margin: 10px;+ bottom: 0;+ }++ .model-info {+ bottom: 10px;+ left: 10px;+ transform: scale(0.85) translateY(8px);+ transform-origin: bottom left;+ }++ @keyframes fadeInUp {+ to {+ opacity: 1;+ transform: scale(0.85) translateY(0);+ }+ }++ .annotation-label {+ transform: scale(0.8) translate(-50%, -100%) translateY(-6px);+ transform-origin: center bottom;+ }++ .report {+ padding: var(--space-md);+ max-width: 100vw;+ }++ .report-table th,+ .report-table td {+ padding: var(--space-2xs) var(--space-xs);+ font-size: var(--text-sm);+ }++ .report-toggle {+ left: 10px;+ height: 36px;+ }++ .report-toggle-text {+ line-height: 36px;+ font-size: 0.75em;+ }++ .report-toggle-close {+ width: 36px;+ height: 36px;+ line-height: 36px;+ }}/******************************************************************************@@ -507,39 +516,39 @@ header h1 .wordmark-dot {*/footer {- position: absolute;- bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0));- right: calc(var(--space-md) + env(safe-area-inset-right, 0));- display: flex;- align-items: center;- gap: var(--space-sm);- font-family: var(--font-mono);- font-size: var(--text-sm);- color: #fff;- z-index: 2;- pointer-events: none;+ position: absolute;+ bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0));+ right: calc(var(--space-md) + env(safe-area-inset-right, 0));+ display: flex;+ align-items: center;+ gap: var(--space-sm);+ font-family: var(--font-mono);+ font-size: var(--text-sm);+ color: #fff;+ z-index: 2;+ pointer-events: none;}footer a {- pointer-events: all;- color: rgba(255, 255, 255, 0.55);- text-decoration: none;- transition: color 0.18s ease;- display: inline-flex;- align-items: center;+ pointer-events: all;+ color: rgba(255, 255, 255, 0.55);+ text-decoration: none;+ transition: color 0.18s ease;+ display: inline-flex;+ align-items: center;}footer a:hover {- color: #fff;+ color: #fff;}footer a svg {- vertical-align: middle;+ vertical-align: middle;}footer .separator {- color: rgba(255, 255, 255, 0.2);- font-size: 10px;+ color: rgba(255, 255, 255, 0.2);+ font-size: 10px;}/******************************************************************************@@ -549,111 +558,110 @@ footer .separator {*/.upload-btn {- margin: 0;+ margin: 0;}.upload-btn input {- width: 0.1px;- height: 0.1px;- opacity: 0;- overflow: hidden;- position: absolute;- z-index: -1;+ width: 0.1px;+ height: 0.1px;+ opacity: 0;+ overflow: hidden;+ position: absolute;+ z-index: -1;}.upload-btn label {- color: rgba(255, 255, 255, 0.5);- border: 1px solid rgba(255, 255, 255, 0.1);- border-radius: var(--radius-lg);- transition: all 0.25s ease;- font-size: var(--text-sm);- font-weight: 500;- text-overflow: ellipsis;- white-space: nowrap;- cursor: pointer;- display: inline-block;- overflow: hidden;- padding: var(--space-sm) var(--space-lg);- letter-spacing: 0.02em;+ color: rgba(255, 255, 255, 0.5);+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: var(--radius-lg);+ transition: all 0.25s ease;+ font-size: var(--text-sm);+ font-weight: 500;+ text-overflow: ellipsis;+ white-space: nowrap;+ cursor: pointer;+ display: inline-block;+ overflow: hidden;+ padding: var(--space-sm) var(--space-lg);+ letter-spacing: 0.02em;}.upload-btn label:hover {- background: rgba(255, 255, 255, 0.08);- color: #fff;- border-color: rgba(255, 255, 255, 0.25);+ background: rgba(255, 255, 255, 0.08);+ color: #fff;+ border-color: rgba(255, 255, 255, 0.25);}.upload-btn label:active {- background: rgba(255, 255, 255, 0.12);- color: #fff;- border-color: rgba(255, 255, 255, 0.35);- transform: scale(0.97);+ background: rgba(255, 255, 255, 0.12);+ color: #fff;+ border-color: rgba(255, 255, 255, 0.35);+ transform: scale(0.97);}.drop-hint {- color: rgba(255, 255, 255, 0.25);- font-size: var(--text-sm);- font-weight: 300;- letter-spacing: 0.02em;+ color: rgba(255, 255, 255, 0.25);+ font-size: var(--text-sm);+ font-weight: 300;+ letter-spacing: 0.02em;}@media screen and (max-width: 700px) {- .drop-hint {- display: none;- }+ .drop-hint {+ display: none;+ }}.upload-btn svg {- width: 1em;- height: 1em;- vertical-align: middle;- fill: currentColor;- margin-top: -0.25em;- margin-right: 0.25em;+ width: 1em;+ height: 1em;+ vertical-align: middle;+ fill: currentColor;+ margin-top: -0.25em;+ margin-right: 0.25em;}-/******************************************************************************* Validation report*/.report {- padding: var(--space-lg);- max-width: 860px;+ padding: var(--space-lg);+ max-width: 860px;}.report h1 {- margin-top: 0;+ margin-top: 0;}.report p,.report ul {- line-height: var(--leading-normal);+ line-height: var(--leading-normal);}.report-table {- text-align: left;- border-collapse: collapse;- width: 100%;+ text-align: left;+ border-collapse: collapse;+ width: 100%;}.report-table thead tr {- background: #1a1a1a;- color: rgba(255, 255, 255, 0.9);+ background: #1a1a1a;+ color: rgba(255, 255, 255, 0.9);}.report-table th,.report-table td {- padding: var(--space-xs) var(--space-md);- color: rgba(255, 255, 255, 0.7);+ padding: var(--space-xs) var(--space-md);+ color: rgba(255, 255, 255, 0.7);}.report-table tr:nth-child(2n) {- background: rgba(255, 255, 255, 0.04);+ background: rgba(255, 255, 255, 0.04);}.report-table tr:nth-child(odd) {- background: rgba(255, 255, 255, 0.02);+ background: rgba(255, 255, 255, 0.02);}/******************************************************************************@@ -663,37 +671,40 @@ footer .separator {*/.spinner {- width: 40px;- height: 40px;- position: absolute;- left: 50%;- top: 50%;- margin: -20px;+ width: 40px;+ height: 40px;+ position: absolute;+ left: 50%;+ top: 50%;+ margin: -20px;- background-color: rgba(255, 255, 255, 0.15);+ background-color: rgba(255, 255, 255, 0.15);- border-radius: 100%;- -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;- animation: sk-scaleout 1.0s infinite ease-in-out;+ border-radius: 100%;+ -webkit-animation: sk-scaleout 1s infinite ease-in-out;+ animation: sk-scaleout 1s infinite ease-in-out;}@-webkit-keyframes sk-scaleout {- 0% { -webkit-transform: scale(0) }- 100% {- -webkit-transform: scale(1.0);- opacity: 0;- }+ 0% {+ -webkit-transform: scale(0);+ }+ 100% {+ -webkit-transform: scale(1);+ opacity: 0;+ }}@keyframes sk-scaleout {- 0% {- -webkit-transform: scale(0);- transform: scale(0);- } 100% {- -webkit-transform: scale(1.0);- transform: scale(1.0);- opacity: 0;- }+ 0% {+ -webkit-transform: scale(0);+ transform: scale(0);+ }+ 100% {+ -webkit-transform: scale(1);+ transform: scale(1);+ opacity: 0;+ }}/******************************************************************************@@ -701,18 +712,22 @@ footer .separator {*/.screenshot-flash {- position: absolute;- inset: 0;- background: #fff;- opacity: 0;- pointer-events: none;- z-index: 100;- animation: screenshot-flash 0.3s ease-out forwards;+ position: absolute;+ inset: 0;+ background: #fff;+ opacity: 0;+ pointer-events: none;+ z-index: 100;+ animation: screenshot-flash 0.3s ease-out forwards;}@keyframes screenshot-flash {- 0% { opacity: 0.5; }- 100% { opacity: 0; }+ 0% {+ opacity: 0.5;+ }+ 100% {+ opacity: 0;+ }}/******************************************************************************@@ -724,103 +739,111 @@ footer .separator {*/.phi-grid {- display: none;- position: fixed;- inset: 0;- z-index: 9999;- pointer-events: none;- mix-blend-mode: difference;+ display: none;+ position: fixed;+ inset: 0;+ z-index: 9999;+ pointer-events: none;+ mix-blend-mode: difference;}.phi-grid.visible {- display: block;+ display: block;}/* Vertical golden split */.phi-grid::before,.phi-grid::after {- content: '';- position: absolute;- top: 0;- bottom: 0;- width: 1px;+ content: '';+ position: absolute;+ top: 0;+ bottom: 0;+ width: 1px;}.phi-grid::before {- left: 38.2%;- background: rgba(255, 215, 0, 0.5);+ left: 38.2%;+ background: rgba(255, 215, 0, 0.5);}.phi-grid::after {- left: 61.8%;- background: rgba(255, 215, 0, 0.5);+ left: 61.8%;+ background: rgba(255, 215, 0, 0.5);}/* Horizontal golden split + thirds via inner spans */.phi-grid-h::before,.phi-grid-h::after {- content: '';- position: absolute;- left: 0;- right: 0;- height: 1px;+ content: '';+ position: absolute;+ left: 0;+ right: 0;+ height: 1px;}.phi-grid-h::before {- top: 38.2%;- background: rgba(255, 215, 0, 0.5);+ top: 38.2%;+ background: rgba(255, 215, 0, 0.5);}.phi-grid-h::after {- top: 61.8%;- background: rgba(255, 215, 0, 0.5);+ top: 61.8%;+ background: rgba(255, 215, 0, 0.5);}/* Rule-of-thirds lines (dimmer) */.phi-grid-thirds::before,.phi-grid-thirds::after {- content: '';- position: absolute;- top: 0;- bottom: 0;- width: 1px;- background: rgba(0, 191, 255, 0.25);+ content: '';+ position: absolute;+ top: 0;+ bottom: 0;+ width: 1px;+ background: rgba(0, 191, 255, 0.25);}-.phi-grid-thirds::before { left: 33.333%; }-.phi-grid-thirds::after { left: 66.666%; }+.phi-grid-thirds::before {+ left: 33.333%;+}+.phi-grid-thirds::after {+ left: 66.666%;+}.phi-grid-thirds-h::before,.phi-grid-thirds-h::after {- content: '';- position: absolute;- left: 0;- right: 0;- height: 1px;- background: rgba(0, 191, 255, 0.25);+ content: '';+ position: absolute;+ left: 0;+ right: 0;+ height: 1px;+ background: rgba(0, 191, 255, 0.25);}-.phi-grid-thirds-h::before { top: 33.333%; }-.phi-grid-thirds-h::after { top: 66.666%; }+.phi-grid-thirds-h::before {+ top: 33.333%;+}+.phi-grid-thirds-h::after {+ top: 66.666%;+}.phi-grid-label {- position: fixed;- top: var(--space-xs);- left: 50%;- transform: translateX(-50%);- font-family: 'SF Mono', 'Fira Code', monospace;- font-size: var(--text-xs);- color: rgba(255, 215, 0, 0.7);- background: rgba(0, 0, 0, 0.7);- padding: var(--space-3xs) var(--space-xs);- border-radius: var(--radius-sm);- z-index: 10000;- pointer-events: none;- display: none;+ position: fixed;+ top: var(--space-xs);+ left: 50%;+ transform: translateX(-50%);+ font-family: 'SF Mono', 'Fira Code', monospace;+ font-size: var(--text-xs);+ color: rgba(255, 215, 0, 0.7);+ background: rgba(0, 0, 0, 0.7);+ padding: var(--space-3xs) var(--space-xs);+ border-radius: var(--radius-sm);+ z-index: 10000;+ pointer-events: none;+ display: none;}.phi-grid.visible ~ .phi-grid-label {- display: block;+ display: block;}/******************************************************************************@@ -828,210 +851,210 @@ footer .separator {*/.nich-toggle {- position: fixed;- bottom: var(--space-lg);- left: var(--space-lg);- width: 48px;- height: 48px;- border-radius: 50%;- border: 1px solid rgba(255, 255, 255, 0.1);- background: rgba(10, 10, 10, 0.9);- backdrop-filter: blur(12px);- -webkit-backdrop-filter: blur(12px);- color: rgba(255, 255, 255, 0.6);- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- transition: all 0.25s ease;- z-index: 50;+ position: fixed;+ bottom: var(--space-lg);+ left: var(--space-lg);+ width: 48px;+ height: 48px;+ border-radius: 50%;+ border: 1px solid rgba(255, 255, 255, 0.1);+ background: rgba(10, 10, 10, 0.9);+ backdrop-filter: blur(12px);+ -webkit-backdrop-filter: blur(12px);+ color: rgba(255, 255, 255, 0.6);+ cursor: pointer;+ display: flex;+ align-items: center;+ justify-content: center;+ transition: all 0.25s ease;+ z-index: 50;}.nich-toggle:hover {- background: rgba(255, 255, 255, 0.08);- color: #fff;- border-color: rgba(255, 255, 255, 0.25);- transform: scale(1.05);+ background: rgba(255, 255, 255, 0.08);+ color: #fff;+ border-color: rgba(255, 255, 255, 0.25);+ transform: scale(1.05);}.nich-toggle.active {- color: #fff;- border-color: rgba(255, 255, 255, 0.3);+ color: #fff;+ border-color: rgba(255, 255, 255, 0.3);}.nich-panel {- position: fixed;- bottom: 5em;- left: var(--space-lg);- width: 320px;- max-height: 480px;- display: flex;- flex-direction: column;- background: rgba(10, 10, 10, 0.95);- backdrop-filter: blur(20px);- -webkit-backdrop-filter: blur(20px);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-lg);- overflow: hidden;- z-index: 50;- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);+ position: fixed;+ bottom: 5em;+ left: var(--space-lg);+ width: 320px;+ max-height: 480px;+ display: flex;+ flex-direction: column;+ background: rgba(10, 10, 10, 0.95);+ backdrop-filter: blur(20px);+ -webkit-backdrop-filter: blur(20px);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ overflow: hidden;+ z-index: 50;+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);}.nich-header {- display: flex;- align-items: center;- justify-content: space-between;- padding: var(--space-sm) var(--space-md);- border-bottom: 1px solid rgba(255, 255, 255, 0.06);+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: var(--space-sm) var(--space-md);+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);}.nich-title {- font-size: var(--text-sm);- font-weight: 500;- color: rgba(255, 255, 255, 0.8);- letter-spacing: 0.03em;+ font-size: var(--text-sm);+ font-weight: 500;+ color: rgba(255, 255, 255, 0.8);+ letter-spacing: 0.03em;}.nich-close {- background: none;- border: none;- color: rgba(255, 255, 255, 0.4);- font-size: var(--text-lg);- cursor: pointer;- padding: 0;- line-height: 1;- transition: color 0.2s ease;+ background: none;+ border: none;+ color: rgba(255, 255, 255, 0.4);+ font-size: var(--text-lg);+ cursor: pointer;+ padding: 0;+ line-height: 1;+ transition: color 0.2s ease;}.nich-close:hover {- color: #fff;+ color: #fff;}.nich-messages {- flex: 1;- overflow-y: auto;- padding: var(--space-sm);- display: flex;- flex-direction: column;- gap: var(--space-xs);- min-height: 200px;- max-height: 300px;+ flex: 1;+ overflow-y: auto;+ padding: var(--space-sm);+ display: flex;+ flex-direction: column;+ gap: var(--space-xs);+ min-height: 200px;+ max-height: 300px;}.nich-message {- font-size: var(--text-sm);- line-height: var(--leading-normal);- padding: var(--space-xs) var(--space-sm);- border-radius: var(--radius-lg);- max-width: 85%;- word-wrap: break-word;+ font-size: var(--text-sm);+ line-height: var(--leading-normal);+ padding: var(--space-xs) var(--space-sm);+ border-radius: var(--radius-lg);+ max-width: 85%;+ word-wrap: break-word;}.nich-message.agent {- background: rgba(255, 255, 255, 0.06);- color: rgba(255, 255, 255, 0.7);- align-self: flex-start;- border-bottom-left-radius: var(--radius-sm);+ background: rgba(255, 255, 255, 0.06);+ color: rgba(255, 255, 255, 0.7);+ align-self: flex-start;+ border-bottom-left-radius: var(--radius-sm);}.nich-message.user {- background: rgba(255, 255, 255, 0.12);- color: #fff;- align-self: flex-end;- border-bottom-right-radius: var(--radius-sm);+ background: rgba(255, 255, 255, 0.12);+ color: #fff;+ align-self: flex-end;+ border-bottom-right-radius: var(--radius-sm);}.nich-controls {- display: flex;- gap: var(--space-xs);- padding: var(--space-sm);- border-top: 1px solid rgba(255, 255, 255, 0.06);+ display: flex;+ gap: var(--space-xs);+ padding: var(--space-sm);+ border-top: 1px solid rgba(255, 255, 255, 0.06);}.nich-input {- flex: 1;- background: rgba(255, 255, 255, 0.05);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-lg);- padding: var(--space-xs) var(--space-sm);- color: #fff;- font-family: 'Inter', sans-serif;- font-size: var(--text-sm);- outline: none;- transition: border-color 0.2s ease;+ flex: 1;+ background: rgba(255, 255, 255, 0.05);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ padding: var(--space-xs) var(--space-sm);+ color: #fff;+ font-family: 'Inter', sans-serif;+ font-size: var(--text-sm);+ outline: none;+ transition: border-color 0.2s ease;}.nich-input::placeholder {- color: rgba(255, 255, 255, 0.25);+ color: rgba(255, 255, 255, 0.25);}.nich-input:focus {- border-color: rgba(255, 255, 255, 0.2);+ border-color: rgba(255, 255, 255, 0.2);}.nich-send {- background: rgba(255, 255, 255, 0.06);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-lg);- color: rgba(255, 255, 255, 0.5);- cursor: pointer;- padding: var(--space-xs) var(--space-sm);- display: flex;- align-items: center;- transition: all 0.2s ease;+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ color: rgba(255, 255, 255, 0.5);+ cursor: pointer;+ padding: var(--space-xs) var(--space-sm);+ display: flex;+ align-items: center;+ transition: all 0.2s ease;}.nich-send:hover {- background: rgba(255, 255, 255, 0.1);- color: #fff;+ background: rgba(255, 255, 255, 0.1);+ color: #fff;}.nich-mic-row {- display: flex;- justify-content: center;- padding: 0 var(--space-sm) var(--space-sm);+ display: flex;+ justify-content: center;+ padding: 0 var(--space-sm) var(--space-sm);}.nich-mic {- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: 50%;- width: 32px;- height: 32px;- display: flex;- align-items: center;- justify-content: center;- color: rgba(255, 255, 255, 0.35);- cursor: pointer;- transition: all 0.2s ease;+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: 50%;+ width: 32px;+ height: 32px;+ display: flex;+ align-items: center;+ justify-content: center;+ color: rgba(255, 255, 255, 0.35);+ cursor: pointer;+ transition: all 0.2s ease;}.nich-mic:hover {- background: rgba(255, 255, 255, 0.08);- color: rgba(255, 255, 255, 0.7);+ background: rgba(255, 255, 255, 0.08);+ color: rgba(255, 255, 255, 0.7);}.nich-mic.active {- background: rgba(255, 80, 80, 0.15);- border-color: rgba(255, 80, 80, 0.3);- color: #ff5050;+ background: rgba(255, 80, 80, 0.15);+ border-color: rgba(255, 80, 80, 0.3);+ color: #ff5050;}@media screen and (max-width: 700px) {- .nich-toggle {- bottom: var(--space-md);- left: var(--space-md);- width: 42px;- height: 42px;- }-- .nich-panel {- bottom: 4em;- left: var(--space-sm);- right: var(--space-sm);- width: auto;- max-height: 60vh;- }+ .nich-toggle {+ bottom: var(--space-md);+ left: var(--space-md);+ width: 42px;+ height: 42px;+ }++ .nich-panel {+ bottom: 4em;+ left: var(--space-sm);+ right: var(--space-sm);+ width: auto;+ max-height: 60vh;+ }}/******************************************************************************@@ -1039,725 +1062,745 @@ footer .separator {*/.erc8004-register {- position: absolute;- inset: 0;- z-index: 20;- display: flex;- align-items: center;- justify-content: center;- background: rgba(0, 0, 0, 0.85);- backdrop-filter: blur(24px);- -webkit-backdrop-filter: blur(24px);- overflow-y: auto;- padding: var(--space-lg);+ position: absolute;+ inset: 0;+ z-index: 20;+ display: flex;+ align-items: center;+ justify-content: center;+ background: rgba(0, 0, 0, 0.85);+ backdrop-filter: blur(24px);+ -webkit-backdrop-filter: blur(24px);+ overflow-y: auto;+ padding: var(--space-lg);}.erc8004-card {- width: 100%;- max-width: 480px;- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-lg);- padding: var(--space-xl) var(--space-lg);+ width: 100%;+ max-width: 480px;+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ padding: var(--space-xl) var(--space-lg);}.erc8004-title {- margin: 0 0 var(--space-3xs);- font-size: var(--text-xl);- font-weight: 500;- color: #fff;- letter-spacing: 0.02em;+ margin: 0 0 var(--space-3xs);+ font-size: var(--text-xl);+ font-weight: 500;+ color: #fff;+ letter-spacing: 0.02em;}.erc8004-subtitle {- margin: 0 0 var(--space-lg);- font-size: var(--text-sm);- color: rgba(255, 255, 255, 0.45);- font-weight: 300;+ margin: 0 0 var(--space-lg);+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.45);+ font-weight: 300;}.erc8004-section {- margin-bottom: var(--space-md);+ margin-bottom: var(--space-md);}.erc8004-label {- display: block;- margin-bottom: var(--space-sm);- font-size: var(--text-sm);- color: rgba(255, 255, 255, 0.5);- font-weight: 400;+ display: block;+ margin-bottom: var(--space-sm);+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.5);+ font-weight: 400;}.erc8004-input {- display: block;- width: 100%;- margin-top: var(--space-3xs);- padding: var(--space-xs) var(--space-sm);- background: rgba(255, 255, 255, 0.06);- border: 1px solid rgba(255, 255, 255, 0.1);- border-radius: var(--radius-sm);- color: #fff;- font-family: inherit;- font-size: var(--text-base);- outline: none;- transition: border-color 0.2s;+ display: block;+ width: 100%;+ margin-top: var(--space-3xs);+ padding: var(--space-xs) var(--space-sm);+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: var(--radius-sm);+ color: #fff;+ font-family: inherit;+ font-size: var(--text-base);+ outline: none;+ transition: border-color 0.2s;}.erc8004-input:focus {- border-color: rgba(255, 255, 255, 0.3);+ border-color: rgba(255, 255, 255, 0.3);}.erc8004-textarea {- resize: vertical;- min-height: 3.6em;+ resize: vertical;+ min-height: 3.6em;}.erc8004-file-drop {- position: relative;- display: flex;- align-items: center;- justify-content: center;- height: 80px;- margin-top: var(--space-3xs);- border: 2px dashed rgba(255, 255, 255, 0.12);- border-radius: var(--radius-md);- cursor: pointer;- transition: border-color 0.2s, background 0.2s;+ position: relative;+ display: flex;+ align-items: center;+ justify-content: center;+ height: 80px;+ margin-top: var(--space-3xs);+ border: 2px dashed rgba(255, 255, 255, 0.12);+ border-radius: var(--radius-md);+ cursor: pointer;+ transition:+ border-color 0.2s,+ background 0.2s;}.erc8004-file-drop:hover,.erc8004-file-drop--active {- border-color: rgba(255, 255, 255, 0.3);- background: rgba(255, 255, 255, 0.03);+ border-color: rgba(255, 255, 255, 0.3);+ background: rgba(255, 255, 255, 0.03);}.erc8004-file-input {- position: absolute;- inset: 0;- opacity: 0;- cursor: pointer;+ position: absolute;+ inset: 0;+ opacity: 0;+ cursor: pointer;}.erc8004-file-text {- font-size: var(--text-sm);- color: rgba(255, 255, 255, 0.4);- pointer-events: none;+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.4);+ pointer-events: none;}.erc8004-btn {- display: inline-flex;- align-items: center;- gap: var(--space-xs);- padding: var(--space-xs) var(--space-md);- border: 1px solid rgba(255, 255, 255, 0.15);- border-radius: var(--radius-md);- background: rgba(255, 255, 255, 0.06);- color: #fff;- font-family: inherit;- font-size: var(--text-sm);- font-weight: 500;- cursor: pointer;- transition: background 0.2s, border-color 0.2s;+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ padding: var(--space-xs) var(--space-md);+ border: 1px solid rgba(255, 255, 255, 0.15);+ border-radius: var(--radius-md);+ background: rgba(255, 255, 255, 0.06);+ color: #fff;+ font-family: inherit;+ font-size: var(--text-sm);+ font-weight: 500;+ cursor: pointer;+ transition:+ background 0.2s,+ border-color 0.2s;}.erc8004-btn:hover:not(:disabled) {- background: rgba(255, 255, 255, 0.12);- border-color: rgba(255, 255, 255, 0.25);+ background: rgba(255, 255, 255, 0.12);+ border-color: rgba(255, 255, 255, 0.25);}.erc8004-btn:disabled {- opacity: 0.35;- cursor: not-allowed;+ opacity: 0.35;+ cursor: not-allowed;}.erc8004-btn--register {- width: 100%;- justify-content: center;- padding: var(--space-sm) var(--space-md);- background: rgba(99, 102, 241, 0.25);- border-color: rgba(99, 102, 241, 0.4);+ width: 100%;+ justify-content: center;+ padding: var(--space-sm) var(--space-md);+ background: rgba(99, 102, 241, 0.25);+ border-color: rgba(99, 102, 241, 0.4);}.erc8004-btn--register:hover:not(:disabled) {- background: rgba(99, 102, 241, 0.4);+ background: rgba(99, 102, 241, 0.4);}.erc8004-btn--view {- margin-top: var(--space-sm);+ margin-top: var(--space-sm);}.erc8004-wallet-addr {- display: inline-block;- margin-left: var(--space-xs);- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.5);- font-family: monospace;+ display: inline-block;+ margin-left: var(--space-xs);+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.5);+ font-family: monospace;}.erc8004-log {- max-height: 120px;- overflow-y: auto;- margin-top: var(--space-sm);- font-size: var(--text-xs);- font-family: monospace;- color: rgba(255, 255, 255, 0.5);+ max-height: 120px;+ overflow-y: auto;+ margin-top: var(--space-sm);+ font-size: var(--text-xs);+ font-family: monospace;+ color: rgba(255, 255, 255, 0.5);}.erc8004-log-line {- padding: 2px 0;+ padding: 2px 0;}.erc8004-log-error {- color: #f87171;+ color: #f87171;}.erc8004-result {- margin-top: var(--space-md);- padding: var(--space-md);- background: rgba(34, 197, 94, 0.08);- border: 1px solid rgba(34, 197, 94, 0.2);- border-radius: var(--radius-md);+ margin-top: var(--space-md);+ padding: var(--space-md);+ background: rgba(34, 197, 94, 0.08);+ border: 1px solid rgba(34, 197, 94, 0.2);+ border-radius: var(--radius-md);}.erc8004-checkmark {- display: block;- font-size: 2rem;- color: #22c55e;- margin-bottom: var(--space-xs);+ display: block;+ font-size: 2rem;+ color: #22c55e;+ margin-bottom: var(--space-xs);}.erc8004-result h3 {- margin: 0 0 var(--space-xs);- font-size: var(--text-lg);- font-weight: 500;- color: #fff;+ margin: 0 0 var(--space-xs);+ font-size: var(--text-lg);+ font-weight: 500;+ color: #fff;}.erc8004-result-dl {- display: grid;- grid-template-columns: auto 1fr;- gap: var(--space-3xs) var(--space-sm);- margin: 0;- font-size: var(--text-sm);+ display: grid;+ grid-template-columns: auto 1fr;+ gap: var(--space-3xs) var(--space-sm);+ margin: 0;+ font-size: var(--text-sm);}.erc8004-result-dl dt {- color: rgba(255, 255, 255, 0.45);- font-weight: 400;+ color: rgba(255, 255, 255, 0.45);+ font-weight: 400;}.erc8004-result-dl dd {- margin: 0;- color: #fff;- font-family: monospace;- word-break: break-all;+ margin: 0;+ color: #fff;+ font-family: monospace;+ word-break: break-all;}@media screen and (max-width: 700px) {- .erc8004-card {- padding: var(--space-lg) var(--space-md);- }+ .erc8004-card {+ padding: var(--space-lg) var(--space-md);+ }}/* ── Tabbed Agent Studio (extends the basic register styles above) ──── */.erc8004-card--wide {- max-width: 880px;+ max-width: 880px;}.erc8004-header {- display: flex;- align-items: center;- justify-content: space-between;- gap: var(--space-md);- margin-bottom: var(--space-md);- flex-wrap: wrap;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-md);+ margin-bottom: var(--space-md);+ flex-wrap: wrap;}.erc8004-brand {- display: inline-flex;- align-items: center;- gap: var(--space-xs);- font-size: var(--text-sm);- color: rgba(255, 255, 255, 0.85);+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.85);}.erc8004-brand-badge {- display: inline-flex;- align-items: center;- justify-content: center;- padding: 2px 8px;- border-radius: var(--radius-sm);- background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(236, 72, 153, 0.55));- color: #fff;- font-size: var(--text-xs);- font-weight: 600;- letter-spacing: 0.04em;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ padding: 2px 8px;+ border-radius: var(--radius-sm);+ background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(236, 72, 153, 0.55));+ color: #fff;+ font-size: var(--text-xs);+ font-weight: 600;+ letter-spacing: 0.04em;}.erc8004-brand-title b {- font-weight: 600;- color: #fff;+ font-weight: 600;+ color: #fff;}.erc8004-controls {- display: inline-flex;- align-items: center;- gap: var(--space-xs);- flex-wrap: wrap;+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ flex-wrap: wrap;}.erc8004-chain-select {- padding: 6px 10px;- background: rgba(255, 255, 255, 0.06);- border: 1px solid rgba(255, 255, 255, 0.12);- border-radius: var(--radius-sm);- color: #fff;- font-family: inherit;- font-size: var(--text-xs);- cursor: pointer;+ padding: 6px 10px;+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.12);+ border-radius: var(--radius-sm);+ color: #fff;+ font-family: inherit;+ font-size: var(--text-xs);+ cursor: pointer;}.erc8004-btn--wallet.erc8004-btn--connected {- background: rgba(34, 197, 94, 0.18);- border-color: rgba(34, 197, 94, 0.4);+ background: rgba(34, 197, 94, 0.18);+ border-color: rgba(34, 197, 94, 0.4);}.erc8004-btn--primary {- background: rgba(99, 102, 241, 0.3);- border-color: rgba(99, 102, 241, 0.5);+ background: rgba(99, 102, 241, 0.3);+ border-color: rgba(99, 102, 241, 0.5);}.erc8004-btn--primary:hover:not(:disabled) {- background: rgba(99, 102, 241, 0.45);+ background: rgba(99, 102, 241, 0.45);}.erc8004-btn--ghost {- background: transparent;+ background: transparent;}.erc8004-btn--x {- padding: 4px 8px;+ padding: 4px 8px;}.erc8004-btn--close {- padding: 4px 10px;- font-size: var(--text-base);- line-height: 1;+ padding: 4px 10px;+ font-size: var(--text-base);+ line-height: 1;}.erc8004-stats {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: var(--space-sm);- margin-bottom: var(--space-md);+ display: grid;+ grid-template-columns: repeat(3, 1fr);+ gap: var(--space-sm);+ margin-bottom: var(--space-md);}.erc8004-stat {- padding: var(--space-sm);- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: var(--radius-md);- text-align: center;+ padding: var(--space-sm);+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: var(--radius-md);+ text-align: center;}.erc8004-stat-val {- font-size: var(--text-lg);- font-weight: 600;- color: #fff;- font-variant-numeric: tabular-nums;+ font-size: var(--text-lg);+ font-weight: 600;+ color: #fff;+ font-variant-numeric: tabular-nums;}.erc8004-stat-lbl {- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.45);- margin-top: 2px;+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.45);+ margin-top: 2px;}.erc8004-tabs {- display: flex;- gap: 2px;- padding: 4px;- margin-bottom: var(--space-md);- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: var(--radius-md);- overflow-x: auto;+ display: flex;+ gap: 2px;+ padding: 4px;+ margin-bottom: var(--space-md);+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: var(--radius-md);+ overflow-x: auto;}.erc8004-tab {- flex: 1;- min-width: max-content;- padding: 8px 14px;- border: 0;- background: transparent;- color: rgba(255, 255, 255, 0.6);- font-family: inherit;- font-size: var(--text-sm);- font-weight: 500;- cursor: pointer;- border-radius: var(--radius-sm);- transition: background 0.2s, color 0.2s;+ flex: 1;+ min-width: max-content;+ padding: 8px 14px;+ border: 0;+ background: transparent;+ color: rgba(255, 255, 255, 0.6);+ font-family: inherit;+ font-size: var(--text-sm);+ font-weight: 500;+ cursor: pointer;+ border-radius: var(--radius-sm);+ transition:+ background 0.2s,+ color 0.2s;}.erc8004-tab:hover {- color: #fff;+ color: #fff;}.erc8004-tab--active {- background: rgba(255, 255, 255, 0.1);- color: #fff;+ background: rgba(255, 255, 255, 0.1);+ color: #fff;}.erc8004-tab-body {- min-height: 280px;+ min-height: 280px;}.erc8004-wizard {- display: flex;- flex-direction: column;- gap: var(--space-md);+ display: flex;+ flex-direction: column;+ gap: var(--space-md);}.erc8004-steps {- display: flex;- gap: var(--space-xs);- margin: 0;- padding: 0;- list-style: none;+ display: flex;+ gap: var(--space-xs);+ margin: 0;+ padding: 0;+ list-style: none;}.erc8004-step {- flex: 1;- display: flex;- align-items: center;- gap: var(--space-xs);- padding: var(--space-xs) var(--space-sm);- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: var(--radius-sm);- color: rgba(255, 255, 255, 0.4);- font-size: var(--text-xs);+ flex: 1;+ display: flex;+ align-items: center;+ gap: var(--space-xs);+ padding: var(--space-xs) var(--space-sm);+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: var(--radius-sm);+ color: rgba(255, 255, 255, 0.4);+ font-size: var(--text-xs);}.erc8004-step--active {- background: rgba(99, 102, 241, 0.18);- border-color: rgba(99, 102, 241, 0.45);- color: #fff;+ background: rgba(99, 102, 241, 0.18);+ border-color: rgba(99, 102, 241, 0.45);+ color: #fff;}.erc8004-step--done {- color: rgba(34, 197, 94, 0.9);- border-color: rgba(34, 197, 94, 0.3);+ color: rgba(34, 197, 94, 0.9);+ border-color: rgba(34, 197, 94, 0.3);}.erc8004-step-num {- display: inline-flex;- align-items: center;- justify-content: center;- width: 20px;- height: 20px;- border-radius: 50%;- background: rgba(255, 255, 255, 0.1);- font-weight: 600;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 20px;+ height: 20px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.1);+ font-weight: 600;}.erc8004-step--active .erc8004-step-num {- background: rgba(99, 102, 241, 0.7);+ background: rgba(99, 102, 241, 0.7);}.erc8004-wizard-body {- padding: var(--space-md);- background: rgba(255, 255, 255, 0.02);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: var(--radius-md);+ padding: var(--space-md);+ background: rgba(255, 255, 255, 0.02);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: var(--radius-md);}.erc8004-wizard-nav {- display: flex;- justify-content: space-between;- gap: var(--space-xs);- margin-top: var(--space-md);+ display: flex;+ justify-content: space-between;+ gap: var(--space-xs);+ margin-top: var(--space-md);}.erc8004-wizard-nav > :only-child {- margin-left: auto;+ margin-left: auto;}.erc8004-h3 {- margin: 0 0 var(--space-3xs);- font-size: var(--text-lg);- font-weight: 500;- color: #fff;+ margin: 0 0 var(--space-3xs);+ font-size: var(--text-lg);+ font-weight: 500;+ color: #fff;}.erc8004-h4 {- margin: 0 0 var(--space-xs);- font-size: var(--text-base);- font-weight: 500;- color: #fff;+ margin: 0 0 var(--space-xs);+ font-size: var(--text-base);+ font-weight: 500;+ color: #fff;}.erc8004-p {- margin: 0 0 var(--space-sm);- font-size: var(--text-sm);- color: rgba(255, 255, 255, 0.6);- line-height: 1.5;+ margin: 0 0 var(--space-sm);+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.6);+ line-height: 1.5;}.erc8004-req {- color: #f87171;+ color: #f87171;}.erc8004-hint {- margin: -2px 0 var(--space-sm);- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.35);+ margin: -2px 0 var(--space-sm);+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.35);}.erc8004-muted {- color: rgba(255, 255, 255, 0.4);- font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.4);+ font-size: var(--text-sm);}.erc8004-small {- font-size: var(--text-xs);+ font-size: var(--text-xs);}.erc8004-row {- display: flex;- gap: var(--space-xs);- align-items: center;- flex-wrap: wrap;- margin-bottom: var(--space-sm);+ display: flex;+ gap: var(--space-xs);+ align-items: center;+ flex-wrap: wrap;+ margin-bottom: var(--space-sm);}.erc8004-link {- color: #a5b4fc;- text-decoration: none;- cursor: pointer;- background: none;- border: 0;- padding: 0;- font: inherit;+ color: #a5b4fc;+ text-decoration: none;+ cursor: pointer;+ background: none;+ border: 0;+ padding: 0;+ font: inherit;}.erc8004-link:hover {- text-decoration: underline;- color: #c7d2fe;+ text-decoration: underline;+ color: #c7d2fe;}.erc8004-alert {- padding: var(--space-xs) var(--space-sm);- margin-bottom: var(--space-sm);- background: rgba(245, 158, 11, 0.1);- border: 1px solid rgba(245, 158, 11, 0.3);- border-radius: var(--radius-sm);- color: rgba(253, 224, 71, 0.9);- font-size: var(--text-sm);+ padding: var(--space-xs) var(--space-sm);+ margin-bottom: var(--space-sm);+ background: rgba(245, 158, 11, 0.1);+ border: 1px solid rgba(245, 158, 11, 0.3);+ border-radius: var(--radius-sm);+ color: rgba(253, 224, 71, 0.9);+ font-size: var(--text-sm);}.erc8004-tag {- display: inline-block;- padding: 2px 8px;- background: rgba(255, 255, 255, 0.08);- border-radius: 999px;- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.7);- font-variant-numeric: tabular-nums;+ display: inline-block;+ padding: 2px 8px;+ background: rgba(255, 255, 255, 0.08);+ border-radius: 999px;+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.7);+ font-variant-numeric: tabular-nums;}.erc8004-clip {- display: -webkit-box;- -webkit-line-clamp: 2;- -webkit-box-orient: vertical;- overflow: hidden;+ display: -webkit-box;+ -webkit-line-clamp: 2;+ -webkit-box-orient: vertical;+ overflow: hidden;}.erc8004-services {- display: flex;- flex-direction: column;- gap: var(--space-xs);- margin-bottom: var(--space-sm);+ display: flex;+ flex-direction: column;+ gap: var(--space-xs);+ margin-bottom: var(--space-sm);}.erc8004-svc-row {- display: grid;- grid-template-columns: 140px 160px 1fr auto;- gap: var(--space-xs);- align-items: center;+ display: grid;+ grid-template-columns: 140px 160px 1fr auto;+ gap: var(--space-xs);+ align-items: center;}.erc8004-input--tight {- width: auto;+ width: auto;}.erc8004-summary {- display: grid;- grid-template-columns: auto 1fr;- gap: var(--space-3xs) var(--space-md);- margin: 0 0 var(--space-sm);- padding: var(--space-sm);- background: rgba(255, 255, 255, 0.03);- border-radius: var(--radius-sm);- font-size: var(--text-sm);+ display: grid;+ grid-template-columns: auto 1fr;+ gap: var(--space-3xs) var(--space-md);+ margin: 0 0 var(--space-sm);+ padding: var(--space-sm);+ background: rgba(255, 255, 255, 0.03);+ border-radius: var(--radius-sm);+ font-size: var(--text-sm);}.erc8004-summary dt {- color: rgba(255, 255, 255, 0.45);+ color: rgba(255, 255, 255, 0.45);}.erc8004-summary dd {- margin: 0;- color: #fff;- word-break: break-word;+ margin: 0;+ color: #fff;+ word-break: break-word;}.erc8004-agent-card {- padding: var(--space-sm);- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: var(--radius-md);- margin-bottom: var(--space-xs);+ padding: var(--space-sm);+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: var(--radius-md);+ margin-bottom: var(--space-xs);}.erc8004-agent-card-inner {- display: grid;- grid-template-columns: 72px 1fr;- gap: var(--space-sm);- align-items: start;+ display: grid;+ grid-template-columns: 72px 1fr;+ gap: var(--space-sm);+ align-items: start;}.erc8004-agent-card-img {- width: 72px;- height: 72px;- border-radius: var(--radius-sm);- overflow: hidden;- background: rgba(255, 255, 255, 0.05);- display: flex;- align-items: center;- justify-content: center;+ width: 72px;+ height: 72px;+ border-radius: var(--radius-sm);+ overflow: hidden;+ background: rgba(255, 255, 255, 0.05);+ display: flex;+ align-items: center;+ justify-content: center;}.erc8004-agent-card-img img {- width: 100%;- height: 100%;- object-fit: cover;+ width: 100%;+ height: 100%;+ object-fit: cover;}.erc8004-agent-card-ph {- font-size: 2rem;- opacity: 0.5;+ font-size: 2rem;+ opacity: 0.5;}.erc8004-agent-card-head {- display: flex;- align-items: center;- gap: var(--space-xs);- margin-bottom: var(--space-3xs);- color: #fff;- font-weight: 500;+ display: flex;+ align-items: center;+ gap: var(--space-xs);+ margin-bottom: var(--space-3xs);+ color: #fff;+ font-weight: 500;}.erc8004-agent-card-actions {- display: inline-flex;- gap: var(--space-sm);- margin-top: var(--space-xs);- font-size: var(--text-xs);+ display: inline-flex;+ gap: var(--space-sm);+ margin-top: var(--space-xs);+ font-size: var(--text-xs);}.erc8004-template-grid {- display: grid;- grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));- gap: var(--space-sm);+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));+ gap: var(--space-sm);}.erc8004-template {- display: flex;- flex-direction: column;- gap: var(--space-3xs);- padding: var(--space-md);- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-md);- color: #fff;- font-family: inherit;- text-align: left;- cursor: pointer;- transition: background 0.2s, border-color 0.2s, transform 0.15s;+ display: flex;+ flex-direction: column;+ gap: var(--space-3xs);+ padding: var(--space-md);+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-md);+ color: #fff;+ font-family: inherit;+ text-align: left;+ cursor: pointer;+ transition:+ background 0.2s,+ border-color 0.2s,+ transform 0.15s;}.erc8004-template:hover {- background: rgba(255, 255, 255, 0.06);- border-color: rgba(99, 102, 241, 0.45);- transform: translateY(-1px);+ background: rgba(255, 255, 255, 0.06);+ border-color: rgba(99, 102, 241, 0.45);+ transform: translateY(-1px);}.erc8004-template-emoji {- font-size: 1.75rem;- line-height: 1;+ font-size: 1.75rem;+ line-height: 1;}.erc8004-template-name {- font-weight: 500;- font-size: var(--text-sm);+ font-weight: 500;+ font-size: var(--text-sm);}.erc8004-template-desc {- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.5);- line-height: 1.4;+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.5);+ line-height: 1.4;}.erc8004-history-row {- display: flex;- align-items: center;- justify-content: space-between;- gap: var(--space-sm);- padding: var(--space-xs) var(--space-sm);- background: rgba(255, 255, 255, 0.03);- border: 1px solid rgba(255, 255, 255, 0.06);- border-radius: var(--radius-sm);- margin-bottom: var(--space-3xs);- font-size: var(--text-sm);+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-sm);+ padding: var(--space-xs) var(--space-sm);+ background: rgba(255, 255, 255, 0.03);+ border: 1px solid rgba(255, 255, 255, 0.06);+ border-radius: var(--radius-sm);+ margin-bottom: var(--space-3xs);+ font-size: var(--text-sm);}.erc8004-history-main {- min-width: 0;- flex: 1;+ min-width: 0;+ flex: 1;}.erc8004-history-main code {- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.5);+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.5);}.erc8004-toast {- position: fixed;- bottom: var(--space-lg);- left: 50%;- transform: translateX(-50%);- padding: var(--space-sm) var(--space-md);- background: rgba(20, 20, 25, 0.95);- border: 1px solid rgba(255, 255, 255, 0.12);- border-radius: var(--radius-md);- color: #fff;- font-size: var(--text-sm);- z-index: 100;- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);+ position: fixed;+ bottom: var(--space-lg);+ left: 50%;+ transform: translateX(-50%);+ padding: var(--space-sm) var(--space-md);+ background: rgba(20, 20, 25, 0.95);+ border: 1px solid rgba(255, 255, 255, 0.12);+ border-radius: var(--radius-md);+ color: #fff;+ font-size: var(--text-sm);+ z-index: 100;+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);}.erc8004-toast--error {- background: rgba(127, 29, 29, 0.95);- border-color: rgba(248, 113, 113, 0.4);+ background: rgba(127, 29, 29, 0.95);+ border-color: rgba(248, 113, 113, 0.4);}@media screen and (max-width: 700px) {- .erc8004-stats { grid-template-columns: 1fr; }- .erc8004-svc-row { grid-template-columns: 1fr; }- .erc8004-agent-card-inner { grid-template-columns: 56px 1fr; }- .erc8004-agent-card-img { width: 56px; height: 56px; }- .erc8004-step-lbl { display: none; }+ .erc8004-stats {+ grid-template-columns: 1fr;+ }+ .erc8004-svc-row {+ grid-template-columns: 1fr;+ }+ .erc8004-agent-card-inner {+ grid-template-columns: 56px 1fr;+ }+ .erc8004-agent-card-img {+ width: 56px;+ height: 56px;+ }+ .erc8004-step-lbl {+ display: none;+ }}/******************************************************************************@@ -1765,83 +1808,92 @@ footer .separator {*/.create-avatar-btn {- display: inline-flex;- align-items: center;- gap: var(--space-xs);- padding: var(--space-sm) var(--space-lg);- background: rgba(123, 47, 247, 0.15);- border: 1px solid rgba(123, 47, 247, 0.3);- border-radius: var(--radius-lg);- color: rgba(255, 255, 255, 0.7);- font-family: inherit;- font-size: var(--text-sm);- font-weight: 500;- cursor: pointer;- transition: all 0.25s ease;- letter-spacing: 0.02em;+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ padding: var(--space-sm) var(--space-lg);+ background: rgba(123, 47, 247, 0.15);+ border: 1px solid rgba(123, 47, 247, 0.3);+ border-radius: var(--radius-lg);+ color: rgba(255, 255, 255, 0.7);+ font-family: inherit;+ font-size: var(--text-sm);+ font-weight: 500;+ cursor: pointer;+ transition: all 0.25s ease;+ letter-spacing: 0.02em;}.create-avatar-btn:hover {- background: rgba(123, 47, 247, 0.3);- color: #fff;- border-color: rgba(123, 47, 247, 0.5);+ background: rgba(123, 47, 247, 0.3);+ color: #fff;+ border-color: rgba(123, 47, 247, 0.5);}.create-avatar-btn:active {- background: rgba(123, 47, 247, 0.4);- transform: scale(0.97);+ background: rgba(123, 47, 247, 0.4);+ transform: scale(0.97);}.create-avatar-btn svg {- width: 1em;- height: 1em;- fill: currentColor;+ width: 1em;+ height: 1em;+ fill: currentColor;}@media screen and (max-width: 700px) {- .create-avatar-btn span {- display: none;- }+ .create-avatar-btn span {+ display: none;+ }- .create-avatar-btn {- padding: var(--space-xs) var(--space-sm);- }+ .create-avatar-btn {+ padding: var(--space-xs) var(--space-sm);+ }}/******************************************************************************* Make this a widget — appears once a model is loaded*/.make-widget-btn {- display: inline-flex;- align-items: center;- gap: var(--space-xs);- padding: var(--space-sm) var(--space-lg);- background: rgba(0, 229, 160, 0.1);- border: 1px solid rgba(0, 229, 160, 0.3);- border-radius: var(--radius-lg);- color: rgba(255, 255, 255, 0.85);- font-family: inherit;- font-size: var(--text-sm);- font-weight: 500;- text-decoration: none;- cursor: pointer;- transition: all 0.25s ease;- letter-spacing: 0.02em;+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ padding: var(--space-sm) var(--space-lg);+ background: rgba(0, 229, 160, 0.1);+ border: 1px solid rgba(0, 229, 160, 0.3);+ border-radius: var(--radius-lg);+ color: rgba(255, 255, 255, 0.85);+ font-family: inherit;+ font-size: var(--text-sm);+ font-weight: 500;+ text-decoration: none;+ cursor: pointer;+ transition: all 0.25s ease;+ letter-spacing: 0.02em;}.make-widget-btn:hover {- background: rgba(0, 229, 160, 0.22);- color: #fff;- border-color: rgba(0, 229, 160, 0.55);+ background: rgba(0, 229, 160, 0.22);+ color: #fff;+ border-color: rgba(0, 229, 160, 0.55);}.make-widget-btn:focus-visible {- outline: 2px solid rgba(0, 229, 160, 0.7);- outline-offset: 2px;+ outline: 2px solid rgba(0, 229, 160, 0.7);+ outline-offset: 2px;+}+.make-widget-btn[hidden] {+ display: none;+}+.make-widget-btn svg {+ width: 1em;+ height: 1em;}-.make-widget-btn[hidden] { display: none; }-.make-widget-btn svg { width: 1em; height: 1em; }@media screen and (max-width: 700px) {- .make-widget-btn span { display: none; }- .make-widget-btn { padding: var(--space-xs) var(--space-sm); }+ .make-widget-btn span {+ display: none;+ }+ .make-widget-btn {+ padding: var(--space-xs) var(--space-sm);+ }}/******************************************************************************@@ -1849,120 +1901,124 @@ footer .separator {*/.avatar-creator-overlay {- position: fixed;- inset: 0;- z-index: 100;- display: flex;- align-items: center;- justify-content: center;- background: rgba(0, 0, 0, 0.9);- backdrop-filter: blur(24px);- -webkit-backdrop-filter: blur(24px);- animation: avatar-creator-fadein 0.25s ease;+ position: fixed;+ inset: 0;+ z-index: 100;+ display: flex;+ align-items: center;+ justify-content: center;+ background: rgba(0, 0, 0, 0.9);+ backdrop-filter: blur(24px);+ -webkit-backdrop-filter: blur(24px);+ animation: avatar-creator-fadein 0.25s ease;}@keyframes avatar-creator-fadein {- from { opacity: 0; }- to { opacity: 1; }+ from {+ opacity: 0;+ }+ to {+ opacity: 1;+ }}.avatar-creator-modal {- width: 95vw;- height: 90vh;- max-width: 1200px;- display: flex;- flex-direction: column;- background: rgba(10, 10, 10, 0.95);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-lg);- overflow: hidden;- box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);+ width: 95vw;+ height: 90vh;+ max-width: 1200px;+ display: flex;+ flex-direction: column;+ background: rgba(10, 10, 10, 0.95);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ overflow: hidden;+ box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);}.avatar-creator-header {- display: flex;- align-items: center;- justify-content: space-between;- padding: var(--space-sm) var(--space-lg);- border-bottom: 1px solid rgba(255, 255, 255, 0.06);- flex-shrink: 0;+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: var(--space-sm) var(--space-lg);+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);+ flex-shrink: 0;}.avatar-creator-title {- font-size: var(--text-lg);- font-weight: 500;- color: #fff;- letter-spacing: 0.03em;+ font-size: var(--text-lg);+ font-weight: 500;+ color: #fff;+ letter-spacing: 0.03em;}.avatar-creator-close {- background: none;- border: none;- color: rgba(255, 255, 255, 0.4);- font-size: var(--text-2xl);- cursor: pointer;- padding: 0;- line-height: 1;- transition: color 0.2s ease;+ background: none;+ border: none;+ color: rgba(255, 255, 255, 0.4);+ font-size: var(--text-2xl);+ cursor: pointer;+ padding: 0;+ line-height: 1;+ transition: color 0.2s ease;}.avatar-creator-close:hover {- color: #fff;+ color: #fff;}.avatar-creator-body {- flex: 1;- position: relative;- min-height: 0;+ flex: 1;+ position: relative;+ min-height: 0;}.avatar-creator-container {- width: 100%;- height: 100%;- position: absolute;- inset: 0;+ width: 100%;+ height: 100%;+ position: absolute;+ inset: 0;}.avatar-creator-iframe {- width: 100%;- height: 100%;- border: none;+ width: 100%;+ height: 100%;+ border: none;}.avatar-creator-loading {- position: absolute;- inset: 0;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- gap: var(--space-md);- color: rgba(255, 255, 255, 0.4);- font-size: var(--text-sm);- pointer-events: none;+ position: absolute;+ inset: 0;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: var(--space-md);+ color: rgba(255, 255, 255, 0.4);+ font-size: var(--text-sm);+ pointer-events: none;}.avatar-creator-loading .spinner {- position: static;- margin: 0;+ position: static;+ margin: 0;}.avatar-creator-error {- color: #f87171;- font-size: var(--text-sm);+ color: #f87171;+ font-size: var(--text-sm);}@media screen and (max-width: 700px) {- .avatar-creator-modal {- width: 100vw;- height: 100vh;- max-width: none;- border-radius: 0;- }+ .avatar-creator-modal {+ width: 100vw;+ height: 100vh;+ max-width: none;+ border-radius: 0;+ }- .avatar-creator-header {- padding: var(--space-xs) var(--space-md);- }+ .avatar-creator-header {+ padding: var(--space-xs) var(--space-md);+ }}/* ============================================================================@@ -1973,481 +2029,511 @@ footer .separator {/* ── Sidebar layout ────────────────────────────────────────────────────────── */.agent-presence-sidebar {- position: fixed;- top: calc(var(--header-h) + var(--space-md));- left: var(--space-md);- width: 220px;- z-index: 50;- pointer-events: none;+ position: fixed;+ top: calc(var(--header-h) + var(--space-md));+ left: var(--space-md);+ width: 220px;+ z-index: 50;+ pointer-events: none;}.agent-home-panel {- background: linear-gradient(180deg, rgba(18, 18, 26, 0.92) 0%, rgba(10, 10, 16, 0.92) 100%);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-lg);- backdrop-filter: blur(16px);- -webkit-backdrop-filter: blur(16px);- overflow: hidden;- pointer-events: all;- display: flex;- flex-direction: column;- gap: 0;- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);+ background: linear-gradient(180deg, rgba(18, 18, 26, 0.92) 0%, rgba(10, 10, 16, 0.92) 100%);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ backdrop-filter: blur(16px);+ -webkit-backdrop-filter: blur(16px);+ overflow: hidden;+ pointer-events: all;+ display: flex;+ flex-direction: column;+ gap: 0;+ box-shadow:+ 0 8px 32px rgba(0, 0, 0, 0.4),+ inset 0 1px 0 rgba(255, 255, 255, 0.04);}/* ── Identity card ─────────────────────────────────────────────────────────── */.agent-home-identity {- display: flex;- align-items: center;- gap: var(--space-sm);- padding: var(--space-sm) var(--space-sm);+ display: flex;+ align-items: center;+ gap: var(--space-sm);+ padding: var(--space-sm) var(--space-sm);}.agent-home-avatar-ring {- width: 36px;- height: 36px;- border-radius: 50%;- border: 2px solid rgba(255,255,255,0.15);- display: flex;- align-items: center;- justify-content: center;- flex-shrink: 0;- transition: border-color 0.6s ease, box-shadow 0.6s ease;+ width: 36px;+ height: 36px;+ border-radius: 50%;+ border: 2px solid rgba(255, 255, 255, 0.15);+ display: flex;+ align-items: center;+ justify-content: center;+ flex-shrink: 0;+ transition:+ border-color 0.6s ease,+ box-shadow 0.6s ease;}/* Emotion ring colours */-.agent-home-avatar-ring[data-emotion="celebration"] {- border-color: rgba(134, 239, 172, 0.6);- box-shadow: 0 0 10px rgba(134, 239, 172, 0.25);+.agent-home-avatar-ring[data-emotion='celebration'] {+ border-color: rgba(134, 239, 172, 0.6);+ box-shadow: 0 0 10px rgba(134, 239, 172, 0.25);}-.agent-home-avatar-ring[data-emotion="concern"] {- border-color: rgba(252, 165, 89, 0.6);- box-shadow: 0 0 10px rgba(252, 165, 89, 0.2);+.agent-home-avatar-ring[data-emotion='concern'] {+ border-color: rgba(252, 165, 89, 0.6);+ box-shadow: 0 0 10px rgba(252, 165, 89, 0.2);}-.agent-home-avatar-ring[data-emotion="curiosity"] {- border-color: rgba(147, 197, 253, 0.6);- box-shadow: 0 0 10px rgba(147, 197, 253, 0.2);+.agent-home-avatar-ring[data-emotion='curiosity'] {+ border-color: rgba(147, 197, 253, 0.6);+ box-shadow: 0 0 10px rgba(147, 197, 253, 0.2);}-.agent-home-avatar-ring[data-emotion="empathy"] {- border-color: rgba(216, 180, 254, 0.6);- box-shadow: 0 0 10px rgba(216, 180, 254, 0.2);+.agent-home-avatar-ring[data-emotion='empathy'] {+ border-color: rgba(216, 180, 254, 0.6);+ box-shadow: 0 0 10px rgba(216, 180, 254, 0.2);}-.agent-home-avatar-ring[data-emotion="patience"] {- border-color: rgba(209, 213, 219, 0.4);+.agent-home-avatar-ring[data-emotion='patience'] {+ border-color: rgba(209, 213, 219, 0.4);}.agent-home-avatar-inner {- width: 28px;- height: 28px;- border-radius: 50%;- background: rgba(255,255,255,0.06);- display: flex;- align-items: center;- justify-content: center;- font-size: 14px;+ width: 28px;+ height: 28px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.06);+ display: flex;+ align-items: center;+ justify-content: center;+ font-size: 14px;}.agent-home-info {- flex: 1;- min-width: 0;+ flex: 1;+ min-width: 0;}.agent-home-name-row {- display: flex;- align-items: center;- gap: 5px;- min-width: 0;+ display: flex;+ align-items: center;+ gap: 5px;+ min-width: 0;}.agent-home-name {- font-family: var(--font-display);- font-size: var(--text-base);- font-weight: 600;- color: #f5f5f7;- letter-spacing: -0.01em;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;+ font-family: var(--font-display);+ font-size: var(--text-base);+ font-weight: 600;+ color: #f5f5f7;+ letter-spacing: -0.01em;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;}.agent-home-status-sep {- color: rgba(255,255,255,0.2);- margin: 0 2px;+ color: rgba(255, 255, 255, 0.2);+ margin: 0 2px;}.agent-home-status {- display: flex;- align-items: center;- gap: 5px;- font-size: var(--text-xs);- color: rgba(255,255,255,0.4);- margin-top: 1px;+ display: flex;+ align-items: center;+ gap: 5px;+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.4);+ margin-top: 1px;}.agent-home-dot {- width: 6px;- height: 6px;- border-radius: 50%;- background: rgba(255,255,255,0.3);- flex-shrink: 0;+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.3);+ flex-shrink: 0;}.agent-home-dot.online {- background: #4ade80;- box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);- animation: agent-dot-pulse 2.5s ease infinite;+ background: #4ade80;+ box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);+ animation: agent-dot-pulse 2.5s ease infinite;}@keyframes agent-dot-pulse {- 0%, 100% { opacity: 1; }- 50% { opacity: 0.5; }+ 0%,+ 100% {+ opacity: 1;+ }+ 50% {+ opacity: 0.5;+ }}#agent-home-emotion-label {- transition: opacity 0.15s ease;+ transition: opacity 0.15s ease;}.agent-home-address {- font-size: 10px;- color: rgba(255,255,255,0.35);- font-family: var(--font-mono);- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;+ font-size: 10px;+ color: rgba(255, 255, 255, 0.35);+ font-family: var(--font-mono);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;}.agent-home-actions {- display: flex;- align-items: center;- gap: var(--space-xs);- flex-shrink: 0;+ display: flex;+ align-items: center;+ gap: var(--space-xs);+ flex-shrink: 0;}.agent-home-btn {- background: none;- border: 1px solid rgba(255,255,255,0.1);- border-radius: var(--radius-sm);- color: rgba(255,255,255,0.4);- width: 24px;- height: 24px;- display: flex;- align-items: center;- justify-content: center;- cursor: pointer;- transition: color 0.2s, border-color 0.2s;- padding: 0;- font-size: var(--text-xs);+ background: none;+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: var(--radius-sm);+ color: rgba(255, 255, 255, 0.4);+ width: 24px;+ height: 24px;+ display: flex;+ align-items: center;+ justify-content: center;+ cursor: pointer;+ transition:+ color 0.2s,+ border-color 0.2s;+ padding: 0;+ font-size: var(--text-xs);}.agent-home-btn:hover {- color: rgba(255,255,255,0.8);- border-color: rgba(255,255,255,0.3);+ color: rgba(255, 255, 255, 0.8);+ border-color: rgba(255, 255, 255, 0.3);}.agent-home-badge {- font-size: 9px;- padding: 2px 5px;- border-radius: 999px;- display: flex;- align-items: center;- gap: 3px;- white-space: nowrap;+ font-size: 9px;+ padding: 2px 5px;+ border-radius: 999px;+ display: flex;+ align-items: center;+ gap: 3px;+ white-space: nowrap;}.agent-home-badge.erc8004 {- background: rgba(134, 239, 172, 0.12);- color: #4ade80;- border: 1px solid rgba(74, 222, 128, 0.25);- width: 14px;- height: 14px;- padding: 0;- justify-content: center;- flex-shrink: 0;+ background: rgba(134, 239, 172, 0.12);+ color: #4ade80;+ border: 1px solid rgba(74, 222, 128, 0.25);+ width: 14px;+ height: 14px;+ padding: 0;+ justify-content: center;+ flex-shrink: 0;}/* ── Skills (collapsed) ────────────────────────────────────────────────────── */.agent-home-skills {- border-top: 1px solid rgba(255,255,255,0.05);+ border-top: 1px solid rgba(255, 255, 255, 0.05);}.agent-home-skills-summary {- display: flex;- align-items: center;- gap: 6px;- padding: var(--space-xs) var(--space-sm);- font-size: 10px;- color: rgba(255,255,255,0.45);- cursor: pointer;- list-style: none;- user-select: none;- transition: color 0.15s, background 0.15s;+ display: flex;+ align-items: center;+ gap: 6px;+ padding: var(--space-xs) var(--space-sm);+ font-size: 10px;+ color: rgba(255, 255, 255, 0.45);+ cursor: pointer;+ list-style: none;+ user-select: none;+ transition:+ color 0.15s,+ background 0.15s;}-.agent-home-skills-summary::-webkit-details-marker { display: none; }+.agent-home-skills-summary::-webkit-details-marker {+ display: none;+}.agent-home-skills-summary:hover {- color: rgba(255,255,255,0.75);- background: rgba(255,255,255,0.02);+ color: rgba(255, 255, 255, 0.75);+ background: rgba(255, 255, 255, 0.02);}.agent-home-skills-label {- font-weight: 500;- letter-spacing: 0.04em;- text-transform: uppercase;+ font-weight: 500;+ letter-spacing: 0.04em;+ text-transform: uppercase;}.agent-home-skills-count {- color: rgba(255,255,255,0.35);- font-variant-numeric: tabular-nums;+ color: rgba(255, 255, 255, 0.35);+ font-variant-numeric: tabular-nums;}.agent-home-chevron {- margin-left: auto;- color: rgba(255,255,255,0.3);- transition: transform 0.2s ease;+ margin-left: auto;+ color: rgba(255, 255, 255, 0.3);+ transition: transform 0.2s ease;}.agent-home-skills[open] .agent-home-chevron {- transform: rotate(180deg);+ transform: rotate(180deg);}.agent-home-skills-strip {- display: flex;- flex-wrap: wrap;- gap: 4px;- padding: 0 var(--space-sm) var(--space-xs);+ display: flex;+ flex-wrap: wrap;+ gap: 4px;+ padding: 0 var(--space-sm) var(--space-xs);}.agent-skill-chip {- font-size: 9px;- padding: 2px 6px;- border-radius: 999px;- background: rgba(255,255,255,0.06);- color: rgba(255,255,255,0.45);- border: 1px solid rgba(255,255,255,0.08);- cursor: default;- transition: background 0.15s, color 0.15s;- white-space: nowrap;+ font-size: 9px;+ padding: 2px 6px;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.06);+ color: rgba(255, 255, 255, 0.45);+ border: 1px solid rgba(255, 255, 255, 0.08);+ cursor: default;+ transition:+ background 0.15s,+ color 0.15s;+ white-space: nowrap;}.agent-skill-chip:hover {- background: rgba(255,255,255,0.1);- color: rgba(255,255,255,0.75);+ background: rgba(255, 255, 255, 0.1);+ color: rgba(255, 255, 255, 0.75);}/* ── Memory bar ────────────────────────────────────────────────────────────── */.agent-home-memory-bar {- display: flex;- align-items: center;- gap: var(--space-xs);- padding: var(--space-xs) var(--space-sm);- border-top: 1px solid rgba(255,255,255,0.05);- flex-wrap: wrap;+ display: flex;+ align-items: center;+ gap: var(--space-xs);+ padding: var(--space-xs) var(--space-sm);+ border-top: 1px solid rgba(255, 255, 255, 0.05);+ flex-wrap: wrap;}.agent-mem-chip {- font-size: 9px;- color: rgba(255,255,255,0.4);- cursor: default;+ font-size: 9px;+ color: rgba(255, 255, 255, 0.4);+ cursor: default;}.agent-mem-total {- font-size: 9px;- color: rgba(255,255,255,0.2);- margin-left: auto;+ font-size: 9px;+ color: rgba(255, 255, 255, 0.2);+ margin-left: auto;}.agent-mem-empty {- font-size: 9px;- color: rgba(255,255,255,0.2);- font-style: italic;+ font-size: 9px;+ color: rgba(255, 255, 255, 0.2);+ font-style: italic;}/* ── Action timeline ───────────────────────────────────────────────────────── */.agent-home-timeline {- max-height: 140px;- overflow-y: auto;- border-top: 1px solid rgba(255,255,255,0.05);- scrollbar-width: thin;- scrollbar-color: rgba(255,255,255,0.1) transparent;+ max-height: 140px;+ overflow-y: auto;+ border-top: 1px solid rgba(255, 255, 255, 0.05);+ scrollbar-width: thin;+ scrollbar-color: rgba(255, 255, 255, 0.1) transparent;}.agent-timeline-empty {- display: flex;- flex-direction: column;- align-items: center;- gap: 4px;- padding: var(--space-md) var(--space-sm);- text-align: center;+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 4px;+ padding: var(--space-md) var(--space-sm);+ text-align: center;}.agent-timeline-empty-icon {- color: rgba(139, 92, 246, 0.4);- margin-bottom: 2px;+ color: rgba(139, 92, 246, 0.4);+ margin-bottom: 2px;}.agent-timeline-empty-title {- font-size: 10px;- font-weight: 500;- color: rgba(255,255,255,0.55);- letter-spacing: 0.02em;+ font-size: 10px;+ font-weight: 500;+ color: rgba(255, 255, 255, 0.55);+ letter-spacing: 0.02em;}.agent-timeline-empty-sub {- font-size: 9px;- color: rgba(255,255,255,0.3);- line-height: 1.4;- max-width: 180px;+ font-size: 9px;+ color: rgba(255, 255, 255, 0.3);+ line-height: 1.4;+ max-width: 180px;}.agent-timeline-item {- display: flex;- align-items: flex-start;- gap: var(--space-xs);- padding: 4px var(--space-sm);- border-bottom: 1px solid rgba(255,255,255,0.03);- transition: background 0.15s;+ display: flex;+ align-items: flex-start;+ gap: var(--space-xs);+ padding: 4px var(--space-sm);+ border-bottom: 1px solid rgba(255, 255, 255, 0.03);+ transition: background 0.15s;}.agent-timeline-item:hover {- background: rgba(255,255,255,0.03);+ background: rgba(255, 255, 255, 0.03);}.agent-timeline-icon {- font-size: 10px;- flex-shrink: 0;- margin-top: 1px;- width: 14px;- text-align: center;+ font-size: 10px;+ flex-shrink: 0;+ margin-top: 1px;+ width: 14px;+ text-align: center;}.agent-timeline-text {- font-size: 9px;- color: rgba(255,255,255,0.5);- flex: 1;- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ font-size: 9px;+ color: rgba(255, 255, 255, 0.5);+ flex: 1;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}.agent-timeline-time {- font-size: 9px;- color: rgba(255,255,255,0.2);- flex-shrink: 0;- white-space: nowrap;+ font-size: 9px;+ color: rgba(255, 255, 255, 0.2);+ flex-shrink: 0;+ white-space: nowrap;}@keyframes agent-timeline-in {- from { opacity: 0; transform: translateY(-4px); }- to { opacity: 1; transform: translateY(0); }+ from {+ opacity: 0;+ transform: translateY(-4px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }}/* ── NichAgent updates — emotion dot in header ─────────────────────────────── */.nich-header {- display: flex;- align-items: center;- justify-content: space-between;- padding: var(--space-sm) var(--space-md);- border-bottom: 1px solid rgba(255,255,255,0.08);- background: rgba(255,255,255,0.03);+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: var(--space-sm) var(--space-md);+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);+ background: rgba(255, 255, 255, 0.03);}.nich-header-right {- display: flex;- align-items: center;- gap: var(--space-sm);+ display: flex;+ align-items: center;+ gap: var(--space-sm);}.nich-emotion-dot {- width: 8px;- height: 8px;- border-radius: 50%;- background: rgba(255,255,255,0.2);- transition: background 0.4s ease, box-shadow 0.4s ease;+ width: 8px;+ height: 8px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.2);+ transition:+ background 0.4s ease,+ box-shadow 0.4s ease;}.nich-toggle-label {- font-size: 10px;- margin-top: 3px;- display: block;- color: rgba(255,255,255,0.5);+ font-size: 10px;+ margin-top: 3px;+ display: block;+ color: rgba(255, 255, 255, 0.5);}.nich-message.status {- font-size: var(--text-xs);- color: rgba(255,255,255,0.3);- font-style: italic;- padding: 2px var(--space-xs);+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.3);+ font-style: italic;+ padding: 2px var(--space-xs);}.nich-message.typing {- color: rgba(255,255,255,0.4);- letter-spacing: 2px;- animation: nich-typing 1.1s ease-in-out infinite;+ color: rgba(255, 255, 255, 0.4);+ letter-spacing: 2px;+ animation: nich-typing 1.1s ease-in-out infinite;}@keyframes nich-typing {- 0%, 100% { opacity: 0.35; }- 50% { opacity: 0.85; }+ 0%,+ 100% {+ opacity: 0.35;+ }+ 50% {+ opacity: 0.85;+ }}.nich-mic-hint {- font-size: var(--text-xs);- color: rgba(255,255,255,0.25);+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.25);}.nich-mic-row {- display: flex;- align-items: center;- gap: var(--space-sm);- padding: var(--space-xs) var(--space-md);- border-top: 1px solid rgba(255,255,255,0.05);+ display: flex;+ align-items: center;+ gap: var(--space-sm);+ padding: var(--space-xs) var(--space-md);+ border-top: 1px solid rgba(255, 255, 255, 0.05);}/* ── Responsive — hide sidebar on narrow viewports ─────────────────────────── */@media screen and (max-width: 900px) {- .agent-presence-sidebar {- display: none;- }+ .agent-presence-sidebar {+ display: none;+ }}/* ── Agent Home standalone page ─────────────────────────────────────────────── */.agent-home-page {- min-height: 100vh;- background: #000;- color: #e0e0e0;- font-family: 'Inter', sans-serif;- display: flex;- flex-direction: column;- align-items: center;- padding: var(--space-2xl) var(--space-md);+ min-height: 100vh;+ background: #000;+ color: #e0e0e0;+ font-family: 'Inter', sans-serif;+ display: flex;+ flex-direction: column;+ align-items: center;+ padding: var(--space-2xl) var(--space-md);}.agent-home-page-card {- width: 100%;- max-width: 480px;- background: rgba(15, 15, 22, 0.95);- border: 1px solid rgba(255,255,255,0.08);- border-radius: 12px;- overflow: hidden;+ width: 100%;+ max-width: 480px;+ background: rgba(15, 15, 22, 0.95);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: 12px;+ overflow: hidden;}.agent-home-page-card .agent-home-panel {- background: transparent;- border: none;- border-radius: 0;+ background: transparent;+ border: none;+ border-radius: 0;}.agent-home-page-card .agent-home-timeline {- max-height: 400px;+ max-height: 400px;}/******************************************************************************@@ -2455,174 +2541,186 @@ footer .separator {*/.anim-panel {- position: absolute;- bottom: var(--space-lg);- left: 50%;- transform: translateX(-50%);- z-index: 20;- background: linear-gradient(180deg, rgba(18, 18, 26, 0.92) 0%, rgba(10, 10, 16, 0.92) 100%);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-lg);- backdrop-filter: blur(18px);- -webkit-backdrop-filter: blur(18px);- padding: var(--space-xs) var(--space-sm);- max-width: 90vw;- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);- animation: anim-panel-in 0.3s ease;+ position: absolute;+ bottom: var(--space-lg);+ left: 50%;+ transform: translateX(-50%);+ z-index: 20;+ background: linear-gradient(180deg, rgba(18, 18, 26, 0.92) 0%, rgba(10, 10, 16, 0.92) 100%);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ backdrop-filter: blur(18px);+ -webkit-backdrop-filter: blur(18px);+ padding: var(--space-xs) var(--space-sm);+ max-width: 90vw;+ box-shadow:+ 0 8px 32px rgba(0, 0, 0, 0.45),+ inset 0 1px 0 rgba(255, 255, 255, 0.04);+ animation: anim-panel-in 0.3s ease;}@keyframes anim-panel-in {- from { opacity: 0; transform: translateX(-50%) translateY(12px); }- to { opacity: 1; transform: translateX(-50%) translateY(0); }+ from {+ opacity: 0;+ transform: translateX(-50%) translateY(12px);+ }+ to {+ opacity: 1;+ transform: translateX(-50%) translateY(0);+ }}.anim-panel--empty {- display: none;+ display: none;}.anim-panel__header {- display: flex;- align-items: center;- justify-content: space-between;- padding: var(--space-3xs) var(--space-xs);- margin-bottom: var(--space-3xs);+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: var(--space-3xs) var(--space-xs);+ margin-bottom: var(--space-3xs);}.anim-panel__title {- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.4);- font-weight: 500;- letter-spacing: 0.06em;- text-transform: uppercase;+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.4);+ font-weight: 500;+ letter-spacing: 0.06em;+ text-transform: uppercase;}.anim-panel__stop {- background: none;- border: none;- color: rgba(255, 255, 255, 0.3);- font-size: var(--text-sm);- cursor: pointer;- padding: 2px 6px;- border-radius: var(--radius-sm);- transition: color 0.2s, background 0.2s;- line-height: 1;+ background: none;+ border: none;+ color: rgba(255, 255, 255, 0.3);+ font-size: var(--text-sm);+ cursor: pointer;+ padding: 2px 6px;+ border-radius: var(--radius-sm);+ transition:+ color 0.2s,+ background 0.2s;+ line-height: 1;}.anim-panel__stop:hover {- color: #f87171;- background: rgba(248, 113, 113, 0.1);+ color: #f87171;+ background: rgba(248, 113, 113, 0.1);}.anim-panel__grid {- display: flex;- gap: var(--space-xs);- overflow-x: auto;- scrollbar-width: thin;- scrollbar-color: rgba(255, 255, 255, 0.1) transparent;- padding-bottom: 2px;+ display: flex;+ gap: var(--space-xs);+ overflow-x: auto;+ scrollbar-width: thin;+ scrollbar-color: rgba(255, 255, 255, 0.1) transparent;+ padding-bottom: 2px;}.anim-btn {- position: relative;- display: flex;- flex-direction: column;- align-items: center;- gap: 3px;- padding: var(--space-xs) var(--space-sm);- min-width: 64px;- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(255, 255, 255, 0.08);- border-radius: var(--radius-md);- color: rgba(255, 255, 255, 0.6);- font-family: inherit;- font-size: var(--text-xs);- cursor: pointer;- transition: all 0.2s ease;- flex-shrink: 0;+ position: relative;+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 3px;+ padding: var(--space-xs) var(--space-sm);+ min-width: 64px;+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-md);+ color: rgba(255, 255, 255, 0.6);+ font-family: inherit;+ font-size: var(--text-xs);+ cursor: pointer;+ transition: all 0.2s ease;+ flex-shrink: 0;}.anim-btn__key {- position: absolute;- top: 3px;- right: 4px;- font-family: var(--font-mono);- font-size: 8px;- font-weight: 600;- color: rgba(255, 255, 255, 0.25);- padding: 1px 3px;- border-radius: 2px;- background: rgba(255, 255, 255, 0.04);- line-height: 1;- pointer-events: none;- transition: color 0.18s, background 0.18s;+ position: absolute;+ top: 3px;+ right: 4px;+ font-family: var(--font-mono);+ font-size: 8px;+ font-weight: 600;+ color: rgba(255, 255, 255, 0.25);+ padding: 1px 3px;+ border-radius: 2px;+ background: rgba(255, 255, 255, 0.04);+ line-height: 1;+ pointer-events: none;+ transition:+ color 0.18s,+ background 0.18s;}.anim-btn:hover .anim-btn__key {- color: rgba(255, 255, 255, 0.6);- background: rgba(255, 255, 255, 0.08);+ color: rgba(255, 255, 255, 0.6);+ background: rgba(255, 255, 255, 0.08);}.anim-btn--active .anim-btn__key {- color: #fff;- background: rgba(139, 92, 246, 0.35);+ color: #fff;+ background: rgba(139, 92, 246, 0.35);}.anim-btn:hover:not(:disabled) {- background: rgba(255, 255, 255, 0.1);- border-color: rgba(255, 255, 255, 0.2);- color: #fff;+ background: rgba(255, 255, 255, 0.1);+ border-color: rgba(255, 255, 255, 0.2);+ color: #fff;}.anim-btn--active {- background: var(--accent-soft);- border-color: rgba(139, 92, 246, 0.5);- color: #fff;- box-shadow: 0 0 16px rgba(139, 92, 246, 0.18);+ background: var(--accent-soft);+ border-color: rgba(139, 92, 246, 0.5);+ color: #fff;+ box-shadow: 0 0 16px rgba(139, 92, 246, 0.18);}.anim-btn--active:hover {- background: rgba(139, 92, 246, 0.28);+ background: rgba(139, 92, 246, 0.28);}.anim-btn--loading {- opacity: 0.35;- cursor: wait;+ opacity: 0.35;+ cursor: wait;}.anim-btn__icon {- font-size: 1.3rem;- line-height: 1;+ font-size: 1.3rem;+ line-height: 1;}.anim-btn__label {- font-size: 9px;- font-weight: 500;- letter-spacing: 0.03em;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- max-width: 72px;+ font-size: 9px;+ font-weight: 500;+ letter-spacing: 0.03em;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ max-width: 72px;}@media screen and (max-width: 700px) {- .anim-panel {- bottom: var(--space-sm);- padding: var(--space-3xs) var(--space-xs);- max-width: 95vw;- }+ .anim-panel {+ bottom: var(--space-sm);+ padding: var(--space-3xs) var(--space-xs);+ max-width: 95vw;+ }- .anim-btn {- min-width: 52px;- padding: var(--space-3xs) var(--space-xs);- }+ .anim-btn {+ min-width: 52px;+ padding: var(--space-3xs) var(--space-xs);+ }- .anim-btn__icon {- font-size: 1.1rem;- }+ .anim-btn__icon {+ font-size: 1.1rem;+ }- .anim-btn__label {- font-size: 8px;- }+ .anim-btn__label {+ font-size: 8px;+ }}/******************************************************************************@@ -2631,590 +2729,964 @@ footer .separator {*/.scene-explorer {- position: absolute;- top: var(--space-sm);- left: var(--space-sm);- width: 320px;- max-height: calc(100% - var(--space-lg));- background: rgba(20, 20, 28, 0.96);- color: #e0e0e0;- border: 1px solid #2a2a36;- border-radius: var(--radius-md);- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);- display: flex;- flex-direction: column;- font-size: var(--text-sm);- z-index: 40;- backdrop-filter: blur(8px);- overflow: hidden;-}-.scene-explorer.hidden { display: none; }+ position: absolute;+ top: var(--space-sm);+ left: var(--space-sm);+ width: 320px;+ max-height: calc(100% - var(--space-lg));+ background: rgba(20, 20, 28, 0.96);+ color: #e0e0e0;+ border: 1px solid #2a2a36;+ border-radius: var(--radius-md);+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);+ display: flex;+ flex-direction: column;+ font-size: var(--text-sm);+ z-index: 40;+ backdrop-filter: blur(8px);+ overflow: hidden;+}+.scene-explorer.hidden {+ display: none;+}.scene-explorer__header {- display: flex;- align-items: center;- justify-content: space-between;- padding: var(--space-sm) var(--space-md);- border-bottom: 1px solid #2a2a36;- background: #0f0f16;+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: var(--space-sm) var(--space-md);+ border-bottom: 1px solid #2a2a36;+ background: #0f0f16;}.scene-explorer__title {- font-weight: 600;- font-size: var(--text-sm);- letter-spacing: 0.02em;- text-transform: uppercase;- color: #b4a4ff;+ font-weight: 600;+ font-size: var(--text-sm);+ letter-spacing: 0.02em;+ text-transform: uppercase;+ color: #b4a4ff;}.scene-explorer__close {- background: none;- border: none;- color: #aaa;- font-size: 18px;- line-height: 1;- padding: 2px 8px;- cursor: pointer;- border-radius: 4px;+ background: none;+ border: none;+ color: #aaa;+ font-size: 18px;+ line-height: 1;+ padding: 2px 8px;+ cursor: pointer;+ border-radius: 4px;+}+.scene-explorer__close:hover {+ background: #2a2a36;+ color: #fff;}-.scene-explorer__close:hover { background: #2a2a36; color: #fff; }.scene-explorer__search {- margin: var(--space-xs) var(--space-sm);- background: #0b0b12;- border: 1px solid #2a2a36;- color: #ddd;- padding: 6px 10px;- border-radius: 4px;- font-size: var(--text-sm);- outline: none;+ margin: var(--space-xs) var(--space-sm);+ background: #0b0b12;+ border: 1px solid #2a2a36;+ color: #ddd;+ padding: 6px 10px;+ border-radius: 4px;+ font-size: var(--text-sm);+ outline: none;+}+.scene-explorer__search:focus {+ border-color: #5e4fff;}-.scene-explorer__search:focus { border-color: #5e4fff; }.scene-explorer__hint {- padding: 2px var(--space-sm) var(--space-xs);- color: #666;- font-size: 10px;- font-family: monospace;+ padding: 2px var(--space-sm) var(--space-xs);+ color: #666;+ font-size: 10px;+ font-family: monospace;}.scene-explorer__tree {- flex: 1;- overflow-y: auto;- padding: var(--space-2xs) var(--space-2xs);- max-height: 40vh;- border-bottom: 1px solid #2a2a36;+ flex: 1;+ overflow-y: auto;+ padding: var(--space-2xs) var(--space-2xs);+ max-height: 40vh;+ border-bottom: 1px solid #2a2a36;}.scene-explorer__inspector {- overflow-y: auto;- padding: var(--space-sm);- max-height: 40vh;- background: #0c0c14;+ overflow-y: auto;+ padding: var(--space-sm);+ max-height: 40vh;+ background: #0c0c14;}.scene-explorer__empty {- color: #666;- font-size: var(--text-xs);- padding: var(--space-sm);- text-align: center;+ color: #666;+ font-size: var(--text-xs);+ padding: var(--space-sm);+ text-align: center;}-.scene-node { }+.scene-node {+}.scene-node__row {- display: flex;- align-items: center;- gap: 4px;- padding: 3px 4px;- cursor: pointer;- border-radius: 3px;- line-height: 1.4;- user-select: none;-}-.scene-node__row:hover { background: #1a1a26; }+ display: flex;+ align-items: center;+ gap: 4px;+ padding: 3px 4px;+ cursor: pointer;+ border-radius: 3px;+ line-height: 1.4;+ user-select: none;+}+.scene-node__row:hover {+ background: #1a1a26;+}.scene-node__row.selected {- background: #2a1f5a;- color: #fff;+ background: #2a1f5a;+ color: #fff;}.scene-node__expander {- display: inline-block;- width: 12px;- color: #888;- text-align: center;- font-size: 10px;- flex-shrink: 0;-}-.scene-node__icon { flex-shrink: 0; font-size: 12px; }+ display: inline-block;+ width: 12px;+ color: #888;+ text-align: center;+ font-size: 10px;+ flex-shrink: 0;+}+.scene-node__icon {+ flex-shrink: 0;+ font-size: 12px;+}.scene-node__label {- flex: 1;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- font-size: 12px;+ flex: 1;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ font-size: 12px;}.scene-node__visibility {- background: none;- border: none;- color: #888;- font-size: 10px;- cursor: pointer;- padding: 0 4px;- flex-shrink: 0;+ background: none;+ border: none;+ color: #888;+ font-size: 10px;+ cursor: pointer;+ padding: 0 4px;+ flex-shrink: 0;+}+.scene-node__visibility:hover {+ color: #fff;}-.scene-node__visibility:hover { color: #fff; }-.scene-node__children { display: none; }-.scene-node__children.open { display: block; }-.scene-node.filtered-out { display: none; }+.scene-node__children {+ display: none;+}+.scene-node__children.open {+ display: block;+}+.scene-node.filtered-out {+ display: none;+}.inspector__title {- font-size: var(--text-base);- font-weight: 600;- color: #fff;- margin-bottom: 2px;+ font-size: var(--text-base);+ font-weight: 600;+ color: #fff;+ margin-bottom: 2px;}.inspector__sub {- color: #666;- font-size: 10px;- font-family: monospace;- margin-bottom: var(--space-xs);+ color: #666;+ font-size: 10px;+ font-family: monospace;+ margin-bottom: var(--space-xs);}.inspector__section {- margin-top: var(--space-sm);- margin-bottom: var(--space-2xs);- font-size: 10px;- text-transform: uppercase;- letter-spacing: 0.08em;- color: #888;- border-bottom: 1px solid #22222e;- padding-bottom: 2px;+ margin-top: var(--space-sm);+ margin-bottom: var(--space-2xs);+ font-size: 10px;+ text-transform: uppercase;+ letter-spacing: 0.08em;+ color: #888;+ border-bottom: 1px solid #22222e;+ padding-bottom: 2px;}.inspector__row {- display: flex;- align-items: center;- justify-content: space-between;- gap: var(--space-xs);- padding: 2px 0;- font-size: 11px;-}-.inspector__label { color: #888; flex-shrink: 0; min-width: 40px; }+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-xs);+ padding: 2px 0;+ font-size: 11px;+}+.inspector__label {+ color: #888;+ flex-shrink: 0;+ min-width: 40px;+}.inspector__value {- color: #ccc;- font-family: monospace;- text-align: right;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ color: #ccc;+ font-family: monospace;+ text-align: right;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}.vec3-row .vec3 {- display: flex;- gap: 2px;+ display: flex;+ gap: 2px;}.vec3-row input {- width: 52px;- background: #0b0b12;- border: 1px solid #2a2a36;- color: #ccc;- padding: 2px 4px;- border-radius: 3px;- font-size: 10px;- font-family: monospace;- outline: none;-}-.vec3-row input:focus { border-color: #5e4fff; }+ width: 52px;+ background: #0b0b12;+ border: 1px solid #2a2a36;+ color: #ccc;+ padding: 2px 4px;+ border-radius: 3px;+ font-size: 10px;+ font-family: monospace;+ outline: none;+}+.vec3-row input:focus {+ border-color: #5e4fff;+}.inspector__actions {- display: flex;- gap: var(--space-2xs);- margin-top: var(--space-2xs);- flex-wrap: wrap;+ display: flex;+ gap: var(--space-2xs);+ margin-top: var(--space-2xs);+ flex-wrap: wrap;}.inspector__actions button {- background: #22222e;- border: 1px solid #33334a;- color: #ccc;- padding: 4px 8px;- border-radius: 3px;- font-size: 10px;- cursor: pointer;+ background: #22222e;+ border: 1px solid #33334a;+ color: #ccc;+ padding: 4px 8px;+ border-radius: 3px;+ font-size: 10px;+ cursor: pointer;+}+.inspector__actions button:hover {+ background: #2e2e40;+ color: #fff;}-.inspector__actions button:hover { background: #2e2e40; color: #fff; }/* Texture Inspector modal */.texture-inspector {- position: fixed;- top: 80px;- right: 20px;- width: min(560px, calc(100vw - 40px));- max-height: calc(100vh - 100px);- background: rgba(20, 20, 28, 0.98);- border: 1px solid #2a2a36;- border-radius: var(--radius-md);- box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);- display: flex;- flex-direction: column;- z-index: 9998;- color: #e0e0e0;- overflow: hidden;+ position: fixed;+ top: 80px;+ right: 20px;+ width: min(560px, calc(100vw - 40px));+ max-height: calc(100vh - 100px);+ background: rgba(20, 20, 28, 0.98);+ border: 1px solid #2a2a36;+ border-radius: var(--radius-md);+ box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);+ display: flex;+ flex-direction: column;+ z-index: 9998;+ color: #e0e0e0;+ overflow: hidden;}.texture-inspector__header {- display: flex;- justify-content: space-between;- align-items: center;- padding: var(--space-sm) var(--space-md);- border-bottom: 1px solid #2a2a36;- background: #0f0f16;+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: var(--space-sm) var(--space-md);+ border-bottom: 1px solid #2a2a36;+ background: #0f0f16;}.texture-inspector__title {- font-weight: 600;- font-size: var(--text-sm);- color: #b4a4ff;- text-transform: uppercase;- letter-spacing: 0.02em;+ font-weight: 600;+ font-size: var(--text-sm);+ color: #b4a4ff;+ text-transform: uppercase;+ letter-spacing: 0.02em;}.texture-inspector__close {- background: none;- border: none;- color: #aaa;- font-size: 18px;- cursor: pointer;- padding: 2px 8px;- border-radius: 4px;+ background: none;+ border: none;+ color: #aaa;+ font-size: 18px;+ cursor: pointer;+ padding: 2px 8px;+ border-radius: 4px;+}+.texture-inspector__close:hover {+ background: #2a2a36;+ color: #fff;}-.texture-inspector__close:hover { background: #2a2a36; color: #fff; }.texture-inspector__grid {- display: grid;- grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));- gap: var(--space-sm);- padding: var(--space-sm);- overflow-y: auto;+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));+ gap: var(--space-sm);+ padding: var(--space-sm);+ overflow-y: auto;}.texture-card {- background: #0c0c14;- border: 1px solid #22222e;- border-radius: var(--radius-sm);- padding: var(--space-xs);- cursor: pointer;- transition: border-color 0.15s, transform 0.15s;+ background: #0c0c14;+ border: 1px solid #22222e;+ border-radius: var(--radius-sm);+ padding: var(--space-xs);+ cursor: pointer;+ transition:+ border-color 0.15s,+ transform 0.15s;}.texture-card:hover {- border-color: #5e4fff;- transform: translateY(-1px);+ border-color: #5e4fff;+ transform: translateY(-1px);}.texture-card__thumb {- width: 100%;- aspect-ratio: 1;- background: #000- url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><rect width="8" height="8" fill="%23333"/><rect x="8" y="8" width="8" height="8" fill="%23333"/></svg>') repeat;- image-rendering: pixelated;- border-radius: 3px;- display: block;-}-.texture-card__info { margin-top: var(--space-2xs); }+ width: 100%;+ aspect-ratio: 1;+ background: #000+ url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><rect width="8" height="8" fill="%23333"/><rect x="8" y="8" width="8" height="8" fill="%23333"/></svg>')+ repeat;+ image-rendering: pixelated;+ border-radius: 3px;+ display: block;+}+.texture-card__info {+ margin-top: var(--space-2xs);+}.texture-card__name {- font-size: 11px;- font-weight: 500;- color: #ddd;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;+ font-size: 11px;+ font-weight: 500;+ color: #ddd;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;}.texture-card__meta {- font-size: 10px;- color: #888;- font-family: monospace;+ font-size: 10px;+ color: #888;+ font-family: monospace;}.texture-card__mats {- font-size: 10px;- color: #666;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- margin-top: 2px;+ font-size: 10px;+ color: #666;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ margin-top: 2px;}/* Texture Lightbox (full preview with channel toggles) */.texture-lightbox {- position: fixed;- inset: 0;- background: rgba(5, 5, 10, 0.92);- backdrop-filter: blur(4px);- z-index: 9999;- display: flex;- flex-direction: column;+ position: fixed;+ inset: 0;+ background: rgba(5, 5, 10, 0.92);+ backdrop-filter: blur(4px);+ z-index: 9999;+ display: flex;+ flex-direction: column;}.texture-lightbox__bar {- display: flex;- align-items: center;- justify-content: space-between;- padding: var(--space-sm) var(--space-md);- background: #0b0b12;- border-bottom: 1px solid #2a2a36;- gap: var(--space-md);- flex-wrap: wrap;+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: var(--space-sm) var(--space-md);+ background: #0b0b12;+ border-bottom: 1px solid #2a2a36;+ gap: var(--space-md);+ flex-wrap: wrap;}.texture-lightbox__meta {- display: flex;- flex-direction: column;- gap: 2px;+ display: flex;+ flex-direction: column;+ gap: 2px;}.texture-lightbox__title {- font-weight: 600;- font-size: var(--text-sm);- color: #fff;+ font-weight: 600;+ font-size: var(--text-sm);+ color: #fff;}.texture-lightbox__dim {- font-family: monospace;- font-size: 10px;- color: #888;+ font-family: monospace;+ font-size: 10px;+ color: #888;}.texture-lightbox__channels {- display: flex;- gap: 2px;+ display: flex;+ gap: 2px;}.texture-lightbox__channels button {- background: #22222e;- border: 1px solid #33334a;- color: #aaa;- padding: 4px 10px;- border-radius: 3px;- font-size: 11px;- font-family: monospace;- cursor: pointer;- min-width: 32px;-}-.texture-lightbox__channels button:hover { background: #2e2e40; color: #fff; }+ background: #22222e;+ border: 1px solid #33334a;+ color: #aaa;+ padding: 4px 10px;+ border-radius: 3px;+ font-size: 11px;+ font-family: monospace;+ cursor: pointer;+ min-width: 32px;+}+.texture-lightbox__channels button:hover {+ background: #2e2e40;+ color: #fff;+}.texture-lightbox__channels button.active {- background: #5e4fff;- border-color: #7262ff;- color: #fff;+ background: #5e4fff;+ border-color: #7262ff;+ color: #fff;}.texture-lightbox__close {- background: none;- border: none;- color: #aaa;- font-size: 22px;- cursor: pointer;- padding: 2px 10px;- border-radius: 4px;-}-.texture-lightbox__close:hover { background: #2a2a36; color: #fff; }+ background: none;+ border: none;+ color: #aaa;+ font-size: 22px;+ cursor: pointer;+ padding: 2px 10px;+ border-radius: 4px;+}+.texture-lightbox__close:hover {+ background: #2a2a36;+ color: #fff;+}.texture-lightbox__stage {- flex: 1;- display: flex;- align-items: center;- justify-content: center;- overflow: hidden;- padding: var(--space-md);- background:- linear-gradient(45deg, #1a1a22 25%, transparent 25%),- linear-gradient(-45deg, #1a1a22 25%, transparent 25%),- linear-gradient(45deg, transparent 75%, #1a1a22 75%),- linear-gradient(-45deg, transparent 75%, #1a1a22 75%);- background-size: 20px 20px;- background-position: 0 0, 0 10px, 10px -10px, 10px 0;- cursor: grab;+ flex: 1;+ display: flex;+ align-items: center;+ justify-content: center;+ overflow: hidden;+ padding: var(--space-md);+ background:+ linear-gradient(45deg, #1a1a22 25%, transparent 25%),+ linear-gradient(-45deg, #1a1a22 25%, transparent 25%),+ linear-gradient(45deg, transparent 75%, #1a1a22 75%),+ linear-gradient(-45deg, transparent 75%, #1a1a22 75%);+ background-size: 20px 20px;+ background-position:+ 0 0,+ 0 10px,+ 10px -10px,+ 10px 0;+ cursor: grab;}.texture-lightbox__viewport {- position: relative;- max-width: 100%;- max-height: 100%;- display: flex;- align-items: center;- justify-content: center;+ position: relative;+ max-width: 100%;+ max-height: 100%;+ display: flex;+ align-items: center;+ justify-content: center;}.texture-lightbox__canvas {- max-width: min(90vw, 1200px);- max-height: calc(100vh - 160px);- object-fit: contain;- image-rendering: pixelated;- border: 1px solid #2a2a36;- background: #000;- transform-origin: center center;- transition: none;+ max-width: min(90vw, 1200px);+ max-height: calc(100vh - 160px);+ object-fit: contain;+ image-rendering: pixelated;+ border: 1px solid #2a2a36;+ background: #000;+ transform-origin: center center;+ transition: none;}.texture-lightbox__uv {- position: absolute;- inset: 0;- max-width: min(90vw, 1200px);- max-height: calc(100vh - 160px);- object-fit: contain;- pointer-events: none;- transform-origin: center center;+ position: absolute;+ inset: 0;+ max-width: min(90vw, 1200px);+ max-height: calc(100vh - 160px);+ object-fit: contain;+ pointer-events: none;+ transform-origin: center center;}.texture-lightbox__footer {- padding: var(--space-xs) var(--space-md);- background: #0b0b12;- border-top: 1px solid #2a2a36;- color: #888;- font-size: 11px;- font-family: monospace;+ padding: var(--space-xs) var(--space-md);+ background: #0b0b12;+ border-top: 1px solid #2a2a36;+ color: #888;+ font-size: 11px;+ font-family: monospace;}@media (max-width: 700px) {- .scene-explorer {- width: calc(100vw - var(--space-md));- max-height: calc(100vh - var(--space-xl));- top: var(--space-xs);- left: var(--space-xs);- right: var(--space-xs);- }- .texture-inspector {- top: var(--space-xs);- right: var(--space-xs);- left: var(--space-xs);- width: auto;- max-height: calc(100vh - var(--space-lg));- }- .texture-lightbox__bar { padding: var(--space-xs); gap: var(--space-xs); }+ .scene-explorer {+ width: calc(100vw - var(--space-md));+ max-height: calc(100vh - var(--space-xl));+ top: var(--space-xs);+ left: var(--space-xs);+ right: var(--space-xs);+ }+ .texture-inspector {+ top: var(--space-xs);+ right: var(--space-xs);+ left: var(--space-xs);+ width: auto;+ max-height: calc(100vh - var(--space-lg));+ }+ .texture-lightbox__bar {+ padding: var(--space-xs);+ gap: var(--space-xs);+ }}/* ============================================================================AUTH GATE — hides power tools from anonymous visitors on the main viewer============================================================================ */-.auth-gate { display: none; }+.auth-gate {+ display: none;+}-body[data-viewer-mode="main"][data-authed="pending"] .anim-panel,-body[data-viewer-mode="main"][data-authed="pending"] #agent-presence-sidebar,-body[data-viewer-mode="main"][data-authed="pending"] .dg.main,-body[data-viewer-mode="main"][data-authed="pending"] #make-widget-btn {- visibility: hidden !important;+body[data-viewer-mode='main'][data-authed='pending'] .anim-panel,+body[data-viewer-mode='main'][data-authed='pending'] #agent-presence-sidebar,+body[data-viewer-mode='main'][data-authed='pending'] .dg.main,+body[data-viewer-mode='main'][data-authed='pending'] #make-widget-btn {+ visibility: hidden !important;}-body[data-viewer-mode="main"][data-authed="false"] .anim-panel,-body[data-viewer-mode="main"][data-authed="false"] #agent-presence-sidebar,-body[data-viewer-mode="main"][data-authed="false"] .dg.main,-body[data-viewer-mode="main"][data-authed="false"] #make-widget-btn {- display: none !important;+body[data-viewer-mode='main'][data-authed='false'] .anim-panel,+body[data-viewer-mode='main'][data-authed='false'] #agent-presence-sidebar,+body[data-viewer-mode='main'][data-authed='false'] .dg.main,+body[data-viewer-mode='main'][data-authed='false'] #make-widget-btn {+ display: none !important;}-body[data-viewer-mode="main"][data-authed="false"] .auth-gate {- display: block;- animation: auth-gate-in 0.4s ease;+body[data-viewer-mode='main'][data-authed='false'] .auth-gate {+ display: block;+ animation: auth-gate-in 0.4s ease;}@keyframes auth-gate-in {- from { opacity: 0; transform: translateY(8px); }- to { opacity: 1; transform: translateY(0); }+ from {+ opacity: 0;+ transform: translateY(8px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }}.auth-gate {- position: fixed;- top: calc(var(--header-h) + var(--space-md));- left: var(--space-md);- width: 280px;- z-index: 50;+ position: fixed;+ top: calc(var(--header-h) + var(--space-md));+ left: var(--space-md);+ width: 280px;+ z-index: 50;}.auth-gate__inner {- background: linear-gradient(180deg, rgba(18, 18, 26, 0.94) 0%, rgba(10, 10, 16, 0.94) 100%);- border: 1px solid rgba(255, 255, 255, 0.1);- border-radius: var(--radius-lg);- backdrop-filter: blur(18px);- -webkit-backdrop-filter: blur(18px);- padding: var(--space-md);- box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);+ background: linear-gradient(180deg, rgba(18, 18, 26, 0.94) 0%, rgba(10, 10, 16, 0.94) 100%);+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: var(--radius-lg);+ backdrop-filter: blur(18px);+ -webkit-backdrop-filter: blur(18px);+ padding: var(--space-md);+ box-shadow:+ 0 12px 40px rgba(0, 0, 0, 0.5),+ inset 0 1px 0 rgba(255, 255, 255, 0.05);}.auth-gate__eyebrow {- display: flex;- align-items: center;- gap: var(--space-xs);- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.5);- font-weight: 500;- letter-spacing: 0.08em;- text-transform: uppercase;- margin-bottom: var(--space-xs);+ display: flex;+ align-items: center;+ gap: var(--space-xs);+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.5);+ font-weight: 500;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ margin-bottom: var(--space-xs);}.auth-gate__lock {- font-size: 1rem;- opacity: 0.7;+ font-size: 1rem;+ opacity: 0.7;}.auth-gate__title {- font-family: 'Space Grotesk', 'Inter', sans-serif;- font-size: 1.15rem;- font-weight: 600;- color: #fff;- margin: 0 0 var(--space-2xs);- letter-spacing: -0.01em;+ font-family: 'Space Grotesk', 'Inter', sans-serif;+ font-size: 1.15rem;+ font-weight: 600;+ color: #fff;+ margin: 0 0 var(--space-2xs);+ letter-spacing: -0.01em;}.auth-gate__desc {- font-size: var(--text-sm);- line-height: 1.5;- color: rgba(255, 255, 255, 0.65);- margin: 0 0 var(--space-sm);+ font-size: var(--text-sm);+ line-height: 1.5;+ color: rgba(255, 255, 255, 0.65);+ margin: 0 0 var(--space-sm);}.auth-gate__actions {- display: flex;- flex-direction: column;- gap: var(--space-2xs);- margin-bottom: var(--space-sm);+ display: flex;+ flex-direction: column;+ gap: var(--space-2xs);+ margin-bottom: var(--space-sm);}.auth-gate__btn {- display: flex;- align-items: center;- justify-content: center;- padding: var(--space-xs) var(--space-sm);- border-radius: var(--radius-md);- font-size: var(--text-sm);- font-weight: 500;- text-decoration: none;- border: 1px solid rgba(255, 255, 255, 0.12);- color: rgba(255, 255, 255, 0.85);- background: rgba(255, 255, 255, 0.03);- transition: background 0.15s, border-color 0.15s, color 0.15s;+ display: flex;+ align-items: center;+ justify-content: center;+ padding: var(--space-xs) var(--space-sm);+ border-radius: var(--radius-md);+ font-size: var(--text-sm);+ font-weight: 500;+ text-decoration: none;+ border: 1px solid rgba(255, 255, 255, 0.12);+ color: rgba(255, 255, 255, 0.85);+ background: rgba(255, 255, 255, 0.03);+ transition:+ background 0.15s,+ border-color 0.15s,+ color 0.15s;}.auth-gate__btn:hover {- background: rgba(255, 255, 255, 0.08);- border-color: rgba(255, 255, 255, 0.2);- color: #fff;+ background: rgba(255, 255, 255, 0.08);+ border-color: rgba(255, 255, 255, 0.2);+ color: #fff;}.auth-gate__btn--primary {- background: #fff;- color: #0a0a10;- border-color: #fff;+ background: #fff;+ color: #0a0a10;+ border-color: #fff;}.auth-gate__btn--primary:hover {- background: rgba(255, 255, 255, 0.9);- color: #0a0a10;+ background: rgba(255, 255, 255, 0.9);+ color: #0a0a10;}.auth-gate__perks {- list-style: none;- padding: 0;- margin: 0;- border-top: 1px solid rgba(255, 255, 255, 0.06);- padding-top: var(--space-sm);+ list-style: none;+ padding: 0;+ margin: 0;+ border-top: 1px solid rgba(255, 255, 255, 0.06);+ padding-top: var(--space-sm);}.auth-gate__perks li {- font-size: var(--text-xs);- color: rgba(255, 255, 255, 0.55);- padding: var(--space-3xs) 0;- display: flex;- align-items: center;+ font-size: var(--text-xs);+ color: rgba(255, 255, 255, 0.55);+ padding: var(--space-3xs) 0;+ display: flex;+ align-items: center;}.auth-gate__perks li::before {- content: '→';- margin-right: var(--space-xs);- color: rgba(255, 255, 255, 0.4);+ content: '→';+ margin-right: var(--space-xs);+ color: rgba(255, 255, 255, 0.4);+}++@media screen and (max-width: 700px) {+ .auth-gate {+ top: auto;+ bottom: var(--space-md);+ left: var(--space-sm);+ right: var(--space-sm);+ width: auto;+ }+}++/******************************************************************************+ * Publish Modal (post-publish share UI — editor "📤 publish as embed")+ */++.publish-overlay {+ position: fixed;+ inset: 0;+ z-index: 120;+ display: flex;+ align-items: center;+ justify-content: center;+ background: rgba(0, 0, 0, 0.85);+ backdrop-filter: blur(18px);+ -webkit-backdrop-filter: blur(18px);+ animation: publish-fadein 0.2s ease;+}++@keyframes publish-fadein {+ from {+ opacity: 0;+ }+ to {+ opacity: 1;+ }+}++.publish-modal {+ width: 92vw;+ max-width: 560px;+ max-height: 85vh;+ display: flex;+ flex-direction: column;+ background: rgba(10, 10, 10, 0.96);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-lg);+ overflow: hidden;+ box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);+ color: #e0e0e0;+}++.publish-header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: var(--space-sm) var(--space-lg);+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);+ flex-shrink: 0;+}++.publish-title {+ font-size: var(--text-lg);+ font-weight: 500;+ color: #fff;+ letter-spacing: 0.03em;+}++.publish-close {+ background: none;+ border: none;+ color: rgba(255, 255, 255, 0.4);+ font-size: var(--text-2xl);+ cursor: pointer;+ padding: 0;+ line-height: 1;+ transition: color 0.2s ease;+}++.publish-close:hover {+ color: #fff;+}++.publish-body {+ padding: var(--space-lg);+ overflow-y: auto;+ flex: 1;+ min-height: 0;+}++/* ── Progress steps ──────────────────────────────────────────────────────── */++.publish-steps {+ display: flex;+ flex-direction: column;+ gap: var(--space-xs);+}++.publish-step {+ display: flex;+ align-items: center;+ gap: var(--space-sm);+ padding: var(--space-xs) var(--space-sm);+ border-radius: var(--radius-md);+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.5);+ transition:+ color 0.2s ease,+ background 0.2s ease;+}++.publish-step--active {+ color: #fff;+ background: var(--accent-soft);+}++.publish-step--done {+ color: rgba(255, 255, 255, 0.85);+}++.publish-step-dot {+ width: 18px;+ height: 18px;+ border-radius: 50%;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ font-size: 12px;+ line-height: 1;+ flex-shrink: 0;+ border: 1px solid rgba(255, 255, 255, 0.2);+ background: transparent;+ color: inherit;+ box-sizing: border-box;+}++.publish-step--done .publish-step-dot {+ background: var(--accent);+ border-color: var(--accent);+ color: #fff;+}++.publish-step--active .publish-step-dot {+ border-color: var(--accent);+ border-top-color: transparent;+ animation: publish-spin 0.9s linear infinite;+}++@keyframes publish-spin {+ from {+ transform: rotate(0deg);+ }+ to {+ transform: rotate(360deg);+ }+}++/* ── Result state (snippets) ─────────────────────────────────────────────── */++.publish-result {+ display: flex;+ flex-direction: column;+ gap: var(--space-md);+}++.publish-snippet {+ display: flex;+ flex-direction: column;+ gap: var(--space-2xs);+}++.publish-snippet-label {+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.55);+ letter-spacing: 0.02em;+}++.publish-snippet-row {+ display: flex;+ gap: var(--space-xs);+ align-items: stretch;+ min-width: 0;+}++.publish-snippet-value {+ flex: 1;+ min-width: 0;+ margin: 0;+ padding: var(--space-xs) var(--space-sm);+ background: rgba(255, 255, 255, 0.04);+ border: 1px solid rgba(255, 255, 255, 0.08);+ border-radius: var(--radius-md);+ color: #e0e0e0;+ font-family: var(--font-mono);+ font-size: var(--text-sm);+ overflow-x: auto;+ white-space: pre;+ line-height: var(--leading-tight);+}++.publish-snippet-value:focus {+ outline: 2px solid var(--accent);+ outline-offset: 1px;+}++.publish-snippet-actions {+ display: flex;+ gap: var(--space-2xs);+ flex-shrink: 0;+}++.publish-copy-btn,+.publish-open-btn {+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.1);+ color: #e0e0e0;+ padding: 0 var(--space-sm);+ border-radius: var(--radius-md);+ font-size: var(--text-sm);+ cursor: pointer;+ white-space: nowrap;+ transition:+ background 0.15s ease,+ color 0.15s ease;+}++.publish-copy-btn:hover,+.publish-open-btn:hover {+ background: var(--accent-soft);+ color: #fff;+}++.publish-copy-btn:disabled {+ color: var(--accent);+ background: var(--accent-soft);+ cursor: default;+}++/* ── Action rows (Done / Sign in / Retry / Cancel) ──────────────────────── */++.publish-actions {+ display: flex;+ justify-content: flex-end;+ gap: var(--space-sm);+ margin-top: var(--space-sm);+}++.publish-done-btn,+.publish-signin-btn,+.publish-retry-btn,+.publish-cancel-btn {+ background: rgba(255, 255, 255, 0.06);+ border: 1px solid rgba(255, 255, 255, 0.1);+ color: #e0e0e0;+ padding: var(--space-xs) var(--space-md);+ border-radius: var(--radius-md);+ font-size: var(--text-sm);+ cursor: pointer;+ transition:+ background 0.15s ease,+ color 0.15s ease,+ filter 0.15s ease;+}++.publish-done-btn,+.publish-signin-btn,+.publish-retry-btn {+ background: var(--accent);+ color: #fff;+ border-color: var(--accent);+}++.publish-done-btn:hover,+.publish-signin-btn:hover,+.publish-retry-btn:hover {+ filter: brightness(1.12);+}++.publish-cancel-btn:hover {+ background: var(--accent-soft);+ color: #fff;+}++/* ── Auth-required + error states ────────────────────────────────────────── */++.publish-auth-msg {+ margin: 0 0 var(--space-md);+ color: rgba(255, 255, 255, 0.7);+ font-size: var(--text-sm);+ line-height: var(--leading-normal);+}++.publish-error-name {+ font-family: var(--font-mono);+ font-size: var(--text-sm);+ color: #f87171;+ margin-bottom: var(--space-xs);+}++.publish-error-message {+ font-size: var(--text-sm);+ color: rgba(255, 255, 255, 0.7);+ line-height: var(--leading-normal);+ margin-bottom: var(--space-md);+ word-break: break-word;}@media screen and (max-width: 700px) {- .auth-gate {- top: auto;- bottom: var(--space-md);- left: var(--space-sm);- right: var(--space-sm);- width: auto;- }+ .publish-modal {+ width: 100vw;+ max-width: none;+ max-height: 100vh;+ border-radius: 0;+ }+ .publish-snippet-row {+ flex-direction: column;+ }+ .publish-snippet-actions {+ justify-content: flex-end;+ }}