Skip to content

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

fix(materialize): tighten the print insert and operator console layout

nirholas4d6dd5f24b40
diff --git a/src/materialize-ops.css b/src/materialize-ops.css
index 096cf4fc6..18c54bfac 100644
--- a/src/materialize-ops.css
+++ b/src/materialize-ops.css
@@ -434,6 +434,9 @@
.mo-textarea,
.mo-select {
width: 100%;
+ /* The page has no global border-box reset, so width:100% plus padding and a
+ border pushed the textarea 22px past the drawer's right edge. */
+ box-sizing: border-box;
padding: 8px 10px;
border: 1px solid var(--color-border);
border-radius: var(--radius-md, 10px);
diff --git a/src/print-insert.css b/src/print-insert.css
index b0087da00..7b321bbf2 100644
--- a/src/print-insert.css
+++ b/src/print-insert.css
@@ -2,7 +2,31 @@
Two audiences, one sheet: an operator on screen, and a sheet of card stock
coming out of a printer. The @media print block is the real deliverable, so
nothing here uses a screen-only trick (dark surfaces, backdrop filters) that
- a printer renders as a slab of toner. */
+ a printer renders as a slab of toner.
+
+ The palette is local rather than pulled from public/tokens.css on purpose:
+ this page loads no nav and no footer (it is a print target, not a site page),
+ so a token reference here would silently fall back to its light-on-light
+ default and hide the toolbar. */
+
+:root {
+ --pi-bg: #0a0a0a;
+ --pi-ink: #f4f4f5;
+ --pi-dim: #a1a1aa;
+ --pi-line: rgba(255, 255, 255, 0.16);
+ --pi-line-strong: rgba(255, 255, 255, 0.3);
+ --pi-surface: rgba(255, 255, 255, 0.05);
+ --pi-accent: #7c9cff;
+ --pi-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
+ --pi-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
+ --pi-display: system-ui, -apple-system, 'Segoe UI', sans-serif;
+}
+
+body {
+ margin: 0;
+ background: var(--pi-bg);
+ font-family: var(--pi-font);
+}
.pi-sr-only {
position: absolute;
@@ -19,17 +43,17 @@
.pi-root {
max-width: 860px;
margin: 0 auto;
- padding: var(--space-xl, 32px) var(--space-lg, 24px) var(--space-3xl, 96px);
- color: var(--ink, rgba(255, 255, 255, 0.88));
+ padding: 32px 24px 96px;
+ color: var(--pi-ink);
}
.pi-status {
- padding: var(--space-lg, 24px);
- border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
- border-radius: var(--radius-lg, 16px);
- background: var(--surface-1, rgba(255, 255, 255, 0.03));
- color: var(--ink-dim, rgba(255, 255, 255, 0.62));
- font-size: var(--text-sm, 13px);
+ padding: 24px;
+ border: 1px solid var(--pi-line);
+ border-radius: 16px;
+ background: var(--pi-surface);
+ color: var(--pi-dim);
+ font-size: 13px;
line-height: 1.6;
}
@@ -37,15 +61,15 @@
display: flex;
flex-wrap: wrap;
align-items: center;
- gap: var(--space-2, 8px);
- margin-bottom: var(--space-lg, 24px);
+ gap: 8px;
+ margin-bottom: 24px;
}
.pi-toolbar-note {
flex: 1 1 220px;
min-width: 0;
- font-size: var(--text-xs, 12px);
- color: var(--ink-dim, rgba(255, 255, 255, 0.5));
+ font-size: 12px;
+ color: var(--pi-dim);
line-height: 1.6;
}
@@ -54,12 +78,12 @@
align-items: center;
gap: 6px;
padding: 9px 14px;
- border-radius: var(--radius-pill, 999px);
- border: 1px solid var(--stroke, rgba(255, 255, 255, 0.14));
+ border-radius: 999px;
+ border: 1px solid var(--pi-line);
background: transparent;
- color: var(--ink, rgba(255, 255, 255, 0.88));
+ color: var(--pi-ink);
font: inherit;
- font-size: var(--text-sm, 13px);
+ font-size: 13px;
text-decoration: none;
cursor: pointer;
transition:
@@ -68,21 +92,21 @@
transform 0.1s ease;
}
.pi-btn:hover {
- background: var(--surface-2, rgba(255, 255, 255, 0.06));
- border-color: var(--stroke-strong, rgba(255, 255, 255, 0.24));
+ background: var(--pi-surface);
+ border-color: var(--pi-line-strong);
}
.pi-btn:active {
transform: translateY(1px);
}
.pi-btn:focus-visible {
- outline: 2px solid var(--accent, #7c9cff);
+ outline: 2px solid var(--pi-accent);
outline-offset: 2px;
}
.pi-btn--primary {
- background: var(--ink-bright, #fff);
- color: var(--bg, #0a0a0a);
+ background: var(--pi-ink);
+ color: var(--pi-bg);
border-color: transparent;
- font-weight: var(--weight-medium, 500);
+ font-weight: 500;
}
/* ── the card ─────────────────────────────────────────────────────────── */
@@ -103,7 +127,7 @@
color: #111111;
border-radius: 3mm;
border: 1px solid rgba(0, 0, 0, 0.12);
- font-family: var(--font-sans, system-ui, sans-serif);
+ font-family: var(--pi-font);
}
.pi-mark {
@@ -117,7 +141,7 @@
}
.pi-wordmark {
- font-family: var(--font-display, system-ui, sans-serif);
+ font-family: var(--pi-display);
font-size: 7mm;
font-weight: 700;
letter-spacing: -0.02em;
@@ -125,7 +149,7 @@
}
.pi-kicker {
- font-family: var(--font-mono, ui-monospace, monospace);
+ font-family: var(--pi-mono);
font-size: 2.8mm;
letter-spacing: 0.18em;
text-transform: uppercase;
@@ -135,7 +159,7 @@
.pi-body h1 {
margin: 0 0 3mm;
- font-family: var(--font-display, system-ui, sans-serif);
+ font-family: var(--pi-display);
font-size: 8mm;
line-height: 1.15;
letter-spacing: -0.02em;
@@ -143,7 +167,7 @@
.pi-edition {
margin: 0 0 6mm;
- font-family: var(--font-mono, ui-monospace, monospace);
+ font-family: var(--pi-mono);
font-size: 4.6mm;
letter-spacing: 0.02em;
}
@@ -156,7 +180,7 @@
}
.pi-facts dt {
margin: 0 0 1mm;
- font-family: var(--font-mono, ui-monospace, monospace);
+ font-family: var(--pi-mono);
font-size: 2.6mm;
letter-spacing: 0.12em;
text-transform: uppercase;
@@ -181,7 +205,7 @@
}
.pi-qr-caption {
margin: 0;
- font-family: var(--font-mono, ui-monospace, monospace);
+ font-family: var(--pi-mono);
font-size: 2.6mm;
letter-spacing: 0.06em;
color: #444444;
@@ -199,7 +223,7 @@
gap: 6mm;
}
.pi-foot code {
- font-family: var(--font-mono, ui-monospace, monospace);
+ font-family: var(--pi-mono);
overflow-wrap: anywhere;
}
@@ -211,6 +235,13 @@
}
@media print {
+ /* Site-wide scripts inject their own chrome into every page (the Cmd+K
+ palette, the locale switcher, the tour prompt). None of it belongs on a
+ sheet of card stock, and this page cannot opt out of the injection, so the
+ print sheet hides everything that is not the card. */
+ body > *:not(.pi-root) {
+ display: none !important;
+ }
.pi-toolbar,
.pi-status {
display: none !important;