Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
docs(design-system): merge handoff bundle, refresh stale claims
trohitgc963070ff44e
diff --git a/CLAUDE.md b/CLAUDE.mdindex fde275a7..910e6571 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -14,7 +14,7 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire| **[Temporal Cleanup & Resilience Plan (Waves 15-18)](./docs-internal/TEMPORAL_CLEANUP_AND_RESILIENCE_PLAN.md)** | RFC for the four forward waves: 15 dead-code retirement (Redis-Streams branch in event_waiter, APScheduler cron stack, orphaned `connection_status` factory — ~556 LOC), 16 per-queue task routing activation (`TemporalWorkerPool` + `TEMPORAL_WORKER_POOL_ENABLED` gate), 17 resilience hardening (cron `catchup_window`, one-shot LLM-step retry, SDK interceptors, `DEPLOYMENT_MODE`, periodic heartbeats), 18 worker performance tuning (per-queue rate limits, sticky cache, poller autoscaling, resource-based slot supplier). Ship order, rollback channels, verified line citations. || **[Node Allowlist](./docs-internal/node_allowlist.md)** | Single-config UI visibility — `server/config/node_allowlist.json` controls which nodes / credential categories / skill folders show in the UI. Five lists with two enforcement tiers (mode-gated allowlist + absolute blocklist). `useNodeAllowlist` hook exposes `isVisible` / `isBlocked` / `isAllowed` / `isCredentialCategoryDisabled` / `isSkillFolderDisabled`. Adding a new disabled domain = single JSON edit, no code change. || **[Theme System](./docs-internal/theme_system.md)** | 12-way visual theme system — 2 base (light, dark) + 5 utopian (renaissance, greek, edo, steampunk, atomic) + 5 dystopian (cyber, wasteland, rot, plague, surveillance) — driven by `<html data-theme>` + per-theme CSS files in `client/src/themes/`. Token taxonomy (surface / fg / border / accent / typography / motion) in **hex + `color-mix()`**; `@theme inline` bridge maps `--color-X: var(--X)` (no `hsl()` wrapper); per-theme files own the colour hex, base.css owns the shared `--tint-*` alpha scale; action role tokens (incl. `-ink` readable text), **per-theme `--code-*` syntax tokens** (tier 6 — the code editor, console/output JSON viewers, and chat code blocks paint in each theme's own palette: keyword→trigger, string→success, number→agent, function→model, on an adaptive dark/light code surface; replaced the global dracula `--prism-*` block + dead `getPrismTokenCSS`; the `OutputPanel` JSON viewer reads the same vars), per-theme `--pulse-keyframe` animation system + `.opencompany-*` helpers in `animations.css`, decorative-layer wrappers (`.app-frame` / `.canvas-host` / `.modal-frame`), per-component decorative ornaments (panel textures + canvas decorations + node pseudo-element overlays + theme-specific keyframes), **canvas-node visual contract via `--node-color` CSS custom property** (no inline `background` / `border` on node components — base.css + per-theme CSS owns visuals; `NodeStyle` helper type at [types/NodeTypes.ts](./client/src/types/NodeTypes.ts) makes the inline custom-prop typecheck-clean), **`--node-pulse-color` separate from `--node-color`** so executing-node glow uses each theme's highest-contrast accent regardless of plugin accent (Cyber neon cyan, Surveillance REC red, Renaissance ultramarine, etc.), **`data-page-hidden` animation pause** (toggled by Dashboard's `visibilitychange` listener; base.css declares `html[data-page-hidden] *, *::before, *::after { animation-play-state: paused !important }` to prevent compositor stall on tab return), **per-theme icon glyph system** (290 SVGs across 29 keys × 10 themes via [themedGlyphs.ts](./client/src/assets/icons/themedGlyphs.ts) + theme-aware [NodeIcon.tsx](./client/src/assets/icons/NodeIcon.tsx)), **per-theme canvas-grid + custom cursors** via `--canvas-grid` / `--cursor-default` slots, **decorative HTML primitives** (`<SvgFilterDefs>` mounting `#ink-blot` / `#noise` / `#crt` filter IDs at app root, `<DropCap>` wrapper for Renaissance ornament rule), **parameter panel migrated to Tailwind tokens** (no `useAppTheme()` reads; section headers carry the display-typography triplet; raw `<Button>` swapped to `<ActionButton intent>`), **per-theme scrollbar webkit rules** in all 12 themes, 9-event WebAudio sound system (10 packs via `--sound-pack` token + `useSound()` hook + global hover delegate + sonner toast monkey-patch + `withSound()` HOC + `Sounds.unlock()` gesture-unlock for AudioContext autoplay-policy compliance), `@media (prefers-reduced-motion: reduce)` accessibility, 30 ms throttle on `type` / `hover`, migration recipe, anti-patterns. Read this before adding a new theme, migrating a component to the new contract, or adding a canvas-node component. |-| **[Design System Bundle](./docs-internal/design-system/IMPLEMENTATION.md)** | Canonical, vendored design-system reference (extracted from this repo; see its `IMPLEMENTATION.md` for the contract). Tokens are **hex + `color-mix()`** (`tokens/{colors,typography,spacing,motion,fonts,base}.css`) — the format the live codebase standardizes on. Includes 34 reference components (`components/`, inline-style reference only — recreate in Tailwind/shadcn idioms), full-app UI kit (`ui_kits/opencompany/index.html`), and 12-theme docs (`guidelines/THEMES.md`, `reference/themes/`). Copy token values verbatim; do not re-derive by eye. Pairs with [Theme System](./docs-internal/theme_system.md). |+| **[Design System Bundle](./docs-internal/design-system/IMPLEMENTATION.md)** | Canonical, vendored design-system reference (extracted from this repo; see its `IMPLEMENTATION.md` for the contract). Tokens are **hex + `color-mix()`** (`tokens/{colors,typography,spacing,motion,fonts,base}.css`) — the format the live codebase standardizes on. Includes 34 reference components (`components/`, inline-style reference only — recreate in Tailwind/shadcn idioms), full-app UI kit (`ui_kits/opencompany/index.html`), 12-theme docs (`guidelines/THEMES.md`), **the merged handoff brief (`HANDOFF.md` — glow-ladder traps, step-edge contract, toolbar layout traps, canvas-layer asymmetries, plus the recorded product amendments)**, and **the panel×theme fidelity target (`reference-mockup/Panel Theme Matrix.dc.html` — 17 panels × 12 themes, open in a browser)**. `reference/themes/` no longer vendors CSS snapshots — it points at the authoritative [client/src/themes/](./client/src/themes/). Copy token values verbatim; do not re-derive by eye. Pairs with [Theme System](./docs-internal/theme_system.md). || **[Schema Source of Truth RFC](./docs-internal/schema_source_of_truth_rfc.md)** | Backend is SSOT for node schemas, visual metadata, handlers, palette metadata, icons. Plugin pattern: one `BaseNode` subclass in `server/nodes/<group>/<plugin>/__init__.py`. Wire format: `asset:<key>` / `<lib>:<brand>` / URL / emoji. Endpoint: `/api/schemas/nodes/{type}/spec.json`. Live invariant total via `pytest --collect-only`. || **[Plugin System (Wave 11)](./docs-internal/plugin_system.md)** | Class-based plugin-first architecture. `BaseNode` / `ActionNode` / `TriggerNode` / `ToolNode` + `@Operation` decorator. Pydantic `Params`/`Output`. Declarative `Routing` DSL + `Connection` facade (Nango pattern; `request()` supports `json` / `data` / `files` — the last for multipart uploads, threaded through the auth-retry rebuild). `Credential` subclasses live in each node folder's `_credentials.py` (or inline for single-use); live count via `len(services.plugin.credential.CREDENTIAL_REGISTRY)` — 30 at time of writing, do not hand-maintain. `TaskQueue` constants route to Temporal worker pools. Plugins live across 9 queues (live count via `glob server/nodes/**/__init__.py`); handler bodies fully inlined (`services/handlers/` shrank 12.8K → 1.1K LOC across 16 → 4 files; only cross-cutting orchestration remains: `tools.py` AI-tool dispatch + agent delegation, `triggers.py` generic trigger-node handler, `todo.py` writeTodos shim — `google_auth.py` was retired into `nodes/google/_auth_helper.py`). **Wave 11.H added "self-contained plugin folders"** — up to seven generic registries (`ws_handler_registry`, `register_router`, `event_waiter.{register_filter_builder,register_trigger_precheck}`, `status_broadcaster.register_service_refresh`, `node_output_schemas.register_output_schema`, `edge_walker.register_agent_context_builder`) so rich plugins like telegram own their entire surface area without core-services edits. || **[Nodes Cookbook](./server/nodes/README.md)** | 5-minute recipe + folder map + shared helpers (`_base.py` / `_inline.py` per domain) + shared credentials + **canonical folder-per-plugin shape (telegram is the reference implementation)** + contract invariants + common pitfalls. Lives next to the plugin files. |diff --git a/docs-internal/design-system/HANDOFF.md b/docs-internal/design-system/HANDOFF.mdnew file mode 100644index 00000000..cbeefd4a--- /dev/null+++ b/docs-internal/design-system/HANDOFF.md@@ -0,0 +1,301 @@+# Handoff: OpenCompany Theme System (12 themes × 17 panels)++> **Merged copy (2026-08)** — this is the handoff brief from the external+> `design_handoff_theme_system/` bundle, merged into+> `docs-internal/design-system/` as the canonical location. Path mapping:+> the bundle's `themes/` is byte-identical to the live+> [`client/src/themes/`](../../client/src/themes/) (which is authoritative);+> its `tokens/` / `components/` / `guidelines/` / `ui_kits/` are this+> directory's same-named folders; its `_source_docs/` are this directory's+> root files; `reference-mockup/` lives here at+> [`reference-mockup/`](./reference-mockup/).+>+> **Product amendments** (decisions recorded after the fidelity pass —+> where this brief and the product deliberately differ, the amendment+> wins):+>+> 1. **Themes CSS is authoritative over the mockup.** The shared 1.4s+> `--pulse-duration` token drives both node families (the mockup's+> synthesized 1.5s square-node duration and its `--accent-text-mix`+> variable are mockup-only inventions, not product tokens).+> 2. **Fonts: legibility substitutions ADOPTED.** Cyber ships Space Mono+> and Plague ships Cinzel as their display faces (see §Legibility note+> below — the recommendation was taken).+> 3. **Toolbar: the one shrinkable group is the workflow-name chip.**+> The live toolbar has no wordmark; long workflow names are the real+> overflow source, so the name chip carries `min-w-0 flex-1 truncate`+> and every other cluster is pinned `shrink-0`.+> 4. **Edges:** resting edges follow this brief (pale neutral+> `--edge-stroke`, dashed, orthogonal step); during execution the+> status classes recolor with semantic tokens (executing / completed /+> error / pending / memory- / tool- / skill-active) — runtime feedback+> is functionality this product keeps. A condition-carrying+> `ConditionalEdge` highlights in `--accent` — a sanctioned deviation.+> 5. **Console Dock is a hybrid**, not plain three tabs: Chat / Console /+> Terminal tabs plus a split-view toggle that docks Chat beside the+> Console/Terminal pane (simultaneous chat + logs during agent runs is+> load-bearing functionality).+> 6. **Themed glyphs: ten themes ship their own set** (renaissance, cyber,+> greek, edo, steampunk, atomic, wasteland, rot, plague, surveillance);+> only Light and Dark fall through to lucide. The "eight themes" claim+> later in this brief is stale.++## Overview++OpenCompany is a desktop workflow canvas for building agent workflows. It ships **12 complete visual themes** — two neutral base themes plus ten "world" skins (Renaissance, Greek, Edo, Steampunk, Atomic, Cyber, Wasteland, Rot, Plague, Surveillance). Every theme reskins the *entire* application: surfaces, type (a different display/body/mono trio per theme), radii, iconography, canvas background texture, and motion.++This bundle contains the design system's real source files plus a working reference mockup that renders **every panel in every theme on one canvas**, so you can diff your implementation against the intended result panel-by-panel.++The theming architecture is the whole point: a component is written **once**, against tokens, and picks up all 12 skins for free. If you find yourself writing `if (theme === 'cyber')` in a component, the token layer is missing something — add the token instead.++## About the Design Files++The files in `reference-mockup/` are a **design reference created in HTML** — a prototype showing intended look and behavior, not production code to copy. Recreate the designs in the target codebase's existing environment (this app is React + TypeScript + Tailwind + React Flow) using its established patterns.++The files in `themes/`, `tokens/`, `components/`, and `guidelines/` are **the real design system**, lifted verbatim from the repo. Those are not references — they are the source of truth, and the CSS in `themes/` and `tokens/` can be used directly.++## Fidelity++**High-fidelity.** Exact colors, type, spacing, radii, motion curves and glow values throughout, all traceable to the CSS in this bundle. Recreate pixel-perfectly.++---++## What's in the bundle++```+design_handoff_theme_system/+├─ themes/ ← 14 CSS files. THE SOURCE OF TRUTH. Ship these.+│ base.css (contract) + animations.css + 12 theme files+├─ tokens/ ← 7 CSS files: the distilled token layer, well commented.+│ Read these first — they explain the system.+├─ components/ ← 106 files. The component library, grouped by family+│ (buttons/ canvas/ display/ feedback/ forms/ icons/ panels/).+│ Each component ships .jsx + .d.ts + .prompt.md.+│ The .prompt.md files are the per-component contracts —+│ read them before implementing that component.+├─ guidelines/ ← THEMES.md + ANIMATIONS.md (prose contracts) and 21+│ standalone HTML specimen pages (type scale, radii,+│ node roles, shadows, all-theme comparisons).+├─ ui_kits/opencompany/ ← A runnable recreation of the app shell+│ (App / CanvasView / Toolbar / Panels / ConsoleDock).+├─ reference/themes/ ← The design system's own distilled copy of the 12 themes.+│ Useful for reading; `themes/` is authoritative.+├─ assets/ ← Product canvas screenshot + 6 architecture diagrams.+├─ reference-mockup/ ← The panel × theme matrix (open the .dc.html in a browser).+└─ _source_docs/ ← DS readme, IMPLEMENTATION.md, SKILL.md, manifest,+ and _adherence.oxlintrc.json (lint rules that enforce+ token usage — worth wiring into CI).+```++**Read in this order:** `tokens/*.css` → `guidelines/THEMES.md` → `themes/base.css` → one theme file (`themes/cyber.css` is the most extreme) → `components/*/**.prompt.md` for whatever you're building.++---++## Architecture: a three-layer cascade++1. **`tokens/`** — names the design decisions (`--bg-panel`, `--node-agent`, `--dur-fast`). Light values live in `:root`; dark overrides live under `.dark, [data-theme="dark"]`.+2. **`themes/base.css`** — the structural contract every theme must satisfy: which tokens exist, the node glow ladder, the canvas layer stack, motion defaults.+3. **`themes/<name>.css`** — one theme = one `[data-theme="x"]` block that re-declares the token set. Themes may add signature keyframes and ornament layers, but must not restyle components directly.++Theme switching is a single attribute on `<html>`: `data-theme="cyber"`. Nothing else changes.++---++## Design tokens++### Surfaces (light `:root` → dark)+| Token | Light | Dark |+|---|---|---|+| `--bg-app` | `#f5f7fa` | `#0d0f13` |+| `--bg-panel` | `#fafbfc` | `#15171c` |+| `--bg-canvas` | `#ffffff` | `#0d0f13` |+| `--bg-elevated` | `#ffffff` | `#1b1e25` |+| `--bg-input` | `#ffffff` | `#15171c` |+| `--surface-card` | `#ffffff` | `#1b1e25` |+| `--bg-hover` | `rgba(0,0,0,.04)` | `rgba(255,255,255,.05)` |+| `--bg-active` | `rgba(0,0,0,.06)` | `rgba(255,255,255,.08)` |+| `--bg-overlay` | `rgba(0,0,0,.45)` | `rgba(0,0,0,.7)` |++### Foreground & borders+| Token | Light | Dark |+|---|---|---|+| `--fg-default` | `#1a1d21` | `#e8eaed` |+| `--fg-muted` | `#4b5563` | `#9aa1ac` |+| `--fg-faint` | `#9ca3af` | `#6b7280` |+| `--border-default` | `#d1d5db` | `#2b2f37` |+| `--border-strong` | `#9ca3af` | `#3c424c` |+| `--border-focus` | `#3b82f6` | `#3b82f6` |++### Semantic status+`--success` `#059669`→`#22c55e` · `--warning` `#d97706`→`#f59e0b` · `--destructive` `#dc2626`→`#ef4444` · `--info` `#0891b2`→`#38bdf8`++### Action intents (toolbar soft-tinted buttons)+Six intents — `run` (deploy), `stop` (destructive), `save` (commit), `config` (settings), `secret` (credentials), `tools` (palette). Each has four tokens plus an ink alias:++```+--action-run the raw hue (Dracula green #50fa7b)+--action-run-soft color-mix(… 15%, transparent) ← the fill+--action-run-hover color-mix(… 25%, transparent)+--action-run-border color-mix(… 60%, transparent) ← the border+--action-run-ink #15803d light / #50fa7b dark ← the TEXT color+```++**Use `-ink` for text, never the raw hue.** The vivid Dracula palette is bright enough to be text on dark grounds but fails contrast on light ones; the ink aliases resolve per mode. This is the single easiest thing to get wrong.++### Node role colors (canvas)+`--node-agent` purple · `--node-model` cyan · `--node-tool` green · `--node-trigger` pink · `--node-workflow` orange. Each also has `-soft` (8%) and `-border` (30%) variants. Plus `--node-pulse-color` — see the glow ladder below.++### Typography+Base **14px** (dense desktop tool). Scale: `--text-2xs` 11 · `--text-xs` 12 · `--text-sm` 13 · `--text-base` 14 · `--text-md` 16 · `--text-lg` 18 · `--text-xl` 24 · `--text-2xl` 32 · `--text-3xl` 44.+Weights 400/500/600/700. Leading 1.2 / 1.5 / 1.65.+Base fonts: **Geist** (sans/display/body), **JetBrains Mono** (mono).++Three tokens carry the themed typography and are the reason components need no theme branching:+```+--font-display --font-body --font-mono+--type-uppercase none | uppercase+--type-tracking-display 0 | 0.04em … 0.18em+```+Every theme re-declares all five. A heading is written once as `font-family: var(--font-display); text-transform: var(--type-uppercase); letter-spacing: var(--type-tracking-display)`.++### Spacing, radii, chrome+Space scale 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 (`--space-1`…`--space-8`).+Radii `--radius-sm` 4 · `--radius-md` 6 · `--radius-lg` 8 · `--radius-xl` 12 · `--radius-node` 10 · `--radius-pill` 999. Themes override these wholesale — Greek/Edo/Cyber/Wasteland/Plague/Surveillance go to **0** across the board.+Fixed chrome: `--h-toolbar` 48 · `--h-statusbar` 24 · `--h-control` 32 · `--w-sidebar` 280 · `--w-palette` 320.++### Shadows & motion+`--shadow-card`, `--shadow-card-hover`, `--shadow-modal` (all darker in dark mode).+`--dur-fast` 90ms · `--dur-default` 180ms · `--dur-slow` 320ms · `--ease-default` `cubic-bezier(.2,.7,.3,1)` · `--ease-emphasis` `cubic-bezier(.6,-.05,.3,1.4)`.+**Themes override durations and easing, not just colors** — Cyber runs 60/120/240 with `steps()` glitch easing, Rot drifts at 140/320/680. Personality lives in the curve. See `guidelines/ANIMATIONS.md`.++---++## The 12 themes++| Theme | Family | Character | Display / Body / Mono |+|---|---|---|---|+| Light | base | grey-blue paper workspace | Geist / Geist / JetBrains Mono |+| Dark | base | neutral slate + Dracula neon | Geist / Geist / JetBrains Mono |+| Renaissance | utopian | illuminated codex, gilded | Cinzel / Cormorant Garamond / IM Fell English |+| Greek | utopian | sun-bleached marble agora | Cinzel / Cormorant Garamond / Courier Prime |+| Edo | utopian | washi paper + sumi-e ink | Shippori Mincho ×2 / JetBrains Mono |+| Steampunk | utopian | brass, copper, riveted leather | IM Fell English SC / IM Fell English / Special Elite |+| Atomic | utopian | 1962 Eames optimism | Bevan / Lato / Space Mono |+| Cyber | dystopian | Neuromancer night market | *see note* / JetBrains Mono ×2 |+| Wasteland | dystopian | irradiated scrap metal | Special Elite ×2 / VT323 |+| Rot | dystopian | moss-overgrown crypt | Pirata One / EB Garamond / JetBrains Mono |+| Plague | dystopian | 1349 quarantine broadsheet | *see note* / EB Garamond / Special Elite |+| Surveillance | dystopian | 1970s panopticon control room | Anonymous Pro / IBM Plex Mono ×2 |++**Legibility note (a recommendation, not a spec change):** Cyber ships **Major Mono Display** and Plague ships **UnifrakturCook** as their display faces. Both are effectively unreadable at UI sizes — Major Mono renders lowercase as sparse scattered fragments at 13px, and blackletter under `uppercase` + `.06em` tracking is close to unparseable. The reference mockup substitutes **Space Mono** and **Cinzel** respectively, which hold the same voice and stay legible. Decide whether to carry that substitution into the product; if you keep the originals, restrict them to large headings only.++---++## The node glow ladder++Defined in `themes/base.css`. Getting this right is most of the canvas's quality. Five states:++| State | Treatment |+|---|---|+| **Resting** | `box-shadow: 0 2px 8px color-mix(in srgb, <node-color> 18%, transparent)` — a quiet drop shadow. **No halo.** |+| **Hover** | `translateY(-1px)` + `0 4px 14px color-mix(… 28%, transparent)`, transitioned on `--dur-fast` / `--ease-default` |+| **Selected** | 1px accent ring + `0 4px 14px color-mix(… 32%, transparent)`, border goes to full strength |+| **Executing** | the theme's own `--pulse-keyframe`, driven by `--node-pulse-color`. Timing: `.node` **1.4s**, `.sq-node-box` **1.5s** |+| **Success / error** | `0 0 0 1px <semantic>, 0 0 14px color-mix(in srgb, <semantic> 60%, transparent)` |++Three traps, all of which I hit:++1. **The halo belongs to the pulse and to outcome states — not to the resting node.** A permanent accent halo on every node reads as "everything is running."+2. **A `box-shadow` keyframe overwrites any static `box-shadow` every frame.** So a `.node.selected` ring is invisible on an executing node. Don't combine the two states; pick one.+3. **An author `!important` hover shadow outranks a running animation and freezes the pulse.** Animated nodes must get **transform-only** hover; only static nodes get the hover shadow.++Also: `--node-pulse-color` — not the node's own accent — drives the pulse, so it stays legible on Renaissance vellum and Cyber's near-black void alike. Status pips follow `data-status`: executing/waiting take the node color + a 6px halo and blink; success/error take their semantic token.++---++## The canvas background++Three stacked layers, bottom to top:++1. **`--bg-canvas`** — the base fill.+2. **The `.canvas` gradient stack** — per-theme atmosphere (Renaissance's darkening vignette, Edo's sumi-e wash at 80%/90%, Atomic's five confetti dots, Steampunk's copper rivet-heads, Rot's two amber decay pools).+3. **`--canvas-grid`** — the pattern. **Eight of the ten skins define this as an SVG data-url, not a gradient:** Greek's key meander (80px tile), Steampunk's rivets, Wasteland's cracks (200px), Renaissance's fleur-de-lis, Plague's quarantine X's (240px), Rot's lattice, Atomic's starburst (160px), Surveillance's CCTV corner brackets + centre reticle.++Two asymmetries worth knowing, because they look like bugs: **Edo has no `--canvas-grid` at all** (only the wash), and **Greek, Plague, Wasteland and Surveillance have no gradient stack** (pattern straight over `--bg-canvas`). Don't invent the missing layer for symmetry.++Cyber additionally overlays CRT scanlines and a rolling scan band; Surveillance's reticle arrives *inside* its grid SVG — don't draw a second one.++---++## Panels to implement (17)++Each is in the reference mockup, rendered in all 12 themes.++| # | Panel | Size | Source |+|---|---|---|---|+| 1 | Workflow Sidebar | 280px | `ui/WorkflowSidebar.tsx` |+| 2 | Component Palette | 320px | `ui/ComponentPalette.tsx` |+| 3 | Node Configuration | 3-column modal | `ParameterPanel.tsx` |+| 4 | Settings | modal | `ui/SettingsPanel.tsx` |+| 5 | API Credentials | modal | `credentials/CredentialsModal.tsx` |+| 6 | Console Dock | tabbed | `ui/ConsolePanel.tsx` |+| 7 | Output Panel | — | `output/OutputPanel.tsx` |+| 8 | Input Data Panel | 350px | `ui/InputNodesPanel.tsx` |+| 9 | Context Panel | — | `parameterPanel/ContextPanel.tsx` |+| 10 | Memory Tool Panel | — | `parameterPanel/MemoryToolPanel.tsx` |+| 11 | Task Manager Panel | — | `parameterPanel/TaskManagerPanel.tsx` |+| 12 | Team Monitor Panel | — | `parameterPanel/TeamMonitorPanel.tsx` |+| 13 | Process Manager Panel | 9-col table | `parameterPanel/ProcessManagerPanel.tsx` |+| 14 | Gallery Panel | grid ⇄ list | `parameterPanel/GalleryPanel.tsx` |+| 15 | Toolbar + Status Bar | 48 + 24px | `ui/TopToolbar.tsx`, `StatusBar` |+| 16 | Node Canvas | — | `Dashboard.tsx`, `SquareNode.tsx` |+| 17 | Motion + Animations | — | `tokens/animations.css` |++**Canvas edges are React Flow `step` edges** — dashed orthogonal runs with right-angle corners in one pale neutral stroke. Not beziers.++**Status bar** field set: `● ONLINE | WF: <name> | NODES: n | THEME: <name> | <clock>`.++---++## Layout traps under themed typography++The skins that use `uppercase` + wide tracking (Cyber at `.18em`, Greek at `.18em`, Renaissance/Steampunk/Wasteland/Surveillance at `.10em`) make **every label substantially wider** than in Light/Dark. Two consequences:++- **Pin your toolbar clusters.** The wordmark, workflow-name chip, mode toggle and action cluster all need `flex: none`; leave exactly one group (File/Edit/View) shrinkable. Without this the mode toggle collapses to a sliver in Cyber and Atomic.+- **Test the widest theme, not the default.** Anything that fits in Light will overflow somewhere. Cyber and Greek are the stress cases.++Also: icons are **28px** (`h-7 w-7`) everywhere. Eight themes ship their own glyph set; Light, Dark, Plague and Surveillance fall through to lucide.++---++## Interactions & state++- **Theme switch** — `data-theme` on `<html>`; persist the choice.+- **Node select** — click sets selected state (ring + lift). Only one at a time.+- **Node execute** — pulse runs for the duration of the step, then resolves to success or error glow.+- **Panel tabs** (Console: Chat / Console / Terminal) — plain tab state.+- **Palette search** — filters sections live; empty state when no match.+- **Settings** — switches and sliders write through immediately (auto-save interval 10–300s, compaction ratio 5–95%).+- **Gallery** — grid ⇄ list toggle.+- **Reduced motion** — honor `prefers-reduced-motion`; the pulse and all ornament animations should stop.++---++## Suggested implementation order++1. Wire the token layer + `themes/base.css`, get Light and Dark correct. **Do not move on until a component has zero hardcoded colors.**+2. Add one extreme skin (Cyber) — it will expose every missing token, especially in type and radii.+3. Build the panels against tokens, checking each against the reference mockup.+4. Add the canvas: node glow ladder first, then step edges, then the background stack.+5. Layer in the remaining nine themes — mostly declarative once steps 1–3 are honest.+6. Wire `_source_docs/_adherence.oxlintrc.json` into CI to keep hardcoded values from creeping back.++## Assets++`assets/product-canvas-screenshot.png` — the real running canvas; the fidelity target for node/edge rendering.+`assets/diagrams/*.svg` — six architecture diagrams (node anatomy, execution flow, AI agent routing, system overview, default workflows, how-it-works).++## Files++- `reference-mockup/Panel Theme Matrix.dc.html` — open in a browser. Left rail picks the panel; header filters by theme family (All 12 / Base 2 / Utopian 5 / Dystopian 5), zooms, and toggles motion. Interactions are shared across themes on purpose: type in one palette search or toggle one switch and all 12 respond, so you can compare the same state across skins.+- `reference-mockup/support.js` — runtime for the above; keep it beside the HTML.diff --git a/docs-internal/design-system/reference-mockup/Panel Theme Matrix.dc.html b/docs-internal/design-system/reference-mockup/Panel Theme Matrix.dc.htmlnew file mode 100644index 00000000..07c2b10b--- /dev/null+++ b/docs-internal/design-system/reference-mockup/Panel Theme Matrix.dc.html@@ -0,0 +1,1829 @@+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<script src="./support.js"></script>+</head>+<body>+<x-dc>+<helmet data-dc-atomics>+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Bevan&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:wght@400;500;600;700&family=Courier+Prime:wght@400;700&family=EB+Garamond:wght@400;500;600&family=Geist:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IM+Fell+English+SC&family=IM+Fell+English:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700;900&family=Pirata+One&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Special+Elite&family=VT323&display=swap">+<style>+ *{box-sizing:border-box}+ body{margin:0;background:#0d0f13;color:#e8eaed;font-family:'Geist',system-ui,sans-serif;-webkit-font-smoothing:antialiased}+ a{color:#8be9fd;text-decoration:none}+ a:hover{color:#bd93f9}+ ::-webkit-scrollbar{width:10px;height:10px}+ ::-webkit-scrollbar-track{background:#15171c}+ ::-webkit-scrollbar-thumb{background:#3c424c;border-radius:6px}+ @keyframes ocpip{0%,100%{opacity:1}50%{opacity:.4}}+ @keyframes opencompany-pip-blink{0%,100%{opacity:1}50%{opacity:.45}}+ @keyframes ocspin{to{transform:rotate(360deg)}}+ @keyframes ocslide{0%{transform:translateX(0)}100%{transform:translateX(56px)}}+ @keyframes node-pulse{+ 0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--node-pulse-color) 80%,transparent),0 0 14px 2px color-mix(in srgb,var(--node-pulse-color) 50%,transparent),0 0 28px 4px color-mix(in srgb,var(--node-pulse-color) 25%,transparent)}+ 50%{box-shadow:0 0 0 12px color-mix(in srgb,var(--node-pulse-color) 45%,transparent),0 0 32px 8px color-mix(in srgb,var(--node-pulse-color) 65%,transparent),0 0 56px 16px color-mix(in srgb,var(--node-pulse-color) 30%,transparent)}}+ @keyframes ocpulse{+ 0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--node-pulse-color) 80%,transparent),0 0 14px 2px color-mix(in srgb,var(--node-pulse-color) 50%,transparent)}+ 50%{box-shadow:0 0 0 10px color-mix(in srgb,var(--node-pulse-color) 40%,transparent),0 0 28px 6px color-mix(in srgb,var(--node-pulse-color) 60%,transparent)}}+ @keyframes ren-pulse-exec{+ 0%,100%{box-shadow:0 0 0 1px var(--node-pulse-color),0 0 10px 1px color-mix(in srgb,var(--node-pulse-color) 40%,transparent)}+ 50%{box-shadow:0 0 0 2px var(--node-pulse-color),0 0 22px 5px color-mix(in srgb,var(--node-pulse-color) 60%,transparent)}}+ @keyframes ren-flicker{0%,100%{opacity:.5}50%{opacity:.8}}+ @keyframes cyber-pulse-exec{+ 0%,49%{box-shadow:0 0 0 1px var(--node-pulse-color),0 0 10px var(--node-pulse-color)}+ 50%,100%{box-shadow:0 0 0 1px var(--node-pulse-color),0 0 26px var(--node-pulse-color),0 0 44px color-mix(in srgb,var(--node-pulse-color) 50%,transparent)}}+ @keyframes cyber-blink{0%,49%{opacity:1}50%,100%{opacity:.4}}+ @keyframes cyber-flicker{0%,92%,100%{opacity:1}93%{opacity:.88}94%{opacity:1}96%{opacity:.92}}+ @keyframes cyber-roll{0%{transform:translateY(-100%)}100%{transform:translateY(900%)}}+ @keyframes surv-pulse-exec{+ 0%,49%{box-shadow:0 0 0 1px var(--node-pulse-color),0 0 6px color-mix(in srgb,var(--node-pulse-color) 40%,transparent)}+ 50%,100%{box-shadow:0 0 0 1px var(--node-pulse-color),0 0 18px color-mix(in srgb,var(--node-pulse-color) 70%,transparent)}}+ @keyframes surv-blink{50%{opacity:.2}}+ @keyframes trigger-listening{+ 0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--node-pulse-color) 0%,transparent),0 0 9px 1px color-mix(in srgb,var(--node-pulse-color) 38%,transparent)}+ 50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--node-pulse-color) 20%,transparent),0 0 20px 4px color-mix(in srgb,var(--node-pulse-color) 55%,transparent)}}+ @keyframes trigger-bolt{0%,100%{opacity:.6;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}+ @media (prefers-reduced-motion:reduce){*{animation:none !important}}+</style>+</helmet>++<div style="min-height:100vh;display:flex;flex-direction:column;background:#0d0f13">++ <header style="flex:none;display:flex;align-items:center;gap:20px;padding:0 22px;height:56px;border-bottom:1px solid #2b2f37;background:#15171c;position:sticky;top:0;z-index:20">+ <div style="display:flex;align-items:baseline;gap:10px">+ <span style="font-size:15px;font-weight:600;letter-spacing:-.01em">OpenCompany · panel × theme matrix</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">17 PANELS × 12 THEMES · {{ selName }}</span>+ </div>+ <div style="display:flex;align-items:center;gap:6px;margin-left:auto">+ <span style="font:500 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.1em;color:#a3abb8">FAMILY</span>+ <button type="button" onClick="{{ setAll }}" style="position:relative;font:500 11px/1 'Geist',sans-serif;padding:6px 11px;border-radius:6px;cursor:pointer;background:transparent;border:1px solid #3c424c;color:#9aa1ac">+ <sc-if value="{{ famIs.all }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;inset:-1px;border-radius:6px;background:rgba(139,233,253,.14);border:1px solid rgba(139,233,253,.5)"></span></sc-if>+ <sc-if value="{{ famIs.all }}" hint-placeholder-val="{{ true }}"><span style="position:relative;color:#8be9fd">All 12</span></sc-if>+ <sc-if value="{{ famNot.all }}"><span style="position:relative">All 12</span></sc-if>+ </button>+ <button type="button" onClick="{{ setBase }}" style="position:relative;font:500 11px/1 'Geist',sans-serif;padding:6px 11px;border-radius:6px;cursor:pointer;background:transparent;border:1px solid #3c424c;color:#9aa1ac">+ <sc-if value="{{ famIs.base }}"><span style="position:absolute;inset:-1px;border-radius:6px;background:rgba(139,233,253,.14);border:1px solid rgba(139,233,253,.5)"></span></sc-if>+ <sc-if value="{{ famIs.base }}"><span style="position:relative;color:#8be9fd">Base 2</span></sc-if>+ <sc-if value="{{ famNot.base }}" hint-placeholder-val="{{ true }}"><span style="position:relative">Base 2</span></sc-if>+ </button>+ <button type="button" onClick="{{ setUto }}" style="position:relative;font:500 11px/1 'Geist',sans-serif;padding:6px 11px;border-radius:6px;cursor:pointer;background:transparent;border:1px solid #3c424c;color:#9aa1ac">+ <sc-if value="{{ famIs.uto }}"><span style="position:absolute;inset:-1px;border-radius:6px;background:rgba(139,233,253,.14);border:1px solid rgba(139,233,253,.5)"></span></sc-if>+ <sc-if value="{{ famIs.uto }}"><span style="position:relative;color:#8be9fd">Utopian 5</span></sc-if>+ <sc-if value="{{ famNot.uto }}" hint-placeholder-val="{{ true }}"><span style="position:relative">Utopian 5</span></sc-if>+ </button>+ <button type="button" onClick="{{ setDys }}" style="position:relative;font:500 11px/1 'Geist',sans-serif;padding:6px 11px;border-radius:6px;cursor:pointer;background:transparent;border:1px solid #3c424c;color:#9aa1ac">+ <sc-if value="{{ famIs.dys }}"><span style="position:absolute;inset:-1px;border-radius:6px;background:rgba(139,233,253,.14);border:1px solid rgba(139,233,253,.5)"></span></sc-if>+ <sc-if value="{{ famIs.dys }}"><span style="position:relative;color:#8be9fd">Dystopian 5</span></sc-if>+ <sc-if value="{{ famNot.dys }}" hint-placeholder-val="{{ true }}"><span style="position:relative">Dystopian 5</span></sc-if>+ </button>+ <span style="width:1px;height:22px;background:#2b2f37;margin:0 6px"></span>+ <button type="button" onClick="{{ togglePlay }}" style="position:relative;font:500 11px/1 'Geist',sans-serif;padding:6px 11px;border-radius:6px;cursor:pointer;background:transparent;border:1px solid #3c424c;color:#9aa1ac">+ <sc-if value="{{ playing }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;inset:-1px;border-radius:6px;background:rgba(80,250,123,.13);border:1px solid rgba(80,250,123,.5)"></span></sc-if>+ <sc-if value="{{ playing }}" hint-placeholder-val="{{ true }}"><span style="position:relative;color:#50fa7b">■ Motion on</span></sc-if>+ <sc-if value="{{ paused }}"><span style="position:relative">▶ Motion off</span></sc-if>+ </button>+ <span style="width:1px;height:22px;background:#2b2f37;margin:0 6px"></span>+ <button type="button" onClick="{{ zoomOut }}" style="width:28px;height:28px;border-radius:6px;cursor:pointer;background:transparent;border:1px solid #3c424c;color:#9aa1ac;font:600 13px/1 ui-monospace,monospace">−</button>+ <span style="font:500 11px/1 ui-monospace,Menlo,monospace;color:#9aa1ac;min-width:38px;text-align:center">{{ zoomLabel }}</span>+ <button type="button" onClick="{{ zoomIn }}" style="width:28px;height:28px;border-radius:6px;cursor:pointer;background:transparent;border:1px solid #3c424c;color:#9aa1ac;font:600 13px/1 ui-monospace,monospace">+</button>+ </div>+ </header>++ <div style="flex:1;display:flex;min-height:0">++ <aside style="flex:none;width:236px;border-right:1px solid #2b2f37;background:#101217;overflow-y:auto;padding:16px 0 40px">+ <div style="padding:0 16px 8px;font:500 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.12em;color:#a3abb8">PANELS</div>+ <sc-for list="{{ panels }}" as="p" hint-placeholder-count="17">+ <button type="button" onClick="{{ p.go }}" style="position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:7px 16px;background:none;border:none;border-left:2px solid transparent;text-align:left;cursor:pointer;color:#c8ccd0">+ <sc-if value="{{ p.active }}"><span style="position:absolute;left:0;top:0;bottom:0;width:2px;background:#8be9fd"></span></sc-if>+ <sc-if value="{{ p.active }}"><span style="position:absolute;inset:0;background:rgba(139,233,253,.07)"></span></sc-if>+ <span style="position:relative;display:flex;align-items:baseline;gap:7px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ p.num }}</span>+ <span style="font-size:12.5px;font-weight:500">{{ p.name }}</span>+ </span>+ <span style="position:relative;font:400 11px/1.3 ui-monospace,Menlo,monospace;color:#9aa3b0;padding-left:19px">{{ p.src }}</span>+ </button>+ </sc-for>+ <div style="padding:20px 16px 8px;font:500 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.12em;color:#a3abb8">SHOWING</div>+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="display:flex;align-items:center;gap:8px;padding:5px 16px">+ <span style="display:flex;flex:none;width:34px;height:16px;border-radius:3px;overflow:hidden;border:1px solid #2b2f37">+ <span style="flex:1;background:{{ t.bg }}"></span>+ <span style="flex:1;background:{{ t.pan }}"></span>+ <span style="flex:1;background:{{ t.a1 }}"></span>+ <span style="flex:1;background:{{ t.a2 }}"></span>+ </span>+ <span style="font-size:11.5px;color:#c8ccd0">{{ t.name }}</span>+ <span style="margin-left:auto;font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ t.fam }}</span>+ </div>+ </sc-for>+ </aside>++ <main style="flex:1;min-width:0;overflow:auto;padding:0 0 120px">+ <div style="zoom: {{ zoom }};--play: {{ play }}">++ <!-- ─────────── 1 · Workflow Sidebar ─────────── -->+ <sc-if value="{{ show.sidebar }}" hint-placeholder-val="{{ true }}"><section id="p-sidebar" style="padding:26px 26px 8px;scroll-margin-top:12px">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">01</span>+ <span style="font-size:16px;font-weight:600">Workflow Sidebar</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">280px · client/src/components/ui/WorkflowSidebar.tsx</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ t.world }}</span>+ </div>+ <div style="width:280px;height:346px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;gap:9px;padding:17px 15px;border-bottom:1px solid var(--border-default);background:var(--bg-app)">+ <span style="flex:none;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-md);background:color-mix(in srgb,var(--node-agent) 20%,transparent);color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));font:400 16px/1 var(--font-mono)">{{ t.icon.folder }}</span>+ <div style="min-width:0">+ <div style="font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);line-height:1.2">Workflows</div>+ <div style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted);margin-top:1px">3 saved</div>+ </div>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px">+ <div onClick="{{ selWf1 }}" style="position:relative;overflow:hidden;cursor:pointer;padding:11px 12px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-app)">+ <sc-if value="{{ wf.w1 }}"><span style="position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--node-agent)"></span></sc-if>+ <sc-if value="{{ wf.w1 }}"><span style="position:absolute;inset:0;background:var(--bg-active)"></span></sc-if>+ <div style="position:relative;display:flex;align-items:center;gap:8px;margin-bottom:6px">+ <span style="flex:none;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:1px solid var(--border-default);background:var(--bg-elevated);color:var(--fg-muted);font:400 11px/1 var(--font-mono)"></></span>+ <span style="font-family:var(--font-display);font-size:13px;font-weight:500;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">Morning digest</span>+ </div>+ <div style="position:relative;display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span>4 nodes</span><span>Jun 11, 07:02</span></div>+ </div>+ <div onClick="{{ selWf2 }}" style="position:relative;overflow:hidden;cursor:pointer;padding:11px 12px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-app)">+ <sc-if value="{{ wf.w2 }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--node-agent)"></span></sc-if>+ <sc-if value="{{ wf.w2 }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;inset:0;background:var(--bg-active)"></span></sc-if>+ <div style="position:relative;display:flex;align-items:center;gap:8px;margin-bottom:6px">+ <span style="flex:none;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:1px solid var(--node-agent);background:color-mix(in srgb,var(--node-agent) 20%,transparent);color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));font:400 11px/1 var(--font-mono)"></></span>+ <span style="font-family:var(--font-display);font-size:13px;font-weight:500;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">WhatsApp assistant</span>+ </div>+ <div style="position:relative;display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span>6 nodes</span><span>Jun 12, 09:14</span></div>+ </div>+ <div onClick="{{ selWf3 }}" style="position:relative;overflow:hidden;cursor:pointer;padding:11px 12px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-app)">+ <sc-if value="{{ wf.w3 }}"><span style="position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--node-agent)"></span></sc-if>+ <sc-if value="{{ wf.w3 }}"><span style="position:absolute;inset:0;background:var(--bg-active)"></span></sc-if>+ <div style="position:relative;display:flex;align-items:center;gap:8px;margin-bottom:6px">+ <span style="flex:none;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:1px solid var(--border-default);background:var(--bg-elevated);color:var(--fg-muted);font:400 11px/1 var(--font-mono)"></></span>+ <span style="font-family:var(--font-display);font-size:13px;font-weight:500;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">Invoice triage</span>+ </div>+ <div style="position:relative;display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span>9 nodes</span><span>Jun 12, 18:40</span></div>+ </div>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 2 · Component Palette ─────────── -->+ <sc-if value="{{ show.palette }}"><section id="p-palette" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">02</span>+ <span style="font-size:16px;font-weight:600">Component Palette</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">320px · ui/ComponentPalette.tsx · search filters every theme at once</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ t.type }}</span>+ </div>+ <div style="width:320px;height:378px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;padding:15px;border-bottom:1px solid var(--border-default);background:var(--bg-app)">+ <div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:11px">+ <span style="font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">Components</span>+ <span style="font-family:var(--font-mono);font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default);background:var(--bg-elevated);color:var(--fg-muted)">{{ palTotal }}</span>+ </div>+ <div style="display:flex;align-items:center;gap:7px;height:32px;padding:0 10px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input)">+ <span style="display:inline-flex;color:var(--fg-muted)">{{ t.icon.search }}</span>+ <input value="{{ query }}" onChange="{{ onQuery }}" placeholder="Search..." style="flex:1;min-width:0;background:none;border:none;outline:none;font-family:var(--font-body);font-size:13px;color:var(--fg-default)">+ </div>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:12px">+ <sc-for list="{{ pal }}" as="s" hint-placeholder-count="3">+ <div style="margin-bottom:12px">+ <div style="display:flex;align-items:center;justify-content:space-between;padding:5px 3px">+ <span style="display:flex;align-items:center;gap:9px">+ <span style="flex:none;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-md);font-size:13px;background:{{ s.tint }}">{{ s.icon }}</span>+ <span style="font-size:13px;font-weight:600;font-family:var(--font-display);letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">{{ s.label }}</span>+ </span>+ <span style="font-family:var(--font-mono);font-size:11.5px;padding:2px 6px;border-radius:var(--radius-pill);border:1px solid var(--border-default);color:var(--fg-muted)">{{ s.count }}</span>+ </div>+ <div style="display:flex;flex-direction:column;gap:7px;padding-top:7px">+ <sc-for list="{{ s.items }}" as="it" hint-placeholder-count="2">+ <div style="display:flex;align-items:flex-start;gap:9px;padding:9px 10px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-elevated);cursor:grab">+ <span style="flex:none;font-size:14px;line-height:1.1">{{ it.icon }}</span>+ <span style="min-width:0">+ <span style="display:block;font-size:12.5px;font-weight:500">{{ it.name }}</span>+ <span style="display:block;font-size:11px;line-height:1.35;color:var(--fg-muted);margin-top:2px">{{ it.desc }}</span>+ </span>+ <span style="margin-left:auto;flex:none;color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⣿</span>+ </div>+ </sc-for>+ </div>+ </div>+ </sc-for>+ <sc-if value="{{ palEmpty }}">+ <div style="text-align:center;padding:44px 20px;color:var(--fg-muted)">+ <div style="font:400 30px/1 var(--font-mono);opacity:.45">⌕</div>+ <div style="font-size:12.5px;margin-top:12px">No components found</div>+ </div>+ </sc-if>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 3 · Node Configuration ─────────── -->+ <sc-if value="{{ show.nodecfg }}"><section id="p-nodecfg" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">03</span>+ <span style="font-size:16px;font-weight:600">Node Configuration</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">3-column modal · ParameterPanel.tsx · press Run to fill the output column</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">radius {{ t.rLabel }} · {{ t.motion }}</span>+ </div>+ <div style="width:760px;height:440px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--bg-elevated);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 16px 44px rgba(0,0,0,.5)">+ <div style="flex:none;display:flex;align-items:center;gap:14px;padding:11px 14px;border-bottom:1px solid var(--border-default);background:var(--bg-panel)">+ <span style="display:flex;align-items:center;gap:7px;font-family:var(--font-display);font-size:13.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)"><span style="display:inline-flex;color:var(--fg-muted)">{{ t.icon.settings }}</span>Node Configuration</span>+ <span style="display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600">🤖 AI Agent <span style="color:color-mix(in srgb,var(--warning) var(--accent-text-mix),var(--fg-default))">*</span></span>+ <span style="display:flex;gap:7px;margin-left:auto">+ <button type="button" onClick="{{ doRun }}" style="display:flex;align-items:center;gap:5px;height:28px;padding:0 11px;cursor:pointer;font-family:var(--font-display);font-size:11.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-run) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-run) 60%,transparent);color:color-mix(in srgb,var(--action-run) var(--accent-text-mix),var(--fg-default))">▶ Run</button>+ <span style="display:flex;align-items:center;gap:5px;height:28px;padding:0 11px;font-family:var(--font-display);font-size:11.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-tools) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-tools) 60%,transparent);color:color-mix(in srgb,var(--action-tools) var(--accent-text-mix),var(--fg-default))">⌸ Save</span>+ <span style="display:flex;align-items:center;gap:5px;height:28px;padding:0 11px;font-family:var(--font-display);font-size:11.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-stop) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-stop) 60%,transparent);color:color-mix(in srgb,var(--action-stop) var(--accent-text-mix),var(--fg-default))">✕ Cancel</span>+ </span>+ </div>+ <div style="flex:1;min-height:0;display:flex">+ <div style="flex:0 0 210px;min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--border-default)">+ <div style="flex:none;display:flex;align-items:center;gap:7px;padding:9px 13px;border-bottom:1px solid var(--border-default);background:var(--bg-panel);font-size:12.5px;font-weight:600"><span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⇥</span>Input Data (1 item)</div>+ <div style="flex:1;min-height:0;overflow:auto;padding:11px">+ <div style="overflow:hidden;border:1px solid var(--border-default);border-left:4px solid var(--success);border-radius:var(--radius-md);background:var(--bg-panel)">+ <div style="display:flex;align-items:center;gap:7px;padding:8px 10px">+ <span style="font-size:12px;font-weight:600">Item 1</span>+ <span style="font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">from WhatsApp</span>+ </div>+ <div style="padding:5px 10px;border-top:1px solid var(--border-default);border-bottom:1px solid var(--border-default);background:var(--bg-app);font-family:var(--font-mono);font-size:11px;font-weight:600;color:var(--fg-muted);letter-spacing:.05em;text-transform:uppercase">Received data</div>+ <pre style="margin:0;padding:9px 10px;background:var(--bg-app);font-family:var(--font-mono);font-size:11.5px;line-height:1.5;color:var(--fg-default);white-space:pre-wrap">{+ "message": "What's on+ my calendar today?",+ "from": "+1 555 014 2236"+}</pre>+ </div>+ </div>+ <div style="flex:none;padding:7px 13px;border-top:1px solid var(--border-default);font-size:11.5px;color:var(--fg-muted)">Actual data received during execution</div>+ </div>+ <div style="flex:1;min-width:0;display:flex;flex-direction:column">+ <div style="flex:none;display:flex;align-items:center;gap:7px;padding:9px 13px;border-bottom:1px solid var(--border-default);background:var(--bg-panel);font-size:12.5px;font-weight:600"><span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">≡</span>Parameters</div>+ <div style="flex:1;min-height:0;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:13px">+ <label style="flex:none;display:flex;flex-direction:column;gap:6px">+ <span style="font-size:12.5px;font-weight:500">Model</span>+ <span style="display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 10px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-size:12.5px"><span>claude-sonnet-4-5</span><span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▼</span></span>+ </label>+ <label style="flex:none;display:flex;flex-direction:column;gap:6px">+ <span style="font-size:12.5px;font-weight:500">System Prompt</span>+ <span style="display:block;padding:9px 10px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-size:12px;line-height:1.5;color:var(--fg-muted)">You are a personal assistant with access to my calendar, email, and messages. Answer briefly and take action when asked.</span>+ </label>+ <div style="flex:none">+ <div style="display:flex;justify-content:space-between;margin-bottom:8px">+ <span style="font-size:12.5px;font-weight:500">Temperature</span>+ <span style="font-family:var(--font-mono);font-size:12px;color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default))">{{ tempLabel }}</span>+ </div>+ <div onClick="{{ onTemp }}" style="position:relative;height:16px;display:flex;align-items:center;cursor:pointer">+ <span style="position:absolute;left:0;right:0;height:4px;border-radius:var(--radius-pill);background:var(--bg-active);border:1px solid var(--border-default)"></span>+ <span style="position:absolute;left:0;height:4px;width: {{ tempPct }};border-radius:var(--radius-pill);background:var(--node-model)"></span>+ <span style="position:absolute;left: {{ tempPct }};width:12px;height:12px;margin-left:-6px;border-radius:var(--radius-pill);background:var(--node-model);border:2px solid var(--bg-elevated)"></span>+ </div>+ </div>+ <div style="flex:none;border:1px solid var(--border-default);border-radius:var(--radius-md);overflow:hidden">+ <div style="display:flex;align-items:center;gap:7px;padding:8px 10px;background:var(--bg-panel);font-size:12px;font-weight:600"><span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⌄</span>Connected Skills</div>+ <div style="padding:9px 10px;display:flex;flex-direction:column;gap:8px">+ <span style="display:flex;align-items:center;gap:8px;font-size:12px"><span style="flex:none;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--action-run) 26%,transparent);border:1px solid var(--action-run);color:color-mix(in srgb,var(--action-run) var(--accent-text-mix),var(--fg-default));font:700 11px/1 var(--font-mono)">✓</span>Web Search — DuckDuckGo</span>+ <span style="display:flex;align-items:center;gap:8px;font-size:12px"><span style="flex:none;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--action-run) 26%,transparent);border:1px solid var(--action-run);color:color-mix(in srgb,var(--action-run) var(--accent-text-mix),var(--fg-default));font:700 11px/1 var(--font-mono)">✓</span>Android Toolkit — 16 services</span>+ <span style="display:flex;align-items:center;gap:8px;font-size:12px;color:var(--fg-muted)"><span style="flex:none;width:15px;height:15px;border-radius:var(--radius-sm);border:1px solid var(--border-strong)"></span>Code Execution — sandboxed Python</span>+ </div>+ </div>+ </div>+ </div>+ <div style="flex:0 0 210px;min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--border-default)">+ <div style="flex:none;display:flex;align-items:center;gap:7px;padding:9px 13px;border-bottom:1px solid var(--border-default);background:var(--bg-panel);font-size:12.5px;font-weight:600"><span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⇤</span>Output</div>+ <div style="flex:1;min-height:0;overflow:auto;padding:11px">+ <sc-if value="{{ ran }}">+ <div style="overflow:hidden;border:1px solid var(--border-default);border-left:4px solid var(--success);border-radius:var(--radius-md);background:var(--bg-panel)">+ <div style="display:flex;align-items:center;gap:7px;padding:8px 10px">+ <span style="font-size:12px;font-weight:600">Execution Result</span>+ <span style="font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">1.9s</span>+ </div>+ <div style="padding:5px 10px;border-top:1px solid var(--border-default);border-bottom:1px solid var(--border-default);background:var(--bg-app);font-family:var(--font-mono);font-size:11px;font-weight:600;color:var(--fg-muted);letter-spacing:.05em;text-transform:uppercase">Response</div>+ <div style="padding:9px 10px;background:var(--bg-app);font-family:var(--font-mono);font-size:11.5px;line-height:1.55">You have 2 events today: standup at 10:00 and a dentist appointment at 15:30.</div>+ </div>+ </sc-if>+ <sc-if value="{{ notRan }}" hint-placeholder-val="{{ true }}">+ <div style="text-align:center;padding:34px 14px;color:var(--fg-muted)">+ <div style="font:400 24px/1 var(--font-mono);opacity:.5">▶</div>+ <div style="font-size:12.5px;font-weight:500;color:var(--fg-default);margin-top:11px">No output yet</div>+ <div style="font-size:11px;margin-top:5px;line-height:1.45">Run this node to see its output</div>+ </div>+ </sc-if>+ </div>+ </div>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 4 · Settings ─────────── -->+ <sc-if value="{{ show.settings }}"><section id="p-settings" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">04</span>+ <span style="font-size:16px;font-weight:600">Settings</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">ui/SettingsPanel.tsx · switches + slider are live</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">snd:{{ t.snd }}</span>+ </div>+ <div style="width:430px;height:430px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--bg-elevated);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 16px 44px rgba(0,0,0,.5)">+ <div style="flex:none;display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--border-default);background:var(--bg-panel)">+ <span style="display:flex;align-items:center;gap:7px;font-family:var(--font-display);font-size:13.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)"><span style="display:inline-flex;color:var(--fg-muted)">{{ t.icon.settings }}</span>Settings</span>+ <span style="display:flex;gap:7px;margin-left:auto">+ <span style="display:flex;align-items:center;gap:5px;height:27px;padding:0 10px;font-family:var(--font-display);font-size:11px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-config) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-config) 60%,transparent);color:color-mix(in srgb,var(--action-config) var(--accent-text-mix),var(--fg-default))">⟳ Reset</span>+ <span style="display:flex;align-items:center;gap:5px;height:27px;padding:0 10px;font-family:var(--font-display);font-size:11px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-run) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-run) 60%,transparent);color:color-mix(in srgb,var(--action-run) var(--accent-text-mix),var(--fg-default))">⌸ Save</span>+ <span style="display:flex;align-items:center;gap:5px;height:27px;padding:0 10px;font-family:var(--font-display);font-size:11px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-stop) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-stop) 60%,transparent);color:color-mix(in srgb,var(--action-stop) var(--accent-text-mix),var(--fg-default))">✕ Close</span>+ </span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:14px">+ <div style="margin-bottom:14px;border:1px solid var(--border-default);border-radius:var(--radius-md);overflow:hidden">+ <div style="display:flex;align-items:center;gap:8px;padding:9px 12px;background:color-mix(in srgb,var(--node-agent) 10%,var(--bg-panel));border-bottom:1px solid var(--border-default);font-family:var(--font-display);font-size:13px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)"><span style="color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));font:400 12px/1 var(--font-mono)">▢</span>UI Defaults</div>+ <div style="padding:4px 12px">+ <div style="display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--border-default)">+ <span style="flex:1;min-width:0">+ <span style="display:block;font-size:13px;font-weight:500">Sidebar Open by Default</span>+ <span style="display:block;font-size:11.5px;line-height:1.4;color:var(--fg-muted);margin-top:2px">Show the sidebar panel when the application starts</span>+ </span>+ <span onClick="{{ tSidebar }}" style="flex:none;cursor:pointer">+ <sc-if value="{{ on.sidebar }}" hint-placeholder-val="{{ true }}"><span style="display:flex;align-items:center;justify-content:flex-end;width:36px;height:20px;padding:2px;border-radius:var(--radius-pill);background:var(--action-run)"><span style="width:16px;height:16px;border-radius:var(--radius-pill);background:var(--bg-elevated)"></span></span></sc-if>+ <sc-if value="{{ off.sidebar }}"><span style="display:flex;align-items:center;justify-content:flex-start;width:36px;height:20px;padding:2px;border-radius:var(--radius-pill);background:var(--bg-active);border:1px solid var(--border-strong)"><span style="width:14px;height:14px;border-radius:var(--radius-pill);background:var(--fg-faint)"></span></span></sc-if>+ </span>+ </div>+ <div style="display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--border-default)">+ <span style="flex:1;min-width:0">+ <span style="display:block;font-size:13px;font-weight:500">Component Palette Open by Default</span>+ <span style="display:block;font-size:11.5px;line-height:1.4;color:var(--fg-muted);margin-top:2px">Show the component palette when the application starts</span>+ </span>+ <span onClick="{{ tPalette }}" style="flex:none;cursor:pointer">+ <sc-if value="{{ on.palette }}" hint-placeholder-val="{{ true }}"><span style="display:flex;align-items:center;justify-content:flex-end;width:36px;height:20px;padding:2px;border-radius:var(--radius-pill);background:var(--action-run)"><span style="width:16px;height:16px;border-radius:var(--radius-pill);background:var(--bg-elevated)"></span></span></sc-if>+ <sc-if value="{{ off.palette }}"><span style="display:flex;align-items:center;justify-content:flex-start;width:36px;height:20px;padding:2px;border-radius:var(--radius-pill);background:var(--bg-active);border:1px solid var(--border-strong)"><span style="width:14px;height:14px;border-radius:var(--radius-pill);background:var(--fg-faint)"></span></span></sc-if>+ </span>+ </div>+ <div style="display:flex;align-items:center;gap:14px;padding:10px 0">+ <span style="flex:1;min-width:0">+ <span style="display:block;font-size:13px;font-weight:500">Auto-add Skill for Connected Tools</span>+ <span style="display:block;font-size:11.5px;line-height:1.4;color:var(--fg-muted);margin-top:2px">When a tool node is connected to an AI agent, automatically enable the matching skill</span>+ </span>+ <span onClick="{{ tSkill }}" style="flex:none;cursor:pointer">+ <sc-if value="{{ on.skill }}" hint-placeholder-val="{{ true }}"><span style="display:flex;align-items:center;justify-content:flex-end;width:36px;height:20px;padding:2px;border-radius:var(--radius-pill);background:var(--action-run)"><span style="width:16px;height:16px;border-radius:var(--radius-pill);background:var(--bg-elevated)"></span></span></sc-if>+ <sc-if value="{{ off.skill }}"><span style="display:flex;align-items:center;justify-content:flex-start;width:36px;height:20px;padding:2px;border-radius:var(--radius-pill);background:var(--bg-active);border:1px solid var(--border-strong)"><span style="width:14px;height:14px;border-radius:var(--radius-pill);background:var(--fg-faint)"></span></span></sc-if>+ </span>+ </div>+ </div>+ </div>+ <div style="margin-bottom:14px;border:1px solid var(--border-default);border-radius:var(--radius-md);overflow:hidden">+ <div style="display:flex;align-items:center;gap:8px;padding:9px 12px;background:color-mix(in srgb,var(--node-model) 10%,var(--bg-panel));border-bottom:1px solid var(--border-default);font-family:var(--font-display);font-size:13px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)"><span style="color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default));font:400 12px/1 var(--font-mono)">⌸</span>Auto-save</div>+ <div style="padding:4px 12px">+ <div style="display:flex;align-items:center;gap:14px;padding:10px 0">+ <span style="flex:1;min-width:0">+ <span style="display:block;font-size:13px;font-weight:500">Auto-save Interval</span>+ <span style="display:block;font-size:11.5px;line-height:1.4;color:var(--fg-muted);margin-top:2px">How often to auto-save (10–300 seconds)</span>+ </span>+ <span style="flex:none;display:flex;align-items:center;justify-content:space-between;width:82px;height:32px;padding:0 9px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-family:var(--font-mono);font-size:12.5px">30<span style="color:var(--fg-muted);font-size:11px">s</span></span>+ </div>+ </div>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);overflow:hidden">+ <div style="display:flex;align-items:center;gap:8px;padding:9px 12px;background:color-mix(in srgb,var(--node-agent) 10%,var(--bg-panel));border-bottom:1px solid var(--border-default);font-family:var(--font-display);font-size:13px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)"><span style="color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));font:400 12px/1 var(--font-mono)">◍</span>Memory & Compaction</div>+ <div style="padding:12px">+ <div style="display:flex;align-items:baseline;justify-content:space-between;margin-bottom:9px">+ <span style="min-width:0">+ <span style="display:block;font-size:13px;font-weight:500">Compaction Ratio</span>+ <span style="display:block;font-size:11.5px;line-height:1.4;color:var(--fg-muted);margin-top:2px">Fraction of the context window that triggers compaction</span>+ </span>+ <span style="flex:none;font-size:14px;font-weight:600;color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default));margin-left:12px">{{ ratioLabel }}</span>+ </div>+ <div onClick="{{ onRatio }}" style="position:relative;height:16px;display:flex;align-items:center;cursor:pointer;margin:10px 0 6px">+ <span style="position:absolute;left:0;right:0;height:4px;border-radius:var(--radius-pill);background:var(--bg-active);border:1px solid var(--border-default)"></span>+ <span style="position:absolute;left:0;height:4px;width: {{ ratioPct }};border-radius:var(--radius-pill);background:var(--node-model)"></span>+ <span style="position:absolute;left: {{ ratioPct }};width:12px;height:12px;margin-left:-6px;border-radius:var(--radius-pill);background:var(--node-model);border:2px solid var(--bg-elevated)"></span>+ </div>+ <div style="display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span>5%</span><span>50%</span><span>95%</span></div>+ </div>+ </div>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 5 · API Credentials ─────────── -->+ <sc-if value="{{ show.creds }}"><section id="p-creds" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">05</span>+ <span style="font-size:16px;font-weight:600">API Credentials</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">credentials/CredentialsModal.tsx + ApiKeyPanel.tsx</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ </div>+ <div style="width:430px;height:288px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--bg-elevated);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 16px 44px rgba(0,0,0,.5)">+ <div style="flex:none;display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid var(--border-default);background:var(--bg-panel)">+ <span style="display:flex;align-items:center;gap:7px;font-family:var(--font-display);font-size:13.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)"><span style="display:inline-flex;color:var(--fg-default)">{{ t.icon.credentials }}</span>API Credentials</span>+ <span style="margin-left:auto;display:flex;align-items:center;gap:5px;height:27px;padding:0 10px;font-family:var(--font-display);font-size:11px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-stop) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-stop) 60%,transparent);color:color-mix(in srgb,var(--action-stop) var(--accent-text-mix),var(--fg-default))">✕ Close</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:11px">+ <div style="font-size:12px;line-height:1.5;color:var(--fg-muted)">Bring your own keys — they're stored locally and never leave your machine.</div>+ <div style="display:flex;align-items:center;gap:9px">+ <span style="flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--action-config) 20%,transparent);border:1px solid color-mix(in srgb,var(--action-config) 45%,transparent);color:color-mix(in srgb,var(--action-config) var(--accent-text-mix),var(--fg-default));font:600 11px/1 var(--font-mono)">A</span>+ <span style="flex:none;width:74px;font-size:12.5px;font-weight:500">Anthropic</span>+ <span style="flex:1;min-width:0;display:flex;align-items:center;height:30px;padding:0 9px;border:1px solid color-mix(in srgb,var(--success) 45%,transparent);border-radius:var(--radius-lg);background:var(--bg-input);font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">sk-ant-•••••••••••••4f2a</span>+ <span style="flex:none;display:flex;align-items:center;height:26px;padding:0 8px;border-radius:var(--radius-md);font-family:var(--font-mono);font-size:11px;background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default));letter-spacing:.05em">STORED</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px">+ <span style="flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-model) 20%,transparent);border:1px solid color-mix(in srgb,var(--node-model) 45%,transparent);color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default));font:600 11px/1 var(--font-mono)">O</span>+ <span style="flex:none;width:74px;font-size:12.5px;font-weight:500">Open AI</span>+ <span style="flex:1;min-width:0;display:flex;align-items:center;height:30px;padding:0 9px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">Enter API key...</span>+ <span style="flex:none;display:flex;align-items:center;height:26px;padding:0 9px;border-radius:var(--radius-md);font-family:var(--font-display);font-size:11.5px;font-weight:600;text-transform:var(--type-uppercase);background:color-mix(in srgb,var(--action-secret) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-secret) 60%,transparent);color:var(--fg-default)">Save</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px">+ <span style="flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-trigger) 20%,transparent);border:1px solid color-mix(in srgb,var(--node-trigger) 45%,transparent);color:color-mix(in srgb,var(--node-trigger) var(--accent-text-mix),var(--fg-default));font:600 11px/1 var(--font-mono)">G</span>+ <span style="flex:none;width:74px;font-size:12.5px;font-weight:500">Groq</span>+ <span style="flex:1;min-width:0;display:flex;align-items:center;height:30px;padding:0 9px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">Enter API key...</span>+ <span style="flex:none;display:flex;align-items:center;height:26px;padding:0 9px;border-radius:var(--radius-md);font-family:var(--font-display);font-size:11.5px;font-weight:600;text-transform:var(--type-uppercase);background:color-mix(in srgb,var(--action-secret) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-secret) 60%,transparent);color:var(--fg-default)">Save</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px">+ <span style="flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-tool) 20%,transparent);border:1px solid color-mix(in srgb,var(--node-tool) 45%,transparent);color:color-mix(in srgb,var(--node-tool) var(--accent-text-mix),var(--fg-default));font:600 11px/1 var(--font-mono)">◆</span>+ <span style="flex:none;width:74px;font-size:12.5px;font-weight:500">Google</span>+ <span style="flex:1;min-width:0;display:flex;align-items:center;height:30px;padding:0 9px;border:1px solid color-mix(in srgb,var(--success) 45%,transparent);border-radius:var(--radius-lg);background:var(--bg-input);font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">AIzaSy•••••••••••ud8K</span>+ <span style="flex:none;display:flex;align-items:center;height:26px;padding:0 8px;border-radius:var(--radius-md);font-family:var(--font-mono);font-size:11px;background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default));letter-spacing:.05em">STORED</span>+ </div>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 6 · Console Dock ─────────── -->+ <sc-if value="{{ show.console }}"><section id="p-console" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">06</span>+ <span style="font-size:16px;font-weight:600">Console Dock</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">ui/ConsolePanel.tsx · tabs switch all 12 together</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">mono {{ t.monoLabel }}</span>+ </div>+ <div style="width:470px;height:250px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:stretch;border-bottom:1px solid var(--border-default)">+ <button type="button" onClick="{{ tabChat }}" style="display:flex;align-items:center;gap:6px;padding:0 14px;height:36px;background:none;border:none;cursor:pointer;font-family:var(--font-display);font-size:12px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);color:var(--fg-muted);position:relative">Chat+ <sc-if value="{{ tab.chat }}"><span style="position:absolute;left:8px;right:8px;bottom:0;height:2px;background:var(--node-agent)"></span></sc-if>+ </button>+ <button type="button" onClick="{{ tabConsole }}" style="display:flex;align-items:center;gap:6px;padding:0 14px;height:36px;background:none;border:none;cursor:pointer;font-family:var(--font-display);font-size:12px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);color:var(--fg-default);position:relative">Console+ <sc-if value="{{ tab.console }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;left:8px;right:8px;bottom:0;height:2px;background:var(--node-agent)"></span></sc-if>+ </button>+ <button type="button" onClick="{{ tabTerm }}" style="display:flex;align-items:center;gap:6px;padding:0 14px;height:36px;background:none;border:none;cursor:pointer;font-family:var(--font-display);font-size:12px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);color:var(--fg-muted);position:relative">Terminal+ <sc-if value="{{ tab.term }}"><span style="position:absolute;left:8px;right:8px;bottom:0;height:2px;background:var(--node-agent)"></span></sc-if>+ </button>+ <span style="margin-left:auto;display:flex;align-items:center;padding:0 12px;color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⌄</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:11px 14px;background:var(--bg-app)">+ <sc-if value="{{ tab.console }}" hint-placeholder-val="{{ true }}">+ <div style="display:flex;flex-direction:column;gap:5px;font-family:var(--font-mono);font-size:11.5px">+ <div style="display:flex;gap:9px"><span style="color:var(--fg-muted);flex:none">[12:01:31]</span><span style="color:var(--fg-muted)">Workflow "WhatsApp Assistant" loaded · 6 nodes</span></div>+ <div style="display:flex;gap:9px"><span style="color:var(--fg-muted);flex:none">[12:01:33]</span><span style="color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">Deployed — listening for incoming messages</span></div>+ <div style="display:flex;gap:9px"><span style="color:var(--fg-muted);flex:none">[12:04:02]</span><span style="color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default))">WhatsApp Receive → message from +1 (555) 014-2236</span></div>+ <div style="display:flex;gap:9px"><span style="color:var(--fg-muted);flex:none">[12:04:03]</span><span style="color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default))">AI Agent → delegating to Web Search Tool</span></div>+ <div style="display:flex;gap:9px"><span style="color:var(--fg-muted);flex:none">[12:04:04]</span><span style="color:color-mix(in srgb,var(--warning) var(--accent-text-mix),var(--fg-default))">Rate limit warning · retrying in 400ms</span></div>+ <div style="display:flex;gap:9px"><span style="color:var(--fg-muted);flex:none">[12:04:05]</span><span style="color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">WhatsApp Send → reply delivered (1.9s)</span></div>+ </div>+ </sc-if>+ <sc-if value="{{ tab.chat }}">+ <div style="display:flex;flex-direction:column;gap:8px;min-height:100%">+ <div style="align-self:flex-end;max-width:76%;padding:8px 11px;font-size:12.5px;line-height:1.45;background:color-mix(in srgb,var(--node-agent) 18%,transparent);border:1px solid color-mix(in srgb,var(--node-agent) 35%,transparent);border-radius:var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg)">Summarize my unread emails every weekday at 9 AM.</div>+ <div style="align-self:flex-start;max-width:76%;padding:8px 11px;font-size:12.5px;line-height:1.45;background:var(--bg-elevated);border:1px solid var(--border-default);border-radius:var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm)">Done — I scheduled a daily digest. Want it on WhatsApp too?</div>+ <div style="margin-top:auto;display:flex;align-items:center;height:32px;padding:0 10px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-size:12.5px;color:var(--fg-muted)">Message your agent...</div>+ </div>+ </sc-if>+ <sc-if value="{{ tab.term }}">+ <div style="font-family:var(--font-mono);font-size:11.5px;line-height:1.6">+ <div><span style="color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">$</span> company start</div>+ <div style="color:var(--fg-muted)">OpenCompany running at http://localhost:3000</div>+ <div style="color:var(--fg-muted)">Temporal · Python backend · WhatsApp service — all up</div>+ <div style="margin-top:4px"><span style="color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">$</span> <span style="display:inline-block;width:7px;height:13px;vertical-align:-2px;background:var(--fg-default);animation:ocpip 1.1s steps(2,end) infinite;animation-play-state:var(--play)"></span></div>+ </div>+ </sc-if>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 7 · Output Panel ─────────── -->+ <sc-if value="{{ show.output }}"><section id="p-output" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">07</span>+ <span style="font-size:16px;font-weight:600">Output Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">output/OutputPanel.tsx · Response / Thinking / Raw JSON collapsibles</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">terminal uiHint</span>+ </div>+ <div style="width:440px;height:330px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--surface-card);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 14px;border-bottom:1px solid var(--border-default);background:var(--surface-card)">+ <div style="display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0">+ <span style="margin-right:4px;font-size:13.5px;font-weight:600">Output</span>+ <span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default));font-weight:600">Success</span>+ <span style="font-family:var(--font-mono);font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default);color:var(--fg-muted)">1.9s</span>+ <span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);background:var(--bg-active);color:var(--fg-muted)">claude sonnet 4 5</span>+ <span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);background:color-mix(in srgb,var(--info) 24%,transparent);color:color-mix(in srgb,var(--info) var(--accent-text-mix),var(--fg-default))">anthropic</span>+ </div>+ <span style="flex:none;display:flex;align-items:center;gap:4px;font-size:11px;color:color-mix(in srgb,var(--destructive) var(--accent-text-mix),var(--fg-default))">✕ Clear</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:14px">+ <div style="border-bottom:1px solid var(--border-default)">+ <div style="display:flex;align-items:center;gap:8px;padding:7px 0;font-size:12.5px;font-weight:500">+ <span style="flex:none;color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▼</span><span style="flex:1;text-align:left">Response</span>+ </div>+ <div style="padding:0 0 12px 22px">+ <pre style="margin:0;overflow:auto;max-height:132px;padding:11px;border:1px solid var(--code-border,var(--border-default));border-radius:var(--radius-md);background:var(--code-bg,var(--bg-app));color:var(--code-text,var(--fg-default));font-family:var(--font-mono);font-size:11px;line-height:1.55;white-space:pre-wrap;word-break:break-word">$ gh pr create --fill+Creating pull request for feat/agent-teams into main++https://github.com/zeenie-ai/OpenCompany/pull/482+ 2 files changed, 118 insertions(+)+ 1 check pending: lint</pre>+ <div style="margin-top:6px;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">uiHints.outputMode = "terminal" — preformatted, never markdown</div>+ </div>+ </div>+ <div style="border-bottom:1px solid var(--border-default)">+ <div style="display:flex;align-items:center;gap:8px;padding:7px 0;font-size:12.5px;font-weight:500">+ <span style="flex:none;color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▶</span><span style="flex:1;text-align:left">Thinking</span>+ </div>+ </div>+ <div>+ <div style="display:flex;align-items:center;gap:8px;padding:7px 0;font-size:12.5px;font-weight:500">+ <span style="flex:none;color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▶</span><span style="flex:1;text-align:left">Raw JSON</span>+ <span style="flex:none;display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default))">⧉ Copy</span>+ </div>+ </div>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 8 · Input Data Panel ─────────── -->+ <sc-if value="{{ show.input }}"><section id="p-input" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">08</span>+ <span style="font-size:16px;font-weight:600">Input Data Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">350px · ui/InputNodesPanel.tsx on shared/DataPanel.tsx</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ </div>+ <div style="width:350px;height:272px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-elevated);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;justify-content:space-between;padding:8px 11px;border-bottom:1px solid var(--border-default)">+ <span style="display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600"><span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⇥</span>Input Data (1 item)</span>+ <span style="display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--fg-muted)"><span style="font:400 11px/1 var(--font-mono)">⟳</span>Refresh</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:9px">+ <div style="border:1px solid var(--border-default);border-left:4px solid var(--success);border-radius:var(--radius-md);background:var(--bg-panel);padding:11px">+ <div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:10px">+ <span style="display:flex;align-items:center;gap:7px">+ <span style="color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default));font:400 11px/1 var(--font-mono)">▤</span>+ <span style="font-size:12.5px;font-weight:600">Item 1</span>+ <span style="font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">from Cron Scheduler</span>+ </span>+ <span style="font-size:11px;color:var(--fg-muted)">⧉ Copy</span>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-sm);overflow:hidden">+ <div style="padding:5px 9px;border-bottom:1px solid var(--border-default);background:var(--bg-app);font-family:var(--font-mono);font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--fg-muted)">Received Data</div>+ <pre style="margin:0;padding:9px;max-height:112px;overflow:auto;background:var(--bg-app);font-family:var(--font-mono);font-size:11.5px;line-height:1.5;white-space:pre-wrap">{+ "trigger": "cron",+ "cron": "0 9 * * 1-5",+ "fired_at": "2026-06-12T09:00:00Z",+ "unread": 14+}</pre>+ </div>+ </div>+ </div>+ <div style="flex:none;padding:7px 11px;border-top:1px solid var(--border-default);text-align:center;font-size:11.5px;color:var(--fg-muted)">Shows actual data received by this node during execution</div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 9 · Context Panel ─────────── -->+ <sc-if value="{{ show.context }}"><section id="p-context" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">09</span>+ <span style="font-size:16px;font-weight:600">Context Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">parameterPanel/ContextPanel.tsx · journal + active replay</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ t.world }}</span>+ </div>+ <div style="width:470px;height:352px;display:flex;flex-direction:column;gap:12px;overflow:auto;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);padding:16px;font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px">+ <div style="min-width:0">+ <div style="font-family:var(--font-display);font-size:15px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">Agent Context</div>+ <div style="font-size:11px;color:var(--fg-muted);margin-top:2px">Exact observable journal and active replay for this Context node.</div>+ </div>+ <div style="flex:none;display:flex;flex-wrap:wrap;gap:6px">+ <span style="display:flex;align-items:center;gap:4px;height:25px;padding:0 8px;border:1px solid var(--border-default);border-radius:var(--radius-lg);font-size:11.5px;color:var(--fg-default)">⟳ Refresh</span>+ <span style="display:flex;align-items:center;gap:4px;height:25px;padding:0 8px;border:1px solid var(--border-default);border-radius:var(--radius-lg);font-size:11.5px;color:var(--fg-default)">⑂ Fork</span>+ <span style="display:flex;align-items:center;gap:4px;height:25px;padding:0 8px;border:1px solid var(--border-default);border-radius:var(--radius-lg);font-size:11.5px;color:var(--fg-default)">⤓ Export</span>+ <span style="display:flex;align-items:center;gap:4px;height:25px;padding:0 8px;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--destructive) 15%,transparent);border:1px solid color-mix(in srgb,var(--destructive) 55%,transparent);font-size:11.5px;color:color-mix(in srgb,var(--destructive) var(--accent-text-mix),var(--fg-default))">⌦ Clear epoch</span>+ </div>+ </div>+ <div style="flex:none;display:grid;grid-template-columns:1fr 1fr;gap:9px">+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);padding:9px 10px">+ <div style="font-size:11.5px;color:var(--fg-muted)">Thread / epoch</div>+ <div style="font-size:12.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">thr_9f2c41 / 3</div><div style="font-size:11.5px;color:var(--fg-muted)">Revision 41</div>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);padding:9px 10px">+ <div style="font-size:11.5px;color:var(--fg-muted)">Replay fidelity</div>+ <div style="margin-top:4px;display:flex;flex-wrap:wrap;gap:4px"><span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default));font-weight:600">exact</span></div>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);padding:9px 10px">+ <div style="font-size:11.5px;color:var(--fg-muted)">Provider</div>+ <div style="font-size:12.5px;font-weight:500">anthropic</div><div style="font-size:11.5px;color:var(--fg-muted)">Binding bound</div>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);padding:9px 10px">+ <div style="font-size:11.5px;color:var(--fg-muted)">Active pressure</div>+ <div style="margin-bottom:7px;font-size:12.5px;font-weight:500">18432 / 200000</div><div style="height:5px;border-radius:var(--radius-pill);background:var(--bg-active);overflow:hidden"><span style="display:block;width:9%;height:100%;background:var(--node-model)"></span></div>+ </div>+ </div>+ <div style="flex:none;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);padding:9px 10px">+ <div style="margin-bottom:6px;font-size:12px;font-weight:500">Checkpoints</div>+ <div style="display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:11.5px;color:var(--fg-muted)">+ <span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default)">portable</span>+ <span>anthropic</span><span>through #418</span><span>12904 active tokens</span>+ </div>+ </div>+ <div style="flex:none;display:flex;gap:4px;padding:3px;border-radius:var(--radius-md);background:var(--bg-active);width:fit-content">+ <span style="padding:4px 10px;border-radius:var(--radius-sm);background:var(--surface-card);font-size:11.5px;font-weight:500">Raw journal</span>+ <span style="padding:4px 10px;border-radius:var(--radius-sm);font-size:11.5px;color:var(--fg-muted)">Active replay</span>+ </div>+ <div style="flex:none;display:flex;flex-direction:column;gap:7px">+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);padding:9px 10px;display:flex;align-items:center;gap:7px">+ <span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▶</span>+ <span style="font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">#419</span>+ <span style="font-size:12px;font-weight:500">message_appended</span>+ <span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default);color:var(--fg-muted)">anthropic</span>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--surface-card);padding:9px 10px;display:flex;align-items:center;gap:7px">+ <span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▶</span>+ <span style="font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">#418</span>+ <span style="font-size:12px;font-weight:500">checkpoint_written</span>+ <span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default);color:var(--fg-muted)">anthropic</span>+ </div>+ </div>+ <div style="flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px">+ <span style="display:flex;align-items:center;gap:4px;height:25px;padding:0 8px;border:1px solid var(--border-default);border-radius:var(--radius-lg);font-size:11.5px;color:var(--fg-muted)">‹ Previous</span>+ <span style="font-size:11.5px;color:var(--fg-muted)">Up to 50 events per page</span>+ <span style="display:flex;align-items:center;gap:4px;height:25px;padding:0 8px;border:1px solid var(--border-default);border-radius:var(--radius-lg);font-size:11.5px;color:var(--fg-default)">Next ›</span>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 10 · Memory Tool Panel ─────────── -->+ <sc-if value="{{ show.memory }}"><section id="p-memory" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">10</span>+ <span style="font-size:16px;font-weight:600">Memory Tool Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">parameterPanel/MemoryToolPanel.tsx</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ </div>+ <div style="width:390px;height:290px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-elevated);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border-default);background:var(--bg-panel)">+ <span style="display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;flex:none"><span style="display:inline-flex;color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default))">{{ t.icon.memory }}</span>Memory</span>+ <span style="flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:28px;padding:0 9px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-size:11.5px;color:var(--fg-muted)"><span style="font:400 11px/1 var(--font-mono)">⌕</span>Search memory</span>+ <span style="flex:none;display:flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:var(--radius-lg);font-family:var(--font-display);font-size:11px;font-weight:600;text-transform:var(--type-uppercase);background:color-mix(in srgb,var(--action-tools) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-tools) 60%,transparent);color:color-mix(in srgb,var(--action-tools) var(--accent-text-mix),var(--fg-default))">+ New</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:9px;display:flex;flex-direction:column;gap:7px">+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel);padding:9px 10px">+ <div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:4px"><span style="font-size:12px;font-weight:600">Prefers concise replies</span><span style="font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-agent) 20%,transparent);color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default))">preference</span></div>+ <div style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">recalled 12× · Jun 12, 09:14</div>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel);padding:9px 10px">+ <div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:4px"><span style="font-size:12px;font-weight:600">Dentist — Dr. Aluko, 15:30 Thursdays</span><span style="font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-tool) 20%,transparent);color:color-mix(in srgb,var(--node-tool) var(--accent-text-mix),var(--fg-default))">fact</span></div>+ <div style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">recalled 3× · Jun 10, 18:02</div>+ </div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel);padding:9px 10px">+ <div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:4px"><span style="font-size:12px;font-weight:600">Invoices go to accounts@—, never reply-all</span><span style="font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-workflow) 20%,transparent);color:color-mix(in srgb,var(--node-workflow) var(--accent-text-mix),var(--fg-default))">rule</span></div>+ <div style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">recalled 7× · Jun 09, 11:41</div>+ </div>+ </div>+ <div style="flex:none;display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border-top:1px solid var(--border-default);background:var(--bg-panel);font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">+ <span style="padding:2px 8px;border:1px solid var(--border-default);border-radius:var(--radius-sm)">← Prev</span>+ <span>PAGE 1 / 4 · 47 MEMORIES</span>+ <span style="padding:2px 8px;border:1px solid var(--border-default);border-radius:var(--radius-sm);color:var(--fg-default)">Next →</span>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 11 · Task Manager Panel ─────────── -->+ <sc-if value="{{ show.tasks }}"><section id="p-tasks" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">11</span>+ <span style="font-size:16px;font-weight:600">Task Manager Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">parameterPanel/TaskManagerPanel.tsx · click a row</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ </div>+ <div style="width:430px;height:296px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-elevated);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid var(--border-default);background:var(--bg-panel)">+ <span style="display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600"><span style="color:color-mix(in srgb,var(--node-workflow) var(--accent-text-mix),var(--fg-default));font:400 11px/1 var(--font-mono)">▦</span>Tasks</span>+ <span style="display:flex;align-items:center;justify-content:space-between;width:132px;height:27px;padding:0 9px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-size:11.5px">Latest execution<span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▼</span></span>+ <span style="margin-left:auto;font-family:var(--font-mono);font-size:11.5px;color:var(--fg-muted)">3 OPEN · 1 BLOCKED</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:9px;display:flex;flex-direction:column;gap:7px">+ <div onClick="{{ selT1 }}" style="position:relative;overflow:hidden;cursor:pointer;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel);padding:9px 10px">+ <sc-if value="{{ tk.t1 }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--node-model)"></span></sc-if>+ <sc-if value="{{ tk.t1 }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;inset:0;background:var(--bg-active)"></span></sc-if>+ <div style="position:relative;display:flex;align-items:center;gap:8px;margin-bottom:5px">+ <span style="width:7px;height:7px;flex:none;border-radius:var(--radius-pill);background:var(--node-model);animation:ocpip 1.8s ease-in-out infinite;animation-play-state:var(--play)"></span>+ <span style="font-size:12.5px;font-weight:600">Implement /v2/teams endpoint</span>+ <span style="margin-left:auto;font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-model) 16%,transparent);color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default))">RUNNING</span>+ </div>+ <div style="position:relative;display:flex;gap:12px;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span>→ Coder</span><span>rev 4</span><span>attempt 1/3</span><span>2m 14s</span></div>+ </div>+ <div onClick="{{ selT2 }}" style="position:relative;overflow:hidden;cursor:pointer;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel);padding:9px 10px">+ <sc-if value="{{ tk.t2 }}"><span style="position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--node-model)"></span></sc-if>+ <sc-if value="{{ tk.t2 }}"><span style="position:absolute;inset:0;background:var(--bg-active)"></span></sc-if>+ <div style="position:relative;display:flex;align-items:center;gap:8px;margin-bottom:5px">+ <span style="width:7px;height:7px;flex:none;border-radius:var(--radius-pill);background:var(--warning)"></span>+ <span style="font-size:12.5px;font-weight:600">Draft migration notes</span>+ <span style="margin-left:auto;font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--warning) 24%,transparent);color:color-mix(in srgb,var(--warning) var(--accent-text-mix),var(--fg-default))">BLOCKED</span>+ </div>+ <div style="position:relative;display:flex;gap:12px;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span>→ Writer</span><span>rev 1</span><span>waiting on task-1</span></div>+ </div>+ <div onClick="{{ selT3 }}" style="position:relative;overflow:hidden;cursor:pointer;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel);padding:9px 10px">+ <sc-if value="{{ tk.t3 }}"><span style="position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--node-model)"></span></sc-if>+ <sc-if value="{{ tk.t3 }}"><span style="position:absolute;inset:0;background:var(--bg-active)"></span></sc-if>+ <div style="position:relative;display:flex;align-items:center;gap:8px;margin-bottom:5px">+ <span style="width:7px;height:7px;flex:none;border-radius:var(--radius-pill);background:var(--success)"></span>+ <span style="font-size:12.5px;font-weight:600">Audit credential encryption</span>+ <span style="margin-left:auto;font-family:var(--font-mono);font-size:11px;padding:2px 6px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">SUBMITTED</span>+ </div>+ <div style="position:relative;display:flex;gap:12px;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span>→ Reviewer</span><span>rev 2</span><span>done in 6m 02s</span></div>+ </div>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 12 · Team Monitor Panel ─────────── -->+ <sc-if value="{{ show.team }}"><section id="p-team" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">12</span>+ <span style="font-size:16px;font-weight:600">Team Monitor Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">parameterPanel/TeamMonitorPanel.tsx</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ </div>+ <div style="width:390px;height:274px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-elevated);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border-default);background:var(--bg-panel)">+ <span style="display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600"><span style="color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));font:400 11px/1 var(--font-mono)">⁂</span>Team Monitor</span>+ <span style="display:flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:11px;padding:3px 8px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--success) 24%,transparent);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default));letter-spacing:.05em"><span style="width:6px;height:6px;border-radius:var(--radius-pill);background:var(--success);animation:ocpip 2s ease-in-out infinite;animation-play-state:var(--play)"></span>ACTIVE</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:8px">+ <div style="display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid color-mix(in srgb,var(--node-agent) 30%,transparent);border-radius:var(--radius-md);background:color-mix(in srgb,var(--node-agent) 8%,var(--bg-panel))">+ <span style="flex:none;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-agent) 22%,transparent);color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));font:600 11px/1 var(--font-mono)">LD</span>+ <span style="min-width:0"><span style="display:block;font-size:12.5px;font-weight:600">Lead</span><span style="display:block;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">orchestrator_agent</span></span>+ <span style="margin-left:auto;font-family:var(--font-mono);font-size:11px;padding:2px 7px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-agent) 18%,transparent);color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default))">DELEGATING</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel)">+ <span style="flex:none;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-model) 22%,transparent);color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default));font:600 11px/1 var(--font-mono)">CD</span>+ <span style="min-width:0"><span style="display:block;font-size:12.5px;font-weight:600">Coder</span><span style="display:block;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">coding_agent · task-1</span></span>+ <span style="margin-left:auto;font-family:var(--font-mono);font-size:11px;padding:2px 7px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-model) 18%,transparent);color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default))">WORKING</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel)">+ <span style="flex:none;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:var(--bg-active);color:var(--fg-muted);font:600 11px/1 var(--font-mono)">RV</span>+ <span style="min-width:0"><span style="display:block;font-size:12.5px;font-weight:600">Reviewer</span><span style="display:block;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">review_agent</span></span>+ <span style="margin-left:auto;font-family:var(--font-mono);font-size:11px;padding:2px 7px;border-radius:var(--radius-sm);border:1px solid var(--border-default);color:var(--fg-muted)">IDLE</span>+ </div>+ </div>+ <div style="flex:none;padding:7px 12px;border-top:1px solid var(--border-default);background:var(--bg-panel);font-family:var(--font-mono);font-size:11px;color:var(--fg-muted);letter-spacing:.04em">3 MEMBERS · 1 WORKING · 4 TASKS DELEGATED</div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 13 · Process Manager Panel ─────────── -->+ <sc-if value="{{ show.process }}"><section id="p-process" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">13</span>+ <span style="font-size:16px;font-weight:600">Process Manager Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">parameterPanel/ProcessManagerPanel.tsx · 9-column process table</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ t.monoLabel }}</span>+ </div>+ <div style="width:840px;height:352px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);padding:15px;font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px">+ <div style="min-width:0">+ <div style="font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">Managed Processes</div>+ <div style="font-size:11.5px;color:var(--fg-muted);margin-top:2px">Live workflow processes, listener ports, output, and lifecycle controls.</div>+ </div>+ <span style="flex:none;display:flex;align-items:center;gap:5px;height:27px;padding:0 9px;border:1px solid var(--border-default);border-radius:var(--radius-lg);font-size:11px">⟳ Refresh</span>+ </div>+ <div style="flex:none;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px">+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-sm);background:var(--bg-elevated);padding:9px 10px"><div style="font-size:11.5px;color:var(--fg-muted)">Running</div><div style="font-size:19px;font-weight:600;color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">2 / 10</div></div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-sm);background:var(--bg-elevated);padding:9px 10px"><div style="font-size:11.5px;color:var(--fg-muted)">Stopped</div><div style="font-size:19px;font-weight:600">0</div></div>+ <div style="border:1px solid var(--border-default);border-radius:var(--radius-sm);background:var(--bg-elevated);padding:9px 10px"><div style="font-size:11.5px;color:var(--fg-muted)">Errors</div><div style="font-size:19px;font-weight:600;color:color-mix(in srgb,var(--destructive) var(--accent-text-mix),var(--fg-default))">1</div></div>+ </div>+ <div style="flex:none;display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;margin-bottom:11px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input)">+ <span style="color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⌕</span>+ <span style="font-size:12px;color:var(--fg-muted)">Search name, command, directory, or port</span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;border:1px solid var(--border-default);border-radius:var(--radius-sm);background:var(--bg-elevated)">+ <table style="width:100%;border-collapse:collapse;font-size:11.5px">+ <thead style="background:var(--bg-panel);color:var(--fg-muted);font-size:11px">+ <tr><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">Name</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">Status</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">PID</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">Ports</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">Started</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">Elapsed</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">Output</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap">Command</th><th style="border-bottom:1px solid var(--border-default);padding:6px 8px;font-weight:500;text-align:left;white-space:nowrap"></th></tr>+ </thead>+ <tbody>+ <tr>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-weight:500">api</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px"><span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">running</span></td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">48213</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">8000</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-size:11.5px;white-space:nowrap">Jun 12, 09:00:14</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">4h 12m</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-size:11.5px;font-variant-numeric:tabular-nums">412 out · 0 err</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:11.5px">uvicorn server.main:app</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;white-space:nowrap;color:var(--fg-muted)">◉ ■ ⟲</td>+ </tr>+ <tr>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-weight:500">worker</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px"><span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default);color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">running</span></td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">48219</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">—</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-size:11.5px;white-space:nowrap">Jun 12, 09:01:02</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">4h 11m</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-size:11.5px;font-variant-numeric:tabular-nums">1980 out · 3 err</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:11.5px">temporal worker --queue main</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;white-space:nowrap;color:var(--fg-muted)">◉ ■ ⟲</td>+ </tr>+ <tr>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-weight:500">classifier</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px"><span style="font-size:11px;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--border-default);color:color-mix(in srgb,var(--destructive) var(--accent-text-mix),var(--fg-default))">error</span></td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">47902</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">—</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-size:11.5px;white-space:nowrap">Jun 12, 08:14:51</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-variant-numeric:tabular-nums">38s</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;font-size:11.5px;font-variant-numeric:tabular-nums">0 out · 22 err</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:11.5px">python train_classifier.py</td>+ <td style="border-bottom:1px solid var(--border-default);padding:7px 8px;white-space:nowrap;color:var(--fg-muted)">◉ ⟲</td>+ </tr>+ </tbody>+ </table>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 14 · Gallery Panel ─────────── -->+ <sc-if value="{{ show.gallery }}"><section id="p-gallery" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">14</span>+ <span style="font-size:16px;font-weight:600">Gallery Panel</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">parameterPanel/GalleryPanel.tsx · gallery/WorkspaceBrowser.tsx · fileIcons.tsx tones</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">grid ⇄ list</span>+ </div>+ <div style="width:480px;height:352px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);padding:15px;font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px">+ <div style="min-width:0">+ <div style="font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">Workspace Files</div>+ <div style="font-size:11.5px;line-height:1.45;color:var(--fg-muted);margin-top:3px">Everything this workflow has produced. Any node can read these files — open a node and use <span style="font-weight:500;color:var(--fg-default)">Choose from workspace</span> on a file parameter.</div>+ </div>+ <span style="flex:none;display:flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-save) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-save) 60%,transparent);color:color-mix(in srgb,var(--action-save) var(--accent-text-mix),var(--fg-default));font-family:var(--font-display);font-size:11px;font-weight:600;text-transform:var(--type-uppercase)">⤒ Upload</span>+ </div>+ <div style="flex:none;display:flex;align-items:center;gap:8px;margin-bottom:9px">+ <span style="display:flex;align-items:center;gap:4px;min-width:0;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)"><span style="color:color-mix(in srgb,var(--node-workflow) var(--accent-text-mix),var(--fg-default))"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg></span><span style="color:var(--fg-muted)">/</span><span style="color:var(--fg-default)">reports</span></span>+ <span style="flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:27px;padding:0 9px;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-input);font-size:11px;color:var(--fg-muted)">⌕ Search this workspace</span>+ <span style="flex:none;display:flex;gap:4px">+ <button type="button" onClick="{{ viewGrid }}" style="position:relative;width:26px;height:25px;cursor:pointer;border-radius:var(--radius-sm);border:1px solid var(--border-default);background:var(--bg-input);color:var(--fg-muted);font:400 11px/1 var(--font-mono)">▦<sc-if value="{{ gv.grid }}" hint-placeholder-val="{{ true }}"><span style="position:absolute;inset:-1px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-tool) 22%,transparent);border:1px solid var(--node-tool)"></span></sc-if></button>+ <button type="button" onClick="{{ viewList }}" style="position:relative;width:26px;height:25px;cursor:pointer;border-radius:var(--radius-sm);border:1px solid var(--border-default);background:var(--bg-input);color:var(--fg-muted);font:400 11px/1 var(--font-mono)">☰<sc-if value="{{ gv.list }}"><span style="position:absolute;inset:-1px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-tool) 22%,transparent);border:1px solid var(--node-tool)"></span></sc-if></button>+ <span style="width:26px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);border:1px solid var(--border-default);color:var(--fg-muted);font:400 11px/1 var(--font-mono)">⟳</span>+ </span>+ </div>+ <div style="flex:1;min-height:0;overflow:auto;border:1px solid var(--border-default);border-radius:var(--radius-sm);background:var(--bg-elevated);padding:6px 9px">+ <sc-if value="{{ gv.list }}">+ <div style="display:flex;flex-direction:column">+ <div style="display:flex;align-items:center;gap:9px;padding:7px 4px;border-bottom:1px solid var(--border-default);font-size:11.5px">+ <span style="flex:none;width:16px;height:16px;color:color-mix(in srgb,var(--node-workflow) var(--accent-text-mix),var(--fg-default))"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg></span>+ <span style="flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">archive</span>+ <span style="flex:none;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">—</span>+ <span style="flex:none;width:104px;text-align:right;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">Jun 10, 14:02</span>+ <span style="flex:none;color:var(--fg-muted);font-size:11px">⚲</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px;padding:7px 4px;border-bottom:1px solid var(--border-default);font-size:11.5px">+ <span style="flex:none;width:16px;height:16px;color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default))"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/></svg></span>+ <span style="flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">chart.png</span>+ <span style="flex:none;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">204 KB</span>+ <span style="flex:none;width:104px;text-align:right;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">Jun 12, 09:12</span>+ <span style="flex:none;color:var(--fg-muted);font-size:11px">⚲</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px;padding:7px 4px;border-bottom:1px solid var(--border-default);font-size:11.5px">+ <span style="flex:none;width:16px;height:16px;color:var(--fg-muted)"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/><path d="M8 13h2M8 17h2M14 13h2M14 17h2"/></svg></span>+ <span style="flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">q2.csv</span>+ <span style="flex:none;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">18.4 KB</span>+ <span style="flex:none;width:104px;text-align:right;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">Jun 12, 09:11</span>+ <span style="flex:none;color:var(--fg-muted);font-size:11px">⚲</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px;padding:7px 4px;border-bottom:1px solid var(--border-default);font-size:11.5px">+ <span style="flex:none;width:16px;height:16px;color:var(--fg-muted)"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/><path d="M8 13h8M8 17h8M8 9h3"/></svg></span>+ <span style="flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">memo.pdf</span>+ <span style="flex:none;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">96 KB</span>+ <span style="flex:none;width:104px;text-align:right;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">Jun 11, 18:40</span>+ <span style="flex:none;color:var(--fg-muted);font-size:11px">⚲</span>+ </div>+ <div style="display:flex;align-items:center;gap:9px;padding:7px 4px;border-bottom:1px solid var(--border-default);font-size:11.5px">+ <span style="flex:none;width:16px;height:16px;color:var(--fg-muted)"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/><path d="m10 12-2 2 2 2M14 12l2 2-2 2"/></svg></span>+ <span style="flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">summarize.py</span>+ <span style="flex:none;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">3.1 KB</span>+ <span style="flex:none;width:104px;text-align:right;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">Jun 09, 11:41</span>+ <span style="flex:none;color:var(--fg-muted);font-size:11px">⚲</span>+ </div>+ </div>+ </sc-if>+ <sc-if value="{{ gv.grid }}" hint-placeholder-val="{{ true }}">+ <div style="display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:4px 0">+ <div style="display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel)"><span style="color:color-mix(in srgb,var(--node-workflow) var(--accent-text-mix),var(--fg-default));width:22px;height:22px"><svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg></span><span style="font-size:11px;text-align:center;line-height:1.2">archive</span></div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel)"><span style="color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));width:22px;height:22px"><svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21"/></svg></span><span style="font-size:11px;text-align:center;line-height:1.2">chart.png</span></div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel)"><span style="color:var(--fg-muted);width:22px;height:22px"><svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/><path d="M8 13h2M8 17h2M14 13h2M14 17h2"/></svg></span><span style="font-size:11px;text-align:center;line-height:1.2">q2.csv</span></div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel)"><span style="color:var(--fg-muted);width:22px;height:22px"><svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/><path d="M8 13h8M8 17h8M8 9h3"/></svg></span><span style="font-size:11px;text-align:center;line-height:1.2">memo.pdf</span></div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-panel)"><span style="color:var(--fg-muted);width:22px;height:22px"><svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/><path d="m10 12-2 2 2 2M14 12l2 2-2 2"/></svg></span><span style="font-size:11px;text-align:center;line-height:1.2">summarize.py</span></div>+ </div>+ </sc-if>+ </div>+ <div style="flex:none;display:flex;align-items:center;gap:5px;margin-top:8px;font-size:11px;color:var(--fg-default)">+ <span style="color:var(--fg-muted);font-size:11px">⚲</span> 2 pinned for this node's output+ <span style="padding:0 3px;font-size:11px;color:var(--fg-muted)">clear</span>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 15 · Toolbar + Status Bar ─────────── -->+ <sc-if value="{{ show.chrome }}"><section id="p-chrome" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">15</span>+ <span style="font-size:16px;font-weight:600">Toolbar + Status Bar</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">48px + 24px chrome · ui_kits Toolbar.jsx · ModeToggle.jsx · StatusBar.jsx</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ t.motion }}</span>+ </div>+ <div style="width:980px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;height:48px;padding:0 12px;border-bottom:1px solid var(--border-default);background:var(--bg-panel)">+ <span style="flex:none;display:flex;align-items:center;gap:6px">+ <span style="flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-save) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-save) 60%,transparent);color:color-mix(in srgb,var(--action-save) var(--accent-text-mix),var(--fg-default))"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18"/><path d="m16 15-3-3 3-3"/></svg></span>+ <span style="flex:none;width:1px;height:24px;background:var(--border-default);margin:0 4px"></span>+ <span style="flex:none;display:flex;align-items:center;gap:5px;height:30px;padding:0 11px;font-family:var(--font-display);font-size:11.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);white-space:nowrap;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-save) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-save) 60%,transparent);color:color-mix(in srgb,var(--action-save) var(--accent-text-mix),var(--fg-default))"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/></svg> File <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></span>+ </span>+ <span style="flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px">+ <span style="min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;color:var(--fg-default)">WhatsApp Assistant</span>+ <span style="flex:none;display:flex;color:var(--fg-muted)"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/></svg></span>+ </span>+ <span style="flex:none;display:flex;align-items:center;gap:6px">+ <span style="flex:none;font-size:13px;font-weight:600;color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default));white-space:nowrap">Mode:</span>+ <span style="flex:none;display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:var(--radius-md);border:1px solid var(--border-default);background:var(--surface-card)">+ <span style="display:flex;align-items:center;gap:4px;padding:4px 10px;border-radius:var(--radius-sm);border:1px solid color-mix(in srgb,var(--node-tool) 30%,transparent);background:color-mix(in srgb,var(--node-tool) 8%,transparent);color:color-mix(in srgb,var(--node-tool) var(--accent-text-mix),var(--fg-default));font-size:12px;font-weight:600;white-space:nowrap"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>Normal</span>+ <span style="display:flex;align-items:center;gap:4px;padding:4px 10px;border-radius:var(--radius-sm);border:1px solid transparent;color:var(--fg-muted);font-size:12px;font-weight:600;white-space:nowrap"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>Dev</span>+ </span>+ <span style="flex:none;width:1px;height:24px;background:var(--border-default);margin:0 4px"></span>+ <span style="flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-config) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-config) 60%,transparent);color:color-mix(in srgb,var(--action-config) var(--accent-text-mix),var(--fg-default))"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M5 19l2-2M17 7l2-2"/></svg></span>+ <span style="flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-secret) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-secret) 60%,transparent);color:var(--fg-default)"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/></svg></span>+ <span style="flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-tools) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-tools) 60%,transparent);color:color-mix(in srgb,var(--action-tools) var(--accent-text-mix),var(--fg-default))"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></svg></span>+ <span style="flex:none;width:1px;height:24px;background:var(--border-default);margin:0 4px"></span>+ <span style="flex:none;display:flex;align-items:center;gap:5px;height:30px;padding:0 11px;font-family:var(--font-display);font-size:11.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);white-space:nowrap;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-run) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-run) 60%,transparent);color:color-mix(in srgb,var(--action-run) var(--accent-text-mix),var(--fg-default))"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3"/></svg> Start</span>+ <span style="flex:none;display:flex;align-items:center;gap:5px;height:30px;padding:0 11px;font-family:var(--font-display);font-size:11.5px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);white-space:nowrap;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-save) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-save) 60%,transparent);color:color-mix(in srgb,var(--action-save) var(--accent-text-mix),var(--fg-default));opacity:.5"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M17 21v-8H7v8M7 3v5h8"/></svg> Save</span>+ <span style="flex:none;display:flex;align-items:center;gap:6px;padding:4px 10px;font-family:var(--font-mono);font-size:12px;white-space:nowrap;color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))"><span style="width:8px;height:8px;border-radius:50%;background:var(--success)"></span>Saved</span>+ <span style="flex:none;width:1px;height:24px;background:var(--border-default);margin:0 4px"></span>+ <span style="flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:var(--radius-lg);background:color-mix(in srgb,var(--action-tools) 15%,transparent);border:1px solid color-mix(in srgb,var(--action-tools) 60%,transparent);color:color-mix(in srgb,var(--action-tools) var(--accent-text-mix),var(--fg-default))"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M15 3v18"/><path d="m8 9 3 3-3 3"/></svg></span>+ </span>+ </div>+ <div style="flex:none;height:96px;display:flex;align-items:center;justify-content:center;gap:16px;background:var(--bg-canvas);background-image:radial-gradient(var(--border-default) 1px,transparent 1px);background-size:16px 16px">+ <span style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:62px;height:62px;border-radius:var(--radius-md);border:2px solid color-mix(in srgb,var(--node-trigger) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-trigger) 16%,var(--bg-elevated)),var(--bg-elevated))"><span style="font-size:16px">💬</span><span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">RECEIVE</span></span>+ <span style="width:26px;height:1px;background:var(--border-strong)"></span>+ <span style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:62px;height:62px;border-radius:var(--radius-md);border:2px solid color-mix(in srgb,var(--node-agent) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-agent) 16%,var(--bg-elevated)),var(--bg-elevated));animation:ocpulse 1.4s ease-in-out infinite;animation-play-state:var(--play)"><span style="font-size:16px">🤖</span><span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">AGENT</span></span>+ <span style="width:26px;height:1px;background:var(--border-strong)"></span>+ <span style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:62px;height:62px;border-radius:var(--radius-md);border:2px solid color-mix(in srgb,var(--node-tool) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-tool) 16%,var(--bg-elevated)),var(--bg-elevated))"><span style="font-size:16px">📤</span><span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">SEND</span></span>+ </div>+ <div style="flex:none;display:flex;align-items:center;gap:12px;height:24px;padding:0 14px;border-top:1px solid var(--border-default);background:var(--bg-panel);font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--fg-muted);white-space:nowrap">+ <span style="display:flex;align-items:center;gap:6px;font-weight:500;color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))"><span style="width:6px;height:6px;border-radius:var(--radius-pill);background:var(--success);animation:ocpip 2s ease-in-out infinite;animation-play-state:var(--play)"></span>ONLINE</span>+ <span style="opacity:.4">|</span>+ <span>WF: <span style="color:var(--fg-default)">WhatsApp Assistant</span></span>+ <span style="opacity:.4">|</span>+ <span>NODES: <span style="color:var(--fg-default)">6</span></span>+ <span style="margin-left:auto;display:flex;align-items:center;gap:12px">+ <span>THEME: <span style="color:var(--fg-default)">{{ t.upper }}</span></span>+ <span style="opacity:.4">|</span>+ <span style="font-variant-numeric:tabular-nums;color:var(--fg-default)">{{ clock }}</span>+ </span>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 16 · Node Canvas ─────────── -->+ <sc-if value="{{ show.canvas }}"><section id="p-canvas" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">16</span>+ <span style="font-size:16px;font-weight:600">Node Canvas</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">Dashboard.tsx · SquareNode.tsx · per-theme --canvas-grid + ornaments · one node per glow state: selected, executing ×2, armed, success</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">pulse {{ t.pulseName }} · grid {{ t.mStyle }}</span>+ <sc-if value="{{ t.themedIcons }}"><span style="font:600 11px/1 ui-monospace,Menlo,monospace;padding:2px 5px;border-radius:3px;background:rgba(139,233,253,.14);color:#8be9fd">OWN GLYPHS</span></sc-if>+ </div>+ <div style="position:relative;width:620px;height:488px;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-canvas);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="{{ t.stack }}"></div>+ <div style="{{ t.canvas }}"></div>+ <div style="{{ t.dots }}"></div>+ <sc-if value="{{ t.hasFloor }}"><div style="{{ t.floor }}"></div></sc-if>+ <sc-if value="{{ t.hasMarquee }}"><div style="position:absolute;top:12px;right:16px;z-index:42;pointer-events:none;font-family:var(--font-mono);font-size:11px;letter-spacing:.2em;color:var(--node-pulse-color);text-shadow:0 0 4px var(--node-pulse-color);animation:cyber-blink 1.6s steps(2) infinite;animation-play-state:var(--play)">{{ t.marquee }}</div></sc-if>+ <sc-if value="{{ t.hasCrt }}"><div style="position:absolute;inset:0;pointer-events:none;z-index:40;background:repeating-linear-gradient(0deg,transparent 0 2px,rgba(0,0,0,0.25) 2px 3px);animation:cyber-flicker 5s linear infinite;animation-play-state:var(--play)"></div></sc-if>+ <sc-if value="{{ t.hasScan }}"><div style="position:absolute;left:0;right:0;height:12%;pointer-events:none;z-index:41;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--node-pulse-color) 18%,transparent),transparent);animation:cyber-roll 8s linear infinite;animation-play-state:var(--play)"></div></sc-if>+ <sc-if value="{{ t.isRen }}"><div style="position:absolute;inset:0;pointer-events:none;z-index:38;background:radial-gradient(circle 220px at 22% 24%,color-mix(in srgb,var(--action-config) 12%,transparent),transparent 70%);animation:ren-flicker 6s ease-in-out infinite;animation-play-state:var(--play)"></div></sc-if>++ <svg width="620" height="488" viewBox="0 0 620 488" style="position:absolute;inset:0;z-index:1;pointer-events:none">+ <g fill="none" stroke="color-mix(in srgb,var(--fg-default) 62%,transparent)" stroke-width="1.5" stroke-dasharray="5 5" stroke-linejoin="round">+ <path d="M 102 156 H 170"></path>+ <path d="M 470 196 H 494"></path>+ <path d="M 240 332 V 314 H 260 V 296"></path>+ <path d="M 430 332 V 314 H 380 V 296"></path>+ </g>+ </svg>++ <div style="position:absolute;left:30px;top:120px;z-index:10;width:72px;display:flex;flex-direction:column;align-items:center;font-size:11px">+ <div style="position:relative;width:72px;height:72px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--node-trigger) 60%,transparent);color:color-mix(in srgb,var(--node-trigger) var(--accent-text-mix),var(--fg-default));background:linear-gradient(135deg,color-mix(in srgb,var(--node-trigger) 18%,var(--surface-card)) 0%,var(--surface-card) 100%);box-shadow:0 2px 8px color-mix(in srgb,var(--node-trigger) 18%,transparent);transition:transform var(--dur-fast) var(--ease-default),box-shadow var(--dur-fast) var(--ease-default);animation:trigger-listening 2.4s ease-in-out infinite;animation-play-state:var(--play)" style-hover="transform:translateY(-1px)">{{ t.icon.nTrigger }}+ <span style="position:absolute;top:-4px;left:-4px;width:10px;height:10px;border-radius:50%;background:var(--node-pulse-color);box-shadow:0 0 6px color-mix(in srgb,var(--node-pulse-color) 70%,transparent);animation:opencompany-pip-blink 1.4s ease-in-out infinite;animation-play-state:var(--play);z-index:30"></span>+ <span style="position:absolute;top:-8px;right:-8px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-trigger) 16%,var(--surface-card));border:1px solid var(--node-trigger);color:var(--fg-default);font-size:11px;line-height:1;z-index:30">⚙</span>+ <span style="position:absolute;bottom:-5px;left:-5px;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--action-secret) 14%,var(--surface-card));border:1px solid var(--action-secret);font-size:11px;line-height:1;color:var(--fg-default);z-index:30;animation:trigger-bolt 1.8s ease-in-out infinite;animation-play-state:var(--play)">⚡</span>+ <span style="position:absolute;right:-6px;top:50%;margin-top:-6px;width:12px;height:12px;border-radius:50%;background:var(--surface-card);border:2px solid var(--node-trigger);z-index:20"></span>+ </div>+ <div style="margin-top:8px;width:120px;font-family:var(--font-display);font-size:12.5px;font-weight:600;line-height:1.25;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);text-align:center;color:var(--fg-default)">WhatsApp Receive</div>+ <div style="margin-top:2px;font-family:var(--font-mono);font-size:11px;color:color-mix(in srgb,var(--node-pulse-color) var(--accent-text-mix),var(--fg-default))">listening</div>+ </div>++ <!-- AI Agent — AIAgentNode.tsx: 300×200, 72px label gutters -->+ <div style="position:absolute;left:170px;top:96px;z-index:12;width:300px;height:200px;padding:16px 72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;border-radius:var(--radius-node);border:2px solid var(--node-agent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-agent) 14%,var(--surface-card)) 0%,var(--surface-card) 100%);transition:transform var(--dur-fast) var(--ease-default);animation: {{ t.pulseAnim }};animation-play-state:var(--play)" style-hover="transform:translateY(-1px)">+ <span style="position:absolute;top:4px;left:4px;z-index:20;padding:1px 6px;border:1px solid var(--node-agent);border-radius:var(--radius-pill);font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default))">12 / 500</span>+ <span style="position:absolute;top:6px;right:6px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-agent) 16%,var(--surface-card));border:1px solid var(--node-agent);color:var(--fg-default);font-size:11px;line-height:1;z-index:20">⚙</span>+ <span style="display:flex;align-items:center;justify-content:center;width:28px;height:28px;color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default))">{{ t.icon.nAgent }}</span>+ <div style="width:100%;font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);line-height:1.15;overflow-wrap:break-word">AI Agent</div>+ <div style="width:100%;font-size:12px;line-height:1.2;color:color-mix(in srgb,var(--node-trigger) var(--accent-text-mix),var(--fg-default))">Thinking...</div>+ <span style="position:absolute;left:10px;top:30%;margin-top:-8px;font-size:12.5px;font-weight:500;color:var(--fg-default)">Input</span>+ <span style="position:absolute;left:-6px;top:30%;margin-top:-6px;width:12px;height:12px;border-radius:50%;background:var(--surface-card);border:2px solid var(--fg-faint);z-index:20"></span>+ <span style="position:absolute;right:14px;top:50%;margin-top:-8px;font-size:12.5px;font-weight:500;color:var(--fg-default)">Output</span>+ <span style="position:absolute;right:-6px;top:50%;margin-top:-6px;width:12px;height:12px;border-radius:50%;background:var(--surface-card);border:2px solid var(--node-agent);z-index:20"></span>+ <span style="position:absolute;bottom:16px;left:30%;transform:translateX(-50%);font-size:12.5px;font-weight:500;color:var(--fg-default)">Memory</span>+ <span style="position:absolute;bottom:-6px;left:30%;margin-left:-6px;width:12px;height:12px;background:var(--surface-card);border:2px solid var(--node-agent);transform:rotate(45deg);z-index:20"></span>+ <span style="position:absolute;bottom:16px;left:70%;transform:translateX(-50%);font-size:12.5px;font-weight:500;color:var(--fg-default)">Tool</span>+ <span style="position:absolute;bottom:-6px;left:70%;margin-left:-6px;width:12px;height:12px;background:var(--surface-card);border:2px solid var(--node-agent);transform:rotate(45deg);z-index:20"></span>+ </div>++ <div style="position:absolute;left:494px;top:160px;z-index:10;width:72px;display:flex;flex-direction:column;align-items:center;font-size:11px">+ <div style="position:relative;width:72px;height:72px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--node-tool) 60%,transparent);color:color-mix(in srgb,var(--node-tool) var(--accent-text-mix),var(--fg-default));background:linear-gradient(135deg,color-mix(in srgb,var(--node-tool) 18%,var(--surface-card)) 0%,var(--surface-card) 100%);box-shadow:0 0 0 1px var(--success),0 0 14px color-mix(in srgb,var(--success) 60%,transparent);transition:transform var(--dur-fast) var(--ease-default),box-shadow var(--dur-fast) var(--ease-default)" style-hover="transform:translateY(-1px);box-shadow:0 4px 14px color-mix(in srgb,var(--node-tool) 28%,transparent)">{{ t.icon.nSend }}+ <span style="position:absolute;top:-4px;left:-4px;width:10px;height:10px;border-radius:50%;background:var(--success);box-shadow:0 0 6px color-mix(in srgb,var(--success) 70%,transparent);z-index:30"></span>+ <span style="position:absolute;top:-8px;right:-8px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-tool) 16%,var(--surface-card));border:1px solid var(--node-tool);color:var(--fg-default);font-size:11px;line-height:1;z-index:30">⚙</span>+ <span style="position:absolute;bottom:-4px;right:-4px;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--success) 14%,var(--surface-card));border:1px solid var(--success);color:var(--fg-default);font-size:11px;font-weight:700;line-height:1;z-index:30">D</span>+ <span style="position:absolute;left:-6px;top:50%;margin-top:-6px;width:12px;height:12px;border-radius:50%;background:var(--surface-card);border:2px solid var(--fg-faint);z-index:20"></span>+ </div>+ <div style="margin-top:8px;width:120px;font-family:var(--font-display);font-size:12.5px;font-weight:600;line-height:1.25;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);text-align:center;color:var(--fg-default)">WhatsApp Send</div>+ <div style="margin-top:2px;font-family:var(--font-mono);font-size:11px;color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">1.9s</div>+ </div>++ <div style="position:absolute;left:210px;top:332px;z-index:10;width:60px;display:flex;flex-direction:column;align-items:center;font-size:11px">+ <div style="position:relative;width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-node);border:2px solid var(--node-agent);color:color-mix(in srgb,var(--node-agent) var(--accent-text-mix),var(--fg-default));background:linear-gradient(135deg,color-mix(in srgb,var(--node-agent) 18%,var(--surface-card)) 0%,var(--surface-card) 100%);box-shadow:0 0 0 1px var(--node-agent),0 4px 14px color-mix(in srgb,var(--node-agent) 32%,transparent);transition:transform var(--dur-fast) var(--ease-default),box-shadow var(--dur-fast) var(--ease-default)" style-hover="transform:translateY(-1px);box-shadow:0 4px 14px color-mix(in srgb,var(--node-agent) 28%,transparent)">{{ t.icon.nMemory }}+ <span style="position:absolute;top:-4px;left:-4px;width:10px;height:10px;border-radius:50%;background:var(--fg-faint);box-shadow:0 0 6px color-mix(in srgb,var(--fg-faint) 70%,transparent);z-index:30"></span>+ <span style="position:absolute;top:-8px;right:-8px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-agent) 16%,var(--surface-card));border:1px solid var(--node-agent);color:var(--fg-default);font-size:11px;line-height:1;z-index:30">⚙</span>+ <span style="position:absolute;top:-6px;left:50%;margin-left:-6px;width:12px;height:12px;background:var(--surface-card);border:2px solid var(--node-agent);transform:rotate(45deg);z-index:20"></span>+ </div>+ <div style="margin-top:8px;width:120px;font-family:var(--font-display);font-size:12.5px;font-weight:600;line-height:1.25;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);text-align:center;color:var(--fg-default)">Simple Memory</div>+ </div>++ <div style="position:absolute;left:400px;top:332px;z-index:10;width:60px;display:flex;flex-direction:column;align-items:center;font-size:11px">+ <div style="position:relative;width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--node-model) 60%,transparent);color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default));background:linear-gradient(135deg,color-mix(in srgb,var(--node-model) 18%,var(--surface-card)) 0%,var(--surface-card) 100%);transition:transform var(--dur-fast) var(--ease-default),box-shadow var(--dur-fast) var(--ease-default);animation: {{ t.pulseAnimSq }};animation-play-state:var(--play)" style-hover="transform:translateY(-1px)">{{ t.icon.nTool }}+ <span style="position:absolute;top:-4px;left:-4px;width:10px;height:10px;border-radius:50%;background:var(--node-model);box-shadow:0 0 6px color-mix(in srgb,var(--node-model) 60%,transparent);animation:opencompany-pip-blink 1.4s ease-in-out infinite;animation-play-state:var(--play);z-index:30"></span>+ <span style="position:absolute;top:-8px;right:-8px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-model) 16%,var(--surface-card));border:1px solid var(--node-model);color:var(--fg-default);font-size:11px;line-height:1;z-index:30">⚙</span>+ <span style="position:absolute;top:-6px;left:50%;margin-left:-6px;width:12px;height:12px;background:var(--surface-card);border:2px solid var(--node-model);transform:rotate(45deg);z-index:20"></span>+ </div>+ <div style="margin-top:8px;width:120px;font-family:var(--font-display);font-size:12.5px;font-weight:600;line-height:1.25;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase);text-align:center;color:var(--fg-default)">Android Toolkit</div>+ </div>++ <div style="position:absolute;left:0;right:0;bottom:0;z-index:45;display:flex;align-items:center;gap:10px;height:24px;padding:0 12px;border-top:1px solid var(--border-default);background:var(--bg-panel);font-family:var(--font-mono);font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--fg-muted);white-space:nowrap">+ <span style="display:flex;align-items:center;gap:6px;font-weight:500;color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))"><span style="flex:none;width:6px;height:6px;border-radius:50%;background:var(--success);animation:opencompany-pip-blink 2s ease-in-out infinite;animation-play-state:var(--play)"></span>ONLINE</span><span style="opacity:.4">|</span>+ <span>WF: <span style="color:var(--fg-default)">WhatsApp Assistant</span></span><span style="opacity:.4">|</span>+ <span>NODES: <span style="color:var(--fg-default)">6</span></span>+ <span style="margin-left:auto;display:flex;align-items:center;gap:10px"><span>THEME: <span style="color:var(--fg-default)">{{ t.upper }}</span></span><span style="opacity:.4">|</span><span style="font-variant-numeric:tabular-nums;color:var(--fg-default)">12:04:05</span></span>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ <!-- ─────────── 17 · Motion + Animations ─────────── -->+ <sc-if value="{{ show.motion }}"><section id="p-motion" style="padding:26px 26px 8px;scroll-margin-top:12px;border-top:1px solid #1b1e25">+ <div style="display:flex;align-items:baseline;gap:12px;margin:0 0 16px">+ <span style="font:600 11.5px/1 ui-monospace,Menlo,monospace;background:#1b1e25;border:1px solid #2b2f37;color:#8be9fd;padding:4px 8px;border-radius:5px">17</span>+ <span style="font-size:16px;font-weight:600">Motion + Animations</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#a3abb8">tokens/animations.css + themes/base.css · easing carries the personality; the glow ladder is rest → hover → selected → executing → success → error</span>+ </div>+ <div style="display:flex;flex-wrap:wrap;gap:26px">+ <sc-for list="{{ themes }}" as="t" hint-placeholder-count="12">+ <div style="{{ t.vars }}">+ <div style="display:flex;align-items:baseline;gap:7px;margin:0 0 7px 2px">+ <span style="font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;color:#e8eaed">{{ t.name }}</span>+ <span style="font:400 11px/1 ui-monospace,Menlo,monospace;color:#9aa3b0">{{ t.mStyle }}</span>+ </div>+ <div style="width:392px;height:330px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-panel);font-family:var(--font-body);color:var(--fg-default);box-shadow:0 8px 22px rgba(0,0,0,.3)">+ <div style="flex:none;display:flex;align-items:center;gap:9px;padding:10px 13px;border-bottom:1px solid var(--border-default);background:var(--bg-app)">+ <span style="font-family:var(--font-display);font-size:14px;font-weight:600;letter-spacing:var(--type-tracking-display);text-transform:var(--type-uppercase)">{{ t.name }}</span>+ <span style="font-family:var(--font-mono);font-size:11px;padding:3px 7px;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--node-pulse-color) 16%,transparent);color:color-mix(in srgb,var(--node-pulse-color) var(--accent-text-mix),var(--fg-default));letter-spacing:.07em;text-transform:uppercase">{{ t.mStyle }}</span>+ <span style="margin-left:auto;flex:none;white-space:nowrap;font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">{{ t.durF }} · {{ t.durD }} · {{ t.durS }}</span>+ </div>+ <div style="flex:1;min-height:0;display:flex">+ <div style="flex:none;width:126px;display:flex;flex-direction:column;gap:6px;padding:12px;border-right:1px solid var(--border-default)">+ <div style="font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-muted)">ease-default</div>+ <svg viewBox="-8 -8 116 116" width="100" height="100" style="flex:none">+ <rect x="0" y="0" width="100" height="100" fill="var(--bg-app)" stroke="var(--border-default)" stroke-width="1"></rect>+ <path d="M0,50 H100 M50,0 V100" stroke="var(--border-default)" stroke-width="0.5" opacity="0.7"></path>+ <path d="{{ t.curve }}" fill="none" stroke="var(--node-pulse-color)" stroke-width="2.5" stroke-linecap="round"></path>+ </svg>+ <div style="font-family:var(--font-mono);font-size:11px;line-height:1.4;color:var(--fg-muted);word-break:normal;overflow-wrap:anywhere">{{ t.ease }}</div>+ </div>+ <div style="flex:1;min-width:0;display:flex;flex-direction:column;padding:12px;gap:11px">+ <div>+ <div style="font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-muted);margin-bottom:6px">transition feel · {{ t.durS }}</div>+ <div style="position:relative;height:26px;padding:3px;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-app)">+ <span style="display:block;width:18px;height:18px;border-radius:var(--radius-sm);background:var(--node-agent);animation: {{ t.slideAnim }};animation-play-state:var(--play)"></span>+ </div>+ </div>+ <div style="display:flex;align-items:flex-start;gap:11px;flex-wrap:wrap">+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:36px;height:36px;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--node-agent) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-agent) 18%,var(--surface-card)),var(--surface-card));box-shadow:0 2px 8px color-mix(in srgb,var(--node-agent) 18%,transparent)"></div>+ <span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">rest</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:36px;height:36px;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--node-agent) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-agent) 18%,var(--surface-card)),var(--surface-card));box-shadow:0 4px 14px color-mix(in srgb,var(--node-agent) 28%,transparent);transform:translateY(-1px)"></div>+ <span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">hover</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:36px;height:36px;border-radius:var(--radius-node);border:2px solid var(--node-agent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-agent) 18%,var(--surface-card)),var(--surface-card));box-shadow:0 0 0 1px var(--node-agent),0 4px 14px color-mix(in srgb,var(--node-agent) 32%,transparent)"></div>+ <span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">sel</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:36px;height:36px;border-radius:var(--radius-node);border:2px solid var(--node-agent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-agent) 18%,var(--surface-card)),var(--surface-card));animation: {{ t.pulseAnim }};animation-play-state:var(--play)"></div>+ <span style="font-family:var(--font-mono);font-size:11px;color:color-mix(in srgb,var(--node-pulse-color) var(--accent-text-mix),var(--fg-default))">exec</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:36px;height:36px;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--node-tool) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-tool) 18%,var(--surface-card)),var(--surface-card));box-shadow:0 0 0 1px var(--success),0 0 14px color-mix(in srgb,var(--success) 60%,transparent)"></div>+ <span style="font-family:var(--font-mono);font-size:11px;color:color-mix(in srgb,var(--success) var(--accent-text-mix),var(--fg-default))">ok</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:36px;height:36px;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--destructive) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--destructive) 18%,var(--surface-card)),var(--surface-card));box-shadow:0 0 0 1px var(--destructive),0 0 14px color-mix(in srgb,var(--destructive) 60%,transparent)"></div>+ <span style="font-family:var(--font-mono);font-size:11px;color:color-mix(in srgb,var(--destructive) var(--accent-text-mix),var(--fg-default))">err</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="position:relative;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:16px;border-radius:var(--radius-node);border:2px solid color-mix(in srgb,var(--node-trigger) 60%,transparent);background:linear-gradient(135deg,color-mix(in srgb,var(--node-trigger) 18%,var(--surface-card)),var(--surface-card));animation:trigger-listening 2.4s ease-in-out infinite;animation-play-state:var(--play)">💬+ <span style="position:absolute;bottom:-4px;left:-4px;width:14px;height:14px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--action-secret) 14%,var(--surface-card));border:1px solid var(--action-secret);font-size:11px;color:var(--fg-default);animation:trigger-bolt 1.8s ease-in-out infinite;animation-play-state:var(--play)">⚡</span>+ </div>+ <span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">armed</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:40px;height:40px;display:flex;align-items:center;justify-content:center">+ <span style="width:20px;height:20px;border-radius:50%;border:2px solid color-mix(in srgb,var(--node-model) 25%,transparent);border-top-color:color-mix(in srgb,var(--node-model) var(--accent-text-mix),var(--fg-default));animation:ocspin 900ms linear infinite;animation-play-state:var(--play)"></span>+ </div>+ <span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">spinner</span>+ </div>+ <div style="display:flex;flex-direction:column;align-items:center;gap:6px">+ <div style="width:40px;height:40px;display:flex;align-items:center;justify-content:center;gap:4px">+ <span style="width:8px;height:8px;border-radius:50%;background:var(--success);animation:opencompany-pip-blink 1.4s ease-in-out infinite;animation-play-state:var(--play)"></span>+ <span style="width:8px;height:8px;border-radius:50%;background:var(--warning);animation:opencompany-pip-blink 1.4s ease-in-out .35s infinite;animation-play-state:var(--play)"></span>+ </div>+ <span style="font-family:var(--font-mono);font-size:11px;color:var(--fg-muted)">pips</span>+ </div>+ </div>+ <div style="margin-top:auto;position:relative;height:34px;overflow:hidden;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-canvas)">+ <sc-if value="{{ t.hasScan }}"><span style="position:absolute;left:0;right:0;height:40%;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--node-pulse-color) 22%,transparent),transparent);animation:cyber-roll 3s linear infinite;animation-play-state:var(--play)"></span></sc-if>+ <sc-if value="{{ t.isRen }}"><span style="position:absolute;inset:0;background:radial-gradient(circle 60px at 30% 50%,color-mix(in srgb,var(--action-config) 22%,transparent),transparent 70%);animation:ren-flicker 6s ease-in-out infinite;animation-play-state:var(--play)"></span></sc-if>+ <span style="position:absolute;left:8px;top:50%;transform:translateY(-50%);font-family:var(--font-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-muted)">ambient: {{ t.ambient }}</span>+ </div>+ </div>+ </div>+ </div>+ </div>+ </sc-for>+ </div>+ </section></sc-if>++ </div>+ </main>+ </div>+</div>+</x-dc>+<script type="text/x-dc" data-dc-script data-props="{"$preview":{"width":1600,"height":1000}}">+const THEMES = [+ { k:'light', n:'Light', fam:'BASE', w:'quiet grey-blue workspace', dark:false,+ bg:'#f5f7fa', pan:'#fafbfc', cv:'#ffffff', el:'#ffffff', inp:'#ffffff',+ fg:'#1a1d21', mu:'#4b5563', fa:'#9ca3af', bd:'#d1d5db', st:'#9ca3af',+ disp:"'Geist',system-ui,sans-serif", body:"'Geist',system-ui,sans-serif", mono:"'JetBrains Mono',ui-monospace,monospace", monoLabel:'JetBrains',+ caps:'none', tr:'0', base:'14px', r:[4,6,8,999],+ run:'#15803d', stop:'#be185d', save:'#0e7490', cfg:'#c2410c', sec:'#a16207', tools:'#7c3aed',+ ok:'#059669', warn:'#d97706', bad:'#dc2626', info:'#0891b2',+ na:'#7c3aed', nm:'#0e7490', nt:'#15803d', ng:'#be185d', nw:'#c2410c',+ type:'Geist · sentence case', motion:'90/180/320 smooth', snd:'parchment' },+ { k:'dark', n:'Dark', fam:'BASE', w:'neutral slate + Dracula neon', dark:true,+ bg:'#0d0f13', pan:'#15171c', cv:'#0d0f13', el:'#1b1e25', inp:'#15171c',+ fg:'#e8eaed', mu:'#9aa1ac', fa:'#a3abb8', bd:'#2b2f37', st:'#3c424c',+ disp:"'Geist',system-ui,sans-serif", body:"'Geist',system-ui,sans-serif", mono:"'JetBrains Mono',ui-monospace,monospace", monoLabel:'JetBrains',+ caps:'none', tr:'0', base:'14px', r:[4,6,8,999],+ run:'#50fa7b', stop:'#ff79c6', save:'#8be9fd', cfg:'#ffb86c', sec:'#f1fa8c', tools:'#bd93f9',+ ok:'#22c55e', warn:'#f59e0b', bad:'#ef4444', info:'#38bdf8',+ na:'#bd93f9', nm:'#8be9fd', nt:'#50fa7b', ng:'#ff79c6', nw:'#ffb86c',+ type:'Geist · sentence case', motion:'90/180/320 smooth', snd:'terminal' },+ { k:'renaissance', n:'Renaissance', fam:'UTOPIAN', w:'illuminated codex', dark:false,+ bg:'#f3e8c8', pan:'#ead09a', cv:'#e8d4a0', el:'#fbf3dc', inp:'#fbf3dc',+ fg:'#3a2008', mu:'#5a3c12', fa:'#9a7a44', bd:'#8a5e1c', st:'#6a4410',+ disp:"'Cinzel',serif", body:"'Cormorant Garamond',serif", mono:"'IM Fell English',serif", monoLabel:'IM Fell',+ caps:'uppercase', tr:'0.10em', base:'14px', r:[2,3,4,12],+ run:'hsl(78 63% 25%)', stop:'hsl(2 79% 30%)', save:'hsl(41 65% 51%)', cfg:'hsl(35 71% 44%)', sec:'hsl(211 56% 23%)', tools:'hsl(32 53% 48%)',+ ok:'hsl(78 63% 25%)', warn:'hsl(35 71% 44%)', bad:'hsl(2 79% 30%)', info:'hsl(211 56% 23%)',+ na:'#2548c8', nm:'#d4a030', nt:'hsl(78 63% 25%)', ng:'#8a1410', nw:'#f0c850',+ type:'Cinzel + Cormorant · UPPER .10em', motion:'140/280/520 organic', snd:'parchment' },+ { k:'greek', n:'Greek', fam:'UTOPIAN', w:'sun-bleached marble agora', dark:false,+ bg:'#ede5d0', pan:'#f5efde', cv:'#e6dcc2', el:'#faf6e9', inp:'#faf6e9',+ fg:'#2a2415', mu:'#6a5d3c', fa:'#9a8d6c', bd:'#b8a878', st:'#8a7a50',+ disp:"'Cinzel',serif", body:"'Cormorant Garamond',serif", mono:"'Courier Prime',monospace", monoLabel:'Courier Prime',+ caps:'uppercase', tr:'0.18em', base:'14px', r:[0,0,2,2],+ run:'hsl(71 41% 33%)', stop:'hsl(1 66% 29%)', save:'hsl(41 56% 52%)', cfg:'hsl(41 56% 52%)', sec:'hsl(217 53% 33%)', tools:'hsl(217 53% 33%)',+ ok:'hsl(71 41% 33%)', warn:'hsl(41 56% 52%)', bad:'hsl(1 66% 29%)', info:'hsl(217 53% 33%)',+ na:'#284b82', nm:'#c8a040', nt:'#6a7a32', ng:'#7a1a18', nw:'#284b82',+ type:'Cinzel + Cormorant · UPPER .18em', motion:'120/240/460 smooth', snd:'marble' },+ { k:'edo', n:'Edo', fam:'UTOPIAN', w:'washi paper + sumi-e ink', dark:false,+ bg:'#f4ecd8', pan:'#faf3e0', cv:'#ede4ca', el:'#fdf8ea', inp:'#fdf8ea',+ fg:'#1a1410', mu:'#6a5e48', fa:'#9a8e70', bd:'#c8b890', st:'#a09070',+ disp:"'Shippori Mincho',serif", body:"'Shippori Mincho',serif", mono:"'JetBrains Mono',monospace", monoLabel:'JetBrains',+ caps:'none', tr:'0.06em', base:'14px', r:[0,0,0,0],+ run:'hsl(100 29% 32%)', stop:'hsl(0 71% 41%)', save:'hsl(0 71% 41%)', cfg:'hsl(41 60% 49%)', sec:'hsl(24 25% 8%)', tools:'hsl(100 29% 32%)',+ ok:'hsl(100 29% 32%)', warn:'hsl(41 60% 49%)', bad:'hsl(0 71% 41%)', info:'hsl(24 25% 8%)',+ na:'#1a1410', nm:'#b41e1e', nt:'#4a6a3a', ng:'#e89aa8', nw:'#b41e1e',+ type:'Shippori Mincho · .06em', motion:'90/220/520 organic', snd:'ink' },+ { k:'steampunk', n:'Steampunk', fam:'UTOPIAN', w:'brass, copper, riveted leather', dark:true,+ bg:'#2a1f12', pan:'#3a2a18', cv:'#1a1208', el:'#4a3620', inp:'#2a1f12',+ fg:'#e8d8b0', mu:'#d6c199', fa:'#8a7450', bd:'#6a4a20', st:'#8a6430',+ disp:"'IM Fell English SC',serif", body:"'IM Fell English',serif", mono:"'Special Elite',monospace", monoLabel:'Special Elite',+ caps:'uppercase', tr:'0.10em', base:'14px', r:[2,4,8,8],+ run:'hsl(79 41% 38%)', stop:'hsl(14 68% 32%)', save:'hsl(40 64% 56%)', cfg:'hsl(40 64% 56%)', sec:'hsl(200 39% 47%)', tools:'hsl(18 63% 44%)',+ ok:'hsl(79 41% 38%)', warn:'hsl(40 64% 56%)', bad:'hsl(14 68% 32%)', info:'hsl(200 39% 47%)',+ na:'#d8a848', nm:'#b8602a', nt:'hsl(79 41% 38%)', ng:'#8a3a1a', nw:'#d8a848',+ type:'IM Fell SC · UPPER .10em', motion:'110/240/480 mechanical', snd:'clockwork' },+ { k:'atomic', n:'Atomic', fam:'UTOPIAN', w:'1962 Eames optimism', dark:false,+ bg:'#f0e6d2', pan:'#faf2dc', cv:'#e8dcc0', el:'#ffffff', inp:'#ffffff',+ fg:'#2a3a4a', mu:'#4a5867', fa:'#8a9aaa', bd:'#c8b890', st:'#a09880',+ disp:"'Bevan',serif", body:"'Lato',sans-serif", mono:"'Space Mono',monospace", monoLabel:'Space Mono',+ caps:'uppercase', tr:'0.06em', base:'14px', r:[0,2,4,999],+ run:'hsl(130 60% 28%)', stop:'hsl(14 90% 42%)', save:'hsl(14 90% 42%)', cfg:'hsl(41 80% 38%)', sec:'hsl(184 70% 30%)', tools:'hsl(184 70% 30%)',+ ok:'hsl(120 21% 45%)', warn:'hsl(41 67% 53%)', bad:'hsl(14 81% 53%)', info:'hsl(184 46% 43%)',+ na:'#e85a26', nm:'#3a9aa0', nt:'hsl(130 60% 28%)', ng:'#d8a838', nw:'#2a3a4a',+ type:'Bevan + Lato · UPPER .06em', motion:'100/200/380 bouncy', snd:'vibraphone' },+ { k:'cyber', n:'Cyber', fam:'DYSTOPIAN', w:'Neuromancer night market', dark:true,+ bg:'#050010', pan:'#0a0420', cv:'#03000a', el:'#15103a', inp:'#0a0420',+ fg:'#f0e0ff', mu:'#a090c0', fa:'#6a5a90', bd:'#2a1f50', st:'#4a3a80',+ disp:"'Space Mono','JetBrains Mono',monospace", body:"'JetBrains Mono',monospace", mono:"'JetBrains Mono',monospace", monoLabel:'JetBrains',+ caps:'uppercase', tr:'0.18em', base:'13px', r:[0,0,0,0],+ run:'hsl(147 71% 50%)', stop:'hsl(347 100% 56%)', save:'hsl(184 79% 51%)', cfg:'hsl(46 100% 58%)', sec:'hsl(316 92% 54%)', tools:'hsl(316 92% 54%)',+ ok:'hsl(147 71% 50%)', warn:'hsl(46 100% 58%)', bad:'hsl(347 100% 56%)', info:'hsl(184 79% 51%)',+ na:'#f51eb6', nm:'#1dd9e5', nt:'#26d97a', ng:'#ffd028', nw:'#f51eb6',+ type:'Space Mono · UPPER .18em · 13px · display swapped for legibility', motion:'60/120/240 steps() glitch', snd:'terminal' },+ { k:'wasteland', n:'Wasteland', fam:'DYSTOPIAN', w:'irradiated scrap-metal dust', dark:true,+ bg:'#2a2018', pan:'#3a2c1c', cv:'#1a1410', el:'#4a3826', inp:'#2a2018',+ fg:'#e8d8a8', mu:'#e0cba4', fa:'#8a7048', bd:'#6a4a28', st:'#8a6438',+ disp:"'Special Elite',monospace", body:"'Special Elite',monospace", mono:"'VT323',monospace", monoLabel:'VT323',+ caps:'uppercase', tr:'0.10em', base:'14px', r:[0,0,0,0],+ run:'hsl(64 56% 41%)', stop:'hsl(6 75% 41%)', save:'hsl(28 80% 53%)', cfg:'hsl(64 56% 51%)', sec:'hsl(28 80% 53%)', tools:'hsl(64 56% 51%)',+ ok:'hsl(64 56% 41%)', warn:'hsl(64 56% 51%)', bad:'hsl(6 75% 41%)', info:'hsl(28 80% 53%)',+ na:'#e88a28', nm:'#c8d038', nt:'#c8d038', ng:'#8a3a18', nw:'#d8c8a0',+ type:'Special Elite · UPPER .10em', motion:'60/180/320 jittery', snd:'scrap' },+ { k:'rot', n:'Rot', fam:'DYSTOPIAN', w:'moss-overgrown crypt', dark:true,+ bg:'#14181a', pan:'#1c2226', cv:'#0a0e10', el:'#242c30', inp:'#1c2226',+ fg:'#c8d8c0', mu:'#9dae9d', fa:'#56685c', bd:'#2a3a30', st:'#3e5246',+ disp:"'Pirata One',serif", body:"'EB Garamond',serif", mono:"'JetBrains Mono',monospace", monoLabel:'JetBrains',+ caps:'none', tr:'0.04em', base:'14px', r:[1,2,4,4],+ run:'hsl(120 43% 63%)', stop:'hsl(0 49% 44%)', save:'hsl(35 78% 56%)', cfg:'hsl(35 78% 56%)', sec:'hsl(200 36% 53%)', tools:'hsl(120 43% 63%)',+ ok:'hsl(120 43% 63%)', warn:'hsl(35 78% 56%)', bad:'hsl(0 49% 44%)', info:'hsl(200 36% 53%)',+ na:'#78c878', nm:'#d8d0b8', nt:'#78c878', ng:'#e8a838', nw:'#e8a838',+ type:'Pirata One + EB Garamond', motion:'140/320/680 drift', snd:'crypt' },+ { k:'plague', n:'Plague', fam:'DYSTOPIAN', w:'1349 quarantine broadsheet', dark:false,+ bg:'#d8d4c0', pan:'#e4dfc8', cv:'#c8c4b0', el:'#efeacf', inp:'#efeacf',+ fg:'#2a1c14', mu:'#584230', fa:'#9a8470', bd:'#a89478', st:'#7a6450',+ disp:"'Cinzel',serif", body:"'EB Garamond',serif", mono:"'Special Elite',monospace", monoLabel:'Special Elite',+ caps:'uppercase', tr:'0.06em', base:'14px', r:[0,0,0,0],+ run:'hsl(75 47% 30%)', stop:'hsl(14 50% 31%)', save:'hsl(14 50% 31%)', cfg:'hsl(65 49% 44%)', sec:'hsl(213 17% 35%)', tools:'hsl(14 50% 31%)',+ ok:'hsl(75 47% 30%)', warn:'hsl(65 49% 44%)', bad:'hsl(14 50% 31%)', info:'hsl(213 17% 35%)',+ na:'#783c28', nm:'#98a838', nt:'#98a838', ng:'#783c28', nw:'#1a1410',+ type:'Cinzel + EB Garamond · display swapped for legibility', motion:'100/220/460 stiff', snd:'bell' },+ { k:'surveillance', n:'Surveillance', fam:'DYSTOPIAN', w:'1970s panopticon control room', dark:true,+ bg:'#1a1c1e', pan:'#232628', cv:'#0a0c0e', el:'#2c3034', inp:'#232628',+ fg:'#c8ccd0', mu:'#b4b8bc', fa:'#62666a', bd:'#3a3e42', st:'#52565a',+ disp:"'Anonymous Pro',monospace", body:"'IBM Plex Mono',monospace", mono:"'IBM Plex Mono',monospace", monoLabel:'IBM Plex',+ caps:'uppercase', tr:'0.10em', base:'13px', r:[0,0,0,0],+ run:'hsl(120 49% 61%)', stop:'hsl(0 81% 53%)', save:'hsl(120 49% 61%)', cfg:'hsl(41 74% 49%)', sec:'hsl(0 81% 53%)', tools:'hsl(213 51% 56%)',+ ok:'hsl(120 49% 61%)', warn:'hsl(41 74% 49%)', bad:'hsl(0 81% 53%)', info:'hsl(213 51% 56%)',+ na:'#6acc6a', nm:'#d8a020', nt:'#6acc6a', ng:'#e82626', nw:'#888c90',+ type:'Anonymous Pro + IBM Plex · 13px', motion:'60/140/240 linear scan', snd:'telex' },+];++/* Motion contract + canvas decoration, per theme.+ * dur/ease/style/pulse from tokens/animations.css; canvas grids are the+ * verbatim --canvas-grid / decoration rules from reference/themes/*.css+ * where the repo expresses them as gradients. */+const MOTION = {+ light: { d:[90,180,320], ease:'cubic-bezier(0.2,0.7,0.3,1)', style:'smooth',+ curve:'M0,100 C20,30 30,0 100,0', pulse:'node-pulse 1.4s ease-in-out infinite', glow:'#0891b2',+ grid:'none', gsize:'auto', gop:1 },+ dark: { d:[90,180,320], ease:'cubic-bezier(0.2,0.7,0.3,1)', style:'smooth',+ curve:'M0,100 C20,30 30,0 100,0', pulse:'node-pulse 1.4s ease-in-out infinite', glow:'#38bdf8',+ grid:'none', gsize:'auto', gop:1 },+ renaissance: { d:[140,280,520], ease:'cubic-bezier(0.4,0,0.2,1)', style:'organic',+ curve:'M0,100 C40,100 20,0 100,0', pulse:'ren-pulse-exec 2s ease-in-out infinite', glow:'#2548c8',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%238a5e1c' stroke-width='0.4' opacity='0.35'><path d='M40 22 Q35 32, 30 32 Q26 32, 28 28 Q32 26, 40 28 Q48 26, 52 28 Q54 32, 50 32 Q45 32, 40 22 Z'/><path d='M40 28 L40 40 M36 36 L44 36'/><circle cx='40' cy='42' r='2'/></g></svg>")`, gsize:'auto',+ stack:`radial-gradient(ellipse at center,transparent 30%,rgba(90,50,18,0.25) 100%)`, ssize:'auto', gop:1,+ frame:'inset 0 0 0 2px #8a5e1c, inset 0 0 0 6px #d4a030, inset 0 0 0 8px #5a3a14, inset 0 0 60px rgba(90,50,18,0.3)',+ ambient:'candle flicker 6s' },+ greek: { d:[120,240,460], ease:'cubic-bezier(0.3,0.7,0.4,1)', style:'smooth',+ curve:'M0,100 C30,30 40,0 100,0', pulse:'node-pulse 1.4s ease-in-out infinite', glow:'#284b82',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%234a3818' stroke-width='0.4' opacity='0.18'><path d='M0 40 H10 V20 H30 V60 H50 V20 H70 V40 H80'/></g></svg>")`, gsize:'auto', gop:1 },+ edo: { d:[90,220,520], ease:'cubic-bezier(0.4,0,0.2,1)', style:'organic',+ curve:'M0,100 C40,100 20,0 100,0', pulse:'node-pulse 1.6s ease-in-out infinite', glow:'#b41e1e',+ grid:`none`, gsize:'auto',+ stack:`radial-gradient(ellipse 600px 200px at 80% 90%,rgba(26,20,16,0.10),transparent 60%)`, ssize:'auto', gop:1 },+ steampunk: { d:[110,240,480], ease:'cubic-bezier(0.5,0,0.4,1.1)', style:'mechanical',+ curve:'M0,100 C50,100 40,-10 100,0', pulse:'node-pulse 1.4s ease-in-out infinite', glow:'#d8a848',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='%23b88838' opacity='0.10'><circle cx='40' cy='40' r='1.5'/><circle cx='10' cy='10' r='1'/><circle cx='70' cy='70' r='1'/></g></svg>")`, gsize:'auto',+ stack:`radial-gradient(circle at 20% 20%,var(--node-model) 0%,transparent 1.5%),radial-gradient(circle at 80% 30%,var(--node-model) 0%,transparent 1.5%),radial-gradient(circle at 30% 80%,var(--node-model) 0%,transparent 1.5%),radial-gradient(circle at 90% 90%,var(--node-model) 0%,transparent 1.5%)`, ssize:'auto', gop:1 },+ atomic: { d:[100,200,380], ease:'cubic-bezier(0.34,1.6,0.5,1)', style:'bouncy',+ curve:'M0,100 C34,-60 50,0 100,0', pulse:'node-pulse 1.4s ease-in-out infinite', glow:'#3a9aa0',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><g stroke='%232a3a4a' stroke-width='0.6' fill='none' opacity='0.18'><path d='M40 80 L120 80 M80 40 L80 120 M50 50 L110 110 M110 50 L50 110'/></g></svg>")`, gsize:'auto',+ stack:`radial-gradient(circle at 12% 15%,var(--node-agent) 0%,transparent 0.8%),radial-gradient(circle at 88% 12%,var(--node-model) 0%,transparent 0.6%),radial-gradient(circle at 18% 88%,var(--node-trigger) 0%,transparent 0.7%),radial-gradient(circle at 82% 90%,var(--node-agent) 0%,transparent 0.5%),radial-gradient(circle at 50% 50%,var(--node-model) 0%,transparent 0.4%)`, ssize:'auto', gop:1 },+ cyber: { d:[60,120,240], ease:'steps(4,end)', style:'glitch',+ curve:'M0,100 L25,100 L25,75 L50,75 L50,50 L75,50 L75,25 L100,25 L100,0',+ pulse:'cyber-pulse-exec 1.6s steps(2) infinite', glow:'#1dd9e5',+ grid:'repeating-linear-gradient(0deg,transparent 0 23px,rgba(245,30,182,0.10) 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,rgba(29,217,229,0.10) 23px 24px)', gsize:'auto', gop:1,+ crt:true, scan:true, ambient:'CRT flicker 5s + scanline 8s',+ stack:'radial-gradient(ellipse at 50% 100%,rgba(245,30,182,0.25),transparent 60%),linear-gradient(180deg,transparent 0%,transparent 50%,rgba(29,217,229,0.04) 50%,rgba(29,217,229,0.08) 100%),linear-gradient(rgba(245,30,182,0.08) 1px,transparent 1px),linear-gradient(90deg,rgba(29,217,229,0.08) 1px,transparent 1px)',+ ssize:'auto,auto,24px 24px,24px 24px',+ floor:'linear-gradient(180deg,transparent,rgba(245,30,182,0.10) 80%),repeating-linear-gradient(180deg,transparent 0 20px,rgba(29,217,229,0.4) 20px 21px)',+ marquee:'\u25c6 SIGNAL \u25c6 NIGHT_MARKET.7 \u25c6 03:47:22' },+ wasteland: { d:[60,180,320], ease:'cubic-bezier(0.6,0,0.4,1)', style:'jittery',+ curve:'M0,100 C60,100 40,0 100,0', pulse:'node-pulse 1.3s ease-in-out infinite', glow:'#c8d038',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><g stroke='%23e88a28' stroke-width='0.4' fill='none' opacity='0.10'><path d='M40 10 Q60 60 30 100 Q10 140 50 180 M120 0 Q140 80 100 140 M180 30 Q160 80 190 130'/></g></svg>")`, gsize:'auto', gop:1 },+ rot: { d:[140,320,680], ease:'cubic-bezier(0.4,0,0.6,1)', style:'drift',+ curve:'M0,100 C40,100 60,0 100,0', pulse:'node-pulse 2.2s ease-in-out infinite', glow:'#78c878',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g stroke='%234a6a4a' stroke-width='0.4' fill='none' opacity='0.25'><path d='M0 30 H80 M30 0 V80 M0 60 H80 M60 0 V80'/></g></svg>")`, gsize:'auto',+ stack:`radial-gradient(circle 200px at 25% 30%,rgba(232,168,56,0.06),transparent 70%),radial-gradient(circle 180px at 78% 65%,rgba(232,168,56,0.05),transparent 70%)`, ssize:'auto', gop:1 },+ plague: { d:[100,220,460], ease:'cubic-bezier(0.4,0,0.6,1)', style:'stiff',+ curve:'M0,100 C40,100 60,0 100,0', pulse:'node-pulse 1.6s ease-in-out infinite', glow:'hsl(14 50% 31%)',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><g stroke='%23783c28' stroke-width='1.6' fill='none' opacity='0.10' stroke-linecap='square'><path d='M40 40 L60 60 M60 40 L40 60'/><path d='M180 80 L200 100 M200 80 L180 100'/><path d='M80 180 L100 200 M100 180 L80 200'/></g></svg>")`, gsize:'auto', gop:1 },+ surveillance: { d:[60,140,240], ease:'linear', style:'scanline',+ curve:'M0,100 L100,0', pulse:'surv-pulse-exec 1s steps(2) infinite', glow:'hsl(0 81% 53%)',+ grid:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'><g stroke='%23e82626' stroke-width='1' fill='none' opacity='0.18'><path d='M40 40 H120 M40 40 V120 M1880 40 H1800 M1880 40 V120 M40 1040 H120 M40 1040 V960 M1880 1040 H1800 M1880 1040 V960'/><circle cx='960' cy='540' r='40' opacity='0.2'/><path d='M960 480 V600 M900 540 H1020' opacity='0.25'/></g></svg>"),repeating-linear-gradient(0deg,transparent 0 3px,rgba(106,204,106,0.04) 3px 4px),url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g stroke='%23888c90' stroke-width='0.4' fill='none' opacity='0.12'><path d='M0 20 H40 M20 0 V40'/></g></svg>")`, gsize:'100% 100%,auto,auto', gop:1,+ scan:true, ambient:'REC blink + scanline' },+};+++/* THEMED_GLYPHS subset — verbatim inner markup from+ * client/src/assets/icons/themedGlyphs.ts (six of the 29 IconKeys the panels+ * use). Renaissance keeps its heraldic cartouche wrap; Cyber keeps its neon+ * drop-shadow wrap and currentColor fills. Themes with no entry fall through+ * to the neutral lucide set, exactly as <NodeIcon> does. */+const SVG_OPEN = '<svg viewBox="0 0 32 32" fill="none" width="100%" height="100%">';+const SVG_OPEN_CYBER = '<svg viewBox="0 0 32 32" fill="none" width="100%" height="100%" style="filter:drop-shadow(0 0 3px currentColor)">';+const CARTOUCHE = '<path d="M4 4 H28 V22 Q28 28, 16 30 Q4 28, 4 22 Z" fill="#fbf3dc" stroke="#5a3a14" stroke-width="1.5"/><path d="M5 5 H27 V22 Q27 27, 16 29 Q5 27, 5 22 Z" fill="none" stroke="#d4a030" stroke-width="0.8"/>';+const w = (i) => SVG_OPEN + i + '</svg>';+const wC = (i) => SVG_OPEN_CYBER + i + '</svg>';+const wR = (i) => SVG_OPEN + CARTOUCHE + i + '</svg>';+const LU = (i) => '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" width="100%" height="100%">' + i + '</svg>';++const GLYPHS = {+ renaissance: {+ send: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#d4a030"><path d="M9 22 L24 14 L11 13 L13 17 L9 22 Z"/></g>'),+ tool: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#d4a030"><path d="M10 22 L18 14 M22 12 L24 14 M22 12 L20 10 M22 12 Q26 8, 20 8 L18 10 Z"/><circle cx="11" cy="22" r="1.5" fill="#5a3a14"/></g>'),+ trigger: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#d4a030"><path d="M16 8 L12 18 L16 18 L14 24 L20 14 L16 14 Z"/></g>'),+ agent: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#d4a030" stroke-linejoin="round"><circle cx="16" cy="13" r="4"/><path d="M9 22 Q16 17, 23 22 L23 25 Q16 27, 9 25 Z"/><path d="M14 12 L13 9 M18 12 L19 9" stroke-width="1"/></g>'),+ folder: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#d4a030"><path d="M9 12 L13 12 L15 14 L23 14 L23 23 L9 23 Z"/></g>'),+ search: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="none"><circle cx="14" cy="14" r="4"/><path d="M17 17 L22 22"/></g>'),+ settings: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#d4a030"><circle cx="16" cy="16" r="3"/><path d="M16 9 L16 12 M16 20 L16 23 M9 16 L12 16 M20 16 L23 16 M11 11 L13 13 M19 19 L21 21 M11 21 L13 19 M19 13 L21 11"/></g>'),+ credentials: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#d4a030"><circle cx="14" cy="16" r="4"/><path d="M18 16 L24 16 L24 18 M22 16 L22 19"/></g>'),+ memory: wR('<g stroke="#5a3a14" stroke-width="1.4" fill="#fbf3dc"><rect x="9" y="10" width="14" height="14"/><path d="M9 14 L23 14 M9 18 L23 18 M13 10 L13 24 M19 10 L19 24" stroke-width="0.8"/></g>'),+ },+ cyber: {+ send: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><path d="M5 16 L27 6 L20 27 L17 18 L8 16 Z" fill="currentColor" fill-opacity="0.2"/></g>'),+ tool: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><rect x="6" y="14" width="20" height="4"/><path d="M10 14 L10 12 L14 12 L14 14 M18 18 L18 20 L22 20 L22 18"/></g>'),+ trigger: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><path d="M16 4 L11 16 L16 16 L13 28 L21 14 L16 14 Z" fill="currentColor" fill-opacity="0.3"/></g>'),+ agent: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><rect x="9" y="6" width="14" height="20"/><rect x="12" y="11" width="2" height="2" fill="currentColor"/><rect x="18" y="11" width="2" height="2" fill="currentColor"/><path d="M12 18 L20 18 M14 22 L18 22"/><path d="M16 6 L16 4 M16 26 L16 28" stroke-dasharray="1 1"/></g>'),+ folder: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><path d="M5 10 L13 10 L15 12 L27 12 L27 24 L5 24 Z"/></g>'),+ search: wC('<g stroke="currentColor" stroke-width="1.4" fill="none"><circle cx="14" cy="14" r="6"/><path d="M19 19 L26 26"/></g>'),+ settings: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><circle cx="16" cy="16" r="3"/><circle cx="16" cy="16" r="8"/><path d="M16 4 L16 8 M16 24 L16 28 M4 16 L8 16 M24 16 L28 16"/></g>'),+ credentials: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><circle cx="12" cy="16" r="4"/><path d="M16 16 L28 16 L28 19 M24 16 L24 20 M20 16 L20 18"/></g>'),+ memory: wC('<g stroke="currentColor" stroke-width="1.2" fill="none"><rect x="7" y="9" width="18" height="14"/><path d="M7 13 L25 13 M7 17 L25 17 M7 21 L25 21 M11 9 L11 23 M16 9 L16 23 M21 9 L21 23"/></g>'),+ },+ greek: {+ send: w('<g stroke="#284b82" stroke-width="1.4" fill="#c8a040"><path d="M5 27 L27 5 L19 13 L13 11 L11 19 L5 27 Z"/></g>'),+ tool: w('<g stroke="#284b82" stroke-width="1.4" fill="none"><path d="M6 22 L18 10 M22 6 L26 10 M24 8 Q28 4, 22 4 L18 8 Z" fill="#c8a040"/><circle cx="7" cy="22" r="1.5" fill="#284b82"/></g>'),+ trigger: w('<g stroke="#284b82" stroke-width="1.4" fill="#c8a040"><path d="M16 5 L8 17 L14 17 L12 27 L24 13 L18 13 L20 5 Z"/></g>'),+ agent: w('<g stroke="#284b82" stroke-width="1.4" fill="#284b82"><circle cx="16" cy="11" r="3.5" fill="none"/><path d="M9 23 Q9 17, 16 17 Q23 17, 23 23 Z" fill="none"/><path d="M14 9 L13 7 L19 7 L18 9" stroke-width="1"/></g>'),+ folder: w('<g stroke="#284b82" stroke-width="1.4" fill="#c8a040"><path d="M5 10 L13 10 L15 12 L27 12 L27 24 L5 24 Z"/><path d="M5 14 L27 14"/></g>'),+ search: w('<g stroke="#284b82" stroke-width="1.6" fill="none"><circle cx="13" cy="13" r="6"/><path d="M18 18 L26 26"/></g>'),+ settings: w('<g stroke="#284b82" stroke-width="1.4" fill="none"><circle cx="16" cy="16" r="3"/><circle cx="16" cy="16" r="8"/><path d="M16 4 L16 8 M16 24 L16 28 M4 16 L8 16 M24 16 L28 16 M8 8 L11 11 M21 21 L24 24 M8 24 L11 21 M21 11 L24 8"/></g>'),+ credentials: w('<g stroke="#284b82" stroke-width="1.4" fill="#c8a040"><circle cx="12" cy="16" r="4" fill="none"/><path d="M16 16 L28 16 L28 19 M24 16 L24 20 M20 16 L20 18"/></g>'),+ memory: w('<g stroke="#284b82" stroke-width="1.4" fill="none"><rect x="6" y="8" width="20" height="16"/><path d="M6 13 L26 13 M6 18 L26 18 M11 8 L11 24 M21 8 L21 24"/></g>'),+ },+ edo: {+ send: w('<g stroke="#1a1410" stroke-width="1.6" fill="#b41e1e" stroke-linejoin="round"><path d="M5 27 L27 5 L17 13 L13 11 L13 17 L5 27 Z"/></g>'),+ tool: w('<g stroke="#1a1410" stroke-width="1.8" fill="none" stroke-linecap="round"><path d="M6 24 L20 10 M22 8 L24 10 M22 8 Q26 4, 22 4 L20 6"/></g>'),+ trigger: w('<g stroke="#1a1410" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M17 4 L10 17 L15 17 L13 28 L22 14 L17 14 Z" fill="#b41e1e" fill-opacity="0.15"/></g>'),+ agent: w('<g stroke="#1a1410" stroke-width="1.6" fill="none" stroke-linecap="round"><circle cx="16" cy="11" r="3.5"/><path d="M9 24 Q9 18, 16 18 Q23 18, 23 24"/></g>'),+ folder: w('<g stroke="#1a1410" stroke-width="1.6" fill="none"><path d="M5 11 L13 11 L15 13 L27 13 L27 24 L5 24 Z"/></g>'),+ search: w('<g stroke="#1a1410" stroke-width="1.6" fill="none" stroke-linecap="round"><circle cx="13" cy="13" r="6"/><path d="M18 18 L25 25"/></g>'),+ settings: w('<g stroke="#1a1410" stroke-width="1.6" fill="none"><circle cx="16" cy="16" r="3"/><path d="M16 5 L16 9 M16 23 L16 27 M5 16 L9 16 M23 16 L27 16 M8 8 L11 11 M21 21 L24 24 M8 24 L11 21 M21 11 L24 8"/></g>'),+ credentials: w('<g stroke="#1a1410" stroke-width="1.6" fill="none"><circle cx="12" cy="16" r="4"/><path d="M16 16 L27 16 L27 19 M24 16 L24 20 M20 16 L20 18"/></g>'),+ memory: w('<g stroke="#1a1410" stroke-width="1.6" fill="none"><rect x="6" y="9" width="20" height="14"/><path d="M6 13 L26 13 M6 18 L26 18 M13 9 L13 23 M19 9 L19 23"/></g>'),+ },+ steampunk: {+ send: w('<g stroke="#4a2818" stroke-width="1.3" fill="#d8a848"><path d="M5 27 L27 5 L19 13 L13 11 L13 19 L5 27 Z"/></g>'),+ tool: w('<g stroke="#4a2818" stroke-width="1.3" fill="#d8a848"><circle cx="16" cy="16" r="6"/><path d="M16 8 L16 12 M16 20 L16 24 M8 16 L12 16 M20 16 L24 16 M11 11 L13 13 M19 19 L21 21 M11 21 L13 19 M19 13 L21 11"/><circle cx="16" cy="16" r="2" fill="#b8602a"/></g>'),+ trigger: w('<g stroke="#4a2818" stroke-width="1.3" fill="#d8a848"><circle cx="16" cy="16" r="9"/><path d="M16 8 L16 16 L20 19" stroke-width="1.6"/><circle cx="16" cy="16" r="1.5" fill="#4a2818"/></g>'),+ agent: w('<g stroke="#4a2818" stroke-width="1.3" fill="#d8a848"><circle cx="16" cy="11" r="3.5"/><path d="M9 24 Q9 18, 16 18 Q23 18, 23 24 Z"/><circle cx="16" cy="11" r="1" fill="#4a2818"/></g>'),+ folder: w('<g stroke="#4a2818" stroke-width="1.3" fill="#b8602a"><path d="M5 11 L13 11 L15 13 L27 13 L27 24 L5 24 Z"/><circle cx="7" cy="22" r="0.8" fill="#4a2818"/><circle cx="25" cy="22" r="0.8" fill="#4a2818"/></g>'),+ search: w('<g stroke="#4a2818" stroke-width="1.5" fill="none"><circle cx="13" cy="13" r="6"/><path d="M18 18 L25 25" stroke-width="2"/></g>'),+ settings: w('<g stroke="#4a2818" stroke-width="1.3" fill="#d8a848"><path d="M16 4 L18 8 L22 6 L22 11 L26 13 L24 16 L26 19 L22 21 L22 26 L18 24 L16 28 L14 24 L10 26 L10 21 L6 19 L8 16 L6 13 L10 11 L10 6 L14 8 Z"/><circle cx="16" cy="16" r="3" fill="#b8602a"/></g>'),+ credentials: w('<g stroke="#4a2818" stroke-width="1.3" fill="#d8a848"><circle cx="12" cy="16" r="4"/><circle cx="12" cy="16" r="1.5" fill="#4a2818"/><path d="M16 16 L27 16 L27 20 M23 16 L23 20 M19 16 L19 18"/></g>'),+ memory: w('<g stroke="#4a2818" stroke-width="1.3" fill="#b8602a"><rect x="6" y="9" width="20" height="14"/><path d="M6 14 L26 14 M6 19 L26 19" stroke="#d8a848"/><circle cx="9" cy="11" r="0.8" fill="#4a2818"/><circle cx="23" cy="11" r="0.8" fill="#4a2818"/><circle cx="9" cy="21" r="0.8" fill="#4a2818"/><circle cx="23" cy="21" r="0.8" fill="#4a2818"/></g>'),+ },+ atomic: {+ send: w('<g stroke="#2a3a4a" stroke-width="2" fill="#e85a26" stroke-linejoin="round"><path d="M4 28 L28 4 L18 14 L12 11 L11 19 Z"/></g>'),+ tool: w('<g stroke="#2a3a4a" stroke-width="2" fill="#3a9aa0" stroke-linejoin="round"><path d="M5 25 L18 12 M22 8 L26 12 M22 8 Q28 2, 22 4 L18 8 Z"/></g>'),+ trigger: w('<g stroke="#2a3a4a" stroke-width="2" fill="#d8a838" stroke-linejoin="round"><path d="M16 3 L11 16 L16 16 L13 29 L23 13 L17 13 L21 3 Z"/></g>'),+ agent: w('<g stroke="#2a3a4a" stroke-width="2" fill="#e85a26" stroke-linejoin="round"><circle cx="16" cy="11" r="4"/><path d="M8 25 Q8 18, 16 18 Q24 18, 24 25"/></g>'),+ folder: w('<g stroke="#2a3a4a" stroke-width="2" fill="#d8a838" stroke-linejoin="round"><path d="M4 11 L13 11 L15 13 L28 13 L28 25 L4 25 Z"/></g>'),+ search: w('<g stroke="#2a3a4a" stroke-width="2.4" fill="#d8a838" stroke-linecap="round"><circle cx="13" cy="13" r="6"/><path d="M18 18 L26 26"/></g>'),+ settings: w('<g stroke="#2a3a4a" stroke-width="2" fill="#3a9aa0"><circle cx="16" cy="16" r="4"/><path d="M16 3 L16 8 M16 24 L16 29 M3 16 L8 16 M24 16 L29 16" stroke-linecap="round"/></g>'),+ credentials: w('<g stroke="#2a3a4a" stroke-width="2" fill="#d8a838"><circle cx="12" cy="16" r="4"/><path d="M16 16 L28 16 L28 20 M23 16 L23 21 M19 16 L19 19"/></g>'),+ memory: w('<g stroke="#2a3a4a" stroke-width="2" fill="#3a9aa0"><rect x="5" y="9" width="22" height="14" rx="3"/><path d="M5 14 L27 14 M5 19 L27 19" stroke="#2a3a4a"/></g>'),+ },+ wasteland: {+ send: w('<g stroke="#e88a28" stroke-width="2" fill="#e88a28" fill-opacity="0.3" stroke-linejoin="round"><path d="M5 27 L27 5 L19 13 L13 11 L13 19 L5 27 Z"/></g>'),+ tool: w('<g stroke="#e88a28" stroke-width="2" fill="none" stroke-linejoin="round"><path d="M5 25 L17 13 M19 11 L21 13 M19 11 Q25 5, 21 7 L17 11 Z"/><path d="M5 25 L7 27"/></g>'),+ trigger: w('<g stroke="#c8d038" stroke-width="2" fill="#c8d038" fill-opacity="0.3" stroke-linejoin="round"><path d="M16 4 L9 18 L15 18 L12 28 L23 13 L17 13 L19 4 Z"/></g>'),+ agent: w('<g stroke="#e88a28" stroke-width="2" fill="none" stroke-linejoin="round"><path d="M12 7 L20 7 L20 14 L23 14 L23 24 L9 24 L9 14 L12 14 Z"/><rect x="13" y="10" width="2" height="2" fill="#e88a28"/><rect x="17" y="10" width="2" height="2" fill="#e88a28"/></g>'),+ folder: w('<g stroke="#e88a28" stroke-width="2" fill="none" stroke-linejoin="round"><path d="M5 11 L13 11 L15 13 L27 13 L27 24 L5 24 Z"/></g>'),+ search: w('<g stroke="#e88a28" stroke-width="2" fill="none" stroke-linecap="square"><circle cx="13" cy="13" r="6"/><path d="M18 18 L25 25"/></g>'),+ settings: w('<g stroke="#e88a28" stroke-width="2" fill="none"><circle cx="16" cy="16" r="3"/><path d="M16 4 L16 9 M16 23 L16 28 M4 16 L9 16 M23 16 L28 16 M8 8 L11 11 M21 21 L24 24 M8 24 L11 21 M21 11 L24 8"/></g>'),+ credentials: w('<g stroke="#e88a28" stroke-width="2" fill="none"><circle cx="12" cy="16" r="4"/><path d="M16 16 L27 16 L27 20 M23 16 L23 20"/></g>'),+ memory: w('<g stroke="#e88a28" stroke-width="2" fill="none"><rect x="6" y="9" width="20" height="14"/><path d="M6 13 L26 13 M6 18 L26 18 M11 9 L11 23 M21 9 L21 23"/></g>'),+ },+ rot: {+ send: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="#78c878" fill-opacity="0.2" stroke-linejoin="round"><path d="M5 27 L27 5 L19 13 L13 11 L13 19 L5 27 Z"/></g>'),+ tool: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="none"><path d="M6 25 L18 13 M22 9 L24 11 M22 9 Q26 5, 22 5 L18 9 Z" fill="#78c878" fill-opacity="0.3"/></g>'),+ trigger: w('<g stroke="#78c878" stroke-width="1.6" fill="none" stroke-linecap="round"><path d="M16 5 L11 17 L16 17 L13 27 L21 14 L16 14 Z" fill="#78c878" fill-opacity="0.2"/></g>'),+ agent: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="none"><circle cx="16" cy="11" r="3.5"/><path d="M9 24 Q9 18, 16 18 Q23 18, 23 24"/><path d="M14 13 L14 16 M18 13 L18 16" stroke="#78c878" stroke-width="0.8"/></g>'),+ folder: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="none"><path d="M5 11 L13 11 L15 13 L27 13 L27 24 L5 24 Z"/></g>'),+ search: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="none"><circle cx="13" cy="13" r="6"/><path d="M18 18 L25 25"/></g>'),+ settings: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="none"><circle cx="16" cy="16" r="3"/><path d="M16 4 L16 9 M16 23 L16 28 M4 16 L9 16 M23 16 L28 16 M8 8 L11 11 M21 21 L24 24 M8 24 L11 21 M21 11 L24 8"/></g>'),+ credentials: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="none"><circle cx="12" cy="16" r="4"/><path d="M16 16 L27 16 L27 20 M23 16 L23 20"/></g>'),+ memory: w('<g stroke="#d8d0b8" stroke-width="1.4" fill="none"><rect x="6" y="9" width="20" height="14"/><path d="M6 13 L26 13 M6 18 L26 18 M11 9 L11 23 M21 9 L21 23"/></g>'),+ },+};++/* Neutral lucide fallback — light, dark, plague and surveillance declare no+ * THEMED_GLYPHS entries, so <NodeIcon> resolves them through lucide. */+const LUCIDE = {+ folder: LU('<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>'),+ search: LU('<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>'),+ settings: LU('<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>'),+ credentials: LU('<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/>'),+ memory: LU('<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5V19A9 3 0 0 0 21 19V5"/><path d="M3 12A9 3 0 0 0 21 12"/>'),+ agent: LU('<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2M20 14h2M15 13v2M9 13v2"/>'),+ trigger: LU('<path d="M10.268 21a2 2 0 0 0 3.464 0"/><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>'),+ tool: LU('<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>'),+ send: LU('<path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/>'),+};++const glyph = (themeKey, key, size) => {+ const svg = (GLYPHS[themeKey] || {})[key] || LUCIDE[key];+ return React.createElement('span', {+ key: themeKey + key,+ style: { display: 'inline-flex', flex: 'none', width: size, height: size, lineHeight: 0 },+ dangerouslySetInnerHTML: { __html: svg },+ });+};++// Mid-luminance dark grounds: their --fg-default is a mid cream/sage, so the+// accent has to be pulled much further toward it than on a true near-black.+const ACCENT_MIX = { renaissance: '26%', steampunk: '28%', wasteland: '24%', rot: '32%', surveillance: '26%' };++const PALETTE = [+ { id:'ai', label:'AI', icon:'🤖', role:'na', items:[+ { icon:'🤖', name:'AI Agent', desc:'LangGraph agent with memory and tools' },+ { icon:'🧠', name:'Simple Memory', desc:'Conversation memory store' },+ { icon:'📚', name:'Skill', desc:'Teach your agent a capability' } ] },+ { id:'messaging', label:'Messaging', icon:'💬', role:'ng', items:[+ { icon:'💬', name:'WhatsApp Receive', desc:'Trigger on incoming message' },+ { icon:'📤', name:'WhatsApp Send', desc:'Send a WhatsApp message' } ] },+ { id:'android', label:'Android', icon:'📱', role:'nt', items:[+ { icon:'📱', name:'Android Toolkit', desc:'16 device services' } ] },+];++const PANELS = [+ ['sidebar','Workflow Sidebar','ui/WorkflowSidebar.tsx'],+ ['palette','Component Palette','ui/ComponentPalette.tsx'],+ ['nodecfg','Node Configuration','ParameterPanel.tsx'],+ ['settings','Settings','ui/SettingsPanel.tsx'],+ ['creds','API Credentials','credentials/CredentialsModal.tsx'],+ ['console','Console Dock','ui/ConsolePanel.tsx'],+ ['output','Output Panel','output/OutputPanel.tsx'],+ ['input','Input Data Panel','ui/InputNodesPanel.tsx'],+ ['context','Context Panel','parameterPanel/ContextPanel.tsx'],+ ['memory','Memory Tool Panel','parameterPanel/MemoryToolPanel.tsx'],+ ['tasks','Task Manager Panel','parameterPanel/TaskManagerPanel.tsx'],+ ['team','Team Monitor Panel','parameterPanel/TeamMonitorPanel.tsx'],+ ['process','Process Manager Panel','parameterPanel/ProcessManagerPanel.tsx'],+ ['gallery','Gallery Panel','parameterPanel/GalleryPanel.tsx'],+ ['chrome','Toolbar + Status Bar','ui/TopToolbar.tsx · StatusBar'],+ ['canvas','Node Canvas','Dashboard.tsx · SquareNode.tsx'],+ ['motion','Motion + Animations','themes/*.css · tokens/animations.css'],+];++class Component extends DCLogic {+ state = {+ fam: 'ALL', zoom: 1, query: '', tab: 'console',+ sw: { sidebar: true, palette: true, skill: true },+ temp: 70, ratio: 80, ran: false,+ wf: 'w2', task: 't1', view: 'grid',+ clock: '12:04:05', play: false, sel: 'sidebar',+ };++ /* Motion is expensive — the executing pulse animates a three-layer box-shadow+ * on every tile. Only one panel section is mounted at a time, and `--play`+ * (set on the board wrapper from renderVals) gates every loop, so the board+ * loads static and the header toggle starts motion. */++ vars(t) {+ return {+ '--bg-app': t.bg, '--bg-panel': t.pan, '--bg-canvas': t.cv,+ '--bg-elevated': t.el, '--bg-input': t.inp, '--surface-card': t.el,+ '--bg-hover': t.dark ? 'rgba(255,255,255,.05)' : 'rgba(0,0,0,.04)',+ '--bg-active': t.dark ? 'rgba(255,255,255,.08)' : 'rgba(0,0,0,.06)',+ '--fg-default': t.fg, '--fg-muted': t.mu, '--fg-faint': t.fa,+ '--accent-text-mix': ACCENT_MIX[t.k] || (t.dark ? '65%' : '34%'),+ '--border-default': t.bd, '--border-strong': t.st,+ '--font-display': t.disp, '--font-body': t.body, '--font-mono': t.mono,+ '--type-uppercase': t.caps, '--type-tracking-display': t.tr,+ '--radius-sm': t.r[0] + 'px', '--radius-md': t.r[1] + 'px',+ '--radius-lg': t.r[2] + 'px', '--radius-pill': t.r[3] + 'px',+ '--action-run': t.run, '--action-stop': t.stop, '--action-save': t.save,+ '--action-config': t.cfg, '--action-secret': t.sec, '--action-tools': t.tools,+ '--success': t.ok, '--warning': t.warn, '--destructive': t.bad, '--info': t.info,+ '--node-agent': t.na, '--node-model': t.nm, '--node-tool': t.nt,+ '--node-trigger': t.ng, '--node-workflow': t.nw,+ '--node-pulse-color': (MOTION[t.k] || {}).glow || t.na,+ '--radius-node': Math.max(t.r[1], 2) + 'px',+ '--dur-fast': (MOTION[t.k] || {}).d[0] + 'ms',+ '--dur-default': (MOTION[t.k] || {}).d[1] + 'ms',+ '--dur-slow': (MOTION[t.k] || {}).d[2] + 'ms',+ '--ease-default': (MOTION[t.k] || {}).ease,+ fontSize: t.base,+ };+ }++ slide(key, min, max) {+ return (e) => {+ const r = e.currentTarget.getBoundingClientRect();+ const p = Math.min(1, Math.max(0, (e.clientX - r.left) / r.width));+ this.setState({ [key]: Math.round((min + p * (max - min)) / 5) * 5 });+ };+ }++ renderVals() {+ const s = this.state;+ const fam = s.fam;+ const themes = THEMES.filter((t) => fam === 'ALL' || t.fam === fam).map((t) => {+ const m = MOTION[t.k];+ return {+ key: t.k, name: t.n, fam: t.fam, world: t.w, upper: t.n.toUpperCase(),+ bg: t.bg, pan: t.pan, a1: t.na, a2: t.ng,+ type: t.type, motion: t.motion, snd: t.snd, monoLabel: t.monoLabel,+ rLabel: t.r[0] + '/' + t.r[1] + '/' + t.r[2],+ vars: this.vars(t),+ canvas: { position: 'absolute', inset: 0, pointerEvents: 'none', zIndex: 0,+ backgroundImage: m.grid, backgroundSize: m.gsize, opacity: m.gop, boxShadow: m.frame || 'none' },+ stack: { position: 'absolute', inset: 0, pointerEvents: 'none', zIndex: 0,+ backgroundImage: m.stack || 'none', backgroundSize: m.ssize || 'auto' },+ dots: { position: 'absolute', inset: 0, pointerEvents: 'none', zIndex: 0,+ backgroundImage: 'radial-gradient(color-mix(in srgb,var(--fg-muted) 30%,transparent) 1px,transparent 1px)',+ backgroundSize: '20px 20px' },+ floor: { position: 'absolute', left: 0, right: 0, bottom: 0, height: '50%',+ pointerEvents: 'none', zIndex: 0, opacity: 0.4,+ transform: 'perspective(300px) rotateX(60deg)', transformOrigin: 'bottom',+ backgroundImage: m.floor },+ hasFloor: !!m.floor, marquee: m.marquee || '', hasMarquee: !!m.marquee,+ isRen: t.k === 'renaissance',+ pulseAnim: m.pulse, glow: m.glow,+ pulseAnimSq: m.pulse.replace(/ [\d.]+s /, ' 1.5s '),+ themedIcons: !!GLYPHS[t.k],+ icon: {+ folder: glyph(t.k, 'folder', 20),+ search: glyph(t.k, 'search', 14),+ settings: glyph(t.k, 'settings', 15),+ credentials: glyph(t.k, 'credentials', 15),+ memory: glyph(t.k, 'memory', 15),+ nAgent: glyph(t.k, 'agent', 28),+ nTrigger: glyph(t.k, 'trigger', 28),+ nTool: glyph(t.k, 'tool', 28),+ nMemory: glyph(t.k, 'memory', 28),+ nSend: glyph(t.k, 'send', 28),+ },+ mStyle: m.style, ease: m.ease, curve: m.curve,+ durF: m.d[0] + 'ms', durD: m.d[1] + 'ms', durS: m.d[2] + 'ms',+ pulseName: m.pulse.split(' ')[0] + ' · ' + m.pulse.split(' ')[1],+ hasScan: !!m.scan, hasCrt: !!m.crt,+ ambient: m.ambient || '—',+ slideAnim: 'ocslide ' + (m.d[2] * 2.4) + 'ms ' + m.ease + ' infinite alternate',+ };+ });++ const q = s.query.trim().toLowerCase();+ const pal = PALETTE.map((sec) => ({+ id: sec.id, label: sec.label, icon: sec.icon,+ tint: 'color-mix(in srgb, var(--node-' ++ ({ na: 'agent', nm: 'model', nt: 'tool', ng: 'trigger', nw: 'workflow' })[sec.role] ++ ') 12%, transparent)',+ items: sec.items.filter((it) => !q || it.name.toLowerCase().includes(q) || it.desc.toLowerCase().includes(q)),+ })).filter((sec) => sec.items.length > 0).map((sec) => ({ ...sec, count: sec.items.length }));++ return {+ themes, pal,+ palEmpty: pal.length === 0,+ palTotal: pal.reduce((a, x) => a + x.items.length, 0),+ panels: PANELS.map(([id, name, src], i) => ({+ id, name, src,+ num: String(i + 1).padStart(2, '0'),+ active: s.sel === id,+ go: () => { this.setState({ sel: id }); const m = document.querySelector('main'); if (m) m.scrollTop = 0; },+ })),+ show: PANELS.reduce((a, [id]) => { a[id] = s.sel === id; return a; }, {}),+ selName: (PANELS.find(([id]) => id === s.sel) || [null, ''])[1],+ zoom: s.zoom,+ play: s.play ? 'running' : 'paused',+ playing: s.play, paused: !s.play,+ togglePlay: () => this.setState({ play: !s.play }),+ zoomLabel: Math.round(s.zoom * 100) + '%',+ zoomIn: () => this.setState({ zoom: Math.min(1.2, +(s.zoom + 0.1).toFixed(2)) }),+ zoomOut: () => this.setState({ zoom: Math.max(0.4, +(s.zoom - 0.1).toFixed(2)) }),+ famIs: { all: fam === 'ALL', base: fam === 'BASE', uto: fam === 'UTOPIAN', dys: fam === 'DYSTOPIAN' },+ famNot: { all: fam !== 'ALL', base: fam !== 'BASE', uto: fam !== 'UTOPIAN', dys: fam !== 'DYSTOPIAN' },+ setAll: () => this.setState({ fam: 'ALL' }),+ setBase: () => this.setState({ fam: 'BASE' }),+ setUto: () => this.setState({ fam: 'UTOPIAN' }),+ setDys: () => this.setState({ fam: 'DYSTOPIAN' }),+ query: s.query,+ onQuery: (e) => this.setState({ query: e.target.value }),+ tab: { chat: s.tab === 'chat', console: s.tab === 'console', term: s.tab === 'terminal' },+ tabChat: () => this.setState({ tab: 'chat' }),+ tabConsole: () => this.setState({ tab: 'console' }),+ tabTerm: () => this.setState({ tab: 'terminal' }),+ on: s.sw,+ off: { sidebar: !s.sw.sidebar, palette: !s.sw.palette, skill: !s.sw.skill },+ tSidebar: () => this.setState({ sw: { ...s.sw, sidebar: !s.sw.sidebar } }),+ tPalette: () => this.setState({ sw: { ...s.sw, palette: !s.sw.palette } }),+ tSkill: () => this.setState({ sw: { ...s.sw, skill: !s.sw.skill } }),+ tempPct: s.temp + '%',+ tempLabel: (s.temp / 100).toFixed(2),+ onTemp: this.slide('temp', 0, 100),+ ratioPct: Math.round(((s.ratio - 5) / 90) * 100) + '%',+ ratioLabel: s.ratio + '%',+ onRatio: this.slide('ratio', 5, 95),+ ran: s.ran, notRan: !s.ran,+ doRun: () => this.setState({ ran: !s.ran }),+ wf: { w1: s.wf === 'w1', w2: s.wf === 'w2', w3: s.wf === 'w3' },+ selWf1: () => this.setState({ wf: 'w1' }),+ selWf2: () => this.setState({ wf: 'w2' }),+ selWf3: () => this.setState({ wf: 'w3' }),+ tk: { t1: s.task === 't1', t2: s.task === 't2', t3: s.task === 't3' },+ selT1: () => this.setState({ task: 't1' }),+ selT2: () => this.setState({ task: 't2' }),+ selT3: () => this.setState({ task: 't3' }),+ gv: { grid: s.view === 'grid', list: s.view === 'list' },+ viewGrid: () => this.setState({ view: 'grid' }),+ viewList: () => this.setState({ view: 'list' }),+ clock: s.clock,+ };+ }+}+</script>+</body>+</html>diff --git a/docs-internal/design-system/reference-mockup/support.js b/docs-internal/design-system/reference-mockup/support.jsnew file mode 100644index 00000000..cb009b69--- /dev/null+++ b/docs-internal/design-system/reference-mockup/support.js@@ -0,0 +1,1911 @@+// GENERATED from dc-runtime/src/*.ts — do not edit. Rebuild with `cd dc-runtime && bun run build`.+"use strict";+(() => {+ var __defProp = Object.defineProperty;+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);++ // src/react.ts+ function getReact() {+ const R = window.React;+ if (!R) throw new Error("dc-runtime: window.React is not available yet");+ return R;+ }+ function getReactDOM() {+ const RD = window.ReactDOM;+ if (!RD) throw new Error("dc-runtime: window.ReactDOM is not available yet");+ return RD;+ }+ var h = ((...args) => getReact().createElement(+ ...args+ ));++ // src/parse.ts+ function parseDcDocument(doc) {+ const dc = doc.querySelector("x-dc");+ if (!dc) return null;+ const scriptEl = doc.querySelector("script[data-dc-script]");+ const { props, preview } = parseDataProps(+ scriptEl?.getAttribute("data-props") ?? null+ );+ return {+ template: dc.innerHTML,+ js: scriptEl ? scriptEl.textContent || "" : "",+ props,+ preview+ };+ }+ function parseDcText(src) {+ const openMatch = /<x-dc(?:\s[^>]*)?>/.exec(src);+ if (!openMatch) return null;+ const close = src.lastIndexOf("</x-dc>");+ if (close === -1 || close < openMatch.index) return null;+ const template = src.slice(openMatch.index + openMatch[0].length, close);+ const doc = new DOMParser().parseFromString(src, "text/html");+ const scriptEl = doc.querySelector("script[data-dc-script]");+ const { props, preview } = parseDataProps(+ scriptEl?.getAttribute("data-props") ?? null+ );+ return {+ template,+ js: scriptEl ? scriptEl.textContent || "" : "",+ props,+ preview+ };+ }+ function parseDataProps(raw) {+ if (!raw) return { props: null, preview: null };+ let parsed;+ try {+ parsed = JSON.parse(raw);+ } catch {+ return { props: null, preview: null };+ }+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {+ return { props: null, preview: null };+ }+ const obj = parsed;+ const preview = obj.$preview && typeof obj.$preview === "object" ? obj.$preview : null;+ const rest = {};+ for (const k of Object.keys(obj)) {+ if (k[0] !== "$") rest[k] = obj[k];+ }+ return { props: Object.keys(rest).length ? rest : null, preview };+ }+ function dcNameFromPath(pathname) {+ let p = pathname || "";+ try {+ p = decodeURIComponent(p);+ } catch {+ }+ const base = p.split("/").pop() || "Root";+ return base.replace(/\.dc\.html$/, "").replace(/\.html?$/, "") || "Root";+ }++ // src/boot.ts+ var BASE_CSS = `+ .sc-placeholder{background:color-mix(in srgb,currentColor 8%,transparent);+ border:1px solid color-mix(in srgb,currentColor 50%,transparent);+ border-radius:2px;box-sizing:border-box;overflow:hidden}+ @keyframes sc-shine{0%{background-position:100% 50%}100%{background-position:0% 50%}}+ html.sc-dc-streaming .sc-placeholder,+ html.sc-dc-streaming .sc-interp.sc-missing{position:relative;+ background:color-mix(in srgb,currentColor 5%,transparent);+ border-color:transparent}+ html.sc-dc-streaming .sc-placeholder::before,+ html.sc-dc-streaming .sc-interp.sc-missing::before{content:'';+ position:absolute;inset:0;pointer-events:none;+ background:linear-gradient(90deg,rgba(217,119,87,0) 25%,rgba(247,225,211,.95) 37%,rgba(217,119,87,0) 63%);+ background-size:400% 100%;animation:sc-shine 1.4s ease infinite}+ html.sc-dc-streaming .sc-placeholder:nth-child(n+9 of .sc-placeholder)::before,+ html.sc-dc-streaming .sc-interp.sc-missing:nth-child(n+9 of .sc-interp.sc-missing)::before{animation:none;+ background:color-mix(in srgb,currentColor 8%,transparent)}+ .sc-placeholder-error{padding:4px 8px;font:11px/1.4 ui-monospace,monospace;+ color:color-mix(in srgb,currentColor 70%,transparent);word-break:break-word}+ .sc-interp.sc-missing{display:inline-block;width:2em;height:1em;overflow:hidden;+ vertical-align:text-bottom;background:rgba(255,255,255,.3);border:1px solid rgba(0,0,0,.5);+ border-radius:2px;box-sizing:border-box;color:transparent;+ user-select:none}+ .sc-interp.sc-unresolved{font-family:ui-monospace,monospace;font-size:.85em;+ color:color-mix(in srgb,currentColor 50%,transparent);+ background:color-mix(in srgb,currentColor 10%,transparent);border-radius:3px;+ padding:0 3px}+ .sc-host.sc-has-error{position:relative}+ .sc-logic-error{position:absolute;top:8px;left:8px;z-index:2147483647;max-width:60ch;+ padding:6px 10px;background:#b00020;color:#fff;font:12px/1.4 ui-monospace,monospace;+ border-radius:4px;white-space:pre-wrap;pointer-events:none}+ /* Mirrors PRINT_BASELINE_CSS in apps/web deck-stage-export.ts \u2014 keep both+ in sync until dc-runtime regains a build step. */+ @media print {+ @page { margin: 0.5cm; }+ figure, table { break-inside: avoid; }+ #dc-root, #dc-root > .sc-host { height: auto; }+ *, *::before, *::after {+ print-color-adjust: exact; -webkit-print-color-adjust: exact;+ backdrop-filter: none !important; -webkit-backdrop-filter: none !important;+ animation-delay: -99s !important; animation-duration: .001s !important;+ animation-iteration-count: 1 !important; animation-fill-mode: both !important;+ animation-play-state: running !important; transition-duration: 0s !important;+ }+ }+ `;+ var FULL_PAGE_CSS = "html,body{height:100%;margin:0}#dc-root,#dc-root>.sc-host{height:100%}";+ function rootNameForDocument(doc, loc) {+ let bootPath = loc.pathname || "";+ if (!/\.dc\.html?$/i.test(safeDecode(bootPath))) {+ try {+ bootPath = new URL(doc.baseURI || "/").pathname;+ } catch {+ }+ }+ return dcNameFromPath(bootPath);+ }+ function safeDecode(s) {+ try {+ return decodeURIComponent(s);+ } catch {+ return s;+ }+ }+ function boot(runtime, doc = document) {+ const parsed = parseDcDocument(doc);+ if (!parsed) return null;+ const React = getReact();+ const rootName = rootNameForDocument(doc, location);+ runtime.markFetched(rootName);+ runtime.setRootName(rootName);+ runtime.adoptParsed(rootName, parsed);+ if (!window.__resources) {+ fetch(location.href).then((res) => res.ok ? res.text() : "").then((t) => {+ const raw = t ? parseDcText(t) : null;+ if (raw?.template) runtime.updateHtml(rootName, raw.template);+ }).catch(() => {+ });+ }+ const dc = doc.querySelector("x-dc");+ const hostEl = doc.createElement("div");+ hostEl.id = "dc-root";+ dc.replaceWith(hostEl);+ if (!parsed.preview) {+ const s = doc.createElement("style");+ s.textContent = FULL_PAGE_CSS;+ doc.head.appendChild(s);+ }+ const Root = runtime.getDC(rootName);+ const entry = runtime.registry.get(rootName);+ function StandaloneRoot() {+ const [, setTick] = React.useState(0);+ React.useEffect(() => {+ const sub = () => setTick((n) => n + 1);+ entry.subs.add(sub);+ return () => {+ entry.subs.delete(sub);+ };+ }, []);+ const defaults = React.useMemo(() => {+ const d = {};+ for (const k in entry.propsMeta || {}) {+ const v = entry.propsMeta?.[k]?.default;+ if (v !== void 0) d[k] = v;+ }+ return d;+ }, [entry.propsMeta]);+ return h(Root, { ...defaults, ...entry.propOverrides || {} });+ }+ const ReactDOM = getReactDOM();+ if (ReactDOM.createRoot)+ ReactDOM.createRoot(hostEl).render(h(StandaloneRoot));+ else ReactDOM.render(h(StandaloneRoot), hostEl);+ return rootName;+ }++ // src/expr.ts+ var IDENT_RE = /^[A-Za-z_$][A-Za-z0-9_$]*/;+ var NUMBER_RE = /^-?\d+(\.\d+)?$/;+ function resolve(vals, src) {+ const expr = String(src).trim();+ if (!expr) return void 0;+ if (expr[0] === "(" && expr[expr.length - 1] === ")" && parensWrapWhole(expr)) {+ return resolve(vals, expr.slice(1, -1));+ }+ const eq = findTopLevelEquality(expr);+ if (eq) {+ const lv = resolve(vals, expr.slice(0, eq.index));+ const rv = resolve(vals, expr.slice(eq.index + eq.op.length));+ switch (eq.op) {+ case "===":+ return lv === rv;+ case "!==":+ return lv !== rv;+ case "==":+ return lv == rv;+ default:+ return lv != rv;+ }+ }+ if (expr[0] === "!") return !resolve(vals, expr.slice(1));+ if (expr === "true") return true;+ if (expr === "false") return false;+ if (expr === "null") return null;+ if (expr === "undefined") return void 0;+ if (NUMBER_RE.test(expr)) return Number(expr);+ if (expr.length >= 2 && (expr[0] === '"' || expr[0] === "'") && expr[expr.length - 1] === expr[0]) {+ return expr.slice(1, -1);+ }+ return resolvePath(vals, expr);+ }+ function parensWrapWhole(expr) {+ let depth = 0;+ for (let i = 0; i < expr.length - 1; i++) {+ if (expr[i] === "(") depth++;+ else if (expr[i] === ")") {+ depth--;+ if (depth === 0) return false;+ }+ }+ return true;+ }+ function findTopLevelEquality(expr) {+ let depth = 0;+ for (let i = 0; i < expr.length; i++) {+ const c = expr[i];+ if (c === "[" || c === "(") depth++;+ else if (c === "]" || c === ")") depth--;+ else if (depth === 0 && (c === "=" || c === "!") && expr[i + 1] === "=") {+ if (i > 0 && (expr[i - 1] === "=" || expr[i - 1] === "!")) continue;+ if (!expr.slice(0, i).trim()) continue;+ const op = expr[i + 2] === "=" ? c + "==" : c + "=";+ return { index: i, op };+ }+ }+ return null;+ }+ function resolvePath(vals, expr) {+ const head = expr.match(IDENT_RE);+ if (!head) return void 0;+ let cur = vals == null ? void 0 : vals[head[0]];+ let i = head[0].length;+ while (i < expr.length) {+ if (expr[i] === ".") {+ const m = expr.slice(i + 1).match(IDENT_RE) || expr.slice(i + 1).match(/^\d+/);+ if (!m) return void 0;+ cur = cur == null ? void 0 : cur[m[0]];+ i += 1 + m[0].length;+ } else if (expr[i] === "[") {+ let depth = 1;+ let j = i + 1;+ while (j < expr.length && depth > 0) {+ if (expr[j] === "[") depth++;+ else if (expr[j] === "]") {+ depth--;+ if (depth === 0) break;+ }+ j++;+ }+ if (depth !== 0) return void 0;+ const key = resolve(vals, expr.slice(i + 1, j));+ cur = cur == null ? void 0 : cur[key];+ i = j + 1;+ } else {+ return void 0;+ }+ }+ return cur;+ }++ // src/encode.ts+ var CAMEL_ATTR = "sc-camel-";+ var INLINE_TEXT_TAGS = new Set(+ "a abbr b bdi bdo br cite code del dfn em i ins kbd mark q s samp small span strike strong sub sup u var wbr".split(+ " "+ )+ );+ var RAW_WRAP = {+ select: "sc-raw-select",+ table: "sc-raw-table",+ tbody: "sc-raw-tbody",+ thead: "sc-raw-thead",+ tfoot: "sc-raw-tfoot",+ tr: "sc-raw-tr",+ td: "sc-raw-td",+ th: "sc-raw-th",+ caption: "sc-raw-caption"+ };+ var RAW_UNWRAP = Object.fromEntries(+ Object.entries(RAW_WRAP).map(([k, v]) => [v, k])+ );+ var EVENT_MAP = {+ onclick: "onClick",+ onchange: "onChange",+ oninput: "onInput",+ onsubmit: "onSubmit",+ onkeydown: "onKeyDown",+ onkeyup: "onKeyUp",+ onkeypress: "onKeyPress",+ onmousedown: "onMouseDown",+ onmouseup: "onMouseUp",+ onmouseenter: "onMouseEnter",+ onmouseleave: "onMouseLeave",+ onfocus: "onFocus",+ onblur: "onBlur",+ ondoubleclick: "onDoubleClick",+ oncontextmenu: "onContextMenu",+ onmousemove: "onMouseMove",+ onmouseover: "onMouseOver",+ onmouseout: "onMouseOut",+ onpointerdown: "onPointerDown",+ onpointerup: "onPointerUp",+ onpointermove: "onPointerMove",+ onpointerenter: "onPointerEnter",+ onpointerleave: "onPointerLeave",+ onpointercancel: "onPointerCancel",+ onpointerover: "onPointerOver",+ onpointerout: "onPointerOut",+ ongotpointercapture: "onGotPointerCapture",+ onlostpointercapture: "onLostPointerCapture",+ ontouchstart: "onTouchStart",+ ontouchend: "onTouchEnd",+ ontouchmove: "onTouchMove",+ ontouchcancel: "onTouchCancel",+ ondragstart: "onDragStart",+ ondragend: "onDragEnd",+ ondragenter: "onDragEnter",+ ondragleave: "onDragLeave",+ ondragover: "onDragOver",+ onanimationstart: "onAnimationStart",+ onanimationend: "onAnimationEnd",+ onanimationiteration: "onAnimationIteration",+ ontransitionend: "onTransitionEnd"+ };+ var ATTRS = `(?:[^>"']|"[^"]*"|'[^']*')*`;+ var IMPORT_SELF_CLOSE_RE = new RegExp(+ "<(x-import|dc-import)(" + ATTRS + ")/>",+ "gi"+ );+ var CAMEL_ATTR_RE = /(\s)([a-z]+[A-Z][A-Za-z0-9]*)(\s*=)/g;+ function encodeCamelAttrs(html) {+ return html.replace(+ CAMEL_ATTR_RE,+ (_, sp, name, eq) => sp + CAMEL_ATTR + name.replace(/[A-Z]/g, (c) => "-" + c.toLowerCase()) + eq+ );+ }+ function encodeCase(html) {+ html = html.replace(+ IMPORT_SELF_CLOSE_RE,+ (_, t, a) => "<" + t + a + "></" + t + ">"+ );+ html = html.replace(/<helmet(\s|>)/gi, "<sc-helmet$1");+ html = html.replace(/<\/helmet\s*>/gi, "</sc-helmet>");+ html = encodeCamelAttrs(html);+ for (const [real, alias] of Object.entries(RAW_WRAP)) {+ html = html.replace(+ new RegExp("(</?)" + real + "(?=[\\s>])", "gi"),+ "$1" + alias+ );+ }+ return html;+ }+ function kebabToCamel(s) {+ return s.replace(/-([a-z])/g, (_, c) => c.toUpperCase());+ }+ function cssToObj(css) {+ const o = {};+ for (const decl of css.split(";")) {+ const i = decl.indexOf(":");+ if (i < 0) continue;+ const prop = decl.slice(0, i).trim();+ o[prop.startsWith("--") ? prop : kebabToCamel(prop)] = decl.slice(i + 1).trim();+ }+ return o;+ }+ function compileAttr(raw) {+ const whole = raw.match(/^\s*\{\{([\s\S]+?)\}\}\s*$/);+ if (whole) {+ const path = whole[1];+ return (vals) => resolve(vals, path);+ }+ if (raw.includes("{{")) {+ const parts = raw.split(/\{\{([\s\S]+?)\}\}/g);+ return (vals) => parts.map((s, i) => i & 1 ? resolve(vals, s) ?? "" : s).join("");+ }+ return () => raw;+ }++ // src/compile.ts+ function collectProps(node, kind, host) {+ const propGetters = [];+ const pseudoClasses = [];+ let hintSize = null;+ for (const { name, value } of [...node.attributes]) {+ if (name === "sc-name" || name === "data-dc-tpl") continue;+ let key = name;+ if (key.startsWith(CAMEL_ATTR))+ key = kebabToCamel(key.slice(CAMEL_ATTR.length));+ if (key === "hint-size") {+ hintSize = value;+ continue;+ }+ if (key.startsWith("style-")) {+ pseudoClasses.push(host.pseudoClass(key.slice(6), value));+ continue;+ }+ if (kind !== "dom") {+ if (key.includes("-") && !(kind === "x-import" && (key.startsWith("aria-") || key.startsWith("data-"))))+ key = kebabToCamel(key);+ } else {+ if (key === "class") key = "className";+ else if (key === "for") key = "htmlFor";+ else if (key.startsWith("on"))+ key = EVENT_MAP[key] || "on" + key[2].toUpperCase() + key.slice(3);+ }+ propGetters.push([key, compileAttr(value)]);+ }+ return { propGetters, pseudoClasses, hintSize };+ }+ var HOST_STYLE_PROPS = /* @__PURE__ */ new Set([+ "position",+ "left",+ "right",+ "top",+ "bottom",+ "inset",+ "width",+ "height",+ "z-index",+ "transform"+ ]);+ function hostPositionStyle(style) {+ const all = typeof style === "string" ? cssToObj(style) : style != null && typeof style === "object" ? style : null;+ if (!all) return void 0;+ const out = {};+ for (const [k, v] of Object.entries(all)) {+ const kebab = k.replace(/[A-Z]/g, (c) => "-" + c.toLowerCase());+ if (HOST_STYLE_PROPS.has(kebab)) out[k] = v;+ }+ return Object.keys(out).length ? out : void 0;+ }+ function compileTemplate(html, host) {+ const tpl = document.createElement("template");+ //! nosemgrep: direct-inner-html-assignment+ tpl.innerHTML = encodeCase(html);+ let tplN = 0;+ (function stamp(node) {+ if (node.nodeType === Node.ELEMENT_NODE) {+ node.setAttribute("data-dc-tpl", String(tplN++));+ }+ for (const c of node.childNodes) stamp(c);+ })(tpl.content);+ const builders = walkChildren(tpl.content, host);+ const render = ((vals, ctx) => builders.map((b, i) => b(vals || {}, ctx, i)));+ render.__annotated = tpl.innerHTML;+ return render;+ }+ function walkChildren(node, host) {+ return [...node.childNodes].map((c) => walk(c, host)).filter((b) => b != null);+ }+ var SLIDE_ID_VALUE_RE = /^[0-9a-f]{8}$/;+ var DECK_CONTROL_FLOW_RE = /^(sc-if|sc-for|sc-else|dc-import|x-import)$/;+ var DECK_AUX_RE = /^(template|script|style|sc-helmet|helmet)$/;+ function isDeckMountTag(el) {+ if (el.localName === "deck-stage") return true;+ return el.localName === "x-import" && (el.getAttribute("component-from-global-scope") || "") === "deck-stage";+ }+ function walkDeckChildren(el, host) {+ const pairs = [...el.childNodes].map((c) => ({ c, b: walk(c, host) })).filter((p) => p.b !== null);+ const kids = pairs.map((p) => p.b);+ const seen = /* @__PURE__ */ new Set();+ const wsSeen = /* @__PURE__ */ new Map();+ const keys = [];+ const nextSlideId = new Array(pairs.length);+ {+ let upcoming = null;+ for (let j = pairs.length - 1; j >= 0; j--) {+ const n = pairs[j].c;+ if (n.nodeType === Node.ELEMENT_NODE) {+ const t = n.localName;+ upcoming = !DECK_AUX_RE.test(t) && !DECK_CONTROL_FLOW_RE.test(t) ? n.getAttribute("data-om-slide-id") : null;+ }+ nextSlideId[j] = upcoming;+ }+ }+ for (let j = 0; j < pairs.length; j++) {+ const { c } = pairs[j];+ if (c.nodeType === Node.TEXT_NODE) {+ if ((c.nodeValue ?? "").trim() === "") {+ const base = nextSlideId[j] ? "omid-ws:" + nextSlideId[j] : "omid-ws:aux";+ const n = wsSeen.get(base) ?? 0;+ wsSeen.set(base, n + 1);+ keys.push(n === 0 ? base : base + ":" + n);+ continue;+ }+ return { kids, keys: null };+ }+ if (c.nodeType !== Node.ELEMENT_NODE) {+ keys.push(j);+ continue;+ }+ const child = c;+ const tag = child.localName;+ if (DECK_AUX_RE.test(tag)) {+ keys.push(j);+ continue;+ }+ if (DECK_CONTROL_FLOW_RE.test(tag)) return { kids, keys: null };+ const v = child.getAttribute("data-om-slide-id");+ if (!v || !SLIDE_ID_VALUE_RE.test(v) || seen.has(v)) {+ return { kids, keys: null };+ }+ seen.add(v);+ keys.push("omid:" + v);+ }+ return { kids, keys };+ }+ function renderDeckKids(kids, kidKeys, vals, ctx) {+ return kids.map((b, j) => {+ const k = kidKeys ? kidKeys[j] : j;+ const out = b(vals, ctx, k);+ return kidKeys != null && typeof out === "string" ? h(getReact().Fragment, { key: k }, out) : out;+ });+ }+ function walk(node, host) {+ if (node.nodeType === Node.TEXT_NODE) return walkText(node);+ if (node.nodeType !== Node.ELEMENT_NODE) return null;+ const el = node;+ const tag = el.tagName.toLowerCase();+ if (tag === "sc-for") return walkFor(el, host);+ if (tag === "sc-if") return walkIf(el, host);+ if (tag === "x-import") return walkXImport(el, host);+ if (tag === "sc-helmet") return host.helmet(el);+ if (tag === "dc-import") return walkComponent(el, host);+ return walkElement(el, host);+ }+ var warnedHoles = /* @__PURE__ */ new Set();+ function warnUnresolved(ctx, what) {+ const key = (ctx?.__name || "?") + "\0" + what;+ if (warnedHoles.has(key)) return;+ warnedHoles.add(key);+ console.warn("[dc-runtime] " + (ctx?.__name || "template") + ": " + what);+ }+ function walkText(node) {+ const txt = node.nodeValue ?? "";+ if (!txt.includes("{{")) {+ if (!txt.trim() && !txt.includes(" ")) return null;+ return () => txt;+ }+ const parts = txt.split(/\{\{([\s\S]+?)\}\}/g);+ return (vals, ctx, key) => h(+ getReact().Fragment,+ { key },+ ...parts.map((p, i) => {+ if (!(i & 1)) return p;+ const v = resolve(vals, p);+ if (v === void 0) {+ if (!ctx?.__streamingNow) {+ if (document.body?.hasAttribute("data-dc-editor-on")) {+ return h(+ "span",+ { key: i, className: "sc-interp sc-unresolved" },+ "{{ " + p.trim() + " }}"+ );+ }+ warnUnresolved(+ ctx,+ "{{ " + p.trim() + " }} never resolved \u2014 rendered as empty"+ );+ return null;+ }+ return h(+ "span",+ { key: i, className: "sc-interp sc-missing" },+ p.trim()+ );+ }+ if (getReact().isValidElement(v) || Array.isArray(v)) {+ return h(getReact().Fragment, { key: i }, v);+ }+ if (v === null || typeof v === "boolean") return null;+ return h("span", { key: i, className: "sc-interp" }, String(v));+ })+ );+ }+ function walkFor(el, host) {+ const listGet = compileAttr(el.getAttribute("list") || "");+ const asName = el.getAttribute("as") || "item";+ const hintN = parseInt(el.getAttribute("hint-placeholder-count") || "0", 10);+ const kids = walkChildren(el, host);+ const listSrc = el.getAttribute("list") || "";+ return (vals, ctx, key) => {+ let list = listGet(vals);+ if (!Array.isArray(list)) {+ if (!ctx?.__streamingNow) {+ if (list !== void 0 && list !== null) {+ warnUnresolved(+ ctx,+ 'sc-for list="' + listSrc + '" is not an array (' + typeof list + ")"+ );+ }+ list = [];+ } else {+ list = hintN > 0 ? Array(hintN).fill(void 0) : [];+ }+ }+ return h(+ getReact().Fragment,+ { key },+ list.map((item, i) => {+ const sub = { ...vals, [asName]: item, $index: i };+ return h(+ getReact().Fragment,+ { key: i },+ kids.map((b, j) => b(sub, ctx, j))+ );+ })+ );+ };+ }+ function walkIf(el, host) {+ const valGet = compileAttr(el.getAttribute("value") || "");+ const hintRaw = el.getAttribute("hint-placeholder-val");+ const hintGet = hintRaw != null ? compileAttr(hintRaw) : null;+ const kids = walkChildren(el, host);+ return (vals, ctx, key) => {+ let v = valGet(vals);+ if (v === void 0 && hintGet && ctx?.__streamingNow) v = hintGet(vals);+ return v ? h(+ getReact().Fragment,+ { key },+ kids.map((b, j) => b(vals, ctx, j))+ ) : null;+ };+ }+ function walkComponent(el, host) {+ const name = el.getAttribute("name") || el.getAttribute("component") || "";+ el.removeAttribute("name");+ el.removeAttribute("component");+ const tplId = el.getAttribute("data-dc-tpl");+ const styleRaw = el.getAttribute("style");+ el.removeAttribute("style");+ const styleGet = styleRaw != null ? compileAttr(styleRaw) : null;+ const { propGetters, hintSize } = collectProps(el, "dc-import", host);+ const kids = walkChildren(el, host);+ return (vals, ctx, key) => {+ const props = {+ key,+ __hintSize: hintSize,+ __tplId: tplId,+ __hostStyle: styleGet ? hostPositionStyle(styleGet(vals)) : void 0+ };+ for (const [k, g] of propGetters) {+ const v = g(vals);+ if (k === "dcProps") {+ if (v && typeof v === "object") Object.assign(props, v);+ continue;+ }+ props[k] = v;+ }+ if (kids.length) props.children = kids.map((b, j) => b(vals, ctx, j));+ return h(host.component(name), props);+ };+ }+ function walkXImport(el, host) {+ const globalNameGet = compileAttr(+ el.getAttribute("component-from-global-scope") || ""+ );+ const exportNameGet = compileAttr(+ el.getAttribute("component") || el.getAttribute("name") || ""+ );+ const fromRaw = el.getAttribute("from") || (el.getAttribute("component-from-global-scope") ? "" : el.getAttribute("src") || el.getAttribute("import") || "");+ const urls = fromRaw.trim() ? fromRaw.trim().split(/\s+/) : [];+ const url = urls.length ? urls[urls.length - 1] : "";+ const kindOf = (u) => /\.(jsx|tsx)(\?|#|$)/i.test(u) ? "jsx" : "js";+ const tplId = el.getAttribute("data-dc-tpl");+ const styleRaw = el.getAttribute("style");+ el.removeAttribute("style");+ const styleGet = styleRaw != null ? compileAttr(styleRaw) : null;+ const wrap = tplId != null || styleGet != null;+ const { propGetters, hintSize } = collectProps(el, "x-import", host);+ const hasContent = el.children.length > 0 || !!(el.textContent || "").trim();+ const deckKeyed = hasContent && isDeckMountTag(el) ? walkDeckChildren(el, host) : null;+ const kids = deckKeyed ? deckKeyed.kids : hasContent ? walkChildren(el, host) : [];+ const kidKeys = deckKeyed?.keys ?? null;+ const urlBindable = fromRaw.includes("{{");+ if (urls.length && !urlBindable) {+ let prev;+ for (const u of urls) prev = host.loadExternal(kindOf(u), u, prev);+ }+ const evalName = (g, vals) => {+ const v = g(vals);+ const s = v == null ? "" : String(v);+ return s.includes("{{") ? "" : s;+ };+ return (vals, ctx, key) => {+ const globalName = evalName(globalNameGet, vals);+ const name = globalName || evalName(exportNameGet, vals);+ const C = !name || urlBindable ? null : globalName ? host.resolveExternalGlobal(url, globalName) : host.resolveExternal(url, name);+ const hostStyle = styleGet ? hostPositionStyle(styleGet(vals)) : void 0;+ const wrapper = wrap ? {+ key,+ className: "sc-host-x",+ "data-dc-tpl": tplId,+ style: hostStyle || { display: "contents" }+ } : null;+ if (!C) {+ const error = urlBindable ? "x-import `from` cannot contain {{ \u2026 }} \u2014 module URLs are resolved at parse time; use a literal URL" : host.resolveExternalError(url, name);+ const ph = host.placeholder({+ key: wrapper ? void 0 : key,+ name,+ hintSize,+ error+ });+ return wrapper ? h("div", wrapper, ph) : ph;+ }+ const props = wrapper ? {} : { key };+ let unresolvedHole = false;+ for (const [k, g] of propGetters) {+ if (k === "component" || k === "componentFromGlobalScope" || k === "from") {+ continue;+ }+ const v = g(vals);+ if (v === void 0) unresolvedHole = true;+ if (k === "dcProps") {+ if (v && typeof v === "object") Object.assign(props, v);+ continue;+ }+ props[k] = v;+ }+ if (unresolvedHole && ctx?.__htmlStreamingNow) {+ const ph = host.placeholder({+ key: wrapper ? void 0 : key,+ name,+ hintSize,+ error: null+ });+ return wrapper ? h("div", wrapper, ph) : ph;+ }+ if (kids.length) {+ props.children = renderDeckKids(kids, kidKeys, vals, ctx);+ }+ return wrapper ? h("div", wrapper, h(C, props)) : h(C, props);+ };+ }+ function contentKey(el) {+ const clone = el.cloneNode(true);+ for (const d of clone.querySelectorAll("*")) {+ while (d.attributes.length) d.removeAttribute(d.attributes[0].name);+ }+ const s = clone.innerHTML;+ let h2 = 5381;+ for (let i = 0; i < s.length; i++) h2 = (h2 << 5) + h2 + s.charCodeAt(i) | 0;+ return s.length + "." + (h2 >>> 0).toString(36);+ }+ var NEVER_CONTENT_KEYED = new Set(+ "script style textarea option title select canvas iframe video audio".split(+ " "+ )+ );+ var NOT_INLINE_SELECTOR = ":not(" + [...INLINE_TEXT_TAGS].join(",") + ")";+ function walkElement(el, host) {+ const realTag = RAW_UNWRAP[el.localName] || el.localName;+ const tplId = el.getAttribute("data-dc-tpl");+ const inlineOnly = el.childNodes.length > 0 && !NEVER_CONTENT_KEYED.has(realTag) && el.querySelector(NOT_INLINE_SELECTOR) === null;+ const keySuffix = inlineOnly ? "|" + contentKey(el) : "";+ const { propGetters, pseudoClasses } = collectProps(el, "dom", host);+ const deckKeyed = isDeckMountTag(el) ? walkDeckChildren(el, host) : null;+ const kids = deckKeyed ? deckKeyed.kids : walkChildren(el, host);+ const kidKeys = deckKeyed?.keys ?? null;+ return (vals, ctx, key) => {+ const props = {+ key: key + keySuffix,+ "data-dc-tpl": tplId+ };+ for (const [k, g] of propGetters) {+ let v = g(vals);+ if (k === "style" && typeof v === "string") v = cssToObj(v);+ if ((k === "value" || k === "checked") && v === void 0) {+ v = k === "checked" ? false : "";+ }+ props[k] = v;+ }+ if (pseudoClasses.length) {+ props.className = [props.className, ...pseudoClasses].filter(Boolean).join(" ");+ }+ return h(realTag, props, ...renderDeckKids(kids, kidKeys, vals, ctx));+ };+ }++ // src/logic.ts+ var StreamableLogic = class {+ constructor(props) {+ __publicField(this, "props");+ __publicField(this, "state", {});+ /** Back-pointer to the wrapper component, installed after construction. */+ __publicField(this, "__host");+ this.props = props || {};+ }+ setState(update, cb) {+ this.__host && this.__host.__setLogicState(update, cb);+ }+ forceUpdate() {+ this.__host && this.__host.forceUpdate();+ }+ componentDidMount() {+ }+ componentDidUpdate(_prevProps) {+ }+ componentWillUnmount() {+ }+ /** The flat object the template renders against (merged over props). */+ renderVals() {+ return {};+ }+ };+ function evalDcLogic(src) {+ //! nosemgrep: eval-and-function-constructor+ const fn = new Function(+ "DCLogic",+ "StreamableLogic",+ "React",+ src + '\n;return (typeof Component!=="undefined"&&Component)||undefined;'+ );+ return fn(StreamableLogic, StreamableLogic, getReact());+ }++ // src/component.ts+ function shallowEqual(a, b) {+ if (!b) return false;+ const ak = Object.keys(a).filter((k) => k !== "children");+ const bk = Object.keys(b).filter((k) => k !== "children");+ if (ak.length !== bk.length) return false;+ for (const k of ak) if (a[k] !== b[k]) return false;+ return true;+ }+ function Placeholder({+ name,+ hintSize,+ streaming,+ error+ }) {+ const [w, hgt] = (hintSize || "100%,60px").split(",");+ return h(+ "div",+ {+ className: "sc-placeholder" + (streaming ? " sc-streaming" : ""),+ style: { width: w.trim(), height: hgt && hgt.trim() },+ title: name+ },+ error ? h(+ "div",+ { className: "sc-placeholder-error" },+ (name ? name + ": " : "") + error+ ) : null+ );+ }+ function hintToMin(hint) {+ if (!hint) return void 0;+ const [w, hgt] = hint.split(",");+ return { minWidth: w.trim(), minHeight: hgt && hgt.trim() };+ }+ function createComponentFactory(registry, ensureFetched) {+ const React = getReact();+ const AncestorContext = React.createContext([]);+ class StreamableComponent extends React.Component {+ constructor(props) {+ super(props);+ __publicField(this, "__name");+ __publicField(this, "__sub");+ __publicField(this, "__needsDidMount", false);+ /** Snapshot of the registry's streaming flags taken at render time —+ * builders read it off the RenderCtx (this) to pick placeholder vs+ * render-nothing for unresolved values. */+ __publicField(this, "__streamingNow", false);+ __publicField(this, "__htmlStreamingNow", false);+ /** When a construct throws, remember the (class, registry.ver, props)+ * triple so render-time reconcile doesn't re-attempt it on every parent+ * re-render. A registry bump (new class, template, external module+ * resolving via bumpAll) changes `ver` and breaks the memo so an+ * env-dependent constructor can self-heal. */+ __publicField(this, "__failedLogic", null);+ __publicField(this, "__failedUserProps", null);+ __publicField(this, "__failedVer", -1);+ /** Per-instance constructor error — kept here (not on the registry entry)+ * so one instance's successful construct can't hide a sibling's failure,+ * and a construct can never wipe an eval error `updateJs` recorded on+ * `r.logicError`. */+ __publicField(this, "__ctorError", null);+ __publicField(this, "logic");+ this.__name = props.__name;+ this.state = { __v: 0, __err: null };+ this.__sub = () => {+ if (this.state.__err) this.setState({ __err: null });+ this.forceUpdate();+ };+ this.__makeLogic(registry.get(this.__name).Logic, null);+ ensureFetched(this.__name);+ }+ /** Error-boundary hook: a render crash anywhere in this DC's subtree+ * (its own template, an x-import'd component, a child DC without its+ * own deeper boundary) lands here instead of unmounting the page. */+ static getDerivedStateFromError(e) {+ return { __err: e instanceof Error && e.message ? e.message : String(e) };+ }+ componentDidCatch(e, info) {+ console.error(+ "[dc-runtime] render error in <" + this.__name + ">:",+ e,+ info?.componentStack || ""+ );+ }+ /** Instantiate the logic class (or the no-op base) and adopt `prevState`+ * over its initial state — used both at mount and on hot-swap. */+ __makeLogic(Logic, prevState) {+ const L = Logic || StreamableLogic;+ try {+ this.logic = new L(this.__userProps());+ this.__failedLogic = null;+ this.__failedUserProps = null;+ this.__ctorError = null;+ } catch (e) {+ console.error(e);+ this.__failedLogic = Logic;+ this.__failedUserProps = this.__userProps();+ this.__failedVer = registry.get(this.__name).ver;+ this.__ctorError = this.__name + ": " + (e instanceof Error && e.message ? e.message : String(e));+ this.logic = new StreamableLogic(+ this.__userProps()+ );+ }+ this.logic.__host = this;+ if (prevState)+ this.logic.state = { ...this.logic.state || {}, ...prevState };+ }+ /** The props the author's logic + template see — internal __-prefixed+ * wiring stripped. */+ __userProps() {+ const { __name, __hintSize, __tplId, __hostStyle, ...rest } = this.props;+ return rest;+ }+ __setLogicState(update, cb) {+ const prev = this.logic.state;+ const patch = typeof update === "function" ? update(prev) : update;+ this.logic.state = { ...prev, ...patch };+ this.setState((s) => ({ __v: s.__v + 1 }), cb);+ }+ /** Swap the logic instance when the registry's Logic class changed+ * (streaming completion, hot reload). State carries over; didMount+ * re-fires after the swap commits so refs exist. */+ __reconcileLogic() {+ const r = registry.get(this.__name);+ const Next = r.Logic;+ const Cur = this.logic.constructor;+ if (Next === Cur || !Next && Cur === StreamableLogic || Next === this.__failedLogic && r.ver === this.__failedVer && shallowEqual(this.__userProps(), this.__failedUserProps)) {+ return;+ }+ if (!this.__needsDidMount) {+ try {+ this.logic.componentWillUnmount();+ } catch (e) {+ console.error(e);+ }+ }+ this.__makeLogic(Next, this.logic.state);+ this.__needsDidMount = true;+ }+ componentDidMount() {+ registry.get(this.__name).subs.add(this.__sub);+ try {+ this.logic.componentDidMount();+ } catch (e) {+ console.error(e);+ }+ }+ componentDidUpdate(prevProps) {+ this.logic.props = this.__userProps();+ if (this.__needsDidMount) {+ if (this.state.__err || !registry.get(this.__name).tpl) return;+ this.__needsDidMount = false;+ try {+ this.logic.componentDidMount();+ } catch (e) {+ console.error(e);+ }+ } else {+ try {+ this.logic.componentDidUpdate(prevProps);+ } catch (e) {+ console.error(e);+ }+ }+ }+ componentWillUnmount() {+ registry.get(this.__name).subs.delete(this.__sub);+ if (!this.__needsDidMount) {+ try {+ this.logic.componentWillUnmount();+ } catch (e) {+ console.error(e);+ }+ }+ }+ render() {+ const r = registry.get(this.__name);+ const cls = "sc-host" + (r.htmlStreaming ? " sc-streaming-html" : "") + (r.jsStreaming ? " sc-streaming-js" : "");+ const hintStyle = r.htmlStreaming ? hintToMin(this.props.__hintSize) : void 0;+ const hostStyle = this.props.__hostStyle || hintStyle ? { ...hintStyle || {}, ...this.props.__hostStyle || {} } : void 0;+ const hostBase = {+ className: cls,+ style: hostStyle,+ "data-sc-name": this.__name,+ "data-dc-tpl": this.props.__tplId+ };+ const chain = Array.isArray(this.context) ? this.context : [];+ if (chain.includes(this.__name)) {+ const cycle = [+ ...chain.slice(chain.indexOf(this.__name)),+ this.__name+ ].join(" \u2192 ");+ return h(+ "div",+ { ...hostBase, className: cls + " sc-has-error" },+ h(Placeholder, {+ name: this.__name,+ hintSize: this.props.__hintSize,+ error: "circular import: " + cycle+ })+ );+ }+ if (this.state.__err) {+ return h(+ "div",+ { ...hostBase, className: cls + " sc-has-error" },+ h(+ "div",+ { className: "sc-logic-error", "data-omelette-chrome": "" },+ this.__name + ": " + this.state.__err+ ),+ h(Placeholder, {+ name: this.__name,+ hintSize: this.props.__hintSize,+ error: this.state.__err+ })+ );+ }+ this.__reconcileLogic();+ if (!r.tpl) {+ return h(+ "div",+ hostBase,+ h(Placeholder, { name: this.__name, hintSize: this.props.__hintSize })+ );+ }+ const userProps = this.__userProps();+ this.logic.props = userProps;+ let vals = userProps;+ let renderErr = r.logicError || this.__ctorError;+ try {+ vals = { ...userProps, ...this.logic.renderVals() || {} };+ } catch (e) {+ console.error(e);+ renderErr = this.__name + ".renderVals(): " + (e instanceof Error && e.message ? e.message : String(e));+ }+ this.__streamingNow = !!(r.htmlStreaming || r.jsStreaming);+ this.__htmlStreamingNow = !!r.htmlStreaming;+ return h(+ "div",+ { ...hostBase, className: cls + (renderErr ? " sc-has-error" : "") },+ renderErr && h(+ "div",+ { className: "sc-logic-error", "data-omelette-chrome": "" },+ renderErr+ ),+ h(+ AncestorContext.Provider,+ { value: [...chain, this.__name] },+ r.tpl(vals, this)+ )+ );+ }+ }+ __publicField(StreamableComponent, "contextType", AncestorContext);+ const named = /* @__PURE__ */ new Map();+ function getDC(name) {+ const hit = named.get(name);+ if (hit) return hit;+ function Dispatcher(p) {+ const [, setTick] = React.useState(0);+ React.useEffect(() => {+ const sub = () => setTick((n) => n + 1);+ registry.get(name).subs.add(sub);+ return () => {+ registry.get(name).subs.delete(sub);+ };+ }, []);+ ensureFetched(name);+ return h(StreamableComponent, { ...p, __name: name });+ }+ Dispatcher.displayName = name;+ named.set(name, Dispatcher);+ return Dispatcher;+ }+ return {+ getDC,+ StreamableComponent+ };+ }++ // src/bundled.ts+ function bundledBlob(url) {+ const blobs = window.__resourceBlobs;+ const b = blobs ? blobs[url.split("#")[0]] : void 0;+ return b instanceof Blob ? b : null;+ }++ // src/cdn.ts+ var REACT_URL = "https://unpkg.com/[email protected]/umd/react.production.min.js";+ var REACT_SRI = "sha384-DGyLxAyjq0f9SPpVevD6IgztCFlnMF6oW/XQGmfe+IsZ8TqEiDrcHkMLKI6fiB/Z";+ var REACT_DOM_URL = "https://unpkg.com/[email protected]/umd/react-dom.production.min.js";+ var REACT_DOM_SRI = "sha384-gTGxhz21lVGYNMcdJOyq01Edg0jhn/c22nsx0kyqP0TxaV5WVdsSH1fSDUf5YJj1";+ var BABEL_URL = "https://unpkg.com/@babel/[email protected]/babel.min.js";+ var BABEL_SRI = "sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y";+ function cdnScriptFor(url, sri) {+ const res = window.__resources;+ const v = res ? res[url] : void 0;+ return typeof v === "string" && v ? { src: v } : { src: url, integrity: sri };+ }++ // src/external.ts+ var isCustomElementName = (n) => !n.includes(".") && n.includes("-");+ function isRenderableType(g) {+ if (typeof g === "function") return !isElementClass(g);+ return typeof g === "object" && g !== null && typeof g.$$typeof === "symbol";+ }+ function resolveDottedPath(root, name) {+ let cur = root;+ for (const seg of name.split(".")) {+ if (cur == null) return void 0;+ cur = cur[seg];+ }+ return cur;+ }+ var GLOBAL_POLL_INTERVAL_MS = 50;+ var GLOBAL_POLL_TIMEOUT_MS = 3e4;+ function createExternalModules(onResolved) {+ const cache = /* @__PURE__ */ new Map();+ let babelLoading = null;+ const reportedMissing = /* @__PURE__ */ new Map();+ const polling = /* @__PURE__ */ new Set();+ function ensureBabel() {+ if (window.Babel) return Promise.resolve();+ if (babelLoading) return babelLoading;+ const babel = cdnScriptFor(BABEL_URL, BABEL_SRI);+ babelLoading = new Promise((res, rej) => {+ const s = document.createElement("script");+ s.src = babel.src;+ if (babel.integrity) {+ s.integrity = babel.integrity;+ s.crossOrigin = "anonymous";+ }+ s.onload = () => res();+ s.onerror = rej;+ document.head.appendChild(s);+ });+ return babelLoading;+ }+ const pending = /* @__PURE__ */ new Map();+ function load(kind, url, after) {+ const existing = pending.get(url);+ if (existing) return existing;+ cache.set(url, null);+ console.info("[dc-runtime] x-import: loading", url, "(" + kind + ")");+ const ready = Promise.all([+ kind === "jsx" ? ensureBabel() : Promise.resolve(),+ after ?? Promise.resolve()+ ]);+ const p = ready.then(() => {+ const pre = bundledBlob(url);+ if (pre) return pre.text();+ return fetch(url).then((r) => {+ if (!r.ok) throw new Error("HTTP " + r.status);+ return r.text();+ });+ }).then((src) => {+ const code = kind === "jsx" ? window.Babel.transform(src, {+ filename: url,+ presets: ["react", "typescript"]+ }).code : src;+ const module = { exports: {} };+ const before = new Set(Object.keys(window));+ //! nosemgrep: eval-and-function-constructor+ new Function("React", "module", "exports", "require", code)(+ getReact(),+ module,+ module.exports,+ () => ({})+ );+ const globals = {};+ for (const k of Object.keys(window)) {+ if (!before.has(k) && typeof window[k] === "function") {+ globals[k] = window[k];+ }+ }+ cache.set(url, { mod: module.exports, globals });+ console.info(+ "[dc-runtime] x-import: loaded",+ url,+ "\u2014 exports:",+ Object.keys(module.exports),+ "window globals:",+ Object.keys(globals)+ );+ onResolved();+ }).catch((e) => {+ cache.set(url, {+ mod: {},+ globals: {},+ error: "failed to load: " + (e instanceof Error && e.message ? e.message : String(e))+ });+ console.error(+ "[dc-runtime] x-import: FAILED to load",+ url,+ "(" + kind + ")",+ e+ );+ onResolved();+ });+ pending.set(url, p);+ return p;+ }+ function resolve2(url, name) {+ const entry = cache.get(url);+ if (!entry) return null;+ const { mod, globals } = entry;+ const C = mod && mod[name] || globals && globals[name] || typeof window !== "undefined" && window[name] || mod && mod.default;+ if (typeof C === "function") return C;+ const key = url + "\0" + name;+ if (!reportedMissing.has(key)) {+ reportedMissing.set(+ key,+ entry.error || 'no export named "' + name + '" (has: ' + Object.keys(mod).join(", ") + ")"+ );+ console.error(+ "[dc-runtime] x-import: module",+ url,+ "loaded but has no component named",+ JSON.stringify(name),+ "\u2014 available exports:",+ Object.keys(mod),+ "window globals:",+ Object.keys(globals),+ ". The module must `module.exports = {" + name + "}` or set `window." + name + "`."+ );+ }+ return null;+ }+ function waitForGlobal(name) {+ if (polling.has(name)) return;+ polling.add(name);+ const started = Date.now();+ const isCE = isCustomElementName(name);+ const tick = () => {+ const found = isCE ? customElements.get(name) : isRenderableType(resolveDottedPath(window, name));+ if (found) {+ polling.delete(name);+ onResolved();+ return;+ }+ if (Date.now() - started >= GLOBAL_POLL_TIMEOUT_MS) {+ console.warn(+ "[dc-runtime] x-import: global",+ JSON.stringify(name),+ "never appeared on window after " + GLOBAL_POLL_TIMEOUT_MS + "ms"+ );+ return;+ }+ setTimeout(tick, GLOBAL_POLL_INTERVAL_MS);+ };+ setTimeout(tick, GLOBAL_POLL_INTERVAL_MS);+ }+ function resolveGlobal(url, name) {+ const isCE = isCustomElementName(name);+ if (!url) {+ if (isCE) {+ if (customElements.get(name)) return name;+ waitForGlobal(name);+ return null;+ }+ const g2 = resolveDottedPath(window, name);+ if (isRenderableType(g2)) return g2;+ waitForGlobal(name);+ return null;+ }+ const entry = cache.get(url);+ if (!entry) return null;+ if (isCE && customElements.get(name)) return name;+ const g = entry.globals[name] ?? resolveDottedPath(window, name);+ if (isRenderableType(g)) return g;+ if (name.includes(".")) return null;+ const key = url + "\0global\0" + name;+ if (!reportedMissing.has(key)) {+ reportedMissing.set(key, null);+ if (isCE && !customElements.get(name)) {+ console.warn(+ "[dc-runtime] x-import:",+ url,+ "loaded but no custom element",+ JSON.stringify(name),+ "is registered and window." + name + " is not a function \u2014 rendering <" + name + "> as an unknown element."+ );+ }+ }+ return name;+ }+ function getError(url, name) {+ const entry = cache.get(url);+ if (entry?.error) return entry.error;+ return reportedMissing.get(url + "\0" + name) || null;+ }+ return { load, resolve: resolve2, resolveGlobal, getError };+ }+ function isElementClass(g) {+ try {+ return typeof g === "function" && typeof HTMLElement !== "undefined" && g.prototype instanceof HTMLElement;+ } catch {+ return false;+ }+ }++ // src/atomics.ts+ var ATOMIC_CSS = (+ // layout+ ".fx{display:flex}.col{display:flex;flex-direction:column}.grid{display:grid}.ac{align-items:center}.jc{justify-content:center}.jb{justify-content:space-between}.f1{flex:1}.noshrink{flex-shrink:0}.wrap{flex-wrap:wrap}.fw5{font-weight:500}.fw6{font-weight:600}.fw7{font-weight:700}.fw8{font-weight:800}.fs11{font-size:11px}.fs12{font-size:12px}.fs13{font-size:13px}.fs14{font-size:14px}.fs15{font-size:15px}.fs16{font-size:16px}.fs20{font-size:20px}.fs22{font-size:22px}.upper{text-transform:uppercase}.tc{text-align:center}.nowrap{white-space:nowrap}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}.gap16{gap:16px}.gap24{gap:24px}.m0{margin:0}.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}.posrel{position:relative}.posabs{position:absolute}.round{border-radius:50%}.ohide{overflow:hidden}.bbox{box-sizing:border-box}.pointer{cursor:pointer}.w100{width:100%}.b0{border:none}"+ );++ // src/helmet.ts+ var DESIGN_DOC_MODE_RE = /<meta\b[^>]*\bname\s*=\s*["']design_doc_mode["'][^>]*\b(?:content|value)\s*=\s*["'](\w+)["']/i;+ var CANVAS_BG_LIGHT = "#f0eee6";+ var CANVAS_BG_DARK = "#2e2c26";+ function createHelmetManager(doc, isStreaming) {+ const mounted = /* @__PURE__ */ new Set();+ const live = /* @__PURE__ */ new Map();+ let designDocMode = null;+ let canvasStyleEl = null;+ let appTheme = "light";+ try {+ const ds = doc.documentElement.dataset.theme;+ appTheme = ds === "dark" || ds === "light" ? ds : new URLSearchParams(doc.defaultView?.location.search ?? "").get(+ "theme"+ ) === "dark" ? "dark" : "light";+ } catch {+ }+ function applyCanvasBg() {+ if (!canvasStyleEl) return;+ const bg = appTheme === "dark" ? CANVAS_BG_DARK : CANVAS_BG_LIGHT;+ canvasStyleEl.textContent = `html,body{background:${bg}}#dc-root>.sc-host{position:relative}`;+ }+ function postDesignMode(mode) {+ if (window.parent === window) return;+ try {+ window.parent.postMessage({ type: "__dc_design_mode", mode }, "*");+ } catch {+ }+ }+ function setDesignDocMode(mode) {+ if (mode === designDocMode) return;+ designDocMode = mode;+ postDesignMode(mode);+ if (mode === "canvas") {+ doc.documentElement.setAttribute("data-dc-canvas", "");+ canvasStyleEl = doc.createElement("style");+ canvasStyleEl.setAttribute("data-dc-canvas", "");+ applyCanvasBg();+ doc.head.appendChild(canvasStyleEl);+ } else {+ doc.documentElement.removeAttribute("data-dc-canvas");+ canvasStyleEl?.remove();+ canvasStyleEl = null;+ }+ }+ window.addEventListener("message", (e) => {+ const type = e.data && e.data.type;+ if (type === "__dc_theme") {+ const t = e.data.theme;+ if (t === "light" || t === "dark") {+ appTheme = t;+ applyCanvasBg();+ }+ return;+ }+ if (!designDocMode || type !== "__dc_probe") return;+ postDesignMode(designDocMode);+ });+ function compile(node) {+ const raw = [...node.children];+ const helmetClosed = node.nextSibling != null || node.parentNode?.nextSibling != null;+ if (node.hasAttribute("data-dc-atomics") && !mounted.has("__dc-atomics")) {+ mounted.add("__dc-atomics");+ const el = doc.createElement("style");+ el.id = "__dc-atomics";+ el.textContent = ATOMIC_CSS;+ doc.head.appendChild(el);+ }+ return (_vals, ctx) => {+ const name = ctx && ctx.__name || "";+ const streaming = !!(name && isStreaming(name));+ for (let i = 0; i < raw.length; i++) {+ const child = raw[i];+ const tag = child.tagName;+ const mayBePartial = streaming && !helmetClosed && i === raw.length - 1;+ if (tag === "SCRIPT") {+ if (mayBePartial) continue;+ const key = "SCRIPT|" + (child.getAttribute("src") || child.textContent || "");+ if (mounted.has(key)) continue;+ mounted.add(key);+ const el = doc.createElement("script");+ for (const { name: an, value } of [...child.attributes])+ el.setAttribute(an, value);+ if (child.textContent) el.textContent = child.textContent;+ doc.head.appendChild(el);+ } else if (tag === "LINK" || tag === "META") {+ if (mayBePartial) continue;+ const key = tag + "|" + (child.getAttribute("href") || child.getAttribute("src") || child.outerHTML);+ if (mounted.has(key)) continue;+ mounted.add(key);+ if (tag === "LINK") {+ const rel = (child.getAttribute("rel") || "").toLowerCase().split(/\s+/);+ const href = (child.getAttribute("href") || "").trim();+ const res = window.__resources;+ const pre = res && rel.includes("stylesheet") && !rel.includes("alternate") ? res[href] : void 0;+ const blob = typeof pre === "string" && pre ? bundledBlob(pre) : null;+ if (blob) {+ const el = doc.createElement("style");+ if (child.hasAttribute("disabled")) {+ el.setAttribute("media", "not all");+ } else if (child.getAttribute("media")) {+ el.setAttribute("media", child.getAttribute("media"));+ }+ if (child.getAttribute("title"))+ el.setAttribute("title", child.getAttribute("title"));+ void blob.text().then((css) => {+ el.textContent = css;+ });+ doc.head.appendChild(el);+ continue;+ }+ }+ doc.head.appendChild(child.cloneNode(true));+ } else {+ const key = name + "|" + i;+ let el = live.get(key);+ if (!el || el.tagName !== tag) {+ if (el) el.remove();+ el = doc.createElement(tag.toLowerCase());+ live.set(key, el);+ doc.head.appendChild(el);+ }+ for (const { name: an, value } of [...child.attributes]) {+ if (el.getAttribute(an) !== value) el.setAttribute(an, value);+ }+ if (el.textContent !== child.textContent)+ el.textContent = child.textContent;+ }+ }+ return null;+ };+ }+ return { compile, setDesignDocMode };+ }++ // src/pseudo.ts+ function scanUnquotedUrl(css, i) {+ if (css[i] !== "u" && css[i] !== "U" || css.slice(i, i + 4).toLowerCase() !== "url(" || /[a-z0-9_-]/i.test(css[i - 1] ?? "")) {+ return -1;+ }+ let j = i + 4;+ while (j < css.length && /\s/.test(css[j])) j++;+ if (css[j] === '"' || css[j] === "'") return -1;+ while (j < css.length && css[j] !== ")") {+ if (css[j] === "\\") j++;+ j++;+ }+ return j < css.length ? j + 1 : css.length;+ }+ function stripComments(css) {+ let out = "";+ let quote = "";+ for (let i = 0; i < css.length; i++) {+ const c = css[i];+ if (quote) {+ if (c === "\\") {+ out += c + (css[i + 1] ?? "");+ i++;+ continue;+ }+ if (c === quote) quote = "";+ out += c;+ } else if (c === "'" || c === '"') {+ quote = c;+ out += c;+ } else if (c === "/" && css[i + 1] === "*") {+ const end = css.indexOf("*/", i + 2);+ i = end === -1 ? css.length : end + 1;+ out += " ";+ } else {+ const end = scanUnquotedUrl(css, i);+ if (end === -1) out += c;+ else {+ out += css.slice(i, end);+ i = end - 1;+ }+ }+ }+ return out;+ }+ function importantify(css) {+ css = stripComments(css);+ const decls = [];+ let start = 0;+ let depth = 0;+ let quote = "";+ for (let i = 0; i < css.length; i++) {+ const c = css[i];+ if (quote) {+ if (c === "\\") i++;+ else if (c === quote) quote = "";+ } else if (c === "'" || c === '"') quote = c;+ else if (c === "(") depth++;+ else if (c === ")") depth = Math.max(0, depth - 1);+ else if (c === ";" && depth === 0) {+ decls.push(css.slice(start, i));+ start = i + 1;+ } else {+ const end = scanUnquotedUrl(css, i);+ if (end !== -1) i = end - 1;+ }+ }+ decls.push(css.slice(start));+ return decls.map((d) => d.trim()).filter(Boolean).map((d) => /!\s*important$/i.test(d) ? d : d + " !important").join(";");+ }+ function createPseudoSheet(doc) {+ let el = null;+ const cache = /* @__PURE__ */ new Map();+ let n = 0;+ return (pseudo, css) => {+ const k = pseudo + "|" + css;+ const hit = cache.get(k);+ if (hit) return hit;+ if (!el) {+ el = doc.createElement("style");+ doc.head.appendChild(el);+ }+ const cls = "scp" + (n++).toString(36);+ const isPseudoElement = pseudo === "before" || pseudo === "after";+ const sel = isPseudoElement ? "." + cls + "::" + pseudo : "." + cls + ":" + pseudo;+ el.sheet.insertRule(+ sel + "{" + (isPseudoElement ? css : importantify(css)) + "}",+ el.sheet.cssRules.length+ );+ cache.set(k, cls);+ return cls;+ };+ }++ // src/registry.ts+ function createRegistry() {+ const entries = /* @__PURE__ */ Object.create(null);+ function get(name) {+ return entries[name] || (entries[name] = {+ html: "",+ tpl: null,+ Logic: null,+ jsStreaming: false,+ htmlStreaming: false,+ ver: 0,+ subs: /* @__PURE__ */ new Set(),+ fetched: false+ });+ }+ function bump(name) {+ const r = get(name);+ r.ver++;+ for (const fn of r.subs) fn();+ }+ return {+ entries,+ get,+ bump,+ bumpAll() {+ for (const n in entries) bump(n);+ }+ };+ }++ // src/runtime.ts+ var COMPONENT_DIR = ".";+ function createRuntime(doc = document) {+ const registry = createRegistry();+ const pseudoClass = createPseudoSheet(doc);+ const helmet = createHelmetManager(+ doc,+ (name) => registry.get(name).htmlStreaming+ );+ const external = createExternalModules(() => registry.bumpAll());+ const factory = createComponentFactory(registry, ensureFetched);+ const host = {+ component: (name) => factory.getDC(name),+ placeholder: (props) => h(Placeholder, props),+ helmet: (node) => helmet.compile(node),+ loadExternal: (kind, url, after) => external.load(kind, url, after),+ resolveExternal: (url, name) => external.resolve(url, name),+ resolveExternalGlobal: (url, name) => external.resolveGlobal(url, name),+ resolveExternalError: (url, name) => external.getError(url, name),+ pseudoClass+ };+ function ensureFetched(name) {+ const r = registry.get(name);+ if (r.fetched) return;+ r.fetched = true;+ const url = COMPONENT_DIR + "/" + encodeURIComponent(name) + ".dc.html";+ const res = window.__resources;+ const pre = res ? res[url] : void 0;+ const target = typeof pre === "string" && pre ? pre : url;+ const blob = bundledBlob(target);+ (blob ? blob.text() : fetch(target).then((res2) => {+ if (!res2.ok) {+ console.error(+ '[dc-runtime] sibling fetch for "' + name + '" failed:',+ url,+ "returned",+ res2.status,+ "\u2014 the reference renders as an empty placeholder."+ );+ return "";+ }+ return res2.text();+ })).then((t) => {+ if (!t) return;+ const parsed = parseDcText(t);+ if (!parsed) {+ console.error(+ '[dc-runtime] sibling fetch for "' + name + '":',+ url,+ "has no <x-dc> block \u2014 not a Design Component."+ );+ return;+ }+ if (parsed.props) r.propsMeta = parsed.props;+ if (parsed.preview) r.preview = parsed.preview;+ if (parsed.template && !r.html) updateHtml(name, parsed.template);+ if (parsed.js && !r.Logic) updateJs(name, parsed.js);+ }).catch(+ (e) => console.error(+ '[dc-runtime] sibling fetch for "' + name + '" threw:',+ url,+ e+ )+ );+ }+ let rootName = null;+ function updateHtml(name, html) {+ const r = registry.get(name);+ r.html = html;+ if (name === rootName) {+ const mode = DESIGN_DOC_MODE_RE.exec(html)?.[1] ?? null;+ if (mode || !r.htmlStreaming) helmet.setDesignDocMode(mode);+ }+ try {+ r.tpl = compileTemplate(html, host);+ } catch (e) {+ console.error("[dc-runtime] template compile FAILED for", name, e);+ }+ registry.bump(name);+ }+ function updateJs(name, src) {+ const r = registry.get(name);+ const seq = r.jsSeq = (r.jsSeq || 0) + 1;+ try {+ const Cls = evalDcLogic(src);+ if (r.jsSeq !== seq) return;+ if (typeof Cls !== "function") {+ r.logicError = name + ".dc.html: <script data-dc-script> must define `class Component extends DCLogic`";+ } else {+ r.logicError = null;+ r.Logic = Cls;+ }+ } catch (e) {+ if (r.jsSeq !== seq) return;+ console.error(+ "[dc-runtime] logic class eval FAILED for",+ name,+ "\u2014 the template renders with props only.",+ e+ );+ r.logicError = name + ": " + (e instanceof Error && e.message ? e.message : String(e));+ }+ registry.bump(name);+ }+ function setStreaming(name, kind, on) {+ const r = registry.get(name);+ if (kind === "html") r.htmlStreaming = !!on;+ else r.jsStreaming = !!on;+ let any = false;+ for (const n in registry.entries) {+ const e = registry.entries[n];+ if (e && (e.htmlStreaming || e.jsStreaming)) {+ any = true;+ break;+ }+ }+ doc.documentElement.classList.toggle("sc-dc-streaming", any);+ registry.bump(name);+ }+ function dcUpdate(name, kind, content, streaming) {+ if (streaming) registry.get(name).fetched = true;+ if (kind === "html") {+ setStreaming(name, "html", !!streaming);+ updateHtml(name, content);+ } else if (kind === "js") {+ setStreaming(name, "js", !!streaming);+ if (!streaming) updateJs(name, content);+ } else if (kind === "props") {+ const { props, preview } = parseDataProps(content);+ const r = registry.get(name);+ r.propsMeta = props ?? void 0;+ r.preview = preview;+ registry.bump(name);+ }+ }+ function setProps(name, overrides) {+ registry.get(name).propOverrides = overrides && typeof overrides === "object" ? { ...overrides } : null;+ registry.bump(name);+ }+ function adoptParsed(name, parsed) {+ if (!parsed) return;+ const r = registry.get(name);+ if (parsed.props) r.propsMeta = parsed.props;+ if (parsed.preview) r.preview = parsed.preview;+ if (parsed.template) updateHtml(name, parsed.template);+ if (parsed.js) updateJs(name, parsed.js);+ }+ return {+ registry,+ getDC: factory.getDC,+ updateHtml,+ updateJs,+ dcUpdate,+ setProps,+ adoptParsed,+ setRootName: (name) => {+ rootName = name;+ },+ markFetched: (name) => {+ registry.get(name).fetched = true;+ },+ annotatedTemplate: (name) => {+ const r = registry.get(name);+ return r.tpl && r.tpl.__annotated || null;+ },+ templateSource: (name) => registry.get(name).html || null,+ StreamableLogic+ };+ }++ // src/stream-state.ts+ function createStreamTracker(staleMs = 6e4, now = Date.now) {+ const since = /* @__PURE__ */ new Map();+ const liveOne = (n) => {+ const t = since.get(n);+ if (t === void 0) return false;+ if (now() - t > staleMs) {+ since.delete(n);+ return false;+ }+ return true;+ };+ return {+ push(name, streaming, viewportKey) {+ if (viewportKey === "dc-model") return;+ if (streaming) since.set(name, now());+ else since.delete(name);+ },+ live(name) {+ if (name !== void 0) return liveOne(name);+ for (const n of [...since.keys()]) if (liveOne(n)) return true;+ return false;+ }+ };+ }++ // src/index.ts+ function hideRawTemplate() {+ const s = document.createElement("style");+ s.textContent = "x-dc{display:none!important}";+ document.head.appendChild(s);+ }+ function loadScript(src, integrity) {+ return new Promise((resolve2, reject) => {+ //! nosemgrep: create-script-element+ const s = document.createElement("script");+ s.src = src;+ if (integrity) {+ s.integrity = integrity;+ s.crossOrigin = "anonymous";+ }+ s.async = false;+ s.onload = () => resolve2();+ s.onerror = () => reject(new Error(`failed to load ${src}`));+ document.head.appendChild(s);+ });+ }+ function loadReactUmd() {+ const w = window;+ if (w.React && w.ReactDOM) return Promise.resolve();+ const react = cdnScriptFor(REACT_URL, REACT_SRI);+ const reactDom = cdnScriptFor(REACT_DOM_URL, REACT_DOM_SRI);+ return Promise.all([+ loadScript(react.src, react.integrity),+ loadScript(reactDom.src, reactDom.integrity)+ ]).then(() => void 0);+ }+ function init() {+ const runtime = createRuntime(document);+ let rootName = "Root";+ const baseCss = document.createElement("style");+ baseCss.textContent = BASE_CSS;+ document.head.prepend(baseCss);+ const notifyHost = () => {+ if (window.parent === window) return;+ const r = runtime.registry.entries[rootName];+ try {+ window.parent.postMessage(+ {+ type: "__dc_booted",+ rootName,+ propsMeta: r && r.propsMeta || null,+ preview: r && r.preview || null+ },+ "*"+ );+ } catch {+ }+ };+ const streams = createStreamTracker();+ const api = {+ __dcUpdate: (name, kind, content, streaming, viewportKey) => {+ streams.push(name, streaming, viewportKey);+ runtime.dcUpdate(name, kind, content, streaming);+ if (name === rootName && !streaming && kind === "props") notifyHost();+ },+ __dcStreaming: (name) => streams.live(name),+ __dcSetProps: (name, overrides) => runtime.setProps(name, overrides),+ /** Name of the component currently mounted as the page root — DC tools+ * push their template-stream here when targeting "the open page". */+ __dcRootName: () => rootName,+ /** Editor bridge — the encoded, `data-dc-tpl`-annotated template source.+ * The host editor parses this into its own template DOM so it can map a+ * rendered node (carrying the same `data-dc-tpl`) back to the source+ * node that emitted it. Returns the encoded form (`sc-camel-*` attrs,+ * `<sc-raw-*>`/`<sc-helmet>` tags); the editor decodes on serialize. */+ __dcAnnotatedTemplate: (name) => runtime.annotatedTemplate(name),+ /** Editor bridge — the *original* (decoded) template source. */+ __dcTemplateSource: (name) => runtime.templateSource(name),+ __dcBoot: () => {+ rootName = boot(runtime, document) ?? rootName;+ notifyHost();+ },+ __dcRegistry: runtime.registry.entries,+ getDC: (name) => runtime.getDC(name),+ // `DCLogic` is the documented base class name; `StreamableLogic` is the+ // implementation alias kept for any project that already references it.+ DCLogic: runtime.StreamableLogic,+ StreamableLogic: runtime.StreamableLogic+ };+ Object.assign(window, api);+ window.__dcContentKeyed = true;+ if (document.readyState !== "loading") api.__dcBoot();+ else document.addEventListener("DOMContentLoaded", () => api.__dcBoot());+ }+ hideRawTemplate();+ loadReactUmd().then(init).catch((err) => {+ console.error("[dc] failed to load React or boot:", err);+ throw err;+ });+})();diff --git a/docs-internal/design-system/reference/themes/README.md b/docs-internal/design-system/reference/themes/README.mdnew file mode 100644index 00000000..085d5354--- /dev/null+++ b/docs-internal/design-system/reference/themes/README.md@@ -0,0 +1,17 @@+# Theme CSS — live source is authoritative++The 13 theme snapshots that used to live here were removed: they predated+the hex + `color-mix()` migration (they still carried the retired HSL+shadcn bridge, and lacked the `--code-*` / `--tint-*` tiers), and a second+vendored copy is exactly how they went stale.++**Read the live files instead:** [`client/src/themes/`](../../../../client/src/themes/)+— 14 files (`base.css`, `animations.css`, `light.css`, `dark.css` + the 10+skins). They ARE the design system's theme layer; the external handoff+bundle shipped a byte-identical copy of them and named them its source of+truth.++Prose contracts for the layer live in+[`../../guidelines/THEMES.md`](../../guidelines/THEMES.md) and the merged+handoff brief at [`../../HANDOFF.md`](../../HANDOFF.md); the panel-by-panel+visual target is [`../../reference-mockup/`](../../reference-mockup/).diff --git a/docs-internal/design-system/reference/themes/atomic.css b/docs-internal/design-system/reference/themes/atomic.cssdeleted file mode 100644index c361e822..00000000--- a/docs-internal/design-system/reference/themes/atomic.css+++ /dev/null@@ -1,253 +0,0 @@-/* ============================================================================- * themes/atomic.css — 1962 Eames optimism. Cream, atomic orange, turquoise,- * slate. Boomerangs and starbursts. Reads like a vintage NASA brochure.- * Ported from design_handoff_machinaos_themes/themes/atomic.css.- * ============================================================================ */--:root[data-theme="atomic"] {- --bg-app: #f0e6d2;- --bg-panel: #faf2dc;- --bg-canvas: #e8dcc0;- --bg-elevated: #ffffff;- --bg-input: #ffffff;- --bg-hover: rgba(232, 90, 38, 0.08);- --bg-active: rgba(232, 90, 38, 0.18);- --bg-overlay: rgba(40, 30, 20, 0.5);-- --border-default: #c8b890;- --border-strong: #2a3a4a;- --border-focus: #e85a26;- --ornament-frame: none;-- --fg-default: #2a3a4a;- --fg-muted: #5a6a7a;- --fg-faint: #8a9aaa;- --fg-on-accent: #faf2dc;- --fg-on-success: #faf2dc;- --fg-on-danger: #faf2dc;- --fg-on-warning: #2a3a4a;-- --turquoise: #3a9aa0;- --mustard: #d8a838;- --slate: #2a3a4a;- --atomic-orange: #e85a26;-- --font-display: 'Bevan', 'Alfa Slab One', serif;- --font-body: 'Lato', 'Helvetica Neue', sans-serif;- --font-mono: 'Space Mono', 'JetBrains Mono', monospace;- --type-scale-base: 14px;- --type-tracking-display: 0.06em;- --type-uppercase: uppercase;-- --radius-sm: 0px;- --radius-md: 2px;- --radius-lg: 4px;- --radius-pill: 999px;-- --dur-fast: 100ms;- --dur-default: 200ms;- --dur-slow: 380ms;- --ease-default: cubic-bezier(0.34, 1.6, 0.5, 1);- --ease-emphasis: cubic-bezier(0.34, 1.6, 0.5, 1);- --motion-style: bouncy;- --sound-pack: vibraphone;-- /* Wave 30: turquoise pulse — matches the atomic accent + the- * boomerang selection halo. Reads against cardstock backgrounds. */- --node-pulse-color: hsl(var(--accent));-- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #f0e6d2;- --scrollbar-thumb: #2a3a4a;-- /* Shadcn HSL bridge */- --background: 41 47% 88%;- --foreground: 213 27% 23%;- --card: 0 0% 100%;- --card-foreground: 213 27% 23%;- --popover: 0 0% 100%;- --popover-foreground: 213 27% 23%;-- --primary: 14 81% 53%; /* atomic orange */- --primary-foreground: 41 80% 92%;- --secondary: 44 83% 92%;- --secondary-foreground: 213 27% 23%;- --muted: 44 83% 92%;- --muted-foreground: 211 14% 42%;- --accent: 184 46% 43%; /* turquoise */- --accent-foreground: 213 27% 23%;-- --destructive: 14 81% 53%;- --destructive-foreground: 41 80% 92%;- --success: 120 21% 45%;- --warning: 41 67% 53%;- --info: 184 46% 43%;-- --border: 213 27% 23%;- --input: 40 33% 67%;- --ring: 14 81% 53%;-- /* Action role bridge.- * Wave 30.4: deepened text colors (raised saturation, dropped lightness)- * and bumped soft-fill opacity from 0.16 -> 0.40 so action buttons- * read clearly against ANY underlying panel surface — including the- * teal accent header where the previous low-saturation 16% tints- * disappeared into the background. */- --action-run: 130 60% 28%;- --action-run-soft: 130 60% 28% / 0.40;- --action-run-hover: 130 60% 28% / 0.55;- --action-run-border: 130 60% 28% / 0.75;-- --action-stop: 14 90% 42%;- --action-stop-soft: 14 90% 42% / 0.40;- --action-stop-hover: 14 90% 42% / 0.55;- --action-stop-border: 14 90% 42% / 0.75;-- --action-save: 14 90% 42%;- --action-save-soft: 14 90% 42% / 0.40;- --action-save-hover: 14 90% 42% / 0.55;- --action-save-border: 14 90% 42% / 0.75;-- --action-config: 41 80% 38%;- --action-config-soft: 41 80% 38% / 0.40;- --action-config-hover: 41 80% 38% / 0.55;- --action-config-border: 41 80% 38% / 0.75;-- --action-secret: 184 70% 30%;- --action-secret-soft: 184 70% 30% / 0.40;- --action-secret-hover: 184 70% 30% / 0.55;- --action-secret-border: 184 70% 30% / 0.75;-- --action-tools: 184 70% 30%;- --action-tools-soft: 184 70% 30% / 0.40;- --action-tools-hover: 184 70% 30% / 0.55;- --action-tools-border: 184 70% 30% / 0.7;-- --tint-soft: 14%;- --tint-border: 35%;-- /* Canvas backplane — mid-century starburst on 160x160 tile */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><g stroke='%232a3a4a' stroke-width='0.6' fill='none' opacity='0.18'><path d='M40 80 L120 80 M80 40 L80 120 M50 50 L110 110 M110 50 L50 110'/></g></svg>");- --canvas-grid-opacity: 1;-}--/* Body — clean cardstock; starburst lives on canvas in W2 wrapper */-:root[data-theme="atomic"] body {- background: var(--bg-app);-}--:root[data-theme="atomic"] ::selection {- background: rgba(232, 90, 38, 0.4);- color: #2a3a4a;-}--/* Atomic scrollbars — square corners (mid-century geometric) */-:root[data-theme="atomic"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="atomic"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="atomic"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: 0;-}-:root[data-theme="atomic"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─────────────── */--:root[data-theme="atomic"] .toolbar, :root[data-theme="atomic"] .sidebar,-:root[data-theme="atomic"] .palette, :root[data-theme="atomic"] .chat { background: var(--bg-panel); }-:root[data-theme="atomic"] .toolbar { border-bottom: 4px solid var(--slate); }-:root[data-theme="atomic"] .sidebar { border-right: 4px solid var(--slate); }-:root[data-theme="atomic"] .palette { border-left: 4px solid var(--slate); }-:root[data-theme="atomic"] .chat { border-top: 4px solid var(--slate); }--/* Canvas — atomic starburst pattern */-:root[data-theme="atomic"] .canvas {- background:- radial-gradient(circle at 12% 15%, hsl(var(--accent)) 0%, transparent 0.8%),- radial-gradient(circle at 88% 12%, var(--turquoise) 0%, transparent 0.6%),- radial-gradient(circle at 18% 88%, var(--mustard) 0%, transparent 0.7%),- radial-gradient(circle at 82% 90%, hsl(var(--accent)) 0%, transparent 0.5%),- radial-gradient(circle at 50% 50%, var(--turquoise) 0%, transparent 0.4%),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><g stroke='%232a3a4a' stroke-width='0.6' fill='none' opacity='0.18'><path d='M40 80 L120 80 M80 40 L80 120 M50 50 L110 110 M110 50 L50 110'/></g></svg>"),- var(--bg-canvas);-}--/* Typography */-:root[data-theme="atomic"] body { font-family: var(--font-body); color: var(--fg-default); }-:root[data-theme="atomic"] h1, :root[data-theme="atomic"] h2, :root[data-theme="atomic"] h3,-:root[data-theme="atomic"] .v-display {- font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate);-}--/* Square node — boomerang card */-:root[data-theme="atomic"] .sq-node-box {- background: var(--bg-elevated);- border: 3px solid var(--slate); border-radius: 14px 2px 14px 2px;- box-shadow: 4px 4px 0 var(--slate);- color: hsl(var(--accent));-}-:root[data-theme="atomic"] .sq-node.selected .sq-node-box {- background: hsl(var(--accent)); color: var(--bg-elevated);- box-shadow: 4px 4px 0 var(--slate), 0 0 0 4px hsl(var(--warning) / 0.25);-}-:root[data-theme="atomic"] .sq-node-pip { border: 1.5px solid var(--slate); }-:root[data-theme="atomic"] .sq-node-gear { background: var(--turquoise); color: var(--bg-elevated); border: 1px solid var(--slate); }-:root[data-theme="atomic"] .sq-node-handle { border: 2px solid var(--slate); background: var(--mustard); }-:root[data-theme="atomic"] .sq-node-handle.out { background: hsl(var(--accent)); }-:root[data-theme="atomic"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.08em; font-size: 11px; }--/* Actions — chunky stamps */-:root[data-theme="atomic"] .action-btn {- font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;- border-radius: 0; border-width: 3px; box-shadow: 3px 3px 0 var(--slate);-}-:root[data-theme="atomic"] .action-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--slate); }-:root[data-theme="atomic"] .action-run { background: hsl(var(--success)); color: var(--bg-elevated); border-color: var(--slate); }-:root[data-theme="atomic"] .action-deploy { background: var(--turquoise); color: var(--bg-elevated); border-color: var(--slate); }-:root[data-theme="atomic"] .action-save { background: hsl(var(--accent)); color: var(--bg-elevated); border-color: var(--slate); }--/* Cards — boomerang corners */-:root[data-theme="atomic"] .wf-card,-:root[data-theme="atomic"] .cat,-:root[data-theme="atomic"] .comp,-:root[data-theme="atomic"] .settings-section,-:root[data-theme="atomic"] .cred-card {- background: var(--bg-elevated); border: 2px solid var(--slate); border-radius: 12px 2px 12px 2px;- box-shadow: 3px 3px 0 var(--slate);-}-:root[data-theme="atomic"] .wf-card.selected { background: hsl(var(--warning-soft)); border-color: hsl(var(--accent)); }-:root[data-theme="atomic"] .cat-tile { background: var(--mustard); border: 1.5px solid var(--slate); border-radius: 8px 0 8px 0; color: var(--slate); }-:root[data-theme="atomic"] .comp-ico { background: var(--turquoise); color: var(--bg-elevated); border-radius: 6px 0 6px 0; border: 1.5px solid var(--slate); }-:root[data-theme="atomic"] .cat-name, :root[data-theme="atomic"] .comp-name { font-family: var(--font-display); font-size: 12px; }--/* Chat */-:root[data-theme="atomic"] .chat-msg { border-radius: 14px 4px 14px 4px; border-width: 2px; }-:root[data-theme="atomic"] .chat-msg-user { background: var(--mustard); color: var(--slate); border-color: var(--slate); }-:root[data-theme="atomic"] .chat-msg-bot { background: var(--turquoise); color: var(--bg-elevated); border-color: var(--slate); }--/* Status bar */-:root[data-theme="atomic"] .statusbar {- background: var(--slate); color: var(--bg-elevated); border-top: 4px solid hsl(var(--accent));- font-family: var(--font-mono); letter-spacing: 0.06em;-}-:root[data-theme="atomic"] .statusbar .pip { background: hsl(var(--success)); }--/* Modal */-:root[data-theme="atomic"] .modal {- background: var(--bg-elevated); border: 4px solid var(--slate); border-radius: 24px 4px 24px 4px;- box-shadow: 8px 8px 0 var(--slate);-}-:root[data-theme="atomic"] .modal-head { border-bottom: 3px solid var(--slate); background: hsl(var(--accent)); color: var(--bg-elevated); }-:root[data-theme="atomic"] .modal-title { font-family: var(--font-display); color: var(--bg-elevated); letter-spacing: 0.10em; }--/* CMDK */-:root[data-theme="atomic"] .cmdk { background: var(--bg-elevated); border: 4px solid var(--slate); border-radius: 24px 4px 24px 4px; box-shadow: 8px 8px 0 var(--slate); }-:root[data-theme="atomic"] .cmdk-item.active { background: hsl(var(--accent)); color: var(--bg-elevated); }diff --git a/docs-internal/design-system/reference/themes/base.css b/docs-internal/design-system/reference/themes/base.cssdeleted file mode 100644index 5d2269c8..00000000--- a/docs-internal/design-system/reference/themes/base.css+++ /dev/null@@ -1,373 +0,0 @@-/* ============================================================================- * themes/base.css — neutral defaults shared by every theme.- *- * These are scoped to :root (no data-theme selector) so they apply as- * fallbacks when a theme block omits the variable. Per-theme blocks- * always win via specificity (`:root[data-theme="..."]` beats `:root`).- *- * Source: design_handoff_machinaos_themes/themes/base.css.- * ============================================================================ */--:root {- /* Space scale (4 / 8 / 12 / 16 / 24 / 32 / 48 / 64) */- --space-1: 4px;- --space-2: 8px;- --space-3: 12px;- --space-4: 16px;- --space-5: 24px;- --space-6: 32px;- --space-7: 48px;- --space-8: 64px;-- /* New-contract radii — exposed as Tailwind tokens via index.css.- * Co-exist with shadcn `--radius` (still used by existing primitives). */- --radius-pill: 999px;-- /* Motion */- --dur-fast: 90ms;- --dur-default: 180ms;- --dur-slow: 320ms;- --ease-default: cubic-bezier(0.2, 0.7, 0.3, 1);- --ease-emphasis: cubic-bezier(0.6, -0.05, 0.3, 1.4);- --motion-style: smooth;-- /* Sound (read by JS in a future phase) */- --sound-pack: none;-- /* Type case toggle — themes flip between `none` / `uppercase` / `capitalize`. */- --type-uppercase: none;- --type-tracking-display: 0;- --type-scale-base: 14px;-- /* Cursor + scrollbar */- --cursor-default: auto;- --cursor-pointer: pointer;-- /* Canvas-host background pattern slot — themes override with a CSS- * gradient or SVG data-url. Default: no pattern. */- --canvas-grid: none;- --canvas-grid-opacity: 0.4;-- /* Node execution pulse colour (Wave 30). Independent of `--node-color`- * (the plugin accent) so the executing-node glow stays high-contrast- * against the canvas background regardless of which plugin is running.- * Each theme overrides this to its most visible accent (Cyber neon- * cyan, Renaissance gold, Surveillance REC red, etc.). The default- * `hsl(var(--info))` resolves to a theme-tinted blue under shadcn. */- --node-pulse-color: hsl(var(--info));-}--/* ============================================================================- * Reduced-motion override — respects the user's OS-level- * `prefers-reduced-motion: reduce` setting (DevTools rendering panel- * also surfaces this).- *- * Targets every theme's per-component animation: cyber-flicker /- * cyber-roll / cyber-blink / cyber-glitch (Cyber), surv-blink- * (Surveillance), ren-flicker (Renaissance), plus any `transition`- * on canvas-host pseudo-elements that synthesise motion.- *- * Sounds are not motion — left enabled regardless. Settings → Audio- * → Sound effects is the user-facing audio toggle.- * ============================================================================ */--/* ============================================================================- * Wave 33: pause every CSS animation when the tab is hidden.- *- * Browsers continue advancing CSS keyframe timing on background tabs (RAF- * is throttled to ~1Hz but `animation` keyframes still accumulate paused- * frames in the compositor queue). When the tab becomes visible, all- * paused frames flush at once — with W30's three-layer box-shadow- * `node-pulse` (peak `0 0 56px 16px color-mix(...)` × 3 layers) running- * on every executing node, plus Cyber theme's full-viewport- * `cyber-flicker` (5s opacity) + `cyber-roll` (8s viewport-height- * translateY), the GPU compositor stalls for 100-200ms. During the stall- * input events queue but don't dispatch — first click on tab return- * appears unresponsive.- *- * The Dashboard mounts a small `visibilitychange` listener that toggles- * this attribute on `<html>`. Setting `animation-play-state: paused`- * flushes the keyframe queue so resume has nothing to catch up on. The- * dashboard defers the unpause via `requestAnimationFrame` so input- * dispatch happens before composite.- * ============================================================================ */--html[data-page-hidden] *,-html[data-page-hidden] *::before,-html[data-page-hidden] *::after {- animation-play-state: paused !important;-}--@media (prefers-reduced-motion: reduce) {- /* Cyber */- :root[data-theme="cyber"] .app-frame,- :root[data-theme="cyber"] .app-frame::before,- :root[data-theme="cyber"] .app-frame::after,- :root[data-theme="cyber"] .canvas::after,- :root[data-theme="cyber"] .canvas-host::after,- :root[data-theme="cyber"] .node::before,- :root[data-theme="cyber"] .sq-node.selected .sq-node-box,- :root[data-theme="cyber"] .row:hover::after,- :root[data-theme="cyber"] .statusbar .pip,- :root[data-theme="cyber"] .cmdk-item.active::after,- :root[data-theme="cyber"] .v-display:hover,- /* Surveillance */- :root[data-theme="surveillance"] .sq-node-box::before,- :root[data-theme="surveillance"] .statusbar .pip,- /* Renaissance */- :root[data-theme="renaissance"] .canvas .ornament,- /* Generic Tailwind animate-pulse used by node execution pip */- .animate-pulse,- /* Wave 21 default node pulse */- .react-flow__node.executing .node {- animation: none !important;- transition: none !important;- }-}--/* ============================================================================- * Default canvas-node visuals (Wave 21).- *- * Each node component sets `--node-color` inline from its plugin's- * accent hex (visuals.json). These rules consume that custom property- * to draw a sensible default border / gradient / shadow so light, dark,- * and any theme that doesn't define its own `.node` rule still renders- * correctly. Per-theme CSS in client/src/themes/<theme>.css overrides- * these with material-specific decorations (vellum, neon, marble, etc.).- * ============================================================================ */--.node {- position: relative;- border-radius: 12px;- border: 2px solid color-mix(in srgb, var(--node-color, hsl(var(--border))) 60%, transparent);- background:- linear-gradient(- 135deg,- color-mix(in srgb, var(--node-color, hsl(var(--card))) 14%, hsl(var(--card))) 0%,- hsl(var(--card)) 100%- );- box-shadow: 0 2px 8px color-mix(in srgb, var(--node-color, #000) 18%, transparent);- transition:- transform 0.15s ease,- border-color 0.15s ease,- box-shadow 0.15s ease;-}--.node:hover {- transform: translateY(-1px);- box-shadow: 0 4px 14px color-mix(in srgb, var(--node-color, #000) 28%, transparent);-}--.node.selected {- border-color: var(--node-color, hsl(var(--ring)));- box-shadow:- 0 0 0 1px var(--node-color, hsl(var(--ring))),- 0 4px 14px color-mix(in srgb, var(--node-color, #000) 32%, transparent);-}--/* Pulse during execution — react-flow toggles `.executing` on the wrapper- via canvasAnimations.ts (`.react-flow__node.executing`). The keyframe- uses --node-pulse-color (theme-controlled high-contrast accent) NOT- --node-color (plugin accent), so the glow stays visible against any- theme background — Cyber's near-black, Renaissance's vellum,- Surveillance's grey, etc. */-.react-flow__node.executing .node {- animation: node-pulse 1.4s ease-in-out infinite;-}--/* Three-layer pulse for high-visibility executing-node glow:- * 1. inner solid ring — definitive "this node is live" signal- * 2. mid soft halo — bleeds outside the node bounds- * 3. outer atmospheric halo — readable at distant canvas zoom- *- * Total reach at peak: ~52px outside the node box (12px ring +- * 40px outer halo). Peak intensity tuned so the glow doesn't- * appear blown-out or wash the surrounding canvas — the outer- * halo is 25% opacity, the ring is 45%. */-@keyframes node-pulse {- 0%,- 100% {- box-shadow:- 0 0 0 0 color-mix(in srgb, var(--node-pulse-color) 80%, transparent),- 0 0 14px 2px color-mix(in srgb, var(--node-pulse-color) 50%, transparent),- 0 0 28px 4px color-mix(in srgb, var(--node-pulse-color) 25%, transparent);- }- 50% {- box-shadow:- 0 0 0 12px color-mix(in srgb, var(--node-pulse-color) 45%, transparent),- 0 0 32px 8px color-mix(in srgb, var(--node-pulse-color) 65%, transparent),- 0 0 56px 16px color-mix(in srgb, var(--node-pulse-color) 30%, transparent);- }-}--/* Square-node default visuals — outer wrapper is layout-only, the inner- `.sq-node-box` carries the bordered icon-square. Per-theme CSS- already in `client/src/themes/*.css` overrides these for material- identity. */-.sq-node {- position: relative;-}--.sq-node-box {- border-radius: 10px;- border: 2px solid color-mix(in srgb, var(--node-color, hsl(var(--border))) 60%, transparent);- background:- linear-gradient(- 135deg,- color-mix(in srgb, var(--node-color, hsl(var(--card))) 18%, hsl(var(--card))) 0%,- hsl(var(--card)) 100%- );- box-shadow: 0 2px 8px color-mix(in srgb, var(--node-color, #000) 18%, transparent);- transition:- transform 0.15s ease,- border-color 0.15s ease,- box-shadow 0.15s ease;-}--.sq-node-box:hover {- transform: translateY(-1px);- box-shadow: 0 4px 14px color-mix(in srgb, var(--node-color, #000) 28%, transparent);-}--.sq-node.selected .sq-node-box {- border-color: var(--node-color, hsl(var(--ring)));- box-shadow:- 0 0 0 1px var(--node-color, hsl(var(--ring))),- 0 4px 14px color-mix(in srgb, var(--node-color, #000) 32%, transparent);-}--.react-flow__node.executing .sq-node-box,-.sq-node[data-executing] .sq-node-box {- animation: node-pulse 1.5s ease-in-out infinite;-}--/* ============================================================================- * Canvas-host background pattern + cursor (Wave 24).- *- * Themes provide per-theme decorative backgrounds via the `--canvas-grid`- * custom property (CSS gradient or SVG data-url) and per-theme cursors- * via `--cursor-default`. Both fall back to neutral defaults from `:root`.- *- * The pattern is layered on top of React Flow's own background — themes- * keep their canvas surface colour via shadcn `--background` tokens and- * this rule adds the decorative grid on top.- * ============================================================================ */--.canvas-host {- background-image: var(--canvas-grid, none);- cursor: var(--cursor-default, auto);-}--/* ============================================================================- * Default canvas-node inner-element visuals (Wave 26).- *- * Status pips, gear buttons, handles, and labels — defaults that fire- * across all themes that don't override. Status pips are driven by- * `data-status` set inline by the React component; CSS picks the colour- * from shadcn semantic tokens. Per-theme CSS in client/src/themes/<theme>.css- * overrides these for material-specific identity.- * ============================================================================ */--/* Status pip — square-node and rectangular-node variants */-.sq-node-pip,-.node-pip {- background: hsl(var(--muted-foreground));-}--.sq-node-pip[data-status="idle"],-.node-pip[data-status="idle"] {- background: hsl(var(--muted-foreground));-}--.sq-node-pip[data-status="executing"],-.sq-node-pip[data-status="waiting"],-.node-pip[data-status="executing"],-.node-pip[data-status="waiting"] {- background: var(--node-color, hsl(var(--info)));- box-shadow: 0 0 6px color-mix(in srgb, var(--node-color, hsl(var(--info))) 60%, transparent);-}--.sq-node-pip[data-status="success"],-.node-pip[data-status="success"] {- background: hsl(var(--success));-}--.sq-node-pip[data-status="error"],-.node-pip[data-status="error"] {- background: hsl(var(--destructive));-}--/* Gear button defaults */-.sq-node-gear,-.node-gear {- background: hsl(var(--card));- border: 1px solid hsl(var(--border));- color: hsl(var(--muted-foreground));- transition: background-color 0.15s ease, border-color 0.15s ease;-}--.sq-node-gear:hover,-.node-gear:hover {- background: hsl(var(--accent));- border-color: hsl(var(--accent-foreground) / 0.2);-}--/* Handle defaults */-.sq-node-handle,-.node-handle {- background: hsl(var(--background));- border: 2px solid hsl(var(--muted-foreground));- transition: background-color 0.15s ease, border-color 0.15s ease;-}--.sq-node-handle.out,-.node-handle.out {- background: var(--node-color, hsl(var(--primary)));- border-color: var(--node-color, hsl(var(--primary)));-}--.sq-node-handle.in,-.node-handle.in {- background: hsl(var(--background));- border-color: hsl(var(--muted-foreground));-}--/* Label defaults — picks up display typography from theme */-.sq-node-label,-.node-label {- font-family: var(--font-display, var(--font-body));- letter-spacing: var(--type-tracking-display, 0);- text-transform: var(--type-uppercase, none);- color: hsl(var(--foreground));-}--/* ============================================================================- * Status-state box glow (Wave 29).- *- * The W26 status-pip rules (.sq-node-pip[data-status="..."]) color the- * small status indicator. This block adds a complementary glow to the- * NODE BOX itself for `success` and `error` states, so post-execution- * outcomes are visible at canvas zoom levels where the pip is too- * small to read. Per-theme files override these via higher-specificity- * `:root[data-theme="..."] .sq-node[data-status="..."] .sq-node-box`- * selectors when they want a material-specific outcome glow.- * ============================================================================ */--.sq-node[data-status="success"] .sq-node-box,-.react-flow__node[data-status="success"] .node {- box-shadow:- 0 0 0 1px hsl(var(--success)),- 0 0 14px color-mix(in srgb, hsl(var(--success)) 60%, transparent);-}--.sq-node[data-status="error"] .sq-node-box,-.react-flow__node[data-status="error"] .node {- box-shadow:- 0 0 0 1px hsl(var(--destructive)),- 0 0 14px color-mix(in srgb, hsl(var(--destructive)) 60%, transparent);-}--/* TODO(wave-30): mirror data-status from the pip to the outer .sq-node /- * .react-flow__node wrapper in each canvas-node component so the box- * glow rules above fire. The wave-29 selectors are pre-positioned;- * components currently set data-status on the pip only (W26). */diff --git a/docs-internal/design-system/reference/themes/cyber.css b/docs-internal/design-system/reference/themes/cyber.cssdeleted file mode 100644index ae1a76ff..00000000--- a/docs-internal/design-system/reference/themes/cyber.css+++ /dev/null@@ -1,890 +0,0 @@-/* ============================================================================- * themes/cyber.css — Neuromancer night market / pirated terminal popup.- *- * Defines the full new-contract token block AND overrides the shadcn- * HSL-triplet tokens so existing Tailwind utilities retint correctly.- *- * Palette: void (#050010), neon magenta (#f51eb6), neon cyan (#1dd9e5),- * neon green (#26d97a). HSL triplets are conversions of the same hex- * values.- *- * Decorative layers (scanlines, CRT flicker, grid backplane, neon glow)- * are deferred to Phase 3 fan-out.- *- * Source: design_handoff_machinaos_themes/themes/cyber.css.- * ============================================================================ */--:root[data-theme="cyber"] {- /* ── New contract — full colour values ────────────────────────────── */-- /* Surfaces */- --bg-app: #050010;- --bg-panel: #0a0420;- --bg-canvas: #03000a;- --bg-elevated: #15103a;- --bg-input: #0a0420;- --bg-hover: rgba(245, 30, 182, 0.14);- --bg-active: rgba(245, 30, 182, 0.20);- --bg-overlay: rgba(5, 0, 16, 0.85);-- /* Borders */- --border-default: #2a1f50;- --border-strong: #f51eb6;- --border-focus: #1dd9e5;- --ornament-frame: none;-- /* Foreground */- --fg-default: #f0e0ff;- --fg-muted: #a090c0;- --fg-faint: #6a5a8a;- --fg-on-accent: #050010;- --fg-on-success: #050010;- --fg-on-danger: #f5e0ea;- --fg-on-warning: #050010;-- /* Theme-specific neon accents */- --neon-cyan: #1dd9e5;- --neon-magenta: #f51eb6;- --neon-yellow: #ffd028;- --neon-green: #26d97a;-- /* Type — Major Mono Display + JetBrains Mono everywhere */- --font-display: 'Major Mono Display', 'Audiowide', monospace;- --font-body: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;- --font-mono: 'JetBrains Mono', monospace;- --type-scale-base: 13px;- --type-tracking-display: 0.18em;- --type-uppercase: uppercase;-- /* Geometry — sharp corners everywhere */- --radius-sm: 0;- --radius-md: 0;- --radius-lg: 0;- --radius-pill: 0;-- /* Motion — fast, mechanical (steps easing for hard on/off) */- --ease-default: steps(4, end);- --ease-emphasis: steps(8, end);- --dur-fast: 60ms;- --dur-default: 120ms;- --dur-slow: 240ms;- --motion-style: glitch;- --sound-pack: terminal;-- /* Wave 30: high-contrast executing-node pulse colour. Neon cyan- * reads vividly against the near-black canvas backplane. */- --node-pulse-color: var(--neon-cyan);-- /* Cursor — crosshair targeting reticle (upstream design handoff) */- --cursor-default: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><g stroke='%23f51eb6' stroke-width='1.2' fill='none'><path d='M12 2 L12 8 M12 16 L12 22 M2 12 L8 12 M16 12 L22 12'/><circle cx='12' cy='12' r='3'/><circle cx='12' cy='12' r='1' fill='%231dd9e5'/></g></svg>") 12 12, crosshair;- --cursor-pointer: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><g stroke='%23f51eb6' stroke-width='1.5' fill='none'><rect x='3' y='3' width='18' height='18'/><rect x='8' y='8' width='8' height='8' fill='%231dd9e5'/></g></svg>") 12 12, pointer;-- /* Canvas backplane — magnetic-tape grid (24px cells, neon magenta + cyan) */- --canvas-grid:- repeating-linear-gradient(0deg, transparent 0 23px, rgba(245, 30, 182, 0.10) 23px 24px),- repeating-linear-gradient(90deg, transparent 0 23px, rgba(29, 217, 229, 0.10) 23px 24px);- --canvas-grid-opacity: 1;-- --scrollbar-track: #0a0420;- --scrollbar-thumb: #f51eb6;-- /* ── Shadcn HSL-triplet bridge ───────────────────────────────────── */-- --background: 247 100% 4%; /* #050010 */- --foreground: 267 100% 94%; /* #f0e0ff */- --card: 247 57% 15%; /* #15103a */- --card-foreground: 267 100% 94%;- --popover: 253 80% 7%; /* #0a0420 */- --popover-foreground: 267 100% 94%;-- --primary: 316 92% 54%; /* #f51eb6 neon magenta */- --primary-foreground: 247 100% 4%;- --secondary: 253 80% 7%; /* panel */- --secondary-foreground: 267 100% 94%;- --muted: 253 80% 7%;- --muted-foreground: 260 25% 66%; /* #a090c0 */- --accent: 184 79% 51%; /* #1dd9e5 neon cyan */- --accent-foreground: 247 100% 4%;-- --destructive: 347 100% 56%; /* #ff2050 */- --destructive-foreground: 0 0% 100%;- --success: 147 71% 50%; /* #26d97a neon green */- --warning: 46 100% 58%; /* #ffd028 neon yellow */- --info: 184 79% 51%; /* neon cyan */-- --border: 253 44% 22%; /* #2a1f50 */- --input: 253 44% 22%;- --ring: 184 79% 51%; /* cyan focus */-- /* Action role tokens — neon equivalents */- --action-run: 147 71% 50%; /* neon green */- --action-run-soft: 147 71% 50% / 0.15;- --action-run-hover: 147 71% 50% / 0.30;- --action-run-border: 147 71% 50% / 0.7;-- --action-stop: 347 100% 56%; /* danger red */- --action-stop-soft: 347 100% 56% / 0.15;- --action-stop-hover: 347 100% 56% / 0.30;- --action-stop-border: 347 100% 56% / 0.7;-- --action-save: 184 79% 51%; /* neon cyan */- --action-save-soft: 184 79% 51% / 0.15;- --action-save-hover: 184 79% 51% / 0.30;- --action-save-border: 184 79% 51% / 0.7;-- --action-config: 46 100% 58%; /* neon yellow */- --action-config-soft: 46 100% 58% / 0.15;- --action-config-hover: 46 100% 58% / 0.30;- --action-config-border: 46 100% 58% / 0.7;-- --action-secret: 316 92% 54%; /* neon magenta */- --action-secret-soft: 316 92% 54% / 0.15;- --action-secret-hover: 316 92% 54% / 0.30;- --action-secret-border: 316 92% 54% / 0.7;-- --action-tools: 316 92% 54%; /* magenta */- --action-tools-soft: 316 92% 54% / 0.15;- --action-tools-hover: 316 92% 54% / 0.30;- --action-tools-border: 316 92% 54% / 0.7;-- /* Stronger tint alpha — neon brand colours need more presence on void */- --tint-soft: 16%;- --tint-border: 50%;-}--/* ── Body void background ────────────────────────────────────────────── */--:root[data-theme="cyber"] body {- background:- radial-gradient(ellipse at 20% 30%, rgba(245, 30, 182, 0.12), transparent 40%),- radial-gradient(ellipse at 80% 70%, rgba(29, 217, 229, 0.08), transparent 40%),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence baseFrequency='2' numOctaves='1' seed='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.4 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>"),- var(--bg-app);-}--/* ::selection — neon highlight */-:root[data-theme="cyber"] ::selection {- background: #f51eb6;- color: #050010;-}--/* Cyber scrollbars — neon thumbs with glow */-:root[data-theme="cyber"] ::-webkit-scrollbar-thumb {- background: #f51eb6;- box-shadow: 0 0 6px #f51eb6;-}--/* ── Per-component decorations (Wave 16 port from handoff) ─── */--/* CRT flicker on whole frame */-@keyframes cyber-flicker {- 0%, 92%, 100% { opacity: 1; }- 93% { opacity: 0.88; }- 94% { opacity: 1; }- 96% { opacity: 0.94; }- 97% { opacity: 1; }-}--/* Rolling scanline */-@keyframes cyber-roll {- 0% { transform: translateY(-100%); }- 100% { transform: translateY(100vh); }-}--/* Blinking elements (LED, status pip, cmdk arrow) */-@keyframes cyber-blink {- 0%, 49% { opacity: 1; }- 50%, 100% { opacity: 0.4; }-}--/* Glitch on hover */-@keyframes cyber-glitch {- 0%, 100% { transform: translateX(0); text-shadow: 0 0 4px var(--neon-magenta), 0 0 12px var(--neon-magenta), 1px 0 0 var(--neon-cyan); }- 20% { transform: translateX(-2px); text-shadow: 2px 0 var(--neon-cyan), -2px 0 var(--neon-magenta); }- 40% { transform: translateX(2px); text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--neon-magenta); }- 60% { transform: translateX(-1px); }- 80% { transform: translateX(1px); }-}--/* ─── SCANLINES OVERLAY across the whole app ─── */-:root[data-theme="cyber"] .app-frame {- box-shadow:- inset 0 0 0 1px var(--neon-magenta),- inset 0 0 0 4px var(--bg-app),- inset 0 0 0 5px var(--neon-cyan),- 0 0 80px rgba(245, 30, 182, 0.4);- position: relative;- animation: cyber-flicker 5s linear infinite;-}-:root[data-theme="cyber"] .app-frame::after {- content: '';- position: absolute; inset: 0;- background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.25) 2px 3px);- pointer-events: none;- z-index: 1000;- mix-blend-mode: multiply;-}-:root[data-theme="cyber"] .app-frame::before {- content: ''; position: absolute; left: 0; right: 0; height: 80px;- background: linear-gradient(180deg, transparent, rgba(245, 30, 182, 0.15), transparent);- pointer-events: none; z-index: 1001;- animation: cyber-roll 8s linear infinite;-}--/* ─── PANELS with circuit-board border lights ─── */-:root[data-theme="cyber"] .toolbar,-:root[data-theme="cyber"] .sidebar,-:root[data-theme="cyber"] .palette,-:root[data-theme="cyber"] .chat {- background:- linear-gradient(180deg, rgba(245, 30, 182, 0.04), transparent 60px),- var(--bg-panel);- position: relative;-}-:root[data-theme="cyber"] .toolbar { border-bottom: 1px solid var(--neon-magenta); box-shadow: 0 1px 12px rgba(245, 30, 182, 0.5); }-:root[data-theme="cyber"] .sidebar { border-right: 1px solid var(--neon-magenta); box-shadow: 1px 0 12px rgba(245, 30, 182, 0.3); }-:root[data-theme="cyber"] .palette { border-left: 1px solid var(--neon-cyan); box-shadow: -1px 0 12px rgba(29, 217, 229, 0.3); }-:root[data-theme="cyber"] .chat { border-top: 1px solid var(--neon-cyan); box-shadow: 0 -1px 12px rgba(29, 217, 229, 0.3); }--/* ─── CANVAS — magnetic-tape grid with horizon ─── */-:root[data-theme="cyber"] .canvas {- background:- radial-gradient(ellipse at 50% 100%, rgba(245, 30, 182, 0.25), transparent 60%),- linear-gradient(180deg, transparent 0%, transparent 50%, rgba(29, 217, 229, 0.04) 50%, rgba(29, 217, 229, 0.08) 100%),- linear-gradient(rgba(245, 30, 182, 0.08) 1px, transparent 1px),- linear-gradient(90deg, rgba(29, 217, 229, 0.08) 1px, transparent 1px),- var(--bg-canvas);- background-size: auto, auto, 24px 24px, 24px 24px, auto;- position: relative;-}--/* Perspective grid floor — sits below React Flow nodes (which carry their- * own z-index from React Flow internals). pointer-events:none so the- * decoration never captures clicks meant for nodes/edges underneath. */-:root[data-theme="cyber"] .canvas::before {- content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50%;- background:- linear-gradient(180deg, transparent, rgba(245, 30, 182, 0.10) 80%),- repeating-linear-gradient(180deg, transparent 0 20px, rgba(29, 217, 229, 0.4) 20px 21px);- transform: perspective(300px) rotateX(60deg);- transform-origin: bottom;- pointer-events: none;- opacity: 0.4;- z-index: 0;-}--/* Floating "SIGNAL LOST" status text — sits above the perspective floor- * but pointer-events:none keeps it from intercepting interaction. */-:root[data-theme="cyber"] .canvas::after {- content: '◆ SIGNAL ◆ NIGHT_MARKET.7 ◆ 03:47:22';- position: absolute; top: 12px; right: 16px;- font-family: var(--font-mono);- font-size: 10px;- color: var(--neon-cyan);- letter-spacing: 0.2em;- text-shadow: 0 0 4px var(--neon-cyan);- pointer-events: none;- animation: cyber-blink 1.6s steps(2) infinite;- z-index: 1;-}--/* ─── BUTTONS — neon outline ─── */-:root[data-theme="cyber"] .btn {- background: transparent;- border: 1px solid var(--neon-cyan);- color: var(--neon-cyan);- font-family: var(--font-body);- letter-spacing: 0.14em;- text-transform: uppercase;- font-size: 11px; font-weight: 600;- padding: 7px 14px;- text-shadow: 0 0 4px currentColor;- box-shadow: 0 0 8px rgba(29, 217, 229, 0.3), inset 0 0 8px rgba(29, 217, 229, 0.1);- position: relative;- transition: none;-}-:root[data-theme="cyber"] .btn::before {- content: '> '; opacity: 0; transition: opacity var(--dur-fast);-}-:root[data-theme="cyber"] .btn:hover {- color: var(--neon-magenta);- border-color: var(--neon-magenta);- background: rgba(245, 30, 182, 0.10);- box-shadow: 0 0 16px var(--neon-magenta), inset 0 0 12px rgba(245, 30, 182, 0.2);-}-:root[data-theme="cyber"] .btn:hover::before { opacity: 1; }--/* ─── INPUTS — terminal entry ─── */-:root[data-theme="cyber"] .input {- background: rgba(0,0,0,0.4);- border: 1px solid var(--border-default);- color: var(--neon-cyan);- font-family: var(--font-mono);- font-size: 12px;- caret-color: var(--neon-magenta);- text-shadow: 0 0 3px var(--neon-cyan);- padding: 7px 10px 7px 22px;-}-:root[data-theme="cyber"] .input:focus {- outline: none;- border-color: var(--neon-magenta);- box-shadow: 0 0 0 1px var(--neon-magenta), 0 0 16px rgba(245, 30, 182, 0.5);-}-:root[data-theme="cyber"] .input::placeholder { color: var(--fg-faint); }--/* prompt prefix */-:root[data-theme="cyber"] .input { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 2 L6 6 L2 10' fill='none' stroke='%23f51eb6' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: 7px center; background-size: 10px; }--/* ─── ROWS — scan-bracket on hover ─── */-:root[data-theme="cyber"] .row {- font-family: var(--font-mono);- font-size: 12px;- color: var(--fg-muted);- padding: 6px 10px;- position: relative;- border-left: 2px solid transparent;- transition: color var(--dur-fast) steps(2), border-color var(--dur-fast), background var(--dur-fast);-}-:root[data-theme="cyber"] .row:hover {- color: var(--neon-magenta);- background: var(--bg-hover);- border-left-color: var(--neon-magenta);- text-shadow: 0 0 4px var(--neon-magenta);-}-:root[data-theme="cyber"] .row:hover::after {- content: ' ◀'; color: var(--neon-magenta);- position: absolute; right: 8px; top: 50%; transform: translateY(-50%);- animation: cyber-blink 0.6s steps(2) infinite;-}--/* ─── NODES — chrome terminals with neon underglow ─── */-:root[data-theme="cyber"] .node {- background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));- border: 1px solid var(--neon-cyan);- font-family: var(--font-display);- font-size: 10px;- letter-spacing: 0.16em;- text-transform: uppercase;- color: var(--neon-cyan);- padding: 10px 14px;- text-shadow: 0 0 4px currentColor;- box-shadow:- 0 0 0 1px var(--bg-app),- 0 0 16px rgba(29, 217, 229, 0.4),- inset 0 0 12px rgba(29, 217, 229, 0.1);- position: relative;- clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));- transition: none;-}-/* Wave 30.3: TriggerNode is `.sq-node.node-trigger` (square topology- after W26.A) — the visible square is `.sq-node-box`, not the outer- `.sq-node` wrapper which spans icon + label. The earlier W26.B bare- `.node-trigger` selector also fired on the outer wrapper, painting- a 1px ring + 16px green halo around the whole thing (icon AND label- area), reading as a phantom extra border. Now scoped to- `.sq-node.node-trigger .sq-node-box` only — the green neon strictly- outlines the icon-square. AIAgentNode remains rectangular- (`.node.node-agent`), unaffected. */-:root[data-theme="cyber"] .sq-node.node-trigger .sq-node-box { border-color: var(--neon-green); color: var(--neon-green); box-shadow: 0 0 0 1px var(--bg-app), 0 0 16px rgba(38, 217, 122, 0.5), inset 0 0 12px rgba(38, 217, 122, 0.1); }-:root[data-theme="cyber"] .node-agent { border-color: var(--neon-magenta); color: var(--neon-magenta); box-shadow: 0 0 0 1px var(--bg-app), 0 0 16px rgba(245, 30, 182, 0.6), inset 0 0 12px rgba(245, 30, 182, 0.15); }--/* corner LED */-:root[data-theme="cyber"] .node::before {- content: ''; position: absolute; top: 4px; left: 4px;- width: 4px; height: 4px;- background: currentColor;- box-shadow: 0 0 6px currentColor;- animation: cyber-blink 1.4s steps(2) infinite;-}-:root[data-theme="cyber"] .node:hover {- box-shadow:- 0 0 0 1px var(--bg-app),- 0 0 24px currentColor,- inset 0 0 16px rgba(255, 255, 255, 0.1);-}--/* edges glow */-:root[data-theme="cyber"] .edge path {- stroke: var(--neon-magenta) !important;- filter: drop-shadow(0 0 4px var(--neon-magenta));-}--/* ─── SQUARE NODES — terminal modules ─── */-:root[data-theme="cyber"] .sq-node-box {- background: linear-gradient(180deg, rgba(245,30,182,0.10), rgba(0,0,0,0.6));- border: 1px solid var(--neon-magenta);- border-radius: 0;- box-shadow:- inset 0 0 0 1px rgba(0,0,0,0.6),- 0 0 12px rgba(245,30,182,0.4);- color: var(--neon-magenta);- text-shadow: 0 0 4px currentColor;-}-:root[data-theme="cyber"] .sq-node.selected .sq-node-box {- border-color: var(--neon-cyan);- color: var(--neon-cyan);- box-shadow:- inset 0 0 0 1px rgba(0,0,0,0.6),- 0 0 0 1px var(--neon-cyan),- 0 0 20px var(--neon-cyan);- animation: cyber-blink 1.6s steps(2) infinite;-}--/* Wave 29: Cyber executing nodes pulse with the cyber-blink keyframe- * (steps animation = digital strobe), not the smooth node-pulse default.- * Targets BOTH React Flow's wrapper class and our data-attribute so- * either drives the animation. Higher specificity than base.css's- * generic .react-flow__node.executing .sq-node-box rule, so this wins. */-/* Wave 30.1: dedicated executing-pulse keyframe that animates- * BOX-SHADOW only — not opacity. The original `cyber-blink`- * keyframe (used for LED, status pip, cmdk arrow) animates- * opacity 1 → 0.4, which when applied to whole nodes faded the- * entire node icon + content. This keyframe pulses the neon glow- * intensity while the node body stays solid. Steps(2) timing- * preserves the digital strobe character. */-@keyframes cyber-pulse-exec {- 0%, 49% {- box-shadow:- 0 0 0 2px var(--neon-cyan),- 0 0 32px 4px var(--neon-cyan),- 0 0 64px 16px color-mix(in srgb, var(--neon-cyan) 35%, transparent),- inset 0 0 18px rgba(29, 217, 229, 0.3);- }- 50%, 100% {- box-shadow:- 0 0 0 2px var(--neon-cyan),- 0 0 14px 2px color-mix(in srgb, var(--neon-cyan) 55%, transparent),- 0 0 28px 6px color-mix(in srgb, var(--neon-cyan) 15%, transparent),- inset 0 0 8px rgba(29, 217, 229, 0.12);- }-}--:root[data-theme="cyber"] .sq-node[data-executing] .sq-node-box,-:root[data-theme="cyber"] .react-flow__node.executing .sq-node-box,-:root[data-theme="cyber"] .react-flow__node.executing .node {- animation: cyber-pulse-exec 1.6s steps(2) infinite;- border-color: var(--neon-cyan);-}-:root[data-theme="cyber"] .sq-node-pip {- border-radius: 0;- width: 8px; height: 8px;- box-shadow: 0 0 6px currentColor;-}-:root[data-theme="cyber"] .sq-node-gear {- background: var(--bg-app);- border: 1px solid var(--neon-cyan);- color: var(--neon-cyan);- border-radius: 0;- text-shadow: 0 0 3px currentColor;-}-:root[data-theme="cyber"] .sq-node-handle {- border-radius: 0;- background: var(--neon-magenta);- border-color: var(--neon-magenta);- box-shadow: 0 0 4px var(--neon-magenta);-}-:root[data-theme="cyber"] .sq-node-handle.out { background: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: 0 0 4px var(--neon-cyan); }-:root[data-theme="cyber"] .sq-node-label {- font-family: var(--font-mono);- text-transform: uppercase;- letter-spacing: 0.14em;- color: var(--neon-cyan);- text-shadow: 0 0 3px currentColor;- font-size: 10px;-}--/* ─── CATEGORIES — system blocks ─── */-:root[data-theme="cyber"] .cat {- background: rgba(0,0,0,0.4);- border: 1px solid var(--border-default);- border-radius: 0;-}-:root[data-theme="cyber"] .cat-head {- border-bottom: 1px solid var(--neon-magenta);- background: rgba(245,30,182,0.06);-}-:root[data-theme="cyber"] .cat-tile {- background: rgba(0,0,0,0.5);- border: 1px solid var(--cat-color, var(--neon-magenta));- color: var(--cat-color, var(--neon-magenta));- border-radius: 0;- box-shadow: 0 0 6px currentColor;-}-:root[data-theme="cyber"] .cat-name {- font-family: var(--font-display);- letter-spacing: 0.18em;- text-transform: uppercase;- color: var(--neon-magenta);- text-shadow: 0 0 4px currentColor;-}-:root[data-theme="cyber"] .cat-count {- background: var(--bg-app);- border: 1px solid var(--neon-cyan);- color: var(--neon-cyan);- border-radius: 0;- text-shadow: 0 0 3px currentColor;-}-:root[data-theme="cyber"] .cat-chev {- color: var(--neon-magenta);- text-shadow: 0 0 4px currentColor;-}--/* ─── COMP ITEMS ─── */-:root[data-theme="cyber"] .comp {- background: rgba(0,0,0,0.5);- border: 1px solid var(--border-default);- border-radius: 0;- position: relative;-}-:root[data-theme="cyber"] .comp::before {- content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;- background: var(--cat-color, var(--neon-magenta));- opacity: 0.6;-}-:root[data-theme="cyber"] .comp:hover {- border-color: var(--cat-color, var(--neon-magenta));- background: rgba(245,30,182,0.08);- box-shadow: 0 0 12px rgba(245,30,182,0.3);-}-:root[data-theme="cyber"] .comp-ico {- background: rgba(0,0,0,0.6);- border: 1px solid var(--cat-color, var(--neon-magenta));- color: var(--cat-color, var(--neon-magenta));- border-radius: 0;- box-shadow: 0 0 6px currentColor;-}-:root[data-theme="cyber"] .comp-name {- font-family: var(--font-display);- letter-spacing: 0.10em;- text-transform: uppercase;- color: var(--neon-cyan);- text-shadow: 0 0 3px currentColor;-}-:root[data-theme="cyber"] .comp-desc {- font-family: var(--font-mono);- color: var(--fg-muted);-}-:root[data-theme="cyber"] .comp-grip { color: var(--neon-magenta); }--/* ─── MENU POP ─── */-:root[data-theme="cyber"] .menu-pop {- background: rgba(10,4,32,0.98);- border: 1px solid var(--neon-magenta);- border-radius: 0;- box-shadow:- inset 0 0 0 1px var(--bg-app),- inset 0 0 0 2px var(--neon-cyan),- 0 0 30px rgba(245,30,182,0.4);-}-:root[data-theme="cyber"] .menu-pop-item {- font-family: var(--font-mono);- font-size: 12px;- color: var(--neon-cyan);- text-shadow: 0 0 3px currentColor;-}-:root[data-theme="cyber"] .menu-pop-item::before { content: '> '; opacity: 0.5; }-:root[data-theme="cyber"] .menu-pop-item:hover {- background: var(--bg-active);- color: var(--neon-magenta);-}--/* ─── SETTINGS SECTIONS ─── */-:root[data-theme="cyber"] .settings-section {- background: rgba(0,0,0,0.4);- border: 1px solid var(--neon-magenta);- border-radius: 0;- position: relative;-}-:root[data-theme="cyber"] .settings-section::before {- content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px;- background: var(--neon-magenta);- box-shadow: 0 0 8px var(--neon-magenta);-}-:root[data-theme="cyber"] .settings-section h3 {- color: var(--neon-cyan);- font-family: var(--font-display);- letter-spacing: 0.16em;- text-transform: uppercase;- text-shadow: 0 0 4px currentColor;- border-bottom: 1px solid var(--border-default);- padding-bottom: 8px;-}-:root[data-theme="cyber"] .settings-section h3::before { content: '◆ '; color: var(--neon-magenta); }-:root[data-theme="cyber"] .settings-summary {- background: rgba(0,0,0,0.6);- border: 1px solid var(--neon-cyan);- font-family: var(--font-mono);- color: var(--neon-cyan);- text-shadow: 0 0 3px currentColor;- border-radius: 0;-}--/* ─── CRED CARDS ─── */-:root[data-theme="cyber"] .cred-card {- background: rgba(0,0,0,0.5);- border: 1px solid var(--cred-color, var(--neon-magenta));- border-radius: 0;- box-shadow: 0 0 12px color-mix(in srgb, var(--cred-color, var(--neon-magenta)) 25%, transparent);-}-:root[data-theme="cyber"] .cred-card-head {- background: rgba(245,30,182,0.08);- border-bottom: 1px solid var(--cred-color, var(--neon-magenta));-}-:root[data-theme="cyber"] .cred-card .name {- font-family: var(--font-display);- letter-spacing: 0.18em;- text-transform: uppercase;- color: var(--cred-color, var(--neon-magenta));- text-shadow: 0 0 4px currentColor;-}-:root[data-theme="cyber"] .cred-tag {- font-family: var(--font-mono);- letter-spacing: 0.10em;- text-transform: uppercase;- border-radius: 0;- text-shadow: 0 0 3px currentColor;- font-size: 9px;-}--/* Credential rows — connection traces */-:root[data-theme="cyber"] .cred-row {- background: rgba(0, 0, 0, 0.4);- border: 1px solid var(--border-default);- border-radius: 0;- position: relative;-}-:root[data-theme="cyber"] .cred-row::before {- content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;- background: var(--neon-magenta);- box-shadow: 0 0 6px var(--neon-magenta);-}-:root[data-theme="cyber"] .cred-row .name {- font-family: var(--font-display);- letter-spacing: 0.16em;- color: var(--neon-cyan);- text-shadow: 0 0 3px currentColor;- font-size: 11px;-}-:root[data-theme="cyber"] .cred-row .badge {- font-family: var(--font-mono);- font-size: 9px;- letter-spacing: 0.1em;- text-transform: uppercase;- border-radius: 0;- text-shadow: 0 0 3px currentColor;-}--/* ─── PARAMETER PANEL COLS ─── */-:root[data-theme="cyber"] .param-col {- background: rgba(0,0,0,0.4);- border-right: 1px solid var(--neon-magenta);-}-:root[data-theme="cyber"] .param-col-head {- background: rgba(245,30,182,0.10);- border-bottom: 1px solid var(--neon-magenta);- font-family: var(--font-display);- color: var(--neon-cyan);- letter-spacing: 0.16em;- text-transform: uppercase;- text-shadow: 0 0 3px currentColor;-}-:root[data-theme="cyber"] .json-block {- background: rgba(0,0,0,0.7);- border: 1px solid var(--border-default);- font-family: var(--font-mono);- color: var(--neon-green);- text-shadow: 0 0 3px currentColor;- border-radius: 0;-}-:root[data-theme="cyber"] .json-key { color: var(--neon-cyan); text-shadow: 0 0 3px currentColor; }-:root[data-theme="cyber"] .json-str { color: var(--neon-green); }-:root[data-theme="cyber"] .json-num { color: var(--neon-yellow); text-shadow: 0 0 3px currentColor; }--/* ─── CHAT TABS ─── */-:root[data-theme="cyber"] .chat-tab {- font-family: var(--font-display);- letter-spacing: 0.14em;- text-transform: uppercase;- font-size: 10px;- border-radius: 0;- color: var(--fg-muted);-}-:root[data-theme="cyber"] .chat-tab.active {- background: var(--neon-magenta);- color: var(--bg-app);- text-shadow: none;- box-shadow: 0 0 8px var(--neon-magenta);-}--/* ─── CHAT MESSAGES — DM transmission ─── */-:root[data-theme="cyber"] .chat-msg {- font-family: var(--font-mono);- font-size: 12px;- border-radius: 0;- position: relative;-}-:root[data-theme="cyber"] .chat-msg-user {- background: rgba(245, 30, 182, 0.15);- color: var(--neon-magenta);- border: 1px solid var(--neon-magenta);- text-shadow: 0 0 3px currentColor;- box-shadow: 0 0 8px rgba(245, 30, 182, 0.3);-}-:root[data-theme="cyber"] .chat-msg-user::before { content: '> USER:: '; opacity: 0.6; }-:root[data-theme="cyber"] .chat-msg-bot {- background: rgba(29, 217, 229, 0.08);- color: var(--neon-cyan);- border: 1px solid var(--neon-cyan);- text-shadow: 0 0 3px currentColor;-}-:root[data-theme="cyber"] .chat-msg-bot::before { content: '< NODE:: '; opacity: 0.6; }--/* ─── THEME SWITCHER ─── */-:root[data-theme="cyber"] .theme-switcher {- background: rgba(10, 4, 32, 0.95);- border: 1px solid var(--neon-magenta);- box-shadow: 0 0 16px rgba(245, 30, 182, 0.5);-}-:root[data-theme="cyber"] .theme-switcher button {- font-family: var(--font-display);- text-shadow: 0 0 4px currentColor;-}--/* ─── EMPTY STATE ─── */-:root[data-theme="cyber"] .empty-state .glyph {- font-family: var(--font-display);- font-size: 64px;- color: var(--neon-magenta);- text-shadow: 0 0 16px var(--neon-magenta);-}--/* ─── STATUS BAR — system console ─── */-:root[data-theme="cyber"] .statusbar {- background: rgba(5, 0, 16, 0.95);- border-top: 1px solid var(--neon-magenta);- box-shadow: 0 -1px 12px rgba(245, 30, 182, 0.3);- font-family: var(--font-mono);- color: var(--neon-cyan);- text-shadow: 0 0 3px currentColor;- letter-spacing: 0.08em;-}-:root[data-theme="cyber"] .statusbar .pip {- background: var(--neon-green);- box-shadow: 0 0 8px var(--neon-green);- animation: cyber-blink 1.4s steps(2) infinite;- border-radius: 0;-}--/* ─── MODAL — terminal popup ─── */-/* Wave 31.1: do NOT redeclare `position` here. The Modal component- * already sets `position: fixed` via Tailwind (Modal.tsx line 99), and- * Cyber's previous `position: relative` overrode it (selector- * specificity — :root[data-theme="cyber"] .modal beats a single-class- * .fixed utility), pulling the modal out of fixed positioning into- * normal document flow. The result was the parameter panel rendering- * off-screen / not visible under Cyber. The `.modal::before` scanline- * pseudo-element below uses `position: absolute; inset: 0` which- * anchors to the modal's fixed position fine — no positioning context- * needs to be declared here. */-:root[data-theme="cyber"] .modal {- background:- linear-gradient(180deg, rgba(245, 30, 182, 0.06), transparent 60px),- var(--bg-panel);- border: 1px solid var(--neon-magenta);- border-radius: 0;- box-shadow:- inset 0 0 0 1px var(--bg-app),- inset 0 0 0 2px var(--neon-cyan),- 0 0 60px rgba(245, 30, 182, 0.5),- 0 30px 80px rgba(0, 0, 0, 0.8);-}-:root[data-theme="cyber"] .modal::before {- content: ''; position: absolute; inset: 0;- background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.2) 2px 3px);- pointer-events: none; mix-blend-mode: multiply;-}-:root[data-theme="cyber"] .modal-head {- border-bottom: 1px solid var(--neon-magenta);- background: linear-gradient(180deg, rgba(245, 30, 182, 0.12), transparent);- padding: 14px 18px;-}-:root[data-theme="cyber"] .modal-title {- color: var(--neon-magenta);- text-shadow: 0 0 4px currentColor;- font-family: var(--font-display);-}-:root[data-theme="cyber"] .modal-title::before { content: '◆ '; }-:root[data-theme="cyber"] .modal-foot {- border-top: 1px solid var(--border-default);-}-:root[data-theme="cyber"] .field label {- color: var(--neon-cyan);- text-shadow: 0 0 3px currentColor;-}-:root[data-theme="cyber"] .field label::before { content: '> '; opacity: 0.6; }--/* ─── COMMAND PALETTE — root terminal ─── */-:root[data-theme="cyber"] .cmdk {- background: rgba(10, 4, 32, 0.98);- border: 1px solid var(--neon-magenta);- border-radius: 0;- box-shadow:- inset 0 0 0 2px var(--bg-app),- inset 0 0 0 3px var(--neon-cyan),- 0 0 60px rgba(245, 30, 182, 0.6);-}-:root[data-theme="cyber"] .cmdk input {- font-family: var(--font-mono);- font-size: 14px;- background: transparent;- color: var(--neon-magenta);- border-bottom: 1px solid var(--neon-magenta);- padding-left: 30px;- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 2 L6 6 L2 10' fill='none' stroke='%23f51eb6' stroke-width='1.5'/></svg>");- background-repeat: no-repeat;- background-position: 14px center;- background-size: 12px;- text-shadow: 0 0 4px currentColor;- caret-color: var(--neon-magenta);-}-:root[data-theme="cyber"] .cmdk input::placeholder { color: var(--fg-faint); }-:root[data-theme="cyber"] .cmdk-item {- font-family: var(--font-mono);- font-size: 12px;- border-radius: 0;- color: var(--fg-muted);- border-left: 2px solid transparent;- padding-left: 8px;-}-:root[data-theme="cyber"] .cmdk-item.active {- background: var(--bg-active);- color: var(--neon-magenta);- border-left-color: var(--neon-magenta);- text-shadow: 0 0 4px currentColor;-}-:root[data-theme="cyber"] .cmdk-item.active::after {- content: ' ◀'; margin-left: auto;- color: var(--neon-magenta);- animation: cyber-blink 0.6s steps(2) infinite;-}-:root[data-theme="cyber"] .cmdk-item kbd {- background: rgba(0,0,0,0.4);- border: 1px solid var(--neon-cyan);- color: var(--neon-cyan);- font-family: var(--font-mono);- border-radius: 0;- text-shadow: 0 0 3px currentColor;-}--/* Headings — neon glow + glitch on hover */-:root[data-theme="cyber"] .v-display {- font-family: var(--font-display);- letter-spacing: var(--type-tracking-display);- text-transform: uppercase;- color: var(--neon-magenta);- text-shadow:- 0 0 4px var(--neon-magenta),- 0 0 12px var(--neon-magenta),- 1px 0 0 var(--neon-cyan);-}-:root[data-theme="cyber"] .v-display:hover { animation: cyber-glitch 0.4s steps(8); }diff --git a/docs-internal/design-system/reference/themes/dark.css b/docs-internal/design-system/reference/themes/dark.cssdeleted file mode 100644index 095d65c4..00000000--- a/docs-internal/design-system/reference/themes/dark.css+++ /dev/null@@ -1,70 +0,0 @@-/* ============================================================================- * themes/dark.css — dark theme new-contract tokens.- *- * Scoped to BOTH `.dark` (so existing Tailwind `dark:` variants and the- * legacy `<html class="dark">` toggle continue to work) AND- * `:root[data-theme="dark"]` (the explicit theme name).- *- * Mirrors the existing `.dark` block in index.css for shadcn HSL-triplet- * tokens; this file only adds the new full-colour contract.- *- * Source palette: neutral slate dark — the light grey-blue "paper" family- * inverted (NOT Solarized teal) + Dracula vibrant accents.- * ============================================================================ */--.dark,-:root[data-theme="dark"] {- /* Surfaces — neutral slate */- --bg-app: #0d0f13; /* neutral near-black slate */- --bg-panel: #15171c; /* one step up — toolbar/sidebar/palette */- --bg-canvas: #0d0f13;- --bg-elevated: #1b1e25;- --bg-input: #15171c;- --bg-hover: rgba(255, 255, 255, 0.05);- --bg-active: rgba(255, 255, 255, 0.08);- --bg-overlay: rgba(0, 0, 0, 0.7);-- /* Borders */- --border-default: #2b2f37;- --border-strong: #3c424c;- --border-focus: #3b82f6; /* standard blue */- --ornament-frame: none;-- /* Foreground — near-white neutral for readability over slate */- --fg-default: #e8eaed;- --fg-muted: #9aa1ac;- --fg-faint: #6b7280;- --fg-on-accent: #ffffff;- --fg-on-success: #0d0f13;- --fg-on-danger: #ffffff;- --fg-on-warning: #0d0f13;-- /* Type — same as light (system stack) */- --font-display: 'Geist Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;- --font-body: 'Geist Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;- --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;- --type-scale-base: 14px;- --type-tracking-display: 0;- --type-uppercase: none;-- /* Geometry — same scale as light */- --radius-sm: 4px;- --radius-md: 6px;- --radius-lg: 8px;- --radius-pill: 999px;-- /* Motion */- --dur-fast: 90ms;- --dur-default: 180ms;- --dur-slow: 320ms;- --ease-default: cubic-bezier(0.2, 0.7, 0.3, 1);- --ease-emphasis: cubic-bezier(0.6, -0.05, 0.3, 1.4);- --motion-style: smooth;- --sound-pack: terminal;-- /* Cursor + scrollbar */- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #15171c;- --scrollbar-thumb: #3c424c;-}diff --git a/docs-internal/design-system/reference/themes/edo.css b/docs-internal/design-system/reference/themes/edo.cssdeleted file mode 100644index e17e83c1..00000000--- a/docs-internal/design-system/reference/themes/edo.css+++ /dev/null@@ -1,246 +0,0 @@-/* ============================================================================- * themes/edo.css — washi paper, sumi-e ink, vermillion hanko seal.- *- * Quiet, asymmetric, lots of negative space. Reads like an ink-painting on- * rice paper. Ported from design_handoff_machinaos_themes/themes/edo.css.- * ============================================================================ */--:root[data-theme="edo"] {- --bg-app: #f4ecd8;- --bg-panel: #faf3e0;- --bg-canvas: #ede4ca;- --bg-elevated: #fdf8ea;- --bg-input: #fdf8ea;- --bg-hover: rgba(180, 30, 30, 0.06);- --bg-active: rgba(180, 30, 30, 0.14);- --bg-overlay: rgba(40, 30, 20, 0.55);-- --border-default: #c8b890;- --border-strong: #1a1410;- --border-focus: #b41e1e;- --ornament-frame: none;-- --fg-default: #1a1410;- --fg-muted: #6a5e48;- --fg-faint: #a89a78;- --fg-on-accent: #fdf8ea;- --fg-on-success: #fdf8ea;- --fg-on-danger: #fdf8ea;- --fg-on-warning: #1a1410;-- --sumi: #1a1410;- --sakura: #e89aa8;- --bamboo: #4a6a3a;- --tea: #8a6a3a;- --vermillion: #b41e1e;-- --font-display: 'Shippori Mincho', 'Sawarabi Mincho', 'Noto Serif JP', serif;- --font-body: 'Shippori Mincho', 'Sawarabi Mincho', 'Noto Serif JP', serif;- --font-mono: 'JetBrains Mono', monospace;- --type-scale-base: 14px;- --type-tracking-display: 0.06em;- --type-uppercase: none;-- --radius-sm: 0px;- --radius-md: 0px;- --radius-lg: 0px;- --radius-pill: 0px;-- --dur-fast: 90ms;- --dur-default: 220ms;- --dur-slow: 520ms;- --ease-default: cubic-bezier(0.4, 0, 0.2, 1);- --ease-emphasis: cubic-bezier(0.7, -0.1, 0.3, 1.2);- --motion-style: organic;- --sound-pack: ink;-- /* Wave 30: vermillion pulse — matches hanko seal + reads against- * washi paper background. */- --node-pulse-color: hsl(var(--accent));-- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #f4ecd8;- --scrollbar-thumb: #c8b890;-- /* Shadcn HSL bridge */- --background: 41 56% 90%;- --foreground: 24 25% 8%;- --card: 44 80% 96%;- --card-foreground: 24 25% 8%;- --popover: 44 80% 96%;- --popover-foreground: 24 25% 8%;-- --primary: 0 71% 41%; /* vermillion */- --primary-foreground: 44 80% 96%;- --secondary: 44 71% 93%;- --secondary-foreground: 24 25% 8%;- --muted: 44 71% 93%;- --muted-foreground: 36 19% 35%;- --accent: 0 71% 41%;- --accent-foreground: 44 80% 96%;-- --destructive: 0 71% 41%;- --destructive-foreground: 44 80% 96%;- --success: 100 29% 32%; /* bamboo */- --warning: 41 60% 49%;- --info: 24 25% 8%; /* sumi black for info */-- --border: 24 25% 8%;- --input: 40 35% 67%;- --ring: 0 71% 41%;-- /* Action role bridge */- --action-run: 100 29% 32%;- --action-run-soft: 100 29% 32% / 0.14;- --action-run-hover: 100 29% 32% / 0.26;- --action-run-border: 100 29% 32% / 0.7;-- --action-stop: 0 71% 41%;- --action-stop-soft: 0 71% 41% / 0.14;- --action-stop-hover: 0 71% 41% / 0.28;- --action-stop-border: 0 71% 41% / 0.7;-- --action-save: 0 71% 41%;- --action-save-soft: 0 71% 41% / 0.16;- --action-save-hover: 0 71% 41% / 0.30;- --action-save-border: 0 71% 41% / 0.7;-- --action-config: 41 60% 49%;- --action-config-soft: 41 60% 49% / 0.16;- --action-config-hover: 41 60% 49% / 0.28;- --action-config-border: 41 60% 49% / 0.6;-- --action-secret: 24 25% 8%;- --action-secret-soft: 24 25% 8% / 0.10;- --action-secret-hover: 24 25% 8% / 0.20;- --action-secret-border: 24 25% 8% / 0.5;-- --action-tools: 100 29% 32%;- --action-tools-soft: 100 29% 32% / 0.14;- --action-tools-hover: 100 29% 32% / 0.26;- --action-tools-border: 100 29% 32% / 0.6;-- --tint-soft: 10%;- --tint-border: 30%;-}--/* Body washi texture */-:root[data-theme="edo"] body {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='w'><feTurbulence baseFrequency='0.85' numOctaves='1'/><feColorMatrix values='0 0 0 0 0.65 0 0 0 0 0.55 0 0 0 0 0.35 0 0 0 0.06 0'/></filter><rect width='300' height='300' filter='url(%23w)'/></svg>"),- var(--bg-app);-}--:root[data-theme="edo"] ::selection {- background: rgba(180, 30, 30, 0.30);- color: #1a1410;-}--/* Edo scrollbars — square corners (woodblock-print geometry) */-:root[data-theme="edo"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="edo"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="edo"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: 0;-}-:root[data-theme="edo"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─────────────── */--:root[data-theme="edo"] .toolbar,-:root[data-theme="edo"] .sidebar,-:root[data-theme="edo"] .palette,-:root[data-theme="edo"] .chat {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='w'><feTurbulence baseFrequency='0.95' numOctaves='1'/><feColorMatrix values='0 0 0 0 0.65 0 0 0 0 0.55 0 0 0 0 0.35 0 0 0 0.05 0'/></filter><rect width='300' height='300' filter='url(%23w)'/></svg>"),- var(--bg-panel);-}-:root[data-theme="edo"] .toolbar { border-bottom: 1px solid var(--sumi); }-:root[data-theme="edo"] .sidebar { border-right: 1px solid var(--sumi); }-:root[data-theme="edo"] .palette { border-left: 1px solid var(--sumi); }-:root[data-theme="edo"] .chat { border-top: 1px solid var(--sumi); }--/* Canvas — empty rice paper with one ink-wash mountain */-:root[data-theme="edo"] .canvas {- background:- radial-gradient(ellipse 600px 200px at 80% 90%, rgba(26,20,16,0.10), transparent 60%),- var(--bg-canvas);-}--/* Typography — light, generous, asymmetric */-:root[data-theme="edo"] body { font-family: var(--font-body); color: var(--fg-default); }-:root[data-theme="edo"] h1, :root[data-theme="edo"] h2, :root[data-theme="edo"] h3,-:root[data-theme="edo"] .v-display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; }--/* Square node — hanko seal + ink calligraphy */-:root[data-theme="edo"] .sq-node-box {- background: var(--bg-elevated);- border: 1px solid var(--sumi); border-radius: 0;- box-shadow: none;- color: var(--sumi);- position: relative;-}-:root[data-theme="edo"] .sq-node.selected .sq-node-box {- border: 2px solid hsl(var(--accent));- background: var(--bg-elevated);- /* Wave 29: outer halo so selection reads at any zoom level. */- box-shadow: 0 0 0 2px hsl(var(--accent) / 0.5), 0 4px 14px hsl(var(--accent) / 0.3);-}-:root[data-theme="edo"] .sq-node.selected .sq-node-box::before {- content: ''; position: absolute; top: 4px; right: 4px; width: 14px; height: 14px;- background: hsl(var(--accent)); transform: rotate(8deg);-}-:root[data-theme="edo"] .sq-node-pip { border-radius: 0; }-:root[data-theme="edo"] .sq-node-gear { background: hsl(var(--accent)); color: white; border-radius: 0; border: none; }-:root[data-theme="edo"] .sq-node-handle { border-radius: 0; }-:root[data-theme="edo"] .sq-node-label { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; }--/* Actions — minimal */-:root[data-theme="edo"] .action-btn {- border-radius: 0; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em; font-weight: 500;- border-width: 1px;-}-:root[data-theme="edo"] .action-run { background: transparent; color: var(--bamboo); border-color: var(--bamboo); }-:root[data-theme="edo"] .action-deploy { background: transparent; color: hsl(var(--accent)); border-color: hsl(var(--accent)); }-:root[data-theme="edo"] .action-save { background: hsl(var(--accent)); color: var(--fg-on-accent); border-color: hsl(var(--accent)); }--/* Cards / panels — minimal lines */-:root[data-theme="edo"] .wf-card,-:root[data-theme="edo"] .cat,-:root[data-theme="edo"] .comp,-:root[data-theme="edo"] .settings-section,-:root[data-theme="edo"] .cred-card {- border-radius: 0; background: var(--bg-elevated); border: 1px solid var(--border-default);-}-:root[data-theme="edo"] .wf-card.selected { border-left: 3px solid hsl(var(--accent)); }-:root[data-theme="edo"] .cat-tile { background: transparent; border: 1px solid var(--sumi); color: var(--sumi); border-radius: 0; }-:root[data-theme="edo"] .comp-ico { background: transparent; border: 1px solid var(--border-default); color: var(--sumi); border-radius: 0; }--/* Chat */-:root[data-theme="edo"] .chat-msg { border-radius: 0; }-:root[data-theme="edo"] .chat-msg-user { background: transparent; border: 1px solid hsl(var(--accent)); }-:root[data-theme="edo"] .chat-msg-bot { background: var(--bg-elevated); border-left: 3px solid var(--sumi); border-top: none; border-right: none; border-bottom: none; }--/* Status bar */-:root[data-theme="edo"] .statusbar {- background: var(--bg-panel); border-top: 1px solid var(--sumi);- font-family: var(--font-mono); color: var(--fg-muted);-}-:root[data-theme="edo"] .statusbar .pip { background: var(--bamboo); border-radius: 0; }--/* Modal */-:root[data-theme="edo"] .modal { background: var(--bg-elevated); border: 1px solid var(--sumi); border-radius: 0; }-:root[data-theme="edo"] .modal-head { border-bottom: 1px solid var(--sumi); }-:root[data-theme="edo"] .modal-title { font-family: var(--font-display); color: hsl(var(--accent)); }--/* CMDK */-:root[data-theme="edo"] .cmdk { background: var(--bg-elevated); border: 1px solid var(--sumi); border-radius: 0; }-:root[data-theme="edo"] .cmdk-item.active { background: var(--bg-active); border-left: 3px solid hsl(var(--accent)); }diff --git a/docs-internal/design-system/reference/themes/greek.css b/docs-internal/design-system/reference/themes/greek.cssdeleted file mode 100644index 2b5e0b62..00000000--- a/docs-internal/design-system/reference/themes/greek.css+++ /dev/null@@ -1,293 +0,0 @@-/* ============================================================================- * themes/greek.css — sun-bleached marble agora.- *- * Lapis blue + oxblood + gold meander on cracked Aegean marble.- * Ported from design_handoff_machinaos_themes/themes/greek.css.- *- * Decorative class-targeted rules (.toolbar, .sidebar, .canvas, .modal,- * .cmdk, etc.) activate once Wave 2 adds those structural classes to- * the React tree. Token block alone retints existing chrome via the- * shadcn HSL bridge.- * ============================================================================ */--:root[data-theme="greek"] {- /* ── New contract ─────────────────────────────────────────────────── */-- --bg-app: #ede5d0;- --bg-panel: #f5efde;- --bg-canvas: #e6dcc2;- --bg-elevated: #faf6e9;- --bg-input: #faf6e9;- --bg-hover: rgba(40, 75, 130, 0.08);- --bg-active: rgba(40, 75, 130, 0.16);- --bg-overlay: rgba(60, 50, 30, 0.55);-- --border-default: #b8a878;- --border-strong: #4a3818;- --border-focus: #284b82;- --ornament-frame: none;-- --fg-default: #2a2415;- --fg-muted: #6a5d3c;- --fg-faint: #998c64;- --fg-on-accent: #faf6e9;- --fg-on-success: #faf6e9;- --fg-on-danger: #faf6e9;- --fg-on-warning: #2a2415;-- --accent: #284b82;- --accent-hover: #3a5fa0;- --marble-vein: #d8c89a;- --oxblood: #7a1a18;- --olive: #6a7a32;- --gold: #c8a040;-- --font-display: 'Cinzel', 'Trajan Pro', serif;- --font-body: 'Cormorant Garamond', 'Times New Roman', serif;- --font-mono: 'Courier Prime', 'Courier New', monospace;- --type-scale-base: 14px;- --type-tracking-display: 0.18em;- --type-uppercase: uppercase;-- --radius-sm: 0px;- --radius-md: 0px;- --radius-lg: 2px;- --radius-pill: 0px;-- --dur-fast: 120ms;- --dur-default: 240ms;- --dur-slow: 460ms;- --ease-default: cubic-bezier(0.3, 0.7, 0.4, 1);- --ease-emphasis: cubic-bezier(0.6, -0.05, 0.3, 1.4);- --motion-style: smooth;- --sound-pack: marble;-- /* Wave 30: lapis-accent pulse — high-contrast against marble +- * matches the temple-floor selection halo. */- --node-pulse-color: hsl(var(--accent));-- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #ede5d0;- --scrollbar-thumb: #b8a878;-- /* ── Shadcn HSL bridge ────────────────────────────────────────────── */-- --background: 42 38% 87%;- --foreground: 38 33% 12%;- --card: 46 71% 95%;- --card-foreground: 38 33% 12%;- --popover: 46 71% 95%;- --popover-foreground: 38 33% 12%;-- --primary: 217 53% 33%; /* lapis */- --primary-foreground: 46 71% 95%;- --secondary: 44 60% 91%;- --secondary-foreground: 38 33% 12%;- --muted: 44 60% 91%;- --muted-foreground: 40 28% 33%;- --accent: 41 56% 52%; /* gold for shadcn accent (overrides new-contract --accent string above for HSL only — Tailwind utilities) */- --accent-foreground: 38 33% 12%;-- --destructive: 1 66% 29%; /* oxblood */- --destructive-foreground: 46 71% 95%;- --success: 71 41% 33%; /* olive */- --warning: 41 56% 52%; /* gold */- --info: 217 53% 33%; /* lapis */-- --border: 33 51% 19%; /* border-strong drives the visible borders */- --input: 40 33% 60%;- --ring: 217 53% 33%;-- /* ── Action role bridge ───────────────────────────────────────────── */-- --action-run: 71 41% 33%;- --action-run-soft: 71 41% 33% / 0.18;- --action-run-hover: 71 41% 33% / 0.30;- --action-run-border: 71 41% 33% / 0.7;-- --action-stop: 1 66% 29%;- --action-stop-soft: 1 66% 29% / 0.16;- --action-stop-hover: 1 66% 29% / 0.28;- --action-stop-border: 1 66% 29% / 0.7;-- --action-save: 41 56% 52%;- --action-save-soft: 41 56% 52% / 0.20;- --action-save-hover: 41 56% 52% / 0.35;- --action-save-border: 41 56% 52% / 0.7;-- --action-config: 41 56% 52%;- --action-config-soft: 41 56% 52% / 0.18;- --action-config-hover: 41 56% 52% / 0.30;- --action-config-border: 41 56% 52% / 0.6;-- --action-secret: 217 53% 33%;- --action-secret-soft: 217 53% 33% / 0.14;- --action-secret-hover: 217 53% 33% / 0.26;- --action-secret-border: 217 53% 33% / 0.7;-- --action-tools: 217 53% 33%;- --action-tools-soft: 217 53% 33% / 0.14;- --action-tools-hover: 217 53% 33% / 0.26;- --action-tools-border: 217 53% 33% / 0.7;-- --tint-soft: 14%;- --tint-border: 35%;-- /* Canvas backplane — temple-floor key meander (80x80 tile, faint ink) */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%234a3818' stroke-width='0.4' opacity='0.18'><path d='M0 40 H10 V20 H30 V60 H50 V20 H70 V40 H80'/></g></svg>");- --canvas-grid-opacity: 1;-}--/* ── Body marble texture ──────────────────────────────────────────────── */--:root[data-theme="greek"] body {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='m'><feTurbulence baseFrequency='0.012 0.04' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.61 0 0 0 0.18 0'/></filter><rect width='400' height='400' filter='url(%23m)'/></svg>"),- var(--bg-app);-}--/* ── Decorative rules (activate after Wave 2 wrappers land) ──────────── */--:root[data-theme="greek"] .toolbar,-:root[data-theme="greek"] .sidebar,-:root[data-theme="greek"] .palette,-:root[data-theme="greek"] .chat {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='m'><feTurbulence baseFrequency='0.014 0.05' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.78 0 0 0 0 0.61 0 0 0 0.14 0'/></filter><rect width='400' height='400' filter='url(%23m)'/></svg>"),- var(--bg-panel);-}--:root[data-theme="greek"] .canvas-host {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%234a3818' stroke-width='0.4' opacity='0.18'><path d='M0 40 H10 V20 H30 V60 H50 V20 H70 V40 H80'/></g></svg>"),- var(--bg-canvas);-}--:root[data-theme="greek"] .modal-frame {- border: 4px double var(--border-strong) !important;-}--::selection {}-:root[data-theme="greek"] ::selection {- background: rgba(40, 75, 130, 0.4);- color: #2a2415;-}--/* Greek scrollbars — sandstone thumb on linen (chiseled-marble feel) */-:root[data-theme="greek"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="greek"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="greek"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: var(--radius-sm, 0);-}-:root[data-theme="greek"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─────────────── */--:root[data-theme="greek"] .toolbar { border-bottom: 3px solid var(--border-strong); position: relative; }-:root[data-theme="greek"] .toolbar::after {- content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 5px;- background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='5' viewBox='0 0 40 5'><path d='M0 0 H40 V5 H0 Z M2 1 H6 V3 H4 V2 H8 V4 H2 Z M12 1 H16 V3 H14 V2 H18 V4 H12 Z M22 1 H26 V3 H24 V2 H28 V4 H22 Z M32 1 H36 V3 H34 V2 H38 V4 H32 Z' fill='%234a3818'/></svg>") repeat-x;- pointer-events: none;-}-:root[data-theme="greek"] .sidebar { border-right: 3px solid var(--border-strong); }-:root[data-theme="greek"] .palette { border-left: 3px solid var(--border-strong); }-:root[data-theme="greek"] .chat { border-top: 3px solid var(--border-strong); }--/* Typography */-:root[data-theme="greek"] body { font-family: var(--font-body); color: var(--fg-default); font-size: 14px; line-height: 1.5; }-:root[data-theme="greek"] h1, :root[data-theme="greek"] h2, :root[data-theme="greek"] h3,-:root[data-theme="greek"] .v-display {- font-family: var(--font-display);- letter-spacing: 0.18em;- text-transform: uppercase;- color: var(--fg-default);-}--/* Square node — temple stelae */-:root[data-theme="greek"] .sq-node-box {- background: linear-gradient(180deg, var(--bg-elevated), var(--marble-vein));- border: 2px solid var(--border-strong);- border-radius: 0;- box-shadow: 0 3px 0 var(--border-strong), inset 0 0 0 1px var(--gold);- color: hsl(var(--accent));-}-:root[data-theme="greek"] .sq-node.selected .sq-node-box {- border-color: hsl(var(--accent)); box-shadow: 0 0 0 3px hsl(var(--info) / 0.25), 0 3px 0 var(--border-strong), inset 0 0 0 1px var(--gold);-}-:root[data-theme="greek"] .sq-node-pip { border-radius: 0; box-shadow: 0 0 0 1px var(--border-strong); }-:root[data-theme="greek"] .sq-node-gear { background: var(--gold); color: var(--border-strong); border: 1px solid var(--border-strong); border-radius: 0; }-:root[data-theme="greek"] .sq-node-handle { border-radius: 0; }-:root[data-theme="greek"] .sq-node-handle.out { background: var(--oxblood); }-:root[data-theme="greek"] .sq-node-label {- font-family: var(--font-display); letter-spacing: 0.14em; font-size: 10px; color: var(--fg-default);- text-transform: uppercase;-}--/* Toolbar actions — stamped */-:root[data-theme="greek"] .action-btn {- border-radius: 0; font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px;- border-width: 2px;-}-:root[data-theme="greek"] .action-run { background: hsl(var(--success-soft)); color: hsl(var(--success)); border-color: hsl(var(--success)); }-:root[data-theme="greek"] .action-deploy { background: hsl(var(--info-soft)); color: hsl(var(--accent)); border-color: hsl(var(--accent)); }-:root[data-theme="greek"] .action-save { background: hsl(var(--warning-soft)); color: var(--oxblood); border-color: var(--gold); }--/* Panels */-:root[data-theme="greek"] .palette h2,-:root[data-theme="greek"] .sidebar-head h3 {- font-family: var(--font-display); letter-spacing: 0.20em; color: var(--fg-default);- border-bottom: 2px solid var(--border-strong); padding-bottom: 6px;-}--/* Workflow cards */-:root[data-theme="greek"] .wf-card { background: var(--bg-elevated); border: 2px solid var(--border-default); border-radius: 0; }-:root[data-theme="greek"] .wf-card.selected { border-color: hsl(var(--accent)); background: hsl(var(--info-soft)); }-:root[data-theme="greek"] .wf-card-name { font-family: var(--font-display); letter-spacing: 0.10em; }--/* Palette categories */-:root[data-theme="greek"] .cat { background: var(--bg-elevated); border: 2px solid var(--border-default); border-radius: 0; }-:root[data-theme="greek"] .cat-tile { background: var(--gold); border: 1px solid var(--border-strong); border-radius: 0; color: var(--border-strong); }-:root[data-theme="greek"] .cat-name { font-family: var(--font-display); letter-spacing: 0.16em; color: hsl(var(--accent)); }-:root[data-theme="greek"] .cat-count { background: var(--bg-active); border: 1px solid var(--border-default); border-radius: 0; }--/* Comp items */-:root[data-theme="greek"] .comp { background: var(--bg-panel); border: 1px solid var(--border-default); border-radius: 0; }-:root[data-theme="greek"] .comp:hover { border-color: hsl(var(--accent)); }-:root[data-theme="greek"] .comp-ico { background: var(--bg-elevated); border: 1px solid var(--border-default); color: hsl(var(--accent)); border-radius: 0; }-:root[data-theme="greek"] .comp-name { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.10em; }--/* Chat */-:root[data-theme="greek"] .chat-msg { border-radius: 0; }-:root[data-theme="greek"] .chat-msg-user { background: hsl(var(--info-soft)); border: 2px solid hsl(var(--accent)); }-:root[data-theme="greek"] .chat-msg-bot { background: var(--bg-elevated); border: 2px solid var(--border-default); }--/* Status bar */-:root[data-theme="greek"] .statusbar {- background: var(--bg-panel); border-top: 2px solid var(--border-strong);- font-family: var(--font-mono); color: var(--fg-muted); letter-spacing: 0.06em;-}-:root[data-theme="greek"] .statusbar .pip { background: hsl(var(--success)); border-radius: 0; }--/* Modal — temple inscription */-:root[data-theme="greek"] .modal {- background: var(--bg-elevated); border: 4px double var(--border-strong); border-radius: 0;- box-shadow: 0 30px 80px rgba(60, 50, 30, 0.4);-}-:root[data-theme="greek"] .modal-head { border-bottom: 3px solid var(--border-strong); }-:root[data-theme="greek"] .modal-title { font-family: var(--font-display); letter-spacing: 0.18em; color: hsl(var(--accent)); }--/* Command palette */-:root[data-theme="greek"] .cmdk { background: var(--bg-elevated); border: 4px double var(--border-strong); border-radius: 0; }-:root[data-theme="greek"] .cmdk input { font-family: var(--font-display); letter-spacing: 0.12em; }-:root[data-theme="greek"] .cmdk-item.active { background: hsl(var(--info-soft)); color: hsl(var(--accent)); }-:root[data-theme="greek"] .cmdk-item.active::before { content: '◆ '; color: var(--gold); }diff --git a/docs-internal/design-system/reference/themes/light.css b/docs-internal/design-system/reference/themes/light.cssdeleted file mode 100644index 74f09eb0..00000000--- a/docs-internal/design-system/reference/themes/light.css+++ /dev/null@@ -1,78 +0,0 @@-/* ============================================================================- * themes/light.css — light theme new-contract tokens.- *- * Mirrors the existing :root block in index.css (which still owns the- * shadcn HSL-triplet tokens). This file ADDS the new full-colour- * contract — surface / foreground / accent / typography / motion —- * scoped to `:root[data-theme="light"]` AND the unscoped `:root` so- * the contract is satisfied even when no data-theme attribute is set.- *- * Existing Tailwind utilities (bg-card, text-foreground, border-border,- * bg-action-save-soft, etc.) keep working unchanged because the shadcn- * tokens stay live in index.css.- *- * New utilities exposed by index.css `@theme inline`:- * bg-bg-app, bg-bg-panel, bg-bg-elevated, bg-bg-canvas, bg-bg-input,- * bg-bg-hover, bg-bg-active, bg-bg-overlay,- * text-fg-default, text-fg-muted, text-fg-faint, text-fg-on-accent,- * border-default, border-strong, border-focus,- * font-display, font-body (font-mono comes from index.css),- * tracking-display, rounded-pill.- * ============================================================================ */--:root,-:root[data-theme="light"] {- /* Surfaces (light mode — light grey palette consistent with existing values) */- --bg-app: #f5f7fa;- --bg-panel: #fafbfc;- --bg-canvas: #ffffff;- --bg-elevated: #ffffff;- --bg-input: #ffffff;- --bg-hover: rgba(0, 0, 0, 0.04);- --bg-active: rgba(0, 0, 0, 0.06);- --bg-overlay: rgba(0, 0, 0, 0.45);-- /* Borders */- --border-default: #d1d5db;- --border-strong: #9ca3af;- --border-focus: #3b82f6;- --ornament-frame: none;-- /* Foreground */- --fg-default: #1a1d21;- --fg-muted: #4b5563;- --fg-faint: #9ca3af;- --fg-on-accent: #ffffff;- --fg-on-success: #ffffff;- --fg-on-danger: #ffffff;- --fg-on-warning: #1a1d21;-- /* Type — system stack for light/dark; Renaissance + Cyber override */- --font-display: 'Geist Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;- --font-body: 'Geist Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;- --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;- --type-scale-base: 14px;- --type-tracking-display: 0;- --type-uppercase: none;-- /* Geometry — match existing shadcn radius (0.5rem / 8px) */- --radius-sm: 4px;- --radius-md: 6px;- --radius-lg: 8px;- --radius-pill: 999px;-- /* Motion — match base defaults (smooth) */- --dur-fast: 90ms;- --dur-default: 180ms;- --dur-slow: 320ms;- --ease-default: cubic-bezier(0.2, 0.7, 0.3, 1);- --ease-emphasis: cubic-bezier(0.6, -0.05, 0.3, 1.4);- --motion-style: smooth;- --sound-pack: parchment;-- /* Cursor + scrollbar */- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #eef1f5;- --scrollbar-thumb: #d1d5db;-}diff --git a/docs-internal/design-system/reference/themes/plague.css b/docs-internal/design-system/reference/themes/plague.cssdeleted file mode 100644index 92daad75..00000000--- a/docs-internal/design-system/reference/themes/plague.css+++ /dev/null@@ -1,253 +0,0 @@-/* ============================================================================- * themes/plague.css — quarantine notices nailed to bleached doors.- *- * Sickly green-yellow on cold blue, biohazard red, official red wax seals.- * Reads like the WHO in 1349. Ported from- * design_handoff_machinaos_themes/themes/plague.css.- * ============================================================================ */--:root[data-theme="plague"] {- --bg-app: #d8d4c0;- --bg-panel: #e4dfc8;- --bg-canvas: #c8c4b0;- --bg-elevated: #efeacf;- --bg-input: #efeacf;- --bg-hover: rgba(120, 60, 40, 0.10);- --bg-active: rgba(120, 60, 40, 0.20);- --bg-overlay: rgba(40, 30, 24, 0.6);-- --border-default: #a89478;- --border-strong: #2a1c14;- --border-focus: #783c28;- --ornament-frame: none;-- --fg-default: #2a1c14;- --fg-muted: #6a5440;- --fg-faint: #98886a;- --fg-on-accent: #efeacf;- --fg-on-success: #efeacf;- --fg-on-danger: #efeacf;- --fg-on-warning: #2a1c14;-- --bile: #98a838;- --crow: #1a1410;- --linen: #efeacf;- --dried-blood: #783c28;-- --font-display: 'UnifrakturCook', 'UnifrakturMaguntia', serif;- --font-body: 'EB Garamond', 'Cormorant Garamond', serif;- --font-mono: 'Special Elite', monospace;- --type-scale-base: 14px;- --type-tracking-display: 0.06em;- --type-uppercase: uppercase;-- --radius-sm: 0px;- --radius-md: 0px;- --radius-lg: 0px;- --radius-pill: 0px;-- --dur-fast: 100ms;- --dur-default: 220ms;- --dur-slow: 460ms;- --ease-default: cubic-bezier(0.4, 0, 0.6, 1);- --ease-emphasis: cubic-bezier(0.4, 0, 0.6, 1);- --motion-style: stiff;- --sound-pack: bell;-- /* Wave 30: bile-red pulse — matches the broadsheet warning palette- * + reads against parchment. */- --node-pulse-color: hsl(var(--destructive));-- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #d8d4c0;- --scrollbar-thumb: #2a1c14;-- /* Shadcn HSL bridge */- --background: 49 25% 80%;- --foreground: 24 35% 12%;- --card: 47 53% 88%;- --card-foreground: 24 35% 12%;- --popover: 47 53% 88%;- --popover-foreground: 24 35% 12%;-- --primary: 14 50% 31%; /* dried blood */- --primary-foreground: 47 53% 88%;- --secondary: 49 35% 84%;- --secondary-foreground: 24 35% 12%;- --muted: 49 35% 84%;- --muted-foreground: 28 26% 33%;- --accent: 65 49% 44%; /* bile */- --accent-foreground: 24 35% 12%;-- --destructive: 14 50% 31%;- --destructive-foreground: 47 53% 88%;- --success: 75 47% 30%;- --warning: 65 49% 44%;- --info: 213 17% 35%;-- --border: 24 35% 12%;- --input: 33 30% 56%;- --ring: 14 50% 31%;-- /* Action role bridge */- --action-run: 75 47% 30%;- --action-run-soft: 75 47% 30% / 0.20;- --action-run-hover: 75 47% 30% / 0.34;- --action-run-border: 75 47% 30% / 0.7;-- --action-stop: 14 50% 31%;- --action-stop-soft: 14 50% 31% / 0.20;- --action-stop-hover: 14 50% 31% / 0.34;- --action-stop-border: 14 50% 31% / 0.7;-- --action-save: 14 50% 31%;- --action-save-soft: 14 50% 31% / 0.18;- --action-save-hover: 14 50% 31% / 0.32;- --action-save-border: 14 50% 31% / 0.7;-- --action-config: 65 49% 44%;- --action-config-soft: 65 49% 44% / 0.20;- --action-config-hover: 65 49% 44% / 0.34;- --action-config-border: 65 49% 44% / 0.6;-- --action-secret: 213 17% 35%;- --action-secret-soft: 213 17% 35% / 0.16;- --action-secret-hover: 213 17% 35% / 0.30;- --action-secret-border: 213 17% 35% / 0.7;-- --action-tools: 14 50% 31%;- --action-tools-soft: 14 50% 31% / 0.16;- --action-tools-hover: 14 50% 31% / 0.30;- --action-tools-border: 14 50% 31% / 0.6;-- --tint-soft: 16%;- --tint-border: 40%;-- /* Canvas backplane — broadsheet red X marks on 240x240 tile */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><g stroke='%23783c28' stroke-width='1.6' fill='none' opacity='0.10' stroke-linecap='square'><path d='M40 40 L60 60 M60 40 L40 60'/><path d='M180 80 L200 100 M200 80 L180 100'/><path d='M80 180 L100 200 M100 180 L80 200'/></g></svg>");- --canvas-grid-opacity: 1;-}--/* Body — weathered parchment */-:root[data-theme="plague"] body {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='p'><feTurbulence baseFrequency='0.4' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.50 0 0 0 0 0.40 0 0 0 0 0.25 0 0 0 0.18 0'/></filter><rect width='300' height='300' filter='url(%23p)'/></svg>"),- var(--bg-app);-}--:root[data-theme="plague"] ::selection {- background: rgba(120, 60, 40, 0.45);- color: #efeacf;-}--/* Plague scrollbars — charred thumb on bone track */-:root[data-theme="plague"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="plague"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="plague"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: var(--radius-sm, 0);-}-:root[data-theme="plague"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─── */--:root[data-theme="plague"] .toolbar,-:root[data-theme="plague"] .sidebar,-:root[data-theme="plague"] .palette,-:root[data-theme="plague"] .chat { background: var(--bg-panel); }-:root[data-theme="plague"] .toolbar { border-bottom: 3px solid var(--crow); }-:root[data-theme="plague"] .sidebar { border-right: 3px solid var(--crow); }-:root[data-theme="plague"] .palette { border-left: 3px solid var(--crow); }-:root[data-theme="plague"] .chat { border-top: 3px solid var(--crow); }--/* CANVAS — broadsheet with red X marks */-:root[data-theme="plague"] .canvas {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><g stroke='%23783c28' stroke-width='1.6' fill='none' opacity='0.10' stroke-linecap='square'><path d='M40 40 L60 60 M60 40 L40 60'/><path d='M180 80 L200 100 M200 80 L180 100'/><path d='M80 180 L100 200 M100 180 L80 200'/></g></svg>"),- var(--bg-canvas);-}--/* TYPOGRAPHY — proclamation */-:root[data-theme="plague"] body { font-family: var(--font-body); color: var(--fg-default); }-:root[data-theme="plague"] h1, :root[data-theme="plague"] h2, :root[data-theme="plague"] h3,-:root[data-theme="plague"] .v-display {- font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: hsl(var(--accent));-}--/* SQUARE NODE — quarantine notice nailed up */-:root[data-theme="plague"] .sq-node-box {- background: var(--linen);- border: 2px solid var(--crow); border-radius: 0;- box-shadow: 3px 3px 0 var(--crow);- color: var(--crow);- position: relative;-}-:root[data-theme="plague"] .sq-node-box::after {- content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px;- background: var(--crow); transform: translateX(-50%);-}-/* Wave 29: outer halo so selection reads at any zoom level. */-:root[data-theme="plague"] .sq-node.selected .sq-node-box {- border-color: hsl(var(--accent));- background: hsl(var(--destructive) / 0.2);- box-shadow: 0 0 0 2px hsl(var(--accent)), 0 0 14px hsl(var(--destructive) / 0.4);-}-:root[data-theme="plague"] .sq-node-gear { background: hsl(var(--accent)); color: var(--linen); border: none; border-radius: 0; }-:root[data-theme="plague"] .sq-node-handle { border-radius: 0; }-:root[data-theme="plague"] .sq-node-handle.out { background: hsl(var(--accent)); }-:root[data-theme="plague"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.06em; color: hsl(var(--accent)); font-weight: 400; }--/* ACTIONS — official stamps */-:root[data-theme="plague"] .action-btn {- font-family: var(--font-display); font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;- border-radius: 0; border-width: 2px; font-weight: 400;-}-:root[data-theme="plague"] .action-run { background: hsl(var(--success-soft)); color: hsl(var(--success)); border-color: hsl(var(--success)); }-:root[data-theme="plague"] .action-deploy { background: hsl(var(--danger-soft)); color: hsl(var(--accent)); border-color: hsl(var(--accent)); }-:root[data-theme="plague"] .action-save { background: hsl(var(--warning-soft)); color: var(--bile); border-color: var(--bile); }--/* CARDS */-:root[data-theme="plague"] .wf-card,-:root[data-theme="plague"] .cat,-:root[data-theme="plague"] .comp,-:root[data-theme="plague"] .settings-section,-:root[data-theme="plague"] .cred-card {- background: var(--linen); border: 1px solid var(--crow); border-radius: 0; box-shadow: 2px 2px 0 var(--border-default);-}-:root[data-theme="plague"] .wf-card.selected { background: hsl(var(--danger-soft)); border: 2px solid hsl(var(--accent)); }-:root[data-theme="plague"] .cat-tile { background: var(--crow); color: var(--linen); border-radius: 0; }-:root[data-theme="plague"] .cat-name { font-family: var(--font-display); }-:root[data-theme="plague"] .comp-ico { background: var(--bg-panel); color: hsl(var(--accent)); border: 1px solid var(--crow); border-radius: 0; }--/* CHAT */-:root[data-theme="plague"] .chat-msg-user { background: hsl(var(--danger-soft)); border: 1px solid hsl(var(--accent)); border-radius: 0; }-:root[data-theme="plague"] .chat-msg-bot { background: var(--linen); border: 1px solid var(--crow); border-radius: 0; }--/* STATUS BAR */-:root[data-theme="plague"] .statusbar {- background: var(--crow); color: var(--linen); border-top: 3px solid hsl(var(--accent));- font-family: var(--font-mono); letter-spacing: 0.08em;-}-:root[data-theme="plague"] .statusbar .pip { background: var(--bile); border-radius: 0; }--/* MODAL */-:root[data-theme="plague"] .modal {- background: var(--linen); border: 4px double var(--crow); border-radius: 0;- box-shadow: 8px 8px 0 hsl(var(--accent));-}-:root[data-theme="plague"] .modal-head { border-bottom: 3px double var(--crow); }-:root[data-theme="plague"] .modal-title { font-family: var(--font-display); color: hsl(var(--accent)); }--/* CMDK */-:root[data-theme="plague"] .cmdk { background: var(--linen); border: 4px double var(--crow); border-radius: 0; }-:root[data-theme="plague"] .cmdk-item.active { background: hsl(var(--danger-soft)); color: hsl(var(--accent)); }-:root[data-theme="plague"] .cmdk-item.active::before { content: '† '; color: hsl(var(--accent)); }diff --git a/docs-internal/design-system/reference/themes/renaissance.css b/docs-internal/design-system/reference/themes/renaissance.cssdeleted file mode 100644index c095eb3d..00000000--- a/docs-internal/design-system/reference/themes/renaissance.css+++ /dev/null@@ -1,727 +0,0 @@-/* ============================================================================- * themes/renaissance.css — illuminated codex / Florentine workshop manuscript.- *- * Defines the full new-contract token block AND overrides the shadcn- * HSL-triplet tokens so existing Tailwind utilities (bg-card, text-muted-- * foreground, bg-action-save-soft, etc.) retint correctly without any- * component changes.- *- * Palette: vellum cream (#fbf3dc), ink brown (#5a3a14), gold leaf- * (#d4a030), crimson seal (#8a1410). HSL triplets are conversions of- * the same hex values.- *- * Decorative layers (vellum noise, fleur-de-lis, marginalia, gilded- * corner ornaments) are deferred to Phase 3 fan-out — they target- * `.app-frame`, `.canvas`, `.sidebar` etc. which don't exist as- * dedicated React component classes today.- *- * Source: design_handoff_machinaos_themes/themes/renaissance.css.- * ============================================================================ */--:root[data-theme="renaissance"] {- /* ── New contract — full colour values ────────────────────────────── */-- /* Surfaces */- --bg-app: #f3e8c8;- --bg-panel: #ead09a;- --bg-canvas: #e8d4a0;- --bg-elevated: #fbf3dc;- --bg-input: #fbf3dc;- --bg-hover: rgba(138, 94, 28, 0.10);- --bg-active: rgba(212, 160, 48, 0.20);- --bg-overlay: rgba(58, 32, 8, 0.55);-- /* Borders */- --border-default: #8a5e1c;- --border-strong: #5a3a14;- --border-focus: #4a8230;- --ornament-frame: inset 0 0 0 2px #8a5e1c, inset 0 0 0 6px #d4a030, inset 0 0 0 8px #5a3a14;-- /* Foreground */- --fg-default: #3a2008;- --fg-muted: #6a4a1c;- --fg-faint: #8a6a3c;- --fg-on-accent: #fbf3dc;- --fg-on-success: #fbf3dc;- --fg-on-danger: #fbf3dc;- --fg-on-warning: #3a2008;-- /* Theme-specific accents (used by decorative layers; safe to read in- * components migrated to the new contract) */- --gold: #d4a030;- --gold-bright: #f0c850;- --crimson: #8a1410;- /* Wave 30.2: ultramarine ("lapis lazuli") — historically the most- * prestigious Renaissance pigment, used in illuminated manuscripts +- * Marian iconography. Hue 230° sits ~180° opposite the warm vellum- * canvas (#e8d4a0, hue 45°) so it reads luminously against cream. */- --lapis: #2548c8;- --lapis-bright: #4a72e8;-- /* Type — Cinzel display + Cormorant body + IM Fell English mono */- --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;- --font-body: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;- --font-mono: 'IM Fell English', 'Courier Prime', monospace;- --type-scale-base: 15px;- --type-tracking-display: 0.10em;- --type-uppercase: uppercase;-- /* Geometry — slim radii (parchment + wax-pressed feel) */- --radius-sm: 2px;- --radius-md: 3px;- --radius-lg: 4px;- --radius-pill: 12px;-- /* Motion — slow, weighted */- --ease-default: cubic-bezier(0.4, 0, 0.2, 1);- --ease-emphasis: cubic-bezier(0.7, -0.1, 0.3, 1.2);- --dur-fast: 140ms;- --dur-default: 280ms;- --dur-slow: 520ms;- --motion-style: organic;- --sound-pack: parchment;-- /* Wave 30.2: ultramarine pulse — maximum hue contrast (180° opposite)- * against warm vellum. Earlier gold + crimson attempts were either- * too similar to the cream background (gold) or too dark to read as- * luminous glow (crimson). Lapis ultramarine sits cool against warm- * vellum and reads as a Marian-blue halo, the canonical "this thing- * is sacred / important" signal in Renaissance iconography. */- --node-pulse-color: var(--lapis-bright);-- /* Cursor — quill pen with gold-leaf nib (upstream design handoff) */- --cursor-default: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M3 25 L10 17 L13 20 L6 27 Z' fill='%235a3a14'/><path d='M10 17 L20 5 L24 9 L13 20 Z' fill='%23d4a030' stroke='%235a3a14' stroke-width='1'/><path d='M14 9 L18 13 M12 11 L16 15 M10 13 L14 17' stroke='%235a3a14' stroke-width='0.5' fill='none'/></svg>") 3 25, auto;- --cursor-pointer: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><path d='M5 5 L20 12 L13 14 L11 22 Z' fill='%23d4a030' stroke='%235a3a14' stroke-width='1.5'/></svg>") 5 5, pointer;-- /* Canvas backplane — faint cartography ornament (fleur-de-lis on- * 80x80 tile, light gold ink) */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%238a5e1c' stroke-width='0.4' opacity='0.35'><path d='M40 22 Q35 32, 30 32 Q26 32, 28 28 Q32 26, 40 28 Q48 26, 52 28 Q54 32, 50 32 Q45 32, 40 22 Z'/><path d='M40 28 L40 40 M36 36 L44 36'/><circle cx='40' cy='42' r='2'/></g></svg>");- --canvas-grid-opacity: 1;-- --scrollbar-track: #e8d09a;- --scrollbar-thumb: #8a5e1c;-- /* ── Shadcn HSL-triplet bridge ─────────────────────────────────────- * Same colours as the new contract above, expressed as HSL triplets- * so Tailwind utilities like bg-card/50 (alpha composition) keep- * working. */-- --background: 40 65% 87%; /* #f3e8c8 */- --foreground: 28 76% 13%; /* #3a2008 */- --card: 41 79% 92%; /* #fbf3dc */- --card-foreground: 28 76% 13%;- --popover: 41 79% 92%;- --popover-foreground: 28 76% 13%;-- --primary: 32 53% 48%; /* #b8893c gold accent */- --primary-foreground: 41 79% 92%;- --secondary: 38 65% 76%; /* #ead09a panel */- --secondary-foreground: 28 76% 13%;- --muted: 38 65% 76%;- --muted-foreground: 33 60% 26%; /* #6a4a1c */- --accent: 41 65% 51%; /* #d4a030 gold leaf */- --accent-foreground: 28 76% 13%;-- --destructive: 2 79% 30%; /* #8a1410 crimson */- --destructive-foreground: 41 79% 92%;- --success: 78 63% 25%; /* #4a6818 olive */- --warning: 35 71% 44%; /* #c08020 amber */- --info: 211 56% 23%; /* #1a3a5a navy */-- --border: 33 66% 33%; /* #8a5e1c */- --input: 33 66% 33%;- --ring: 41 65% 51%; /* gold focus */-- /* Action role tokens — re-derived from Renaissance semantic palette.- * Keep the soft / hover / border alpha pattern so ActionButton still- * works without any code change. */- --action-run: 78 63% 25%; /* olive (success) */- --action-run-soft: 78 63% 25% / 0.18;- --action-run-hover: 78 63% 25% / 0.30;- --action-run-border: 78 63% 25% / 0.6;-- --action-stop: 2 79% 30%; /* crimson (destructive) */- --action-stop-soft: 2 79% 30% / 0.15;- --action-stop-hover: 2 79% 30% / 0.25;- --action-stop-border: 2 79% 30% / 0.6;-- --action-save: 41 65% 51%; /* gold leaf (primary action) */- --action-save-soft: 41 65% 51% / 0.20;- --action-save-hover: 41 65% 51% / 0.35;- --action-save-border: 32 53% 48% / 0.7;-- --action-config: 35 71% 44%; /* amber (warning) */- --action-config-soft: 35 71% 44% / 0.18;- --action-config-hover: 35 71% 44% / 0.30;- --action-config-border: 35 71% 44% / 0.6;-- --action-secret: 211 56% 23%; /* navy (info / secret) */- --action-secret-soft: 211 56% 23% / 0.15;- --action-secret-hover: 211 56% 23% / 0.25;- --action-secret-border: 211 56% 23% / 0.6;-- --action-tools: 32 53% 48%; /* gold accent */- --action-tools-soft: 32 53% 48% / 0.18;- --action-tools-hover: 32 53% 48% / 0.30;- --action-tools-border: 32 53% 48% / 0.6;-- /* Tint utilities — slightly stronger on parchment so brand-coloured- * surfaces (provider icons, skill colours) stay legible. */- --tint-soft: 14%;- --tint-border: 35%;-}--/* ── Body parchment background ─────────────────────────────────────────- * The handoff layers radial gradients + an SVG noise texture on body.- * Safe to apply since `body` is theme-agnostic. */--:root[data-theme="renaissance"] body {- background:- radial-gradient(ellipse at 15% 25%, rgba(138, 70, 20, 0.12), transparent 35%),- radial-gradient(ellipse at 85% 75%, rgba(180, 100, 30, 0.10), transparent 40%),- radial-gradient(circle at 70% 20%, rgba(90, 50, 18, 0.08), transparent 25%),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='3' seed='5'/><feColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.23 0 0 0 0 0.05 0 0 0 0.10 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>"),- var(--bg-app);-}--/* ::selection — gold leaf highlight */-:root[data-theme="renaissance"] ::selection {- background: rgba(212, 160, 48, 0.5);- color: #3a2008;-}--/* Gilded scrollbars — gold thumb on cream track with carved inset rule */-:root[data-theme="renaissance"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="renaissance"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="renaissance"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: var(--radius-sm, 2px);- box-shadow: inset 0 0 0 1px var(--border-strong);-}-:root[data-theme="renaissance"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─── */--/* Floating illuminated initial as ambient ornament */-@keyframes ren-flicker {- 0%, 100% { opacity: 0.5; }- 50% { opacity: 0.8; }-}--/* ─── ILLUMINATED FRAME with gilded corners ─── */-:root[data-theme="renaissance"] .app-frame {- box-shadow: var(--ornament-frame), 0 0 60px rgba(90, 50, 18, 0.3) inset;- position: relative;-}-:root[data-theme="renaissance"] .app-frame::before,-:root[data-theme="renaissance"] .app-frame::after {- content: ''; position: absolute; width: 36px; height: 36px;- background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'><path d='M2 2 L34 2 L34 6 L6 6 L6 34 L2 34 Z' fill='%23d4a030' stroke='%235a3a14' stroke-width='1'/><circle cx='6' cy='6' r='3' fill='%238a1410' stroke='%235a3a14' stroke-width='0.8'/><path d='M10 2 L14 2 M18 2 L22 2 M26 2 L30 2 M2 10 L2 14 M2 18 L2 22 M2 26 L2 30' stroke='%235a3a14' stroke-width='0.6'/></svg>") no-repeat;- pointer-events: none; z-index: 100;-}-:root[data-theme="renaissance"] .app-frame::before { top: 0; left: 0; }-:root[data-theme="renaissance"] .app-frame::after { top: 0; right: 0; transform: scaleX(-1); }--/* ─── PANELS get a vellum lining ─── */-:root[data-theme="renaissance"] .toolbar,-:root[data-theme="renaissance"] .sidebar,-:root[data-theme="renaissance"] .palette,-:root[data-theme="renaissance"] .chat {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.23 0 0 0 0 0.05 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),- var(--bg-panel);-}-:root[data-theme="renaissance"] .toolbar { border-bottom: 2px double var(--border-strong); }-:root[data-theme="renaissance"] .sidebar { border-right: 2px double var(--border-strong); }-:root[data-theme="renaissance"] .palette { border-left: 2px double var(--border-strong); }-:root[data-theme="renaissance"] .chat { border-top: 2px double var(--border-strong); }--/* ─── CANVAS — workshop floor with fleur-de-lis pattern + vignette ─── */-:root[data-theme="renaissance"] .canvas {- background:- radial-gradient(ellipse at center, transparent 30%, rgba(90, 50, 18, 0.25) 100%),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%238a5e1c' stroke-width='0.4' opacity='0.35'><path d='M40 22 Q35 32, 30 32 Q26 32, 28 28 Q32 26, 40 28 Q48 26, 52 28 Q54 32, 50 32 Q45 32, 40 22 Z'/><path d='M40 28 L40 40 M36 36 L44 36'/><circle cx='40' cy='42' r='2'/></g></svg>"),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.95' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.23 0 0 0 0 0.05 0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),- var(--bg-canvas);-}--/* Marginalia — handwritten marginal note in canvas */-:root[data-theme="renaissance"] .canvas::before {- content: '" Ars longa, vita brevis "';- position: absolute; bottom: 12px; right: 16px;- font-family: var(--font-mono);- font-style: italic;- font-size: 13px;- color: var(--border-default);- opacity: 0.7;- transform: rotate(-2deg);- pointer-events: none;- z-index: 0;-}-:root[data-theme="renaissance"] .canvas::after {- content: ''; position: absolute; top: 12px; left: 16px;- width: 64px; height: 64px;- background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='none' stroke='%238a5e1c' stroke-width='1' opacity='0.5'><circle cx='32' cy='32' r='28'/><circle cx='32' cy='32' r='22'/><path d='M32 4 L32 60 M4 32 L60 32 M11 11 L53 53 M53 11 L11 53'/><circle cx='32' cy='32' r='3' fill='%23d4a030'/></g></svg>") no-repeat center / contain;- pointer-events: none;- z-index: 0;-}-/* Make sure nodes/edges sit above marginalia */-:root[data-theme="renaissance"] .canvas .node,-:root[data-theme="renaissance"] .canvas .edge { z-index: 2; }--/* Floating illuminated initial as ambient ornament */-:root[data-theme="renaissance"] .canvas .ornament {- position: absolute;- font-family: var(--font-display);- color: var(--gold);- text-shadow: 2px 2px 0 var(--border-strong);- font-size: 120px;- font-weight: 700;- opacity: 0.12;- pointer-events: none;- animation: ren-flicker 6s ease-in-out infinite;-}--/* ─── BUTTONS as pressed gold foil ─── */-:root[data-theme="renaissance"] .btn {- background: linear-gradient(180deg, #fbf3dc 0%, #e8c478 100%);- border: 1px solid var(--border-default);- color: var(--fg-default);- font-family: var(--font-display);- letter-spacing: 0.10em;- text-transform: uppercase;- font-size: 11px; font-weight: 600;- padding: 7px 14px;- box-shadow: 0 1px 0 #fbf3dc inset, 0 -1px 0 rgba(90, 50, 18, 0.2) inset, 0 2px 0 var(--border-strong);- transition: transform var(--dur-fast), box-shadow var(--dur-fast);-}-:root[data-theme="renaissance"] .btn:hover {- background: linear-gradient(180deg, var(--gold-bright), var(--gold));- box-shadow: 0 1px 0 #fff inset, 0 3px 0 var(--border-strong);-}-:root[data-theme="renaissance"] .btn:active {- transform: translateY(2px);- box-shadow: 0 1px 0 #fff inset, 0 0 0 var(--border-strong);-}--/* ─── INPUTS — ruled-line paper ─── */-:root[data-theme="renaissance"] .input {- background:- repeating-linear-gradient(transparent, transparent 21px, rgba(138, 94, 28, 0.18) 21px, rgba(138, 94, 28, 0.18) 22px),- var(--bg-input);- border: 1px solid var(--border-default);- border-radius: var(--radius-sm);- font-family: var(--font-body);- font-size: 14px;- color: var(--fg-default);- padding: 6px 10px;-}-:root[data-theme="renaissance"] .input:focus {- outline: none; background: #fff;- box-shadow: 0 0 0 1px var(--gold), 0 0 0 2px var(--border-strong);-}--/* ─── ROWS — ink-spread on hover ─── */-:root[data-theme="renaissance"] .row {- font-family: var(--font-body);- font-size: 15px;- color: var(--fg-default);- padding: 6px 10px;- position: relative;- background-image: linear-gradient(90deg, var(--bg-hover), var(--bg-hover));- background-size: 0% 100%;- background-repeat: no-repeat;- transition: background-size var(--dur-default) var(--ease-default), color var(--dur-fast);-}-:root[data-theme="renaissance"] .row:hover {- background-size: 100% 100%;- color: var(--crimson);-}-:root[data-theme="renaissance"] .row:hover::before {- content: '✦'; position: absolute; left: -2px; top: 50%; transform: translateY(-50%);- color: var(--gold); font-size: 10px;-}--/* ─── NODES as illuminated cards with red wax ─── */-:root[data-theme="renaissance"] .node {- background: var(--bg-elevated);- border: 1.5px solid var(--border-strong);- border-radius: var(--radius-md);- font-family: var(--font-display);- font-size: 11px;- letter-spacing: 0.08em;- text-transform: uppercase;- color: var(--fg-default);- padding: 10px 14px;- box-shadow:- 0 0 0 1px var(--gold) inset,- 0 0 0 3px var(--bg-elevated) inset,- 0 0 0 4px var(--border-strong) inset,- 0 4px 0 var(--border-strong),- 0 6px 12px rgba(58, 32, 8, 0.25);- position: relative;- transition: transform var(--dur-default) var(--ease-emphasis);-}-:root[data-theme="renaissance"] .node:hover {- transform: translateY(-2px);- box-shadow:- 0 0 0 1px var(--gold-bright) inset,- 0 0 0 3px var(--bg-elevated) inset,- 0 0 0 4px var(--border-strong) inset,- 0 6px 0 var(--border-strong),- 0 10px 20px rgba(58, 32, 8, 0.35);-}-/* Wax seal corner */-:root[data-theme="renaissance"] .node::after {- content: ''; position: absolute; top: -6px; right: -6px;- width: 16px; height: 16px;- background: radial-gradient(circle at 35% 30%, #c4202a, #5a0a08);- border-radius: 50%;- box-shadow: 0 1px 2px rgba(0,0,0,0.4);-}--/* ─── SQUARE NODES — guild emblems ─── */-:root[data-theme="renaissance"] .sq-node-box {- background: linear-gradient(180deg, var(--bg-elevated), #d4b078);- border: 2px solid var(--border-strong);- border-radius: 4px;- box-shadow: 0 3px 0 var(--border-strong), inset 0 0 0 1px var(--gold);- color: var(--crimson);-}-:root[data-theme="renaissance"] .sq-node.selected .sq-node-box {- border-color: var(--gold);- box-shadow: 0 0 0 3px rgba(212, 160, 48, 0.5), 0 3px 0 var(--border-strong), inset 0 0 0 1px var(--gold);-}--/* Wave 29: Renaissance executing nodes flicker like candlelight using- * ren-flicker (opacity pulse) — NOT the digital node-pulse. The gold- * border stays steady; only the ambient glow shimmers. Higher specificity- * than base.css's generic rule, so this wins. */-/* Wave 30.2: dedicated executing-pulse keyframe that animates- * BOX-SHADOW only (the original `ren-flicker` opacity-fade- * washed the whole node). Pulses ultramarine (lapis lazuli)- * intensity at high opacity for visibility against vellum.- * Lapis is 180° opposite the warm cream canvas, so even at the- * far halo (40% opacity) it reads as a luminous Marian halo- * rather than blending into the background. Smooth ease-in-out- * preserves the candleflame-flicker quality. */-@keyframes ren-pulse-exec {- 0%, 100% {- box-shadow:- 0 0 0 3px rgba(74, 114, 232, 0.85),- 0 0 36px 8px rgba(74, 114, 232, 0.65),- 0 0 72px 18px rgba(37, 72, 200, 0.40);- }- 50% {- box-shadow:- 0 0 0 4px rgba(74, 114, 232, 1),- 0 0 52px 12px rgba(74, 114, 232, 0.85),- 0 0 96px 28px rgba(37, 72, 200, 0.55);- }-}--:root[data-theme="renaissance"] .sq-node[data-executing] .sq-node-box,-:root[data-theme="renaissance"] .react-flow__node.executing .sq-node-box,-:root[data-theme="renaissance"] .react-flow__node.executing .node {- animation: ren-pulse-exec 2.0s ease-in-out infinite;- border-color: var(--lapis-bright);-}-:root[data-theme="renaissance"] .sq-node-pip {- border: 1px solid var(--border-strong);- box-shadow: 0 0 4px currentColor;-}-:root[data-theme="renaissance"] .sq-node-gear {- background: var(--gold);- color: var(--border-strong);- border: 1px solid var(--border-strong);- font-size: 10px;-}-:root[data-theme="renaissance"] .sq-node-handle.out { background: var(--crimson); }-:root[data-theme="renaissance"] .sq-node-label {- color: var(--fg-default);- letter-spacing: 0.08em;- font-weight: 600;-}--/* ─── CATEGORY (palette) — illuminated section ─── */-:root[data-theme="renaissance"] .cat {- background: var(--bg-elevated);- border: 1px solid var(--border-default);- border-radius: 2px;-}-:root[data-theme="renaissance"] .cat-head {- border-bottom: 1px solid var(--border-default);- background: linear-gradient(180deg, transparent, rgba(212, 160, 48, 0.08));-}-:root[data-theme="renaissance"] .cat-tile {- background: var(--gold);- border: 1px solid var(--border-strong);- color: var(--border-strong);-}-:root[data-theme="renaissance"] .cat-name {- font-family: var(--font-display);- letter-spacing: 0.10em;- text-transform: uppercase;- color: var(--crimson);-}-:root[data-theme="renaissance"] .cat-count {- background: var(--bg-active);- color: var(--fg-muted);- border: 1px solid var(--border-default);-}--/* ─── COMP ITEMS — entry cards ─── */-:root[data-theme="renaissance"] .comp {- background: var(--bg-panel);- border: 1px solid var(--border-default);- border-radius: 2px;-}-:root[data-theme="renaissance"] .comp:hover {- background: var(--bg-hover);- border-color: var(--gold);-}-:root[data-theme="renaissance"] .comp-ico {- background: var(--bg-elevated);- border: 1px solid var(--border-default);- color: var(--crimson);-}-:root[data-theme="renaissance"] .comp-name {- font-family: var(--font-display);- font-weight: 600;- letter-spacing: 0.04em;-}-:root[data-theme="renaissance"] .comp-desc {- font-style: italic;- color: var(--fg-muted);-}--/* ─── MENU POP — parchment dropdown ─── */-:root[data-theme="renaissance"] .menu-pop {- background: var(--bg-elevated);- border: 2px solid var(--border-strong);- box-shadow: inset 0 0 0 1px var(--gold), 0 8px 24px rgba(58,32,8,0.4);-}-:root[data-theme="renaissance"] .menu-pop-item {- font-family: var(--font-body);- font-size: 13px;-}-:root[data-theme="renaissance"] .menu-pop-item:hover {- background: var(--bg-hover);- color: var(--crimson);-}--/* ─── SETTINGS SECTIONS ─── */-:root[data-theme="renaissance"] .settings-section {- background: var(--bg-elevated);- border: 1px solid var(--border-default);-}-:root[data-theme="renaissance"] .settings-section h3 {- color: var(--crimson);- font-family: var(--font-display);- border-bottom: 1px solid var(--gold);- padding-bottom: 8px;- letter-spacing: 0.06em;-}-:root[data-theme="renaissance"] .settings-summary {- background: var(--bg-panel);- border: 1px dashed var(--border-default);- font-family: var(--font-mono);- font-style: italic;-}--/* ─── CRED CARDS ─── */-:root[data-theme="renaissance"] .cred-card {- background: var(--bg-elevated);- border: 1px solid var(--border-default);- border-radius: 2px;-}-:root[data-theme="renaissance"] .cred-card-head {- background: linear-gradient(180deg, transparent, rgba(212, 160, 48, 0.10));- border-bottom: 1px solid var(--border-default);-}-:root[data-theme="renaissance"] .cred-card .name {- font-family: var(--font-display);- letter-spacing: 0.08em;- text-transform: uppercase;- font-size: 12px;-}-:root[data-theme="renaissance"] .cred-tag {- font-family: var(--font-display);- letter-spacing: 0.08em;- font-size: 9px;-}-:root[data-theme="renaissance"] .cred-card-desc { font-style: italic; }--/* Credential rows — sealed entries */-:root[data-theme="renaissance"] .cred-row {- background: var(--bg-elevated);- border: 1px solid var(--border-default);- position: relative;-}-:root[data-theme="renaissance"] .cred-row::before {- content: '✦'; color: var(--gold); margin-right: 4px;-}-:root[data-theme="renaissance"] .cred-row .name {- font-family: var(--font-display);- font-size: 12px;- letter-spacing: 0.10em;-}-:root[data-theme="renaissance"] .cred-row .badge {- font-family: var(--font-display);- letter-spacing: 0.10em;- font-size: 9px;- padding: 3px 8px;-}--/* ─── PARAMETER PANEL COLS ─── */-:root[data-theme="renaissance"] .param-col {- background: var(--bg-elevated);- border-right: 2px double var(--border-strong);-}-:root[data-theme="renaissance"] .param-col-head {- background: linear-gradient(180deg, transparent, rgba(212, 160, 48, 0.10));- border-bottom: 1px solid var(--gold);- font-family: var(--font-display);- color: var(--crimson);- letter-spacing: 0.10em;- text-transform: uppercase;-}-:root[data-theme="renaissance"] .json-block {- background: var(--bg-panel);- border: 1px solid var(--border-default);- font-family: var(--font-mono);- color: var(--fg-default);-}-:root[data-theme="renaissance"] .json-key { color: var(--crimson); font-style: italic; }-:root[data-theme="renaissance"] .json-str { color: hsl(var(--success)); }-:root[data-theme="renaissance"] .json-num { color: var(--gold-bright); }--/* ─── CHAT TABS ─── */-:root[data-theme="renaissance"] .chat-tab {- font-family: var(--font-display);- letter-spacing: 0.08em;- text-transform: uppercase;- font-size: 10px;-}-:root[data-theme="renaissance"] .chat-tab.active {- background: var(--gold);- color: var(--border-strong);-}--/* ─── CHAT MESSAGES — letter-style ─── */-:root[data-theme="renaissance"] .chat-msg {- font-family: var(--font-body);- font-size: 14px;- border-radius: var(--radius-sm);-}-:root[data-theme="renaissance"] .chat-msg-user {- background: linear-gradient(180deg, var(--gold-bright), var(--gold));- color: var(--fg-default);- border: 1px solid var(--border-strong);-}-:root[data-theme="renaissance"] .chat-msg-bot {- background: var(--bg-elevated);- border: 1px solid var(--border-default);- position: relative;-}-:root[data-theme="renaissance"] .chat-msg-bot::before {- content: '✦'; color: var(--gold); margin-right: 6px;-}--/* ─── THEME SWITCHER chrome ─── */-:root[data-theme="renaissance"] .theme-switcher {- background: linear-gradient(180deg, var(--bg-elevated), #e8c478);- border: 1.5px solid var(--border-strong);- box-shadow: 0 0 0 1px var(--gold) inset, 0 6px 16px rgba(58, 32, 8, 0.4);-}--/* ─── EMPTY STATE drop cap ─── */-:root[data-theme="renaissance"] .empty-state .glyph {- font-family: var(--font-display);- font-size: 96px;- color: var(--gold);- text-shadow: 3px 3px 0 var(--border-strong);- font-weight: 700;-}--/* ─── STATUS BAR — illuminated footer rule ─── */-:root[data-theme="renaissance"] .statusbar {- background: linear-gradient(180deg, var(--bg-panel), #d4b078);- border-top: 2px double var(--border-strong);- font-family: var(--font-mono);- color: var(--fg-muted);- font-style: italic;-}-:root[data-theme="renaissance"] .statusbar .pip {- background: hsl(var(--success));- box-shadow: 0 0 6px hsl(var(--success)), 0 0 0 1px var(--border-strong);-}--/* ─── MODAL — illuminated codex page ─── */-:root[data-theme="renaissance"] .modal {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.23 0 0 0 0 0.05 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),- var(--bg-elevated);- border: 2px solid var(--border-strong);- box-shadow:- inset 0 0 0 1px var(--gold),- inset 0 0 0 5px var(--bg-elevated),- inset 0 0 0 6px var(--gold),- 0 30px 80px rgba(58, 32, 8, 0.6);- padding: 8px;-}-:root[data-theme="renaissance"] .modal-head {- border-bottom: 2px double var(--border-strong);- padding: 16px 20px 14px;-}-:root[data-theme="renaissance"] .modal-title {- color: var(--fg-default);- font-family: var(--font-display);-}-:root[data-theme="renaissance"] .modal-foot {- border-top: 2px double var(--border-strong);-}-:root[data-theme="renaissance"] .field label {- color: #8a5e1c;-}--/* ─── COMMAND PALETTE — open scroll ─── */-:root[data-theme="renaissance"] .cmdk {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.23 0 0 0 0 0.05 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"),- var(--bg-elevated);- border: 2px solid var(--border-strong);- box-shadow: inset 0 0 0 1px var(--gold), 0 30px 60px rgba(58, 32, 8, 0.5);-}-:root[data-theme="renaissance"] .cmdk input {- font-family: var(--font-display);- font-size: 14px;- letter-spacing: 0.06em;- border-bottom: 2px double var(--border-strong);- background: transparent;- color: var(--fg-default);-}-:root[data-theme="renaissance"] .cmdk-item {- font-family: var(--font-body);- font-size: 14px;-}-:root[data-theme="renaissance"] .cmdk-item.active {- background: linear-gradient(90deg, transparent, var(--bg-hover), transparent);- color: var(--crimson);-}-:root[data-theme="renaissance"] .cmdk-item.active::before {- content: '✦'; color: var(--gold); margin-right: 6px;-}-:root[data-theme="renaissance"] .cmdk-item kbd {- background: var(--bg-active);- border: 1px solid var(--border-default);- font-family: var(--font-mono);-}diff --git a/docs-internal/design-system/reference/themes/rot.css b/docs-internal/design-system/reference/themes/rot.cssdeleted file mode 100644index 5d9e335d..00000000--- a/docs-internal/design-system/reference/themes/rot.css+++ /dev/null@@ -1,249 +0,0 @@-/* ============================================================================- * themes/rot.css — moss-overgrown crypt lit by guttering candles.- *- * Bone whites, cold green, candleflame amber on charcoal. Reads like a- * grimoire. Ported from design_handoff_machinaos_themes/themes/rot.css.- * ============================================================================ */--:root[data-theme="rot"] {- --bg-app: #14181a;- --bg-panel: #1c2226;- --bg-canvas: #0a0e10;- --bg-elevated: #242c30;- --bg-input: #0a0e10;- --bg-hover: rgba(120, 200, 120, 0.08);- --bg-active: rgba(120, 200, 120, 0.18);- --bg-overlay: rgba(0, 4, 6, 0.85);-- --border-default: #2a3a30;- --border-strong: #4a6a4a;- --border-focus: #78c878;- --ornament-frame: none;-- --fg-default: #c8d8c0;- --fg-muted: #788878;- --fg-faint: #485848;- --fg-on-accent: #0a0e10;- --fg-on-success: #0a0e10;- --fg-on-danger: #c8d8c0;- --fg-on-warning: #0a0e10;-- --bone: #d8d0b8;- --candle: #e8a838;- --crypt: #4a3838;- --moss: #78c878;-- --font-display: 'Pirata One', 'UnifrakturCook', serif;- --font-body: 'EB Garamond', 'Cormorant Garamond', serif;- --font-mono: 'JetBrains Mono', monospace;- --type-scale-base: 14px;- --type-tracking-display: 0.04em;- --type-uppercase: none;-- --radius-sm: 1px;- --radius-md: 2px;- --radius-lg: 4px;- --radius-pill: 999px;-- --dur-fast: 140ms;- --dur-default: 320ms;- --dur-slow: 680ms;- --ease-default: cubic-bezier(0.4, 0, 0.6, 1);- --ease-emphasis: cubic-bezier(0.4, 0, 0.6, 1);- --motion-style: drift;- --sound-pack: crypt;-- /* Wave 30: phosphor-green pulse — high-contrast against the moss- * + crypt-brown canvas backplane. */- --node-pulse-color: hsl(var(--accent));-- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #14181a;- --scrollbar-thumb: #4a6a4a;-- /* Shadcn HSL bridge */- --background: 200 13% 9%;- --foreground: 90 22% 80%;- --card: 199 14% 17%;- --card-foreground: 90 22% 80%;- --popover: 199 14% 17%;- --popover-foreground: 90 22% 80%;-- --primary: 120 43% 63%; /* moss bloom */- --primary-foreground: 200 25% 5%;- --secondary: 198 16% 13%;- --secondary-foreground: 90 22% 80%;- --muted: 198 16% 13%;- --muted-foreground: 120 6% 50%;- --accent: 35 78% 56%; /* candleflame amber */- --accent-foreground: 200 25% 5%;-- --destructive: 0 49% 44%;- --destructive-foreground: 90 22% 80%;- --success: 120 43% 63%;- --warning: 35 78% 56%;- --info: 200 36% 53%;-- --border: 145 16% 28%;- --input: 145 16% 28%;- --ring: 120 43% 63%;-- /* Action role bridge */- --action-run: 120 43% 63%;- --action-run-soft: 120 43% 63% / 0.18;- --action-run-hover: 120 43% 63% / 0.32;- --action-run-border: 120 43% 63% / 0.7;-- --action-stop: 0 49% 44%;- --action-stop-soft: 0 49% 44% / 0.20;- --action-stop-hover: 0 49% 44% / 0.34;- --action-stop-border: 0 49% 44% / 0.7;-- --action-save: 35 78% 56%;- --action-save-soft: 35 78% 56% / 0.20;- --action-save-hover: 35 78% 56% / 0.34;- --action-save-border: 35 78% 56% / 0.7;-- --action-config: 35 78% 56%;- --action-config-soft: 35 78% 56% / 0.18;- --action-config-hover: 35 78% 56% / 0.30;- --action-config-border: 35 78% 56% / 0.6;-- --action-secret: 200 36% 53%;- --action-secret-soft: 200 36% 53% / 0.16;- --action-secret-hover: 200 36% 53% / 0.30;- --action-secret-border: 200 36% 53% / 0.6;-- --action-tools: 120 43% 63%;- --action-tools-soft: 120 43% 63% / 0.16;- --action-tools-hover: 120 43% 63% / 0.30;- --action-tools-border: 120 43% 63% / 0.6;-- --tint-soft: 16%;- --tint-border: 40%;-- /* Canvas backplane — flagstone crypt floor on 80x80 tile */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g stroke='%234a6a4a' stroke-width='0.4' fill='none' opacity='0.25'><path d='M0 30 H80 M30 0 V80 M0 60 H80 M60 0 V80'/></g></svg>");- --canvas-grid-opacity: 1;-}--/* Body — moss + damp stone */-:root[data-theme="rot"] body {- background:- radial-gradient(ellipse 80% 60% at 50% 0%, rgba(120,200,120,0.04), transparent 60%),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='m'><feTurbulence baseFrequency='0.6' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.10 0 0 0 0 0.05 0 0 0 0.4 0'/></filter><rect width='300' height='300' filter='url(%23m)'/></svg>"),- var(--bg-app);-}--:root[data-theme="rot"] ::selection {- background: rgba(120, 200, 120, 0.4);- color: #14181a;-}--/* Rot scrollbars — mossy thumb on swamp track */-:root[data-theme="rot"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="rot"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="rot"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: var(--radius-sm, 1px);-}-:root[data-theme="rot"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─── */--:root[data-theme="rot"] .toolbar,-:root[data-theme="rot"] .sidebar,-:root[data-theme="rot"] .palette,-:root[data-theme="rot"] .chat {- background:- linear-gradient(180deg, rgba(120,200,120,0.02), transparent),- var(--bg-panel);-}-:root[data-theme="rot"] .toolbar { border-bottom: 1px solid var(--border-strong); }-:root[data-theme="rot"] .sidebar { border-right: 1px solid var(--border-strong); }-:root[data-theme="rot"] .palette { border-left: 1px solid var(--border-strong); }-:root[data-theme="rot"] .chat { border-top: 1px solid var(--border-strong); }--/* CANVAS — flagstone crypt floor, candlelight pools */-:root[data-theme="rot"] .canvas {- background:- radial-gradient(circle 200px at 25% 30%, rgba(232,168,56,0.06), transparent 70%),- radial-gradient(circle 180px at 78% 65%, rgba(232,168,56,0.05), transparent 70%),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g stroke='%234a6a4a' stroke-width='0.4' fill='none' opacity='0.25'><path d='M0 30 H80 M30 0 V80 M0 60 H80 M60 0 V80'/></g></svg>"),- var(--bg-canvas);-}--/* TYPOGRAPHY — gothic */-:root[data-theme="rot"] body { font-family: var(--font-body); color: var(--fg-default); font-size: 14px; line-height: 1.55; }-:root[data-theme="rot"] h1, :root[data-theme="rot"] h2, :root[data-theme="rot"] h3,-:root[data-theme="rot"] .v-display {- font-family: var(--font-display); letter-spacing: 0.04em; color: var(--bone); font-weight: 400;-}--/* SQUARE NODE — bone-pale tombstone */-:root[data-theme="rot"] .sq-node-box {- background: linear-gradient(180deg, var(--bone), #a8a088);- border: 1px solid #2a2418; border-radius: 4px 4px 2px 2px;- box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.5);- color: var(--crypt);-}-:root[data-theme="rot"] .sq-node.selected .sq-node-box {- border-color: hsl(var(--accent)); box-shadow: 0 0 16px rgba(120,200,120,0.4), 0 4px 8px rgba(0,0,0,0.5);-}-:root[data-theme="rot"] .sq-node-gear { background: var(--crypt); color: var(--bone); border: none; }-:root[data-theme="rot"] .sq-node-label { font-family: var(--font-display); color: var(--crypt); font-weight: 400; }-:root[data-theme="rot"] .sq-node-handle.out { background: hsl(var(--accent)); box-shadow: 0 0 6px hsl(var(--accent)); }--/* ACTIONS — guttering candleflame */-:root[data-theme="rot"] .action-btn {- font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em; font-weight: 400;- border-radius: 2px; border-width: 1px;-}-:root[data-theme="rot"] .action-run { background: hsl(var(--success-soft)); color: hsl(var(--accent)); border-color: hsl(var(--success)); }-:root[data-theme="rot"] .action-deploy { background: hsl(var(--info-soft)); color: hsl(var(--info)); border-color: hsl(var(--info)); }-:root[data-theme="rot"] .action-save { background: hsl(var(--warning-soft)); color: var(--candle); border-color: var(--candle); }--/* CARDS */-:root[data-theme="rot"] .wf-card,-:root[data-theme="rot"] .cat,-:root[data-theme="rot"] .comp,-:root[data-theme="rot"] .settings-section,-:root[data-theme="rot"] .cred-card {- background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: 2px;-}-:root[data-theme="rot"] .wf-card.selected { border-color: hsl(var(--accent)); background: hsl(var(--success-soft)); }-:root[data-theme="rot"] .cat-tile { background: var(--crypt); color: var(--bone); border: 1px solid var(--border-strong); }-:root[data-theme="rot"] .cat-name { font-family: var(--font-display); color: var(--bone); font-weight: 400; }-:root[data-theme="rot"] .comp-ico { background: var(--bg-panel); color: hsl(var(--accent)); border: 1px solid var(--border-strong); }--/* CHAT */-:root[data-theme="rot"] .chat-msg-user { background: hsl(var(--success-soft)); border: 1px solid hsl(var(--accent)); }-:root[data-theme="rot"] .chat-msg-bot { background: var(--bg-elevated); border-left: 2px solid var(--candle); }--/* STATUS BAR */-:root[data-theme="rot"] .statusbar {- background: var(--bg-panel); border-top: 1px solid var(--border-strong);- font-family: var(--font-mono); color: var(--fg-muted);-}-:root[data-theme="rot"] .statusbar .pip { background: hsl(var(--accent)); box-shadow: 0 0 6px hsl(var(--accent)); }--/* MODAL */-:root[data-theme="rot"] .modal {- background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 4px;- box-shadow: 0 0 0 1px rgba(120,200,120,0.10), 0 30px 80px rgba(0,0,0,0.8);-}-:root[data-theme="rot"] .modal-head { border-bottom: 1px solid var(--border-default); }-:root[data-theme="rot"] .modal-title { font-family: var(--font-display); color: var(--bone); font-weight: 400; }--/* CMDK */-:root[data-theme="rot"] .cmdk { background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 4px; }-:root[data-theme="rot"] .cmdk-item.active { background: var(--bg-active); color: hsl(var(--accent)); }diff --git a/docs-internal/design-system/reference/themes/steampunk.css b/docs-internal/design-system/reference/themes/steampunk.cssdeleted file mode 100644index ce941df0..00000000--- a/docs-internal/design-system/reference/themes/steampunk.css+++ /dev/null@@ -1,272 +0,0 @@-/* ============================================================================- * themes/steampunk.css — brass, copper, oiled leather, riveted plates.- *- * Reads like the inside of a Verne submarine.- * Ported from design_handoff_machinaos_themes/themes/steampunk.css.- * ============================================================================ */--:root[data-theme="steampunk"] {- --bg-app: #2a1f12;- --bg-panel: #3a2a18;- --bg-canvas: #1a1208;- --bg-elevated: #4a3620;- --bg-input: #1a1208;- --bg-hover: rgba(200, 140, 40, 0.10);- --bg-active: rgba(200, 140, 40, 0.20);- --bg-overlay: rgba(20, 12, 6, 0.7);-- --border-default: #6a4a20;- --border-strong: #b88838;- --border-focus: #d8a848;- --ornament-frame: none;-- --fg-default: #e8d8b0;- --fg-muted: #b8a070;- --fg-faint: #786040;- --fg-on-accent: #2a1f12;- --fg-on-success: #2a1f12;- --fg-on-danger: #e8d8b0;- --fg-on-warning: #2a1f12;-- --copper: #b8602a;- --rust: #8a3a1a;- --leather: #4a2818;- --brass: #d8a848;-- --font-display: 'IM Fell English SC', 'Cinzel', serif;- --font-body: 'IM Fell English', 'EB Garamond', serif;- --font-mono: 'Special Elite', 'Courier Prime', monospace;- --type-scale-base: 14px;- --type-tracking-display: 0.10em;- --type-uppercase: uppercase;-- --radius-sm: 2px;- --radius-md: 4px;- --radius-lg: 8px;- --radius-pill: 999px;-- --dur-fast: 110ms;- --dur-default: 240ms;- --dur-slow: 480ms;- --ease-default: cubic-bezier(0.5, 0, 0.4, 1.1);- --ease-emphasis: cubic-bezier(0.7, -0.1, 0.3, 1.2);- --motion-style: mechanical;- --sound-pack: clockwork;-- /* Wave 30: copper-accent pulse — high-contrast against leather +- * brass canvas, matches the rivet decorations. */- --node-pulse-color: hsl(var(--accent));-- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #2a1f12;- --scrollbar-thumb: #b88838;-- /* Shadcn HSL bridge */- --background: 28 41% 12%;- --foreground: 40 53% 80%;- --card: 31 38% 21%;- --card-foreground: 40 53% 80%;- --popover: 31 38% 21%;- --popover-foreground: 40 53% 80%;-- --primary: 40 64% 56%; /* brass */- --primary-foreground: 28 41% 12%;- --secondary: 30 39% 16%;- --secondary-foreground: 40 53% 80%;- --muted: 30 39% 16%;- --muted-foreground: 40 35% 58%;- --accent: 18 63% 44%; /* copper */- --accent-foreground: 28 41% 12%;-- --destructive: 14 68% 32%; /* rust */- --destructive-foreground: 40 53% 80%;- --success: 79 41% 38%;- --warning: 40 64% 56%;- --info: 200 39% 47%;-- --border: 33 53% 27%;- --input: 33 53% 27%;- --ring: 40 64% 56%;-- /* Action role bridge */- --action-run: 79 41% 38%;- --action-run-soft: 79 41% 38% / 0.20;- --action-run-hover: 79 41% 38% / 0.34;- --action-run-border: 79 41% 38% / 0.7;-- --action-stop: 14 68% 32%;- --action-stop-soft: 14 68% 32% / 0.20;- --action-stop-hover: 14 68% 32% / 0.34;- --action-stop-border: 14 68% 32% / 0.7;-- --action-save: 40 64% 56%;- --action-save-soft: 40 64% 56% / 0.22;- --action-save-hover: 40 64% 56% / 0.36;- --action-save-border: 40 64% 56% / 0.7;-- --action-config: 40 64% 56%;- --action-config-soft: 40 64% 56% / 0.18;- --action-config-hover: 40 64% 56% / 0.30;- --action-config-border: 40 64% 56% / 0.6;-- --action-secret: 200 39% 47%;- --action-secret-soft: 200 39% 47% / 0.18;- --action-secret-hover: 200 39% 47% / 0.30;- --action-secret-border: 200 39% 47% / 0.6;-- --action-tools: 18 63% 44%;- --action-tools-soft: 18 63% 44% / 0.20;- --action-tools-hover: 18 63% 44% / 0.34;- --action-tools-border: 18 63% 44% / 0.6;-- --tint-soft: 16%;- --tint-border: 40%;-- /* Canvas backplane — engine-room brass bolts on 80x80 tile */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='%23b88838' opacity='0.10'><circle cx='40' cy='40' r='1.5'/><circle cx='10' cy='10' r='1'/><circle cx='70' cy='70' r='1'/></g></svg>");- --canvas-grid-opacity: 1;-}--/* Body — riveted leather grain */-:root[data-theme="steampunk"] body {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='l'><feTurbulence baseFrequency='0.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.10 0 0 0 0 0.04 0 0 0 0.4 0'/></filter><rect width='200' height='200' filter='url(%23l)'/></svg>"),- var(--bg-app);-}--:root[data-theme="steampunk"] ::selection {- background: rgba(216, 168, 72, 0.5);- color: #2a1f12;-}--/* Steampunk scrollbars — brass thumb on leather track with metallic highlight */-:root[data-theme="steampunk"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="steampunk"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="steampunk"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: var(--radius-sm, 2px);- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);-}-:root[data-theme="steampunk"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─────────────── */--:root[data-theme="steampunk"] .toolbar,-:root[data-theme="steampunk"] .sidebar,-:root[data-theme="steampunk"] .palette,-:root[data-theme="steampunk"] .chat {- background:- linear-gradient(180deg, rgba(216,168,72,0.04), transparent 30%, rgba(0,0,0,0.2)),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='l'><feTurbulence baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.20 0 0 0 0 0.13 0 0 0 0 0.06 0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23l)'/></svg>"),- var(--bg-panel);-}-/* Riveted edges */-:root[data-theme="steampunk"] .toolbar {- border-bottom: 4px ridge var(--border-strong);- box-shadow: inset 0 -3px 0 var(--copper);-}-:root[data-theme="steampunk"] .sidebar { border-right: 3px solid var(--border-strong); }-:root[data-theme="steampunk"] .palette { border-left: 3px solid var(--border-strong); }-:root[data-theme="steampunk"] .chat { border-top: 3px solid var(--border-strong); }--/* Canvas — engine-room floor with bolt pattern */-:root[data-theme="steampunk"] .canvas {- background:- radial-gradient(circle at 20% 20%, var(--copper) 0%, transparent 1.5%),- radial-gradient(circle at 80% 30%, var(--copper) 0%, transparent 1.5%),- radial-gradient(circle at 30% 80%, var(--copper) 0%, transparent 1.5%),- radial-gradient(circle at 90% 90%, var(--copper) 0%, transparent 1.5%),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='%23b88838' opacity='0.10'><circle cx='40' cy='40' r='1.5'/><circle cx='10' cy='10' r='1'/><circle cx='70' cy='70' r='1'/></g></svg>"),- var(--bg-canvas);-}--/* Typography */-:root[data-theme="steampunk"] body { font-family: var(--font-body); color: var(--fg-default); }-:root[data-theme="steampunk"] h1, :root[data-theme="steampunk"] h2, :root[data-theme="steampunk"] h3,-:root[data-theme="steampunk"] .v-display {- font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: hsl(var(--accent));-}--/* Square node — riveted brass plate */-:root[data-theme="steampunk"] .sq-node-box {- background: linear-gradient(180deg, hsl(var(--accent)), var(--copper));- border: 2px solid var(--leather); border-radius: 4px;- box-shadow:- inset 0 0 0 1px hsl(var(--accent)),- inset 1px 1px 2px rgba(255,220,160,0.4),- inset -2px -2px 4px rgba(0,0,0,0.4),- 0 4px 0 var(--leather);- color: var(--leather);- position: relative;-}-:root[data-theme="steampunk"] .sq-node-box::before,-:root[data-theme="steampunk"] .sq-node-box::after {- content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%;- background: radial-gradient(circle, var(--copper), var(--leather));- box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);-}-:root[data-theme="steampunk"] .sq-node-box::before { top: 3px; left: 3px; }-:root[data-theme="steampunk"] .sq-node-box::after { bottom: 3px; right: 3px; }-:root[data-theme="steampunk"] .sq-node.selected .sq-node-box {- box-shadow: inset 0 0 0 2px hsl(var(--accent)), 0 0 12px hsl(var(--accent)), 0 4px 0 var(--leather);-}-:root[data-theme="steampunk"] .sq-node-gear { background: var(--copper); color: hsl(var(--accent)); border: 1px solid var(--leather); }-:root[data-theme="steampunk"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.10em; color: hsl(var(--accent)); }--/* Actions — engraved brass plates */-:root[data-theme="steampunk"] .action-btn {- font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase;- border-radius: 2px; border-width: 2px;- background: linear-gradient(180deg, rgba(216,168,72,0.20), rgba(216,168,72,0.05));-}-:root[data-theme="steampunk"] .action-run { background: linear-gradient(180deg, rgba(106,138,58,0.4), rgba(106,138,58,0.1)); color: #c8e08a; border-color: hsl(var(--success)); }-:root[data-theme="steampunk"] .action-deploy { color: hsl(var(--accent)); border-color: hsl(var(--accent)); }-:root[data-theme="steampunk"] .action-save { color: hsl(var(--accent)); border-color: hsl(var(--accent)); }--/* Panels */-:root[data-theme="steampunk"] .wf-card,-:root[data-theme="steampunk"] .cat,-:root[data-theme="steampunk"] .comp,-:root[data-theme="steampunk"] .settings-section,-:root[data-theme="steampunk"] .cred-card {- background: var(--bg-elevated); border: 1px solid var(--copper); border-radius: 2px;- box-shadow: inset 0 1px 0 rgba(255,220,160,0.10);-}-:root[data-theme="steampunk"] .cat-tile { background: hsl(var(--accent)); color: var(--leather); border: 1px solid var(--leather); border-radius: 2px; }-:root[data-theme="steampunk"] .cat-name { font-family: var(--font-display); color: hsl(var(--accent)); }--/* Chat */-:root[data-theme="steampunk"] .chat-msg-user { background: rgba(216,168,72,0.16); border: 1px solid hsl(var(--accent)); color: hsl(var(--accent)); }-:root[data-theme="steampunk"] .chat-msg-bot { background: var(--bg-elevated); border: 1px solid var(--copper); }--/* Status bar — gauge readout */-:root[data-theme="steampunk"] .statusbar {- background: linear-gradient(180deg, var(--bg-panel), var(--leather));- border-top: 3px ridge var(--border-strong);- font-family: var(--font-mono); color: hsl(var(--accent)); letter-spacing: 0.10em;-}-:root[data-theme="steampunk"] .statusbar .pip { background: hsl(var(--success)); box-shadow: 0 0 4px hsl(var(--success)); }--/* Modal */-:root[data-theme="steampunk"] .modal {- background: linear-gradient(180deg, var(--bg-elevated), var(--bg-panel));- border: 4px ridge var(--border-strong); border-radius: 4px;- box-shadow: 0 0 0 2px var(--leather), 0 30px 80px rgba(0,0,0,0.6);-}-:root[data-theme="steampunk"] .modal-head { border-bottom: 3px ridge var(--copper); }-:root[data-theme="steampunk"] .modal-title { font-family: var(--font-display); color: hsl(var(--accent)); letter-spacing: 0.14em; }--/* CMDK */-:root[data-theme="steampunk"] .cmdk {- background: var(--bg-elevated); border: 4px ridge var(--border-strong); border-radius: 4px;-}-:root[data-theme="steampunk"] .cmdk-item.active { background: var(--bg-active); color: hsl(var(--accent)); border-left: 3px solid var(--copper); }diff --git a/docs-internal/design-system/reference/themes/surveillance.css b/docs-internal/design-system/reference/themes/surveillance.cssdeleted file mode 100644index ee1883f9..00000000--- a/docs-internal/design-system/reference/themes/surveillance.css+++ /dev/null@@ -1,289 +0,0 @@-/* ============================================================================- * themes/surveillance.css — institutional grey, CCTV crosshair overlays.- *- * Bureaucratic, cold, all corners and IDs. Reads like a 1970s panopticon- * control room. Ported from- * design_handoff_machinaos_themes/themes/surveillance.css.- * ============================================================================ */--:root[data-theme="surveillance"] {- --bg-app: #1a1c1e;- --bg-panel: #232628;- --bg-canvas: #0a0c0e;- --bg-elevated: #2c3034;- --bg-input: #0a0c0e;- --bg-hover: rgba(232, 38, 38, 0.08);- --bg-active: rgba(232, 38, 38, 0.18);- --bg-overlay: rgba(0, 0, 0, 0.85);-- --border-default: #3a3e42;- --border-strong: #5a5e62;- --border-focus: #e82626;- --ornament-frame: none;-- --fg-default: #c8ccd0;- --fg-muted: #888c90;- --fg-faint: #585c60;- --fg-on-accent: #ffffff;- --fg-on-success: #0a0c0e;- --fg-on-danger: #ffffff;- --fg-on-warning: #0a0c0e;-- --phosphor: #6acc6a;- --amber: #d8a020;- --concrete: #888c90;- --rec-red: #e82626;-- --font-display: 'Anonymous Pro', 'IBM Plex Mono', monospace;- --font-body: 'IBM Plex Mono', 'Anonymous Pro', monospace;- --font-mono: 'IBM Plex Mono', monospace;- --type-scale-base: 13px;- --type-tracking-display: 0.10em;- --type-uppercase: uppercase;-- --radius-sm: 0px;- --radius-md: 0px;- --radius-lg: 0px;- --radius-pill: 0px;-- --dur-fast: 60ms;- --dur-default: 140ms;- --dur-slow: 240ms;- --ease-default: linear;- --ease-emphasis: linear;- --motion-style: scanline;- --sound-pack: telex;-- /* Wave 30: REC-red executing pulse — matches the surv-blink LED- * rhythm and reads against the grey CCTV canvas. */- --node-pulse-color: hsl(var(--destructive));-- /* Cursor — CCTV snooper reticle (REC-red crosshair with center dot) */- --cursor-default: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><g stroke='%23e82626' stroke-width='1' fill='none'><circle cx='12' cy='12' r='8'/><path d='M12 1 L12 6 M12 18 L12 23 M1 12 L6 12 M18 12 L23 12'/><circle cx='12' cy='12' r='1.5' fill='%23e82626'/></g></svg>") 12 12, crosshair;- --cursor-pointer: pointer;-- /* Canvas backplane — CCTV crosshair + corner brackets + 40px grain grid */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'><g stroke='%23e82626' stroke-width='1' fill='none' opacity='0.18'><path d='M40 40 H120 M40 40 V120 M1880 40 H1800 M1880 40 V120 M40 1040 H120 M40 1040 V960 M1880 1040 H1800 M1880 1040 V960'/><circle cx='960' cy='540' r='40' opacity='0.2'/><path d='M960 480 V600 M900 540 H1020' opacity='0.25'/></g></svg>"),- repeating-linear-gradient(0deg, transparent 0 3px, rgba(106,204,106,0.04) 3px 4px),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g stroke='%23888c90' stroke-width='0.4' fill='none' opacity='0.12'><path d='M0 20 H40 M20 0 V40'/></g></svg>");- --canvas-grid-opacity: 1;-- --scrollbar-track: #1a1c1e;- --scrollbar-thumb: #5a5e62;-- /* Shadcn HSL bridge */- --background: 210 6% 11%;- --foreground: 210 8% 80%;- --card: 210 7% 19%;- --card-foreground: 210 8% 80%;- --popover: 210 7% 19%;- --popover-foreground: 210 8% 80%;-- --primary: 0 81% 53%; /* REC red */- --primary-foreground: 0 0% 100%;- --secondary: 210 6% 16%;- --secondary-foreground: 210 8% 80%;- --muted: 210 6% 16%;- --muted-foreground: 210 3% 56%;- --accent: 120 49% 61%; /* phosphor green */- --accent-foreground: 210 8% 5%;-- --destructive: 0 81% 53%;- --destructive-foreground: 0 0% 100%;- --success: 120 49% 61%;- --warning: 41 74% 49%;- --info: 213 51% 56%;-- --border: 213 5% 36%;- --input: 213 5% 36%;- --ring: 0 81% 53%;-- /* Action role bridge */- --action-run: 120 49% 61%;- --action-run-soft: 120 49% 61% / 0.16;- --action-run-hover: 120 49% 61% / 0.30;- --action-run-border: 120 49% 61% / 0.7;-- --action-stop: 0 81% 53%;- --action-stop-soft: 0 81% 53% / 0.18;- --action-stop-hover: 0 81% 53% / 0.32;- --action-stop-border: 0 81% 53% / 0.7;-- --action-save: 120 49% 61%;- --action-save-soft: 120 49% 61% / 0.18;- --action-save-hover: 120 49% 61% / 0.32;- --action-save-border: 120 49% 61% / 0.7;-- --action-config: 41 74% 49%;- --action-config-soft: 41 74% 49% / 0.16;- --action-config-hover: 41 74% 49% / 0.30;- --action-config-border: 41 74% 49% / 0.6;-- --action-secret: 0 81% 53%;- --action-secret-soft: 0 81% 53% / 0.16;- --action-secret-hover: 0 81% 53% / 0.30;- --action-secret-border: 0 81% 53% / 0.6;-- --action-tools: 213 51% 56%;- --action-tools-soft: 213 51% 56% / 0.16;- --action-tools-hover: 213 51% 56% / 0.30;- --action-tools-border: 213 51% 56% / 0.6;-- --tint-soft: 16%;- --tint-border: 45%;-}--/* Body — monitor scanlines */-:root[data-theme="surveillance"] body {- background:- repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px),- var(--bg-app);-}--:root[data-theme="surveillance"] ::selection {- background: rgba(232, 38, 38, 0.5);- color: #ffffff;-}--/* Phosphor scrollbars */-:root[data-theme="surveillance"] ::-webkit-scrollbar-thumb {- background: #5a5e62;-}--/* ── Per-component decorations (Wave 16 port from handoff) ─── */--:root[data-theme="surveillance"] .toolbar,-:root[data-theme="surveillance"] .sidebar,-:root[data-theme="surveillance"] .palette,-:root[data-theme="surveillance"] .chat { background: var(--bg-panel); }-:root[data-theme="surveillance"] .toolbar { border-bottom: 1px solid var(--border-strong); }-:root[data-theme="surveillance"] .sidebar { border-right: 1px solid var(--border-strong); }-:root[data-theme="surveillance"] .palette { border-left: 1px solid var(--border-strong); }-:root[data-theme="surveillance"] .chat { border-top: 1px solid var(--border-strong); }--/* CANVAS — CCTV grid + crosshair.- *- * NOTE: the corner-bracket / centre-reticle / REC-text SVG is declared at a- * fixed 1920x1080 viewport (matches the upstream handoff). On viewports- * larger than 1920x1080 it tiles; on smaller viewports it's clipped to- * canvas bounds. The CCTV-monitor framing reads as intentional at typical- * desktop sizes. Replacing it with a `preserveAspectRatio="xMidYMid slice"`- * SVG that scales would lose the pixel-pitch authenticity the design calls- * for, so this is a known limitation, not a bug. The 40px crosshair grid- * (third layer) is correctly tiled across the full canvas at any size. */-:root[data-theme="surveillance"] .canvas {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'><g stroke='%23e82626' stroke-width='1' fill='none' opacity='0.18'><path d='M40 40 H120 M40 40 V120 M1880 40 H1800 M1880 40 V120 M40 1040 H120 M40 1040 V960 M1880 1040 H1800 M1880 1040 V960'/><circle cx='960' cy='540' r='40' opacity='0.2'/><path d='M960 480 V600 M900 540 H1020' opacity='0.25'/></g><text x='80' y='80' fill='%23e82626' font-family='monospace' font-size='14' opacity='0.5'>● REC</text><text x='80' y='1020' fill='%23e82626' font-family='monospace' font-size='12' opacity='0.4'>CAM-04 / 19:42:08</text></svg>"),- repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(106,204,106,0.04) 3px, rgba(106,204,106,0.04) 4px),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g stroke='%23888c90' stroke-width='0.4' fill='none' opacity='0.12'><path d='M0 20 H40 M20 0 V40'/></g></svg>"),- var(--bg-canvas);-}--/* TYPOGRAPHY */-:root[data-theme="surveillance"] body { font-family: var(--font-body); color: var(--fg-default); font-size: 13px; }-:root[data-theme="surveillance"] h1, :root[data-theme="surveillance"] h2, :root[data-theme="surveillance"] h3,-:root[data-theme="surveillance"] .v-display {- font-family: var(--font-display); letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-default);-}--/* SQUARE NODE — case file dossier */-:root[data-theme="surveillance"] .sq-node-box {- background: var(--bg-elevated);- border: 1px solid var(--border-strong); border-radius: 0;- box-shadow: none;- color: var(--fg-default);- position: relative;-}-:root[data-theme="surveillance"] .sq-node-box::before {- content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px;- background: hsl(var(--primary)); border-radius: 50%; box-shadow: 0 0 4px hsl(var(--primary));- animation: surv-blink 1.4s steps(2) infinite;-}-@keyframes surv-blink { 50% { opacity: 0.2; } }-:root[data-theme="surveillance"] .sq-node.selected .sq-node-box {- border: 1px solid hsl(var(--primary)); box-shadow: 0 0 0 1px hsl(var(--primary)), 0 0 8px rgba(232,38,38,0.4);-}--/* Wave 29: Surveillance executing nodes blink the REC red glow, matching- * the corner LED's surv-blink rhythm. Mirrors the analog-camera "live"- * indicator language. Higher specificity than base.css's generic rule. */-/* Wave 30.1: dedicated executing-pulse keyframe that animates- * BOX-SHADOW only. The original `surv-blink` keyframe (LED corner- * dot) animates opacity to 0.2, which when applied to whole nodes- * faded the entire node body. This pulses the REC-red glow- * intensity while the node stays solid. */-@keyframes surv-pulse-exec {- 0%, 49% {- box-shadow:- 0 0 0 2px hsl(var(--destructive)),- 0 0 28px 4px rgba(232, 38, 38, 0.7),- 0 0 56px 14px rgba(232, 38, 38, 0.3);- }- 50%, 100% {- box-shadow:- 0 0 0 2px hsl(var(--destructive)),- 0 0 12px 2px rgba(232, 38, 38, 0.45),- 0 0 24px 6px rgba(232, 38, 38, 0.12);- }-}--:root[data-theme="surveillance"] .sq-node[data-executing] .sq-node-box,-:root[data-theme="surveillance"] .react-flow__node.executing .sq-node-box,-:root[data-theme="surveillance"] .react-flow__node.executing .node {- animation: surv-pulse-exec 1.0s steps(2) infinite;- border: 1px solid hsl(var(--destructive));-}-:root[data-theme="surveillance"] .sq-node-pip { border-radius: 0; }-:root[data-theme="surveillance"] .sq-node-gear { background: hsl(var(--primary)); color: white; border-radius: 0; border: none; }-:root[data-theme="surveillance"] .sq-node-handle { border-radius: 0; background: var(--phosphor); }-:root[data-theme="surveillance"] .sq-node-handle.out { background: hsl(var(--primary)); }-:root[data-theme="surveillance"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.10em; font-size: 10px; text-transform: uppercase; }--/* ACTIONS — terminal command */-:root[data-theme="surveillance"] .action-btn {- font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;- border-radius: 0; border-width: 1px;-}-:root[data-theme="surveillance"] .action-run { background: transparent; color: var(--phosphor); border-color: var(--phosphor); }-:root[data-theme="surveillance"] .action-deploy { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }-:root[data-theme="surveillance"] .action-save { background: transparent; color: var(--amber); border-color: var(--amber); }-:root[data-theme="surveillance"] .action-stop { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }--/* CARDS */-:root[data-theme="surveillance"] .wf-card,-:root[data-theme="surveillance"] .cat,-:root[data-theme="surveillance"] .comp,-:root[data-theme="surveillance"] .settings-section,-:root[data-theme="surveillance"] .cred-card {- background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: 0;-}-:root[data-theme="surveillance"] .wf-card.selected { border: 1px solid hsl(var(--primary)); background: hsl(var(--danger-soft)); }-:root[data-theme="surveillance"] .cat-tile { background: hsl(var(--primary)); color: white; border-radius: 0; }-:root[data-theme="surveillance"] .cat-name { font-family: var(--font-display); }-:root[data-theme="surveillance"] .comp-ico { background: var(--bg-panel); color: var(--phosphor); border: 1px solid var(--border-strong); border-radius: 0; }--/* CHAT */-:root[data-theme="surveillance"] .chat-msg { border-radius: 0; }-:root[data-theme="surveillance"] .chat-msg-user { background: var(--bg-panel); border: 1px solid hsl(var(--primary)); }-:root[data-theme="surveillance"] .chat-msg-bot { background: var(--bg-elevated); border-left: 3px solid var(--phosphor); border-top: 1px solid var(--border-default); border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }--/* STATUS BAR */-:root[data-theme="surveillance"] .statusbar {- background: hsl(var(--primary)); color: white; border-top: none;- font-family: var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase;-}-:root[data-theme="surveillance"] .statusbar .pip { background: white; box-shadow: 0 0 4px white; border-radius: 0; }--/* MODAL */-:root[data-theme="surveillance"] .modal {- background: var(--bg-elevated); border: 1px solid hsl(var(--primary)); border-radius: 0;- box-shadow: 0 0 0 4px rgba(232,38,38,0.08), 0 30px 80px rgba(0,0,0,0.8);-}-:root[data-theme="surveillance"] .modal-head { border-bottom: 1px solid hsl(var(--primary)); background: var(--bg-panel); }-:root[data-theme="surveillance"] .modal-title { font-family: var(--font-display); color: hsl(var(--primary)); letter-spacing: 0.14em; }--/* CMDK */-:root[data-theme="surveillance"] .cmdk { background: var(--bg-elevated); border: 1px solid hsl(var(--primary)); border-radius: 0; }-:root[data-theme="surveillance"] .cmdk-item.active { background: hsl(var(--primary)); color: white; }-:root[data-theme="surveillance"] .cmdk-item.active::before { content: '> '; }diff --git a/docs-internal/design-system/reference/themes/wasteland.css b/docs-internal/design-system/reference/themes/wasteland.cssdeleted file mode 100644index c53ab799..00000000--- a/docs-internal/design-system/reference/themes/wasteland.css+++ /dev/null@@ -1,250 +0,0 @@-/* ============================================================================- * themes/wasteland.css — irradiated dust, rust, hand-painted warnings on- * scrap metal. Reads like a Mad Max settlement.- * Ported from design_handoff_machinaos_themes/themes/wasteland.css.- * ============================================================================ */--:root[data-theme="wasteland"] {- --bg-app: #2a2018;- --bg-panel: #3a2c1c;- --bg-canvas: #1a1410;- --bg-elevated: #4a3826;- --bg-input: #1a1410;- --bg-hover: rgba(232, 140, 40, 0.10);- --bg-active: rgba(232, 140, 40, 0.22);- --bg-overlay: rgba(20, 12, 6, 0.78);-- --border-default: #6a4a28;- --border-strong: #8a3a18;- --border-focus: #e88a28;- --ornament-frame: none;-- --fg-default: #e8d8a8;- --fg-muted: #b89868;- --fg-faint: #786040;- --fg-on-accent: #1a1410;- --fg-on-success: #1a1410;- --fg-on-danger: #e8d8a8;- --fg-on-warning: #1a1410;-- --rust: #8a3a18;- --bone: #d8c8a0;- --rad: #c8d038;- --ochre: #e88a28;-- --font-display: 'Special Elite', 'Black Ops One', monospace;- --font-body: 'Special Elite', 'Courier Prime', monospace;- --font-mono: 'VT323', 'Courier New', monospace;- --type-scale-base: 14px;- --type-tracking-display: 0.10em;- --type-uppercase: uppercase;-- --radius-sm: 0px;- --radius-md: 0px;- --radius-lg: 0px;- --radius-pill: 0px;-- --dur-fast: 60ms;- --dur-default: 180ms;- --dur-slow: 320ms;- --ease-default: cubic-bezier(0.6, 0, 0.4, 1);- --ease-emphasis: cubic-bezier(0.6, 0, 0.4, 1);- --motion-style: jittery;- --sound-pack: scrap;-- /* Wave 30: radioactive-yellow pulse — high-contrast against ochre- * dust + matches the rust-belt accent palette. */- --node-pulse-color: hsl(var(--accent));-- --cursor-default: auto;- --cursor-pointer: pointer;- --scrollbar-track: #2a2018;- --scrollbar-thumb: #8a3a18;-- /* Shadcn HSL bridge */- --background: 30 28% 13%;- --foreground: 41 53% 78%;- --card: 28 32% 22%;- --card-foreground: 41 53% 78%;- --popover: 28 32% 22%;- --popover-foreground: 41 53% 78%;-- --primary: 28 80% 53%; /* ochre */- --primary-foreground: 24 28% 8%;- --secondary: 28 36% 17%;- --secondary-foreground: 41 53% 78%;- --muted: 28 36% 17%;- --muted-foreground: 35 36% 56%;- --accent: 64 56% 51%; /* radioactive */- --accent-foreground: 24 28% 8%;-- --destructive: 6 75% 41%;- --destructive-foreground: 41 53% 78%;- --success: 64 56% 41%;- --warning: 64 56% 51%;- --info: 28 80% 53%;-- --border: 32 47% 28%;- --input: 32 47% 28%;- --ring: 28 80% 53%;-- /* Action role bridge */- --action-run: 64 56% 41%;- --action-run-soft: 64 56% 41% / 0.20;- --action-run-hover: 64 56% 41% / 0.34;- --action-run-border: 64 56% 41% / 0.7;-- --action-stop: 6 75% 41%;- --action-stop-soft: 6 75% 41% / 0.22;- --action-stop-hover: 6 75% 41% / 0.36;- --action-stop-border: 6 75% 41% / 0.7;-- --action-save: 28 80% 53%;- --action-save-soft: 28 80% 53% / 0.20;- --action-save-hover: 28 80% 53% / 0.34;- --action-save-border: 28 80% 53% / 0.7;-- --action-config: 64 56% 51%;- --action-config-soft: 64 56% 51% / 0.18;- --action-config-hover: 64 56% 51% / 0.32;- --action-config-border: 64 56% 51% / 0.6;-- --action-secret: 28 80% 53%;- --action-secret-soft: 28 80% 53% / 0.16;- --action-secret-hover: 28 80% 53% / 0.30;- --action-secret-border: 28 80% 53% / 0.6;-- --action-tools: 64 56% 51%;- --action-tools-soft: 64 56% 51% / 0.18;- --action-tools-hover: 64 56% 51% / 0.32;- --action-tools-border: 64 56% 51% / 0.6;-- --tint-soft: 18%;- --tint-border: 45%;-- /* Canvas backplane — cracked-earth fissures on 200x200 tile */- --canvas-grid:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><g stroke='%23e88a28' stroke-width='0.4' fill='none' opacity='0.10'><path d='M40 10 Q60 60 30 100 Q10 140 50 180 M120 0 Q140 80 100 140 M180 30 Q160 80 190 130'/></g></svg>");- --canvas-grid-opacity: 1;-}--/* Body — dust + grit texture */-:root[data-theme="wasteland"] body {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='d'><feTurbulence baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.40 0 0 0 0 0.18 0 0 0 0.16 0'/></filter><rect width='300' height='300' filter='url(%23d)'/></svg>"),- var(--bg-app);-}--:root[data-theme="wasteland"] ::selection {- background: rgba(232, 138, 40, 0.5);- color: #1a1410;-}--/* Wasteland scrollbars — rust thumb on dust track */-:root[data-theme="wasteland"] ::-webkit-scrollbar {- width: 12px;- height: 12px;-}-:root[data-theme="wasteland"] ::-webkit-scrollbar-track {- background: var(--scrollbar-track);-}-:root[data-theme="wasteland"] ::-webkit-scrollbar-thumb {- background: var(--scrollbar-thumb);- border-radius: var(--radius-sm, 0);-}-:root[data-theme="wasteland"] ::-webkit-scrollbar-thumb:hover {- background: color-mix(in srgb, var(--scrollbar-thumb) 80%, white);-}--/* ── Per-component decorations (Wave 16 port from handoff) ─── */--:root[data-theme="wasteland"] .toolbar,-:root[data-theme="wasteland"] .sidebar,-:root[data-theme="wasteland"] .palette,-:root[data-theme="wasteland"] .chat {- background:- linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3)),- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='r'><feTurbulence baseFrequency='0.5' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.54 0 0 0 0 0.22 0 0 0 0 0.10 0 0 0 0.18 0'/></filter><rect width='300' height='300' filter='url(%23r)'/></svg>"),- var(--bg-panel);-}-:root[data-theme="wasteland"] .toolbar { border-bottom: 2px solid var(--rust); box-shadow: inset 0 -1px 0 hsl(var(--accent)); }-:root[data-theme="wasteland"] .sidebar { border-right: 2px solid var(--rust); }-:root[data-theme="wasteland"] .palette { border-left: 2px solid var(--rust); }-:root[data-theme="wasteland"] .chat { border-top: 2px solid var(--rust); }--/* CANVAS — cracked earth */-:root[data-theme="wasteland"] .canvas {- background:- url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><g stroke='%23e88a28' stroke-width='0.4' fill='none' opacity='0.10'><path d='M40 10 Q60 60 30 100 Q10 140 50 180 M120 0 Q140 80 100 140 M180 30 Q160 80 190 130'/></g></svg>"),- var(--bg-canvas);-}--/* TYPOGRAPHY — typewritten */-:root[data-theme="wasteland"] body { font-family: var(--font-body); color: var(--fg-default); }-:root[data-theme="wasteland"] h1, :root[data-theme="wasteland"] h2, :root[data-theme="wasteland"] h3,-:root[data-theme="wasteland"] .v-display {- font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--accent));-}--/* SQUARE NODE — scrap metal plate, hand-stenciled */-:root[data-theme="wasteland"] .sq-node-box {- background:- linear-gradient(180deg, rgba(232,140,40,0.06), transparent),- var(--bg-elevated);- border: 2px solid var(--rust); border-radius: 0;- box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), 2px 2px 0 var(--rust);- color: hsl(var(--accent));- position: relative;-}-:root[data-theme="wasteland"] .sq-node-box::before {- content: ''; position: absolute; inset: 2px;- background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='s'><feTurbulence baseFrequency='2' numOctaves='1'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100' height='100' filter='url(%23s)'/></svg>");- pointer-events: none;-}-:root[data-theme="wasteland"] .sq-node.selected .sq-node-box { border-color: hsl(var(--accent)); box-shadow: 0 0 0 2px hsl(var(--info) / 0.25), 2px 2px 0 var(--rust); }-:root[data-theme="wasteland"] .sq-node-gear { background: var(--rust); color: hsl(var(--accent)); border: 1px solid hsl(var(--accent)); border-radius: 0; }-:root[data-theme="wasteland"] .sq-node-handle.out { background: hsl(var(--accent)); }-:root[data-theme="wasteland"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.10em; }--/* ACTIONS — stenciled */-:root[data-theme="wasteland"] .action-btn {- font-family: var(--font-display); letter-spacing: 0.10em; text-transform: uppercase;- border-radius: 0; border-width: 2px; border-style: dashed;-}-:root[data-theme="wasteland"] .action-run { background: hsl(var(--success-soft)); color: hsl(var(--success)); border-color: hsl(var(--success)); border-style: solid; }-:root[data-theme="wasteland"] .action-deploy { background: hsl(var(--info-soft)); color: hsl(var(--accent)); border-color: hsl(var(--accent)); border-style: solid; }-:root[data-theme="wasteland"] .action-save { background: hsl(var(--warning-soft)); color: hsl(var(--warning)); border-color: hsl(var(--warning)); border-style: solid; }-:root[data-theme="wasteland"] .action-stop { background: hsl(var(--danger-soft)); color: hsl(var(--danger)); border-color: hsl(var(--danger)); border-style: solid; }--/* CARDS */-:root[data-theme="wasteland"] .wf-card,-:root[data-theme="wasteland"] .cat,-:root[data-theme="wasteland"] .comp,-:root[data-theme="wasteland"] .settings-section,-:root[data-theme="wasteland"] .cred-card {- background: var(--bg-elevated); border: 1px solid var(--rust); border-radius: 0;-}-:root[data-theme="wasteland"] .wf-card.selected { border-color: hsl(var(--accent)); box-shadow: inset 3px 0 0 hsl(var(--accent)); }-:root[data-theme="wasteland"] .cat-tile { background: var(--rust); color: hsl(var(--accent)); border-radius: 0; }-:root[data-theme="wasteland"] .comp-ico { background: var(--bg-input); color: hsl(var(--accent)); border: 1px solid var(--rust); border-radius: 0; }--/* CHAT */-:root[data-theme="wasteland"] .chat-msg { border-radius: 0; }-:root[data-theme="wasteland"] .chat-msg-user { background: hsl(var(--info-soft)); border: 1px solid hsl(var(--accent)); }-:root[data-theme="wasteland"] .chat-msg-bot { background: var(--bg-elevated); border: 1px solid var(--rust); }--/* STATUS BAR */-:root[data-theme="wasteland"] .statusbar {- background: var(--bg-input); color: hsl(var(--accent)); border-top: 2px dashed var(--rust);- font-family: var(--font-mono); letter-spacing: 0.10em;-}-:root[data-theme="wasteland"] .statusbar .pip { background: var(--rad); box-shadow: 0 0 6px var(--rad); border-radius: 0; }--/* MODAL */-:root[data-theme="wasteland"] .modal { background: var(--bg-elevated); border: 3px solid hsl(var(--accent)); border-radius: 0; box-shadow: 6px 6px 0 var(--rust); }-:root[data-theme="wasteland"] .modal-head { border-bottom: 2px dashed var(--rust); background: var(--bg-panel); }-:root[data-theme="wasteland"] .modal-title { font-family: var(--font-display); color: hsl(var(--accent)); letter-spacing: 0.12em; }--/* CMDK */-:root[data-theme="wasteland"] .cmdk { background: var(--bg-elevated); border: 3px solid hsl(var(--accent)); border-radius: 0; }-:root[data-theme="wasteland"] .cmdk-item.active { background: var(--bg-active); color: hsl(var(--accent)); border-left: 3px solid var(--rust); }diff --git a/docs-internal/frontend_architecture.md b/docs-internal/frontend_architecture.mdindex bfb484f4..684d9108 100644--- a/docs-internal/frontend_architecture.md+++ b/docs-internal/frontend_architecture.md@@ -592,7 +592,7 @@ The DIY widget registry (RHF + zod + a tester+rank dispatch) is modeled on n8n's| File | When to use ||---|---|| [client/src/components/ui/action-button.tsx](../client/src/components/ui/action-button.tsx) | Colored "soft" toolbar button (Run / Save / Cancel / Reset / Stop). One semantic `intent` prop (`run | stop | save | config | secret | tools`) drives bg / border / text / hover against the matching `--action-X` quartet (`-soft`, `-hover`, `-border`, base) via static Tailwind classes — no opacity arithmetic. Disabled state is the shadcn-idiomatic `disabled:opacity-50` on the base class (one rule, all intents). Replaces the `actionButtonStyle(color, isDisabled)` style helper that was copy-pasted across 4 files. The credential-modal panels (`OAuthConnect`, `EmailPanel`, `QrPairingPanel`, `ActionBar`) and the skill / tool-schema editors all consume `<ActionButton>` directly; their `ActionDef` records carry an `intent` key, never a free-form colour. |-| [client/src/styles/canvasAnimations.ts](../client/src/styles/canvasAnimations.ts) | Canvas-wide CSS injected once into Dashboard's `<style>` tag. Three named groups (`KEYFRAMES`, `edgeStatusStyles`, `nodeStatusStyles`) for the React Flow edge/node status visuals -- adding a new keyframe or status class is a single-file change. Light/dark distinction is encoded entirely in the `colors` arg coming from `theme.ts` -- `buildCanvasStyles(colors)` is single-arg with zero hardcoded hexes, and `CanvasStatusColors` carries the full set (`edgeDefault | edgeSelected | edgeExecuting | edgeCompleted | edgeError | edgePending | edgeMemoryActive | edgeToolActive`). The `nodeGlow` keyframe consumes scoped `--node-glow` / `--node-glow-soft` vars so one keyframe serves both themes. |+| [client/src/styles/canvasAnimations.ts](../client/src/styles/canvasAnimations.ts) | Canvas-wide CSS injected once into Dashboard's `<style>` tag — adding a new keyframe or status class is a single-file change. Fully static since the design-handoff edge migration: `buildCanvasStyles()` takes no arguments; every colour/width/dash is a theme token (`--edge-stroke`, `--edge-stroke-width{,-active,-done}`, `--edge-dash{,-active}` from `themes/base.css`, plus semantic tokens for the status classes `selected/executing/completed/error/pending/memory-active/tool-active/skill-active`). Resting edges are pale-neutral dashed orthogonal step edges; the in-progress `.react-flow__connection-path` shares the resting rule. The old `CanvasStatusColors` per-theme hex interface was deleted — add a token, never a colour parameter. || [client/src/components/ui/alert-dialog.tsx](../client/src/components/ui/alert-dialog.tsx) | Confirmation / destructive-action modals. **Never hand-roll a `position: fixed; background: rgba(0,0,0,0.5)` backdrop** — use `<AlertDialog open onOpenChange>` with `AlertDialogHeader` / `AlertDialogDescription` / `AlertDialogFooter`. Focus trap, escape-to-close, and `role="alertdialog"` come from Radix. MiddleSection Clear Memory + Reset Skill dialogs are the canonical consumers (Wave 3 commit `61bf23c`). || [client/src/components/ui/sonner.tsx](../client/src/components/ui/sonner.tsx) | The `<Toaster />` mount — call `import { toast } from 'sonner'` directly at use sites; do not wrap. || [client/src/components/ui/Modal.tsx](../client/src/components/ui/Modal.tsx) | Composition primitive on top of shadcn `<Dialog>`. Owns the recurring "title bar with centered headerActions and a close button + size-constrained content panel" 8 panels share. Not an antd facade. For destructive confirmations prefer `AlertDialog` above. |diff --git a/docs-internal/theme_system.md b/docs-internal/theme_system.mdindex bcf58aa1..2e708503 100644--- a/docs-internal/theme_system.md+++ b/docs-internal/theme_system.md@@ -1,6 +1,6 @@# Theme System — design-handoff token contract + 12 themes-The OpenCompany frontend supports **ten visual themes**, organised as a utopian / dystopian taxonomy from the design handoff:+The OpenCompany frontend supports **twelve visual themes** (2 base + 10 skins), organised as a utopian / dystopian taxonomy from the design handoff:**Utopian:** `light` · `dark` · `renaissance` · `greek` · `edo` · `steampunk` · `atomic`**Dystopian:** `cyber` · `wasteland` · `rot` · `plague` · `surveillance`@@ -113,7 +113,7 @@ Six tokens for canvas identity: `agent / model / skill / tool / trigger / workfl### 6. Code & syntax tokens-`--code-*` — the per-theme syntax palette for the code editor, console/output JSON viewers, and chat code blocks. Each theme defines its own `--code-*` block in its own CSS file (`client/src/themes/<theme>.css`): editor chrome (`--code-bg`, `--code-gutter-bg`, `--code-gutter-fg`, `--code-caret`, `--code-border`, `--code-line-active`, `--code-selection`) + syntax roles (`--code-text`, `--code-comment`, `--code-keyword`, `--code-string`, `--code-number`, `--code-boolean`, `--code-function`, `--code-property`, `--code-operator`, `--code-punctuation`, `--code-tag`). Light / Dark / Cyber are copied verbatim from the design system's `tokens/code.css`; the other skins derive syntax from their own role hues — **keyword→trigger, string→success, number→agent, function→model, tag→tool, comment→faint, punctuation→muted** — on an adaptive dark/light code surface (`color-mix(#000 45%, --bg-panel)` dark, `color-mix(#000 5%, --surface-card)` light).+`--code-*` — the per-theme syntax palette for the code editor, console/output JSON viewers, and chat code blocks. Each theme defines its own `--code-*` block in its own CSS file (`client/src/themes/<theme>.css`): editor chrome (`--code-bg`, `--code-gutter-bg`, `--code-gutter-fg`, `--code-caret`, `--code-border`, `--code-line-active`, `--code-selection`) + syntax roles (`--code-text`, `--code-comment`, `--code-keyword`, `--code-string`, `--code-number`, `--code-boolean`, `--code-function`, `--code-property`, `--code-operator`, `--code-punctuation`, `--code-tag`). The per-theme `--code-*` blocks in `client/src/themes/*.css` are the only home of this tier (the vendored bundle ships no `tokens/code.css` — the tier postdates it); the skins derive syntax from their own role hues — **keyword→trigger, string→success, number→agent, function→model, tag→tool, comment→faint, punctuation→muted** — on an adaptive dark/light code surface (`color-mix(#000 45%, --bg-panel)` dark, `color-mix(#000 5%, --surface-card)` light).Consumed as `var(--code-*)` in [index.css](../client/src/index.css) (`.code-editor-container`, `.console-json-output`, the `.chat-markdown` dark overrides) and exposed as Tailwind utilities (`text-code-tag`, `bg-code-bg`, …) via the `@theme inline` bridge; the `OutputPanel` `@uiw/react-json-view` viewer reads the same vars. This **replaced the old global dracula-hardcoded `--prism-*` block and the dead `getPrismTokenCSS()` helper** — code/JSON now paints in each theme's palette instead of one dracula scheme everywhere. (`prismjs` is still the tokenizer; only the colours moved to `--code-*`.)@@ -227,7 +227,7 @@ the surrounding chrome. Every other surface uses Tailwind + tokens. New themes c## What's done vs deferred### Done-- **`--node-pulse-color` contract** — executing-node glow color is independent of `--node-color` (the plugin accent). Each theme overrides `--node-pulse-color` to its highest-contrast accent (Cyber neon cyan, Surveillance REC red, Renaissance ultramarine `--lapis-bright`, Atomic turquoise, etc.) so the glow stays visible against any canvas background. Defined in [base.css](../client/src/themes/base.css) at `:root`, overridden in each per-theme file. The executing keyframes (`node-pulse` + per-theme `cyber-pulse-exec` / `surv-pulse-exec` / `ren-pulse-exec`) and the per-theme `--pulse-keyframe` / `--pulse-duration` / `--pulse-timing` tokens live in [animations.css](../client/src/themes/animations.css); base.css's `.sq-node[data-executing] .sq-node-box` / `.react-flow__node.executing .{sq-node-box,node}` rule reads `var(--pulse-keyframe, node-pulse)`, so a theme picks its pulse by overriding ONE token (Cyber → `cyber-pulse-exec`, Surveillance → `surv-pulse-exec`, Renaissance → `ren-pulse-exec`) — no high-specificity per-theme animation rule. `node-pulse` is a triple-layer expanding box-shadow (12px ring + 32px mid halo + 56px outer halo) consuming `var(--node-pulse-color)` + the shared `--tint-pulse-*` alphas. Trigger nodes use a separate continuous `.opencompany-trigger-armed` "listening" heartbeat (`trigger-listening` keyframe) while waiting, plus `.opencompany-bolt` on the ⚡ badge — distinct from the one-shot execution pulse. **Never animate `opacity` on whole-node selectors** — it fades the node icon + content, not just the glow.+- **`--node-pulse-color` contract** — executing-node glow color is independent of `--node-color` (the plugin accent). Each decorated skin overrides `--node-pulse-color` to its highest-contrast accent (light/dark deliberately keep the base.css `var(--info)` fallback) (Cyber neon cyan, Surveillance REC red, Renaissance ultramarine `--lapis-bright`, Atomic turquoise, etc.) so the glow stays visible against any canvas background. Defined in [base.css](../client/src/themes/base.css) at `:root`, overridden in each per-theme file. The executing keyframes (`node-pulse` + per-theme `cyber-pulse-exec` / `surv-pulse-exec` / `ren-pulse-exec`) and the per-theme `--pulse-keyframe` / `--pulse-duration` / `--pulse-timing` tokens live in [animations.css](../client/src/themes/animations.css); base.css's `.sq-node[data-executing] .sq-node-box` / `.react-flow__node.executing .{sq-node-box,node}` rule reads `var(--pulse-keyframe, node-pulse)`, so a theme picks its pulse by overriding ONE token (Cyber → `cyber-pulse-exec`, Surveillance → `surv-pulse-exec`, Renaissance → `ren-pulse-exec`) — no high-specificity per-theme animation rule. `node-pulse` is a triple-layer expanding box-shadow (12px ring + 32px mid halo + 56px outer halo) consuming `var(--node-pulse-color)` + the shared `--tint-pulse-*` alphas. Trigger nodes use a separate continuous `.opencompany-trigger-armed` "listening" heartbeat (`trigger-listening` keyframe) while waiting, plus `.opencompany-bolt` on the ⚡ badge — distinct from the one-shot execution pulse. **Never animate `opacity` on whole-node selectors** — it fades the node icon + content, not just the glow.- **`data-page-hidden` animation pause** — [Dashboard.tsx](../client/src/Dashboard.tsx) mounts a `visibilitychange` listener that toggles `data-page-hidden` on `<html>`; [base.css](../client/src/themes/base.css) declares `html[data-page-hidden] *, *::before, *::after { animation-play-state: paused !important; }`. Without this, paused CSS keyframes accumulate frames in the compositor queue while the tab is hidden; on tab return all 50+ executing nodes' triple-layer pulses + Cyber's full-viewport `cyber-flicker` / `cyber-roll` resume simultaneously, stalling the GPU compositor 100-200ms and blocking input dispatch (first-click-feels-frozen pattern). The unpause is deferred via `requestAnimationFrame` so input dispatch wins the frame before composite resumes.- **Parameter panel theme contract** — MasterSkillEditor, OutputPanel, MiddleSection, ToolSchemaEditor, ParameterPanel removed `useAppTheme()`. Every surface renders against Tailwind tokens + new-contract CSS custom props. Section headers carry the display-typography triplet (`font-display tracking-[var(--type-tracking-display)] [text-transform:var(--type-uppercase)] text-fg-default`); action buttons use `<ActionButton intent="run|stop|save|config|tools">`; backgrounds use `bg-bg-elevated` / `bg-bg-panel` / `bg-bg-input` from the surface tier table above. EditableNodeLabel emits both `sq-node-label` and `node-label` classNames so per-theme typography rules fire under either topology. Per-theme scrollbar webkit rules (`::-webkit-scrollbar-thumb` etc.) declared in all 12 themes — gold (Renaissance), square-cornered (Atomic / Edo / Greek / Wasteland / Plague), metallic (Steampunk), phosphor (Rot), neon (Cyber), REC-red (Surveillance), shadcn neutral (Light / Dark).- **Canvas-node class topology alignment** (W26) — TriggerNode, StartNode, ToolkitNode migrated from `.node` (rectangular spec-card) topology to `.sq-node` / `.sq-node-box` (square-icon node) topology so per-theme decorations (Steampunk brass rivets, Edo hanko seal, Surveillance REC LED, Renaissance gold emblem) reach them. Status pips, gear buttons, and React Flow handles on every node component now carry `.sq-node-pip` / `.sq-node-gear` / `.sq-node-handle.in/.out` (square nodes) or `.node-pip` / `.node-gear` / `.node-handle.in/.out` (rectangular nodes — AIAgentNode, GenericNode, TeamMonitorNode). Pip background is data-driven via `data-status="idle | executing | waiting | success | error"` — base.css picks the colour from shadcn semantic tokens; per-theme files override. Inline JS-computed `backgroundColor` / `border` / `animation` on these elements stripped — CSS owns visuals. Cyber's `.node-trigger` rule extended to dual-target both rectangular and square topologies (`.sq-node.node-trigger .sq-node-box`). Orphan `.node-output` rule removed. EditableNodeLabel now emits both `sq-node-label` and `node-label` classNames so per-theme typography rules fire. StartNode reads `nodeColor` from `definition?.defaults?.color` instead of hardcoded `theme.dracula.cyan`.@@ -236,7 +236,7 @@ the surrounding chrome. Every other surface uses Tailwind + tokens. New themes c- **Per-theme icons** (W23) — [client/src/assets/icons/themedGlyphs.ts](../client/src/assets/icons/themedGlyphs.ts) ports all 290 SVG glyphs from `design_handoff_machinaos_themes/app/icons.js` (29 keys × 10 themes). [NodeIcon.tsx](../client/src/assets/icons/NodeIcon.tsx) consults `THEMED_GLYPHS[activeTheme][key]` first; falls through to `lucide-react` / `lobehub:` / `asset:` dispatch on miss. Renaissance gets heraldic shields, Cyber wireframe + glow, Plague woodcut hatching, etc. Light + dark themes have no entries — they fall through to existing dispatch.- **Canvas grid + cursors** (W24) — `--canvas-grid` and `--cursor-default` slots declared in [base.css](../client/src/themes/base.css) and bound to `.canvas-host`. Per-theme grids: Cyber 24px magenta+cyan grid, Surveillance CCTV crosshair + REC overlay, Renaissance fleur-de-lis cartography, Greek key meander, Steampunk brass bolt grid, Atomic mid-century starburst, Wasteland cracked-earth fissures, Rot flagstone, Plague broadsheet red-X. Custom cursors: Cyber crosshair reticle, Surveillance snooper reticle, Renaissance gold-leaf quill.- **Decorative HTML primitives** (W25) — [client/src/components/SvgFilterDefs.tsx](../client/src/components/SvgFilterDefs.tsx) mounts a hidden inline `<svg><defs>` at app root exposing `#ink-blot` (Renaissance edge warble), `#noise` (Wasteland turbulence), `#crt` (Cyber chromatic aberration) so per-theme `filter: url(#...)` rules resolve. [client/src/components/ui/DropCap.tsx](../client/src/components/ui/DropCap.tsx) wraps content with `v-display drop-cap` className so the Renaissance `::first-letter` ornament rule fires.-- **Token contract**: all 12 themes in [client/src/themes/](../client/src/themes) (2 base + 5 utopian + 5 dystopian; the 10 decorative ones ported from the handoff). 13 CSS files, ~3,750 LOC total.+- **Token contract**: all 12 themes in [client/src/themes/](../client/src/themes) (2 base + 5 utopian + 5 dystopian; the 10 decorative ones ported from the handoff). 14 CSS files (base + animations + 12 themes), ~4,900+ LOC total.- **ThemeProvider** ([client/src/contexts/ThemeContext.tsx](../client/src/contexts/ThemeContext.tsx)) — 12-way `ThemeName`, `DARK_FAMILY` ⊃ `{dark, cyber, wasteland, rot, surveillance, steampunk}`, legacy `darkMode` localStorage migration on first load- **ThemeSwitcher** — DropdownMenu grouped into System / Utopian / Dystopian sections, all 12 themes- **Tailwind v4 `@theme inline`** exposing new-contract utilities (`bg-bg-app`, `text-fg-default`, `border-border-default`, `font-display`, `font-body`, `rounded-pill`)@@ -254,7 +254,7 @@ the surrounding chrome. Every other surface uses Tailwind + tokens. New themes c- **Canvas overlay packs** — [client/src/hooks/useAppTheme.ts](../client/src/hooks/useAppTheme.ts) extended from 2-way (`{light, dark}`) to 10-way: a `THEME_OVERRIDES` map applies a small overlay (primary, focus, focusRing, action colours, edge palette) on top of `lightColors` / `darkColors`. Existing call sites continue to read `theme.colors.X` and `theme.isDarkMode` unchanged; canvas selection rings, action buttons, and edge strokes pick up the active theme's accents under any of the 10 themes.### Deferred (future PRs)-- **`--*-soft` token family** — `--info-soft`, `--warning-soft`, `--danger-soft`, `--success-soft` are referenced across multiple theme rules (greek, atomic, wasteland, plague, action-deploy, chat-msg-user, wf-card.selected, cmdk-item.active, action-run) but never declared. the hex migration converted the inline alpha compositions to `color-mix(in srgb, var(--info) 25%, transparent)`; the broader undeclared-family pattern is still tech debt. Centralise the family as `color-mix` tokens alongside their base (e.g. `--info-soft: color-mix(in srgb, var(--info) 18%, transparent)`) in a theme/base file.+- **`--*-soft` token family** — RESOLVED (theme fidelity pass): `--info-soft` / `--success-soft` / `--warning-soft` / `--danger-soft` (plus the `--danger` alias for `--destructive`) are now declared in `base.css` `:root` as `color-mix(in srgb, var(--X) var(--tint-semantic-soft), transparent)` with `--tint-semantic-soft: 15%` on the shared tint scale. The ~24 theme-rule references (greek, plague, rot, atomic, wasteland, surveillance) that previously computed to invalid-and-transparent now render their intended tinted fills. Themes may override any of them.- **Edo / Steampunk / Atomic canvas-host pseudo-element decorations** — these themes' richer canvas overlays (Edo radial-gradient ink-wash mountain, Steampunk corner radial accents, Atomic dot constellation) are pseudo-element decorations rather than tileable `--canvas-grid` patterns; W24 ported the tileable layer only. Wire via `.canvas::before/::after` rules in a future pass if needed.- **Parameter panel internals** — RESOLVED: `ParameterRenderer`, `MiddleSection`, `MasterSkillEditor`, `ToolSchemaEditor` are fully on shadcn primitives + tokens (zero `useAppTheme` / `theme.colors`); section headers carry the display-typography triplet. The panel modal also picks up per-theme `.modal` / `.modal-head` / `.modal-title` decoration via `Modal.tsx`.- **Credentials modal sub-panels** — `OAuthPanel`, `EmailPanel`, `ApiKeyPanel`, `QrPairingPanel` headers same pattern.@@ -357,35 +357,17 @@ Type-specific co-classes (Cyber-only today): `.node-agent` colors AIAgentNode ne## Canvas-wide edge + node status animations (`canvasAnimations.ts`)-[client/src/styles/canvasAnimations.ts](../client/src/styles/canvasAnimations.ts) owns the `@keyframes` + `.react-flow__edge.{status}` + `.react-flow__node.{status}` rules injected once into Dashboard's `<style>` tag. It is the single home for canvas-wide rules that need to match React Flow's wrapper classes (per-node inline animations live in their own components and read theme tokens directly — see the visual contract above).+[client/src/styles/canvasAnimations.ts](../client/src/styles/canvasAnimations.ts) owns the `@keyframes` + `.react-flow__edge.{status}` rules injected once into Dashboard's `<style>` tag. It is the single home for canvas-wide rules that need to match React Flow's wrapper classes (per-node inline animations live in their own components and read theme tokens directly — see the visual contract above).-**Three named exports** — adding a new keyframe or status visual is a single-file change:+**Fully static since the design-handoff edge migration.** `buildCanvasStyles()` takes no arguments and the stylesheet is built once at module scope in Dashboard — every colour, width, and dash rhythm is a CSS token, so theme switches restyle it via variable resolution, never a rebuild. The old `CanvasStatusColors` interface (per-theme hex packs fed from `useAppTheme`) was deleted; **do not reintroduce it — add a token instead**.-| Symbol | Role |-|---|---|-| `KEYFRAMES` | `@keyframes` definitions for edges (`dashFlow` — the marching-ants stroke-dashoffset cycle on executing edges) |-| `edgeStatusStyles(colors)` | `.react-flow__edge.{selected,executing,completed,error,pending,memory-active,tool-active}` stroke rules |-| `nodeStatusStyles(_colors)` | `.react-flow__node.{...}` status-class colours (currently a no-op stub; the arg is kept on the signature so the `buildCanvasStyles` / `CanvasStatusColors` contract stays stable for downstream consumers) |-| `buildCanvasStyles(colors)` | Composes the three into the final string for Dashboard |--**Light/dark distinction lives entirely in `theme.ts`.** `buildCanvasStyles(colors)` is single-arg and the file ships **zero hardcoded hex colours** — the theme object provides different values per mode, so this module knows nothing about which theme is active.--`CanvasStatusColors` is the contract interface, carrying exactly eight edge-stroke keys:+**Edge visual contract (design-handoff):**-```ts-export interface CanvasStatusColors {- edgeDefault: string;- edgeSelected: string;- edgeExecuting: string;- edgeCompleted: string;- edgeError: string;- edgePending: string;- edgeMemoryActive: string;- edgeToolActive: string;-}-```+- **Resting edges** are one pale neutral: `stroke: var(--edge-stroke)` (a `--fg-default` mix at `--tint-edge`, default 62%), `stroke-width: var(--edge-stroke-width)` (1.5px), `stroke-dasharray: var(--edge-dash)` (5 5), orthogonal `step` geometry (`defaultEdgeOptions.type: 'step'`; `ConditionalEdge` uses `getSmoothStepPath({borderRadius: 0})`). The built-in `smoothstep` name is remapped to React Flow's `StepEdge` renderer in Dashboard's `edgeTypes`, so persisted pre-step workflows render orthogonal without data migration. The in-progress connection line (`.react-flow__connection-path`) shares the resting rule; Dashboard passes no `connectionLineStyle`.+- **Status classes recolor with semantic tokens** so runtime feedback survives in every theme: `selected` → `--accent`, `executing` → `--node-pulse-color` + `dashFlow` marching ants, `completed` → `--success`, `error` → `--destructive`, `pending` → `--fg-muted` + `dashFlow`, `memory-active` → `--node-agent`, `tool-active` → `--node-tool`, `skill-active` → `--node-skill`. Widths come from `--edge-stroke-width-active` (2.5px) / `--edge-stroke-width-done` (2px); the active dash rhythm is `--edge-dash-active` (8 4). All edge tokens live in [base.css](../client/src/themes/base.css); themes may override any of them.+- **No `!important` on the resting rule** (nothing competes — Dashboard inlines no stroke); status rules keep `!important` so they beat the resting rule and ConditionalEdge's inline conditional-accent styling during runs. `dashFlow` stops under `prefers-reduced-motion`.-**No `nodeGlow` keyframe here.** This module used to inject a `nodeGlow` keyframe targeting the React Flow wrapper, but it was dead code (only the inner `.node` child animated) and was removed. Node execution glow is owned solely by [base.css](../client/src/themes/base.css) — the `node-pulse` keyframe + `.react-flow__node.executing .node` / `.sq-node[data-executing] .sq-node-box` rules (see [`--node-pulse-color` contract](#done) above). Do not re-introduce a competing `nodeGlow` keyframe here.+**No `nodeGlow` keyframe here.** This module used to inject a `nodeGlow` keyframe targeting the React Flow wrapper, but it was dead code (only the inner `.node` child animated) and was removed. Node execution glow is owned solely by [base.css](../client/src/themes/base.css) — the `node-pulse` keyframe + `.react-flow__node.executing .node` / `.sq-node[data-executing] .sq-node-box` rules (see [`--node-pulse-color` contract](#done) above). Do not re-introduce a competing `nodeGlow` keyframe here. Success/error **outcome glow** also lives in base.css: the Wave-29 `data-status` selectors plus `.react-flow__node.completed/.error` class twins that fire from Dashboard's execution-status classNames (the classNames are the trigger; `data-status` on the box remains the per-theme override contract).## Sound system@@ -403,7 +385,7 @@ Each theme declares `--sound-pack: "<pack>"` in its `:root[data-theme="..."]` bl| rot | `crypt` | Dripping water + low organ || plague | `bell` | Struck church bell + stone echo || surveillance | `telex` | Typewriter clack + Geiger tick |-| light / dark | (system fallback `parchment`/`terminal` if requested) | — |+| light / dark | `parchment` / `terminal` (hard-set in light.css / dark.css) | — |### Event wiring (W18)@@ -442,6 +424,8 @@ Adding a new sound event: extend `SoundEvent` in `lib/sound.ts`, add an entry pe- `surv-blink` (Surveillance)- `ren-flicker` (Renaissance)- generic `.animate-pulse` (used by node execution pip)+- the executing node pulse on BOTH node families — `.react-flow__node.executing .node` (rect) and `.react-flow__node.executing .sq-node-box` / `.sq-node[data-executing] .sq-node-box` (square; Square/Trigger/Toolkit/Start nodes are the dominant canvas topology, so the square selectors are load-bearing)+- the edge `dashFlow` marching-ants animation on `.executing` / `.pending` edges (guarded inside [canvasAnimations.ts](../client/src/styles/canvasAnimations.ts)'s injected stylesheet)Plus any `transition` on canvas-host pseudo-elements that synthesise motion. Sounds are not motion — they remain enabled regardless. The user-facing audio toggle lives in Settings → Audio → Sound effects.@@ -466,15 +450,13 @@ const THEME_OVERRIDES: Partial<Record<ThemeName, ColorOverride>> = {primary: '#f51eb6', // neon magentafocus: '#1dd9e5',actionRun: '#26d97a',- edgeDefault: '#f51eb6',- edgeSelected: '#1dd9e5',/* ... */},/* ... 9 more themes */};```-The overlay only re-binds the keys most visible on the canvas (primary, focus, action buttons, edge palette). Everything else (background, text, border) stays on the chosen base pack (`darkColors` for `DARK_BASE_THEMES`, `lightColors` for the rest). Adding a new theme means adding one `THEME_OVERRIDES` entry; missing entries are a no-op (theme falls back to pure light/dark).+The overlay only re-binds the keys most visible on the canvas (primary, focus, action buttons). **Canvas edge strokes are no longer part of the packs** — the design-handoff edge migration moved them to CSS tokens (`--edge-*` in base.css + semantic status recolors in `canvasAnimations.ts`); do not reintroduce `edge*` keys here. Everything else (background, text, border) stays on the chosen base pack (`darkColors` for `DARK_BASE_THEMES`, `lightColors` for the rest). Adding a new theme means adding one `THEME_OVERRIDES` entry; missing entries are a no-op (theme falls back to pure light/dark).## Verification checklist