Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(design-system): migrate tokens to hex + color-mix, vendor bundle, add animation/trigger layer
trohitg5ca4f39aa6d4
diff --git a/CLAUDE.md b/CLAUDE.mdindex e07e35c5..c3d8d7f7 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -13,6 +13,7 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire| **[UI Migration Plan](./docs-internal/ui_migration_plan.md)** | antd → shadcn/ui migration plan + completion log. Waves 1–10 done. Full frontend is schema-driven (backend SSOT); remaining DIY widget registry (ex-Phase 6) is the one deferred item. || **[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)** | 10-way visual theme system — 5 utopian (light, dark, 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), shadcn HSL-triplet bridge, action role tokens, 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 10 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/machinaos/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). || **[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). 18 `Credential` subclasses live in each node folder's `_credentials.py` (or inline for single-use). `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, `google_auth.py`, `triggers.py`). **Wave 11.H added "self-contained plugin folders"** — up to six 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`) 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/client/src/Dashboard.tsx b/client/src/Dashboard.tsxindex b355ebff..15859dad 100644--- a/client/src/Dashboard.tsx+++ b/client/src/Dashboard.tsx@@ -1204,12 +1204,11 @@ const DashboardContent: React.FC = () => {brackets under Cyber, riveted ridged frame under Steampunk,REC dot under Surveillance, etc.). Decorations declarepointer-events: none so they don't intercept clicks. */}- <div className="app-frame" style={{+ <div className="app-frame bg-bg-app" style={{width: '100%',height: '100vh',display: 'flex',flexDirection: 'column',- backgroundColor: theme.colors.background,fontFamily: 'system-ui, sans-serif',}}>{/* Top Toolbar */}@@ -1256,7 +1255,7 @@ const DashboardContent: React.FC = () => {width: sidebarVisible ? '280px' : '0px',overflow: 'hidden',transition: 'width 0.3s ease',- borderRight: sidebarVisible ? `1px solid ${theme.colors.border}` : 'none',+ borderRight: sidebarVisible ? '1px solid var(--border-default)' : 'none',display: 'flex',flexDirection: 'column',}}>@@ -1345,7 +1344,7 @@ const DashboardContent: React.FC = () => {width: componentPaletteVisible ? theme.layout.sidebarWidth : '0px',overflow: 'hidden',transition: 'width 0.3s ease',- borderLeft: componentPaletteVisible ? `1px solid ${theme.colors.border}` : 'none',+ borderLeft: componentPaletteVisible ? '1px solid var(--border-default)' : 'none',display: 'flex',flexDirection: 'column',}}>diff --git a/client/src/components/ConditionalEdge.tsx b/client/src/components/ConditionalEdge.tsxindex e465b53c..c9aa4944 100644--- a/client/src/components/ConditionalEdge.tsx+++ b/client/src/components/ConditionalEdge.tsx@@ -74,7 +74,7 @@ const ConditionalEdge: React.FC<ConditionalEdgeProps> = ({markerEnd={markerEnd}style={{...style,- stroke: hasCondition ? 'hsl(var(--accent))' : undefined,+ stroke: hasCondition ? 'var(--accent)' : undefined,strokeWidth: hasCondition ? 2 : undefined,strokeDasharray: hasCondition ? '5 3' : undefined,}}@@ -92,7 +92,7 @@ const ConditionalEdge: React.FC<ConditionalEdgeProps> = ({hasCondition? 'border-accent bg-accent/20 text-accent': 'border-border bg-card text-muted-foreground',- selected && 'shadow-[0_0_6px_hsl(var(--node-agent))]'+ selected && 'shadow-[0_0_6px_var(--node-agent)]')}><span className="mr-1 inline-flex">diff --git a/client/src/components/ParameterRenderer.tsx b/client/src/components/ParameterRenderer.tsxindex 4d0e4076..5b09a670 100644--- a/client/src/components/ParameterRenderer.tsx+++ b/client/src/components/ParameterRenderer.tsx@@ -9,11 +9,24 @@ import CodeEditor from './ui/CodeEditor';import DynamicParameterService from '../services/dynamicParameterService';import { useAppStore } from '../store/useAppStore';import { isNodeInBackendGroup } from '../lib/nodeSpec';-import { useAppTheme } from '../hooks/useAppTheme';import { API_CONFIG } from '../config/api';import { useWebSocket } from '../contexts/WebSocketContext';import { useApiKeys } from '../hooks/useApiKeys';import { Input as ShadcnInput } from './ui/input';+import { Textarea } from './ui/textarea';+import { Checkbox } from './ui/checkbox';+import { Slider } from './ui/slider';+import { Alert } from './ui/alert';+import { ActionButton } from './ui/action-button';+import {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectTrigger,+ SelectValue,+} from './ui/select';import { shouldShowParameter } from '../utils/parameterVisibility';// Map node types to provider keys for AI model nodes@@ -40,8 +53,7 @@ const CollectionRenderer: React.FC<{value: any;onChange: (value: any) => void;allParameters?: Record<string, any>;- theme: ReturnType<typeof useAppTheme>;-}> = ({ parameter, value, onChange, allParameters, theme }) => {+}> = ({ parameter, value, onChange, allParameters }) => {const [showAddOption, setShowAddOption] = useState(false);const currentValue = value || {};const addedOptions = Object.keys(currentValue).filter(key => currentValue[key] !== undefined);@@ -74,12 +86,7 @@ const CollectionRenderer: React.FC<{return (<div>{addedOptions.length === 0 && (- <div style={{- fontSize: '14px',- color: theme.colors.textSecondary,- marginBottom: '12px',- padding: '8px 0'- }}>+ <div className="text-sm text-muted-foreground mb-3 py-2">No properties</div>)}@@ -89,30 +96,13 @@ const CollectionRenderer: React.FC<{if (!option) return null;return (- <div key={optionName} style={{- marginBottom: '16px',- padding: '12px',- border: `1px solid ${theme.colors.border}`,- borderRadius: '4px',- backgroundColor: theme.colors.backgroundAlt,- position: 'relative'- }}>+ <div+ key={optionName}+ className="relative mb-4 p-3 rounded-md border border-border bg-muted"+ ><buttononClick={() => removeOption(optionName)}- style={{- position: 'absolute',- top: '6px',- right: '6px',- background: 'none',- border: 'none',- color: theme.colors.textSecondary,- cursor: 'pointer',- fontSize: '14px',- padding: '2px 4px',- borderRadius: '2px'- }}- onMouseEnter={(e) => e.currentTarget.style.backgroundColor = theme.colors.border}- onMouseLeave={(e) => e.currentTarget.style.backgroundColor = 'transparent'}+ className="absolute top-1.5 right-1.5 rounded-sm px-1 py-0.5 text-sm text-muted-foreground cursor-pointer hover:bg-border"title="Remove">✕@@ -128,77 +118,33 @@ const CollectionRenderer: React.FC<{})}{availableOptions.length > 0 && (- <div style={{ position: 'relative' }}>+ <div className="relative"><buttononClick={() => setShowAddOption(!showAddOption)}- style={{- width: '100%',- padding: '10px 12px',- border: `1px solid ${theme.colors.border}`,- borderRadius: '4px',- backgroundColor: theme.colors.backgroundAlt,- color: theme.colors.textSecondary,- cursor: 'pointer',- fontSize: '14px',- display: 'flex',- alignItems: 'center',- justifyContent: 'space-between',- transition: 'all 0.2s ease'- }}- onMouseEnter={(e) => e.currentTarget.style.backgroundColor = theme.colors.borderHover}- onMouseLeave={(e) => e.currentTarget.style.backgroundColor = theme.colors.backgroundAlt}+ className="flex w-full items-center justify-between rounded-md border border-border bg-muted px-3 py-2.5 text-sm text-muted-foreground cursor-pointer transition-colors hover:bg-accent">{parameter.placeholder || 'Add Option'}- <span style={{- transform: showAddOption ? 'rotate(180deg)' : 'rotate(0deg)',- transition: 'transform 0.2s ease'- }}>+ <span+ className="transition-transform"+ style={{ transform: showAddOption ? 'rotate(180deg)' : 'rotate(0deg)' }}+ >▼</span></button>{showAddOption && (- <div style={{- position: 'absolute',- top: '100%',- left: 0,- right: 0,- zIndex: 1000,- backgroundColor: theme.colors.background,- border: `1px solid ${theme.colors.border}`,- borderRadius: '4px',- marginTop: '2px',- boxShadow: `0 4px 6px -1px ${theme.colors.shadow}`,- maxHeight: '200px',- overflowY: 'auto'- }}>+ <div className="absolute left-0 right-0 top-full z-[1000] mt-0.5 max-h-[200px] overflow-y-auto rounded-md border border-border bg-background shadow-sm">{availableOptions.map((option: any, index: number) => (<buttonkey={option.name}onClick={() => addOption(option.name)}- style={{- width: '100%',- padding: '10px 12px',- border: 'none',- backgroundColor: 'transparent',- color: theme.colors.text,- cursor: 'pointer',- fontSize: '14px',- textAlign: 'left',- borderBottom: index < availableOptions.length - 1 ? `1px solid ${theme.colors.border}` : 'none'- }}- onMouseEnter={(e) => e.currentTarget.style.backgroundColor = theme.colors.backgroundAlt}- onMouseLeave={(e) => e.currentTarget.style.backgroundColor = 'transparent'}+ className={`w-full cursor-pointer px-3 py-2.5 text-left text-sm text-foreground transition-colors hover:bg-muted ${index < availableOptions.length - 1 ? 'border-b border-border' : ''}`}>- <div style={{ fontWeight: '500' }}>+ <div className="font-medium">{option.displayName}</div>{option.description && (- <div style={{- fontSize: '12px',- color: theme.colors.textSecondary,- marginTop: '2px'- }}>+ <div className="mt-0.5 text-xs text-muted-foreground">{option.description}</div>)}@@ -219,12 +165,11 @@ const GroupIdSelector: React.FC<{onNameChange?: (name: string) => void;storedName?: string;placeholder?: string;- theme: ReturnType<typeof useAppTheme>;isDragOver: boolean;onDragOver: (e: React.DragEvent) => void;onDragLeave: (e: React.DragEvent) => void;onDrop: (e: React.DragEvent) => void;-}> = ({ value, onChange, onNameChange, storedName, placeholder, theme, isDragOver, onDragOver, onDragLeave, onDrop }) => {+}> = ({ value, onChange, onNameChange, storedName, placeholder, isDragOver, onDragOver, onDragLeave, onDrop }) => {const [groups, setGroups] = useState<Array<{ jid: string; name: string; topic?: string; size?: number; is_community?: boolean }>>([]);const [isLoading, setIsLoading] = useState(false);const [showDropdown, setShowDropdown] = useState(false);@@ -294,11 +239,12 @@ const GroupIdSelector: React.FC<{// Display value: show group name if selected, otherwise show JIDconst displayValue = selectedGroupName || value;const isGroupSelected = selectedGroupName !== null && value;+ const isTemplate = !!(value && value.includes('{{'));return (- <div style={{ position: 'relative' }}>- <div style={{ display: 'flex', gap: '8px', alignItems: 'center' }}>- <input+ <div className="relative">+ <div className="flex items-center gap-2">+ <ShadcnInputtype="text"value={displayValue}onChange={handleInputChange}@@ -306,133 +252,48 @@ const GroupIdSelector: React.FC<{onDragOver={onDragOver}onDragLeave={onDragLeave}onDrop={onDrop}- style={{- flex: 1,- padding: '8px 12px',- border: isDragOver ? `2px solid ${theme.colors.focus}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- backgroundColor: isGroupSelected ? theme.colors.backgroundAlt : (isDragOver ? theme.colors.focusRing : theme.colors.background),- color: isGroupSelected ? theme.colors.success : (value && value.includes('{{') ? theme.colors.templateVariable : theme.colors.text),- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: value && value.includes('{{') ? 'monospace' : 'system-ui, sans-serif',- fontWeight: isGroupSelected ? '500' : 'normal'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ className={`flex-1 ${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isGroupSelected ? 'bg-muted text-success font-medium' : (isTemplate ? 'text-info font-mono' : '')}`}/>- <button+ <ActionButton+ intent="config"onClick={handleLoadGroups}disabled={isLoading}- style={{- padding: '8px 12px',- border: `1px solid ${isLoading ? theme.colors.border : `${theme.colors.focus}40`}`,- borderRadius: '6px',- backgroundColor: isLoading ? 'transparent' : `${theme.colors.focus}18`,- color: isLoading ? theme.colors.textMuted : theme.colors.focus,- cursor: isLoading ? 'wait' : 'pointer',- fontSize: '13px',- fontWeight: 600,- transition: 'all 0.2s ease',- whiteSpace: 'nowrap',- opacity: isLoading ? 0.7 : 1- }}- onMouseEnter={(e) => {- if (!isLoading) {- e.currentTarget.style.backgroundColor = `${theme.colors.focus}30`;- }- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = isLoading ? 'transparent' : `${theme.colors.focus}18`;- }}title="Load WhatsApp groups">{isLoading ? 'Loading...' : 'Load'}- </button>+ </ActionButton></div>{/* Show JID below when group name is displayed */}{isGroupSelected && (- <div style={{- fontSize: '11px',- color: theme.colors.textSecondary,- marginTop: '4px',- fontFamily: 'monospace'- }}>+ <div className="mt-1 font-mono text-[11px] text-muted-foreground">{value}</div>)}{error && (- <div style={{- fontSize: '12px',- color: theme.colors.error,- marginTop: '4px'- }}>+ <div className="mt-1 text-xs text-destructive">{error}</div>)}{showDropdown && groups.length > 0 && (- <div style={{- position: 'absolute',- top: '100%',- left: 0,- right: 0,- marginTop: '4px',- backgroundColor: theme.colors.background,- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- boxShadow: `0 4px 12px ${theme.colors.shadow}`,- maxHeight: '200px',- overflowY: 'auto',- zIndex: 1000- }}>+ <div className="absolute left-0 right-0 top-full z-[1000] mt-1 max-h-[200px] overflow-y-auto rounded-md border border-border bg-background shadow-sm">{groups.map((group, index) => (<buttonkey={group.jid}onClick={() => handleSelectGroup(group)}- style={{- width: '100%',- padding: '10px 12px',- border: 'none',- backgroundColor: 'transparent',- color: theme.colors.text,- cursor: 'pointer',- fontSize: '13px',- textAlign: 'left',- borderBottom: index < groups.length - 1 ? `1px solid ${theme.colors.border}` : 'none'- }}- onMouseEnter={(e) => e.currentTarget.style.backgroundColor = theme.colors.backgroundAlt}- onMouseLeave={(e) => e.currentTarget.style.backgroundColor = 'transparent'}+ className={`w-full cursor-pointer px-3 py-2.5 text-left text-[13px] text-foreground transition-colors hover:bg-muted ${index < groups.length - 1 ? 'border-b border-border' : ''}`}>- <div style={{ fontWeight: '500' }}>{group.name}</div>- <div style={{- fontSize: '11px',- color: theme.colors.textSecondary,- marginTop: '2px',- fontFamily: 'monospace'- }}>+ <div className="font-medium">{group.name}</div>+ <div className="mt-0.5 font-mono text-[11px] text-muted-foreground">{group.jid}- {group.size && <span style={{ marginLeft: '8px' }}>({group.size} members)</span>}+ {group.size && <span className="ml-2">({group.size} members)</span>}</div></button>))}<buttononClick={() => setShowDropdown(false)}- style={{- width: '100%',- padding: '8px 12px',- border: 'none',- borderTop: `1px solid ${theme.colors.border}`,- backgroundColor: theme.colors.backgroundAlt,- color: theme.colors.textSecondary,- cursor: 'pointer',- fontSize: '12px',- textAlign: 'center'- }}- onMouseEnter={(e) => e.currentTarget.style.color = theme.colors.text}- onMouseLeave={(e) => e.currentTarget.style.color = theme.colors.textSecondary}+ className="w-full cursor-pointer border-t border-border bg-muted px-3 py-2 text-center text-xs text-muted-foreground transition-colors hover:text-foreground">Close</button>@@ -449,13 +310,12 @@ const SenderNumberSelector: React.FC<{onNameChange?: (name: string) => void;storedName?: string;placeholder?: string;- theme: ReturnType<typeof useAppTheme>;isDragOver: boolean;onDragOver: (e: React.DragEvent) => void;onDragLeave: (e: React.DragEvent) => void;onDrop: (e: React.DragEvent) => void;groupId: string; // The selected group to load members from-}> = ({ value, onChange, onNameChange, storedName, placeholder, theme, isDragOver, onDragOver, onDragLeave, onDrop, groupId }) => {+}> = ({ value, onChange, onNameChange, storedName, placeholder, isDragOver, onDragOver, onDragLeave, onDrop, groupId }) => {const [members, setMembers] = useState<Array<{ phone: string; name: string; jid: string; is_admin?: boolean }>>([]);const [isLoading, setIsLoading] = useState(false);const [showDropdown, setShowDropdown] = useState(false);@@ -533,11 +393,12 @@ const SenderNumberSelector: React.FC<{// Display value: show member name if selected, otherwise show phoneconst displayValue = selectedMemberName || value;const isMemberSelected = selectedMemberName !== null && value;+ const isTemplate = !!(value && value.includes('{{'));return (- <div style={{ position: 'relative' }}>- <div style={{ display: 'flex', gap: '8px', alignItems: 'center' }}>- <input+ <div className="relative">+ <div className="flex items-center gap-2">+ <ShadcnInputtype="text"value={displayValue}onChange={handleInputChange}@@ -545,107 +406,39 @@ const SenderNumberSelector: React.FC<{onDragOver={onDragOver}onDragLeave={onDragLeave}onDrop={onDrop}- style={{- flex: 1,- padding: '8px 12px',- border: isDragOver ? `2px solid ${theme.colors.focus}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- backgroundColor: isMemberSelected ? theme.colors.backgroundAlt : (isDragOver ? theme.colors.focusRing : theme.colors.background),- color: isMemberSelected ? theme.colors.success : (value && value.includes('{{') ? theme.colors.templateVariable : theme.colors.text),- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: value && value.includes('{{') ? 'monospace' : 'system-ui, sans-serif',- fontWeight: isMemberSelected ? '500' : 'normal'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ className={`flex-1 ${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isMemberSelected ? 'bg-muted text-success font-medium' : (isTemplate ? 'text-info font-mono' : '')}`}/>- <button+ <ActionButton+ intent="config"onClick={handleLoadMembers}disabled={isLoading || !groupId}- style={{- padding: '8px 12px',- border: `1px solid ${(isLoading || !groupId) ? theme.colors.border : `${theme.colors.focus}40`}`,- borderRadius: '6px',- backgroundColor: (isLoading || !groupId) ? 'transparent' : `${theme.colors.focus}18`,- color: (isLoading || !groupId) ? theme.colors.textMuted : theme.colors.focus,- cursor: (isLoading || !groupId) ? 'not-allowed' : 'pointer',- fontSize: '13px',- fontWeight: 600,- transition: 'all 0.2s ease',- whiteSpace: 'nowrap',- opacity: (isLoading || !groupId) ? 0.7 : 1- }}- onMouseEnter={(e) => {- if (!isLoading && groupId) {- e.currentTarget.style.backgroundColor = `${theme.colors.focus}30`;- }- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = (isLoading || !groupId) ? 'transparent' : `${theme.colors.focus}18`;- }}title={groupId ? "Load group members" : "Select a group first"}>{isLoading ? 'Loading...' : 'Load'}- </button>+ </ActionButton></div>{/* Show phone below when member name is displayed */}{isMemberSelected && (- <div style={{- fontSize: '11px',- color: theme.colors.textSecondary,- marginTop: '4px',- fontFamily: 'monospace'- }}>+ <div className="mt-1 font-mono text-[11px] text-muted-foreground">{value}</div>)}{error && (- <div style={{- fontSize: '12px',- color: theme.colors.error,- marginTop: '4px'- }}>+ <div className="mt-1 text-xs text-destructive">{error}</div>)}{showDropdown && members.length > 0 && (- <div style={{- position: 'absolute',- top: '100%',- left: 0,- right: 0,- marginTop: '4px',- backgroundColor: theme.colors.background,- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- boxShadow: `0 4px 12px ${theme.colors.shadow}`,- maxHeight: '250px',- overflowY: 'auto',- zIndex: 1000- }}>+ <div className="absolute left-0 right-0 top-full z-[1000] mt-1 max-h-[250px] overflow-y-auto rounded-md border border-border bg-background shadow-sm">{/* All Members option */}<buttononClick={handleClearSelection}- style={{- width: '100%',- padding: '10px 12px',- border: 'none',- backgroundColor: !value ? theme.colors.backgroundAlt : 'transparent',- color: theme.colors.text,- cursor: 'pointer',- fontSize: '13px',- textAlign: 'left',- borderBottom: `1px solid ${theme.colors.border}`- }}- onMouseEnter={(e) => e.currentTarget.style.backgroundColor = theme.colors.backgroundAlt}- onMouseLeave={(e) => e.currentTarget.style.backgroundColor = !value ? theme.colors.backgroundAlt : 'transparent'}+ className={`w-full cursor-pointer border-b border-border px-3 py-2.5 text-left text-[13px] text-foreground transition-colors hover:bg-muted ${!value ? 'bg-muted' : ''}`}>- <div style={{ fontWeight: '500', color: theme.colors.textSecondary }}>All Members</div>- <div style={{ fontSize: '11px', color: theme.colors.textMuted, marginTop: '2px' }}>+ <div className="font-medium text-muted-foreground">All Members</div>+ <div className="mt-0.5 text-[11px] text-muted-foreground">Receive from anyone in group</div></button>@@ -653,49 +446,20 @@ const SenderNumberSelector: React.FC<{<buttonkey={member.jid || member.phone}onClick={() => handleSelectMember(member)}- style={{- width: '100%',- padding: '10px 12px',- border: 'none',- backgroundColor: value === member.phone ? theme.colors.backgroundAlt : 'transparent',- color: theme.colors.text,- cursor: 'pointer',- fontSize: '13px',- textAlign: 'left',- borderBottom: index < members.length - 1 ? `1px solid ${theme.colors.border}` : 'none'- }}- onMouseEnter={(e) => e.currentTarget.style.backgroundColor = theme.colors.backgroundAlt}- onMouseLeave={(e) => e.currentTarget.style.backgroundColor = value === member.phone ? theme.colors.backgroundAlt : 'transparent'}+ className={`w-full cursor-pointer px-3 py-2.5 text-left text-[13px] text-foreground transition-colors hover:bg-muted ${value === member.phone ? 'bg-muted' : ''} ${index < members.length - 1 ? 'border-b border-border' : ''}`}>- <div style={{ fontWeight: '500' }}>+ <div className="font-medium">{member.name || member.phone}- {member.is_admin && <span style={{ marginLeft: '8px', fontSize: '10px', color: theme.colors.warning }}>(Admin)</span>}+ {member.is_admin && <span className="ml-2 text-[10px] text-warning">(Admin)</span>}</div>- <div style={{- fontSize: '11px',- color: theme.colors.textSecondary,- marginTop: '2px',- fontFamily: 'monospace'- }}>+ <div className="mt-0.5 font-mono text-[11px] text-muted-foreground">{member.phone}</div></button>))}<buttononClick={() => setShowDropdown(false)}- style={{- width: '100%',- padding: '8px 12px',- border: 'none',- borderTop: `1px solid ${theme.colors.border}`,- backgroundColor: theme.colors.backgroundAlt,- color: theme.colors.textSecondary,- cursor: 'pointer',- fontSize: '12px',- textAlign: 'center'- }}- onMouseEnter={(e) => e.currentTarget.style.color = theme.colors.text}- onMouseLeave={(e) => e.currentTarget.style.color = theme.colors.textSecondary}+ className="w-full cursor-pointer border-t border-border bg-muted px-3 py-2 text-center text-xs text-muted-foreground transition-colors hover:text-foreground">Close</button>@@ -712,12 +476,11 @@ const ChannelJidSelector: React.FC<{onNameChange?: (name: string) => void;storedName?: string;placeholder?: string;- theme: ReturnType<typeof useAppTheme>;isDragOver: boolean;onDragOver: (e: React.DragEvent) => void;onDragLeave: (e: React.DragEvent) => void;onDrop: (e: React.DragEvent) => void;-}> = ({ value, onChange, onNameChange, storedName, placeholder, theme, isDragOver, onDragOver, onDragLeave, onDrop }) => {+}> = ({ value, onChange, onNameChange, storedName, placeholder, isDragOver, onDragOver, onDragLeave, onDrop }) => {const [channels, setChannels] = useState<Array<{ jid: string; name: string; subscriber_count?: number; role?: string }>>([]);const [isLoading, setIsLoading] = useState(false);const [showDropdown, setShowDropdown] = useState(false);@@ -772,12 +535,12 @@ const ChannelJidSelector: React.FC<{const displayValue = selectedChannelName || value;const isSelected = selectedChannelName !== null && value;- const isTemplate = value && value.includes('{{');+ const isTemplate = !!(value && value.includes('{{'));return (- <div style={{ position: 'relative' }}>- <div style={{ display: 'flex', gap: '8px', alignItems: 'center' }}>- <input+ <div className="relative">+ <div className="flex items-center gap-2">+ <ShadcnInputtype="text"value={displayValue}onChange={handleInputChange}@@ -785,93 +548,45 @@ const ChannelJidSelector: React.FC<{onDragOver={onDragOver}onDragLeave={onDragLeave}onDrop={onDrop}- style={{- flex: 1,- padding: '8px 12px',- border: isDragOver ? `2px solid ${theme.colors.focus}` : `1px solid ${theme.colors.border}`,- borderRadius: theme.borderRadius.md,- fontSize: theme.fontSize.base,- backgroundColor: isSelected ? theme.colors.backgroundAlt : (isDragOver ? theme.colors.focusRing : theme.colors.background),- color: isSelected ? theme.colors.success : (isTemplate ? theme.colors.templateVariable : theme.colors.text),- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: isTemplate ? theme.fontFamily.mono : theme.fontFamily.sans,- fontWeight: isSelected ? theme.fontWeight.medium : theme.fontWeight.normal- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ className={`flex-1 ${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isSelected ? 'bg-muted text-success font-medium' : (isTemplate ? 'text-info font-mono' : '')}`}/>- <button+ <ActionButton+ intent="config"onClick={handleLoadChannels}disabled={isLoading}- style={{- padding: '8px 12px',- border: `1px solid ${isLoading ? theme.colors.border : `${theme.colors.focus}40`}`,- borderRadius: theme.borderRadius.md,- backgroundColor: isLoading ? 'transparent' : `${theme.colors.focus}18`,- color: isLoading ? theme.colors.textMuted : theme.colors.focus,- cursor: isLoading ? 'wait' : 'pointer',- fontSize: theme.fontSize.sm,- fontWeight: theme.fontWeight.semibold,- fontFamily: theme.fontFamily.sans,- transition: 'all 0.2s ease',- whiteSpace: 'nowrap',- opacity: isLoading ? 0.7 : 1- }}- onMouseEnter={(e) => { if (!isLoading) e.currentTarget.style.backgroundColor = `${theme.colors.focus}30`; }}- onMouseLeave={(e) => { e.currentTarget.style.backgroundColor = isLoading ? 'transparent' : `${theme.colors.focus}18`; }}title="Load WhatsApp channels">{isLoading ? 'Loading...' : 'Load'}- </button>+ </ActionButton></div>{isSelected && (- <div style={{ fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginTop: '4px', fontFamily: theme.fontFamily.mono }}>+ <div className="mt-1 font-mono text-xs text-muted-foreground">{value}</div>)}{error && (- <div style={{ fontSize: theme.fontSize.sm, color: theme.colors.error, marginTop: '4px', fontFamily: theme.fontFamily.sans }}>+ <div className="mt-1 text-xs text-destructive">{error}</div>)}{showDropdown && channels.length > 0 && (- <div style={{- position: 'absolute', top: '100%', left: 0, right: 0, marginTop: '4px',- backgroundColor: theme.colors.background, border: `1px solid ${theme.colors.border}`,- borderRadius: theme.borderRadius.md, boxShadow: `0 4px 12px ${theme.colors.shadow}`,- maxHeight: '200px', overflowY: 'auto', zIndex: 1000- }}>+ <div className="absolute left-0 right-0 top-full z-[1000] mt-1 max-h-[200px] overflow-y-auto rounded-md border border-border bg-background shadow-sm">{channels.map((ch, i) => (<buttonkey={ch.jid}onClick={() => handleSelectChannel(ch)}- style={{- width: '100%', padding: '10px 12px', border: 'none', backgroundColor: 'transparent',- color: theme.colors.text, cursor: 'pointer', fontSize: theme.fontSize.sm,- fontFamily: theme.fontFamily.sans, textAlign: 'left',- borderBottom: i < channels.length - 1 ? `1px solid ${theme.colors.border}` : 'none'- }}- onMouseEnter={(e) => e.currentTarget.style.backgroundColor = theme.colors.backgroundAlt}- onMouseLeave={(e) => e.currentTarget.style.backgroundColor = 'transparent'}+ className={`w-full cursor-pointer px-3 py-2.5 text-left text-[13px] text-foreground transition-colors hover:bg-muted ${i < channels.length - 1 ? 'border-b border-border' : ''}`}>- <div style={{ fontWeight: theme.fontWeight.medium }}>{ch.name}</div>- <div style={{ fontSize: theme.fontSize.xs, color: theme.colors.textSecondary, marginTop: '2px', fontFamily: theme.fontFamily.mono }}>+ <div className="font-medium">{ch.name}</div>+ <div className="mt-0.5 font-mono text-xs text-muted-foreground">{ch.jid}- {ch.subscriber_count != null && <span style={{ marginLeft: '8px' }}>({ch.subscriber_count} subscribers)</span>}+ {ch.subscriber_count != null && <span className="ml-2">({ch.subscriber_count} subscribers)</span>}</div></button>))}<buttononClick={() => setShowDropdown(false)}- style={{- width: '100%', padding: '8px 12px', border: 'none',- borderTop: `1px solid ${theme.colors.border}`, backgroundColor: theme.colors.backgroundAlt,- color: theme.colors.textSecondary, cursor: 'pointer', fontSize: theme.fontSize.sm,- fontFamily: theme.fontFamily.sans, textAlign: 'center'- }}- onMouseEnter={(e) => e.currentTarget.style.color = theme.colors.text}- onMouseLeave={(e) => e.currentTarget.style.color = theme.colors.textSecondary}+ className="w-full cursor-pointer border-t border-border bg-muted px-3 py-2 text-center text-[13px] text-muted-foreground transition-colors hover:text-foreground">Close</button>@@ -887,36 +602,20 @@ const FixedCollectionRenderer: React.FC<{value: any;onChange: (value: any) => void;allParameters?: Record<string, any>;- theme: ReturnType<typeof useAppTheme>;-}> = ({ parameter, value, onChange, allParameters, theme }) => {+}> = ({ parameter, value, onChange, allParameters }) => {const currentValue = value || {};return (- <div style={{- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- backgroundColor: theme.colors.backgroundAlt,- padding: '12px'- }}>+ <div className="rounded-md border border-border bg-muted p-3">{parameter.options?.map((option: any) => {const optionValue = currentValue[option.name] || {};return (- <div key={option.name} style={{ marginBottom: '16px' }}>- <div style={{- fontSize: '14px',- fontWeight: '500',- color: theme.colors.text,- marginBottom: '8px'- }}>+ <div key={option.name} className="mb-4">+ <div className="mb-2 text-sm font-medium text-foreground">{option.displayName}</div>- <div style={{- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- backgroundColor: theme.colors.background,- padding: '12px'- }}>+ <div className="rounded-md border border-border bg-background p-3">{option.values?.map((valueParam: any) => {// Wave 10.G.1: propagate `displayOptions.show` into nested// fixedCollection renders. Without this, sub-parameters with@@ -980,7 +679,6 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({isLoadingParameters = false,connectedAgentId,}) => {- const theme = useAppTheme();// Don't use default while loading - wait for actual saved value to load// This prevents showing template code briefly before saved code appearsconst currentValue = isLoadingParameters ? (value ?? '') : (value !== undefined ? value : parameter.default);@@ -1389,18 +1087,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({// Show loading state while parameters are being fetchedif (isLoadingParameters) {return (- <div style={{- height: '100%',- minHeight: '200px',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- backgroundColor: theme.colors.backgroundAlt,- border: `1px solid ${theme.colors.border}`,- borderRadius: theme.borderRadius.md,- color: theme.colors.textMuted,- fontSize: '14px'- }}>+ <div className="flex h-full min-h-[200px] items-center justify-center rounded-md border border-border bg-muted text-sm text-muted-foreground">Loading code...</div>);@@ -1418,8 +1105,9 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({}// Regular textarea for non-code+ const isTextareaTemplate = !!(currentValue && currentValue.includes('{{'));return (- <textarea+ <Textareavalue={currentValue || ''}onChange={(e) => onChange(e.target.value)}placeholder={parameter.placeholder}@@ -1428,30 +1116,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onDragOver={handleDragOver}onDragLeave={handleDragLeave}onDrop={handleDrop}- style={{- width: '100%',- padding: '10px 12px',- border: isDragOver ? `2px solid ${theme.accent.cyan}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- backgroundColor: isDragOver ? `${theme.accent.cyan}10` : theme.colors.backgroundAlt,- color: currentValue && currentValue.includes('{{') ? theme.accent.yellow : theme.colors.text,- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: currentValue && currentValue.includes('{{') ? 'monospace' : 'system-ui, sans-serif',- resize: 'vertical',- minHeight: '80px',- boxShadow: 'inset 0 1px 2px rgba(0,0,0,0.05)',- lineHeight: '1.5'- }}- onFocus={(e) => {- e.target.style.borderColor = theme.accent.cyan;- e.target.style.boxShadow = `0 0 0 3px ${theme.accent.cyan}20, inset 0 1px 2px rgba(0,0,0,0.05)`;- }}- onBlur={(e) => {- e.target.style.borderColor = theme.colors.border;- e.target.style.boxShadow = 'inset 0 1px 2px rgba(0,0,0,0.05)';- }}+ className={`min-h-[80px] resize-y leading-relaxed ${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isTextareaTemplate ? 'text-info font-mono' : ''}`}/>);}@@ -1499,85 +1164,57 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({const hasFreeModels = dynamicOptions.some(opt => String(opt.label || opt.value).includes('[FREE]'));if (hasFreeModels) {- // Group into Free and Paid for OpenRouter using native select with optgroup+ // Group into Free and Paid for OpenRouter using shadcn Select with groupsconst freeModels = dynamicOptions.filter(opt => String(opt.label || opt.value).includes('[FREE]'));const paidModels = dynamicOptions.filter(opt => !String(opt.label || opt.value).includes('[FREE]'));return (- <select+ <Selectvalue={currentValue || ''}- onChange={(e) => onChange(e.target.value)}- style={{- width: '100%',- padding: theme.spacing.sm,- border: `1px solid ${theme.colors.border}`,- borderRadius: theme.borderRadius.md,- fontSize: theme.fontSize.sm,- outline: 'none',- transition: 'border-color 0.2s ease',- cursor: 'pointer',- backgroundColor: theme.colors.background,- color: theme.colors.text,- fontFamily: 'system-ui, sans-serif'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ onValueChange={(v) => onChange(v)}>- {!currentValue && (- <option value="" disabled>- Select a model...- </option>- )}- <optgroup label={`Free Models (${freeModels.length})`}>- {freeModels.map((option) => (- <option key={String(option.value)} value={String(option.value)}>- {option.label || option.name || String(option.value)}- </option>- ))}- </optgroup>- <optgroup label={`Paid Models (${paidModels.length})`}>- {paidModels.map((option) => (- <option key={String(option.value)} value={String(option.value)}>- {option.label || option.name || String(option.value)}- </option>- ))}- </optgroup>- </select>+ <SelectTrigger className="w-full">+ <SelectValue placeholder="Select a model..." />+ </SelectTrigger>+ <SelectContent>+ <SelectGroup>+ <SelectLabel>{`Free Models (${freeModels.length})`}</SelectLabel>+ {freeModels.map((option) => (+ <SelectItem key={String(option.value)} value={String(option.value)}>+ {option.label || option.name || String(option.value)}+ </SelectItem>+ ))}+ </SelectGroup>+ <SelectGroup>+ <SelectLabel>{`Paid Models (${paidModels.length})`}</SelectLabel>+ {paidModels.map((option) => (+ <SelectItem key={String(option.value)} value={String(option.value)}>+ {option.label || option.name || String(option.value)}+ </SelectItem>+ ))}+ </SelectGroup>+ </SelectContent>+ </Select>);}- // Use native select for non-OpenRouter (original working code)+ // Use shadcn Select for non-OpenRouter (original working code)return (- <select+ <Selectvalue={currentValue || ''}- onChange={(e) => onChange(e.target.value)}- style={{- width: '100%',- padding: '8px 12px',- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- outline: 'none',- transition: 'border-color 0.2s ease',- cursor: 'pointer',- backgroundColor: theme.colors.background,- color: theme.colors.text,- fontFamily: 'system-ui, sans-serif'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ onValueChange={(v) => onChange(v)}>- {!currentValue && (- <option value="" disabled>- Select a model...- </option>- )}- {dynamicOptions.map((option) => (- <option key={String(option.value)} value={String(option.value)}>- {option.label || option.name || String(option.value)}- </option>- ))}- </select>+ <SelectTrigger className="w-full">+ <SelectValue placeholder="Select a model..." />+ </SelectTrigger>+ <SelectContent>+ {dynamicOptions.map((option) => (+ <SelectItem key={String(option.value)} value={String(option.value)}>+ {option.label || option.name || String(option.value)}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>);}@@ -1600,7 +1237,6 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onNameChange={(name) => onParameterChange?.('group_name', name)}storedName={storedGroupName}placeholder={parameter.placeholder}- theme={theme}isDragOver={isDragOver}onDragOver={handleDragOver}onDragLeave={handleDragLeave}@@ -1618,7 +1254,6 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onNameChange={(name) => onParameterChange?.('channel_display_name', name)}storedName={storedChannelName}placeholder={parameter.placeholder}- theme={theme}isDragOver={isDragOver}onDragOver={handleDragOver}onDragLeave={handleDragLeave}@@ -1637,7 +1272,6 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onNameChange={(name) => onParameterChange?.('sender_name', name)}storedName={storedSenderName}placeholder={parameter.placeholder}- theme={theme}isDragOver={isDragOver}onDragOver={handleDragOver}onDragLeave={handleDragLeave}@@ -1666,9 +1300,10 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({const isAutoDeriveSentinel =!currentValue || currentValue === 'default';const displayValue = isAutoDeriveSentinel ? '' : currentValue;+ const isSessionTemplate = !!(currentValue && currentValue.includes('{{'));return (- <input+ <ShadcnInputtype="text"value={displayValue}onChange={(e) => onChange(e.target.value)}@@ -1676,33 +1311,14 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onDragOver={handleDragOver}onDragLeave={handleDragLeave}onDrop={handleDrop}- style={{- width: '100%',- padding: '10px 12px',- border: isDragOver ? `2px solid ${theme.accent.cyan}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- backgroundColor: isDragOver ? `${theme.accent.cyan}10` : theme.colors.backgroundAlt,- color: currentValue && currentValue.includes('{{') ? theme.accent.yellow : theme.colors.text,- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: currentValue && currentValue.includes('{{') ? 'monospace' : 'system-ui, sans-serif',- boxShadow: 'inset 0 1px 2px rgba(0,0,0,0.05)'- }}- onFocus={(e) => {- e.target.style.borderColor = theme.accent.cyan;- e.target.style.boxShadow = `0 0 0 3px ${theme.accent.cyan}20, inset 0 1px 2px rgba(0,0,0,0.05)`;- }}- onBlur={(e) => {- e.target.style.borderColor = theme.colors.border;- e.target.style.boxShadow = 'inset 0 1px 2px rgba(0,0,0,0.05)';- }}+ className={`${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isSessionTemplate ? 'text-info font-mono' : ''}`}/>);}+ const isStringTemplate = !!(currentValue && currentValue.includes('{{'));return (- <input+ <ShadcnInputtype={isPassword ? "password" : "text"}value={currentValue || ''}onChange={(e) => onChange(e.target.value)}@@ -1710,34 +1326,14 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onDragOver={handleDragOver}onDragLeave={handleDragLeave}onDrop={handleDrop}- style={{- width: '100%',- padding: '10px 12px',- border: isDragOver ? `2px solid ${theme.accent.cyan}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- backgroundColor: isDragOver ? `${theme.accent.cyan}10` : theme.colors.backgroundAlt,- color: currentValue && currentValue.includes('{{') ? theme.accent.yellow : theme.colors.text,- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: currentValue && currentValue.includes('{{') ? 'monospace' : 'system-ui, sans-serif',- boxShadow: 'inset 0 1px 2px rgba(0,0,0,0.05)'- }}- onFocus={(e) => {- e.target.style.borderColor = theme.accent.cyan;- e.target.style.boxShadow = `0 0 0 3px ${theme.accent.cyan}20, inset 0 1px 2px rgba(0,0,0,0.05)`;- }}- onBlur={(e) => {- e.target.style.borderColor = theme.colors.border;- e.target.style.boxShadow = 'inset 0 1px 2px rgba(0,0,0,0.05)';- }}+ className={`${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isStringTemplate ? 'text-info font-mono' : ''}`}/>);case 'number':return (- <input+ <ShadcnInputtype="number"value={currentValue !== undefined ? currentValue : (parameter.default || 0)}onChange={(e) => onChange(Number(e.target.value))}@@ -1747,39 +1343,16 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onDragOver={handleDragOver}onDragLeave={handleDragLeave}onDrop={handleDrop}- style={{- width: '100%',- padding: '8px 12px',- border: isDragOver ? `2px solid ${theme.colors.focus}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- backgroundColor: isDragOver ? theme.colors.focusRing : theme.colors.background,- color: theme.colors.text,- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: 'system-ui, sans-serif'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ className={isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''}/>);case 'boolean':return (- <label style={{- display: 'flex',- alignItems: 'center',- gap: '8px',- cursor: 'pointer',- fontSize: '14px',- fontFamily: 'system-ui, sans-serif',- color: theme.colors.text- }}>- <input- type="checkbox"+ <label className="flex cursor-pointer items-center gap-2 text-sm text-foreground">+ <Checkboxchecked={currentValue || false}- onChange={(e) => onChange(e.target.checked)}- style={{ width: '16px', height: '16px', accentColor: theme.colors.focus }}+ onCheckedChange={(checked) => onChange(checked === true)}/>{parameter.displayName}</label>@@ -1794,111 +1367,62 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({);return (- <select- value={currentValue || parameter.default}- onChange={(e) => onChange(e.target.value)}- style={{- width: '100%',- padding: '10px 12px',- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- outline: 'none',- transition: 'all 0.2s ease',- cursor: 'pointer',- backgroundColor: theme.colors.backgroundAlt,- color: theme.colors.text,- fontFamily: 'system-ui, sans-serif',- boxShadow: 'inset 0 1px 2px rgba(0,0,0,0.05)',- appearance: 'none',- backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23657b83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")`,- backgroundRepeat: 'no-repeat',- backgroundPosition: 'right 12px center',- paddingRight: '36px'- }}- onFocus={(e) => {- e.target.style.borderColor = theme.accent.cyan;- e.target.style.boxShadow = `0 0 0 3px ${theme.accent.cyan}20, inset 0 1px 2px rgba(0,0,0,0.05)`;- }}- onBlur={(e) => {- e.target.style.borderColor = theme.colors.border;- e.target.style.boxShadow = 'inset 0 1px 2px rgba(0,0,0,0.05)';- }}+ <Select+ value={(currentValue ?? parameter.default ?? '') === '' ? undefined : String(currentValue ?? parameter.default)}+ onValueChange={(v) => onChange(v)}>- {selectOptions.map((option) => (- <option key={String(option.value)} value={String(option.value)}>- {option.label || option.name || String(option.value)}- </option>- ))}- </select>+ <SelectTrigger className="w-full">+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ {selectOptions.map((option) => (+ <SelectItem key={String(option.value)} value={String(option.value)}>+ {option.label || option.name || String(option.value)}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>);case 'slider':+ const sliderValue = currentValue !== undefined ? currentValue : (parameter.default || 0);return (<div>- <input- type="range"+ <Slidermin={getMin()}max={getMax()}step={getStep()}- value={currentValue !== undefined ? currentValue : (parameter.default || 0)}- onChange={(e) => onChange(Number(e.target.value))}- style={{- width: '100%',- height: '8px',- backgroundColor: theme.colors.backgroundAlt,- borderRadius: '8px',- outline: 'none',- accentColor: theme.colors.focus- }}+ value={[Number(sliderValue)]}+ onValueChange={(vals) => onChange(Number(vals[0]))}/>- <div style={{- textAlign: 'center',- fontSize: '12px',- color: theme.colors.textSecondary,- marginTop: '4px',- fontFamily: 'system-ui, sans-serif'- }}>- {currentValue !== undefined ? currentValue : (parameter.default || 0)}+ <div className="mt-1 text-center text-xs text-muted-foreground">+ {sliderValue}{parameter.type === 'slider' ? '%' : ''}</div></div>);case 'percentage':+ const percentageValue = currentValue !== undefined ? currentValue : (parameter.default || 0);return (<div>- <input- type="range"+ <Slidermin={getMin()}max={getMax()}step={getStep()}- value={currentValue !== undefined ? currentValue : (parameter.default || 0)}- onChange={(e) => onChange(Number(e.target.value))}- style={{- width: '100%',- height: '8px',- backgroundColor: theme.colors.backgroundAlt,- borderRadius: '8px',- outline: 'none',- accentColor: theme.colors.success- }}+ value={[Number(percentageValue)]}+ onValueChange={(vals) => onChange(Number(vals[0]))}/>- <div style={{- textAlign: 'center',- fontSize: '12px',- color: theme.colors.textSecondary,- marginTop: '4px',- fontFamily: 'system-ui, sans-serif'- }}>- {currentValue !== undefined ? currentValue : (parameter.default || 0)}%+ <div className="mt-1 text-center text-xs text-muted-foreground">+ {percentageValue}%</div></div>);case 'text':+ const isTextTemplate = !!(currentValue && currentValue.includes('{{'));return (- <input+ <ShadcnInputtype="text"value={currentValue || ''}onChange={(e) => onChange(e.target.value)}@@ -1906,20 +1430,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onDragOver={handleDragOver}onDragLeave={handleDragLeave}onDrop={handleDrop}- style={{- width: '100%',- padding: '8px 12px',- border: isDragOver ? `2px solid ${theme.colors.focus}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '14px',- backgroundColor: isDragOver ? theme.colors.focusRing : theme.colors.background,- color: currentValue && currentValue.includes('{{') ? theme.colors.templateVariable : theme.colors.text,- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: currentValue && currentValue.includes('{{') ? 'monospace' : 'system-ui, sans-serif'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ className={`${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isTextTemplate ? 'text-info font-mono' : ''}`}/>);@@ -1968,10 +1479,11 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({return (parameter as any).typeOptions?.accept || '*/*';};+ const isFileTemplate = !!(currentValue && currentValue.includes?.('{{'));return (<div>- <div style={{ display: 'flex', gap: '8px', alignItems: 'center' }}>- <input+ <div className="flex items-center gap-2">+ <ShadcnInputtype="text"value={isUploadedFile ? `[Uploaded] ${currentValue.filename}` : (currentValue || '')}onChange={(e) => onChange(e.target.value)}@@ -1980,20 +1492,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onDragLeave={handleDragLeave}onDrop={handleDrop}readOnly={isUploadedFile}- style={{- flex: 1,- padding: '8px 12px',- border: isDragOver ? `2px solid ${theme.colors.focus}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '13px',- backgroundColor: isUploadedFile ? theme.colors.backgroundAlt : (isDragOver ? theme.colors.focusRing : theme.colors.background),- color: isUploadedFile ? theme.colors.success : (currentValue && currentValue.includes?.('{{') ? theme.colors.templateVariable : theme.colors.text),- outline: 'none',- transition: 'all 0.2s ease',- fontFamily: 'monospace'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ className={`flex-1 font-mono ${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''} ${isUploadedFile ? 'bg-muted text-success' : (isFileTemplate ? 'text-info' : '')}`}/><inputkey={`file-input-${allParameters?.message_type || 'default'}`}@@ -2003,65 +1502,27 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({style={{ display: 'none' }}accept={getFileAcceptType()}/>- <button+ <ActionButton+ intent="config"onClick={() => fileInputRef.current?.click()}- style={{- padding: '8px 12px',- border: `1px solid ${theme.colors.focus}40`,- borderRadius: '6px',- backgroundColor: `${theme.colors.focus}18`,- color: theme.colors.focus,- cursor: 'pointer',- fontSize: '13px',- fontWeight: 600,- transition: 'all 0.2s ease',- whiteSpace: 'nowrap'- }}- onMouseEnter={(e) => {- e.currentTarget.style.backgroundColor = `${theme.colors.focus}30`;- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = `${theme.colors.focus}18`;- }}title="Upload file">Upload- </button>+ </ActionButton>{isUploadedFile && (- <button+ <ActionButton+ intent="stop"onClick={() => {onChange('');if (fileInputRef.current) fileInputRef.current.value = '';}}- style={{- padding: '8px 10px',- border: `1px solid ${theme.colors.error}40`,- borderRadius: '6px',- backgroundColor: `${theme.colors.error}18`,- color: theme.colors.error,- cursor: 'pointer',- fontSize: '13px',- fontWeight: 600,- transition: 'all 0.2s ease'- }}- onMouseEnter={(e) => {- e.currentTarget.style.backgroundColor = `${theme.colors.error}30`;- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = `${theme.colors.error}18`;- }}title="Clear uploaded file">X- </button>+ </ActionButton>)}</div>- <div style={{- fontSize: '11px',- color: theme.colors.textSecondary,- marginTop: '4px',- fontStyle: 'italic'- }}>+ <div className="mt-1 text-[11px] italic text-muted-foreground">{isUploadedFile? `Size: ${(currentValue.data.length * 0.75 / 1024).toFixed(1)} KB | Type: ${currentValue.mimeType}`: 'Enter server path or click Upload to select a file'}@@ -2073,69 +1534,42 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({const arrayValue = Array.isArray(currentValue) ? currentValue : [];return (<div>- <div style={{- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- backgroundColor: theme.colors.background,- maxHeight: '120px',- overflowY: 'auto'- }}>+ <div className="max-h-[120px] overflow-y-auto rounded-md border border-border bg-background">{parameter.options?.map((option) => (- <label key={option.value} style={{- display: 'flex',- alignItems: 'center',- gap: '8px',- padding: '8px 12px',- cursor: 'pointer',- fontSize: '14px',- fontFamily: 'system-ui, sans-serif',- color: theme.colors.text,- borderBottom: `1px solid ${theme.colors.border}`- }}>- <input- type="checkbox"+ <label+ key={option.value}+ className="flex cursor-pointer items-center gap-2 border-b border-border px-3 py-2 text-sm text-foreground"+ >+ <Checkboxchecked={arrayValue.includes(option.value)}- onChange={(e) => {- if (e.target.checked) {+ onCheckedChange={(checked) => {+ if (checked === true) {onChange([...arrayValue, option.value]);} else {onChange(arrayValue.filter((v: any) => v !== option.value));}}}- style={{ width: '16px', height: '16px', accentColor: theme.colors.focus }}/>{option.label}</label>))}</div>- <div style={{- fontSize: '11px',- color: theme.colors.textSecondary,- marginTop: '4px'- }}>+ <div className="mt-1 text-[11px] text-muted-foreground">Selected: {arrayValue.length} item{arrayValue.length !== 1 ? 's' : ''}</div></div>);case 'collection':- return <CollectionRenderer parameter={parameter} value={currentValue} onChange={onChange} allParameters={allParameters} theme={theme} />;+ return <CollectionRenderer parameter={parameter} value={currentValue} onChange={onChange} allParameters={allParameters} />;case 'fixedCollection':- return <FixedCollectionRenderer parameter={parameter} value={currentValue} onChange={onChange} allParameters={allParameters} theme={theme} />;+ return <FixedCollectionRenderer parameter={parameter} value={currentValue} onChange={onChange} allParameters={allParameters} />;case 'notice':// Info/notice display - shows informational text without inputreturn (- <div style={{- padding: '10px 12px',- backgroundColor: theme.colors.backgroundAlt,- border: `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '13px',- color: theme.colors.textSecondary,- lineHeight: '1.5'- }}>+ <div className="rounded-md border border-border bg-muted px-3 py-2.5 text-[13px] leading-relaxed text-muted-foreground">{parameter.default || parameter.description || ''}</div>);@@ -2144,7 +1578,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({// JSON editor - textarea for JSON inputconst jsonRows = (parameter as any).typeOptions?.rows || 6;return (- <textarea+ <Textareavalue={currentValue || parameter.default || '{}'}onChange={(e) => onChange(e.target.value)}placeholder={parameter.placeholder || '{}'}@@ -2152,23 +1586,7 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({onDragOver={handleDragOver}onDragLeave={handleDragLeave}onDrop={handleDrop}- style={{- width: '100%',- padding: '10px 12px',- border: isDragOver ? `2px solid ${theme.colors.focus}` : `1px solid ${theme.colors.border}`,- borderRadius: '6px',- fontSize: '13px',- backgroundColor: isDragOver ? theme.colors.focusRing : theme.colors.background,- color: theme.colors.text,- outline: 'none',- resize: 'vertical',- minHeight: '100px',- fontFamily: 'monospace',- lineHeight: '1.5',- transition: 'all 0.2s ease'- }}- onFocus={(e) => e.target.style.borderColor = theme.colors.focus}- onBlur={(e) => e.target.style.borderColor = theme.colors.border}+ className={`min-h-[100px] resize-y font-mono leading-relaxed ${isDragOver ? 'border-ring ring-3 ring-ring/50 bg-accent/10' : ''}`}/>);@@ -2207,49 +1625,31 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({);default:- return <div style={{ color: theme.colors.error, fontSize: '14px', padding: '8px 12px', backgroundColor: `${theme.colors.error}15`, border: `1px solid ${theme.colors.error}30`, borderRadius: '6px' }}>Unsupported parameter type: {parameter.type}</div>;+ return (+ <Alert variant="destructive">+ Unsupported parameter type: {parameter.type}+ </Alert>+ );}};return (- <div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}>+ <div className="flex h-full flex-col">{parameter.type !== 'boolean' && (- <label style={{- display: 'flex',- alignItems: 'center',- gap: '6px',- marginBottom: '8px',- fontSize: '13px',- fontWeight: 600,- color: theme.colors.text,- fontFamily: 'system-ui, sans-serif',- flexShrink: 0- }}>+ <label className="mb-2 flex flex-shrink-0 items-center gap-1.5 text-[13px] font-semibold text-foreground"><span>{parameter.displayName}</span>{parameter.required && (- <span style={{- color: theme.accent.red,- fontSize: '14px',- fontWeight: 700- }}>*</span>+ <span className="text-sm font-bold text-destructive">*</span>)}</label>)}- <div style={{ flex: 1, minHeight: 0 }}>+ <div className="min-h-0 flex-1">{renderInput()}</div>{parameter.description && (- <div style={{- fontSize: '12px',- color: theme.colors.textSecondary,- marginTop: '6px',- lineHeight: '1.5',- fontFamily: 'system-ui, sans-serif',- paddingLeft: '2px',- flexShrink: 0- }}>+ <div className="mt-1.5 flex-shrink-0 pl-0.5 text-xs leading-relaxed text-muted-foreground">{parameter.description}</div>)}@@ -2258,4 +1658,4 @@ const ParameterRenderer: React.FC<ParameterRendererProps> = ({);};-export default ParameterRenderer;\ No newline at end of file+export default ParameterRenderer;diff --git a/client/src/components/PricingConfigModal.tsx b/client/src/components/PricingConfigModal.tsxindex d87923c2..b2ce56ee 100644--- a/client/src/components/PricingConfigModal.tsx+++ b/client/src/components/PricingConfigModal.tsx@@ -17,8 +17,8 @@ import {import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';import { toast } from 'sonner';import Modal from './ui/Modal';+import { ActionButton } from './ui/action-button';import { usePricing, PricingConfig, LLMPricing } from '../hooks/usePricing';-import { useAppTheme } from '../hooks/useAppTheme';// ============================================================================// TYPES@@ -61,24 +61,19 @@ interface LLMModelRowProps {model: string;pricing: LLMPricing;onChange: (field: keyof LLMPricing, value: number) => void;- theme: ReturnType<typeof useAppTheme>;}-const LLMModelRow: React.FC<LLMModelRowProps> = ({ model, pricing, onChange, theme }) => (- <div style={{- display: 'flex',- alignItems: 'center',- gap: 12,- padding: '8px 12px',- borderBottom: `1px solid ${theme.colors.border}`,- backgroundColor: model === '_default' ? `${theme.dracula.purple}15` : 'transparent',- }}>- <div style={{- flex: 1,- fontFamily: 'monospace',- fontSize: 13,- color: model === '_default' ? theme.dracula.purple : theme.colors.text,- }}>+const LLMModelRow: React.FC<LLMModelRowProps> = ({ model, pricing, onChange }) => (+ <div+ className={`flex items-center gap-3 border-b border-border px-3 py-2 ${+ model === '_default' ? 'bg-node-agent-soft' : ''+ }`}+ >+ <div+ className={`flex-1 font-mono text-[13px] ${+ model === '_default' ? 'text-node-agent' : 'text-foreground'+ }`}+ >{model === '_default' ? 'Default' : model}</div><div className="flex items-center gap-2">@@ -106,26 +101,15 @@ interface APIPricingRowProps {operation: string;price: number;onChange: (value: number) => void;- theme: ReturnType<typeof useAppTheme>;}-const APIPricingRow: React.FC<APIPricingRowProps> = ({ operation, price, onChange, theme }) => {+const APIPricingRow: React.FC<APIPricingRowProps> = ({ operation, price, onChange }) => {// Skip metadata keysif (operation.startsWith('_')) return null;return (- <div style={{- display: 'flex',- alignItems: 'center',- justifyContent: 'space-between',- padding: '8px 12px',- borderBottom: `1px solid ${theme.colors.border}`,- }}>- <div style={{- fontFamily: 'monospace',- fontSize: 13,- color: theme.colors.text,- }}>+ <div className="flex items-center justify-between border-b border-border px-3 py-2">+ <div className="font-mono text-[13px] text-foreground">{operation}</div><MoneyInput value={price} onChange={onChange} widthClass="w-24" step={0.001} />@@ -138,7 +122,6 @@ const APIPricingRow: React.FC<APIPricingRowProps> = ({ operation, price, onChang// ============================================================================const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {- const theme = useAppTheme();const { getPricingConfig, savePricingConfig, isConnected } = usePricing();const [config, setConfig] = useState<PricingConfig | null>(null);@@ -260,7 +243,6 @@ const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {model={model}pricing={models[model]}onChange={(field, value) => updateLLMPricing(provider, model, field, value)}- theme={theme}/>))}</AccordionContent>@@ -304,7 +286,7 @@ const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {href={source}target="_blank"rel="noopener noreferrer"- className="ml-2 text-dracula-cyan"+ className="ml-2 text-info">Source</a>@@ -320,7 +302,6 @@ const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {operation={operation}price={(operations as Record<string, number>)[operation]}onChange={(value) => updateAPIPricing(service, operation, value)}- theme={theme}/>))}</AccordionContent>@@ -339,31 +320,19 @@ const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {maxWidth="700px"maxHeight="85vh"headerActions={- <div style={{ display: 'flex', gap: 8 }}>+ <div className="flex gap-2"><Button size="sm" variant="outline" onClick={loadConfig} disabled={loading}>{loading ? <Loader2 className="h-3 w-3 animate-spin" /> : <RefreshCw className="h-3 w-3" />}Reload</Button>- <Button- size="sm"- onClick={handleSave}- disabled={!isDirty || saving}- style={- isDirty- ? {- backgroundColor: theme.dracula.green,- borderColor: theme.dracula.green,- }- : undefined- }- >+ <ActionButton intent="save" onClick={handleSave} disabled={!isDirty || saving}>{saving ? <Loader2 className="h-3 w-3 animate-spin" /> : <Save className="h-3 w-3" />}Save- </Button>+ </ActionButton></div>}>- <div style={{ padding: 16 }}>+ <div className="p-4">{loading ? (<div className="flex items-center justify-center p-10"><Loader2 className="h-8 w-8 animate-spin text-muted-foreground" />@@ -371,22 +340,14 @@ const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {) : config ? (<>{/* Version info */}- <div style={{- display: 'flex',- justifyContent: 'space-between',- alignItems: 'center',- marginBottom: 16,- padding: '8px 12px',- backgroundColor: theme.colors.backgroundPanel,- borderRadius: theme.borderRadius.sm,- }}>- <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>- <DollarSign className="h-4 w-4" style={{ color: theme.dracula.yellow }} />- <span style={{ color: theme.colors.textSecondary }}>- Version: <strong style={{ color: theme.colors.text }}>{config.version}</strong>+ <div className="mb-4 flex items-center justify-between rounded-md bg-bg-panel px-3 py-2">+ <div className="flex items-center gap-2">+ <DollarSign className="h-4 w-4 text-warning" />+ <span className="text-muted-foreground">+ Version: <strong className="text-foreground">{config.version}</strong></span></div>- <span style={{ fontSize: 12, color: theme.colors.textSecondary }}>+ <span className="text-xs text-muted-foreground">Last updated: {config.last_updated}</span></div>@@ -402,7 +363,7 @@ const PricingConfigModal: React.FC<Props> = ({ visible, onClose }) => {</Tabs></>) : (- <div style={{ textAlign: 'center', padding: 40, color: theme.colors.textSecondary }}>+ <div className="p-10 text-center text-muted-foreground">{isConnected ? 'Failed to load config' : 'Not connected'}</div>)}diff --git a/client/src/components/TriggerNode.tsx b/client/src/components/TriggerNode.tsxindex 306afdd9..09ee89fc 100644--- a/client/src/components/TriggerNode.tsx+++ b/client/src/components/TriggerNode.tsx@@ -34,11 +34,14 @@ const TriggerNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectaconst isWhatsAppTrigger = type === 'whatsappReceive';const whatsappStatus = useWhatsAppStatus();- // Combine waiting and executing states for glow animation (matching SquareNode pattern)- // - waiting: Trigger is listening for events (cron scheduled, webhook listening)- // - executing: Trigger is actively running- // Both states show the glow animation to indicate active state- const isExecuting = executionStatus === 'executing' || executionStatus === 'waiting';+ // Triggers have two DISTINCT active visuals (design-system animations.css):+ // - waiting -> .machina-trigger-armed: a gentle continuous "listening"+ // heartbeat while deployed and waiting for events, paired+ // with the .machina-bolt ⚡ badge pulse.+ // - executing -> the one-shot execution pulse (base.css token-driven rule,+ // bound via data-executing on the wrapper).+ const isExecuting = executionStatus === 'executing';+ const isArmed = executionStatus === 'waiting';// Wave 6 Phase 3e: backend NodeSpec -> legacy fallbackconst definition = resolveNodeDescription(type || '');@@ -138,7 +141,7 @@ const TriggerNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnecta(size, flex), and per-theme decorations like Cyber neon glow,Renaissance wax seal, and Steampunk rivets reach the pixels. */}<div- className="sq-node-box"+ className={`sq-node-box ${isArmed ? 'machina-trigger-armed' : ''}`}style={{position: 'relative',width: theme.nodeSize.square,@@ -218,9 +221,11 @@ const TriggerNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnecta{/* NO INPUT HANDLE - Trigger nodes don't have inputs */}- {/* Trigger Badge - Lightning bolt indicator on bottom-left- (bespoke UI element, not in design schema; keeps inline style) */}+ {/* Trigger Badge - Lightning bolt indicator on bottom-left.+ `.machina-bolt` adds the soft armed-pulse (design-system+ animations.css) while the trigger is listening for events. */}<div+ className={isArmed ? 'machina-bolt' : undefined}style={{position: 'absolute',bottom: '-4px',diff --git a/client/src/components/credentials/CredentialsModal.tsx b/client/src/components/credentials/CredentialsModal.tsxindex d8bcff04..3bdb2fa2 100644--- a/client/src/components/credentials/CredentialsModal.tsx+++ b/client/src/components/credentials/CredentialsModal.tsx@@ -98,7 +98,7 @@ const CredentialsModal: React.FC<Props> = ({ visible, onClose }) => {const headerActions = (<div className="flex items-center gap-3"><div className="flex items-center gap-2 text-base font-semibold">- <ShieldCheck className="h-4 w-4 text-dracula-yellow" />+ <ShieldCheck className="h-4 w-4 text-warning" /><span>API Credentials</span></div>{rehydrated && (diff --git a/client/src/components/credentials/sections/ApiUsageSection.tsx b/client/src/components/credentials/sections/ApiUsageSection.tsxindex 4cd76872..17a4088b 100644--- a/client/src/components/credentials/sections/ApiUsageSection.tsx+++ b/client/src/components/credentials/sections/ApiUsageSection.tsx@@ -49,7 +49,7 @@ const ApiUsageSection: React.FC<Props> = ({ service, serviceName }) => {<AccordionItem value="usage"><AccordionTrigger><span className="flex items-center gap-2">- <DollarSign className="h-4 w-4 text-dracula-yellow" />+ <DollarSign className="h-4 w-4 text-warning" />API Usage & Costs {costBadge}</span></AccordionTrigger>@@ -67,9 +67,9 @@ const ApiUsageSection: React.FC<Props> = ({ service, serviceName }) => {) : (<div className="flex w-full flex-col gap-4"><div className="flex flex-wrap gap-4">- <Stat label="Total Cost" value={`$${data.total_cost.toFixed(4)}`} className="text-dracula-green" />- <Stat label="API Calls" value={data.execution_count} className="text-dracula-cyan" />- <Stat label="Resources" value={data.total_resources} className="text-dracula-purple" />+ <Stat label="Total Cost" value={`$${data.total_cost.toFixed(4)}`} className="text-success" />+ <Stat label="API Calls" value={data.execution_count} className="text-info" />+ <Stat label="Resources" value={data.total_resources} className="text-primary" /></div>{data.operations?.length > 0 && (diff --git a/client/src/components/credentials/sections/LlmUsageSection.tsx b/client/src/components/credentials/sections/LlmUsageSection.tsxindex d81c25ea..cafc7066 100644--- a/client/src/components/credentials/sections/LlmUsageSection.tsx+++ b/client/src/components/credentials/sections/LlmUsageSection.tsx@@ -76,9 +76,9 @@ const LlmUsageSection: React.FC<Props> = ({ providerId, providerName }) => {) : (<div className="flex w-full flex-col gap-4"><div className="flex flex-wrap gap-4">- <Stat label="Total Tokens" value={data.total_tokens.toLocaleString()} className="text-dracula-cyan" />- <Stat label="Total Cost" value={`$${data.total_cost.toFixed(4)}`} className="text-dracula-green" />- <Stat label="Executions" value={data.execution_count} className="text-dracula-purple" />+ <Stat label="Total Tokens" value={data.total_tokens.toLocaleString()} className="text-info" />+ <Stat label="Total Cost" value={`$${data.total_cost.toFixed(4)}`} className="text-success" />+ <Stat label="Executions" value={data.execution_count} className="text-primary" /></div><div className="overflow-hidden rounded-md border border-border">@@ -87,7 +87,7 @@ const LlmUsageSection: React.FC<Props> = ({ providerId, providerName }) => {<div className="text-xs text-muted-foreground">Input Tokens</div><div>{data.total_input_tokens.toLocaleString()}{' '}- <span className="ml-1 text-dracula-green">+ <span className="ml-1 text-success">(${data.total_input_cost.toFixed(4)})</span></div>@@ -96,7 +96,7 @@ const LlmUsageSection: React.FC<Props> = ({ providerId, providerName }) => {<div className="text-xs text-muted-foreground">Output Tokens</div><div>{data.total_output_tokens.toLocaleString()}{' '}- <span className="ml-1 text-dracula-green">+ <span className="ml-1 text-success">(${data.total_output_cost.toFixed(4)})</span></div>@@ -105,7 +105,7 @@ const LlmUsageSection: React.FC<Props> = ({ providerId, providerName }) => {{data.total_cache_cost > 0 && (<div className="px-3 py-2 text-sm"><span className="text-xs text-muted-foreground">Cache Cost: </span>- <span className="text-dracula-green">${data.total_cache_cost.toFixed(4)}</span>+ <span className="text-success">${data.total_cache_cost.toFixed(4)}</span></div>)}</div>@@ -122,7 +122,7 @@ const LlmUsageSection: React.FC<Props> = ({ providerId, providerName }) => {className="grid grid-cols-[1fr_auto] items-center gap-3 px-3 py-2 text-sm"><code className="text-xs">{m.model}</code>- <span className="text-dracula-green">+ <span className="text-success">${m.total_cost.toFixed(4)}</span></div>diff --git a/client/src/components/onboarding/steps/ApiKeyStep.tsx b/client/src/components/onboarding/steps/ApiKeyStep.tsxindex b21137e8..827e3f22 100644--- a/client/src/components/onboarding/steps/ApiKeyStep.tsx+++ b/client/src/components/onboarding/steps/ApiKeyStep.tsx@@ -25,7 +25,7 @@ const ApiKeyStep: React.FC<ApiKeyStepProps> = ({ onOpenCredentials }) => {<div className="py-1"><div className="mb-4 text-center"><h4 className="m-0 mb-1 flex items-center justify-center gap-2 text-lg font-semibold">- <Key className="h-4 w-4 text-dracula-yellow" />+ <Key className="h-4 w-4 text-warning" />API Key Setup</h4><p className="text-xs text-muted-foreground">diff --git a/client/src/components/onboarding/steps/CanvasStep.tsx b/client/src/components/onboarding/steps/CanvasStep.tsxindex 05f153c0..250a3b83 100644--- a/client/src/components/onboarding/steps/CanvasStep.tsx+++ b/client/src/components/onboarding/steps/CanvasStep.tsx@@ -23,17 +23,16 @@ const CanvasStep: React.FC = () => {* Visual layout diagram. Region tints mirror the live UI's* accent colours via the predefined --node-X-soft tokens — no* opacity arithmetic at the call site. Each region maps to a- * node-group colour: toolbar→workflow (orange), sidebar→model- * (cyan), canvas→agent (purple), palette→skill (green),- * console→trigger (pink). Decorative use of the dracula text- * colours is permitted (tutorial diagram intentionally mirrors- * the live UI palette).+ * node-group colour: toolbar→workflow, sidebar→model,+ * canvas→agent, palette→skill, console→trigger. Both the region+ * tints (--node-X-soft) and the text/icon accents (text-node-X)+ * use the role tokens, so the diagram tracks every theme.*/}<div className="mb-4 overflow-hidden rounded-lg border border-border">{/* Toolbar */}<div className="flex items-center gap-1.5 border-b border-border bg-node-workflow-soft px-2.5 py-1.5">- <Wrench className="h-3 w-3 text-dracula-orange" />- <span className="text-xs font-semibold text-dracula-orange">Toolbar</span>+ <Wrench className="h-3 w-3 text-node-workflow" />+ <span className="text-xs font-semibold text-node-workflow">Toolbar</span><div className="flex-1" /><Badge variant="warning" className="text-[10px]">Run</Badge><Badge variant="secondary" className="text-[10px]">Start</Badge>@@ -44,7 +43,7 @@ const CanvasStep: React.FC = () => {<div className="flex h-[120px]">{/* Sidebar */}<div className="flex w-20 flex-col gap-1 border-r border-border bg-node-model-soft p-1.5">- <span className="text-[9px] font-semibold text-dracula-cyan">Sidebar</span>+ <span className="text-[9px] font-semibold text-node-model">Sidebar</span>{['Workflow 1', 'Workflow 2'].map((w) => (<div key={w} className="rounded-sm bg-muted px-1 py-0.5 text-[8px] text-muted-foreground">{w}@@ -55,14 +54,14 @@ const CanvasStep: React.FC = () => {{/* Canvas */}<div className="relative flex flex-1 items-center justify-center bg-node-agent-soft"><div className="text-center">- <Layout className="mx-auto h-5 w-5 text-dracula-purple opacity-50" />- <div className="mt-0.5 text-[9px] text-dracula-purple">Canvas</div>+ <Layout className="mx-auto h-5 w-5 text-node-agent opacity-50" />+ <div className="mt-0.5 text-[9px] text-node-agent">Canvas</div></div></div>{/* Palette */}<div className="flex w-20 flex-col gap-1 border-l border-border bg-node-skill-soft p-1.5">- <span className="text-[9px] font-semibold text-dracula-green">Palette</span>+ <span className="text-[9px] font-semibold text-node-skill">Palette</span>{['AI Agents', 'AI Models', 'Skills'].map((c) => (<div key={c} className="rounded-sm bg-muted px-1 py-0.5 text-[8px] text-muted-foreground">{c}@@ -73,8 +72,8 @@ const CanvasStep: React.FC = () => {{/* Console */}<div className="flex items-center gap-1.5 border-t border-border bg-node-trigger-soft px-2.5 py-1.5">- <Terminal className="h-3 w-3 text-dracula-pink" />- <span className="text-xs font-semibold text-dracula-pink">Console</span>+ <Terminal className="h-3 w-3 text-node-trigger" />+ <span className="text-xs font-semibold text-node-trigger">Console</span><div className="flex-1" /><Badge variant="outline" className="text-[9px]">Chat</Badge><Badge variant="outline" className="text-[9px]">Logs</Badge>diff --git a/client/src/components/parameterPanel/MiddleSection.tsx b/client/src/components/parameterPanel/MiddleSection.tsxindex 26f7307a..d5415e73 100644--- a/client/src/components/parameterPanel/MiddleSection.tsx+++ b/client/src/components/parameterPanel/MiddleSection.tsx@@ -34,7 +34,6 @@ import { useWebSocket, CompactionStats } from '../../contexts/WebSocketContext';import { useUserSettingsQuery } from '../../hooks/useUserSettingsQuery';import { nodeParamsQueryKey, type NodeParametersResponse } from '../../hooks/useNodeParamsQuery';import { folderSkillsQueryKey, type AvailableSkill } from '../../hooks/useFolderSkills';-import { dracula } from '../../styles/theme';import { queryKeys, STALE_TIME } from '../../lib/queryConfig';import { INodeTypeDescription, INodeProperties } from '../../types/INodeProperties';import { NodeIcon } from '../../assets/icons';@@ -355,7 +354,7 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({skillName: s.name,displayName: s.name,icon: s.metadata?.icon ?? '',- color: s.metadata?.color ?? dracula.purple,+ color: s.metadata?.color ?? 'var(--node-agent)',description: s.description ?? '',}));},@@ -406,7 +405,7 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({skillName: s.name,displayName: s.name,icon: s.metadata?.icon ?? '',- color: s.metadata?.color ?? dracula.purple,+ color: s.metadata?.color ?? 'var(--node-agent)',description: s.description ?? '',};}@@ -435,7 +434,7 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({type: nodeType,icon: def?.icon || '',description: def?.description || '',- color: (def?.defaults?.color as string) || dracula.purple,+ color: (def?.defaults?.color as string) || 'var(--node-agent)',});}return skills;@@ -477,7 +476,7 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({type: 'masterSkill',icon: meta?.icon || '',description: meta?.description || '',- color: meta?.color || dracula.purple,+ color: meta?.color || 'var(--node-agent)',});}}diff --git a/client/src/components/ui/ComponentPalette.tsx b/client/src/components/ui/ComponentPalette.tsxindex 26a95d3b..69f125c0 100644--- a/client/src/components/ui/ComponentPalette.tsx+++ b/client/src/components/ui/ComponentPalette.tsx@@ -1,5 +1,4 @@import React from 'react';-import { useAppTheme } from '../../hooks/useAppTheme';import { useNodeAllowlist } from '../../hooks/useNodeAllowlist';import { ComponentPaletteProps } from '../../types/ComponentTypes';import { INodeTypeDescription } from '../../types/INodeProperties';@@ -26,7 +25,6 @@ const ComponentPalette: React.FC<ComponentPaletteProps> = ({proMode = false, // Default to simple modespecsReady = false,}) => {- const theme = useAppTheme();const { isBlocked, isAllowed } = useNodeAllowlist();// Backend-driven group metadata via the shared WS-in-queryFn hook.@@ -41,10 +39,10 @@ const ComponentPalette: React.FC<ComponentPaletteProps> = ({// group via register_group(), the empty string surfaces the gap.return {icon: entry?.icon ?? '',- color: entry?.color || theme.colors.textSecondary,+ color: entry?.color || 'var(--fg-muted)',label: entry?.label || category,};- }, [groupIndex, theme.colors.textSecondary]);+ }, [groupIndex]);const categorizedComponents = React.useMemo(() => {const categories: Record<string, INodeTypeDescription[]> = {};diff --git a/client/src/components/ui/ThemeSwitcher.tsx b/client/src/components/ui/ThemeSwitcher.tsxindex 6c3a949b..2016d893 100644--- a/client/src/components/ui/ThemeSwitcher.tsx+++ b/client/src/components/ui/ThemeSwitcher.tsx@@ -68,7 +68,7 @@ export const ThemeSwitcher: React.FC<{ className?: string }> = ({ className }) =variant="outline"size="icon-sm"title={`Theme: ${activeMeta.label}`}- className="border-action-secret-border bg-action-secret-soft text-action-secret hover:bg-action-secret/25"+ className="border-action-secret-border bg-action-secret-soft text-action-secret-ink hover:bg-action-secret-hover"><Palette /></Button>diff --git a/client/src/components/ui/TopToolbar.tsx b/client/src/components/ui/TopToolbar.tsxindex 7db1a3ef..95827ef7 100644--- a/client/src/components/ui/TopToolbar.tsx+++ b/client/src/components/ui/TopToolbar.tsx@@ -172,7 +172,7 @@ const TopToolbar: React.FC<TopToolbarProps> = ({onClick={onToggleSidebar}aria-pressed={sidebarVisible}title={sidebarVisible ? 'Hide sidebar' : 'Show sidebar'}- className="border-action-save-border bg-action-save-soft text-action-save hover:bg-action-save/25 aria-pressed:bg-action-save/30"+ className="border-action-save-border bg-action-save-soft text-action-save-ink hover:bg-action-save-hover aria-pressed:bg-action-save-hover">{sidebarVisible ? <PanelLeftClose /> : <PanelLeftOpen />}</Button>@@ -185,7 +185,7 @@ const TopToolbar: React.FC<TopToolbarProps> = ({<Buttonvariant="outline"size="sm"- className="border-action-save-border bg-action-save-soft text-action-save hover:bg-action-save/25"+ className="border-action-save-border bg-action-save-soft text-action-save-ink hover:bg-action-save-hover"><FileText />{/* font-display + tracking-display drive the per-theme display@@ -360,7 +360,7 @@ const TopToolbar: React.FC<TopToolbarProps> = ({size="icon-sm"onClick={onOpenSettings}title="Settings"- className="border-action-config-border bg-action-config-soft text-action-config hover:bg-action-config/25"+ className="border-action-config-border bg-action-config-soft text-action-config-ink hover:bg-action-config-hover"><SettingsIcon /></Button>@@ -370,7 +370,7 @@ const TopToolbar: React.FC<TopToolbarProps> = ({size="icon-sm"onClick={onOpenCredentials}title="API Credentials"- className="border-action-secret-border bg-action-secret-soft text-action-secret hover:bg-action-secret/25"+ className="border-action-secret-border bg-action-secret-soft text-action-secret-ink hover:bg-action-secret-hover"><KeyRound /></Button>@@ -383,7 +383,7 @@ const TopToolbar: React.FC<TopToolbarProps> = ({size="icon-sm"onClick={logout}title={`Logout ${user.display_name}`}- className="border-action-stop-border bg-action-stop-soft text-action-stop hover:bg-action-stop/25"+ className="border-action-stop-border bg-action-stop-soft text-action-stop-ink hover:bg-action-stop-hover"><LogOut /></Button>@@ -449,7 +449,7 @@ const TopToolbar: React.FC<TopToolbarProps> = ({onClick={onToggleComponentPalette}aria-pressed={componentPaletteVisible}title={componentPaletteVisible ? 'Hide components' : 'Show components'}- className="border-action-tools-border bg-action-tools-soft text-action-tools hover:bg-action-tools/25 aria-pressed:bg-action-tools/30"+ className="border-action-tools-border bg-action-tools-soft text-action-tools-ink hover:bg-action-tools-hover aria-pressed:bg-action-tools-hover">{componentPaletteVisible ? <PanelRightClose /> : <PanelRightOpen />}</Button>diff --git a/client/src/components/ui/action-button.tsx b/client/src/components/ui/action-button.tsxindex 7cdd996b..65207701 100644--- a/client/src/components/ui/action-button.tsx+++ b/client/src/components/ui/action-button.tsx@@ -5,14 +5,19 @@** The `intent` prop is a semantic role (run / stop / save / ...), not a* palette color, so themes can re-skin without touching call sites.- * Each intent reads the matching --action-X / --action-X-soft /- * --action-X-border CSS triplet defined in index.css; pressed +- * disabled state are baked into the variant so call sites never do- * opacity arithmetic.+ * Each intent reads the matching --action-X-soft (resting fill) /+ * --action-X-hover (hover fill) / --action-X-border (outline) /+ * --action-X-ink (readable label colour). These are hex / color-mix()+ * values owned by the per-theme files (client/src/themes/light.css,+ * dark.css, + skins); -ink is the legibility fix so the label stays+ * readable on the soft fill (light: a darkened accent; dark: the raw+ * accent). Disabled state is the shadcn-idiomatic disabled:opacity-50+ * on the base class so call sites never do opacity arithmetic.*- * Adding a new intent: add the --action-NAME triplet to index.css,- * expose the three Tailwind tokens in the @theme inline block, then- * add a case to `actionButtonVariants` below.+ * Adding a new intent: add the --action-NAME-{soft,hover,border,ink}+ * tokens to the theme files, expose the matching Tailwind tokens in the+ * index.css @theme inline block, then add a case to+ * `actionButtonVariants` below.*/import * as React from 'react';@@ -33,17 +38,17 @@ export const actionButtonVariants = cva(variants: {intent: {run:- 'border-action-run-border bg-action-run-soft text-action-run hover:bg-action-run-hover',+ 'border-action-run-border bg-action-run-soft text-action-run-ink hover:bg-action-run-hover',stop:- 'border-action-stop-border bg-action-stop-soft text-action-stop hover:bg-action-stop-hover',+ 'border-action-stop-border bg-action-stop-soft text-action-stop-ink hover:bg-action-stop-hover',save:- 'border-action-save-border bg-action-save-soft text-action-save hover:bg-action-save-hover',+ 'border-action-save-border bg-action-save-soft text-action-save-ink hover:bg-action-save-hover',config:- 'border-action-config-border bg-action-config-soft text-action-config hover:bg-action-config-hover',+ 'border-action-config-border bg-action-config-soft text-action-config-ink hover:bg-action-config-hover',secret:- 'border-action-secret-border bg-action-secret-soft text-action-secret hover:bg-action-secret-hover',+ 'border-action-secret-border bg-action-secret-soft text-action-secret-ink hover:bg-action-secret-hover',tools:- 'border-action-tools-border bg-action-tools-soft text-action-tools hover:bg-action-tools-hover',+ 'border-action-tools-border bg-action-tools-soft text-action-tools-ink hover:bg-action-tools-hover',},},defaultVariants: { intent: 'save' },diff --git a/client/src/index.css b/client/src/index.cssindex c49b022e..65e3d4b0 100644--- a/client/src/index.css+++ b/client/src/index.css@@ -8,177 +8,19 @@@custom-variant dark (&:is(.dark *));/* ============================================================================- * Theme tokens — MachinaOs palette mapped to shadcn variable names so both- * shadcn components and our own code resolve to the same CSS vars.+ * Base resets + Tailwind v4 plumbing.*- * Values are HSL triplets (no hsl() wrapper) so Tailwind utilities can- * compose alpha via `bg-primary/50`, `text-foreground/80`, etc.- *- * Source palette: client/src/styles/theme.ts (Solarized + Dracula).- * theme.ts is deleted in Phase 7 once nothing imports it.+ * Token VALUES live in the per-theme files (client/src/themes/*.css):+ * light.css / dark.css own the shadcn + dracula + node + action colour+ * hex; base.css owns the shared scale / chrome / shadow / type / tint+ * tokens. This file holds only the global resets and the `@theme inline`+ * bridge that maps `--color-X: var(--X)` so Tailwind utilities resolve+ * against whichever theme is active. Colours are hex / color-mix, so the+ * bridge uses bare var() (no hsl() wrapper); Tailwind v4 still composes+ * `/opacity` via color-mix().* ============================================================================ */@layer base {- :root {- /* Surfaces */- --background: 218 22% 97%; /* #f5f7fa */- --foreground: 214 11% 12%; /* #1a1d21 */- --card: 0 0% 100%;- --card-foreground: 214 11% 12%;- --popover: 0 0% 100%;- --popover-foreground: 214 11% 12%;-- /* Primary */- --primary: 221 83% 53%; /* #2563eb */- --primary-foreground: 0 0% 100%;-- /* Secondary / muted / accent */- --secondary: 215 18% 95%; /* #eef1f5 */- --secondary-foreground: 214 11% 12%;- --muted: 215 18% 95%;- --muted-foreground: 217 12% 34%; /* #4b5563 */- --accent: 262 83% 58%; /* #7c3aed */- --accent-foreground: 0 0% 100%;-- /* Semantic */- --destructive: 0 74% 51%; /* #dc2626 */- --destructive-foreground: 0 0% 100%;- --success: 161 94% 30%; /* #059669 */- --warning: 32 95% 44%; /* #d97706 */- --info: 192 91% 36%; /* #0891b2 */-- /* Borders / focus */- --border: 216 12% 84%; /* #d1d5db */- --input: 216 12% 84%;- --ring: 217 91% 60%; /* #3b82f6 */-- --radius: 0.5rem;-- /* Dracula vibrant accents — same in both themes, used for action buttons */- --dracula-green: 135 94% 65%; /* #50fa7b */- --dracula-purple: 265 89% 78%; /* #bd93f9 */- --dracula-pink: 326 100% 74%; /* #ff79c6 */- --dracula-cyan: 191 97% 77%; /* #8be9fd */- --dracula-red: 0 100% 67%; /* #ff5555 */- --dracula-orange: 27 100% 71%; /* #ffb86c */- --dracula-yellow: 65 92% 76%; /* #f1fa8c */- --dracula-selection: 232 14% 31%; /* #44475a */- --dracula-current-line: 232 14% 25%; /* #383a4a */- --dracula-comment: 225 27% 51%; /* #6272a4 */-- /* Node-type semantic tokens — role-based. Themes redefine these in- * their own scope without touching call sites.- *- * Each role exposes three variants so call sites never use opacity- * arithmetic (`bg-node-agent/10`) — themes own the exact tints:- * --node-X base solid color (badges, icons)- * --node-X-soft tinted surface (card backgrounds)- * --node-X-border tinted outline (card / chip borders) */- --node-agent: 265 89% 78%;- --node-agent-soft: 265 89% 78% / 0.08;- --node-agent-border: 265 89% 78% / 0.3;-- --node-model: 191 97% 77%;- --node-model-soft: 191 97% 77% / 0.08;- --node-model-border: 191 97% 77% / 0.3;-- --node-skill: 135 94% 65%;- --node-skill-soft: 135 94% 65% / 0.08;- --node-skill-border: 135 94% 65% / 0.3;-- --node-tool: 135 94% 65%;- --node-tool-soft: 135 94% 65% / 0.08;- --node-tool-border: 135 94% 65% / 0.3;-- --node-trigger: 326 100% 74%;- --node-trigger-soft: 326 100% 74% / 0.08;- --node-trigger-border: 326 100% 74% / 0.3;-- --node-workflow: 27 100% 71%;- --node-workflow-soft: 27 100% 71% / 0.08;- --node-workflow-border: 27 100% 71% / 0.3;-- /* Brand-color tint alphas — same scale as the node-X-soft / -border- * variants above, but exposed as standalone variables so utilities- * can mix them against `currentColor` (data-driven brand colors- * like provider.color / definition.defaults.color, which can't use- * the role tokens). Themes redefine these in their own scope to- * change the canonical alphas without touching call sites. */- --tint-soft: 8%;- --tint-border: 30%;-- /* Toolbar / action role tokens — semantic names so call sites read- * `bg-action-run` instead of a palette color. Themes redefine these- * in their own scope; no component imports a palette name directly.- * Each role exposes the base + a -soft (tinted bg) + a -border- * (tinted outline) variant so opacity arithmetic stays out of the- * call site (mirrors the --node-X / --node-X-soft / -border- * convention). */- --action-run: 135 94% 65%; /* primary CTA: deploy / run */- --action-run-soft: 135 94% 65% / 0.15;- --action-run-hover: 135 94% 65% / 0.25;- --action-run-border: 135 94% 65% / 0.6;-- --action-stop: 326 100% 74%; /* destructive: stop / cancel / logout */- --action-stop-soft: 326 100% 74% / 0.15;- --action-stop-hover: 326 100% 74% / 0.25;- --action-stop-border: 326 100% 74% / 0.6;-- --action-save: 191 97% 77%; /* commit / save / panel toggle */- --action-save-soft: 191 97% 77% / 0.15;- --action-save-hover: 191 97% 77% / 0.25;- --action-save-border: 191 97% 77% / 0.6;-- --action-config: 27 100% 71%; /* settings / config / warning */- --action-config-soft: 27 100% 71% / 0.15;- --action-config-hover: 27 100% 71% / 0.25;- --action-config-border: 27 100% 71% / 0.6;-- --action-secret: 65 92% 76%; /* credentials / theme toggle */- --action-secret-soft: 65 92% 76% / 0.15;- --action-secret-hover: 65 92% 76% / 0.25;- --action-secret-border: 65 92% 76% / 0.6;-- --action-tools: 265 89% 78%; /* component palette / creative */- --action-tools-soft: 265 89% 78% / 0.15;- --action-tools-hover: 265 89% 78% / 0.25;- --action-tools-border: 265 89% 78% / 0.6;- }-- .dark {- /* Surfaces (Solarized dark) */- --background: 192 100% 11%; /* #002b36 base03 */- --foreground: 60 30% 96%; /* #f8f8f2 dracula fg */- --card: 192 81% 14%; /* #073642 base02 */- --card-foreground: 60 30% 96%;- --popover: 206 55% 12%; /* #0d1f2d */- --popover-foreground: 60 30% 96%;-- /* Primary */- --primary: 205 69% 49%; /* #268bd2 solarized blue */- --primary-foreground: 60 30% 96%;-- /* Secondary / muted / accent */- --secondary: 192 81% 14%;- --secondary-foreground: 60 30% 96%;- --muted: 192 81% 14%;- --muted-foreground: 225 27% 51%; /* #6272a4 dracula comment */- --accent: 191 97% 77%; /* dracula cyan */- --accent-foreground: 192 100% 11%;-- /* Semantic (Solarized) */- --destructive: 1 71% 52%; /* #dc322f */- --destructive-foreground: 60 30% 96%;- --success: 68 100% 30%; /* #859900 */- --warning: 45 100% 35%; /* #b58900 */- --info: 175 59% 40%; /* #2aa198 */-- /* Borders / focus */- --border: 194 14% 40%; /* #586e75 base01 */- --input: 194 14% 40%;- --ring: 205 69% 49%;- }-* {@apply border-border outline-ring/50;box-sizing: border-box;@@ -210,89 +52,99 @@* ============================================================================ */@theme inline {- --color-background: hsl(var(--background));- --color-foreground: hsl(var(--foreground));- --color-card: hsl(var(--card));- --color-card-foreground: hsl(var(--card-foreground));- --color-popover: hsl(var(--popover));- --color-popover-foreground: hsl(var(--popover-foreground));- --color-primary: hsl(var(--primary));- --color-primary-foreground: hsl(var(--primary-foreground));- --color-secondary: hsl(var(--secondary));- --color-secondary-foreground: hsl(var(--secondary-foreground));- --color-muted: hsl(var(--muted));- --color-muted-foreground: hsl(var(--muted-foreground));- --color-accent: hsl(var(--accent));- --color-accent-foreground: hsl(var(--accent-foreground));- --color-destructive: hsl(var(--destructive));- --color-destructive-foreground: hsl(var(--destructive-foreground));- --color-success: hsl(var(--success));- --color-warning: hsl(var(--warning));- --color-info: hsl(var(--info));- --color-border: hsl(var(--border));- --color-input: hsl(var(--input));- --color-ring: hsl(var(--ring));-- --color-dracula-green: hsl(var(--dracula-green));- --color-dracula-purple: hsl(var(--dracula-purple));- --color-dracula-pink: hsl(var(--dracula-pink));- --color-dracula-cyan: hsl(var(--dracula-cyan));- --color-dracula-red: hsl(var(--dracula-red));- --color-dracula-orange: hsl(var(--dracula-orange));- --color-dracula-yellow: hsl(var(--dracula-yellow));- --color-dracula-selection: hsl(var(--dracula-selection));- --color-dracula-current-line: hsl(var(--dracula-current-line));- --color-dracula-comment: hsl(var(--dracula-comment));+ /* Color tokens are now hex / color-mix (not HSL triplets), so the bridge+ * maps `--color-X: var(--X)` directly — NO hsl() wrapper. Tailwind v4+ * still composes `/opacity` (e.g. bg-primary/50) by wrapping any color+ * in color-mix(), so utilities keep working against hex values. */+ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --color-card: var(--card);+ --color-card-foreground: var(--card-foreground);+ --color-popover: var(--popover);+ --color-popover-foreground: var(--popover-foreground);+ --color-primary: var(--primary);+ --color-primary-foreground: var(--primary-foreground);+ --color-secondary: var(--secondary);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-muted: var(--muted);+ --color-muted-foreground: var(--muted-foreground);+ --color-accent: var(--accent);+ --color-accent-foreground: var(--accent-foreground);+ --color-destructive: var(--destructive);+ --color-destructive-foreground: var(--destructive-foreground);+ --color-success: var(--success);+ --color-warning: var(--warning);+ --color-info: var(--info);+ --color-border: var(--border);+ --color-input: var(--input);+ --color-ring: var(--ring);++ --color-dracula-green: var(--dracula-green);+ --color-dracula-purple: var(--dracula-purple);+ --color-dracula-pink: var(--dracula-pink);+ --color-dracula-cyan: var(--dracula-cyan);+ --color-dracula-red: var(--dracula-red);+ --color-dracula-orange: var(--dracula-orange);+ --color-dracula-yellow: var(--dracula-yellow);+ --color-dracula-selection: var(--dracula-selection);+ --color-dracula-current-line: var(--dracula-current-line);+ --color-dracula-comment: var(--dracula-comment);/* Node-type tokens — base + soft (tinted bg) + border (tinted outline).* Use bg-node-X / bg-node-X-soft / border-node-X-border directly,* never with /N opacity arithmetic. */- --color-node-agent: hsl(var(--node-agent));- --color-node-agent-soft: hsl(var(--node-agent-soft));- --color-node-agent-border: hsl(var(--node-agent-border));- --color-node-model: hsl(var(--node-model));- --color-node-model-soft: hsl(var(--node-model-soft));- --color-node-model-border: hsl(var(--node-model-border));- --color-node-skill: hsl(var(--node-skill));- --color-node-skill-soft: hsl(var(--node-skill-soft));- --color-node-skill-border: hsl(var(--node-skill-border));- --color-node-tool: hsl(var(--node-tool));- --color-node-tool-soft: hsl(var(--node-tool-soft));- --color-node-tool-border: hsl(var(--node-tool-border));- --color-node-trigger: hsl(var(--node-trigger));- --color-node-trigger-soft: hsl(var(--node-trigger-soft));- --color-node-trigger-border: hsl(var(--node-trigger-border));- --color-node-workflow: hsl(var(--node-workflow));- --color-node-workflow-soft: hsl(var(--node-workflow-soft));- --color-node-workflow-border: hsl(var(--node-workflow-border));-- /* Toolbar / action role tokens — same triplet pattern as --node-X.- * Use bg-action-X-soft + text-action-X + border-action-X-border for+ --color-node-agent: var(--node-agent);+ --color-node-agent-soft: var(--node-agent-soft);+ --color-node-agent-border: var(--node-agent-border);+ --color-node-model: var(--node-model);+ --color-node-model-soft: var(--node-model-soft);+ --color-node-model-border: var(--node-model-border);+ --color-node-skill: var(--node-skill);+ --color-node-skill-soft: var(--node-skill-soft);+ --color-node-skill-border: var(--node-skill-border);+ --color-node-tool: var(--node-tool);+ --color-node-tool-soft: var(--node-tool-soft);+ --color-node-tool-border: var(--node-tool-border);+ --color-node-trigger: var(--node-trigger);+ --color-node-trigger-soft: var(--node-trigger-soft);+ --color-node-trigger-border: var(--node-trigger-border);+ --color-node-workflow: var(--node-workflow);+ --color-node-workflow-soft: var(--node-workflow-soft);+ --color-node-workflow-border: var(--node-workflow-border);++ /* Toolbar / action role tokens — base + -soft + -hover + -border + -ink.+ * Use bg-action-X-soft + text-action-X-ink + border-action-X-border for* the standard "soft tinted button" look (see ActionButton CVA). */- --color-action-run: hsl(var(--action-run));- --color-action-run-soft: hsl(var(--action-run-soft));- --color-action-run-hover: hsl(var(--action-run-hover));- --color-action-run-border: hsl(var(--action-run-border));- --color-action-stop: hsl(var(--action-stop));- --color-action-stop-soft: hsl(var(--action-stop-soft));- --color-action-stop-hover: hsl(var(--action-stop-hover));- --color-action-stop-border: hsl(var(--action-stop-border));- --color-action-save: hsl(var(--action-save));- --color-action-save-soft: hsl(var(--action-save-soft));- --color-action-save-hover: hsl(var(--action-save-hover));- --color-action-save-border: hsl(var(--action-save-border));- --color-action-config: hsl(var(--action-config));- --color-action-config-soft: hsl(var(--action-config-soft));- --color-action-config-hover: hsl(var(--action-config-hover));- --color-action-config-border: hsl(var(--action-config-border));- --color-action-secret: hsl(var(--action-secret));- --color-action-secret-soft: hsl(var(--action-secret-soft));- --color-action-secret-hover: hsl(var(--action-secret-hover));- --color-action-secret-border: hsl(var(--action-secret-border));- --color-action-tools: hsl(var(--action-tools));- --color-action-tools-soft: hsl(var(--action-tools-soft));- --color-action-tools-hover: hsl(var(--action-tools-hover));- --color-action-tools-border: hsl(var(--action-tools-border));+ --color-action-run: var(--action-run);+ --color-action-run-soft: var(--action-run-soft);+ --color-action-run-hover: var(--action-run-hover);+ --color-action-run-border: var(--action-run-border);+ --color-action-run-ink: var(--action-run-ink);+ --color-action-stop: var(--action-stop);+ --color-action-stop-soft: var(--action-stop-soft);+ --color-action-stop-hover: var(--action-stop-hover);+ --color-action-stop-border: var(--action-stop-border);+ --color-action-stop-ink: var(--action-stop-ink);+ --color-action-save: var(--action-save);+ --color-action-save-soft: var(--action-save-soft);+ --color-action-save-hover: var(--action-save-hover);+ --color-action-save-border: var(--action-save-border);+ --color-action-save-ink: var(--action-save-ink);+ --color-action-config: var(--action-config);+ --color-action-config-soft: var(--action-config-soft);+ --color-action-config-hover: var(--action-config-hover);+ --color-action-config-border: var(--action-config-border);+ --color-action-config-ink: var(--action-config-ink);+ --color-action-secret: var(--action-secret);+ --color-action-secret-soft: var(--action-secret-soft);+ --color-action-secret-hover: var(--action-secret-hover);+ --color-action-secret-border: var(--action-secret-border);+ --color-action-secret-ink: var(--action-secret-ink);+ --color-action-tools: var(--action-tools);+ --color-action-tools-soft: var(--action-tools-soft);+ --color-action-tools-hover: var(--action-tools-hover);+ --color-action-tools-border: var(--action-tools-border);+ --color-action-tools-ink: var(--action-tools-ink);--radius-sm: calc(var(--radius) - 4px);--radius-md: calc(var(--radius) - 2px);@@ -362,13 +214,13 @@* property). */.react-flow__background pattern circle {- fill: hsl(var(--muted-foreground) / 0.3) !important;+ fill: color-mix(in srgb, var(--muted-foreground) 30%, transparent) !important;}.react-flow__controls,.react-flow__minimap {- background: hsl(var(--card));- border: 1px solid hsl(var(--border));+ background: var(--card);+ border: 1px solid var(--border);border-radius: 8px;box-shadow: 0 2px 8px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);}@@ -379,10 +231,10 @@}.react-flow__controls button {- background: hsl(var(--card));+ background: var(--card);border: none;- border-bottom: 1px solid hsl(var(--border));- color: hsl(var(--foreground));+ border-bottom: 1px solid var(--border);+ color: var(--foreground);}.react-flow__controls button:last-child {@@ -390,26 +242,26 @@}.react-flow__controls button:hover {- background: hsl(var(--muted));+ background: var(--muted);}.react-flow__controls button svg,.react-flow__controls button svg path {- fill: hsl(var(--foreground)) !important;+ fill: var(--foreground) !important;}.react-flow__attribution {- background: hsl(var(--card) / 0.9);- color: hsl(var(--muted-foreground));+ background: color-mix(in srgb, var(--card) 90%, transparent);+ color: var(--muted-foreground);}.react-flow__selection {- background: hsl(var(--primary) / 0.08);- border: 1px solid hsl(var(--primary) / 0.4);+ background: color-mix(in srgb, var(--primary) 8%, transparent);+ border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);}.react-flow__connection-line {- stroke: hsl(var(--muted-foreground));+ stroke: var(--muted-foreground);stroke-width: 2;}@@ -440,26 +292,26 @@}::-webkit-scrollbar-track {- background: hsl(var(--muted));+ background: var(--muted);border-radius: 4px;}::-webkit-scrollbar-thumb {- background: hsl(var(--border));+ background: var(--border);border-radius: 4px;}::-webkit-scrollbar-thumb:hover {- background: hsl(var(--muted-foreground));+ background: var(--muted-foreground);}::-webkit-scrollbar-corner {- background: hsl(var(--muted));+ background: var(--muted);}html {scrollbar-width: thin;- scrollbar-color: hsl(var(--border)) hsl(var(--muted));+ scrollbar-color: var(--border) var(--muted);}/* ============================================================================@@ -481,13 +333,13 @@ html {* Static CSS vars; dark-mode overrides via `.dark` cascade.* ============================================================================ */-.console-json-output .token.string { color: hsl(var(--dracula-yellow)); }+.console-json-output .token.string { color: var(--dracula-yellow); }.console-json-output .token.number,.console-json-output .token.boolean,-.console-json-output .token.null { color: hsl(var(--dracula-purple)); }-.console-json-output .token.property { color: hsl(var(--dracula-cyan)); }-.console-json-output .token.punctuation { color: hsl(var(--foreground)); }-.console-json-output .token.operator { color: hsl(var(--dracula-pink)); }+.console-json-output .token.null { color: var(--dracula-purple); }+.console-json-output .token.property { color: var(--dracula-cyan); }+.console-json-output .token.punctuation { color: var(--foreground); }+.console-json-output .token.operator { color: var(--dracula-pink); }.chat-markdown p { margin: 0 0 8px 0; }.chat-markdown p:last-child { margin-bottom: 0; }@@ -496,7 +348,7 @@ html {.chat-markdown h3 {margin: 12px 0 8px 0;font-weight: 600;- color: hsl(var(--foreground));+ color: var(--foreground);}.chat-markdown h1:first-child,.chat-markdown h2:first-child,@@ -504,30 +356,30 @@ html {.chat-markdown h1 { font-size: 1.25em; }.chat-markdown h2 { font-size: 1.1em; }.chat-markdown h3 { font-size: 1em; }-.chat-markdown strong { font-weight: 600; color: hsl(var(--foreground)); }+.chat-markdown strong { font-weight: 600; color: var(--foreground); }.chat-markdown em { font-style: italic; }.chat-markdown ul,.chat-markdown ol { margin: 8px 0; padding-left: 20px; }.chat-markdown li { margin: 4px 0; }.chat-markdown code {- background-color: hsl(var(--border) / 0.3);+ background-color: color-mix(in srgb, var(--border) 30%, transparent);padding: 2px 6px;border-radius: 4px;font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;font-size: 0.9em;}.dark .chat-markdown code {- background-color: hsl(var(--dracula-current-line));+ background-color: var(--dracula-current-line);}.chat-markdown pre {- background-color: hsl(var(--card));+ background-color: var(--card);padding: 12px;border-radius: 6px;overflow-x: auto;margin: 8px 0;}.dark .chat-markdown pre {- background-color: hsl(var(--dracula-current-line));+ background-color: var(--dracula-current-line);}.chat-markdown pre code { background: none; padding: 0; }.chat-markdown table {@@ -538,45 +390,45 @@ html {}.chat-markdown th,.chat-markdown td {- border: 1px solid hsl(var(--border));+ border: 1px solid var(--border);padding: 6px 10px;text-align: left;}.dark .chat-markdown th,.dark .chat-markdown td {- border-color: hsl(var(--dracula-selection));+ border-color: var(--dracula-selection);}.chat-markdown th {- background-color: hsl(var(--card));+ background-color: var(--card);font-weight: 600;}.dark .chat-markdown th {- background-color: hsl(var(--dracula-current-line));+ background-color: var(--dracula-current-line);}.chat-markdown blockquote {- border-left: 3px solid hsl(var(--primary));+ border-left: 3px solid var(--primary);margin: 8px 0;padding: 4px 12px;- color: hsl(var(--muted-foreground));+ color: var(--muted-foreground);}.dark .chat-markdown blockquote {- border-left-color: hsl(var(--dracula-purple));+ border-left-color: var(--dracula-purple);}.chat-markdown a {- color: hsl(var(--primary));+ color: var(--primary);text-decoration: none;}.dark .chat-markdown a {- color: hsl(var(--dracula-cyan));+ color: var(--dracula-cyan);}.chat-markdown a:hover { text-decoration: underline; }.chat-markdown hr {border: none;- border-top: 1px solid hsl(var(--border));+ border-top: 1px solid var(--border);margin: 12px 0;}.dark .chat-markdown hr {- border-top-color: hsl(var(--dracula-selection));+ border-top-color: var(--dracula-selection);}/* ============================================================================@@ -598,15 +450,15 @@ html {--prism-punctuation: var(--foreground);}-.code-editor-container .token.comment { color: hsl(var(--prism-comment)); }-.code-editor-container .token.string { color: hsl(var(--prism-string)); }-.code-editor-container .token.keyword { color: hsl(var(--prism-keyword)); }-.code-editor-container .token.function { color: hsl(var(--prism-function)); }-.code-editor-container .token.number { color: hsl(var(--prism-number)); }-.code-editor-container .token.operator { color: hsl(var(--prism-operator)); }-.code-editor-container .token.class-name { color: hsl(var(--prism-class-name)); }-.code-editor-container .token.builtin { color: hsl(var(--prism-builtin)); }-.code-editor-container .token.boolean { color: hsl(var(--prism-boolean)); }-.code-editor-container .token.punctuation { color: hsl(var(--prism-punctuation)); }-.code-editor-container textarea { outline: none !important; caret-color: hsl(var(--foreground)); }-.code-editor-container textarea::placeholder { color: hsl(var(--muted-foreground)); }+.code-editor-container .token.comment { color: var(--prism-comment); }+.code-editor-container .token.string { color: var(--prism-string); }+.code-editor-container .token.keyword { color: var(--prism-keyword); }+.code-editor-container .token.function { color: var(--prism-function); }+.code-editor-container .token.number { color: var(--prism-number); }+.code-editor-container .token.operator { color: var(--prism-operator); }+.code-editor-container .token.class-name { color: var(--prism-class-name); }+.code-editor-container .token.builtin { color: var(--prism-builtin); }+.code-editor-container .token.boolean { color: var(--prism-boolean); }+.code-editor-container .token.punctuation { color: var(--prism-punctuation); }+.code-editor-container textarea { outline: none !important; caret-color: var(--foreground); }+.code-editor-container textarea::placeholder { color: var(--muted-foreground); }diff --git a/client/src/main.tsx b/client/src/main.tsxindex 5b0de392..08e164d5 100644--- a/client/src/main.tsx+++ b/client/src/main.tsx@@ -22,6 +22,10 @@ import './themes/wasteland.css'import './themes/rot.css'import './themes/plague.css'import './themes/surveillance.css'+// Animation system — pulse-keyframe tokens, trigger armed/listening motion,+// .machina-* helpers. Loaded after the themes so its keyframes + per-theme+// --pulse-* tokens are authoritative.+import './themes/animations.css'import './index.css'import App from './App'import { ThemeProvider } from './contexts/ThemeContext'diff --git a/client/src/themes/animations.css b/client/src/themes/animations.cssnew file mode 100644index 00000000..2a192482--- /dev/null+++ b/client/src/themes/animations.css@@ -0,0 +1,193 @@+/* ============================================================================+ * themes/animations.css — theme-scoped executing-pulse selection, trigger+ * "armed/listening" motion, and reusable animation helper classes.+ *+ * Source contract: docs-internal/design-system/tokens/animations.css.+ *+ * The executing-pulse KEYFRAME is chosen per theme via `--pulse-keyframe`+ * (+ `--pulse-duration` / `--pulse-timing`); base.css's executing rules read+ * those tokens, so a theme switches its pulse by overriding one variable+ * instead of a high-specificity `.react-flow__node.executing` rule.+ *+ * Per-theme `--dur-*` / `--ease-*` / `--motion-style` already live in+ * base.css + each theme file; this file only adds the pulse-keyframe tokens+ * and the keyframes/helpers.+ *+ * Glow colour is `--node-pulse-color` (a theme-chosen high-contrast accent,+ * inherited from the active `:root[data-theme]` scope), NEVER the node's own+ * `--node-color` fill, so the glow stays visible on any canvas.+ * ========================================================================== */++:root {+ --pulse-keyframe: node-pulse;+ --pulse-duration: 1.4s;+ --pulse-timing: ease-in-out;+}++:root[data-theme="renaissance"] {+ --pulse-keyframe: ren-pulse-exec;+ --pulse-duration: 2s;+ --pulse-timing: ease-in-out;+}+:root[data-theme="cyber"] {+ --pulse-keyframe: cyber-pulse-exec;+ --pulse-duration: 1.6s;+ --pulse-timing: steps(2);+}+:root[data-theme="surveillance"] {+ --pulse-keyframe: surv-pulse-exec;+ --pulse-duration: 1s;+ --pulse-timing: steps(2);+}+:root[data-theme="rot"] {+ --pulse-duration: 2.2s;+}++/* ============================================================================+ * Executing-pulse keyframes (relocated here as the single source of truth).+ * node-pulse references the shared --tint-pulse-* scale (base.css); the+ * material-specific *-pulse-exec keyframes keep their bespoke decorative+ * alphas inline (per the design-system tokenization rule).+ * ========================================================================== */++/* Default 3-layer glow — light/dark/greek/edo/steampunk/atomic/wasteland/+ * rot/plague all draw from this. */+@keyframes node-pulse {+ 0%, 100% {+ box-shadow:+ 0 0 0 0 color-mix(in srgb, var(--node-pulse-color) var(--tint-pulse-ring), transparent),+ 0 0 14px 2px color-mix(in srgb, var(--node-pulse-color) var(--tint-pulse-halo), transparent),+ 0 0 28px 4px color-mix(in srgb, var(--node-pulse-color) var(--tint-pulse-atmos), transparent);+ }+ 50% {+ box-shadow:+ 0 0 0 12px color-mix(in srgb, var(--node-pulse-color) var(--tint-pulse-ring-peak), transparent),+ 0 0 32px 8px color-mix(in srgb, var(--node-pulse-color) var(--tint-pulse-halo-peak), transparent),+ 0 0 56px 16px color-mix(in srgb, var(--node-pulse-color) var(--tint-pulse-atmos-peak), transparent);+ }+}++/* Renaissance — ultramarine (lapis) candleflame glow against vellum. */+@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);+ }+}++/* Cyber — hard digital strobe (steps), neon-cyan glow. */+@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);+ }+}++/* Surveillance — REC-red glow strobe matching the corner-LED rhythm. */+@keyframes surv-pulse-exec {+ 0%, 49% {+ box-shadow:+ 0 0 0 2px 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 var(--destructive),+ 0 0 12px 2px rgba(232, 38, 38, 0.45),+ 0 0 24px 6px rgba(232, 38, 38, 0.12);+ }+}++/* ============================================================================+ * Trigger nodes — "armed / listening" state.+ * Triggers (whatsappReceive, telegramReceive, cronScheduler, webhookTrigger,+ * emailReceive, …) glow CONTINUOUSLY while deployed and waiting for events —+ * a gentle, slower heartbeat distinct from the one-shot execution pulse. Uses+ * --node-pulse-color so it reads on any theme background.+ * ========================================================================== */+@keyframes trigger-listening {+ 0%, 100% {+ box-shadow:+ 0 0 0 0 color-mix(in srgb, var(--node-pulse-color, var(--info)) 0%, transparent),+ 0 0 9px 1px color-mix(in srgb, var(--node-pulse-color, var(--info)) 38%, transparent);+ }+ 50% {+ box-shadow:+ 0 0 0 6px color-mix(in srgb, var(--node-pulse-color, var(--info)) 20%, transparent),+ 0 0 20px 4px color-mix(in srgb, var(--node-pulse-color, var(--info)) 55%, transparent);+ }+}+/* One-shot bright flash the moment a trigger fires (add, remove on animationend). */+@keyframes trigger-fire {+ 0% {+ box-shadow:+ 0 0 0 0 color-mix(in srgb, var(--node-pulse-color, var(--info)) 90%, transparent),+ 0 0 28px 8px color-mix(in srgb, var(--node-pulse-color, var(--info)) 70%, transparent);+ }+ 100% {+ box-shadow:+ 0 0 0 14px color-mix(in srgb, var(--node-pulse-color, var(--info)) 0%, transparent),+ 0 0 28px 8px color-mix(in srgb, var(--node-pulse-color, var(--info)) 0%, transparent);+ }+}+/* Lightning badge soft flash while armed. */+@keyframes trigger-bolt { 0%, 100% { opacity: 0.6; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }++/* Status pip blink (generic, smooth). */+@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }++/* ============================================================================+ * Helper classes+ * ========================================================================== */++/* Executing node — reads the active theme's chosen keyframe + timing. */+.machina-pulse {+ animation: var(--pulse-keyframe, node-pulse) var(--pulse-duration, 1.4s) var(--pulse-timing, ease-in-out) infinite;+}++/* Trigger waiting for events — continuous armed heartbeat (slower than the+ * execution pulse so the two states read as distinct). */+.machina-trigger-armed {+ animation: trigger-listening 2.4s ease-in-out infinite;+}+/* One-shot flash the moment a trigger fires (add, then remove on animationend). */+.machina-trigger-fire {+ animation: trigger-fire 0.6s var(--ease-default, ease-out) 1;+}+/* Lightning badge + listening pip pulses. */+.machina-bolt { animation: trigger-bolt 1.8s ease-in-out infinite; }+.machina-pip-pulse { animation: machina-pip-blink 1.4s ease-in-out infinite; }++/* Ambient overlays for Cyber / Surveillance frames (cyber-flicker / cyber-roll+ * keyframes live in their theme files and are globally available). */+.machina-crt { animation: cyber-flicker 5s linear infinite; }+.machina-scanline::after {+ content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 50;+ height: 12%;+ background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--node-pulse-color, var(--info)) 18%, transparent), transparent);+ animation: cyber-roll 8s linear infinite;+}++@media (prefers-reduced-motion: reduce) {+ .machina-pulse, .machina-crt, .machina-scanline::after,+ .machina-trigger-armed, .machina-trigger-fire, .machina-bolt, .machina-pip-pulse { animation: none !important; }+}diff --git a/client/src/themes/atomic.css b/client/src/themes/atomic.cssindex c361e822..9d8af007 100644--- a/client/src/themes/atomic.css+++ b/client/src/themes/atomic.css@@ -54,7 +54,7 @@/* Wave 30: turquoise pulse — matches the atomic accent + the* boomerang selection halo. Reads against cardstock backgrounds. */- --node-pulse-color: hsl(var(--accent));+ --node-pulse-color: var(--accent);--cursor-default: auto;--cursor-pointer: pointer;@@ -62,31 +62,31 @@--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%;+ --background: #efe6d2;+ --foreground: #2b394a;+ --card: #ffffff;+ --card-foreground: #2b394a;+ --popover: #ffffff;+ --popover-foreground: #2b394a;++ --primary: #e85326; /* atomic orange */+ --primary-foreground: #fbf1da;+ --secondary: #fcf3da;+ --secondary-foreground: #2b394a;+ --muted: #fcf3da;+ --muted-foreground: #5c6b7a;+ --accent: #3b99a0; /* turquoise */+ --accent-foreground: #2b394a;++ --destructive: #e85326;+ --destructive-foreground: #fbf1da;+ --success: #5b8b5b;+ --warning: #d7a537;+ --info: #3b99a0;++ --border: #2b394a;+ --input: #c7b48f;+ --ring: #e85326;/* Action role bridge.* Wave 30.4: deepened text colors (raised saturation, dropped lightness)@@ -94,35 +94,45 @@* 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-action-soft: 40%;+ --tint-action-hover: 55%;+ --tint-action-border: 75%;++ --action-run: #1d722b;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #cb380b;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #cb380b;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #ae7d13;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #177b82;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #177b82;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 14%;--tint-border: 35%;@@ -171,10 +181,10 @@/* 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 12% 15%, 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 82% 90%, 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);@@ -192,16 +202,16 @@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));+ color: 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);+ background: var(--accent); color: var(--bg-elevated);+ box-shadow: 4px 4px 0 var(--slate), 0 0 0 4px color-mix(in srgb, var(--warning) 25%, transparent);}: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-handle.out { background: var(--accent); }:root[data-theme="atomic"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.08em; font-size: 11px; }/* Actions — chunky stamps */@@ -210,9 +220,9 @@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-run { background: 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); }+:root[data-theme="atomic"] .action-save { background: var(--accent); color: var(--bg-elevated); border-color: var(--slate); }/* Cards — boomerang corners */:root[data-theme="atomic"] .wf-card,@@ -223,7 +233,7 @@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"] .wf-card.selected { background: var(--warning-soft); border-color: 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; }@@ -235,19 +245,19 @@/* Status bar */:root[data-theme="atomic"] .statusbar {- background: var(--slate); color: var(--bg-elevated); border-top: 4px solid hsl(var(--accent));+ background: var(--slate); color: var(--bg-elevated); border-top: 4px solid var(--accent);font-family: var(--font-mono); letter-spacing: 0.06em;}-:root[data-theme="atomic"] .statusbar .pip { background: hsl(var(--success)); }+:root[data-theme="atomic"] .statusbar .pip { background: 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-head { border-bottom: 3px solid var(--slate); background: 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); }+:root[data-theme="atomic"] .cmdk-item.active { background: var(--accent); color: var(--bg-elevated); }diff --git a/client/src/themes/base.css b/client/src/themes/base.cssindex 5d2269c8..3b50667c 100644--- a/client/src/themes/base.css+++ b/client/src/themes/base.css@@ -5,7 +5,14 @@* 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.+ * This file owns the THEME-AGNOSTIC scalars: space / radius / chrome /+ * shadow / type scales, motion, and the tint-alpha scale. Literal COLOR+ * values live in the per-theme files (light.css / dark.css / skins);+ * literal PERCENTAGES live only in the `--tint-*` block below. Every+ * consumer rule references a var() — no bare hex or % outside these+ * token blocks.+ *+ * Source: design-system bundle tokens/{spacing,motion,typography}.css.* ============================================================================ */:root {@@ -20,8 +27,80 @@--space-8: 64px;/* New-contract radii — exposed as Tailwind tokens via index.css.- * Co-exist with shadcn `--radius` (still used by existing primitives). */+ * Co-exist with shadcn `--radius` (still used by existing primitives).+ * --radius-sm/md/lg/xl are also registered in index.css @theme inline+ * (same values: 4/6/8/12px); --radius-node is the canvas-node radius. */+ --radius-node: 10px;+ --radius-xl: 12px;--radius-pill: 999px;+ /* shadcn base radius — consumed by index.css @theme inline radius calcs. */+ --radius: 0.5rem;++ /* Fixed chrome dimensions (design-system bundle: tokens/spacing.css).+ * Formalized for var() consumption; components historically hardcode+ * these — adopt incrementally. */+ --h-toolbar: 48px;+ --h-statusbar: 24px;+ --h-control: 32px;+ --w-sidebar: 280px;+ --w-palette: 320px;++ /* Shadows — quiet, layered (dark overrides in dark.css). */+ --shadow-card: 0 2px 8px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);+ --shadow-card-hover: 0 4px 14px rgb(0 0 0 / 0.10);+ --shadow-modal: 0 12px 40px rgb(0 0 0 / 0.18);++ /* Type scale (14px base, dense desktop) + weights + leading + label tracking. */+ --text-2xs: 11px;+ --text-xs: 12px;+ --text-sm: 13px;+ --text-base: 14px;+ --text-md: 16px;+ --text-lg: 18px;+ --text-xl: 24px;+ --text-2xl: 32px;+ --text-3xl: 44px;+ --weight-regular: 400;+ --weight-medium: 500;+ --weight-semibold: 600;+ --weight-bold: 700;+ --leading-tight: 1.2;+ --leading-normal: 1.5;+ --leading-relaxed: 1.65;+ --tracking-label: 0.04em;++ /* ── Tint / alpha scale ──────────────────────────────────────────────+ * The SINGLE home for color-mix percentages. Every token definition+ * (action / node role tokens in the theme files) and every consumer+ * rule references these — no bare % appears anywhere else. Themes may+ * override any of these in their own scope to retune the whole system+ * from one place. */+ /* Surface fills */+ --tint-soft: 8%; /* node-X-soft surface; brand bg-tint-soft */+ --tint-node-fill: 14%; /* rectangular-node gradient accent */+ --tint-node-fill-sq: 18%; /* square-node gradient accent */+ /* Action-button fills */+ --tint-action-soft: 15%; /* resting fill */+ --tint-action-hover: 25%; /* hover fill */+ --tint-action-border: 60%; /* outline */+ /* Borders / outlines */+ --tint-border: 30%; /* node-X-border; brand border-tint */+ --tint-node-edge: 60%; /* node-color border ring */+ --tint-gear-hover: 20%; /* gear button hover border */+ /* Shadows / glows */+ --tint-shadow: 18%; /* resting node accent shadow */+ --tint-shadow-hover: 28%; /* hover node accent shadow */+ --tint-shadow-selected: 32%; /* selected node accent shadow */+ --tint-glow: 60%; /* status-pip + status-box glow */+ /* Executing-pulse keyframe (three layers: ring / halo / atmosphere) */+ --tint-pulse-ring: 80%;+ --tint-pulse-halo: 50%;+ --tint-pulse-atmos: 25%;+ --tint-pulse-ring-peak: 45%;+ --tint-pulse-halo-peak: 65%;+ --tint-pulse-atmos-peak: 30%;+ /* Neutral base mixed into accent node shadows when --node-color unset. */+ --node-shadow-base: #000;/* Motion */--dur-fast: 90ms;@@ -53,8 +132,8 @@* 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));+ * resolves to the theme's `--info` accent. */+ --node-pulse-color: var(--info);}/* ============================================================================@@ -138,31 +217,31 @@ html[data-page-hidden] *::after {.node {position: relative;- border-radius: 12px;- border: 2px solid color-mix(in srgb, var(--node-color, hsl(var(--border))) 60%, transparent);+ border-radius: var(--radius-xl);+ border: 2px solid color-mix(in srgb, var(--node-color, var(--border)) var(--tint-node-edge), transparent);background:linear-gradient(135deg,- color-mix(in srgb, var(--node-color, hsl(var(--card))) 14%, hsl(var(--card))) 0%,- hsl(var(--card)) 100%+ color-mix(in srgb, var(--node-color, var(--card)) var(--tint-node-fill), var(--card)) 0%,+ var(--card) 100%);- box-shadow: 0 2px 8px color-mix(in srgb, var(--node-color, #000) 18%, transparent);+ box-shadow: 0 2px 8px color-mix(in srgb, var(--node-color, var(--node-shadow-base)) var(--tint-shadow), transparent);transition:- transform 0.15s ease,- border-color 0.15s ease,- box-shadow 0.15s ease;+ transform var(--dur-fast) ease,+ border-color var(--dur-fast) ease,+ box-shadow var(--dur-fast) ease;}.node:hover {transform: translateY(-1px);- box-shadow: 0 4px 14px color-mix(in srgb, var(--node-color, #000) 28%, transparent);+ box-shadow: 0 4px 14px color-mix(in srgb, var(--node-color, var(--node-shadow-base)) var(--tint-shadow-hover), transparent);}.node.selected {- border-color: var(--node-color, hsl(var(--ring)));+ border-color: var(--node-color, 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);+ 0 0 0 1px var(--node-color, var(--ring)),+ 0 4px 14px color-mix(in srgb, var(--node-color, var(--node-shadow-base)) var(--tint-shadow-selected), transparent);}/* Pulse during execution — react-flow toggles `.executing` on the wrapper@@ -172,33 +251,15 @@ html[data-page-hidden] *::after {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;+ animation: var(--pulse-keyframe, node-pulse) var(--pulse-duration, 1.4s) var(--pulse-timing, 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);- }-}+/* The executing-pulse keyframes (node-pulse + the per-theme *-pulse-exec+ * variants) and the per-theme --pulse-keyframe/-duration/-timing tokens live+ * in client/src/themes/animations.css. The rule above reads those tokens, so+ * each theme selects its pulse by overriding --pulse-keyframe — no+ * high-specificity per-theme `.executing` animation rule needed. The+ * --tint-pulse-* alpha scale node-pulse consumes is defined in :root above. *//* Square-node default visuals — outer wrapper is layout-only, the inner`.sq-node-box` carries the bordered icon-square. Per-theme CSS@@ -209,36 +270,36 @@ html[data-page-hidden] *::after {}.sq-node-box {- border-radius: 10px;- border: 2px solid color-mix(in srgb, var(--node-color, hsl(var(--border))) 60%, transparent);+ border-radius: var(--radius-node);+ border: 2px solid color-mix(in srgb, var(--node-color, var(--border)) var(--tint-node-edge), transparent);background:linear-gradient(135deg,- color-mix(in srgb, var(--node-color, hsl(var(--card))) 18%, hsl(var(--card))) 0%,- hsl(var(--card)) 100%+ color-mix(in srgb, var(--node-color, var(--card)) var(--tint-node-fill-sq), var(--card)) 0%,+ var(--card) 100%);- box-shadow: 0 2px 8px color-mix(in srgb, var(--node-color, #000) 18%, transparent);+ box-shadow: 0 2px 8px color-mix(in srgb, var(--node-color, var(--node-shadow-base)) var(--tint-shadow), transparent);transition:- transform 0.15s ease,- border-color 0.15s ease,- box-shadow 0.15s ease;+ transform var(--dur-fast) ease,+ border-color var(--dur-fast) ease,+ box-shadow var(--dur-fast) ease;}.sq-node-box:hover {transform: translateY(-1px);- box-shadow: 0 4px 14px color-mix(in srgb, var(--node-color, #000) 28%, transparent);+ box-shadow: 0 4px 14px color-mix(in srgb, var(--node-color, var(--node-shadow-base)) var(--tint-shadow-hover), transparent);}.sq-node.selected .sq-node-box {- border-color: var(--node-color, hsl(var(--ring)));+ border-color: var(--node-color, 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);+ 0 0 0 1px var(--node-color, var(--ring)),+ 0 4px 14px color-mix(in srgb, var(--node-color, var(--node-shadow-base)) var(--tint-shadow-selected), transparent);}.react-flow__node.executing .sq-node-box,.sq-node[data-executing] .sq-node-box {- animation: node-pulse 1.5s ease-in-out infinite;+ animation: var(--pulse-keyframe, node-pulse) var(--pulse-duration, 1.4s) var(--pulse-timing, ease-in-out) infinite;}/* ============================================================================@@ -271,65 +332,65 @@ html[data-page-hidden] *::after {/* Status pip — square-node and rectangular-node variants */.sq-node-pip,.node-pip {- background: hsl(var(--muted-foreground));+ background: var(--muted-foreground);}.sq-node-pip[data-status="idle"],.node-pip[data-status="idle"] {- background: hsl(var(--muted-foreground));+ background: 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);+ background: var(--node-color, var(--info));+ box-shadow: 0 0 6px color-mix(in srgb, var(--node-color, var(--info)) var(--tint-glow), transparent);}.sq-node-pip[data-status="success"],.node-pip[data-status="success"] {- background: hsl(var(--success));+ background: var(--success);}.sq-node-pip[data-status="error"],.node-pip[data-status="error"] {- background: hsl(var(--destructive));+ background: 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;+ background: var(--card);+ border: 1px solid var(--border);+ color: var(--muted-foreground);+ transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;}.sq-node-gear:hover,.node-gear:hover {- background: hsl(var(--accent));- border-color: hsl(var(--accent-foreground) / 0.2);+ background: var(--accent);+ border-color: color-mix(in srgb, var(--accent-foreground) var(--tint-gear-hover), transparent);}/* 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;+ background: var(--background);+ border: 2px solid var(--muted-foreground);+ transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;}.sq-node-handle.out,.node-handle.out {- background: var(--node-color, hsl(var(--primary)));- border-color: var(--node-color, hsl(var(--primary)));+ background: var(--node-color, var(--primary));+ border-color: var(--node-color, var(--primary));}.sq-node-handle.in,.node-handle.in {- background: hsl(var(--background));- border-color: hsl(var(--muted-foreground));+ background: var(--background);+ border-color: var(--muted-foreground);}/* Label defaults — picks up display typography from theme */@@ -338,7 +399,7 @@ html[data-page-hidden] *::after {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));+ color: var(--foreground);}/* ============================================================================@@ -356,15 +417,15 @@ html[data-page-hidden] *::after {.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);+ 0 0 0 1px var(--success),+ 0 0 14px color-mix(in srgb, var(--success) var(--tint-glow), 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);+ 0 0 0 1px var(--destructive),+ 0 0 14px color-mix(in srgb, var(--destructive) var(--tint-glow), transparent);}/* TODO(wave-30): mirror data-status from the pip to the outer .sq-node /diff --git a/client/src/themes/cyber.css b/client/src/themes/cyber.cssindex ae1a76ff..1d233d35 100644--- a/client/src/themes/cyber.css+++ b/client/src/themes/cyber.css@@ -47,6 +47,7 @@--neon-magenta: #f51eb6;--neon-yellow: #ffd028;--neon-green: #26d97a;+ --neon-red: #ff2050;/* Type — Major Mono Display + JetBrains Mono everywhere */--font-display: 'Major Mono Display', 'Audiowide', monospace;@@ -88,66 +89,77 @@--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 */+ /* ── Shadcn bridge — hex (was HSL triplets) ──────────────────────── */++ --background: #050010;+ --foreground: #f0e0ff;+ --card: #15103a;+ --card-foreground: #f0e0ff;+ --popover: #0a0420;+ --popover-foreground: #f0e0ff;++ --primary: #f51eb6; /* neon magenta */+ --primary-foreground: #050010;+ --secondary: #0a0420; /* panel */+ --secondary-foreground: #f0e0ff;+ --muted: #0a0420;+ --muted-foreground: #a090c0;+ --accent: #1dd9e5; /* neon cyan */+ --accent-foreground: #050010;++ --destructive: #ff2050;+ --destructive-foreground: #ffffff;+ --success: #26d97a; /* neon green */+ --warning: #ffd028; /* neon yellow */+ --info: #1dd9e5; /* neon cyan */++ --border: #2a1f50;+ --input: #2a1f50;+ --ring: #1dd9e5; /* cyan focus */++ /* Action role tokens — neon equivalents. color-mix references the neon+ * accents + the --tint-action-* scale; Cyber bumps hover/border alpha+ * (neon needs more presence on void). -ink = raw accent (dark family). */+ --tint-action-hover: 30%;+ --tint-action-border: 70%;++ --action-run: var(--neon-green);+ --action-run-soft: color-mix(in srgb, var(--neon-green) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--neon-green) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--neon-green) var(--tint-action-border), transparent);+ --action-run-ink: var(--neon-green);++ --action-stop: var(--neon-red);+ --action-stop-soft: color-mix(in srgb, var(--neon-red) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--neon-red) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--neon-red) var(--tint-action-border), transparent);+ --action-stop-ink: var(--neon-red);++ --action-save: var(--neon-cyan);+ --action-save-soft: color-mix(in srgb, var(--neon-cyan) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--neon-cyan) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--neon-cyan) var(--tint-action-border), transparent);+ --action-save-ink: var(--neon-cyan);++ --action-config: var(--neon-yellow);+ --action-config-soft: color-mix(in srgb, var(--neon-yellow) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--neon-yellow) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--neon-yellow) var(--tint-action-border), transparent);+ --action-config-ink: var(--neon-yellow);++ --action-secret: var(--neon-magenta);+ --action-secret-soft: color-mix(in srgb, var(--neon-magenta) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--neon-magenta) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--neon-magenta) var(--tint-action-border), transparent);+ --action-secret-ink: var(--neon-magenta);++ --action-tools: var(--neon-magenta);+ --action-tools-soft: color-mix(in srgb, var(--neon-magenta) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--neon-magenta) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--neon-magenta) var(--tint-action-border), transparent);+ --action-tools-ink: var(--neon-magenta);++ /* Stronger node tint alpha — neon brand colours need more presence on void */--tint-soft: 16%;--tint-border: 50%;}@@ -430,39 +442,14 @@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);- }-}-+/* Cyber executing-pulse: the cyber-pulse-exec keyframe + its+ * --pulse-keyframe/-duration/-timing tokens now live in+ * client/src/themes/animations.css; base.css's token-driven `.executing`+ * rule applies them. This rule keeps only the neon-cyan border the pulse+ * pairs with. */: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 {diff --git a/client/src/themes/dark.css b/client/src/themes/dark.cssindex 499da327..98c7851d 100644--- a/client/src/themes/dark.css+++ b/client/src/themes/dark.css@@ -67,4 +67,45 @@--cursor-pointer: pointer;--scrollbar-track: #073642;--scrollbar-thumb: #586e75;++ /* ── shadcn semantic tokens (dark) — Solarized dark surfaces. Overrides+ * the light defaults from light.css :root. Dracula + node + action role+ * tokens are inherited unchanged from light.css (identical in dark). ── */+ --background: #002b36; /* base03 */+ --foreground: #f8f8f2; /* dracula fg */+ --card: #073642; /* base02 */+ --card-foreground: #f8f8f2;+ --popover: #0d1f2d;+ --popover-foreground: #f8f8f2;+ --surface-card: #073642;+ --primary: #268bd2; /* solarized blue */+ --primary-foreground: #f8f8f2;+ --secondary: #073642;+ --secondary-foreground: #f8f8f2;+ --muted: #073642;+ --muted-foreground: #6272a4; /* dracula comment */+ --accent: #8be9fd; /* dracula cyan */+ --accent-foreground: #002b36;+ --destructive: #dc322f;+ --destructive-foreground: #f8f8f2;+ --success: #859900;+ --warning: #b58900;+ --info: #2aa198;+ --border: #586e75; /* base01 */+ --input: #586e75;+ --ring: #268bd2;++ /* In dark mode the Dracula hues are bright enough to be the text colour+ * directly — ink aliases resolve to the raw accents. */+ --action-run-ink: var(--dracula-green);+ --action-stop-ink: var(--dracula-pink);+ --action-save-ink: var(--dracula-cyan);+ --action-config-ink: var(--dracula-orange);+ --action-secret-ink: var(--dracula-yellow);+ --action-tools-ink: var(--dracula-purple);++ /* Shadows — deeper on dark surfaces (overrides base.css). */+ --shadow-card: 0 4px 12px rgb(0 0 0 / 0.3);+ --shadow-card-hover: 0 6px 18px rgb(0 0 0 / 0.4);+ --shadow-modal: 0 16px 48px rgb(0 0 0 / 0.55);}diff --git a/client/src/themes/edo.css b/client/src/themes/edo.cssindex e17e83c1..ce089a5b 100644--- a/client/src/themes/edo.css+++ b/client/src/themes/edo.css@@ -56,7 +56,7 @@/* Wave 30: vermillion pulse — matches hanko seal + reads against* washi paper background. */- --node-pulse-color: hsl(var(--accent));+ --node-pulse-color: var(--accent);--cursor-default: auto;--cursor-pointer: pointer;@@ -64,62 +64,68 @@--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%;+ --background: #f4ecd8;+ --foreground: #1a1410;+ --card: #fdf8ea;+ --card-foreground: #1a1410;+ --popover: #fdf8ea;+ --popover-foreground: #1a1410;++ --primary: #b41e1e; /* vermillion */+ --primary-foreground: #fdf8ea;+ --secondary: #faf3e0;+ --secondary-foreground: #1a1410;+ --muted: #faf3e0;+ --muted-foreground: #6a5e48;+ --accent: #b41e1e;+ --accent-foreground: #fdf8ea;++ --destructive: #b41e1e;+ --destructive-foreground: #fdf8ea;+ --success: #4a6a3a; /* bamboo */+ --warning: #c89832;+ --info: #1a1410; /* sumi black for info */++ --border: #1a1410;+ --input: #c8b890;+ --ring: #b41e1e;/* 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;+ --action-run: #4a6a3a;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #b41e1e;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #b41e1e;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #c89832;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #1a1410;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #4a6a3a;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 10%;--tint-border: 30%;@@ -189,17 +195,17 @@position: relative;}:root[data-theme="edo"] .sq-node.selected .sq-node-box {- border: 2px solid hsl(var(--accent));+ border: 2px solid 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);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent), 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);}: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);+ background: 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-gear { background: 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; }@@ -209,8 +215,8 @@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)); }+:root[data-theme="edo"] .action-deploy { background: transparent; color: var(--accent); border-color: var(--accent); }+:root[data-theme="edo"] .action-save { background: var(--accent); color: var(--fg-on-accent); border-color: var(--accent); }/* Cards / panels — minimal lines */:root[data-theme="edo"] .wf-card,@@ -220,13 +226,13 @@: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"] .wf-card.selected { border-left: 3px solid 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-user { background: transparent; border: 1px solid 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 */@@ -239,8 +245,8 @@/* 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)); }+:root[data-theme="edo"] .modal-title { font-family: var(--font-display); color: 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)); }+:root[data-theme="edo"] .cmdk-item.active { background: var(--bg-active); border-left: 3px solid var(--accent); }diff --git a/client/src/themes/greek.css b/client/src/themes/greek.cssindex 2b5e0b62..df1bf1b2 100644--- a/client/src/themes/greek.css+++ b/client/src/themes/greek.css@@ -64,7 +64,7 @@/* Wave 30: lapis-accent pulse — high-contrast against marble +* matches the temple-floor selection halo. */- --node-pulse-color: hsl(var(--accent));+ --node-pulse-color: var(--accent);--cursor-default: auto;--cursor-pointer: pointer;@@ -73,63 +73,69 @@/* ── 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%;+ --background: #ede5d0;+ --foreground: #292115;+ --card: #faf6e9;+ --card-foreground: #292115;+ --popover: #faf6e9;+ --popover-foreground: #292115;++ --primary: #284a81; /* lapis */+ --primary-foreground: #faf6e9;+ --secondary: #f6eeda;+ --secondary-foreground: #292115;+ --muted: #f6eeda;+ --muted-foreground: #6c5c3d;+ --accent: #c99e40; /* gold for shadcn accent (overrides new-contract --accent string above for HSL only — Tailwind utilities) */+ --accent-foreground: #292115;++ --destructive: #7b1b19; /* oxblood */+ --destructive-foreground: #faf6e9;+ --success: #6a7732; /* olive */+ --warning: #c99e40; /* gold */+ --info: #284a81; /* lapis */++ --border: #493318; /* border-strong drives the visible borders */+ --input: #bba477;+ --ring: #284a81;/* ── 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;+ --action-run: #6a7732;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #7b1b19;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #c99e40;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #c99e40;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #284a81;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #284a81;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 14%;--tint-border: 35%;@@ -219,10 +225,10 @@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));+ color: 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);+ border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--info) 25%, transparent), 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; }@@ -238,9 +244,9 @@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); }+:root[data-theme="greek"] .action-run { background: var(--success-soft); color: var(--success); border-color: var(--success); }+:root[data-theme="greek"] .action-deploy { background: var(--info-soft); color: var(--accent); border-color: var(--accent); }+:root[data-theme="greek"] .action-save { background: var(--warning-soft); color: var(--oxblood); border-color: var(--gold); }/* Panels */:root[data-theme="greek"] .palette h2,@@ -251,24 +257,24 @@/* 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.selected { border-color: var(--accent); background: 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-name { font-family: var(--font-display); letter-spacing: 0.16em; color: 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:hover { border-color: var(--accent); }+:root[data-theme="greek"] .comp-ico { background: var(--bg-elevated); border: 1px solid var(--border-default); color: 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-user { background: var(--info-soft); border: 2px solid var(--accent); }:root[data-theme="greek"] .chat-msg-bot { background: var(--bg-elevated); border: 2px solid var(--border-default); }/* Status bar */@@ -276,7 +282,7 @@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; }+:root[data-theme="greek"] .statusbar .pip { background: var(--success); border-radius: 0; }/* Modal — temple inscription */:root[data-theme="greek"] .modal {@@ -284,10 +290,10 @@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)); }+:root[data-theme="greek"] .modal-title { font-family: var(--font-display); letter-spacing: 0.18em; color: 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 { background: var(--info-soft); color: var(--accent); }:root[data-theme="greek"] .cmdk-item.active::before { content: '◆ '; color: var(--gold); }diff --git a/client/src/themes/light.css b/client/src/themes/light.cssindex 74f09eb0..e3726031 100644--- a/client/src/themes/light.css+++ b/client/src/themes/light.css@@ -75,4 +75,102 @@--cursor-pointer: pointer;--scrollbar-track: #eef1f5;--scrollbar-thumb: #d1d5db;++ /* ── shadcn semantic tokens (light) — hex; bridged to Tailwind via+ * index.css @theme inline. These are the light defaults; dark.css+ * overrides them under .dark / [data-theme="dark"]. ───────────────── */+ --background: #f5f7fa;+ --foreground: #1a1d21;+ --card: #ffffff;+ --card-foreground: #1a1d21;+ --popover: #ffffff;+ --popover-foreground: #1a1d21;+ --surface-card: #ffffff; /* node / data card fill */+ --primary: #2563eb;+ --primary-foreground: #ffffff;+ --secondary: #eef1f5;+ --secondary-foreground: #1a1d21;+ --muted: #eef1f5;+ --muted-foreground: #4b5563;+ --accent: #7c3aed;+ --accent-foreground: #ffffff;+ --destructive: #dc2626;+ --destructive-foreground: #ffffff;+ --success: #059669;+ --warning: #d97706;+ --info: #0891b2;+ --border: #d1d5db;+ --input: #d1d5db;+ --ring: #3b82f6;++ /* ── Dracula vibrant accents — identical in light + dark; defined on+ * the bare :root so they apply globally (dark.css does not redefine+ * them). Action / node role tokens below tint these. ──────────────── */+ --dracula-green: #50fa7b;+ --dracula-purple: #bd93f9;+ --dracula-pink: #ff79c6;+ --dracula-cyan: #8be9fd;+ --dracula-red: #ff5555;+ --dracula-orange: #ffb86c;+ --dracula-yellow: #f1fa8c;+ --dracula-selection: #44475a;+ --dracula-current-line: #383a4a;+ --dracula-comment: #6272a4;++ /* ── Node role tokens — base + soft + border. color-mix references the+ * dracula palette and base.css --tint-* scale; no inline %. Identical+ * across light/dark, so defined globally here. ───────────────────── */+ --node-agent: var(--dracula-purple);+ --node-agent-soft: color-mix(in srgb, var(--dracula-purple) var(--tint-soft), transparent);+ --node-agent-border: color-mix(in srgb, var(--dracula-purple) var(--tint-border), transparent);+ --node-model: var(--dracula-cyan);+ --node-model-soft: color-mix(in srgb, var(--dracula-cyan) var(--tint-soft), transparent);+ --node-model-border: color-mix(in srgb, var(--dracula-cyan) var(--tint-border), transparent);+ --node-skill: var(--dracula-green);+ --node-skill-soft: color-mix(in srgb, var(--dracula-green) var(--tint-soft), transparent);+ --node-skill-border: color-mix(in srgb, var(--dracula-green) var(--tint-border), transparent);+ --node-tool: var(--dracula-green);+ --node-tool-soft: color-mix(in srgb, var(--dracula-green) var(--tint-soft), transparent);+ --node-tool-border: color-mix(in srgb, var(--dracula-green) var(--tint-border), transparent);+ --node-trigger: var(--dracula-pink);+ --node-trigger-soft: color-mix(in srgb, var(--dracula-pink) var(--tint-soft), transparent);+ --node-trigger-border: color-mix(in srgb, var(--dracula-pink) var(--tint-border), transparent);+ --node-workflow: var(--dracula-orange);+ --node-workflow-soft: color-mix(in srgb, var(--dracula-orange) var(--tint-soft), transparent);+ --node-workflow-border: color-mix(in srgb, var(--dracula-orange) var(--tint-border), transparent);++ /* ── Action role tokens — base / -soft / -hover / -border / -ink.+ * Tints reference base.css --tint-action-*; -ink is the readable text+ * colour (light: a darkened accent; dark.css overrides to the raw+ * accent). ActionButton reads text-action-X-ink. ─────────────────── */+ --action-run: var(--dracula-green);+ --action-run-soft: color-mix(in srgb, var(--dracula-green) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--dracula-green) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--dracula-green) var(--tint-action-border), transparent);+ --action-run-ink: #15803d;+ --action-stop: var(--dracula-pink);+ --action-stop-soft: color-mix(in srgb, var(--dracula-pink) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--dracula-pink) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--dracula-pink) var(--tint-action-border), transparent);+ --action-stop-ink: #be185d;+ --action-save: var(--dracula-cyan);+ --action-save-soft: color-mix(in srgb, var(--dracula-cyan) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--dracula-cyan) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--dracula-cyan) var(--tint-action-border), transparent);+ --action-save-ink: #0e7490;+ --action-config: var(--dracula-orange);+ --action-config-soft: color-mix(in srgb, var(--dracula-orange) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--dracula-orange) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--dracula-orange) var(--tint-action-border), transparent);+ --action-config-ink: #c2410c;+ --action-secret: var(--dracula-yellow);+ --action-secret-soft: color-mix(in srgb, var(--dracula-yellow) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--dracula-yellow) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--dracula-yellow) var(--tint-action-border), transparent);+ --action-secret-ink: #a16207;+ --action-tools: var(--dracula-purple);+ --action-tools-soft: color-mix(in srgb, var(--dracula-purple) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--dracula-purple) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--dracula-purple) var(--tint-action-border), transparent);+ --action-tools-ink: #7c3aed;}diff --git a/client/src/themes/plague.css b/client/src/themes/plague.cssindex 92daad75..f7eaf023 100644--- a/client/src/themes/plague.css+++ b/client/src/themes/plague.css@@ -56,7 +56,7 @@/* Wave 30: bile-red pulse — matches the broadsheet warning palette* + reads against parchment. */- --node-pulse-color: hsl(var(--destructive));+ --node-pulse-color: var(--destructive);--cursor-default: auto;--cursor-pointer: pointer;@@ -64,62 +64,68 @@--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%;+ --background: #d3cdba;+ --foreground: #29190f;+ --card: #f0e9cd;+ --card-foreground: #29190f;+ --popover: #f0e9cd;+ --popover-foreground: #29190f;++ --primary: #773d27; /* dried blood */+ --primary-foreground: #f0e9cd;+ --secondary: #e2dac2;+ --secondary-foreground: #29190f;+ --muted: #e2dac2;+ --muted-foreground: #6a564a;+ --accent: #a6a738; /* bile */+ --accent-foreground: #29190f;++ --destructive: #773d27;+ --destructive-foreground: #f0e9cd;+ --success: #647016;+ --warning: #a6a738;+ --info: #4a5666;++ --border: #29190f;+ --input: #b0916c;+ --ring: #773d27;/* 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;+ --action-run: #647016;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #773d27;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #773d27;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #a6a738;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #4a5666;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #773d27;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 16%;--tint-border: 40%;@@ -180,7 +186,7 @@: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));+ font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);}/* SQUARE NODE — quarantine notice nailed up */@@ -197,23 +203,23 @@}/* 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);+ border-color: var(--accent);+ background: color-mix(in srgb, var(--destructive) 20%, transparent);+ box-shadow: 0 0 0 2px var(--accent), 0 0 14px color-mix(in srgb, var(--destructive) 40%, transparent);}-: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-gear { background: 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; }+:root[data-theme="plague"] .sq-node-handle.out { background: var(--accent); }+:root[data-theme="plague"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.06em; color: 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); }+:root[data-theme="plague"] .action-run { background: var(--success-soft); color: var(--success); border-color: var(--success); }+:root[data-theme="plague"] .action-deploy { background: var(--danger-soft); color: var(--accent); border-color: var(--accent); }+:root[data-theme="plague"] .action-save { background: var(--warning-soft); color: var(--bile); border-color: var(--bile); }/* CARDS */:root[data-theme="plague"] .wf-card,@@ -223,18 +229,18 @@: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"] .wf-card.selected { background: var(--danger-soft); border: 2px solid 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; }+:root[data-theme="plague"] .comp-ico { background: var(--bg-panel); color: 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-user { background: var(--danger-soft); border: 1px solid 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));+ background: var(--crow); color: var(--linen); border-top: 3px solid var(--accent);font-family: var(--font-mono); letter-spacing: 0.08em;}:root[data-theme="plague"] .statusbar .pip { background: var(--bile); border-radius: 0; }@@ -242,12 +248,12 @@/* 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));+ box-shadow: 8px 8px 0 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)); }+:root[data-theme="plague"] .modal-title { font-family: var(--font-display); color: 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)); }+:root[data-theme="plague"] .cmdk-item.active { background: var(--danger-soft); color: var(--accent); }+:root[data-theme="plague"] .cmdk-item.active::before { content: '† '; color: var(--accent); }diff --git a/client/src/themes/renaissance.css b/client/src/themes/renaissance.cssindex c095eb3d..7617662f 100644--- a/client/src/themes/renaissance.css+++ b/client/src/themes/renaissance.css@@ -102,69 +102,81 @@--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 */+ /* ── Shadcn bridge — hex (was HSL triplets) ──────────────────────────+ * Same colours as the new contract above, expressed as hex so the+ * index.css bridge (--color-X: var(--X), no HSL wrapper) resolves+ * correctly and Tailwind alpha utilities like bg-card/50 keep working. */++ --background: #f3e8c8;+ --foreground: #3a2008;+ --card: #fbf3dc;+ --card-foreground: #3a2008;+ --popover: #fbf3dc;+ --popover-foreground: #3a2008;++ --primary: #b8893c; /* gold accent */+ --primary-foreground: #fbf3dc;+ --secondary: #ead09a; /* panel */+ --secondary-foreground: #3a2008;+ --muted: #ead09a;+ --muted-foreground: #6a4a1c;+ --accent: #d4a030; /* gold leaf */+ --accent-foreground: #3a2008;++ --destructive: #8a1410; /* crimson */+ --destructive-foreground: #fbf3dc;+ --success: #4a6818; /* olive */+ --warning: #c08020; /* amber */+ --info: #1a3a5a; /* navy */++ --border: #8a5e1c;+ --input: #8a5e1c;+ --ring: #d4a030; /* 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;+ * color-mix references the semantic hex bases + the --tint-action-*+ * scale so ActionButton works without any code change. Renaissance runs+ * slightly stronger action tints than the shared 15/25 base (parchment+ * needs more presence), bumped once below; border stays at the base 60%.+ * -ink = the readable text colour, here the intent's own accent. */+ --tint-action-soft: 18%;+ --tint-action-hover: 30%;++ --action-run: #4a6818; /* olive (success) */+ --action-run-soft: color-mix(in srgb, #4a6818 var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, #4a6818 var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, #4a6818 var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #8a1410; /* crimson (destructive) */+ --action-stop-soft: color-mix(in srgb, #8a1410 var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, #8a1410 var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, #8a1410 var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #d4a030; /* gold leaf (primary action) */+ --action-save-soft: color-mix(in srgb, #d4a030 var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, #d4a030 var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--primary) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #c08020; /* amber (warning) */+ --action-config-soft: color-mix(in srgb, #c08020 var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, #c08020 var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, #c08020 var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #1a3a5a; /* navy (info / secret) */+ --action-secret-soft: color-mix(in srgb, #1a3a5a var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, #1a3a5a var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, #1a3a5a var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: var(--primary); /* gold accent */+ --action-tools-soft: color-mix(in srgb, var(--primary) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--primary) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--primary) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);/* Tint utilities — slightly stronger on parchment so brand-coloured* surfaces (provider icons, skill colours) stay legible. */@@ -401,37 +413,14 @@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);- }-}-+/* Renaissance executing-pulse: the ren-pulse-exec keyframe + its+ * --pulse-keyframe/-duration/-timing tokens now live in+ * client/src/themes/animations.css; base.css's token-driven `.executing`+ * rule applies them. This rule keeps only the lapis border the pulse+ * pairs with. */: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 {@@ -601,7 +590,7 @@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-str { color: var(--success); }:root[data-theme="renaissance"] .json-num { color: var(--gold-bright); }/* ─── CHAT TABS ─── */@@ -661,8 +650,8 @@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);+ background: var(--success);+ box-shadow: 0 0 6px var(--success), 0 0 0 1px var(--border-strong);}/* ─── MODAL — illuminated codex page ─── */diff --git a/client/src/themes/rot.css b/client/src/themes/rot.cssindex 5d9e335d..c354e81f 100644--- a/client/src/themes/rot.css+++ b/client/src/themes/rot.css@@ -55,7 +55,7 @@/* Wave 30: phosphor-green pulse — high-contrast against the moss* + crypt-brown canvas backplane. */- --node-pulse-color: hsl(var(--accent));+ --node-pulse-color: var(--accent);--cursor-default: auto;--cursor-pointer: pointer;@@ -63,62 +63,68 @@--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%;+ --background: #14181a;+ --foreground: #c8d8c0;+ --card: #252e33;+ --card-foreground: #c8d8c0;+ --popover: #252e33;+ --popover-foreground: #c8d8c0;++ --primary: #74d074; /* moss bloom */+ --primary-foreground: #060f14;+ --secondary: #1c2327;+ --secondary-foreground: #c8d8c0;+ --muted: #1c2327;+ --muted-foreground: #788878;+ --accent: #e8a338; /* candleflame amber */+ --accent-foreground: #060f14;++ --destructive: #a73a3a;+ --destructive-foreground: #c8d8c0;+ --success: #74d074;+ --warning: #e8a338;+ --info: #5793b6;++ --border: #3d5848;+ --input: #3d5848;+ --ring: #74d074;/* 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;+ --action-run: #74d074;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #a73a3a;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #e8a338;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #e8a338;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #5793b6;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #74d074;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 16%;--tint-border: 40%;@@ -197,20 +203,20 @@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);+ border-color: 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)); }+:root[data-theme="rot"] .sq-node-handle.out { background: var(--accent); box-shadow: 0 0 6px 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); }+:root[data-theme="rot"] .action-run { background: var(--success-soft); color: var(--accent); border-color: var(--success); }+:root[data-theme="rot"] .action-deploy { background: var(--info-soft); color: var(--info); border-color: var(--info); }+:root[data-theme="rot"] .action-save { background: var(--warning-soft); color: var(--candle); border-color: var(--candle); }/* CARDS */:root[data-theme="rot"] .wf-card,@@ -220,13 +226,13 @@: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"] .wf-card.selected { border-color: var(--accent); background: 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); }+:root[data-theme="rot"] .comp-ico { background: var(--bg-panel); color: 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-user { background: var(--success-soft); border: 1px solid var(--accent); }:root[data-theme="rot"] .chat-msg-bot { background: var(--bg-elevated); border-left: 2px solid var(--candle); }/* STATUS BAR */@@ -234,7 +240,7 @@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)); }+:root[data-theme="rot"] .statusbar .pip { background: var(--accent); box-shadow: 0 0 6px var(--accent); }/* MODAL */:root[data-theme="rot"] .modal {@@ -246,4 +252,4 @@/* 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)); }+:root[data-theme="rot"] .cmdk-item.active { background: var(--bg-active); color: var(--accent); }diff --git a/client/src/themes/steampunk.css b/client/src/themes/steampunk.cssindex ce941df0..d1d3a156 100644--- a/client/src/themes/steampunk.css+++ b/client/src/themes/steampunk.css@@ -55,7 +55,7 @@/* Wave 30: copper-accent pulse — high-contrast against leather +* brass canvas, matches the rivet decorations. */- --node-pulse-color: hsl(var(--accent));+ --node-pulse-color: var(--accent);--cursor-default: auto;--cursor-pointer: pointer;@@ -63,62 +63,68 @@--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%;+ --background: #2b1e12;+ --foreground: #e7d5b1;+ --card: #4a3621;+ --card-foreground: #e7d5b1;+ --popover: #4a3621;+ --popover-foreground: #e7d5b1;++ --primary: #d7a747; /* brass */+ --primary-foreground: #2b1e12;+ --secondary: #392919;+ --secondary-foreground: #e7d5b1;+ --muted: #392919;+ --muted-foreground: #b9a06e;+ --accent: #b7542a; /* copper */+ --accent-foreground: #2b1e12;++ --destructive: #89341a; /* rust */+ --destructive-foreground: #e7d5b1;+ --success: #6f8939;+ --warning: #d7a747;+ --info: #4987a7;++ --border: #694820;+ --input: #694820;+ --ring: #d7a747;/* 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;+ --action-run: #6f8939;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #89341a;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #d7a747;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #d7a747;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #4987a7;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #b7542a;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 16%;--tint-border: 40%;@@ -193,15 +199,15 @@: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));+ font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);}/* Square node — riveted brass plate */:root[data-theme="steampunk"] .sq-node-box {- background: linear-gradient(180deg, hsl(var(--accent)), var(--copper));+ background: linear-gradient(180deg, var(--accent), var(--copper));border: 2px solid var(--leather); border-radius: 4px;box-shadow:- inset 0 0 0 1px hsl(var(--accent)),+ inset 0 0 0 1px 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);@@ -217,10 +223,10 @@: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);+ box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px 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)); }+:root[data-theme="steampunk"] .sq-node-gear { background: var(--copper); color: var(--accent); border: 1px solid var(--leather); }+:root[data-theme="steampunk"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.10em; color: var(--accent); }/* Actions — engraved brass plates */:root[data-theme="steampunk"] .action-btn {@@ -228,9 +234,9 @@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)); }+: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: var(--success); }+:root[data-theme="steampunk"] .action-deploy { color: var(--accent); border-color: var(--accent); }+:root[data-theme="steampunk"] .action-save { color: var(--accent); border-color: var(--accent); }/* Panels */:root[data-theme="steampunk"] .wf-card,@@ -241,20 +247,20 @@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)); }+:root[data-theme="steampunk"] .cat-tile { background: 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: 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-user { background: rgba(216,168,72,0.16); border: 1px solid var(--accent); color: 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;+ font-family: var(--font-mono); color: var(--accent); letter-spacing: 0.10em;}-:root[data-theme="steampunk"] .statusbar .pip { background: hsl(var(--success)); box-shadow: 0 0 4px hsl(var(--success)); }+:root[data-theme="steampunk"] .statusbar .pip { background: var(--success); box-shadow: 0 0 4px var(--success); }/* Modal */:root[data-theme="steampunk"] .modal {@@ -263,10 +269,10 @@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; }+:root[data-theme="steampunk"] .modal-title { font-family: var(--font-display); color: 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); }+:root[data-theme="steampunk"] .cmdk-item.active { background: var(--bg-active); color: var(--accent); border-left: 3px solid var(--copper); }diff --git a/client/src/themes/surveillance.css b/client/src/themes/surveillance.cssindex ee1883f9..9aa25e6d 100644--- a/client/src/themes/surveillance.css+++ b/client/src/themes/surveillance.css@@ -56,7 +56,7 @@/* 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));+ --node-pulse-color: 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;@@ -73,62 +73,68 @@--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%;+ --background: #1a1c1e;+ --foreground: #c8ccd0;+ --card: #2d3034;+ --card-foreground: #c8ccd0;+ --popover: #2d3034;+ --popover-foreground: #c8ccd0;++ --primary: #e82626; /* REC red */+ --primary-foreground: #ffffff;+ --secondary: #26292b;+ --secondary-foreground: #c8ccd0;+ --muted: #26292b;+ --muted-foreground: #8b8f92;+ --accent: #6bcc6b; /* phosphor green */+ --accent-foreground: #0c0d0e;++ --destructive: #e82626;+ --destructive-foreground: #ffffff;+ --success: #6bcc6b;+ --warning: #d99f20;+ --info: #5689c8;++ --border: #575b60;+ --input: #575b60;+ --ring: #e82626;/* 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;+ --action-run: #6bcc6b;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #e82626;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #6bcc6b;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #d99f20;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #e82626;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #5689c8;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 16%;--tint-border: 45%;@@ -197,47 +203,28 @@}: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));+ background: var(--primary); border-radius: 50%; box-shadow: 0 0 4px 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);- }+ border: 1px solid var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 0 8px rgba(232,38,38,0.4);}+/* Surveillance executing-pulse: the surv-pulse-exec keyframe + its+ * --pulse-keyframe/-duration/-timing tokens now live in+ * client/src/themes/animations.css; base.css's token-driven `.executing`+ * rule applies them. This rule keeps only the REC-red border the pulse+ * pairs with. */: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));+ border: 1px solid 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-gear { background: 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-handle.out { background: 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 */@@ -246,9 +233,9 @@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-deploy { background: var(--primary); color: white; border-color: 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)); }+:root[data-theme="surveillance"] .action-stop { background: var(--primary); color: white; border-color: var(--primary); }/* CARDS */:root[data-theme="surveillance"] .wf-card,@@ -258,32 +245,32 @@: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"] .wf-card.selected { border: 1px solid var(--primary); background: var(--danger-soft); }+:root[data-theme="surveillance"] .cat-tile { background: 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-user { background: var(--bg-panel); border: 1px solid 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;+ background: 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;+ background: var(--bg-elevated); border: 1px solid 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; }+:root[data-theme="surveillance"] .modal-head { border-bottom: 1px solid var(--primary); background: var(--bg-panel); }+:root[data-theme="surveillance"] .modal-title { font-family: var(--font-display); color: 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 { background: var(--bg-elevated); border: 1px solid var(--primary); border-radius: 0; }+:root[data-theme="surveillance"] .cmdk-item.active { background: var(--primary); color: white; }:root[data-theme="surveillance"] .cmdk-item.active::before { content: '> '; }diff --git a/client/src/themes/wasteland.css b/client/src/themes/wasteland.cssindex c53ab799..31c50754 100644--- a/client/src/themes/wasteland.css+++ b/client/src/themes/wasteland.css@@ -54,7 +54,7 @@/* Wave 30: radioactive-yellow pulse — high-contrast against ochre* dust + matches the rust-belt accent palette. */- --node-pulse-color: hsl(var(--accent));+ --node-pulse-color: var(--accent);--cursor-default: auto;--cursor-pointer: pointer;@@ -62,62 +62,68 @@--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%;+ --background: #2a2118;+ --foreground: #e5d2a9;+ --card: #4a3726;+ --card-foreground: #e5d2a9;+ --popover: #4a3726;+ --popover-foreground: #e5d2a9;++ --primary: #e78127; /* ochre */+ --primary-foreground: #1a130f;+ --secondary: #3b2a1c;+ --secondary-foreground: #e5d2a9;+ --muted: #3b2a1c;+ --muted-foreground: #b79666;+ --accent: #bfc83c; /* radioactive */+ --accent-foreground: #1a130f;++ --destructive: #b72a1a;+ --destructive-foreground: #e5d2a9;+ --success: #9ba32e;+ --warning: #bfc83c;+ --info: #e78127;++ --border: #694a26;+ --input: #694a26;+ --ring: #e78127;/* 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;+ --action-run: #9ba32e;+ --action-run-soft: color-mix(in srgb, var(--action-run) var(--tint-action-soft), transparent);+ --action-run-hover: color-mix(in srgb, var(--action-run) var(--tint-action-hover), transparent);+ --action-run-border: color-mix(in srgb, var(--action-run) var(--tint-action-border), transparent);+ --action-run-ink: var(--action-run);++ --action-stop: #b72a1a;+ --action-stop-soft: color-mix(in srgb, var(--action-stop) var(--tint-action-soft), transparent);+ --action-stop-hover: color-mix(in srgb, var(--action-stop) var(--tint-action-hover), transparent);+ --action-stop-border: color-mix(in srgb, var(--action-stop) var(--tint-action-border), transparent);+ --action-stop-ink: var(--action-stop);++ --action-save: #e78127;+ --action-save-soft: color-mix(in srgb, var(--action-save) var(--tint-action-soft), transparent);+ --action-save-hover: color-mix(in srgb, var(--action-save) var(--tint-action-hover), transparent);+ --action-save-border: color-mix(in srgb, var(--action-save) var(--tint-action-border), transparent);+ --action-save-ink: var(--action-save);++ --action-config: #bfc83c;+ --action-config-soft: color-mix(in srgb, var(--action-config) var(--tint-action-soft), transparent);+ --action-config-hover: color-mix(in srgb, var(--action-config) var(--tint-action-hover), transparent);+ --action-config-border: color-mix(in srgb, var(--action-config) var(--tint-action-border), transparent);+ --action-config-ink: var(--action-config);++ --action-secret: #e78127;+ --action-secret-soft: color-mix(in srgb, var(--action-secret) var(--tint-action-soft), transparent);+ --action-secret-hover: color-mix(in srgb, var(--action-secret) var(--tint-action-hover), transparent);+ --action-secret-border: color-mix(in srgb, var(--action-secret) var(--tint-action-border), transparent);+ --action-secret-ink: var(--action-secret);++ --action-tools: #bfc83c;+ --action-tools-soft: color-mix(in srgb, var(--action-tools) var(--tint-action-soft), transparent);+ --action-tools-hover: color-mix(in srgb, var(--action-tools) var(--tint-action-hover), transparent);+ --action-tools-border: color-mix(in srgb, var(--action-tools) var(--tint-action-border), transparent);+ --action-tools-ink: var(--action-tools);--tint-soft: 18%;--tint-border: 45%;@@ -167,7 +173,7 @@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"] .toolbar { border-bottom: 2px solid var(--rust); box-shadow: inset 0 -1px 0 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); }@@ -183,7 +189,7 @@: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));+ font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);}/* SQUARE NODE — scrap metal plate, hand-stenciled */@@ -193,7 +199,7 @@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));+ color: var(--accent);position: relative;}:root[data-theme="wasteland"] .sq-node-box::before {@@ -201,9 +207,9 @@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.selected .sq-node-box { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--info) 25%, transparent), 2px 2px 0 var(--rust); }+:root[data-theme="wasteland"] .sq-node-gear { background: var(--rust); color: var(--accent); border: 1px solid var(--accent); border-radius: 0; }+:root[data-theme="wasteland"] .sq-node-handle.out { background: var(--accent); }:root[data-theme="wasteland"] .sq-node-label { font-family: var(--font-display); letter-spacing: 0.10em; }/* ACTIONS — stenciled */@@ -211,10 +217,10 @@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; }+:root[data-theme="wasteland"] .action-run { background: var(--success-soft); color: var(--success); border-color: var(--success); border-style: solid; }+:root[data-theme="wasteland"] .action-deploy { background: var(--info-soft); color: var(--accent); border-color: var(--accent); border-style: solid; }+:root[data-theme="wasteland"] .action-save { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); border-style: solid; }+:root[data-theme="wasteland"] .action-stop { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); border-style: solid; }/* CARDS */:root[data-theme="wasteland"] .wf-card,@@ -224,27 +230,27 @@: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; }+:root[data-theme="wasteland"] .wf-card.selected { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }+:root[data-theme="wasteland"] .cat-tile { background: var(--rust); color: var(--accent); border-radius: 0; }+:root[data-theme="wasteland"] .comp-ico { background: var(--bg-input); color: 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-user { background: var(--info-soft); border: 1px solid 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);+ background: var(--bg-input); color: 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 { background: var(--bg-elevated); border: 3px solid 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; }+:root[data-theme="wasteland"] .modal-title { font-family: var(--font-display); color: 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); }+:root[data-theme="wasteland"] .cmdk { background: var(--bg-elevated); border: 3px solid var(--accent); border-radius: 0; }+:root[data-theme="wasteland"] .cmdk-item.active { background: var(--bg-active); color: var(--accent); border-left: 3px solid var(--rust); }diff --git a/client/tailwind.config.js b/client/tailwind.config.jsindex 01c76ad3..3bd9534d 100644--- a/client/tailwind.config.js+++ b/client/tailwind.config.js@@ -15,76 +15,79 @@ export default {},extend: {colors: {- border: "hsl(var(--border))",- input: "hsl(var(--input))",- ring: "hsl(var(--ring))",- background: "hsl(var(--background))",- foreground: "hsl(var(--foreground))",+ // Tokens are hex / color-mix (see client/src/index.css) — map the+ // CSS var directly, NO hsl() wrapper. Tailwind composes /opacity via+ // color-mix() regardless of the underlying color format.+ border: "var(--border)",+ input: "var(--input)",+ ring: "var(--ring)",+ background: "var(--background)",+ foreground: "var(--foreground)",primary: {- DEFAULT: "hsl(var(--primary))",- foreground: "hsl(var(--primary-foreground))",+ DEFAULT: "var(--primary)",+ foreground: "var(--primary-foreground)",},secondary: {- DEFAULT: "hsl(var(--secondary))",- foreground: "hsl(var(--secondary-foreground))",+ DEFAULT: "var(--secondary)",+ foreground: "var(--secondary-foreground)",},destructive: {- DEFAULT: "hsl(var(--destructive))",- foreground: "hsl(var(--destructive-foreground))",+ DEFAULT: "var(--destructive)",+ foreground: "var(--destructive-foreground)",},muted: {- DEFAULT: "hsl(var(--muted))",- foreground: "hsl(var(--muted-foreground))",+ DEFAULT: "var(--muted)",+ foreground: "var(--muted-foreground)",},accent: {- DEFAULT: "hsl(var(--accent))",- foreground: "hsl(var(--accent-foreground))",+ DEFAULT: "var(--accent)",+ foreground: "var(--accent-foreground)",},popover: {- DEFAULT: "hsl(var(--popover))",- foreground: "hsl(var(--popover-foreground))",+ DEFAULT: "var(--popover)",+ foreground: "var(--popover-foreground)",},card: {- DEFAULT: "hsl(var(--card))",- foreground: "hsl(var(--card-foreground))",+ DEFAULT: "var(--card)",+ foreground: "var(--card-foreground)",},- success: "hsl(var(--success))",- warning: "hsl(var(--warning))",- info: "hsl(var(--info))",+ success: "var(--success)",+ warning: "var(--warning)",+ info: "var(--info)",dracula: {- green: "hsl(var(--dracula-green))",- purple: "hsl(var(--dracula-purple))",- pink: "hsl(var(--dracula-pink))",- cyan: "hsl(var(--dracula-cyan))",- red: "hsl(var(--dracula-red))",- orange: "hsl(var(--dracula-orange))",- yellow: "hsl(var(--dracula-yellow))",- selection: "hsl(var(--dracula-selection))",- "current-line": "hsl(var(--dracula-current-line))",- comment: "hsl(var(--dracula-comment))",+ green: "var(--dracula-green)",+ purple: "var(--dracula-purple)",+ pink: "var(--dracula-pink)",+ cyan: "var(--dracula-cyan)",+ red: "var(--dracula-red)",+ orange: "var(--dracula-orange)",+ yellow: "var(--dracula-yellow)",+ selection: "var(--dracula-selection)",+ "current-line": "var(--dracula-current-line)",+ comment: "var(--dracula-comment)",},// Role-based node tokens — base + soft (tinted bg) + border// (tinted outline). Themes redefine the underlying CSS vars.// Call sites use bg-node-X-soft / border-node-X-border directly,// never with /N opacity arithmetic.- "node-agent": "hsl(var(--node-agent))",- "node-agent-soft": "hsl(var(--node-agent-soft))",- "node-agent-border": "hsl(var(--node-agent-border))",- "node-model": "hsl(var(--node-model))",- "node-model-soft": "hsl(var(--node-model-soft))",- "node-model-border": "hsl(var(--node-model-border))",- "node-skill": "hsl(var(--node-skill))",- "node-skill-soft": "hsl(var(--node-skill-soft))",- "node-skill-border": "hsl(var(--node-skill-border))",- "node-tool": "hsl(var(--node-tool))",- "node-tool-soft": "hsl(var(--node-tool-soft))",- "node-tool-border": "hsl(var(--node-tool-border))",- "node-trigger": "hsl(var(--node-trigger))",- "node-trigger-soft": "hsl(var(--node-trigger-soft))",- "node-trigger-border": "hsl(var(--node-trigger-border))",- "node-workflow": "hsl(var(--node-workflow))",- "node-workflow-soft": "hsl(var(--node-workflow-soft))",- "node-workflow-border": "hsl(var(--node-workflow-border))",+ "node-agent": "var(--node-agent)",+ "node-agent-soft": "var(--node-agent-soft)",+ "node-agent-border": "var(--node-agent-border)",+ "node-model": "var(--node-model)",+ "node-model-soft": "var(--node-model-soft)",+ "node-model-border": "var(--node-model-border)",+ "node-skill": "var(--node-skill)",+ "node-skill-soft": "var(--node-skill-soft)",+ "node-skill-border": "var(--node-skill-border)",+ "node-tool": "var(--node-tool)",+ "node-tool-soft": "var(--node-tool-soft)",+ "node-tool-border": "var(--node-tool-border)",+ "node-trigger": "var(--node-trigger)",+ "node-trigger-soft": "var(--node-trigger-soft)",+ "node-trigger-border": "var(--node-trigger-border)",+ "node-workflow": "var(--node-workflow)",+ "node-workflow-soft": "var(--node-workflow-soft)",+ "node-workflow-border": "var(--node-workflow-border)",},borderRadius: {lg: "var(--radius)",diff --git a/docs-internal/design-system/.thumbnail b/docs-internal/design-system/.thumbnailnew file mode 100644index 00000000..f84a7262Binary files /dev/null and b/docs-internal/design-system/.thumbnail differdiff --git a/docs-internal/design-system/CLAUDE.md b/docs-internal/design-system/CLAUDE.mdnew file mode 100644index 00000000..c1ab840e--- /dev/null+++ b/docs-internal/design-system/CLAUDE.md@@ -0,0 +1,4 @@+# Project instructions++- Use properly readable fonts in all designs. Decorative/display theme fonts (UnifrakturCook, Pirata One, Major Mono Display, IM Fell English SC, etc.) may appear only as small specimens when documenting a theme — never on UI copy, buttons, labels, headings, or body text. UI copy always uses the readable stack: Geist for words, JetBrains Mono for machine voice, or each theme's readable body font.+- Avoid hard-to-read styles generally: no extreme letter-spacing on long text, no low-contrast text on tinted fills.diff --git a/docs-internal/design-system/IMPLEMENTATION.md b/docs-internal/design-system/IMPLEMENTATION.mdnew file mode 100644index 00000000..edf56370--- /dev/null+++ b/docs-internal/design-system/IMPLEMENTATION.md@@ -0,0 +1,170 @@+# MachinaOS Design System — Claude Code Implementation Guide++This bundle is the **MachinaOS (zeenie.ai) design system**: real design tokens, reference React components, full-screen UI-kit recreations, and foundation/theme documentation. Hand it to Claude Code to implement MachinaOS-branded UI in a real codebase.++> **What these files are.** `styles.css` + everything under `tokens/` is **production-ready CSS** — ship it as-is. Everything under `components/`, `ui_kits/`, and `guidelines/` is a **design reference**: faithful prototypes (React with inline styles that read the CSS variables) showing the intended look, anatomy, and behavior. Recreate them in the target codebase's own environment and patterns (your component library, your styling system) rather than copying verbatim. If there's no environment yet, React + plain CSS variables is the path of least resistance because the components are already written that way.++This guide is self-sufficient — a developer who wasn't in the original conversation can implement from it alone.++---++## 1. Quickstart++```+your-app/+ design-system/ ← copy tokens/ + styles.css here unchanged+ styles.css+ tokens/{colors,typography,spacing,motion,animations,fonts,base}.css+```++```html+<!-- load the global stylesheet once -->+<link rel="stylesheet" href="/design-system/styles.css">+<!-- icons: Lucide (the only icon system) -->+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+```++```html+<html class="dark"> <!-- signature look. Omit `dark` for the light theme -->+```++That's the whole foundation. Every component reads CSS custom properties, so theming is automatic — no JS theme context required for light/dark.++**Fidelity: high.** Colors, type, spacing, radii, motion and component anatomy are final. Recreate pixel-for-pixel using the tokens; do not re-derive values by eye.++---++## 2. Design tokens (the contract)++All tokens are CSS custom properties under `:root` (light) and `.dark` / `[data-theme="dark"]` (dark). Full source: `tokens/`. Consume them as `var(--token)` — never hardcode the resolved hex.++### Surfaces+| Token | Light | Dark | Use |+|---|---|---|---|+| `--bg-app` | `#f5f7fa` | `#002b36` | app/window background |+| `--bg-panel` | `#fafbfc` | `#073642` | toolbar, sidebar, palette, status bar |+| `--bg-canvas` | `#ffffff` | `#002b36` | node canvas |+| `--bg-elevated` | `#ffffff` | `#0d1f2d` | cards, section heads, inputs-on-panel |+| `--bg-input` | `#ffffff` | `#073642` | form fields |+| `--surface-card` | `#ffffff` | `#073642` | node/data card fill |+| `--bg-hover` | `rgba(0,0,0,.04)` | `rgba(248,248,242,.06)` | hover wash |+| `--bg-active` | `rgba(0,0,0,.06)` | `rgba(189,147,249,.18)` | selected/pressed wash |+| `--bg-overlay` | `rgba(0,0,0,.45)` | `rgba(0,0,0,.7)` | modal scrim |++### Foreground & borders+`--fg-default` (#1a1d21 / #f8f8f2) · `--fg-muted` (#4b5563 / #94a8d6) · `--fg-faint` (#9ca3af / #6272a4) · `--fg-on-accent`.+`--border-default` (#d1d5db / #586e75) · `--border-strong` · `--border-focus` (#3b82f6 / #268bd2).++### Brand & status+`--primary` #2563eb / #268bd2 · `--accent` #7c3aed / #8be9fd.+`--success` #059669 / #859900 · `--warning` #d97706 / #b58900 · `--destructive` #dc2626 / #dc322f · `--info` #0891b2 / #2aa198.++### Dracula accents (identical in both themes — the personality layer)+`--dracula-green #50fa7b` · `--dracula-cyan #8be9fd` · `--dracula-purple #bd93f9` · `--dracula-pink #ff79c6` · `--dracula-orange #ffb86c` · `--dracula-yellow #f1fa8c` · `--dracula-red #ff5555`.++**These are never used as solid fills.** They are applied as *soft tints* via the role tokens below.++### Semantic roles — THE core idea+Color is assigned to **meaning**, not chosen decoratively. Two role families, each a triplet (`-soft` ~8–15% fill, `-border` ~30–60% border, full-strength text via `-ink`):++**Action intents** (buttons): `--action-run` (green) · `--action-stop` (pink) · `--action-save` (cyan) · `--action-config` (orange) · `--action-secret` (yellow) · `--action-tools` (purple). Each has `-soft`, `-hover`, `-border`, `-ink` variants.++**Node roles** (canvas): `--node-agent` (purple) · `--node-model` (cyan) · `--node-tool` (green) · `--node-trigger` (pink) · `--node-workflow` (orange). Each has `-soft` and `-border`.++The signature button recipe:+```css+background: var(--action-run-soft); /* ~15% tint */+border: 1px solid var(--action-run-border); /* ~60% */+color: var(--action-run-ink); /* readable accent */+/* hover → background: var(--action-run-hover) (~25%) */+```++### Type+`--font-sans: 'Geist'` (display = body) · `--font-mono: 'JetBrains Mono'` (counts, state, timestamps — the "machine voice").+Scale (14px base, dense desktop): `--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 body / 500 UI labels / 600 headings & buttons. Sentence case; uppercase + `--tracking-label .04em` only in the status bar and micro-labels.++### Spacing / radii / chrome+Space: `--space-1..8` = 4/8/12/16/24/32/48/64.+Radii: `--radius-sm 4` `--radius-md 6` `--radius-lg 8` (controls) `--radius-node 10` `--radius-xl 12` `--radius-pill 999`.+Fixed chrome: `--h-toolbar 48` `--h-statusbar 24` `--h-control 32` `--w-sidebar 280` `--w-palette 320`.++### Shadows / motion+`--shadow-card` (quiet) `--shadow-card-hover` `--shadow-modal`. Glow is reserved for meaning (accent-colored shadow on nodes; 3-layer executing pulse).+`--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)`. Hover lifts -1px; press translates +1px; disabled opacity .5. Honor `prefers-reduced-motion`.++### Motion / animation (`tokens/animations.css` — see §6)+Motion is theme-scoped: each `[data-theme]` overrides `--dur-*`, `--ease-default`, a named `--motion-style`, and which executing-pulse keyframe it uses. The glow color is **`--node-pulse-color`** — a theme-chosen contrast accent, never the node's own fill. Signature keyframes: `node-pulse` (default 3-layer glow), `trigger-listening` (armed heartbeat), `cyber-*` (steps strobe + CRT + scanline), `surv-*`, `ren-pulse-exec`. Helper classes: `.machina-pulse`, `.machina-trigger-armed`, `.machina-bolt`, `.machina-crt`, `.machina-scanline`.++---++## 3. Components (reference implementations)++34 components in `components/<group>/`. Each ships three files: `Name.jsx` (reference React, inline styles reading tokens), `Name.d.ts` (props contract), `Name.prompt.md` (one-line purpose + usage example + variants). **Read the `.prompt.md` first** for intent, then the `.jsx` for exact styling.++| Group | Components |+|---|---|+| `buttons/` | **ActionButton** (6 soft-tint intents — the signature button), Button (shadcn variants) |+| `forms/` | Input, Textarea, Select, Checkbox, RadioGroup, Switch, **Slider**, **ApiKeyInput** (masked + validate flow) |+| `display/` | Badge, Card, Tabs, Avatar, Kbd, **LogLine**, **ChatBubble** |+| `feedback/` | Modal, Toast, Tooltip, Spinner, Progress, EmptyState |+| `panels/` | **PanelModal** (title-left / centered actions / X-right), **SettingsSection**+SettingsRow, **CollapsibleSection**, **DataCard** (execution JSON card) |+| `canvas/` | **SquareNode** (the workflow node — pip, gear, handles, pulse; `trigger` variant adds the lightning ⚡ badge + listening pulse and drops the input handle), ComponentItem, WorkflowCard, StatusBar, ModeToggle |+| `icons/` | Icon (Lucide bridge — stroke 2, `currentColor`) |++Implementation notes:+- Components are self-contained: they import React only and reference styling exclusively through CSS variables. No CSS-in-JS lib, no other npm deps.+- To adopt into an existing system, map each to your primitive (e.g. your `<Button>`) and apply the token recipe from the `.jsx`. To adopt wholesale, the `.jsx` files run as-is in React 18.+- Product node icons are colorful emoji-style glyphs (🤖 🧠 💬 📱 🔍); provider logos come from `@lobehub/icons` in production — substitute colored marks if unavailable. Everything else is Lucide.++---++## 4. UI kits (full screens to match)++`ui_kits/machinaos/` is an interactive recreation of the product — the source of truth for how components compose into real views. Open `ui_kits/machinaos/index.html`.++- `Toolbar.jsx` — 48px top toolbar (file menu, workflow name, Normal/Dev toggle, action cluster, save state).+- `Panels.jsx` — 280px workflow sidebar + 320px component palette (search, categorized node catalogue, count badges).+- `CanvasView.jsx` — dot-grid canvas, dashed SVG edges, SquareNodes + the rectangular AI Agent node, executing-pulse run sequence.+- `ConsoleDock.jsx` — Chat / Console / Terminal tabbed dock.+- `PanelsModals.jsx` — **Settings**, **API Credentials**, and the three-column **Node Configuration / Parameter** panel (Input data | Parameters | Output).+- `App.jsx` — state wiring (panel toggles, theme, run/stop, add-node, open modals).++Layout contract: fixed 48px toolbar + 24px status bar top/bottom; 280px sidebar left; 320px palette right; canvas fills the remainder. Density is high (32px controls, 13–14px text).++---++## 5. Theming beyond light/dark++The real app ships **12 themes** (light, dark + 10 "skins": Renaissance, Greek, Edo, Steampunk, Atomic, Cyber, Wasteland, Rot, Plague, Surveillance). Only light/dark are encoded as live token scopes here. The architecture, per-theme token tables, and porting recipe are in `guidelines/THEMES.md`; verbatim source for all 13 theme CSS files is in `reference/themes/`. To add a skin: copy its token block into a `[data-theme="X"]` scope, map its accents onto the action/node role triplets, and load its fonts. **Readability rule:** decorative display faces (blackletter, Major Mono, etc.) are documentation specimens only — UI copy always uses a readable body font.++Visual verification pages (open in a browser): `guidelines/theme-comparison-full.html` (full screen ×12), `guidelines/panels-all-themes.html` (every panel — chrome + overlays — ×12), `guidelines/theme-matrix.html` (token matrix), `guidelines/animations-all-themes.html` (live motion ×12).++## 5b. Motion & animation (`tokens/animations.css` · `guidelines/ANIMATIONS.md`)++Motion is part of each theme's identity — the personality lives in the **easing function**, not just duration (smooth · organic · mechanical · bouncy 1.6-overshoot · steps glitch · jittery · 680ms drift · stiff · linear scanline). Per-`[data-theme]` scopes set `--dur-*`, `--ease-*`, `--motion-style`, and `--pulse-keyframe/-duration/-timing`.++- **Executing pulse:** add `.machina-pulse` to a running node; it reads the theme's keyframe + `--node-pulse-color` (the theme's contrast glow color — set it on/above the node).+- **Trigger nodes:** `.machina-trigger-armed` is the continuous "listening" heartbeat while a trigger waits for events (distinct from the one-shot execution pulse); pair with the lightning ⚡ badge (`.machina-bolt`) and no input handle. `trigger-fire` flashes when an event lands.+- **Ambient:** `.machina-crt` (CRT flicker) + `.machina-scanline` (rolling band) for Cyber/Surveillance frames.+- All loops stop under `prefers-reduced-motion`; always ship the static end-state so print/PDF render meaningfully.++---++## 6. Voice & content (for any new copy)++Second person, possessive ("your own AI assistant"). Terse declarative fragments ("No code. No subscription. No usage limits."). Sentence case. Buttons are one word / short verb phrase (Start, Stop, Save, New Workflow). Mono for numbers and state. **No decorative emoji** — in-product emoji are functional node glyphs only. Status bar reads like a shell prompt: `ONLINE | WF: Test | NODES: 12 | THEME: DARK | 14:02:33`.++---++## 7. File map++- `styles.css` — global entry (import this). `tokens/` — the seven token files including `animations.css` (ship as-is).+- `components/<group>/` — 38 components (`.jsx` + `.d.ts` + `.prompt.md`) + one `*.card.html` specimen per group.+- `ui_kits/machinaos/` — interactive full-app recreation (`index.html` + JSX) incl. Settings / Credentials / Node-Config panels.+- `guidelines/` — foundation specimen cards, `THEMES.md`, `ANIMATIONS.md`, and the theme/panel/animation comparison pages.+- `reference/themes/` — verbatim repo theme CSS (porting reference; not shipped to consumers).+- `assets/` — product screenshot + official architecture diagrams (SVG).+- `readme.md` — design guide (voice, visual foundations, iconography). `SKILL.md` — Agent-Skill entry point.++**Upstream source:** https://github.com/zeenie-ai/MachinaOS (`client/src/index.css`, `client/src/themes/*.css`, `client/src/components/ui/*`). Explore it for any detail this bundle doesn't cover.diff --git a/docs-internal/design-system/SKILL.md b/docs-internal/design-system/SKILL.mdnew file mode 100644index 00000000..db373f20--- /dev/null+++ b/docs-internal/design-system/SKILL.md@@ -0,0 +1,17 @@+---+name: machinaos-design+description: Use this skill to generate well-branded interfaces and assets for MachinaOS (zeenie.ai), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.+user-invocable: true+---++Read the README.md file within this skill, and explore the other available files.+If creating visual artifacts (slides, mocks, throwaway prototypes, etc), copy assets out and create static HTML files for the user to view. If working on production code, you can copy assets and read the rules here to become an expert in designing with this brand.+If the user invokes this skill without any other guidance, ask them what they want to build or design, ask some questions, and act as an expert designer who outputs HTML artifacts _or_ production code, depending on the need.++Key facts:+- MachinaOS is zeenie.ai's local-first AI workflow OS — a visual node canvas where users wire AI agents to email, WhatsApp, Android phones, browsers, and 50+ services.+- Link `styles.css` for all tokens; add `class="dark"` on `<html>` for the signature Solarized-dark + Dracula-neon look (the default for product UI).+- Color is semantic: action intents (run=green, stop=pink, save=cyan, config=orange, secret=yellow, tools=purple) and node roles (agent=purple, model=cyan, tool=green, trigger=pink, workflow=orange) — always as soft tints (8–15% fill, 30–60% border, full-strength text), never solid neon fills.+- Type: Geist (Google Fonts), 14px base, sentence case, terse copy; JetBrains Mono for counts/state/timestamps.+- Icons: Lucide only (stroke 2, currentColor); product node icons are colorful emoji-style glyphs.+- Reusable React components live in `components/` (with `.prompt.md` usage notes per component); a full interactive recreation of the app is in `ui_kits/machinaos/`.diff --git a/docs-internal/design-system/_adherence.oxlintrc.json b/docs-internal/design-system/_adherence.oxlintrc.jsonnew file mode 100644index 00000000..d793ac93--- /dev/null+++ b/docs-internal/design-system/_adherence.oxlintrc.json@@ -0,0 +1,630 @@+{+ "plugins": [+ "react",+ "import"+ ],+ "rules": {+ "react/forbid-elements": [+ "warn",+ {+ "forbid": []+ }+ ],+ "no-restricted-imports": [+ "warn",+ {+ "patterns": [+ {+ "group": [+ "components/buttons/**",+ "components/canvas/**",+ "components/display/**",+ "components/feedback/**",+ "components/forms/**",+ "components/icons/**",+ "components/panels/**",+ "ui_kits/machinaos/**"+ ],+ "message": "Import design-system components from 'index.js', not component internals."+ }+ ]+ }+ ],+ "no-restricted-syntax": [+ "warn",+ {+ "selector": "Literal[value=/#[0-9a-fA-F]{3,8}\\b/]",+ "message": "Raw hex color — use a design-system color token via var()."+ },+ {+ "selector": "Literal[value=/\\b\\d+px\\b/]",+ "message": "Raw px value — use a design-system spacing token via var()."+ },+ {+ "selector": "Literal[value=/font-family\\s*:\\s*(?!['\\\"]?(?:Geist|JetBrains Mono))/i]",+ "message": "Font not provided by the design system. Available: Geist, JetBrains Mono."+ },+ {+ "selector": "JSXOpeningElement[name.name='ActionButton'] > JSXAttribute > JSXIdentifier[name!=/^(?:intent|iconOnly|children|key|ref|className|style|children)$/]",+ "message": "<ActionButton> doesn't accept that prop. Declared props: intent, iconOnly, children."+ },+ {+ "selector": "JSXOpeningElement[name.name='ActionButton'] > JSXAttribute[name.name='intent'] > Literal[value!=/^(?:run|stop|save|config|secret|tools)$/]",+ "message": "<ActionButton> intent must be one of 'run' | 'stop' | 'save' | 'config' | 'secret' | 'tools'."+ },+ {+ "selector": "JSXOpeningElement[name.name='ApiKeyInput'] > JSXAttribute > JSXIdentifier[name!=/^(?:value|defaultValue|onChange|onSave|onDelete|placeholder|loading|isStored|disabled|saveLabel|savedLabel|style|key|ref|className|style|children)$/]",+ "message": "<ApiKeyInput> doesn't accept that prop. Declared props: value, defaultValue, onChange, onSave, onDelete, placeholder, loading, isStored, disabled, saveLabel, savedLabel, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Avatar'] > JSXAttribute > JSXIdentifier[name!=/^(?:name|color|size|square|style|key|ref|className|style|children)$/]",+ "message": "<Avatar> doesn't accept that prop. Declared props: name, color, size, square, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Badge'] > JSXAttribute > JSXIdentifier[name!=/^(?:variant|mono|color|children|style|key|ref|className|style|children)$/]",+ "message": "<Badge> doesn't accept that prop. Declared props: variant, mono, color, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Badge'] > JSXAttribute[name.name='variant'] > Literal[value!=/^(?:default|secondary|outline|accent)$/]",+ "message": "<Badge> variant must be one of 'default' | 'secondary' | 'outline' | 'accent'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Button'] > JSXAttribute > JSXIdentifier[name!=/^(?:variant|size|children|key|ref|className|style|children)$/]",+ "message": "<Button> doesn't accept that prop. Declared props: variant, size, children."+ },+ {+ "selector": "JSXOpeningElement[name.name='Button'] > JSXAttribute[name.name='variant'] > Literal[value!=/^(?:default|outline|secondary|ghost|destructive|link)$/]",+ "message": "<Button> variant must be one of 'default' | 'outline' | 'secondary' | 'ghost' | 'destructive' | 'link'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Button'] > JSXAttribute[name.name='size'] > Literal[value!=/^(?:sm|default|lg|icon|icon-sm)$/]",+ "message": "<Button> size must be one of 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Card'] > JSXAttribute > JSXIdentifier[name!=/^(?:interactive|selected|children|key|ref|className|style|children)$/]",+ "message": "<Card> doesn't accept that prop. Declared props: interactive, selected, children."+ },+ {+ "selector": "JSXOpeningElement[name.name='ChatBubble'] > JSXAttribute > JSXIdentifier[name!=/^(?:role|time|children|style|key|ref|className|style|children)$/]",+ "message": "<ChatBubble> doesn't accept that prop. Declared props: role, time, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='ChatBubble'] > JSXAttribute[name.name='role'] > Literal[value!=/^(?:user|agent)$/]",+ "message": "<ChatBubble> role must be one of 'user' | 'agent'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Checkbox'] > JSXAttribute > JSXIdentifier[name!=/^(?:checked|defaultChecked|onChange|disabled|label|style|key|ref|className|style|children)$/]",+ "message": "<Checkbox> doesn't accept that prop. Declared props: checked, defaultChecked, onChange, disabled, label, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='CollapsibleSection'] > JSXAttribute > JSXIdentifier[name!=/^(?:title|defaultCollapsed|collapsed|onToggle|children|style|key|ref|className|style|children)$/]",+ "message": "<CollapsibleSection> doesn't accept that prop. Declared props: title, defaultCollapsed, collapsed, onToggle, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='ComponentItem'] > JSXAttribute > JSXIdentifier[name!=/^(?:icon|name|description|onClick|style|key|ref|className|style|children)$/]",+ "message": "<ComponentItem> doesn't accept that prop. Declared props: icon, name, description, onClick, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='DataCard'] > JSXAttribute > JSXIdentifier[name!=/^(?:title|badge|tone|blockLabel|data|onCopy|style|key|ref|className|style|children)$/]",+ "message": "<DataCard> doesn't accept that prop. Declared props: title, badge, tone, blockLabel, data, onCopy, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='DataCard'] > JSXAttribute[name.name='tone'] > Literal[value!=/^(?:success|error|warning)$/]",+ "message": "<DataCard> tone must be one of 'success' | 'error' | 'warning'."+ },+ {+ "selector": "JSXOpeningElement[name.name='EmptyState'] > JSXAttribute > JSXIdentifier[name!=/^(?:icon|title|hint|action|style|key|ref|className|style|children)$/]",+ "message": "<EmptyState> doesn't accept that prop. Declared props: icon, title, hint, action, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Icon'] > JSXAttribute > JSXIdentifier[name!=/^(?:name|size|strokeWidth|key|ref|className|style|children)$/]",+ "message": "<Icon> doesn't accept that prop. Declared props: name, size, strokeWidth."+ },+ {+ "selector": "JSXOpeningElement[name.name='Input'] > JSXAttribute > JSXIdentifier[name!=/^(?:icon|wrapperStyle|key|ref|className|style|children)$/]",+ "message": "<Input> doesn't accept that prop. Declared props: icon, wrapperStyle."+ },+ {+ "selector": "JSXOpeningElement[name.name='Kbd'] > JSXAttribute > JSXIdentifier[name!=/^(?:children|style|key|ref|className|style|children)$/]",+ "message": "<Kbd> doesn't accept that prop. Declared props: children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='LogLine'] > JSXAttribute > JSXIdentifier[name!=/^(?:time|tone|children|style|key|ref|className|style|children)$/]",+ "message": "<LogLine> doesn't accept that prop. Declared props: time, tone, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Modal'] > JSXAttribute > JSXIdentifier[name!=/^(?:open|title|children|footer|onClose|width|inline|style|key|ref|className|style|children)$/]",+ "message": "<Modal> doesn't accept that prop. Declared props: open, title, children, footer, onClose, width, inline, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='ModeToggle'] > JSXAttribute > JSXIdentifier[name!=/^(?:mode|onChange|style|key|ref|className|style|children)$/]",+ "message": "<ModeToggle> doesn't accept that prop. Declared props: mode, onChange, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='ModeToggle'] > JSXAttribute[name.name='mode'] > Literal[value!=/^(?:normal|dev)$/]",+ "message": "<ModeToggle> mode must be one of 'normal' | 'dev'."+ },+ {+ "selector": "JSXOpeningElement[name.name='PanelModal'] > JSXAttribute > JSXIdentifier[name!=/^(?:open|title|titleIcon|headerActions|children|onClose|maxWidth|maxHeight|inline|style|key|ref|className|style|children)$/]",+ "message": "<PanelModal> doesn't accept that prop. Declared props: open, title, titleIcon, headerActions, children, onClose, maxWidth, maxHeight, inline, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Progress'] > JSXAttribute > JSXIdentifier[name!=/^(?:value|color|label|style|key|ref|className|style|children)$/]",+ "message": "<Progress> doesn't accept that prop. Declared props: value, color, label, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='RadioGroup'] > JSXAttribute > JSXIdentifier[name!=/^(?:options|value|defaultValue|onChange|direction|disabled|style|key|ref|className|style|children)$/]",+ "message": "<RadioGroup> doesn't accept that prop. Declared props: options, value, defaultValue, onChange, direction, disabled, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='RadioGroup'] > JSXAttribute[name.name='direction'] > Literal[value!=/^(?:column|row)$/]",+ "message": "<RadioGroup> direction must be one of 'column' | 'row'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Select'] > JSXAttribute > JSXIdentifier[name!=/^(?:options|value|defaultValue|onChange|placeholder|disabled|style|wrapperStyle|key|ref|className|style|children)$/]",+ "message": "<Select> doesn't accept that prop. Declared props: options, value, defaultValue, onChange, placeholder, disabled, style, wrapperStyle."+ },+ {+ "selector": "JSXOpeningElement[name.name='SettingsSection'] > JSXAttribute > JSXIdentifier[name!=/^(?:title|icon|tone|children|style|key|ref|className|style|children)$/]",+ "message": "<SettingsSection> doesn't accept that prop. Declared props: title, icon, tone, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Slider'] > JSXAttribute > JSXIdentifier[name!=/^(?:value|defaultValue|min|max|step|onChange|color|disabled|style|key|ref|className|style|children)$/]",+ "message": "<Slider> doesn't accept that prop. Declared props: value, defaultValue, min, max, step, onChange, color, disabled, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Spinner'] > JSXAttribute > JSXIdentifier[name!=/^(?:size|color|style|key|ref|className|style|children)$/]",+ "message": "<Spinner> doesn't accept that prop. Declared props: size, color, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='SquareNode'] > JSXAttribute > JSXIdentifier[name!=/^(?:icon|label|color|status|selected|executing|trigger|pulseColor|showGear|showInput|showOutput|showToolOutput|size|onClick|onGearClick|style|key|ref|className|style|children)$/]",+ "message": "<SquareNode> doesn't accept that prop. Declared props: icon, label, color, status, selected, executing, trigger, pulseColor, showGear, showInput, showOutput, showToolOutput, size, onClick, onGearClick, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='SquareNode'] > JSXAttribute[name.name='status'] > Literal[value!=/^(?:idle|executing|listening|waiting|success|error)$/]",+ "message": "<SquareNode> status must be one of 'idle' | 'executing' | 'listening' | 'waiting' | 'success' | 'error'."+ },+ {+ "selector": "JSXOpeningElement[name.name='StatusBar'] > JSXAttribute > JSXIdentifier[name!=/^(?:connection|workflowName|nodeCount|themeName|clock|style|key|ref|className|style|children)$/]",+ "message": "<StatusBar> doesn't accept that prop. Declared props: connection, workflowName, nodeCount, themeName, clock, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='StatusBar'] > JSXAttribute[name.name='connection'] > Literal[value!=/^(?:online|connecting|offline)$/]",+ "message": "<StatusBar> connection must be one of 'online' | 'connecting' | 'offline'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Switch'] > JSXAttribute > JSXIdentifier[name!=/^(?:checked|defaultChecked|onChange|disabled|style|key|ref|className|style|children)$/]",+ "message": "<Switch> doesn't accept that prop. Declared props: checked, defaultChecked, onChange, disabled, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Tabs'] > JSXAttribute > JSXIdentifier[name!=/^(?:tabs|active|onChange|style|key|ref|className|style|children)$/]",+ "message": "<Tabs> doesn't accept that prop. Declared props: tabs, active, onChange, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Textarea'] > JSXAttribute > JSXIdentifier[name!=/^(?:mono|key|ref|className|style|children)$/]",+ "message": "<Textarea> doesn't accept that prop. Declared props: mono."+ },+ {+ "selector": "JSXOpeningElement[name.name='Toast'] > JSXAttribute > JSXIdentifier[name!=/^(?:tone|title|message|time|onClose|style|key|ref|className|style|children)$/]",+ "message": "<Toast> doesn't accept that prop. Declared props: tone, title, message, time, onClose, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Toast'] > JSXAttribute[name.name='tone'] > Literal[value!=/^(?:success|error|warning|info)$/]",+ "message": "<Toast> tone must be one of 'success' | 'error' | 'warning' | 'info'."+ },+ {+ "selector": "JSXOpeningElement[name.name='Tooltip'] > JSXAttribute > JSXIdentifier[name!=/^(?:label|side|children|style|key|ref|className|style|children)$/]",+ "message": "<Tooltip> doesn't accept that prop. Declared props: label, side, children, style."+ },+ {+ "selector": "JSXOpeningElement[name.name='Tooltip'] > JSXAttribute[name.name='side'] > Literal[value!=/^(?:top|bottom)$/]",+ "message": "<Tooltip> side must be one of 'top' | 'bottom'."+ },+ {+ "selector": "JSXOpeningElement[name.name='WorkflowCard'] > JSXAttribute > JSXIdentifier[name!=/^(?:name|nodeCount|modified|selected|onClick|style|key|ref|className|style|children)$/]",+ "message": "<WorkflowCard> doesn't accept that prop. Declared props: name, nodeCount, modified, selected, onClick, style."+ }+ ]+ },+ "overrides": [+ {+ "files": [+ "**/index.js"+ ],+ "rules": {+ "no-restricted-imports": "off"+ }+ }+ ],+ "x-omelette": {+ "components": {+ "ActionButton": {+ "replaces": []+ },+ "ApiKeyInput": {+ "replaces": []+ },+ "Avatar": {+ "replaces": []+ },+ "Badge": {+ "replaces": []+ },+ "Button": {+ "replaces": []+ },+ "Card": {+ "replaces": []+ },+ "ChatBubble": {+ "replaces": []+ },+ "Checkbox": {+ "replaces": []+ },+ "CollapsibleSection": {+ "replaces": []+ },+ "ComponentItem": {+ "replaces": []+ },+ "DataCard": {+ "replaces": []+ },+ "EmptyState": {+ "replaces": []+ },+ "Icon": {+ "replaces": []+ },+ "Input": {+ "replaces": []+ },+ "Kbd": {+ "replaces": []+ },+ "LogLine": {+ "replaces": []+ },+ "Modal": {+ "replaces": []+ },+ "ModeToggle": {+ "replaces": []+ },+ "PanelModal": {+ "replaces": []+ },+ "Progress": {+ "replaces": []+ },+ "RadioGroup": {+ "replaces": []+ },+ "Select": {+ "replaces": []+ },+ "SettingsSection": {+ "replaces": []+ },+ "Slider": {+ "replaces": []+ },+ "Spinner": {+ "replaces": []+ },+ "SquareNode": {+ "replaces": []+ },+ "StatusBar": {+ "replaces": []+ },+ "Switch": {+ "replaces": []+ },+ "Tabs": {+ "replaces": []+ },+ "Textarea": {+ "replaces": []+ },+ "Toast": {+ "replaces": []+ },+ "Tooltip": {+ "replaces": []+ },+ "WorkflowCard": {+ "replaces": []+ }+ },+ "tokens": [+ "--accent",+ "--accent-foreground",+ "--action-config",+ "--action-config-border",+ "--action-config-hover",+ "--action-config-ink",+ "--action-config-soft",+ "--action-run",+ "--action-run-border",+ "--action-run-hover",+ "--action-run-ink",+ "--action-run-soft",+ "--action-save",+ "--action-save-border",+ "--action-save-hover",+ "--action-save-ink",+ "--action-save-soft",+ "--action-secret",+ "--action-secret-border",+ "--action-secret-hover",+ "--action-secret-ink",+ "--action-secret-soft",+ "--action-stop",+ "--action-stop-border",+ "--action-stop-hover",+ "--action-stop-ink",+ "--action-stop-soft",+ "--action-tools",+ "--action-tools-border",+ "--action-tools-hover",+ "--action-tools-ink",+ "--action-tools-soft",+ "--bg-active",+ "--bg-app",+ "--bg-canvas",+ "--bg-elevated",+ "--bg-hover",+ "--bg-input",+ "--bg-overlay",+ "--bg-panel",+ "--border-default",+ "--border-focus",+ "--border-strong",+ "--destructive",+ "--destructive-foreground",+ "--dracula-comment",+ "--dracula-current-line",+ "--dracula-cyan",+ "--dracula-green",+ "--dracula-orange",+ "--dracula-pink",+ "--dracula-purple",+ "--dracula-red",+ "--dracula-selection",+ "--dracula-yellow",+ "--dur-default",+ "--dur-fast",+ "--dur-slow",+ "--ease-default",+ "--ease-emphasis",+ "--fg-default",+ "--fg-faint",+ "--fg-muted",+ "--fg-on-accent",+ "--font-body",+ "--font-display",+ "--font-mono",+ "--font-sans",+ "--h-control",+ "--h-statusbar",+ "--h-toolbar",+ "--info",+ "--leading-normal",+ "--leading-relaxed",+ "--leading-tight",+ "--motion-style",+ "--node-agent",+ "--node-agent-border",+ "--node-agent-soft",+ "--node-model",+ "--node-model-border",+ "--node-model-soft",+ "--node-pulse-color",+ "--node-tool",+ "--node-tool-border",+ "--node-tool-soft",+ "--node-trigger",+ "--node-trigger-border",+ "--node-trigger-soft",+ "--node-workflow",+ "--node-workflow-border",+ "--node-workflow-soft",+ "--primary",+ "--primary-foreground",+ "--pulse-duration",+ "--pulse-keyframe",+ "--pulse-timing",+ "--radius-lg",+ "--radius-md",+ "--radius-node",+ "--radius-pill",+ "--radius-sm",+ "--radius-xl",+ "--scrollbar-thumb",+ "--scrollbar-track",+ "--shadow-card",+ "--shadow-card-hover",+ "--shadow-modal",+ "--space-1",+ "--space-2",+ "--space-3",+ "--space-4",+ "--space-5",+ "--space-6",+ "--space-7",+ "--space-8",+ "--success",+ "--surface-card",+ "--text-2xl",+ "--text-2xs",+ "--text-3xl",+ "--text-base",+ "--text-body",+ "--text-lg",+ "--text-md",+ "--text-muted",+ "--text-sm",+ "--text-xl",+ "--text-xs",+ "--tracking-label",+ "--type-scale-base",+ "--type-tracking-display",+ "--type-uppercase",+ "--w-palette",+ "--w-sidebar",+ "--warning",+ "--weight-bold",+ "--weight-medium",+ "--weight-regular",+ "--weight-semibold"+ ],+ "tokenKinds": {+ "--bg-app": "color",+ "--bg-panel": "color",+ "--bg-canvas": "color",+ "--bg-elevated": "color",+ "--bg-input": "color",+ "--bg-hover": "color",+ "--bg-active": "color",+ "--bg-overlay": "color",+ "--surface-card": "color",+ "--fg-default": "color",+ "--fg-muted": "color",+ "--fg-faint": "color",+ "--fg-on-accent": "color",+ "--text-body": "font",+ "--text-muted": "font",+ "--border-default": "color",+ "--border-strong": "color",+ "--border-focus": "color",+ "--primary": "color",+ "--primary-foreground": "color",+ "--accent": "color",+ "--accent-foreground": "color",+ "--destructive": "color",+ "--destructive-foreground": "color",+ "--success": "color",+ "--warning": "color",+ "--info": "color",+ "--dracula-green": "color",+ "--dracula-purple": "color",+ "--dracula-pink": "color",+ "--dracula-cyan": "color",+ "--dracula-red": "color",+ "--dracula-orange": "color",+ "--dracula-yellow": "color",+ "--dracula-selection": "color",+ "--dracula-current-line": "color",+ "--dracula-comment": "color",+ "--action-run": "color",+ "--action-run-soft": "color",+ "--action-run-hover": "color",+ "--action-run-border": "color",+ "--action-stop": "color",+ "--action-stop-soft": "color",+ "--action-stop-hover": "color",+ "--action-stop-border": "color",+ "--action-save": "color",+ "--action-save-soft": "color",+ "--action-save-hover": "color",+ "--action-save-border": "color",+ "--action-config": "color",+ "--action-config-soft": "color",+ "--action-config-hover": "color",+ "--action-config-border": "color",+ "--action-secret": "color",+ "--action-secret-soft": "color",+ "--action-secret-hover": "color",+ "--action-secret-border": "color",+ "--action-tools": "color",+ "--action-tools-soft": "color",+ "--action-tools-hover": "color",+ "--action-tools-border": "color",+ "--action-run-ink": "color",+ "--action-stop-ink": "color",+ "--action-save-ink": "color",+ "--action-config-ink": "color",+ "--action-secret-ink": "color",+ "--action-tools-ink": "color",+ "--node-agent": "color",+ "--node-agent-soft": "color",+ "--node-agent-border": "color",+ "--node-model": "color",+ "--node-model-soft": "color",+ "--node-model-border": "color",+ "--node-tool": "color",+ "--node-tool-soft": "color",+ "--node-tool-border": "color",+ "--node-trigger": "color",+ "--node-trigger-soft": "color",+ "--node-trigger-border": "color",+ "--node-workflow": "color",+ "--node-workflow-soft": "color",+ "--node-workflow-border": "color",+ "--node-pulse-color": "color",+ "--scrollbar-track": "color",+ "--scrollbar-thumb": "color",+ "--font-sans": "font",+ "--font-display": "font",+ "--font-body": "font",+ "--font-mono": "font",+ "--type-scale-base": "font",+ "--text-2xs": "font",+ "--text-xs": "font",+ "--text-sm": "font",+ "--text-base": "font",+ "--text-md": "font",+ "--text-lg": "font",+ "--text-xl": "font",+ "--text-2xl": "font",+ "--text-3xl": "font",+ "--weight-regular": "font",+ "--weight-medium": "font",+ "--weight-semibold": "font",+ "--weight-bold": "font",+ "--type-uppercase": "font",+ "--type-tracking-display": "font",+ "--tracking-label": "font",+ "--leading-tight": "font",+ "--leading-normal": "font",+ "--leading-relaxed": "font",+ "--space-1": "spacing",+ "--space-2": "spacing",+ "--space-3": "spacing",+ "--space-4": "spacing",+ "--space-5": "spacing",+ "--space-6": "spacing",+ "--space-7": "spacing",+ "--space-8": "spacing",+ "--radius-sm": "radius",+ "--radius-md": "radius",+ "--radius-lg": "radius",+ "--radius-xl": "radius",+ "--radius-node": "radius",+ "--radius-pill": "radius",+ "--h-toolbar": "spacing",+ "--h-statusbar": "spacing",+ "--h-control": "spacing",+ "--w-sidebar": "spacing",+ "--w-palette": "color",+ "--shadow-card": "shadow",+ "--shadow-card-hover": "shadow",+ "--shadow-modal": "shadow",+ "--dur-fast": "other",+ "--dur-default": "other",+ "--dur-slow": "other",+ "--ease-default": "other",+ "--ease-emphasis": "other",+ "--motion-style": "other",+ "--pulse-keyframe": "other",+ "--pulse-duration": "other",+ "--pulse-timing": "other"+ },+ "fontFamilies": [+ "Geist",+ "JetBrains Mono"+ ]+ }+}\ No newline at end of filediff --git a/docs-internal/design-system/_ds_bundle.js b/docs-internal/design-system/_ds_bundle.jsnew file mode 100644index 00000000..132d13f0--- /dev/null+++ b/docs-internal/design-system/_ds_bundle.js@@ -0,0 +1,4764 @@+/* @ds-bundle: {"format":3,"namespace":"MachinaOSDesignSystem_2559cf","components":[{"name":"ActionButton","sourcePath":"components/buttons/ActionButton.jsx"},{"name":"Button","sourcePath":"components/buttons/Button.jsx"},{"name":"ComponentItem","sourcePath":"components/canvas/ComponentItem.jsx"},{"name":"ModeToggle","sourcePath":"components/canvas/ModeToggle.jsx"},{"name":"SquareNode","sourcePath":"components/canvas/SquareNode.jsx"},{"name":"StatusBar","sourcePath":"components/canvas/StatusBar.jsx"},{"name":"WorkflowCard","sourcePath":"components/canvas/WorkflowCard.jsx"},{"name":"Avatar","sourcePath":"components/display/Avatar.jsx"},{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"ChatBubble","sourcePath":"components/display/ChatBubble.jsx"},{"name":"Kbd","sourcePath":"components/display/Kbd.jsx"},{"name":"LogLine","sourcePath":"components/display/LogLine.jsx"},{"name":"Tabs","sourcePath":"components/display/Tabs.jsx"},{"name":"EmptyState","sourcePath":"components/feedback/EmptyState.jsx"},{"name":"Modal","sourcePath":"components/feedback/Modal.jsx"},{"name":"Progress","sourcePath":"components/feedback/Progress.jsx"},{"name":"Spinner","sourcePath":"components/feedback/Spinner.jsx"},{"name":"Toast","sourcePath":"components/feedback/Toast.jsx"},{"name":"Tooltip","sourcePath":"components/feedback/Tooltip.jsx"},{"name":"ApiKeyInput","sourcePath":"components/forms/ApiKeyInput.jsx"},{"name":"Checkbox","sourcePath":"components/forms/Checkbox.jsx"},{"name":"Input","sourcePath":"components/forms/Input.jsx"},{"name":"RadioGroup","sourcePath":"components/forms/RadioGroup.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"Textarea","sourcePath":"components/forms/Textarea.jsx"},{"name":"Icon","sourcePath":"components/icons/Icon.jsx"},{"name":"CollapsibleSection","sourcePath":"components/panels/CollapsibleSection.jsx"},{"name":"DataCard","sourcePath":"components/panels/DataCard.jsx"},{"name":"PanelModal","sourcePath":"components/panels/PanelModal.jsx"},{"name":"SettingsSection","sourcePath":"components/panels/SettingsSection.jsx"},{"name":"SettingsRow","sourcePath":"components/panels/SettingsSection.jsx"}],"sourceHashes":{"components/buttons/ActionButton.jsx":"3de567509700","components/buttons/Button.jsx":"c81ef2c80131","components/canvas/ComponentItem.jsx":"fed2f287e532","components/canvas/ModeToggle.jsx":"2386b2142874","components/canvas/SquareNode.jsx":"5604401e105a","components/canvas/StatusBar.jsx":"f3ba959f8bac","components/canvas/WorkflowCard.jsx":"76dc0735c0e1","components/display/Avatar.jsx":"c636baa7014f","components/display/Badge.jsx":"1e9482639eb7","components/display/Card.jsx":"d60b5d2e81cb","components/display/ChatBubble.jsx":"97f3de1f9e95","components/display/Kbd.jsx":"0b1575a8f4ab","components/display/LogLine.jsx":"8b8dcbe178d2","components/display/Tabs.jsx":"29083e164683","components/feedback/EmptyState.jsx":"bcaf3094afb4","components/feedback/Modal.jsx":"b99b3f25e581","components/feedback/Progress.jsx":"1c91d593fe2b","components/feedback/Spinner.jsx":"47e22c9fed7a","components/feedback/Toast.jsx":"da490f96e375","components/feedback/Tooltip.jsx":"1181368448e9","components/forms/ApiKeyInput.jsx":"5ed6f076a952","components/forms/Checkbox.jsx":"a687ca85bef0","components/forms/Input.jsx":"955d8ddccdc7","components/forms/RadioGroup.jsx":"4ff6bd70406c","components/forms/Select.jsx":"79482ec6f9e9","components/forms/Slider.jsx":"4cd8ba4d0c99","components/forms/Switch.jsx":"8de73e29935c","components/forms/Textarea.jsx":"1d0b6f74e112","components/icons/Icon.jsx":"3fbda05c3dcd","components/panels/CollapsibleSection.jsx":"5ab48b069cd1","components/panels/DataCard.jsx":"644079601685","components/panels/PanelModal.jsx":"ca2f9656ca17","components/panels/SettingsSection.jsx":"568e16e1e05e","ui_kits/machinaos/App.jsx":"b5cca1c6f3c0","ui_kits/machinaos/CanvasView.jsx":"59f3b01513f3","ui_kits/machinaos/ConsoleDock.jsx":"0c284423b0b3","ui_kits/machinaos/Panels.jsx":"de31785649fa","ui_kits/machinaos/PanelsModals.jsx":"0d558a4e2995","ui_kits/machinaos/Toolbar.jsx":"6ba622604af7"},"inlinedExternals":[],"unexposedExports":[]} */++(() => {++const __ds_ns = (window.MachinaOSDesignSystem_2559cf = window.MachinaOSDesignSystem_2559cf || {});++const __ds_scope = {};++(__ds_ns.__errors = __ds_ns.__errors || []);++// components/buttons/ActionButton.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * ActionButton — the signature MachinaOS "soft tinted" toolbar button.+ * `intent` is a semantic role, not a color: run / stop / save / config /+ * secret / tools. Soft tint fill (15%), tinted border (60%), accent text;+ * hover deepens the fill to 25%; press nudges down 1px.+ */+function ActionButton({+ intent = 'save',+ children,+ disabled = false,+ iconOnly = false,+ style,+ ...rest+}) {+ const [hover, setHover] = React.useState(false);+ const [active, setActive] = React.useState(false);+ const base = `var(--action-${intent}`;+ return /*#__PURE__*/React.createElement("button", _extends({+ type: "button",+ disabled: disabled,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => {+ setHover(false);+ setActive(false);+ },+ onMouseDown: () => setActive(true),+ onMouseUp: () => setActive(false),+ style: {+ display: 'inline-flex',+ height: 'var(--h-control, 32px)',+ alignItems: 'center',+ justifyContent: 'center',+ gap: 6,+ borderRadius: 'var(--radius-md, 6px)',+ padding: iconOnly ? 0 : '0 14px',+ width: iconOnly ? 'var(--h-control, 32px)' : undefined,+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: 600,+ lineHeight: 1,+ border: `1px solid ${base}-border)`,+ background: hover && !disabled ? `${base}-hover)` : `${base}-soft)`,+ color: `${base}-ink)`,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ transform: active && !disabled ? 'translateY(1px)' : 'none',+ transition: 'background var(--dur-default, 180ms) var(--ease-default), transform var(--dur-fast, 90ms)',+ userSelect: 'none',+ whiteSpace: 'nowrap',+ ...style+ }+ }, rest), children);+}+Object.assign(__ds_scope, { ActionButton });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/buttons/ActionButton.jsx", error: String((e && e.message) || e) }); }++// components/buttons/Button.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * Button — shadcn-derived general button. Solid primary, outline,+ * secondary, ghost, destructive (soft red tint), link.+ */+function Button({+ variant = 'default',+ size = 'default',+ children,+ disabled = false,+ style,+ ...rest+}) {+ const [hover, setHover] = React.useState(false);+ const [active, setActive] = React.useState(false);+ const sizes = {+ sm: {+ height: 28,+ padding: '0 10px',+ fontSize: 13+ },+ default: {+ height: 32,+ padding: '0 12px',+ fontSize: 14+ },+ lg: {+ height: 36,+ padding: '0 16px',+ fontSize: 14+ },+ icon: {+ height: 32,+ width: 32,+ padding: 0,+ fontSize: 14+ },+ 'icon-sm': {+ height: 28,+ width: 28,+ padding: 0,+ fontSize: 13+ }+ };+ const variants = {+ default: {+ background: hover ? 'color-mix(in srgb, var(--primary) 85%, var(--bg-app))' : 'var(--primary)',+ color: 'var(--primary-foreground)',+ border: '1px solid transparent'+ },+ outline: {+ background: hover ? 'var(--bg-hover)' : 'var(--bg-elevated)',+ color: 'var(--fg-default)',+ border: '1px solid var(--border-default)'+ },+ secondary: {+ background: hover ? 'var(--bg-active)' : 'var(--bg-hover)',+ color: 'var(--fg-default)',+ border: '1px solid transparent'+ },+ ghost: {+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-default)',+ border: '1px solid transparent'+ },+ destructive: {+ background: hover ? 'color-mix(in srgb, var(--destructive) 20%, transparent)' : 'color-mix(in srgb, var(--destructive) 10%, transparent)',+ color: 'var(--destructive)',+ border: '1px solid transparent'+ },+ link: {+ background: 'transparent',+ color: 'var(--primary)',+ border: '1px solid transparent',+ textDecoration: hover ? 'underline' : 'none'+ }+ };+ return /*#__PURE__*/React.createElement("button", _extends({+ type: "button",+ disabled: disabled,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => {+ setHover(false);+ setActive(false);+ },+ onMouseDown: () => setActive(true),+ onMouseUp: () => setActive(false),+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ gap: 6,+ borderRadius: 'var(--radius-lg, 8px)',+ fontFamily: 'var(--font-sans)',+ fontWeight: 500,+ lineHeight: 1,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ transform: active && !disabled ? 'translateY(1px)' : 'none',+ transition: 'background var(--dur-default, 180ms) var(--ease-default), transform var(--dur-fast, 90ms)',+ userSelect: 'none',+ whiteSpace: 'nowrap',+ ...sizes[size],+ ...variants[variant],+ ...style+ }+ }, rest), children);+}+Object.assign(__ds_scope, { Button });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/buttons/Button.jsx", error: String((e && e.message) || e) }); }++// components/canvas/ComponentItem.jsx+try { (() => {+/**+ * ComponentItem — draggable palette card: icon tile + name + description+ * + grip. Hover lifts -2px with a foreground ring.+ */+function ComponentItem({+ icon,+ name,+ description,+ onClick,+ style+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("div", {+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 12,+ padding: '8px 12px',+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ background: hover ? 'var(--bg-hover)' : 'var(--bg-app)',+ boxShadow: hover ? '0 0 0 2px color-mix(in srgb, var(--fg-default) 15%, transparent), var(--shadow-card-hover)' : 'none',+ transform: hover ? 'translateY(-2px)' : 'none',+ transition: 'all 150ms var(--ease-default)',+ cursor: 'grab',+ userSelect: 'none',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ width: 36,+ height: 36,+ flexShrink: 0,+ borderRadius: 'var(--radius-md, 6px)',+ background: 'var(--bg-elevated)',+ boxShadow: 'inset 0 0 0 1px color-mix(in srgb, var(--border-default) 40%, transparent)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ fontSize: 18+ }+ }, icon || '📦'), /*#__PURE__*/React.createElement("div", {+ style: {+ minWidth: 0,+ flex: 1+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: 500,+ color: 'var(--fg-default)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, name), /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 11,+ lineHeight: 1.3,+ color: 'var(--fg-muted)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, description)), /*#__PURE__*/React.createElement("svg", {+ width: "14",+ height: "14",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "var(--fg-faint)",+ strokeWidth: "2",+ style: {+ flexShrink: 0,+ opacity: hover ? 0.8 : 0.5,+ transition: 'opacity 150ms'+ }+ }, /*#__PURE__*/React.createElement("circle", {+ cx: "9",+ cy: "5",+ r: "1"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "9",+ cy: "12",+ r: "1"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "9",+ cy: "19",+ r: "1"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "15",+ cy: "5",+ r: "1"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "15",+ cy: "12",+ r: "1"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "15",+ cy: "19",+ r: "1"+ })));+}+Object.assign(__ds_scope, { ComponentItem });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/canvas/ComponentItem.jsx", error: String((e && e.message) || e) }); }++// components/canvas/ModeToggle.jsx+try { (() => {+/**+ * ModeToggle — segmented Normal/Dev control from the top toolbar.+ * Active segment gets the role's soft tint (green=Normal, purple=Dev).+ */+function ModeToggle({+ mode = 'normal',+ onChange,+ style+}) {+ const seg = (id, label, color, dotPath) => {+ const isActive = mode === id;+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: () => !isActive && onChange && onChange(id),+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 4,+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid ' + (isActive ? `color-mix(in srgb, ${color} 30%, transparent)` : 'transparent'),+ background: isActive ? `color-mix(in srgb, ${color} 8%, transparent)` : 'transparent',+ color: isActive ? color : 'var(--fg-muted)',+ fontFamily: 'var(--font-sans)',+ fontSize: 12,+ fontWeight: 600,+ padding: '4px 10px',+ cursor: isActive ? 'default' : 'pointer',+ transition: 'all var(--dur-default, 180ms) var(--ease-default)'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "12",+ height: "12",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, dotPath), label);+ };+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ borderRadius: 'var(--radius-md, 6px)',+ border: '1px solid var(--border-default)',+ background: 'var(--surface-card)',+ padding: 2,+ gap: 2,+ ...style+ }+ }, seg('normal', 'Normal', 'var(--node-tool)', /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("circle", {+ cx: "12",+ cy: "12",+ r: "10"+ }), /*#__PURE__*/React.createElement("polyline", {+ points: "12 6 12 12 16 14"+ }))), seg('dev', 'Dev', 'var(--node-agent)', /*#__PURE__*/React.createElement("polygon", {+ points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2"+ })));+}+Object.assign(__ds_scope, { ModeToggle });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/canvas/ModeToggle.jsx", error: String((e && e.message) || e) }); }++// components/canvas/SquareNode.jsx+try { (() => {+/**+ * SquareNode — MachinaOS canvas node. 64px icon square with accent-tinted+ * 2px border + 135° gradient fill, status pip (top-left), gear button+ * (top-right), in/out connection handles, label below. Executing nodes+ * pulse a three-layer glow (requires tokens/animations.css).+ *+ * Trigger variant (`trigger`): no input handle, a lightning ⚡ badge, and a+ * continuous "listening/armed" breathing pulse while waiting for events+ * (status="listening"). The glow uses `pulseColor` — a theme-chosen high+ * contrast color, independent of the node's role fill — so it stays visible+ * on any theme background.+ */+const PIP_COLORS = {+ idle: 'var(--fg-faint)',+ executing: null,+ // glow color+ listening: null,+ // glow color+ waiting: 'var(--warning)',+ success: 'var(--success)',+ error: 'var(--destructive)'+};+function SquareNode({+ icon,+ label,+ color = 'var(--dracula-cyan)',+ status = 'idle',+ selected = false,+ executing = false,+ trigger = false,+ pulseColor,+ showGear = true,+ showInput = true,+ showOutput = true,+ showToolOutput = false,+ size = 64,+ onClick,+ onGearClick,+ style+}) {+ const [hover, setHover] = React.useState(false);+ // Glow/pulse color is theme-contrast (pulseColor), falling back to the+ // node's own role color. The fill/border always use `color`.+ const glow = pulseColor || color;+ const armed = status === 'listening';+ const isPulsing = executing || armed;+ const pipColor = status === 'executing' || status === 'listening' ? glow : PIP_COLORS[status] || PIP_COLORS.idle;+ const hasInput = showInput && !trigger; // triggers never take input+ const handleStyle = pos => ({+ position: 'absolute',+ width: 12,+ height: 12,+ borderRadius: '50%',+ zIndex: 20,+ ...pos+ });+ return /*#__PURE__*/React.createElement("div", {+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ position: 'relative',+ display: 'inline-flex',+ flexDirection: 'column',+ alignItems: 'center',+ cursor: 'pointer',+ userSelect: 'none',+ width: size + 24,+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ className: executing ? 'machina-pulse' : armed ? 'machina-trigger-armed' : undefined,+ style: {+ '--node-pulse-color': glow,+ position: 'relative',+ width: size,+ height: size,+ borderRadius: 'var(--radius-node, 10px)',+ border: `2px solid ${selected ? color : `color-mix(in srgb, ${color} 60%, transparent)`}`,+ background: `linear-gradient(135deg, color-mix(in srgb, ${color} 18%, var(--surface-card)) 0%, var(--surface-card) 100%)`,+ boxShadow: selected ? `0 0 0 1px ${color}, 0 4px 14px color-mix(in srgb, ${color} 32%, transparent)` : hover ? `0 4px 14px color-mix(in srgb, ${color} 28%, transparent)` : `0 2px 8px color-mix(in srgb, ${color} 18%, transparent)`,+ transform: hover && !selected ? 'translateY(-1px)' : 'none',+ transition: 'transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ fontSize: Math.round(size * 0.44),+ color: 'var(--fg-default)'+ }+ }, icon, /*#__PURE__*/React.createElement("span", {+ className: status === 'listening' ? 'machina-pip-pulse' : undefined,+ style: {+ position: 'absolute',+ top: -4,+ left: -4,+ width: 10,+ height: 10,+ borderRadius: '50%',+ background: pipColor,+ boxShadow: status === 'executing' || status === 'listening' || status === 'success' || status === 'error' ? `0 0 6px color-mix(in srgb, ${pipColor} 70%, transparent)` : 'none',+ zIndex: 30+ }+ }), trigger ? /*#__PURE__*/React.createElement("span", {+ title: "Trigger \u2014 starts the workflow",+ className: armed ? 'machina-bolt' : undefined,+ style: {+ position: 'absolute',+ bottom: -4,+ left: -4,+ width: 16,+ height: 16,+ borderRadius: 'var(--radius-sm, 4px)',+ background: 'var(--dracula-yellow, #f1fa8c)',+ border: '1px solid var(--surface-card)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ fontSize: 9,+ lineHeight: 1,+ color: '#1a1d21',+ zIndex: 30+ }+ }, "\u26A1") : null, showGear ? /*#__PURE__*/React.createElement("button", {+ type: "button",+ title: "Edit parameters",+ onClick: e => {+ e.stopPropagation();+ onGearClick && onGearClick(e);+ },+ style: {+ position: 'absolute',+ top: -8,+ right: -8,+ width: 20,+ height: 20,+ borderRadius: '50%',+ background: 'var(--surface-card)',+ border: '1px solid var(--border-default)',+ color: 'var(--fg-muted)',+ fontSize: 10,+ lineHeight: 1,+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ cursor: 'pointer',+ zIndex: 30,+ padding: 0+ }+ }, "\u2699\uFE0F") : null, hasInput ? /*#__PURE__*/React.createElement("span", {+ title: "Input",+ style: {+ ...handleStyle({+ left: -6,+ top: '50%',+ transform: 'translateY(-50%)'+ }),+ background: 'var(--bg-app)',+ border: '2px solid var(--fg-faint)'+ }+ }) : null, showOutput ? /*#__PURE__*/React.createElement("span", {+ title: "Output",+ style: {+ ...handleStyle({+ right: -6,+ top: '50%',+ transform: 'translateY(-50%)'+ }),+ background: color,+ border: `2px solid ${color}`+ }+ }) : null, showToolOutput ? /*#__PURE__*/React.createElement("span", {+ title: "Tool output",+ style: {+ ...handleStyle({+ top: -6,+ left: '50%',+ transform: 'translateX(-50%)'+ }),+ background: color,+ border: `2px solid ${color}`+ }+ }) : null), label ? /*#__PURE__*/React.createElement("div", {+ style: {+ marginTop: 6,+ fontFamily: 'var(--font-sans)',+ fontSize: 11,+ fontWeight: 600,+ color: 'var(--fg-default)',+ textAlign: 'center',+ maxWidth: size + 40,+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, label) : null);+}+Object.assign(__ds_scope, { SquareNode });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/canvas/SquareNode.jsx", error: String((e && e.message) || e) }); }++// components/canvas/StatusBar.jsx+try { (() => {+/**+ * StatusBar — 24px shell-prompt footer: connection pip, workflow name,+ * node count, theme, live clock. All mono, uppercase, 0.04em tracking.+ */+function StatusBar({+ connection = 'online',+ workflowName = '—',+ nodeCount = 0,+ themeName = 'DARK',+ clock,+ style+}) {+ const [time, setTime] = React.useState(() => new Date());+ React.useEffect(() => {+ if (clock !== undefined) return;+ const id = window.setInterval(() => setTime(new Date()), 1000);+ return () => window.clearInterval(id);+ }, [clock]);+ const timeText = clock !== undefined ? clock : time.toLocaleTimeString(undefined, {+ hour: '2-digit',+ minute: '2-digit',+ second: '2-digit',+ hour12: false+ });+ const tones = {+ online: {+ color: 'var(--success)',+ label: 'ONLINE'+ },+ connecting: {+ color: 'var(--warning)',+ label: 'CONNECTING'+ },+ offline: {+ color: 'var(--destructive)',+ label: 'OFFLINE'+ }+ };+ const tone = tones[connection] || tones.online;+ const sep = /*#__PURE__*/React.createElement("span", {+ style: {+ opacity: 0.4+ }+ }, "|");+ return /*#__PURE__*/React.createElement("div", {+ role: "contentinfo",+ style: {+ display: 'flex',+ height: 'var(--h-statusbar, 24px)',+ alignItems: 'center',+ gap: 12,+ borderTop: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ padding: '0 14px',+ fontFamily: 'var(--font-mono)',+ fontSize: 11,+ letterSpacing: '0.04em',+ color: 'var(--fg-muted)',+ textTransform: 'uppercase',+ whiteSpace: 'nowrap',+ ...style+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 6,+ fontWeight: 500,+ color: tone.color+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ width: 6,+ height: 6,+ borderRadius: '50%',+ background: tone.color,+ display: 'inline-block',+ animation: connection === 'online' ? 'machina-pip-blink 2s ease-in-out infinite' : 'none'+ }+ }), tone.label), sep, /*#__PURE__*/React.createElement("span", null, "WF: ", /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--fg-default)'+ }+ }, workflowName)), sep, /*#__PURE__*/React.createElement("span", null, "NODES: ", /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--fg-default)'+ }+ }, nodeCount)), /*#__PURE__*/React.createElement("span", {+ style: {+ marginLeft: 'auto',+ display: 'flex',+ alignItems: 'center',+ gap: 12+ }+ }, /*#__PURE__*/React.createElement("span", null, "THEME: ", /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--fg-default)'+ }+ }, themeName)), sep, /*#__PURE__*/React.createElement("span", {+ style: {+ fontVariantNumeric: 'tabular-nums'+ }+ }, timeText)), /*#__PURE__*/React.createElement("style", null, '@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }'));+}+Object.assign(__ds_scope, { StatusBar });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/canvas/StatusBar.jsx", error: String((e && e.message) || e) }); }++// components/canvas/WorkflowCard.jsx+try { (() => {+/**+ * WorkflowCard — sidebar saved-workflow card. Selected gets a 3px accent+ * left edge; metadata row is mono.+ */+function WorkflowCard({+ name,+ nodeCount = 0,+ modified,+ selected = false,+ onClick,+ style+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("div", {+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ position: 'relative',+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid ' + (selected ? 'var(--accent)' : 'var(--border-default)'),+ borderLeftWidth: selected ? 3 : 1,+ background: selected ? 'var(--bg-active)' : hover ? 'var(--bg-hover)' : 'var(--bg-app)',+ padding: 12,+ cursor: 'pointer',+ transition: 'background var(--dur-default, 180ms) var(--ease-default)',+ userSelect: 'none',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ marginBottom: 6+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ width: 24,+ height: 24,+ flexShrink: 0,+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid ' + (selected ? 'var(--accent)' : 'var(--border-default)'),+ background: selected ? 'color-mix(in srgb, var(--accent) 20%, transparent)' : 'var(--bg-elevated)',+ color: selected ? 'var(--accent)' : 'var(--fg-muted)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "12",+ height: "12",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("polyline", {+ points: "16 18 22 12 16 6"+ }), /*#__PURE__*/React.createElement("polyline", {+ points: "8 6 2 12 8 18"+ }))), /*#__PURE__*/React.createElement("span", {+ style: {+ flex: 1,+ minWidth: 0,+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ fontWeight: 500,+ color: selected ? 'var(--accent)' : 'var(--fg-default)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, name)), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'space-between',+ fontFamily: 'var(--font-mono)',+ fontSize: 11,+ color: selected ? 'var(--fg-default)' : 'var(--fg-muted)'+ }+ }, /*#__PURE__*/React.createElement("span", null, nodeCount, " nodes"), /*#__PURE__*/React.createElement("span", null, modified)));+}+Object.assign(__ds_scope, { WorkflowCard });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/canvas/WorkflowCard.jsx", error: String((e && e.message) || e) }); }++// components/display/Avatar.jsx+try { (() => {+/**+ * Avatar — initials in a soft accent tile. Used for providers/agents+ * in credential rows and chat.+ */+function Avatar({+ name = '',+ color = 'var(--accent)',+ size = 28,+ square = false,+ style+}) {+ const initials = String(name).split(/\s+/).map(w => w.charAt(0)).slice(0, 2).join('').toUpperCase();+ return /*#__PURE__*/React.createElement("span", {+ title: name,+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ width: size,+ height: size,+ flexShrink: 0,+ borderRadius: square ? 'var(--radius-md, 6px)' : '50%',+ border: `1px solid color-mix(in srgb, ${color} 35%, transparent)`,+ background: `color-mix(in srgb, ${color} 14%, transparent)`,+ color: color,+ fontFamily: 'var(--font-sans)',+ fontSize: Math.round(size * 0.38),+ fontWeight: 600,+ letterSpacing: '0.02em',+ userSelect: 'none',+ ...style+ }+ }, initials || '?');+}+Object.assign(__ds_scope, { Avatar });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Avatar.jsx", error: String((e && e.message) || e) }); }++// components/display/Badge.jsx+try { (() => {+/**+ * Badge — small count / label chip. Mono font for numeric counts.+ */+function Badge({+ variant = 'secondary',+ mono = false,+ color,+ children,+ style+}) {+ const variants = {+ default: {+ background: 'var(--primary)',+ color: 'var(--primary-foreground)',+ border: '1px solid transparent'+ },+ secondary: {+ background: 'var(--bg-hover)',+ color: 'var(--fg-muted)',+ border: '1px solid transparent'+ },+ outline: {+ background: 'transparent',+ color: 'var(--fg-muted)',+ border: '1px solid var(--border-default)'+ },+ accent: {+ background: `color-mix(in srgb, ${color || 'var(--accent)'} 12%, transparent)`,+ color: color || 'var(--accent)',+ border: `1px solid color-mix(in srgb, ${color || 'var(--accent)'} 30%, transparent)`+ }+ };+ return /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ gap: 4,+ height: 18,+ borderRadius: 'var(--radius-md, 6px)',+ padding: '0 6px',+ fontFamily: mono ? 'var(--font-mono)' : 'var(--font-sans)',+ fontSize: 11,+ fontWeight: 500,+ lineHeight: 1,+ whiteSpace: 'nowrap',+ ...variants[variant],+ ...style+ }+ }, children);+}+Object.assign(__ds_scope, { Badge });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Badge.jsx", error: String((e && e.message) || e) }); }++// components/display/Card.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * Card — base surface. Optional hover lift (for clickable cards) and+ * selected state (3px accent left edge, like WorkflowSidebar cards).+ */+function Card({+ interactive = false,+ selected = false,+ children,+ style,+ ...rest+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("div", _extends({+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ borderLeft: selected ? '3px solid var(--accent)' : '1px solid var(--border-default)',+ background: selected ? 'var(--bg-active)' : interactive && hover ? 'var(--bg-hover)' : 'var(--surface-card)',+ boxShadow: interactive && hover ? 'var(--shadow-card-hover)' : 'var(--shadow-card)',+ transform: interactive && hover ? 'translateY(-1px)' : 'none',+ transition: 'all var(--dur-default, 180ms) var(--ease-default)',+ cursor: interactive ? 'pointer' : 'default',+ padding: 12,+ ...style+ }+ }, rest), children);+}+Object.assign(__ds_scope, { Card });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Card.jsx", error: String((e && e.message) || e) }); }++// components/display/ChatBubble.jsx+try { (() => {+/**+ * ChatBubble — dock Chat tab message. User = right, primary tint,+ * square corner bottom-right; agent = left, card surface.+ */+function ChatBubble({+ role = 'agent',+ time,+ children,+ style+}) {+ const user = role === 'user';+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ alignItems: user ? 'flex-end' : 'flex-start',+ gap: 3,+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ maxWidth: 420,+ borderRadius: user ? '10px 10px 2px 10px' : '10px 10px 10px 2px',+ border: user ? '1px solid color-mix(in srgb, var(--primary) 35%, transparent)' : '1px solid var(--border-default)',+ background: user ? 'color-mix(in srgb, var(--primary) 18%, transparent)' : 'var(--surface-card)',+ color: 'var(--fg-default)',+ fontFamily: 'var(--font-sans)',+ fontSize: 13.5,+ lineHeight: 1.45,+ padding: '8px 12px'+ }+ }, children), time ? /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 10,+ color: 'var(--fg-faint)',+ padding: '0 2px'+ }+ }, time) : null);+}+Object.assign(__ds_scope, { ChatBubble });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/ChatBubble.jsx", error: String((e && e.message) || e) }); }++// components/display/Kbd.jsx+try { (() => {+/**+ * Kbd — keyboard shortcut chip. Mono, bordered, bottom-weighted edge.+ */+function Kbd({+ children,+ style+}) {+ return /*#__PURE__*/React.createElement("kbd", {+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ minWidth: 20,+ height: 20,+ padding: '0 5px',+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid var(--border-default)',+ borderBottomWidth: 2,+ background: 'var(--bg-panel)',+ color: 'var(--fg-muted)',+ fontFamily: 'var(--font-mono)',+ fontSize: 10.5,+ lineHeight: 1,+ ...style+ }+ }, children);+}+Object.assign(__ds_scope, { Kbd });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Kbd.jsx", error: String((e && e.message) || e) }); }++// components/display/LogLine.jsx+try { (() => {+/**+ * LogLine — console output row: faint [timestamp] + toned message,+ * all mono. Tones map to event kinds.+ */+const LOG_TONES = {+ muted: 'var(--fg-muted)',+ success: 'var(--success)',+ error: 'var(--destructive)',+ warning: 'var(--warning)',+ agent: 'var(--node-agent)',+ model: 'var(--node-model)',+ tool: 'var(--node-tool)',+ trigger: 'var(--node-trigger)'+};+function LogLine({+ time,+ tone = 'muted',+ children,+ style+}) {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ gap: 10,+ fontFamily: 'var(--font-mono)',+ fontSize: 12,+ lineHeight: 1.5,+ ...style+ }+ }, time ? /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--fg-faint)',+ flexShrink: 0+ }+ }, "[", time, "]") : null, /*#__PURE__*/React.createElement("span", {+ style: {+ color: LOG_TONES[tone] || tone,+ minWidth: 0,+ overflowWrap: 'break-word'+ }+ }, children));+}+Object.assign(__ds_scope, { LogLine });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/LogLine.jsx", error: String((e && e.message) || e) }); }++// components/display/Tabs.jsx+try { (() => {+/**+ * Tabs — console-dock style tab strip (Chat / Console / Terminal).+ * Active tab gets accent text + 2px underline.+ */+function Tabs({+ tabs,+ active,+ onChange,+ style+}) {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ gap: 2,+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ padding: '0 8px',+ ...style+ }+ }, tabs.map(tab => {+ const id = typeof tab === 'string' ? tab : tab.id;+ const label = typeof tab === 'string' ? tab : tab.label;+ const isActive = active === id;+ return /*#__PURE__*/React.createElement(TabButton, {+ key: id,+ isActive: isActive,+ onClick: () => onChange && onChange(id)+ }, label);+ }));+}+function TabButton({+ isActive,+ onClick,+ children+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ appearance: 'none',+ background: hover && !isActive ? 'var(--bg-hover)' : 'transparent',+ border: 'none',+ borderBottom: isActive ? '2px solid var(--accent)' : '2px solid transparent',+ color: isActive ? 'var(--accent)' : 'var(--fg-muted)',+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: isActive ? 600 : 500,+ padding: '8px 12px',+ cursor: 'pointer',+ transition: 'color var(--dur-fast, 90ms), background var(--dur-fast, 90ms)',+ marginBottom: -1+ }+ }, children);+}+Object.assign(__ds_scope, { Tabs });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/display/Tabs.jsx", error: String((e && e.message) || e) }); }++// components/feedback/EmptyState.jsx+try { (() => {+/**+ * EmptyState — dashed drop-zone style placeholder with icon, title,+ * hint and optional action. Matches "No workflows yet" pattern.+ */+function EmptyState({+ icon,+ title,+ hint,+ action,+ style+}) {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ alignItems: 'center',+ justifyContent: 'center',+ gap: 6,+ textAlign: 'center',+ border: '2px dashed var(--border-default)',+ borderRadius: 'var(--radius-xl, 12px)',+ background: 'transparent',+ padding: '32px 24px',+ ...style+ }+ }, icon ? /*#__PURE__*/React.createElement("div", {+ style: {+ color: 'var(--fg-faint)',+ marginBottom: 4+ }+ }, icon) : null, /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 15,+ fontWeight: 600,+ color: 'var(--fg-default)'+ }+ }, title), hint ? /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ color: 'var(--fg-muted)',+ maxWidth: 320,+ lineHeight: 1.45+ }+ }, hint) : null, action ? /*#__PURE__*/React.createElement("div", {+ style: {+ marginTop: 10+ }+ }, action) : null);+}+Object.assign(__ds_scope, { EmptyState });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/feedback/EmptyState.jsx", error: String((e && e.message) || e) }); }++// components/feedback/Modal.jsx+try { (() => {+/**+ * Modal — overlay dialog. Flat rgba scrim (no blur), elevated card with+ * --shadow-modal, 18px title, ghost X. `inline` renders just the dialog+ * card (for specimens / embedding).+ */+function Modal({+ open = true,+ title,+ children,+ footer,+ onClose,+ width = 440,+ inline = false,+ style+}) {+ if (!open) return null;+ const card = /*#__PURE__*/React.createElement("div", {+ role: "dialog",+ "aria-modal": !inline,+ style: {+ width: '100%',+ maxWidth: width,+ borderRadius: 'var(--radius-xl, 12px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-elevated)',+ boxShadow: 'var(--shadow-modal)',+ display: 'flex',+ flexDirection: 'column',+ overflow: 'hidden',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: 12,+ padding: '14px 16px',+ borderBottom: '1px solid var(--border-default)'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 18,+ fontWeight: 600,+ color: 'var(--fg-default)'+ }+ }, title), /*#__PURE__*/React.createElement(CloseButton, {+ onClick: onClose+ })), /*#__PURE__*/React.createElement("div", {+ style: {+ padding: 16,+ color: 'var(--fg-default)',+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ lineHeight: 1.5+ }+ }, children), footer ? /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'flex-end',+ gap: 8,+ padding: '12px 16px',+ borderTop: '1px solid var(--border-default)',+ background: 'var(--bg-panel)'+ }+ }, footer) : null);+ if (inline) return card;+ return /*#__PURE__*/React.createElement("div", {+ onClick: e => {+ if (e.target === e.currentTarget && onClose) onClose();+ },+ style: {+ position: 'fixed',+ inset: 0,+ zIndex: 100,+ background: 'var(--bg-overlay)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ padding: 24+ }+ }, card);+}+function CloseButton({+ onClick+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ title: "Close",+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ width: 26,+ height: 26,+ padding: 0,+ flexShrink: 0,+ borderRadius: 'var(--radius-md, 6px)',+ border: 'none',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-muted)',+ cursor: 'pointer',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ transition: 'background var(--dur-fast, 90ms)'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "14",+ height: "14",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M18 6 6 18"+ }), /*#__PURE__*/React.createElement("path", {+ d: "m6 6 12 12"+ })));+}+Object.assign(__ds_scope, { Modal });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/feedback/Modal.jsx", error: String((e && e.message) || e) }); }++// components/feedback/Progress.jsx+try { (() => {+/**+ * Progress — slim bar, accent fill, optional mono value label.+ */+function Progress({+ value = 0,+ color = 'var(--primary)',+ label,+ style+}) {+ const pct = Math.max(0, Math.min(100, value));+ return /*#__PURE__*/React.createElement("div", {+ style: {+ width: '100%',+ ...style+ }+ }, label ? /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'space-between',+ marginBottom: 5+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 12,+ fontWeight: 500,+ color: 'var(--fg-muted)'+ }+ }, label), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 11,+ color: 'var(--fg-muted)'+ }+ }, pct, "%")) : null, /*#__PURE__*/React.createElement("div", {+ style: {+ height: 6,+ borderRadius: 'var(--radius-pill, 999px)',+ background: 'var(--bg-hover)',+ border: '1px solid var(--border-default)',+ overflow: 'hidden'+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ height: '100%',+ width: pct + '%',+ borderRadius: 'inherit',+ background: color,+ boxShadow: `0 0 8px color-mix(in srgb, ${color} 50%, transparent)`,+ transition: 'width var(--dur-slow, 320ms) var(--ease-default)'+ }+ })));+}+Object.assign(__ds_scope, { Progress });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/feedback/Progress.jsx", error: String((e && e.message) || e) }); }++// components/feedback/Spinner.jsx+try { (() => {+/**+ * Spinner — rotating arc in an accent color. Pair with mono label.+ */+function Spinner({+ size = 16,+ color = 'var(--primary)',+ style+}) {+ return /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'inline-flex',+ ...style+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: size,+ height: size,+ viewBox: "0 0 24 24",+ fill: "none",+ style: {+ animation: 'machina-spin 0.9s linear infinite'+ }+ }, /*#__PURE__*/React.createElement("circle", {+ cx: "12",+ cy: "12",+ r: "9",+ stroke: `color-mix(in srgb, ${color} 20%, transparent)`,+ strokeWidth: "3"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M21 12a9 9 0 0 0-9-9",+ stroke: color,+ strokeWidth: "3",+ strokeLinecap: "round"+ })), /*#__PURE__*/React.createElement("style", null, '@keyframes machina-spin { to { transform: rotate(360deg); } }'));+}+Object.assign(__ds_scope, { Spinner });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/feedback/Spinner.jsx", error: String((e && e.message) || e) }); }++// components/feedback/Toast.jsx+try { (() => {+/**+ * Toast — status notification: soft tint, status pip, mono timestamp.+ */+const TONES = {+ success: 'var(--success)',+ error: 'var(--destructive)',+ warning: 'var(--warning)',+ info: 'var(--info)'+};+function Toast({+ tone = 'info',+ title,+ message,+ time,+ onClose,+ style+}) {+ const c = TONES[tone] || TONES.info;+ return /*#__PURE__*/React.createElement("div", {+ role: "status",+ style: {+ display: 'flex',+ alignItems: 'flex-start',+ gap: 10,+ width: '100%',+ maxWidth: 360,+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid color-mix(in srgb, ${c} 35%, transparent)`,+ background: `color-mix(in srgb, ${c} 8%, var(--bg-elevated))`,+ boxShadow: 'var(--shadow-card)',+ padding: '10px 12px',+ fontFamily: 'var(--font-sans)',+ ...style+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ width: 8,+ height: 8,+ borderRadius: '50%',+ background: c,+ boxShadow: `0 0 6px color-mix(in srgb, ${c} 60%, transparent)`,+ marginTop: 5,+ flexShrink: 0+ }+ }), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ minWidth: 0+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'baseline',+ justifyContent: 'space-between',+ gap: 8+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 13,+ fontWeight: 600,+ color: 'var(--fg-default)'+ }+ }, title), time ? /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 10,+ color: 'var(--fg-faint)',+ flexShrink: 0+ }+ }, time) : null), message ? /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 12.5,+ color: 'var(--fg-muted)',+ marginTop: 2,+ lineHeight: 1.4+ }+ }, message) : null), onClose ? /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: onClose,+ title: "Dismiss",+ style: {+ border: 'none',+ background: 'none',+ color: 'var(--fg-faint)',+ cursor: 'pointer',+ padding: 0,+ lineHeight: 1,+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "12",+ height: "12",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M18 6 6 18"+ }), /*#__PURE__*/React.createElement("path", {+ d: "m6 6 12 12"+ }))) : null);+}+Object.assign(__ds_scope, { Toast });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/feedback/Toast.jsx", error: String((e && e.message) || e) }); }++// components/feedback/Tooltip.jsx+try { (() => {+/**+ * Tooltip — hover label. Dark capsule, full-sentence copy allowed.+ */+function Tooltip({+ label,+ side = 'top',+ children,+ style+}) {+ const [show, setShow] = React.useState(false);+ const pos = side === 'bottom' ? {+ top: 'calc(100% + 6px)',+ left: '50%',+ transform: 'translateX(-50%)'+ } : {+ bottom: 'calc(100% + 6px)',+ left: '50%',+ transform: 'translateX(-50%)'+ };+ return /*#__PURE__*/React.createElement("span", {+ onMouseEnter: () => setShow(true),+ onMouseLeave: () => setShow(false),+ style: {+ position: 'relative',+ display: 'inline-flex',+ ...style+ }+ }, children, show ? /*#__PURE__*/React.createElement("span", {+ role: "tooltip",+ style: {+ position: 'absolute',+ zIndex: 60,+ ...pos,+ background: 'var(--fg-default)',+ color: 'var(--bg-app)',+ fontFamily: 'var(--font-sans)',+ fontSize: 11.5,+ fontWeight: 500,+ lineHeight: 1.35,+ borderRadius: 'var(--radius-md, 6px)',+ padding: '5px 9px',+ whiteSpace: 'nowrap',+ maxWidth: 260,+ boxShadow: 'var(--shadow-card-hover)',+ pointerEvents: 'none'+ }+ }, label) : null);+}+Object.assign(__ds_scope, { Tooltip });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/feedback/Tooltip.jsx", error: String((e && e.message) || e) }); }++// components/forms/ApiKeyInput.jsx+try { (() => {+/**+ * ApiKeyInput — credentials row: mono masked input with eye toggle,+ * Validate button (→ check + "Valid" when stored), optional delete.+ * Source: client/src/components/ui/ApiKeyInput.tsx.+ */+function ApiKeyInput({+ value,+ defaultValue = '',+ onChange,+ onSave,+ onDelete,+ placeholder = 'Enter API key...',+ loading = false,+ isStored = false,+ disabled = false,+ saveLabel = 'Validate',+ savedLabel = 'Valid',+ style+}) {+ const [internal, setInternal] = React.useState(defaultValue);+ const [visible, setVisible] = React.useState(false);+ const [focus, setFocus] = React.useState(false);+ const cur = value !== undefined ? value : internal;+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'stretch',+ gap: 4,+ width: '100%',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'relative',+ flex: 1+ }+ }, /*#__PURE__*/React.createElement("input", {+ type: visible ? 'text' : 'password',+ value: cur,+ placeholder: placeholder,+ disabled: disabled,+ onChange: e => {+ if (value === undefined) setInternal(e.target.value);+ onChange && onChange(e.target.value);+ },+ onFocus: () => setFocus(true),+ onBlur: () => setFocus(false),+ style: {+ height: 'var(--h-control, 32px)',+ width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${focus ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: focus ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)',+ color: 'var(--fg-default)',+ fontFamily: 'var(--font-mono)',+ fontSize: 13,+ padding: '0 34px 0 12px',+ outline: 'none',+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)'+ }+ }), /*#__PURE__*/React.createElement("button", {+ type: "button",+ "aria-label": visible ? 'Hide key' : 'Show key',+ onClick: () => setVisible(v => !v),+ style: {+ position: 'absolute',+ top: '50%',+ right: 8,+ transform: 'translateY(-50%)',+ border: 'none',+ background: 'none',+ padding: 2,+ cursor: 'pointer',+ color: 'var(--fg-faint)',+ display: 'flex'+ }+ }, visible ? /*#__PURE__*/React.createElement("svg", {+ width: "15",+ height: "15",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M9.88 9.88a3 3 0 1 0 4.24 4.24"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"+ }), /*#__PURE__*/React.createElement("line", {+ x1: "2",+ x2: "22",+ y1: "2",+ y2: "22"+ })) : /*#__PURE__*/React.createElement("svg", {+ width: "15",+ height: "15",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"+ }), /*#__PURE__*/React.createElement("circle", {+ cx: "12",+ cy: "12",+ r: "3"+ })))), /*#__PURE__*/React.createElement(ValidateButton, {+ disabled: !String(cur).trim() || disabled || loading,+ loading: loading,+ isStored: isStored,+ onClick: onSave,+ label: isStored ? savedLabel : saveLabel+ }), isStored && onDelete ? /*#__PURE__*/React.createElement(DeleteButton, {+ onClick: onDelete,+ disabled: disabled+ }) : null);+}+function ValidateButton({+ disabled,+ loading,+ isStored,+ onClick,+ label+}) {+ const [hover, setHover] = React.useState(false);+ const bg = isStored ? 'color-mix(in srgb, var(--success) 12%, transparent)' : hover && !disabled ? 'color-mix(in srgb, var(--primary) 85%, var(--bg-app))' : 'var(--primary)';+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ disabled: disabled,+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ gap: 6,+ height: 'var(--h-control, 32px)',+ padding: '0 12px',+ borderRadius: 'var(--radius-lg, 8px)',+ border: isStored ? '1px solid color-mix(in srgb, var(--success) 35%, transparent)' : '1px solid transparent',+ background: bg,+ color: isStored ? 'var(--success)' : 'var(--primary-foreground)',+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: 500,+ lineHeight: 1,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled && !isStored ? 0.5 : 1,+ whiteSpace: 'nowrap',+ flexShrink: 0,+ transition: 'background var(--dur-default, 180ms)'+ }+ }, loading ? /*#__PURE__*/React.createElement("svg", {+ width: "13",+ height: "13",+ viewBox: "0 0 24 24",+ fill: "none",+ style: {+ animation: 'machina-spin 0.9s linear infinite'+ }+ }, /*#__PURE__*/React.createElement("path", {+ d: "M21 12a9 9 0 0 0-9-9",+ stroke: "currentColor",+ strokeWidth: "3",+ strokeLinecap: "round"+ })) : isStored ? /*#__PURE__*/React.createElement("svg", {+ width: "13",+ height: "13",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M22 11.08V12a10 10 0 1 1-5.93-9.14"+ }), /*#__PURE__*/React.createElement("path", {+ d: "m9 11 3 3L22 4"+ })) : /*#__PURE__*/React.createElement("svg", {+ width: "13",+ height: "13",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"+ }), /*#__PURE__*/React.createElement("polyline", {+ points: "17 21 17 13 7 13 7 21"+ }), /*#__PURE__*/React.createElement("polyline", {+ points: "7 3 7 8 15 8"+ })), label, /*#__PURE__*/React.createElement("style", null, '@keyframes machina-spin { to { transform: rotate(360deg); } }'));+}+function DeleteButton({+ onClick,+ disabled+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ title: "Delete stored key",+ disabled: disabled,+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ width: 'var(--h-control, 32px)',+ height: 'var(--h-control, 32px)',+ flexShrink: 0,+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid transparent',+ background: hover ? 'color-mix(in srgb, var(--destructive) 20%, transparent)' : 'color-mix(in srgb, var(--destructive) 10%, transparent)',+ color: 'var(--destructive)',+ cursor: disabled ? 'not-allowed' : 'pointer',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ transition: 'background var(--dur-default, 180ms)'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "14",+ height: "14",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M3 6h18"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"+ })));+}+Object.assign(__ds_scope, { ApiKeyInput });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/ApiKeyInput.jsx", error: String((e && e.message) || e) }); }++// components/forms/Checkbox.jsx+try { (() => {+/**+ * Checkbox — 16px square, primary blue when checked, with label support.+ */+function Checkbox({+ checked,+ defaultChecked = false,+ onChange,+ disabled = false,+ label,+ style+}) {+ const [internal, setInternal] = React.useState(defaultChecked);+ const isOn = checked !== undefined ? checked : internal;+ const toggle = () => {+ if (disabled) return;+ const next = !isOn;+ if (checked === undefined) setInternal(next);+ onChange && onChange(next);+ };+ return /*#__PURE__*/React.createElement("label", {+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ gap: 8,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ userSelect: 'none',+ ...style+ }+ }, /*#__PURE__*/React.createElement("button", {+ type: "button",+ role: "checkbox",+ "aria-checked": isOn,+ onClick: toggle,+ disabled: disabled,+ style: {+ width: 16,+ height: 16,+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid ' + (isOn ? 'var(--primary)' : 'var(--border-strong)'),+ background: isOn ? 'var(--primary)' : 'var(--bg-input)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ padding: 0,+ cursor: 'inherit',+ transition: 'background var(--dur-fast, 90ms), border-color var(--dur-fast, 90ms)',+ flexShrink: 0+ }+ }, isOn ? /*#__PURE__*/React.createElement("svg", {+ width: "10",+ height: "10",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "var(--primary-foreground)",+ strokeWidth: "3.5",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M20 6 9 17l-5-5"+ })) : null), label ? /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ color: 'var(--fg-default)'+ }+ }, label) : null);+}+Object.assign(__ds_scope, { Checkbox });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Checkbox.jsx", error: String((e && e.message) || e) }); }++// components/forms/Input.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * Input — 32px text field. Optional leading icon (pass a ReactNode).+ * Focus ring is the solarized blue --border-focus.+ */+function Input({+ icon,+ style,+ wrapperStyle,+ ...rest+}) {+ const [focus, setFocus] = React.useState(false);+ return /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'relative',+ display: 'flex',+ alignItems: 'center',+ width: '100%',+ ...wrapperStyle+ }+ }, icon ? /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ left: 10,+ display: 'flex',+ alignItems: 'center',+ color: 'var(--fg-faint)',+ pointerEvents: 'none'+ }+ }, icon) : null, /*#__PURE__*/React.createElement("input", _extends({+ onFocus: e => {+ setFocus(true);+ rest.onFocus && rest.onFocus(e);+ },+ onBlur: e => {+ setFocus(false);+ rest.onBlur && rest.onBlur(e);+ },+ style: {+ height: 'var(--h-control, 32px)',+ width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${focus ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: focus ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)',+ color: 'var(--fg-default)',+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ padding: icon ? '0 12px 0 32px' : '0 12px',+ outline: 'none',+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)',+ ...style+ }+ }, rest)));+}+Object.assign(__ds_scope, { Input });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Input.jsx", error: String((e && e.message) || e) }); }++// components/forms/RadioGroup.jsx+try { (() => {+/**+ * RadioGroup — vertical or horizontal radio list. 16px circles,+ * primary blue dot when selected.+ */+function RadioGroup({+ options = [],+ value,+ defaultValue,+ onChange,+ direction = 'column',+ disabled = false,+ style+}) {+ const [internal, setInternal] = React.useState(defaultValue);+ const current = value !== undefined ? value : internal;+ const norm = options.map(o => typeof o === 'string' ? {+ value: o,+ label: o+ } : o);+ const pick = v => {+ if (disabled) return;+ if (value === undefined) setInternal(v);+ onChange && onChange(v);+ };+ return /*#__PURE__*/React.createElement("div", {+ role: "radiogroup",+ style: {+ display: 'flex',+ flexDirection: direction,+ gap: direction === 'column' ? 8 : 16,+ opacity: disabled ? 0.5 : 1,+ ...style+ }+ }, norm.map(o => {+ const on = o.value === current;+ return /*#__PURE__*/React.createElement("label", {+ key: o.value,+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ gap: 8,+ cursor: disabled ? 'not-allowed' : 'pointer',+ userSelect: 'none'+ }+ }, /*#__PURE__*/React.createElement("button", {+ type: "button",+ role: "radio",+ "aria-checked": on,+ disabled: disabled,+ onClick: () => pick(o.value),+ style: {+ width: 16,+ height: 16,+ borderRadius: '50%',+ padding: 0,+ flexShrink: 0,+ border: `1px solid ${on ? 'var(--primary)' : 'var(--border-strong)'}`,+ background: 'var(--bg-input)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ cursor: 'inherit',+ transition: 'border-color var(--dur-fast, 90ms)'+ }+ }, on ? /*#__PURE__*/React.createElement("span", {+ style: {+ width: 8,+ height: 8,+ borderRadius: '50%',+ background: 'var(--primary)'+ }+ }) : null), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ color: 'var(--fg-default)'+ }+ }, o.label));+ }));+}+Object.assign(__ds_scope, { RadioGroup });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/RadioGroup.jsx", error: String((e && e.message) || e) }); }++// components/forms/Select.jsx+try { (() => {+/**+ * Select — 32px dropdown matching Input. Custom menu card with+ * check on the selected option. Placeholder copy ends with "...".+ */+function Select({+ options = [],+ value,+ defaultValue,+ onChange,+ placeholder = 'Select...',+ disabled = false,+ style,+ wrapperStyle+}) {+ const [internal, setInternal] = React.useState(defaultValue);+ const [open, setOpen] = React.useState(false);+ const ref = React.useRef(null);+ const current = value !== undefined ? value : internal;+ const norm = options.map(o => typeof o === 'string' ? {+ value: o,+ label: o+ } : o);+ const sel = norm.find(o => o.value === current);+ React.useEffect(() => {+ if (!open) return;+ const close = e => {+ if (ref.current && !ref.current.contains(e.target)) setOpen(false);+ };+ document.addEventListener('mousedown', close);+ return () => document.removeEventListener('mousedown', close);+ }, [open]);+ const pick = v => {+ if (value === undefined) setInternal(v);+ onChange && onChange(v);+ setOpen(false);+ };+ return /*#__PURE__*/React.createElement("div", {+ ref: ref,+ style: {+ position: 'relative',+ width: '100%',+ ...wrapperStyle+ }+ }, /*#__PURE__*/React.createElement("button", {+ type: "button",+ disabled: disabled,+ onClick: () => setOpen(o => !o),+ style: {+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: 8,+ height: 'var(--h-control, 32px)',+ width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${open ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: open ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)',+ color: sel ? 'var(--fg-default)' : 'var(--fg-faint)',+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ padding: '0 10px 0 12px',+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)',+ textAlign: 'left',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ ...style+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, sel ? sel.label : placeholder), /*#__PURE__*/React.createElement("svg", {+ width: "14",+ height: "14",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "var(--fg-muted)",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ style: {+ flexShrink: 0,+ transform: open ? 'rotate(180deg)' : 'none',+ transition: 'transform var(--dur-default, 180ms) var(--ease-default)'+ }+ }, /*#__PURE__*/React.createElement("path", {+ d: "m6 9 6 6 6-6"+ }))), open ? /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'absolute',+ top: 'calc(100% + 4px)',+ left: 0,+ right: 0,+ zIndex: 50,+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-elevated)',+ boxShadow: 'var(--shadow-modal)',+ padding: 4,+ maxHeight: 220,+ overflowY: 'auto'+ }+ }, norm.map(o => /*#__PURE__*/React.createElement(SelectOption, {+ key: o.value,+ option: o,+ selected: o.value === current,+ onPick: pick+ }))) : null);+}+function SelectOption({+ option,+ selected,+ onPick+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: () => onPick(option.value),+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: 8,+ width: '100%',+ border: 'none',+ textAlign: 'left',+ borderRadius: 'var(--radius-md, 6px)',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-default)',+ fontFamily: 'var(--font-sans)',+ fontSize: 13.5,+ padding: '7px 10px',+ cursor: 'pointer'+ }+ }, option.label, selected ? /*#__PURE__*/React.createElement("svg", {+ width: "13",+ height: "13",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "var(--primary)",+ strokeWidth: "2.5",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M20 6 9 17l-5-5"+ })) : null);+}+Object.assign(__ds_scope, { Select });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Select.jsx", error: String((e && e.message) || e) }); }++// components/forms/Slider.jsx+try { (() => {+/**+ * Slider — settings-panel range control: 6px track, accent fill,+ * 16px draggable thumb. Used with a % readout in the row label.+ */+function Slider({+ value,+ defaultValue = 50,+ min = 0,+ max = 100,+ step = 1,+ onChange,+ color = 'var(--primary)',+ disabled = false,+ style+}) {+ const [internal, setInternal] = React.useState(defaultValue);+ const cur = value !== undefined ? value : internal;+ const trackRef = React.useRef(null);+ const draggingRef = React.useRef(false);+ const pct = (cur - min) / (max - min) * 100;+ const setFromClientX = React.useCallback(clientX => {+ const el = trackRef.current;+ if (!el) return;+ const r = el.getBoundingClientRect();+ let p = (clientX - r.left) / r.width;+ p = Math.max(0, Math.min(1, p));+ let v = min + p * (max - min);+ v = Math.round(v / step) * step;+ v = Math.max(min, Math.min(max, v));+ if (value === undefined) setInternal(v);+ onChange && onChange(v);+ }, [min, max, step, value, onChange]);+ React.useEffect(() => {+ const move = e => {+ if (draggingRef.current) setFromClientX(e.clientX);+ };+ const up = () => {+ draggingRef.current = false;+ };+ window.addEventListener('pointermove', move);+ window.addEventListener('pointerup', up);+ return () => {+ window.removeEventListener('pointermove', move);+ window.removeEventListener('pointerup', up);+ };+ }, [setFromClientX]);+ return /*#__PURE__*/React.createElement("div", {+ ref: trackRef,+ role: "slider",+ "aria-valuemin": min,+ "aria-valuemax": max,+ "aria-valuenow": cur,+ onPointerDown: e => {+ if (disabled) return;+ draggingRef.current = true;+ setFromClientX(e.clientX);+ },+ style: {+ position: 'relative',+ height: 20,+ display: 'flex',+ alignItems: 'center',+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ touchAction: 'none',+ userSelect: 'none',+ width: '100%',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'absolute',+ left: 0,+ right: 0,+ height: 6,+ borderRadius: 'var(--radius-pill, 999px)',+ background: 'var(--bg-hover)',+ border: '1px solid var(--border-default)'+ }+ }), /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'absolute',+ left: 0,+ width: pct + '%',+ height: 6,+ borderRadius: 'var(--radius-pill, 999px)',+ background: color+ }+ }), /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'absolute',+ left: `calc(${pct}% - 8px)`,+ width: 16,+ height: 16,+ borderRadius: '50%',+ background: 'var(--bg-elevated)',+ border: `2px solid ${color}`,+ boxShadow: 'var(--shadow-card)'+ }+ }));+}+Object.assign(__ds_scope, { Slider });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Slider.jsx", error: String((e && e.message) || e) }); }++// components/forms/Switch.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * Switch — 36×20 toggle. On = primary blue track.+ */+function Switch({+ checked,+ defaultChecked = false,+ onChange,+ disabled = false,+ style,+ ...rest+}) {+ const [internal, setInternal] = React.useState(defaultChecked);+ const isOn = checked !== undefined ? checked : internal;+ const toggle = () => {+ if (disabled) return;+ const next = !isOn;+ if (checked === undefined) setInternal(next);+ onChange && onChange(next);+ };+ return /*#__PURE__*/React.createElement("button", _extends({+ type: "button",+ role: "switch",+ "aria-checked": isOn,+ onClick: toggle,+ disabled: disabled,+ style: {+ position: 'relative',+ width: 36,+ height: 20,+ borderRadius: 'var(--radius-pill, 999px)',+ border: '1px solid ' + (isOn ? 'transparent' : 'var(--border-default)'),+ background: isOn ? 'var(--primary)' : 'var(--bg-hover)',+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ padding: 0,+ transition: 'background var(--dur-default, 180ms) var(--ease-default)',+ flexShrink: 0,+ ...style+ }+ }, rest), /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ top: 2,+ left: isOn ? 17 : 2,+ width: 14,+ height: 14,+ borderRadius: '50%',+ background: isOn ? 'var(--primary-foreground)' : 'var(--fg-faint)',+ transition: 'left var(--dur-default, 180ms) var(--ease-default), background var(--dur-default, 180ms)'+ }+ }));+}+Object.assign(__ds_scope, { Switch });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Switch.jsx", error: String((e && e.message) || e) }); }++// components/forms/Textarea.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * Textarea — multi-line Input. Mono option for prompts/code.+ */+function Textarea({+ mono = false,+ rows = 4,+ style,+ ...rest+}) {+ const [focus, setFocus] = React.useState(false);+ return /*#__PURE__*/React.createElement("textarea", _extends({+ rows: rows,+ onFocus: e => {+ setFocus(true);+ rest.onFocus && rest.onFocus(e);+ },+ onBlur: e => {+ setFocus(false);+ rest.onBlur && rest.onBlur(e);+ },+ style: {+ width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${focus ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: focus ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)',+ color: 'var(--fg-default)',+ fontFamily: mono ? 'var(--font-mono)' : 'var(--font-sans)',+ fontSize: mono ? 13 : 14,+ lineHeight: 1.5,+ padding: '8px 12px',+ outline: 'none',+ resize: 'vertical',+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)',+ ...style+ }+ }, rest));+}+Object.assign(__ds_scope, { Textarea });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/forms/Textarea.jsx", error: String((e && e.message) || e) }); }++// components/icons/Icon.jsx+try { (() => {+function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }+/**+ * Icon — Lucide bridge. MachinaOS uses lucide-react; in this design system+ * icons render from the lucide UMD bundle. Load it once per page:+ * <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+ * Then <Icon name="Play" size={14} /> — colored via currentColor.+ */+function Icon({+ name,+ size = 16,+ strokeWidth = 2,+ style,+ ...rest+}) {+ const lib = typeof window !== 'undefined' ? window.lucide : null;+ let node = null;+ if (lib && lib.icons) {+ node = lib.icons[name] || lib.icons[toPascal(name)] || null;+ }+ // lucide UMD icon shapes seen across versions:+ // [[tag, attrs], ...] — children list+ // ["svg", attrs, [[tag,attrs],..]] — full element triple+ let children = null;+ if (Array.isArray(node)) {+ if (node.length && Array.isArray(node[0])) children = node;else if (node[0] === 'svg' && Array.isArray(node[2])) children = node[2];+ }+ return /*#__PURE__*/React.createElement("svg", _extends({+ width: size,+ height: size,+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: strokeWidth,+ strokeLinecap: "round",+ strokeLinejoin: "round",+ style: {+ flexShrink: 0,+ display: 'inline-block',+ verticalAlign: 'middle',+ ...style+ },+ "aria-hidden": "true"+ }, rest), children ? children.map((child, i) => {+ const tag = child[0];+ const attrs = child[1] || {};+ return React.createElement(tag, {+ key: i,+ ...attrs+ });+ }) : null);+}+function toPascal(name) {+ if (!name) return '';+ return String(name).split(/[-_ ]/).map(p => p.charAt(0).toUpperCase() + p.slice(1)).join('');+}+Object.assign(__ds_scope, { Icon });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/icons/Icon.jsx", error: String((e && e.message) || e) }); }++// components/panels/CollapsibleSection.jsx+try { (() => {+/**+ * CollapsibleSection — accordion card: elevated trigger head with+ * display-font title + rotating chevron over an app-surface body.+ * Source: client/src/components/ui/CollapsibleSection.tsx.+ */+function CollapsibleSection({+ title,+ defaultCollapsed = false,+ collapsed,+ onToggle,+ children,+ style+}) {+ const [internal, setInternal] = React.useState(defaultCollapsed);+ const isCollapsed = collapsed !== undefined ? collapsed : internal;+ const [hover, setHover] = React.useState(false);+ const toggle = () => {+ if (collapsed === undefined) setInternal(c => !c);+ onToggle && onToggle(!isCollapsed);+ };+ return /*#__PURE__*/React.createElement("div", {+ style: {+ overflow: 'hidden',+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-app)',+ ...style+ }+ }, /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: toggle,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ display: 'flex',+ width: '100%',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: 8,+ border: 'none',+ cursor: 'pointer',+ background: hover ? 'var(--bg-hover)' : 'var(--bg-elevated)',+ padding: '12px 16px',+ color: 'var(--fg-default)',+ transition: 'background var(--dur-fast, 90ms)',+ textAlign: 'left'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-display, var(--font-sans))',+ fontSize: 14.5,+ fontWeight: 500,+ flex: 1,+ minWidth: 0,+ letterSpacing: 'var(--type-tracking-display, 0)',+ textTransform: 'var(--type-uppercase, none)',+ display: 'flex',+ alignItems: 'center',+ gap: 8+ }+ }, title), /*#__PURE__*/React.createElement("svg", {+ width: "12",+ height: "12",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "var(--fg-muted)",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ style: {+ flexShrink: 0,+ transform: isCollapsed ? 'rotate(-90deg)' : 'none',+ transition: 'transform var(--dur-default, 180ms) var(--ease-default)'+ }+ }, /*#__PURE__*/React.createElement("path", {+ d: "m6 9 6 6 6-6"+ }))), !isCollapsed ? /*#__PURE__*/React.createElement("div", {+ style: {+ padding: 12+ }+ }, children) : null);+}+Object.assign(__ds_scope, { CollapsibleSection });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/panels/CollapsibleSection.jsx", error: String((e && e.message) || e) }); }++// components/panels/DataCard.jsx+try { (() => {+/**+ * DataCard — execution-data card from the parameter panel's Input/Output+ * columns: status left-edge, icon + title + source badge header, Copy+ * action, labeled mono JSON block.+ * Source: client/src/components/ui/InputNodesPanel.tsx / OutputDisplayPanel.tsx.+ */+function DataCard({+ title,+ badge,+ tone = 'success',+ blockLabel = 'Received Data',+ data,+ onCopy,+ style+}) {+ const c = tone === 'error' ? 'var(--destructive)' : tone === 'warning' ? 'var(--warning)' : 'var(--success)';+ const json = typeof data === 'string' ? data : JSON.stringify(data, null, 2);+ return /*#__PURE__*/React.createElement("div", {+ style: {+ borderRadius: 'var(--radius-md, 6px)',+ border: '1px solid var(--border-default)',+ borderLeft: `4px solid ${c}`,+ background: 'var(--surface-card)',+ padding: 12,+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: 8,+ marginBottom: 10+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ minWidth: 0+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "15",+ height: "15",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: c,+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ style: {+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement("ellipse", {+ cx: "12",+ cy: "5",+ rx: "9",+ ry: "3"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M3 5V19A9 3 0 0 0 21 19V5"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M3 12A9 3 0 0 0 21 12"+ })), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: 600,+ color: 'var(--fg-default)',+ whiteSpace: 'nowrap'+ }+ }, title), badge ? /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ height: 18,+ padding: '0 6px',+ borderRadius: 'var(--radius-md, 6px)',+ fontSize: 11,+ fontWeight: 500,+ whiteSpace: 'nowrap',+ background: `color-mix(in srgb, ${c} 12%, transparent)`,+ border: `1px solid color-mix(in srgb, ${c} 30%, transparent)`,+ color: c,+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, badge) : null), /*#__PURE__*/React.createElement(CopyButton, {+ onCopy: onCopy,+ json: json+ })), /*#__PURE__*/React.createElement("div", {+ style: {+ overflow: 'hidden',+ borderRadius: 'var(--radius-md, 6px)',+ border: '1px solid var(--border-default)'+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-hover)',+ padding: '6px 12px',+ fontFamily: 'var(--font-sans)',+ fontSize: 11.5,+ fontWeight: 600,+ color: 'var(--fg-muted)'+ }+ }, blockLabel), /*#__PURE__*/React.createElement("pre", {+ style: {+ margin: 0,+ maxHeight: 300,+ overflow: 'auto',+ whiteSpace: 'pre-wrap',+ overflowWrap: 'break-word',+ background: 'color-mix(in srgb, var(--bg-hover) 40%, transparent)',+ padding: 12,+ fontFamily: 'var(--font-mono)',+ fontSize: 12,+ lineHeight: 1.4,+ color: 'var(--fg-default)'+ }+ }, json)));+}+function CopyButton({+ onCopy,+ json+}) {+ const [hover, setHover] = React.useState(false);+ const [copied, setCopied] = React.useState(false);+ const handle = () => {+ if (onCopy) onCopy(json);else if (navigator.clipboard) navigator.clipboard.writeText(json).catch(() => {});+ setCopied(true);+ window.setTimeout(() => setCopied(false), 1200);+ };+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: handle,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ display: 'inline-flex',+ alignItems: 'center',+ gap: 5,+ border: 'none',+ borderRadius: 'var(--radius-md, 6px)',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-muted)',+ fontFamily: 'var(--font-sans)',+ fontSize: 12,+ fontWeight: 500,+ padding: '5px 8px',+ cursor: 'pointer',+ flexShrink: 0,+ transition: 'background var(--dur-fast, 90ms)'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "13",+ height: "13",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("rect", {+ width: "14",+ height: "14",+ x: "8",+ y: "8",+ rx: "2",+ ry: "2"+ }), /*#__PURE__*/React.createElement("path", {+ d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"+ })), copied ? 'Copied' : 'Copy');+}+Object.assign(__ds_scope, { DataCard });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/panels/DataCard.jsx", error: String((e && e.message) || e) }); }++// components/panels/PanelModal.jsx+try { (() => {+/**+ * PanelModal — the product's workspace modal: header bar with title+ * absolute-left (icon + display font), centered headerActions (the+ * Run/Save/Cancel ActionButton cluster), X absolute-right. Header sits+ * on --bg-panel one step above the --bg-app body. Source:+ * client/src/components/ui/Modal.tsx.+ */+function PanelModal({+ open = true,+ title,+ titleIcon,+ headerActions,+ children,+ onClose,+ maxWidth = '90%',+ maxHeight = '88%',+ inline = false,+ style+}) {+ if (!open) return null;+ const card = /*#__PURE__*/React.createElement("div", {+ role: "dialog",+ "aria-modal": !inline,+ className: "modal modal-frame",+ style: {+ width: '100%',+ maxWidth,+ height: inline ? 'auto' : '100%',+ maxHeight,+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-app)',+ boxShadow: 'var(--shadow-modal)',+ display: 'flex',+ flexDirection: 'column',+ overflow: 'hidden',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'relative',+ display: 'flex',+ alignItems: 'center',+ width: '100%',+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ padding: '10px 20px',+ minHeight: 48,+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ left: 20,+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ fontFamily: 'var(--font-display, var(--font-sans))',+ fontSize: 15,+ fontWeight: 600,+ letterSpacing: 'var(--type-tracking-display, 0)',+ textTransform: 'var(--type-uppercase, none)',+ color: 'var(--fg-default)'+ }+ }, titleIcon ? /*#__PURE__*/React.createElement("span", {+ style: {+ opacity: 0.7,+ display: 'flex'+ }+ }, titleIcon) : null, title), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center'+ }+ }, headerActions), /*#__PURE__*/React.createElement(PanelClose, {+ onClick: onClose+ })), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ minHeight: 0,+ display: 'flex',+ flexDirection: 'column',+ overflow: 'hidden'+ }+ }, children));+ if (inline) return card;+ return /*#__PURE__*/React.createElement("div", {+ onClick: e => {+ if (e.target === e.currentTarget && onClose) onClose();+ },+ style: {+ position: 'fixed',+ inset: 0,+ zIndex: 100,+ background: 'var(--bg-overlay)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ padding: 24+ }+ }, card);+}+function PanelClose({+ onClick+}) {+ const [hover, setHover] = React.useState(false);+ return /*#__PURE__*/React.createElement("button", {+ type: "button",+ "aria-label": "Close",+ onClick: onClick,+ onMouseEnter: () => setHover(true),+ onMouseLeave: () => setHover(false),+ style: {+ position: 'absolute',+ right: 20,+ width: 32,+ height: 32,+ padding: 0,+ borderRadius: 'var(--radius-md, 6px)',+ border: 'none',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: hover ? 'var(--fg-default)' : 'var(--fg-muted)',+ cursor: 'pointer',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ transition: 'background var(--dur-fast, 90ms), color var(--dur-fast, 90ms)'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ width: "18",+ height: "18",+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round"+ }, /*#__PURE__*/React.createElement("path", {+ d: "M18 6 6 18"+ }), /*#__PURE__*/React.createElement("path", {+ d: "m6 6 12 12"+ })));+}+Object.assign(__ds_scope, { PanelModal });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/panels/PanelModal.jsx", error: String((e && e.message) || e) }); }++// components/panels/SettingsSection.jsx+try { (() => {+/**+ * SettingsSection + SettingsRow — the Settings panel's building blocks.+ * Section = elevated card with a toned 32px icon tile + display-font+ * title over a divider. Row = label + description left, control right.+ * Source: client/src/components/ui/SettingsPanel.tsx.+ */+const SECTION_TONES = {+ agent: 'var(--node-agent)',+ model: 'var(--node-model)',+ workflow: 'var(--node-workflow)',+ tool: 'var(--node-tool)',+ trigger: 'var(--node-trigger)'+};+function SettingsSection({+ title,+ icon,+ tone = 'agent',+ children,+ style+}) {+ const c = SECTION_TONES[tone] || tone;+ return /*#__PURE__*/React.createElement("div", {+ style: {+ marginBottom: 16,+ borderRadius: 'var(--radius-md, 6px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-elevated)',+ padding: 16,+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ borderBottom: '1px solid var(--border-default)',+ paddingBottom: 12,+ marginBottom: 12+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'flex',+ width: 32,+ height: 32,+ alignItems: 'center',+ justifyContent: 'center',+ borderRadius: 'var(--radius-md, 6px)',+ background: `color-mix(in srgb, ${c} 8%, transparent)`,+ color: c,+ flexShrink: 0+ }+ }, icon), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-display, var(--font-sans))',+ fontSize: 16,+ fontWeight: 600,+ letterSpacing: 'var(--type-tracking-display, 0)',+ textTransform: 'var(--type-uppercase, none)',+ color: 'var(--fg-default)'+ }+ }, title)), children);+}+function SettingsRow({+ label,+ description,+ children,+ style+}) {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: 16,+ padding: '8px 0',+ ...style+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ minWidth: 0+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ fontWeight: 500,+ color: 'var(--fg-default)'+ }+ }, label), description ? /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-sans)',+ fontSize: 12,+ color: 'var(--fg-muted)',+ marginTop: 2,+ lineHeight: 1.4+ }+ }, description) : null), /*#__PURE__*/React.createElement("div", {+ style: {+ flexShrink: 0+ }+ }, children));+}+Object.assign(__ds_scope, { SettingsSection, SettingsRow });+})(); } catch (e) { __ds_ns.__errors.push({ path: "components/panels/SettingsSection.jsx", error: String((e && e.message) || e) }); }++// ui_kits/machinaos/App.jsx+try { (() => {+// MachinaOS UI kit — app shell wiring all panels together.+const DS_APP = window.MachinaOSDesignSystem_2559cf;+const KIT = window.MachinaKit;+const WORKFLOWS = [{+ id: 'wa',+ name: 'WhatsApp Assistant',+ nodeCount: 6,+ modified: 'Jun 11, 09:14'+}, {+ id: 'digest',+ name: 'Daily Email Digest',+ nodeCount: 5,+ modified: 'Jun 9, 18:30'+}, {+ id: 'support',+ name: 'Customer Support Bot',+ nodeCount: 9,+ modified: 'Jun 5, 11:02'+}];+function App() {+ const {+ StatusBar+ } = DS_APP;+ const {+ Toolbar,+ SidebarPanel,+ PalettePanel,+ CanvasView,+ ConsoleDock,+ SettingsModal,+ NodeConfigModal,+ CredentialsModal+ } = KIT;+ const [dark, setDark] = React.useState(true);+ const [sidebarVisible, setSidebarVisible] = React.useState(true);+ const [paletteVisible, setPaletteVisible] = React.useState(true);+ const [consoleOpen, setConsoleOpen] = React.useState(true);+ const [mode, setMode] = React.useState('normal');+ const [running, setRunning] = React.useState(false);+ const [saved, setSaved] = React.useState(true);+ const [currentWf, setCurrentWf] = React.useState('wa');+ const [selectedId, setSelectedId] = React.useState(null);+ const [extraNodes, setExtraNodes] = React.useState([]);+ const [settingsOpen, setSettingsOpen] = React.useState(false);+ const [credsOpen, setCredsOpen] = React.useState(false);+ const [configNode, setConfigNode] = React.useState(null);+ React.useEffect(() => {+ document.documentElement.classList.toggle('dark', dark);+ }, [dark]);+ const wf = WORKFLOWS.find(w => w.id === currentWf);+ const handleDropNode = (item, section) => {+ const id = 'extra-' + Date.now();+ setExtraNodes(ns => [...ns, {+ id,+ icon: item.icon,+ label: item.name,+ color: section.color,+ x: 620 + ns.length * 60 % 180,+ y: 60 + ns.length * 50 % 120+ }]);+ setSaved(false);+ setSelectedId(id);+ };+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ height: '100vh',+ overflow: 'hidden',+ background: 'var(--bg-app)'+ }+ }, /*#__PURE__*/React.createElement(Toolbar, {+ workflowName: wf ? wf.name : 'Untitled Workflow',+ sidebarVisible: sidebarVisible,+ paletteVisible: paletteVisible,+ mode: mode,+ dark: dark,+ running: running,+ saved: saved,+ onToggleSidebar: () => setSidebarVisible(v => !v),+ onTogglePalette: () => setPaletteVisible(v => !v),+ onModeChange: setMode,+ onToggleTheme: () => setDark(d => !d),+ onRun: () => setRunning(r => !r),+ onSave: () => setSaved(true),+ onSettings: () => setSettingsOpen(true),+ onCredentials: () => setCredsOpen(true)+ }), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flex: 1,+ minHeight: 0+ }+ }, sidebarVisible ? /*#__PURE__*/React.createElement(SidebarPanel, {+ workflows: WORKFLOWS,+ currentId: currentWf,+ onSelect: id => {+ setCurrentWf(id);+ setSelectedId(null);+ }+ }) : null, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ flex: 1,+ minWidth: 0+ }+ }, /*#__PURE__*/React.createElement(CanvasView, {+ running: running,+ extraNodes: extraNodes,+ selectedId: selectedId,+ onSelect: id => setSelectedId(s => s === id ? null : id),+ onConfigure: n => setConfigNode(n)+ }), /*#__PURE__*/React.createElement(ConsoleDock, {+ open: consoleOpen,+ onToggle: () => setConsoleOpen(o => !o)+ })), paletteVisible ? /*#__PURE__*/React.createElement(PalettePanel, {+ mode: mode,+ onDropNode: handleDropNode+ }) : null), /*#__PURE__*/React.createElement(StatusBar, {+ connection: "online",+ workflowName: wf ? wf.name : '—',+ nodeCount: 6 + extraNodes.length,+ themeName: dark ? 'DARK' : 'LIGHT'+ }), /*#__PURE__*/React.createElement(SettingsModal, {+ open: settingsOpen,+ onClose: () => setSettingsOpen(false)+ }), /*#__PURE__*/React.createElement(CredentialsModal, {+ open: credsOpen,+ onClose: () => setCredsOpen(false)+ }), /*#__PURE__*/React.createElement(NodeConfigModal, {+ node: configNode,+ onClose: () => setConfigNode(null)+ }));+}+ReactDOM.createRoot(document.getElementById('root')).render(/*#__PURE__*/React.createElement(App, null));+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/App.jsx", error: String((e && e.message) || e) }); }++// ui_kits/machinaos/CanvasView.jsx+try { (() => {+// MachinaOS UI kit — node canvas: dot grid, dashed edges, square nodes,+// rectangular AI Agent node. Click nodes to select; Start runs the flow.+const DS_CV = window.MachinaOSDesignSystem_2559cf;++// Rectangular agent node (the larger card-style node from the product).+function AgentNode({+ x,+ y,+ status,+ selected,+ executing,+ onClick,+ onGearClick+}) {+ const color = 'var(--node-agent)';+ return /*#__PURE__*/React.createElement("div", {+ onClick: onClick,+ className: executing ? 'machina-pulse' : undefined,+ style: {+ '--node-pulse-color': color,+ position: 'absolute',+ left: x,+ top: y,+ width: 190,+ borderRadius: 12,+ border: `2px solid ${selected ? color : `color-mix(in srgb, ${color} 60%, transparent)`}`,+ background: `linear-gradient(135deg, color-mix(in srgb, ${color} 14%, var(--surface-card)) 0%, var(--surface-card) 100%)`,+ boxShadow: selected ? `0 0 0 1px ${color}, 0 4px 14px color-mix(in srgb, ${color} 32%, transparent)` : `0 2px 8px color-mix(in srgb, ${color} 18%, transparent)`,+ cursor: 'pointer',+ userSelect: 'none',+ zIndex: 10,+ padding: '14px 12px 10px',+ textAlign: 'center',+ transition: 'border-color 150ms ease, box-shadow 150ms ease'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ top: -4,+ left: -4,+ width: 10,+ height: 10,+ borderRadius: '50%',+ zIndex: 30,+ background: status === 'success' ? 'var(--success)' : status === 'executing' ? color : 'var(--fg-faint)',+ boxShadow: status !== 'idle' ? `0 0 6px color-mix(in srgb, ${status === 'executing' ? color : 'var(--success)'} 60%, transparent)` : 'none'+ }+ }), /*#__PURE__*/React.createElement("button", {+ type: "button",+ title: "Edit parameters",+ onClick: e => {+ e.stopPropagation();+ onGearClick && onGearClick();+ },+ style: {+ position: 'absolute',+ top: -8,+ right: -8,+ width: 20,+ height: 20,+ borderRadius: '50%',+ background: 'var(--surface-card)',+ border: '1px solid var(--border-default)',+ fontSize: 10,+ cursor: 'pointer',+ zIndex: 30,+ padding: 0+ }+ }, "\u2699\uFE0F"), /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 26,+ lineHeight: 1+ }+ }, "\uD83E\uDD16"), /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 15,+ fontWeight: 600,+ color: 'var(--fg-default)',+ marginTop: 6+ }+ }, "AI Agent"), /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 11,+ color: color,+ marginTop: 2+ }+ }, "LangGraph Agent"), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'space-between',+ marginTop: 8,+ fontSize: 10.5,+ color: 'var(--fg-muted)'+ }+ }, /*#__PURE__*/React.createElement("span", null, "Memory"), /*#__PURE__*/React.createElement("span", null, "Tool")), /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ left: -6,+ top: '50%',+ transform: 'translateY(-50%)',+ width: 12,+ height: 12,+ borderRadius: '50%',+ background: 'var(--bg-app)',+ border: '2px solid var(--fg-faint)',+ zIndex: 20+ }+ }), /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ right: -6,+ top: '50%',+ transform: 'translateY(-50%)',+ width: 12,+ height: 12,+ borderRadius: '50%',+ background: color,+ border: `2px solid ${color}`,+ zIndex: 20+ }+ }), /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ left: 28,+ bottom: -6,+ width: 11,+ height: 11,+ borderRadius: 3,+ transform: 'rotate(45deg)',+ background: 'var(--bg-app)',+ border: '2px solid var(--fg-faint)',+ zIndex: 20+ }+ }), /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ right: 28,+ bottom: -6,+ width: 11,+ height: 11,+ borderRadius: 3,+ transform: 'rotate(45deg)',+ background: 'var(--bg-app)',+ border: '2px solid var(--fg-faint)',+ zIndex: 20+ }+ }));+}+const BASE_NODES = [{+ id: 'receive',+ type: 'square',+ icon: '💬',+ label: 'WhatsApp Receive',+ color: 'var(--node-trigger)',+ x: 70,+ y: 210,+ showInput: false,+ trigger: true+}, {+ id: 'agent',+ type: 'agent',+ x: 330,+ y: 150+}, {+ id: 'send',+ type: 'square',+ icon: '📤',+ label: 'WhatsApp Send',+ color: 'var(--node-trigger)',+ x: 670,+ y: 210,+ showOutput: false+}, {+ id: 'memory',+ type: 'square',+ icon: '🧠',+ label: 'Simple Memory',+ color: 'var(--node-agent)',+ x: 290,+ y: 400,+ showInput: false,+ showToolOutput: true+}, {+ id: 'toolkit',+ type: 'square',+ icon: '📱',+ label: 'Android Toolkit',+ color: 'var(--node-tool)',+ x: 480,+ y: 400,+ showInput: false,+ showToolOutput: true+}, {+ id: 'search',+ type: 'square',+ icon: '🔍',+ label: 'Web Search Tool',+ color: 'var(--node-model)',+ x: 130,+ y: 420,+ showInput: false,+ showToolOutput: true+}];++// Edge endpoints (hand-tuned against the node geometry above).+const EDGES = [{+ id: 'e1',+ from: [134, 242],+ to: [330, 215],+ color: 'var(--dracula-pink)'+}, {+ id: 'e2',+ from: [520, 215],+ to: [670, 242],+ color: 'var(--dracula-purple)'+}, {+ id: 'e3',+ from: [358, 286],+ to: [322, 400],+ color: 'var(--dracula-purple)'+}, {+ id: 'e4',+ from: [492, 286],+ to: [512, 400],+ color: 'var(--dracula-green)'+}, {+ id: 'e5',+ from: [358, 286],+ to: [162, 420],+ color: 'var(--dracula-cyan)'+}];+const RUN_ORDER = ['receive', 'agent', 'memory', 'search', 'toolkit', 'send'];+function CanvasView({+ running,+ extraNodes,+ selectedId,+ onSelect,+ onConfigure+}) {+ const {+ SquareNode+ } = DS_CV;+ const [step, setStep] = React.useState(-1);+ React.useEffect(() => {+ if (!running) {+ setStep(-1);+ return;+ }+ setStep(0);+ const id = window.setInterval(() => {+ setStep(s => (s + 1) % (RUN_ORDER.length + 2));+ }, 900);+ return () => window.clearInterval(id);+ }, [running]);+ const statusOf = nodeId => {+ if (!running || step < 0) return 'idle';+ const idx = RUN_ORDER.indexOf(nodeId);+ if (idx === -1) return 'idle';+ if (idx === step) return 'executing';+ if (idx < step) return 'success';+ return 'idle';+ };+ return /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'relative',+ flex: 1,+ overflow: 'hidden',+ background: 'var(--bg-canvas)',+ backgroundImage: 'radial-gradient(color-mix(in srgb, var(--fg-muted) 30%, transparent) 1px, transparent 1px)',+ backgroundSize: '20px 20px'+ }+ }, /*#__PURE__*/React.createElement("svg", {+ style: {+ position: 'absolute',+ inset: 0,+ width: '100%',+ height: '100%',+ pointerEvents: 'none'+ }+ }, EDGES.map(e => {+ const [x1, y1] = e.from;+ const [x2, y2] = e.to;+ const mx = (x1 + x2) / 2;+ return /*#__PURE__*/React.createElement("path", {+ key: e.id,+ d: `M ${x1} ${y1} C ${mx} ${y1}, ${mx} ${y2}, ${x2} ${y2}`,+ fill: "none",+ stroke: e.color,+ strokeWidth: "2",+ strokeDasharray: "6 6",+ opacity: "0.8"+ });+ })), BASE_NODES.map(n => n.type === 'agent' ? /*#__PURE__*/React.createElement(AgentNode, {+ key: n.id,+ x: n.x,+ y: n.y,+ status: statusOf(n.id),+ executing: statusOf(n.id) === 'executing',+ selected: selectedId === n.id,+ onClick: () => onSelect(n.id),+ onGearClick: () => onConfigure && onConfigure({+ id: n.id,+ icon: '🤖',+ label: 'AI Agent'+ })+ }) : /*#__PURE__*/React.createElement("div", {+ key: n.id,+ style: {+ position: 'absolute',+ left: n.x,+ top: n.y,+ zIndex: 10+ }+ }, /*#__PURE__*/React.createElement(SquareNode, {+ icon: n.icon,+ label: n.label,+ color: n.color,+ status: n.trigger && statusOf(n.id) === 'idle' ? 'listening' : statusOf(n.id),+ executing: statusOf(n.id) === 'executing',+ trigger: !!n.trigger,+ pulseColor: n.trigger ? 'var(--node-trigger)' : undefined,+ selected: selectedId === n.id,+ showInput: n.showInput !== false,+ showOutput: n.showOutput !== false,+ showToolOutput: !!n.showToolOutput,+ onClick: () => onSelect(n.id),+ onGearClick: () => onConfigure && onConfigure({+ id: n.id,+ icon: n.icon,+ label: n.label+ })+ }))), extraNodes.map(n => /*#__PURE__*/React.createElement("div", {+ key: n.id,+ style: {+ position: 'absolute',+ left: n.x,+ top: n.y,+ zIndex: 10+ }+ }, /*#__PURE__*/React.createElement(SquareNode, {+ icon: n.icon,+ label: n.label,+ color: n.color,+ selected: selectedId === n.id,+ onClick: () => onSelect(n.id),+ onGearClick: () => onConfigure && onConfigure({+ id: n.id,+ icon: n.icon,+ label: n.label+ })+ }))));+}+window.MachinaKit = Object.assign(window.MachinaKit || {}, {+ CanvasView+});+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/CanvasView.jsx", error: String((e && e.message) || e) }); }++// ui_kits/machinaos/ConsoleDock.jsx+try { (() => {+// MachinaOS UI kit — multi-tab console dock (Chat / Console / Terminal).+const DS_CD = window.MachinaOSDesignSystem_2559cf;+const CONSOLE_LINES = [{+ t: '12:01:31',+ tone: 'var(--fg-muted)',+ text: 'Workflow "WhatsApp Assistant" loaded · 6 nodes'+}, {+ t: '12:01:33',+ tone: 'var(--success)',+ text: 'Deployed — listening for incoming messages'+}, {+ t: '12:04:02',+ tone: 'var(--dracula-cyan)',+ text: 'WhatsApp Receive → message from +1 (555) 014-2236'+}, {+ t: '12:04:03',+ tone: 'var(--dracula-purple)',+ text: 'AI Agent → delegating to Web Search Tool'+}, {+ t: '12:04:05',+ tone: 'var(--success)',+ text: 'WhatsApp Send → reply delivered (1.9s)'+}];+function ConsoleDock({+ open,+ onToggle+}) {+ const {+ Tabs,+ Icon,+ Input+ } = DS_CD;+ const [tab, setTab] = React.useState('console');+ return /*#__PURE__*/React.createElement("div", {+ style: {+ borderTop: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center'+ }+ }, /*#__PURE__*/React.createElement(Tabs, {+ tabs: [{+ id: 'chat',+ label: 'Chat'+ }, {+ id: 'console',+ label: 'Console'+ }, {+ id: 'terminal',+ label: 'Terminal'+ }],+ active: tab,+ onChange: id => {+ setTab(id);+ if (!open) onToggle();+ },+ style: {+ flex: 1,+ borderBottom: open ? '1px solid var(--border-default)' : 'none'+ }+ }), /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: onToggle,+ title: open ? 'Collapse console' : 'Expand console',+ style: {+ background: 'none',+ border: 'none',+ color: 'var(--fg-muted)',+ cursor: 'pointer',+ padding: '6px 12px'+ }+ }, /*#__PURE__*/React.createElement(Icon, {+ name: open ? 'ChevronDown' : 'ChevronUp',+ size: 14+ }))), open ? /*#__PURE__*/React.createElement("div", {+ style: {+ height: 150,+ overflowY: 'auto',+ padding: '10px 14px',+ background: 'var(--bg-app)'+ }+ }, tab === 'console' ? /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ gap: 4+ }+ }, CONSOLE_LINES.map((l, i) => /*#__PURE__*/React.createElement("div", {+ key: i,+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 12,+ display: 'flex',+ gap: 10+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--fg-faint)'+ }+ }, "[", l.t, "]"), /*#__PURE__*/React.createElement("span", {+ style: {+ color: l.tone+ }+ }, l.text)))) : tab === 'chat' ? /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ gap: 8,+ height: '100%'+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ alignSelf: 'flex-end',+ maxWidth: 420,+ background: 'color-mix(in srgb, var(--primary) 18%, transparent)',+ border: '1px solid color-mix(in srgb, var(--primary) 35%, transparent)',+ borderRadius: '10px 10px 2px 10px',+ padding: '8px 12px',+ fontSize: 13,+ color: 'var(--fg-default)'+ }+ }, "Summarize my unread emails every weekday at 9 AM."), /*#__PURE__*/React.createElement("div", {+ style: {+ alignSelf: 'flex-start',+ maxWidth: 420,+ background: 'var(--surface-card)',+ border: '1px solid var(--border-default)',+ borderRadius: '10px 10px 10px 2px',+ padding: '8px 12px',+ fontSize: 13,+ color: 'var(--fg-default)'+ }+ }, "Done \u2014 I scheduled a daily digest. Want it on WhatsApp too?"), /*#__PURE__*/React.createElement("div", {+ style: {+ marginTop: 'auto'+ }+ }, /*#__PURE__*/React.createElement(Input, {+ placeholder: "Message your agent..."+ }))) : /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 12,+ color: 'var(--fg-default)'+ }+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--success)'+ }+ }, "$"), " machina start"), /*#__PURE__*/React.createElement("div", {+ style: {+ color: 'var(--fg-muted)',+ marginTop: 4+ }+ }, "MachinaOS running at http://localhost:3000"), /*#__PURE__*/React.createElement("div", {+ style: {+ color: 'var(--fg-muted)'+ }+ }, "Temporal \xB7 Python backend \xB7 WhatsApp service \u2014 all up"))) : null);+}+window.MachinaKit = Object.assign(window.MachinaKit || {}, {+ ConsoleDock+});+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/ConsoleDock.jsx", error: String((e && e.message) || e) }); }++// ui_kits/machinaos/Panels.jsx+try { (() => {+// MachinaOS UI kit — workflow sidebar (280px) + component palette (320px).+const DS_PN = window.MachinaOSDesignSystem_2559cf;+function SidebarPanel({+ workflows,+ currentId,+ onSelect+}) {+ const {+ WorkflowCard,+ Icon+ } = DS_PN;+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ width: 'var(--w-sidebar, 280px)',+ borderRight: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ overflow: 'hidden',+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-app)',+ padding: '18px 16px'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ width: 36,+ height: 36,+ borderRadius: 'var(--radius-md)',+ background: 'color-mix(in srgb, var(--accent) 20%, transparent)',+ color: 'var(--accent)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center'+ }+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "FolderOpen",+ size: 16+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 16,+ fontWeight: 600,+ color: 'var(--fg-default)'+ }+ }, "Workflows"), /*#__PURE__*/React.createElement("div", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 11,+ color: 'var(--fg-muted)'+ }+ }, workflows.length, " saved"))), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ overflowY: 'auto',+ padding: 12,+ display: 'flex',+ flexDirection: 'column',+ gap: 8+ }+ }, workflows.map(wf => /*#__PURE__*/React.createElement(WorkflowCard, {+ key: wf.id,+ name: wf.name,+ nodeCount: wf.nodeCount,+ modified: wf.modified,+ selected: wf.id === currentId,+ onClick: () => onSelect(wf.id)+ }))));+}+const PALETTE_SECTIONS = [{+ id: 'ai',+ label: 'AI',+ icon: '🤖',+ color: 'var(--node-agent)',+ visibility: 'normal',+ items: [{+ icon: '🤖',+ name: 'AI Agent',+ description: 'LangGraph agent with memory and tools'+ }, {+ icon: '🧠',+ name: 'Simple Memory',+ description: 'Conversation memory store'+ }, {+ icon: '📚',+ name: 'Skill',+ description: 'Teach your agent a capability'+ }]+}, {+ id: 'messaging',+ label: 'Messaging',+ icon: '💬',+ color: 'var(--node-trigger)',+ visibility: 'normal',+ items: [{+ icon: '💬',+ name: 'WhatsApp Receive',+ description: 'Trigger on incoming message'+ }, {+ icon: '📤',+ name: 'WhatsApp Send',+ description: 'Send a WhatsApp message'+ }, {+ icon: '✈️',+ name: 'Telegram',+ description: 'Bot send and receive'+ }]+}, {+ id: 'android',+ label: 'Android',+ icon: '📱',+ color: 'var(--node-tool)',+ visibility: 'normal',+ items: [{+ icon: '📱',+ name: 'Android Toolkit',+ description: '16 device services'+ }, {+ icon: '🔋',+ name: 'Battery Monitor',+ description: 'Read battery status'+ }, {+ icon: '🚀',+ name: 'App Launcher',+ description: 'Launch apps on device'+ }]+}, {+ id: 'web',+ label: 'Web',+ icon: '🔍',+ color: 'var(--node-model)',+ visibility: 'normal',+ items: [{+ icon: '🔍',+ name: 'Web Search Tool',+ description: 'DuckDuckGo, Brave, Serper'+ }, {+ icon: '🌐',+ name: 'Browser',+ description: 'Accessibility-tree navigation'+ }]+}, {+ id: 'code',+ label: 'Code',+ icon: '⚙️',+ color: 'var(--node-workflow)',+ visibility: 'dev',+ items: [{+ icon: '🐍',+ name: 'Python',+ description: 'Run sandboxed Python'+ }, {+ icon: '📜',+ name: 'JavaScript',+ description: 'Run sandboxed JS/TS'+ }, {+ icon: '🖥️',+ name: 'Process Manager',+ description: 'Own long-running tasks'+ }]+}];+function PalettePanel({+ mode,+ onDropNode+}) {+ const {+ Input,+ Badge,+ ComponentItem,+ Icon+ } = DS_PN;+ const [query, setQuery] = React.useState('');+ const [collapsed, setCollapsed] = React.useState({});+ const sections = PALETTE_SECTIONS.filter(s => mode === 'dev' || s.visibility === 'normal').map(s => ({+ ...s,+ items: s.items.filter(it => !query.trim() || it.name.toLowerCase().includes(query.toLowerCase()) || it.description.toLowerCase().includes(query.toLowerCase()))+ })).filter(s => s.items.length > 0);+ const total = sections.reduce((acc, s) => acc + s.items.length, 0);+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ width: 'var(--w-palette, 320px)',+ borderLeft: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ overflow: 'hidden',+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-app)',+ padding: 16+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ marginBottom: 12+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 16,+ fontWeight: 600,+ color: 'var(--fg-default)'+ }+ }, "Components"), /*#__PURE__*/React.createElement(Badge, {+ mono: true+ }, total)), /*#__PURE__*/React.createElement(Input, {+ placeholder: "Search...",+ icon: /*#__PURE__*/React.createElement(Icon, {+ name: "Search",+ size: 14+ }),+ value: query,+ onChange: e => setQuery(e.target.value)+ })), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ overflowY: 'auto',+ padding: 12+ }+ }, sections.length === 0 ? /*#__PURE__*/React.createElement("div", {+ style: {+ textAlign: 'center',+ padding: '48px 24px',+ color: 'var(--fg-muted)'+ }+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Search",+ size: 40,+ style: {+ opacity: 0.5+ }+ }), /*#__PURE__*/React.createElement("p", {+ style: {+ fontSize: 13,+ marginTop: 12+ }+ }, "No components found matching \"", query, "\"")) : sections.map(section => /*#__PURE__*/React.createElement("div", {+ key: section.id,+ style: {+ marginBottom: 12+ }+ }, /*#__PURE__*/React.createElement("button", {+ type: "button",+ onClick: () => setCollapsed(c => ({+ ...c,+ [section.id]: !c[section.id]+ })),+ style: {+ display: 'flex',+ width: '100%',+ alignItems: 'center',+ justifyContent: 'space-between',+ background: 'none',+ border: 'none',+ padding: '6px 4px',+ cursor: 'pointer'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 10+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'flex',+ width: 28,+ height: 28,+ alignItems: 'center',+ justifyContent: 'center',+ borderRadius: 'var(--radius-md)',+ fontSize: 14,+ background: `color-mix(in srgb, ${section.color} 8%, transparent)`+ }+ }, section.icon), /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 13,+ fontWeight: 600,+ color: 'var(--fg-default)'+ }+ }, section.label)), /*#__PURE__*/React.createElement(Badge, {+ mono: true+ }, section.items.length)), !collapsed[section.id] ? /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'grid',+ gap: 8,+ paddingTop: 8+ }+ }, section.items.map(it => /*#__PURE__*/React.createElement(ComponentItem, {+ key: it.name,+ icon: it.icon,+ name: it.name,+ description: it.description,+ onClick: () => onDropNode && onDropNode(it, section)+ }))) : null))));+}+window.MachinaKit = Object.assign(window.MachinaKit || {}, {+ SidebarPanel,+ PalettePanel+});+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/Panels.jsx", error: String((e && e.message) || e) }); }++// ui_kits/machinaos/PanelsModals.jsx+try { (() => {+// MachinaOS UI kit — Settings, Node Configuration, and Credentials modals.+// Faithful recreations of SettingsPanel.tsx / ParameterPanel.tsx, composed+// from the DS panel components.+const DS_PM = window.MachinaOSDesignSystem_2559cf;+function SettingsModal({+ open,+ onClose+}) {+ const {+ PanelModal,+ SettingsSection,+ SettingsRow,+ Switch,+ Input,+ Slider,+ Button,+ ActionButton,+ Icon+ } = DS_PM;+ const [ratio, setRatio] = React.useState(80);+ if (!open) return null;+ return /*#__PURE__*/React.createElement(PanelModal, {+ title: "Settings",+ titleIcon: /*#__PURE__*/React.createElement(Icon, {+ name: "Settings",+ size: 14+ }),+ maxWidth: "720px",+ maxHeight: "88%",+ onClose: onClose,+ headerActions: /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ gap: 8+ }+ }, /*#__PURE__*/React.createElement(ActionButton, {+ intent: "config",+ title: "Reset to default settings"+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "RotateCcw",+ size: 12+ }), " Reset"), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "run",+ title: "Save settings"+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Save",+ size: 12+ }), " Save"), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "stop",+ onClick: onClose,+ title: "Close settings"+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "X",+ size: 12+ }), " Close"))+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ overflowY: 'auto',+ padding: 16+ }+ }, /*#__PURE__*/React.createElement(SettingsSection, {+ title: "UI Defaults",+ icon: /*#__PURE__*/React.createElement(Icon, {+ name: "Monitor",+ size: 16+ }),+ tone: "agent"+ }, /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Sidebar Open by Default",+ description: "Show the sidebar panel when the application starts"+ }, /*#__PURE__*/React.createElement(Switch, {+ defaultChecked: true+ })), /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Component Palette Open by Default",+ description: "Show the component palette when the application starts"+ }, /*#__PURE__*/React.createElement(Switch, {+ defaultChecked: true+ })), /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Console Panel Open by Default",+ description: "Show the console/chat panel at the bottom when the application starts"+ }, /*#__PURE__*/React.createElement(Switch, {+ defaultChecked: true+ })), /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Auto-add Skill for Connected Tools",+ description: "When a tool node is connected to an AI agent, automatically enable the matching skill in the agent's Master Skill"+ }, /*#__PURE__*/React.createElement(Switch, {+ defaultChecked: true+ }))), /*#__PURE__*/React.createElement(SettingsSection, {+ title: "Auto-save",+ icon: /*#__PURE__*/React.createElement(Icon, {+ name: "Save",+ size: 16+ }),+ tone: "model"+ }, /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Enable Auto-save",+ description: "Automatically save the workflow at regular intervals"+ }, /*#__PURE__*/React.createElement(Switch, {+ defaultChecked: true+ })), /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Auto-save Interval",+ description: "How often to auto-save (10-300 seconds)"+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ position: 'relative',+ width: 96+ }+ }, /*#__PURE__*/React.createElement(Input, {+ type: "number",+ defaultValue: 30,+ min: 10,+ max: 300,+ step: 5,+ style: {+ paddingRight: 24+ }+ }), /*#__PURE__*/React.createElement("span", {+ style: {+ position: 'absolute',+ top: '50%',+ right: 8,+ transform: 'translateY(-50%)',+ fontSize: 12,+ color: 'var(--fg-muted)',+ pointerEvents: 'none'+ }+ }, "s")))), /*#__PURE__*/React.createElement(SettingsSection, {+ title: "Memory & Compaction",+ icon: /*#__PURE__*/React.createElement(Icon, {+ name: "Brain",+ size: 16+ }),+ tone: "agent"+ }, /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Default Window Size",+ description: "Number of message pairs to keep in short-term memory (1-100)"+ }, /*#__PURE__*/React.createElement(Input, {+ type: "number",+ defaultValue: 100,+ min: 1,+ max: 100,+ style: {+ width: 80+ }+ })), /*#__PURE__*/React.createElement("div", {+ style: {+ borderBottom: '1px solid var(--border-default)',+ margin: '4px 0'+ }+ }), /*#__PURE__*/React.createElement("div", {+ style: {+ padding: '8px 0'+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'baseline',+ justifyContent: 'space-between',+ marginBottom: 8+ }+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 14,+ fontWeight: 500,+ color: 'var(--fg-default)'+ }+ }, "Compaction Ratio"), /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 12,+ color: 'var(--fg-muted)',+ marginTop: 2+ }+ }, "Fraction of context window that triggers memory compaction")), /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 14,+ fontWeight: 600,+ color: 'var(--node-model)',+ minWidth: 42,+ textAlign: 'right'+ }+ }, ratio, "%")), /*#__PURE__*/React.createElement(Slider, {+ min: 5,+ max: 95,+ step: 5,+ value: ratio,+ onChange: setRatio,+ color: "var(--node-model)",+ style: {+ margin: '12px 0 6px'+ }+ }), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'space-between',+ fontSize: 10,+ color: 'var(--fg-muted)'+ }+ }, /*#__PURE__*/React.createElement("span", null, "5%"), /*#__PURE__*/React.createElement("span", null, "50%"), /*#__PURE__*/React.createElement("span", null, "95%")), /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 12,+ color: 'var(--fg-muted)',+ marginTop: 6,+ lineHeight: 1.45+ }+ }, "Lower = compact sooner (saves tokens, loses detail). Higher = compact later (preserves context, uses more tokens)."))), /*#__PURE__*/React.createElement(SettingsSection, {+ title: "Audio",+ icon: /*#__PURE__*/React.createElement(Icon, {+ name: "Volume2",+ size: 16+ }),+ tone: "tool"+ }, /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Sound Effects",+ description: "Play per-theme click / hover / save / error sounds. Each theme ships a different pack (parchment, terminal, marble, ink, clockwork, ...)"+ }, /*#__PURE__*/React.createElement(Switch, {+ defaultChecked: true+ }))), /*#__PURE__*/React.createElement(SettingsSection, {+ title: "Help",+ icon: /*#__PURE__*/React.createElement(Icon, {+ name: "HelpCircle",+ size: 16+ }),+ tone: "model",+ style: {+ marginBottom: 0+ }+ }, /*#__PURE__*/React.createElement(SettingsRow, {+ label: "Replay Welcome Guide",+ description: "Show the onboarding wizard again to review platform features"+ }, /*#__PURE__*/React.createElement(Button, {+ size: "sm"+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "HelpCircle",+ size: 13+ }), " Replay")))));+}+function NodeConfigModal({+ node,+ onClose+}) {+ const {+ PanelModal,+ DataCard,+ CollapsibleSection,+ Select,+ Textarea,+ Slider,+ Checkbox,+ ActionButton,+ EmptyState,+ Icon+ } = DS_PM;+ const [temp, setTemp] = React.useState(70);+ const [ran, setRan] = React.useState(false);+ if (!node) return null;+ const colHead = (icon, text) => /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ padding: '10px 14px',+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ fontSize: 13,+ fontWeight: 600,+ color: 'var(--fg-default)',+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement(Icon, {+ name: icon,+ size: 14+ }), " ", text);+ return /*#__PURE__*/React.createElement(PanelModal, {+ title: "Node Configuration",+ titleIcon: /*#__PURE__*/React.createElement(Icon, {+ name: "Settings",+ size: 14+ }),+ maxWidth: "95%",+ maxHeight: "92%",+ onClose: onClose,+ headerActions: /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 16+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 8,+ fontSize: 15,+ fontWeight: 600,+ color: 'var(--fg-default)'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 18+ }+ }, node.icon), " ", node.label, /*#__PURE__*/React.createElement("span", {+ style: {+ color: 'var(--warning)'+ }+ }, "*")), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ gap: 8+ }+ }, /*#__PURE__*/React.createElement(ActionButton, {+ intent: "run",+ title: "Execute this node",+ onClick: () => setRan(true)+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Play",+ size: 12+ }), " Run"), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "tools",+ title: "Save parameters"+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Save",+ size: 12+ }), " Save"), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "stop",+ onClick: onClose+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "X",+ size: 12+ }), " Cancel")))+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flex: 1,+ minHeight: 0+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 0.7,+ minWidth: 0,+ display: 'flex',+ flexDirection: 'column',+ borderRight: '1px solid var(--border-default)'+ }+ }, colHead('Link2', 'Input Data (1 item)'), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ overflowY: 'auto',+ padding: 12+ }+ }, /*#__PURE__*/React.createElement(DataCard, {+ title: "Item 1",+ badge: "from WhatsApp Receive",+ data: {+ message: "What's on my calendar today?",+ from: '+1 555 014 2236',+ timestamp: '2026-06-12T09:14:02Z'+ }+ })), /*#__PURE__*/React.createElement("div", {+ style: {+ padding: '8px 14px',+ borderTop: '1px solid var(--border-default)',+ fontSize: 11,+ color: 'var(--fg-muted)',+ flexShrink: 0+ }+ }, "Shows actual data received by this node during execution")), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1.6,+ minWidth: 0,+ display: 'flex',+ flexDirection: 'column'+ }+ }, colHead('SlidersHorizontal', 'Parameters'), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ overflowY: 'auto',+ padding: 16,+ display: 'flex',+ flexDirection: 'column',+ gap: 14+ }+ }, /*#__PURE__*/React.createElement("label", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ gap: 6+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 13,+ fontWeight: 500,+ color: 'var(--fg-default)'+ }+ }, "Model"), /*#__PURE__*/React.createElement(Select, {+ defaultValue: "claude-sonnet-4-5",+ options: ['claude-sonnet-4-5', 'gpt-4o', 'llama3.1:8b', 'gemini-2.0-flash']+ })), /*#__PURE__*/React.createElement("label", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ gap: 6+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 13,+ fontWeight: 500,+ color: 'var(--fg-default)'+ }+ }, "System Prompt"), /*#__PURE__*/React.createElement(Textarea, {+ rows: 4,+ defaultValue: "You are a personal assistant with access to my calendar, email, and messages. Answer briefly and take action when asked."+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ justifyContent: 'space-between',+ marginBottom: 6+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 13,+ fontWeight: 500,+ color: 'var(--fg-default)'+ }+ }, "Temperature"), /*#__PURE__*/React.createElement("span", {+ style: {+ fontFamily: 'var(--font-mono)',+ fontSize: 12,+ color: 'var(--node-model)'+ }+ }, (temp / 100).toFixed(2))), /*#__PURE__*/React.createElement(Slider, {+ min: 0,+ max: 100,+ step: 5,+ value: temp,+ onChange: setTemp,+ color: "var(--node-model)"+ })), /*#__PURE__*/React.createElement(CollapsibleSection, {+ title: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {+ name: "Wrench",+ size: 13+ }), " Connected Skills")+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ flexDirection: 'column',+ gap: 8+ }+ }, /*#__PURE__*/React.createElement(Checkbox, {+ defaultChecked: true,+ label: "Web Search \u2014 search the web via DuckDuckGo"+ }), /*#__PURE__*/React.createElement(Checkbox, {+ defaultChecked: true,+ label: "Android Toolkit \u2014 16 device services"+ }), /*#__PURE__*/React.createElement(Checkbox, {+ label: "Code Execution \u2014 sandboxed Python"+ }))))), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 0.7,+ minWidth: 0,+ display: 'flex',+ flexDirection: 'column',+ borderLeft: '1px solid var(--border-default)'+ }+ }, colHead('ArrowRightFromLine', 'Output'), /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ overflowY: 'auto',+ padding: 12+ }+ }, ran ? /*#__PURE__*/React.createElement(DataCard, {+ title: "Execution Result",+ badge: "Success \xB7 1.9s",+ blockLabel: "Response",+ data: {+ response: 'You have 2 events today: standup at 10:00 and a dentist appointment at 15:30.'+ }+ }) : /*#__PURE__*/React.createElement(EmptyState, {+ icon: /*#__PURE__*/React.createElement(Icon, {+ name: "Play",+ size: 26,+ strokeWidth: 1.5+ }),+ title: "No output yet",+ hint: "Run this node to see its output",+ style: {+ padding: '24px 16px'+ }+ })))));+}+function CredentialsModal({+ open,+ onClose+}) {+ const {+ PanelModal,+ ApiKeyInput,+ Avatar,+ ActionButton,+ Icon+ } = DS_PM;+ if (!open) return null;+ const providers = [{+ name: 'Anthropic',+ color: 'var(--dracula-orange)',+ stored: true,+ val: 'sk-ant-api03-xxxxxxxxxxxxxxxx'+ }, {+ name: 'Open AI',+ color: 'var(--dracula-cyan)',+ stored: false,+ val: ''+ }, {+ name: 'Groq',+ color: 'var(--dracula-pink)',+ stored: false,+ val: ''+ }, {+ name: 'Google',+ color: 'var(--dracula-green)',+ stored: true,+ val: 'AIzaSyxxxxxxxxxxxxxxxx'+ }];+ return /*#__PURE__*/React.createElement(PanelModal, {+ title: "API Credentials",+ titleIcon: /*#__PURE__*/React.createElement(Icon, {+ name: "KeyRound",+ size: 14+ }),+ maxWidth: "640px",+ maxHeight: "80%",+ onClose: onClose,+ headerActions: /*#__PURE__*/React.createElement(ActionButton, {+ intent: "stop",+ onClick: onClose+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "X",+ size: 12+ }), " Close")+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ flex: 1,+ overflowY: 'auto',+ padding: 16,+ display: 'flex',+ flexDirection: 'column',+ gap: 14+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ fontSize: 12.5,+ color: 'var(--fg-muted)',+ lineHeight: 1.5+ }+ }, "Bring your own keys \u2014 they're stored locally and never leave your machine."), providers.map(p => /*#__PURE__*/React.createElement("div", {+ key: p.name,+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 10+ }+ }, /*#__PURE__*/React.createElement(Avatar, {+ name: p.name,+ color: p.color,+ square: true+ }), /*#__PURE__*/React.createElement("span", {+ style: {+ width: 86,+ fontSize: 13,+ fontWeight: 500,+ color: 'var(--fg-default)',+ flexShrink: 0+ }+ }, p.name), /*#__PURE__*/React.createElement(ApiKeyInput, {+ defaultValue: p.val,+ isStored: p.stored,+ onSave: () => {},+ onDelete: p.stored ? () => {} : undefined,+ placeholder: "Enter API key..."+ })))));+}+window.MachinaKit = Object.assign(window.MachinaKit || {}, {+ SettingsModal,+ NodeConfigModal,+ CredentialsModal+});+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/PanelsModals.jsx", error: String((e && e.message) || e) }); }++// ui_kits/machinaos/Toolbar.jsx+try { (() => {+// MachinaOS UI kit — top toolbar (48px, bg-panel).+// Composes ActionButton / Button / ModeToggle / Icon from the DS bundle.+const DS_TB = window.MachinaOSDesignSystem_2559cf;+function Divider() {+ return /*#__PURE__*/React.createElement("div", {+ style: {+ width: 1,+ height: 24,+ background: 'var(--border-default)',+ margin: '0 4px',+ flexShrink: 0+ }+ });+}+function Toolbar({+ workflowName,+ sidebarVisible,+ paletteVisible,+ mode,+ dark,+ running,+ saved,+ onToggleSidebar,+ onTogglePalette,+ onModeChange,+ onToggleTheme,+ onRun,+ onSave,+ onSettings,+ onCredentials+}) {+ const {+ ActionButton,+ Icon,+ ModeToggle+ } = DS_TB;+ return /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ height: 'var(--h-toolbar, 48px)',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: 12,+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ padding: '0 12px',+ flexShrink: 0+ }+ }, /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 6+ }+ }, /*#__PURE__*/React.createElement(ActionButton, {+ intent: "save",+ iconOnly: true,+ title: sidebarVisible ? 'Hide sidebar' : 'Show sidebar',+ onClick: onToggleSidebar+ }, /*#__PURE__*/React.createElement(Icon, {+ name: sidebarVisible ? 'PanelLeftClose' : 'PanelLeftOpen',+ size: 14+ })), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "save"+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "FileText",+ size: 13+ }), " File ", /*#__PURE__*/React.createElement(Icon, {+ name: "ChevronDown",+ size: 12+ }))), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 6,+ flex: 1,+ justifyContent: 'center',+ minWidth: 0+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 14,+ fontWeight: 500,+ color: 'var(--fg-default)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis'+ }+ }, workflowName), /*#__PURE__*/React.createElement(Icon, {+ name: "Pencil",+ size: 11,+ style: {+ color: 'var(--fg-muted)'+ }+ })), /*#__PURE__*/React.createElement("div", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 6+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ fontSize: 13,+ fontWeight: 600,+ color: 'var(--node-model)',+ whiteSpace: 'nowrap'+ }+ }, "Mode:"), /*#__PURE__*/React.createElement(ModeToggle, {+ mode: mode,+ onChange: onModeChange+ }), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "config",+ iconOnly: true,+ title: "Settings",+ onClick: onSettings+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Settings",+ size: 14+ })), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "secret",+ iconOnly: true,+ title: "API Credentials",+ onClick: onCredentials+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "KeyRound",+ size: 14+ })), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "tools",+ iconOnly: true,+ title: "Toggle theme",+ onClick: onToggleTheme+ }, /*#__PURE__*/React.createElement(Icon, {+ name: dark ? 'Sun' : 'Moon',+ size: 14+ })), /*#__PURE__*/React.createElement(Divider, null), !running ? /*#__PURE__*/React.createElement(ActionButton, {+ intent: "run",+ title: "Start workflow",+ onClick: onRun+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Play",+ size: 12+ }), " Start") : /*#__PURE__*/React.createElement(ActionButton, {+ intent: "stop",+ title: "Stop workflow",+ onClick: onRun+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Square",+ size: 12+ }), " Stop"), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "save",+ disabled: saved,+ title: saved ? 'No changes to save' : 'Save changes',+ onClick: onSave+ }, /*#__PURE__*/React.createElement(Icon, {+ name: "Save",+ size: 12+ }), " Save"), /*#__PURE__*/React.createElement("span", {+ style: {+ display: 'flex',+ alignItems: 'center',+ gap: 6,+ padding: '4px 10px',+ fontFamily: 'var(--font-mono)',+ fontSize: 12,+ color: saved ? 'var(--success)' : 'var(--warning)'+ }+ }, /*#__PURE__*/React.createElement("span", {+ style: {+ width: 8,+ height: 8,+ borderRadius: '50%',+ background: saved ? 'var(--success)' : 'var(--warning)'+ }+ }), saved ? 'Saved' : 'Modified'), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(ActionButton, {+ intent: "tools",+ iconOnly: true,+ title: paletteVisible ? 'Hide components' : 'Show components',+ onClick: onTogglePalette+ }, /*#__PURE__*/React.createElement(Icon, {+ name: paletteVisible ? 'PanelRightClose' : 'PanelRightOpen',+ size: 14+ }))));+}+window.MachinaKit = Object.assign(window.MachinaKit || {}, {+ Toolbar+});+})(); } catch (e) { __ds_ns.__errors.push({ path: "ui_kits/machinaos/Toolbar.jsx", error: String((e && e.message) || e) }); }++__ds_ns.ActionButton = __ds_scope.ActionButton;++__ds_ns.Button = __ds_scope.Button;++__ds_ns.ComponentItem = __ds_scope.ComponentItem;++__ds_ns.ModeToggle = __ds_scope.ModeToggle;++__ds_ns.SquareNode = __ds_scope.SquareNode;++__ds_ns.StatusBar = __ds_scope.StatusBar;++__ds_ns.WorkflowCard = __ds_scope.WorkflowCard;++__ds_ns.Avatar = __ds_scope.Avatar;++__ds_ns.Badge = __ds_scope.Badge;++__ds_ns.Card = __ds_scope.Card;++__ds_ns.ChatBubble = __ds_scope.ChatBubble;++__ds_ns.Kbd = __ds_scope.Kbd;++__ds_ns.LogLine = __ds_scope.LogLine;++__ds_ns.Tabs = __ds_scope.Tabs;++__ds_ns.EmptyState = __ds_scope.EmptyState;++__ds_ns.Modal = __ds_scope.Modal;++__ds_ns.Progress = __ds_scope.Progress;++__ds_ns.Spinner = __ds_scope.Spinner;++__ds_ns.Toast = __ds_scope.Toast;++__ds_ns.Tooltip = __ds_scope.Tooltip;++__ds_ns.ApiKeyInput = __ds_scope.ApiKeyInput;++__ds_ns.Checkbox = __ds_scope.Checkbox;++__ds_ns.Input = __ds_scope.Input;++__ds_ns.RadioGroup = __ds_scope.RadioGroup;++__ds_ns.Select = __ds_scope.Select;++__ds_ns.Slider = __ds_scope.Slider;++__ds_ns.Switch = __ds_scope.Switch;++__ds_ns.Textarea = __ds_scope.Textarea;++__ds_ns.Icon = __ds_scope.Icon;++__ds_ns.CollapsibleSection = __ds_scope.CollapsibleSection;++__ds_ns.DataCard = __ds_scope.DataCard;++__ds_ns.PanelModal = __ds_scope.PanelModal;++__ds_ns.SettingsSection = __ds_scope.SettingsSection;++__ds_ns.SettingsRow = __ds_scope.SettingsRow;++})();diff --git a/docs-internal/design-system/_ds_manifest.json b/docs-internal/design-system/_ds_manifest.jsonnew file mode 100644index 00000000..9caa05e9--- /dev/null+++ b/docs-internal/design-system/_ds_manifest.json@@ -0,0 +1 @@+{"namespace":"MachinaOSDesignSystem_2559cf","components":[{"name":"ActionButton","sourcePath":"components/buttons/ActionButton.jsx"},{"name":"Button","sourcePath":"components/buttons/Button.jsx"},{"name":"ComponentItem","sourcePath":"components/canvas/ComponentItem.jsx"},{"name":"ModeToggle","sourcePath":"components/canvas/ModeToggle.jsx"},{"name":"SquareNode","sourcePath":"components/canvas/SquareNode.jsx"},{"name":"StatusBar","sourcePath":"components/canvas/StatusBar.jsx"},{"name":"WorkflowCard","sourcePath":"components/canvas/WorkflowCard.jsx"},{"name":"Avatar","sourcePath":"components/display/Avatar.jsx"},{"name":"Badge","sourcePath":"components/display/Badge.jsx"},{"name":"Card","sourcePath":"components/display/Card.jsx"},{"name":"ChatBubble","sourcePath":"components/display/ChatBubble.jsx"},{"name":"Kbd","sourcePath":"components/display/Kbd.jsx"},{"name":"LogLine","sourcePath":"components/display/LogLine.jsx"},{"name":"Tabs","sourcePath":"components/display/Tabs.jsx"},{"name":"EmptyState","sourcePath":"components/feedback/EmptyState.jsx"},{"name":"Modal","sourcePath":"components/feedback/Modal.jsx"},{"name":"Progress","sourcePath":"components/feedback/Progress.jsx"},{"name":"Spinner","sourcePath":"components/feedback/Spinner.jsx"},{"name":"Toast","sourcePath":"components/feedback/Toast.jsx"},{"name":"Tooltip","sourcePath":"components/feedback/Tooltip.jsx"},{"name":"ApiKeyInput","sourcePath":"components/forms/ApiKeyInput.jsx"},{"name":"Checkbox","sourcePath":"components/forms/Checkbox.jsx"},{"name":"Input","sourcePath":"components/forms/Input.jsx"},{"name":"RadioGroup","sourcePath":"components/forms/RadioGroup.jsx"},{"name":"Select","sourcePath":"components/forms/Select.jsx"},{"name":"Slider","sourcePath":"components/forms/Slider.jsx"},{"name":"Switch","sourcePath":"components/forms/Switch.jsx"},{"name":"Textarea","sourcePath":"components/forms/Textarea.jsx"},{"name":"Icon","sourcePath":"components/icons/Icon.jsx"},{"name":"CollapsibleSection","sourcePath":"components/panels/CollapsibleSection.jsx"},{"name":"DataCard","sourcePath":"components/panels/DataCard.jsx"},{"name":"PanelModal","sourcePath":"components/panels/PanelModal.jsx"},{"name":"SettingsSection","sourcePath":"components/panels/SettingsSection.jsx"},{"name":"SettingsRow","sourcePath":"components/panels/SettingsSection.jsx"}],"startingPoints":[{"name":"SquareNode","path":"components/canvas/SquareNode.jsx","previewPath":"components/canvas/canvas.card.html","kind":"component","section":"Canvas","subtitle":"Workflow canvas node with pip, gear and handles","viewport":"700x220"},{"name":"ActionButton","path":"components/buttons/ActionButton.jsx","previewPath":"components/buttons/buttons.card.html","kind":"component","section":"Components","subtitle":"Soft tinted toolbar button with six semantic intents","viewport":"700x180"}],"cards":[{"path":"guidelines/animations-all-themes.html","group":"Brand","viewport":"1280x860","subtitle":"Live motion per theme: executing pulse, easing character, pip blink, hover lift, ambient CRT/scanline","name":"Animations — All Themes"},{"path":"guidelines/canvas-pattern.html","group":"Brand","viewport":"700x190","subtitle":"Canvas texture — dot grid + dashed accent edges between node handles","name":"Canvas Pattern"},{"path":"guidelines/panels-all-themes.html","group":"Brand","viewport":"1320x900","subtitle":"Every panel — toolbar, sidebar, palette, console, status bar, Node Config, Settings, Credentials — in all 12 themes","name":"Panels × Themes"},{"path":"guidelines/product-reference.html","group":"Brand","viewport":"700x300","subtitle":"Real product — dark canvas, neon nodes, WhatsApp automation","name":"Product Reference"},{"path":"guidelines/theme-comparison-full.html","group":"Brand","viewport":"1320x880","subtitle":"Full app screen + component strip in all 12 themes","name":"Theme Comparison — Full"},{"path":"guidelines/theme-comparison.html","group":"Brand","viewport":"1280x900","subtitle":"Same app screen rendered in all 12 themes — single file","name":"Theme Comparison"},{"path":"guidelines/theme-matrix.html","group":"Brand","viewport":"1100x720","subtitle":"All 12 product themes — surfaces, accents, type, radii, motion","name":"Theme Matrix"},{"path":"guidelines/wordmark.html","group":"Brand","viewport":"700x150","subtitle":"Stand-in wordmark — no official logo in repo (see readme caveats)","name":"Wordmark"},{"path":"guidelines/action-intents.html","group":"Colors","viewport":"700x150","subtitle":"Six toolbar intents — soft tint fill, tinted border, accent text","name":"Action Intents"},{"path":"guidelines/dracula-accents.html","group":"Colors","viewport":"700x150","subtitle":"Vibrant accents — identical in light & dark, used as soft tints","name":"Dracula Accents"},{"path":"guidelines/node-roles.html","group":"Colors","viewport":"700x170","subtitle":"Canvas node role colors — 8% soft fill, 30% border, full-strength accents","name":"Node Roles"},{"path":"guidelines/semantic-status.html","group":"Colors","viewport":"700x150","subtitle":"Status colors — Solarized in dark, deeper hues in light","name":"Semantic Status"},{"path":"guidelines/surfaces-dark.html","group":"Colors","viewport":"700x150","subtitle":"Solarized dark surfaces — the signature look","name":"Surfaces — Dark"},{"path":"guidelines/surfaces-light.html","group":"Colors","viewport":"700x150","subtitle":"Light structural surfaces & foreground","name":"Surfaces — Light"},{"path":"components/buttons/buttons.card.html","group":"Components","viewport":"700x240","subtitle":"ActionButton intents + Button variants","name":"Buttons"},{"path":"components/canvas/canvas.card.html","group":"Components","viewport":"700x330","subtitle":"SquareNode states, ComponentItem, WorkflowCard, ModeToggle, StatusBar","name":"Canvas"},{"path":"components/display/display.card.html","group":"Components","viewport":"700x430","subtitle":"Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble","name":"Display"},{"path":"components/feedback/feedback.card.html","group":"Components","viewport":"700x420","subtitle":"Modal, Toast, Tooltip, Spinner, Progress, EmptyState","name":"Feedback"},{"path":"components/forms/forms.card.html","group":"Components","viewport":"700x300","subtitle":"Input, Select, RadioGroup, Textarea, Switch, Checkbox","name":"Forms"},{"path":"components/icons/icons.card.html","group":"Components","viewport":"700x170","subtitle":"Lucide via Icon component — stroke 2, currentColor","name":"Icons"},{"path":"components/panels/panels.card.html","group":"Components","viewport":"700x620","subtitle":"PanelModal, SettingsSection, DataCard, CollapsibleSection, ApiKeyInput, Slider","name":"Panels"},{"path":"ui_kits/machinaos/index.html","group":"MachinaOS App","viewport":"1440x900","subtitle":"Interactive recreation — toolbar, sidebar, canvas, palette, console, status bar","name":"Workflow Canvas"},{"path":"guidelines/motion.html","group":"Spacing","viewport":"700x150","subtitle":"90 / 180 / 320ms · one smooth ease, one springy emphasis","name":"Motion"},{"path":"guidelines/radii.html","group":"Spacing","viewport":"700x150","subtitle":"Controls 8px · chips 4–6px · nodes 10–12px · pills 999px","name":"Radii"},{"path":"guidelines/shadows-glow.html","group":"Spacing","viewport":"700x170","subtitle":"Quiet chrome shadows; glow is reserved for meaning","name":"Shadows & Glow"},{"path":"guidelines/space-scale.html","group":"Spacing","viewport":"700x150","subtitle":"4 / 8 / 12 / 16 / 24 / 32 / 48 / 64","name":"Space Scale"},{"path":"guidelines/mono-usage.html","group":"Type","viewport":"700x150","subtitle":"Mono is the machine voice — counts, state, timestamps","name":"Mono Usage"},{"path":"guidelines/type-scale.html","group":"Type","viewport":"700x280","subtitle":"14px base — dense desktop scale","name":"Type Scale"},{"path":"guidelines/typeface-geist.html","group":"Type","viewport":"700x170","subtitle":"Geist — one family for display & body","name":"Typeface — Geist"}],"templates":[],"globalCssPaths":["tokens/fonts.css","tokens/colors.css","tokens/typography.css","tokens/spacing.css","tokens/base.css","tokens/motion.css","tokens/animations.css","styles.css"],"tokens":[{"name":"--bg-app","value":"#f5f7fa","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-panel","value":"#fafbfc","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-canvas","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-elevated","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-input","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-hover","value":"rgba(0, 0, 0, 0.04)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-active","value":"rgba(0, 0, 0, 0.06)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-overlay","value":"rgba(0, 0, 0, 0.45)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--surface-card","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-default","value":"#1a1d21","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-muted","value":"#4b5563","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-faint","value":"#9ca3af","kind":"color","definedIn":"tokens/colors.css"},{"name":"--fg-on-accent","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--text-body","value":"var(--fg-default)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--text-muted","value":"var(--fg-muted)","kind":"font","definedIn":"tokens/colors.css"},{"name":"--border-default","value":"#d1d5db","kind":"color","definedIn":"tokens/colors.css"},{"name":"--border-strong","value":"#9ca3af","kind":"color","definedIn":"tokens/colors.css"},{"name":"--border-focus","value":"#3b82f6","kind":"color","definedIn":"tokens/colors.css"},{"name":"--primary","value":"#2563eb","kind":"color","definedIn":"tokens/colors.css"},{"name":"--primary-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--accent","value":"#7c3aed","kind":"color","definedIn":"tokens/colors.css"},{"name":"--accent-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--destructive","value":"#dc2626","kind":"color","definedIn":"tokens/colors.css"},{"name":"--destructive-foreground","value":"#ffffff","kind":"color","definedIn":"tokens/colors.css"},{"name":"--success","value":"#059669","kind":"color","definedIn":"tokens/colors.css"},{"name":"--warning","value":"#d97706","kind":"color","definedIn":"tokens/colors.css"},{"name":"--info","value":"#0891b2","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-green","value":"#50fa7b","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-purple","value":"#bd93f9","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-pink","value":"#ff79c6","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-cyan","value":"#8be9fd","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-red","value":"#ff5555","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-orange","value":"#ffb86c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-yellow","value":"#f1fa8c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-selection","value":"#44475a","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-current-line","value":"#383a4a","kind":"color","definedIn":"tokens/colors.css"},{"name":"--dracula-comment","value":"#6272a4","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-soft","value":"color-mix(in srgb, var(--dracula-green) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-hover","value":"color-mix(in srgb, var(--dracula-green) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-border","value":"color-mix(in srgb, var(--dracula-green) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-soft","value":"color-mix(in srgb, var(--dracula-pink) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-hover","value":"color-mix(in srgb, var(--dracula-pink) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-border","value":"color-mix(in srgb, var(--dracula-pink) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-soft","value":"color-mix(in srgb, var(--dracula-cyan) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-hover","value":"color-mix(in srgb, var(--dracula-cyan) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-border","value":"color-mix(in srgb, var(--dracula-cyan) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-soft","value":"color-mix(in srgb, var(--dracula-orange) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-hover","value":"color-mix(in srgb, var(--dracula-orange) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-border","value":"color-mix(in srgb, var(--dracula-orange) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret","value":"var(--dracula-yellow)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-soft","value":"color-mix(in srgb, var(--dracula-yellow) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-hover","value":"color-mix(in srgb, var(--dracula-yellow) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-border","value":"color-mix(in srgb, var(--dracula-yellow) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-soft","value":"color-mix(in srgb, var(--dracula-purple) 15%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-hover","value":"color-mix(in srgb, var(--dracula-purple) 25%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-border","value":"color-mix(in srgb, var(--dracula-purple) 60%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-run-ink","value":"#15803d","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-stop-ink","value":"#be185d","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-save-ink","value":"#0e7490","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-config-ink","value":"#c2410c","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-secret-ink","value":"#a16207","kind":"color","definedIn":"tokens/colors.css"},{"name":"--action-tools-ink","value":"#7c3aed","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent-soft","value":"color-mix(in srgb, var(--dracula-purple) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-agent-border","value":"color-mix(in srgb, var(--dracula-purple) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model-soft","value":"color-mix(in srgb, var(--dracula-cyan) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-model-border","value":"color-mix(in srgb, var(--dracula-cyan) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool-soft","value":"color-mix(in srgb, var(--dracula-green) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-tool-border","value":"color-mix(in srgb, var(--dracula-green) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger-soft","value":"color-mix(in srgb, var(--dracula-pink) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-trigger-border","value":"color-mix(in srgb, var(--dracula-pink) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow-soft","value":"color-mix(in srgb, var(--dracula-orange) 8%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-workflow-border","value":"color-mix(in srgb, var(--dracula-orange) 30%, transparent)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--node-pulse-color","value":"var(--info)","kind":"color","definedIn":"tokens/colors.css"},{"name":"--scrollbar-track","value":"#eef1f5","kind":"color","definedIn":"tokens/colors.css"},{"name":"--scrollbar-thumb","value":"#d1d5db","kind":"color","definedIn":"tokens/colors.css"},{"name":"--bg-app","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-panel","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-canvas","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-elevated","value":"#0d1f2d","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-input","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-hover","value":"rgba(248, 248, 242, 0.06)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-active","value":"rgba(189, 147, 249, 0.18)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--bg-overlay","value":"rgba(0, 0, 0, 0.7)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--surface-card","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-default","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-muted","value":"#94a8d6","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-faint","value":"#6272a4","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--fg-on-accent","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-default","value":"#586e75","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-strong","value":"#93a1a1","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--border-focus","value":"#268bd2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--primary","value":"#268bd2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--primary-foreground","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--accent","value":"#8be9fd","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--accent-foreground","value":"#002b36","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--destructive","value":"#dc322f","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--destructive-foreground","value":"#f8f8f2","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--success","value":"#859900","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--warning","value":"#b58900","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--info","value":"#2aa198","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-run-ink","value":"var(--dracula-green)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-stop-ink","value":"var(--dracula-pink)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-save-ink","value":"var(--dracula-cyan)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-config-ink","value":"var(--dracula-orange)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-secret-ink","value":"var(--dracula-yellow)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--action-tools-ink","value":"var(--dracula-purple)","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--scrollbar-track","value":"#073642","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--scrollbar-thumb","value":"#586e75","kind":"color","definedIn":"tokens/colors.css","scope":".dark"},{"name":"--font-sans","value":"'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-display","value":"var(--font-sans)","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-body","value":"var(--font-sans)","kind":"font","definedIn":"tokens/typography.css"},{"name":"--font-mono","value":"'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-scale-base","value":"14px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-2xs","value":"11px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-xs","value":"12px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-sm","value":"13px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-base","value":"14px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-md","value":"16px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-lg","value":"18px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-xl","value":"24px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-2xl","value":"32px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--text-3xl","value":"44px","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-regular","value":"400","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-medium","value":"500","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-semibold","value":"600","kind":"font","definedIn":"tokens/typography.css"},{"name":"--weight-bold","value":"700","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-uppercase","value":"none","kind":"font","definedIn":"tokens/typography.css"},{"name":"--type-tracking-display","value":"0","kind":"font","definedIn":"tokens/typography.css"},{"name":"--tracking-label","value":"0.04em","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-tight","value":"1.2","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-normal","value":"1.5","kind":"font","definedIn":"tokens/typography.css"},{"name":"--leading-relaxed","value":"1.65","kind":"font","definedIn":"tokens/typography.css"},{"name":"--space-1","value":"4px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-2","value":"8px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-3","value":"12px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-4","value":"16px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-5","value":"24px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-6","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-7","value":"48px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--space-8","value":"64px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--radius-sm","value":"4px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-md","value":"6px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-lg","value":"8px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-xl","value":"12px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-node","value":"10px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--radius-pill","value":"999px","kind":"radius","definedIn":"tokens/spacing.css"},{"name":"--h-toolbar","value":"48px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--h-statusbar","value":"24px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--h-control","value":"32px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--w-sidebar","value":"280px","kind":"spacing","definedIn":"tokens/spacing.css"},{"name":"--w-palette","value":"320px","kind":"color","definedIn":"tokens/spacing.css"},{"name":"--shadow-card","value":"0 2px 8px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-card-hover","value":"0 4px 14px rgb(0 0 0 / 0.10)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-modal","value":"0 12px 40px rgb(0 0 0 / 0.18)","kind":"shadow","definedIn":"tokens/spacing.css"},{"name":"--shadow-card","value":"0 4px 12px rgb(0 0 0 / 0.3)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--shadow-card-hover","value":"0 6px 18px rgb(0 0 0 / 0.4)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--shadow-modal","value":"0 16px 48px rgb(0 0 0 / 0.55)","kind":"shadow","definedIn":"tokens/spacing.css","scope":".dark"},{"name":"--dur-fast","value":"90ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--dur-default","value":"180ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--dur-slow","value":"320ms","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.2, 0.7, 0.3, 1)","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, -0.05, 0.3, 1.4)","kind":"other","definedIn":"tokens/motion.css","annotation":"other"},{"name":"--motion-style","value":"smooth","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-keyframe","value":"node-pulse","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-duration","value":"1.4s","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--pulse-timing","value":"ease-in-out","kind":"other","definedIn":"tokens/animations.css","annotation":"other"},{"name":"--dur-fast","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-default","value":"280ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-slow","value":"520ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.2, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--motion-style","value":"organic","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"ren-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-duration","value":"2s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--pulse-timing","value":"ease-in-out","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"renaissance\"]","annotation":"other"},{"name":"--dur-fast","value":"120ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-default","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-slow","value":"460ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.3, 0.7, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, -0.05, 0.3, 1.4)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--motion-style","value":"smooth","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"greek\"]","annotation":"other"},{"name":"--dur-fast","value":"90ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-default","value":"220ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-slow","value":"520ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.2, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--motion-style","value":"organic","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"edo\"]","annotation":"other"},{"name":"--dur-fast","value":"110ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-default","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-slow","value":"480ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.5, 0, 0.4, 1.1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.7, -0.1, 0.3, 1.2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--motion-style","value":"mechanical","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"steampunk\"]","annotation":"other"},{"name":"--dur-fast","value":"100ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-default","value":"200ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-slow","value":"380ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.34, 1.6, 0.5, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.34, 1.6, 0.5, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--motion-style","value":"bouncy","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"atomic\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-default","value":"120ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-slow","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--ease-default","value":"steps(4, end)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--ease-emphasis","value":"steps(8, end)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--motion-style","value":"glitch","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"cyber-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-duration","value":"1.6s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--pulse-timing","value":"steps(2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"cyber\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-default","value":"180ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-slow","value":"320ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.6, 0, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.6, 0, 0.4, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--motion-style","value":"jittery","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"wasteland\"]","annotation":"other"},{"name":"--dur-fast","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-default","value":"320ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-slow","value":"680ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--motion-style","value":"drift","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--pulse-duration","value":"2.2s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"rot\"]","annotation":"other"},{"name":"--dur-fast","value":"100ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-default","value":"220ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-slow","value":"460ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--ease-default","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--ease-emphasis","value":"cubic-bezier(0.4, 0, 0.6, 1)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--motion-style","value":"stiff","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"plague\"]","annotation":"other"},{"name":"--dur-fast","value":"60ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--dur-default","value":"140ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--dur-slow","value":"240ms","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--ease-default","value":"linear","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--ease-emphasis","value":"linear","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--motion-style","value":"scanline","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-keyframe","value":"surv-pulse-exec","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-duration","value":"1s","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"},{"name":"--pulse-timing","value":"steps(2)","kind":"other","definedIn":"tokens/animations.css","scope":"[data-theme=\"surveillance\"]","annotation":"other"}],"themes":[{"selector":".dark","label":"Dark"},{"selector":"[data-theme=\"renaissance\"]","label":"Renaissance"},{"selector":"[data-theme=\"greek\"]","label":"Greek"},{"selector":"[data-theme=\"edo\"]","label":"Edo"},{"selector":"[data-theme=\"steampunk\"]","label":"Steampunk"},{"selector":"[data-theme=\"atomic\"]","label":"Atomic"},{"selector":"[data-theme=\"cyber\"]","label":"Cyber"},{"selector":"[data-theme=\"wasteland\"]","label":"Wasteland"},{"selector":"[data-theme=\"rot\"]","label":"Rot"},{"selector":"[data-theme=\"plague\"]","label":"Plague"},{"selector":"[data-theme=\"surveillance\"]","label":"Surveillance"}],"fonts":[],"brandFonts":[{"family":"Geist","status":"ok","tokens":["--font-sans"],"path":"tokens/typography.css"},{"family":"JetBrains Mono","status":"ok","tokens":["--font-mono"],"path":"tokens/typography.css"}],"source":"spa"}\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/ai-agent-routing.svg b/docs-internal/design-system/assets/diagrams/ai-agent-routing.svgnew file mode 100644index 00000000..9f97ea35--- /dev/null+++ b/docs-internal/design-system/assets/diagrams/ai-agent-routing.svg@@ -0,0 +1,119 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 900" width="100%" preserveAspectRatio="xMidYMid meet" font-family="ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace">+ <defs>+ <marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#f8f8f2"></path>+ </marker>++ </defs>++ <rect class="bg" width="1400" height="900"></rect>+++ <text x="700" y="35" class="title" text-anchor="middle" font-size="20">AI Service: Native SDK vs LangChain Routing</text>+ <text x="700" y="58" class="caption" text-anchor="middle">server/services/ai.py + server/services/llm/</text>+++ <rect class="entry" x="540" y="85" width="320" height="70" rx="8"></rect>+ <text x="700" y="115" class="big" text-anchor="middle">AIService</text>+ <text x="700" y="138" class="sub" text-anchor="middle">server/services/ai.py (~4500 lines)</text>+++ <path class="conn" d="M 700 155 L 700 185 L 300 185 L 300 215" marker-end="url(#arrow)"></path>+ <path class="conn" d="M 700 155 L 700 185 L 1100 185 L 1100 215" marker-end="url(#arrow)"></path>+++ <text x="300" y="205" class="col-header" text-anchor="middle">Method 1: Direct Chat</text>+ <text x="1100" y="205" class="col-header" text-anchor="middle">Method 2: Agent Tool-Calling</text>+++ <rect class="method" x="120" y="215" width="360" height="75" rx="8"></rect>+ <text x="300" y="243" class="big" text-anchor="middle">execute_chat(parameters)</text>+ <text x="300" y="265" class="sub" text-anchor="middle">Used by chat model nodes</text>+ <text x="300" y="283" class="caption" text-anchor="middle">openaiChatModel, anthropicChatModel, ...</text>+++ <polygon class="decision" points="300,310 470,385 300,460 130,385"></polygon>+ <text x="300" y="375" class="big" text-anchor="middle">is_native_provider</text>+ <text x="300" y="400" class="big" text-anchor="middle">(provider)?</text>+++ <path class="conn" d="M 300 290 L 300 310" marker-end="url(#arrow)"></path>+++ <path class="conn-native" d="M 470 385 L 530 385 L 530 495" marker-end="url(#arrow)"></path>+ <text x="505" y="375" class="branch-label">yes</text>+++ <path class="conn-lc" d="M 130 385 L 70 385 L 70 495" marker-end="url(#arrow)"></path>+ <text x="95" y="375" class="branch-label">no</text>+++ <rect class="native" x="340" y="495" width="380" height="150" rx="8"></rect>+ <text x="530" y="522" class="title" text-anchor="middle" fill="#8be9fd">Native SDK Path</text>+ <text x="530" y="545" class="sub" text-anchor="middle">create_provider(name, api_key)</text>+ <text x="530" y="563" class="sub" text-anchor="middle">lazy-imports one of:</text>+ <text x="530" y="582" class="path" text-anchor="middle">AnthropicProvider / OpenAIProvider</text>+ <text x="530" y="600" class="path" text-anchor="middle">GeminiProvider / OpenRouterProvider</text>+ <text x="530" y="622" class="sub" text-anchor="middle">OpenAI-compatible (xAI, DeepSeek,</text>+ <text x="530" y="638" class="sub" text-anchor="middle">Kimi, Mistral): shared OpenAIProvider + base_url</text>+++ <rect class="langchain" x="10" y="495" width="260" height="150" rx="8"></rect>+ <text x="140" y="522" class="title" text-anchor="middle" fill="#bd93f9">LangChain Fallback</text>+ <text x="140" y="545" class="sub" text-anchor="middle">create_model()</text>+ <text x="140" y="565" class="path-lc" text-anchor="middle">ChatGroq</text>+ <text x="140" y="583" class="path-lc" text-anchor="middle">ChatCerebras</text>+ <text x="140" y="608" class="sub" text-anchor="middle">(providers without native</text>+ <text x="140" y="624" class="sub" text-anchor="middle">SDK implementation yet)</text>+++ <path class="conn-native" d="M 530 645 L 530 690" marker-end="url(#arrow)"></path>+ <path class="conn-lc" d="M 140 645 L 140 680 L 340 680 L 340 690" marker-end="url(#arrow)"></path>+++ <rect class="method" x="920" y="215" width="360" height="75" rx="8"></rect>+ <text x="1100" y="243" class="big" text-anchor="middle">execute_agent(parameters)</text>+ <text x="1100" y="263" class="sub" text-anchor="middle">execute_chat_agent(parameters)</text>+ <text x="1100" y="283" class="caption" text-anchor="middle">aiAgent, chatAgent, 11 specialized + 2 team leads</text>+++ <path class="conn-lc" d="M 1100 290 L 1100 330" marker-end="url(#arrow)"></path>+++ <rect class="langchain" x="920" y="330" width="360" height="130" rx="8"></rect>+ <text x="1100" y="358" class="title" text-anchor="middle" fill="#bd93f9">LangChain chat model</text>+ <text x="1100" y="382" class="sub" text-anchor="middle">create_model() -> LangChain class</text>+ <text x="1100" y="402" class="path-lc" text-anchor="middle">ChatOpenAI / ChatAnthropic</text>+ <text x="1100" y="420" class="path-lc" text-anchor="middle">ChatGoogleGenerativeAI / ChatGroq / ...</text>+ <text x="1100" y="442" class="sub" text-anchor="middle">.bind_tools([StructuredTool, ...])</text>+++ <path class="conn-lc" d="M 1100 460 L 1100 500" marker-end="url(#arrow)"></path>+++ <rect class="langchain" x="900" y="500" width="400" height="155" rx="8"></rect>+ <text x="1100" y="528" class="title" text-anchor="middle" fill="#bd93f9">_run_agent_loop (plain async)</text>+ <text x="1100" y="552" class="sub" text-anchor="middle">for iteration in range(max): ainvoke -> tool_calls?</text>+ <text x="1100" y="572" class="sub" text-anchor="middle">if tools: dispatch each, append ToolMessage, loop</text>+ <text x="1100" y="592" class="sub" text-anchor="middle">else: return final response</text>+ <text x="1100" y="615" class="caption" text-anchor="middle">Max iterations guard against tool loops</text>+ <text x="1100" y="635" class="caption" text-anchor="middle">Agent Teams: delegate_to_<type> tools auto-injected</text>+++ <rect class="shared" x="340" y="690" width="720" height="85" rx="8"></rect>+ <text x="700" y="718" class="title" text-anchor="middle" fill="#50fa7b">Normalized LLMResponse</text>+ <text x="700" y="740" class="sub" text-anchor="middle">content, thinking, tool_calls, usage (tokens), model, finish_reason</text>+ <text x="700" y="758" class="caption" text-anchor="middle">services/llm/protocol.py -- dataclass shared across all providers</text>+++ <path class="conn-lc" d="M 1100 655 L 1100 685 L 720 685 L 720 690" marker-end="url(#arrow)"></path>+++ <rect class="shared" x="200" y="800" width="1000" height="80" rx="8"></rect>+ <text x="700" y="828" class="title" text-anchor="middle" fill="#50fa7b">Shared Infrastructure</text>+ <text x="700" y="850" class="sub" text-anchor="middle">compaction.py: token tracking, cost calculation, model-aware compaction (50% of context window)</text>+ <text x="700" y="868" class="sub" text-anchor="middle">pricing.py: USD cost per provider from config/pricing.json | model_registry.py: context length lookup</text>+++ <path class="conn" d="M 700 775 L 700 800" marker-end="url(#arrow)"></path>+</svg>\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/default-workflows.svg b/docs-internal/design-system/assets/diagrams/default-workflows.svgnew file mode 100644index 00000000..8e78c013--- /dev/null+++ b/docs-internal/design-system/assets/diagrams/default-workflows.svg@@ -0,0 +1,274 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1100 1020" width="100%" preserveAspectRatio="xMidYMid meet" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif">+ <defs>+ <marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#6b7280"></path>+ </marker>+ <marker id="arr-purple" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#8b5cf6"></path>+ </marker>+ <marker id="arr-cyan" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#06b6d4"></path>+ </marker>+ <marker id="arr-green" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#10b981"></path>+ </marker>++ </defs>++ <rect width="1100" height="1020" class="bg"></rect>+++ <text x="550" y="40" text-anchor="middle" class="header-text">Three Workflows You Get on Day One</text>+ <text x="550" y="62" text-anchor="middle" class="header-sub">Open MachinaOS for the first time and these are already loaded. Each shows a different pattern you can copy.</text>+++++ <rect x="30" y="90" width="1040" height="240" class="row-card row-1"></rect>+ <circle cx="58" cy="118" r="14" class="num-bg-1"></circle>+ <text x="58" y="123" text-anchor="middle" class="num-txt">1</text>+ <text x="84" y="118" class="row-title">AI Assistant</text>+ <text x="84" y="135" class="row-tag">16 nodes · one smart agent with a full toolbox</text>+++ <rect x="50" y="180" width="120" height="38" class="node-box node-trigger" rx="8"></rect>+ <text x="110" y="198" text-anchor="middle" class="node-txt">💬 Chat</text>+ <text x="110" y="212" text-anchor="middle" class="node-sub">in-app panel</text>++ <rect x="50" y="232" width="120" height="38" class="node-box node-trigger" rx="8"></rect>+ <text x="110" y="250" text-anchor="middle" class="node-txt">📱 Telegram</text>+ <text x="110" y="264" text-anchor="middle" class="node-sub">incoming message</text>+++ <rect x="280" y="195" width="160" height="60" class="node-box node-agent-1" rx="10"></rect>+ <text x="360" y="220" text-anchor="middle" class="node-txt" style="font-size: 14px;">🤖 AI Agent</text>+ <text x="360" y="240" text-anchor="middle" class="node-sub">thinks, decides, acts</text>+++ <path d="M 175 199 L 280 215" class="conn-flow-1" marker-end="url(#arr-purple)"></path>+ <path d="M 175 251 L 280 235" class="conn-flow-1" marker-end="url(#arr-purple)"></path>+++ <rect x="220" y="280" width="100" height="32" class="node-box node-helper" rx="6"></rect>+ <text x="270" y="299" text-anchor="middle" class="node-txt">🧠 Memory</text>++ <rect x="330" y="280" width="100" height="32" class="node-box node-helper" rx="6"></rect>+ <text x="380" y="299" text-anchor="middle" class="node-txt">📚 Skills</text>++ <path d="M 320 255 L 270 280" class="conn-dotted"></path>+ <path d="M 400 255 L 380 280" class="conn-dotted"></path>+++ <rect x="490" y="170" width="280" height="120" class="node-box" rx="10" style="fill: #fafafa; stroke: #d1d5db;"></rect>+ <text x="630" y="190" text-anchor="middle" class="node-txt" style="fill: #6b7280;">🔧 Toolbox</text>++ <rect x="500" y="200" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="542" y="215" text-anchor="middle" class="node-sub">🔍 Web search</text>++ <rect x="592" y="200" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="634" y="215" text-anchor="middle" class="node-sub">🌐 Browser</text>++ <rect x="684" y="200" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="726" y="215" text-anchor="middle" class="node-sub">📄 Files</text>++ <rect x="500" y="228" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="542" y="243" text-anchor="middle" class="node-sub">💻 Shell</text>++ <rect x="592" y="228" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="634" y="243" text-anchor="middle" class="node-sub">🐍 Python</text>++ <rect x="684" y="228" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="726" y="243" text-anchor="middle" class="node-sub">⚙ Processes</text>++ <rect x="546" y="256" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="588" y="271" text-anchor="middle" class="node-sub">📋 Todos</text>++ <rect x="638" y="256" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="680" y="271" text-anchor="middle" class="node-sub">+ more</text>++ <path d="M 440 225 L 490 225" class="conn-flow-1" marker-end="url(#arr-purple)"></path>+++ <rect x="830" y="180" width="180" height="38" class="node-box node-output" rx="8"></rect>+ <text x="920" y="198" text-anchor="middle" class="node-txt">📤 Telegram Send</text>+ <text x="920" y="212" text-anchor="middle" class="node-sub">reply to user</text>++ <rect x="830" y="232" width="180" height="38" class="node-box node-output" rx="8"></rect>+ <text x="920" y="250" text-anchor="middle" class="node-txt">📝 Console</text>+ <text x="920" y="264" text-anchor="middle" class="node-sub">live log in UI</text>++ <path d="M 770 199 L 830 199" class="conn-flow-1" marker-end="url(#arr-purple)"></path>+ <path d="M 770 251 L 830 251" class="conn-flow-1" marker-end="url(#arr-purple)"></path>+++ <text x="58" y="313" class="row-use">USE WHEN:</text>+ <text x="155" y="313" class="row-desc">You want one AI that can browse the web, run code on your machine, and chat over Telegram.</text>+++++ <rect x="30" y="355" width="1040" height="340" class="row-card row-2"></rect>+ <circle cx="58" cy="383" r="14" class="num-bg-2"></circle>+ <text x="58" y="388" text-anchor="middle" class="num-txt">2</text>+ <text x="84" y="383" class="row-title">AI Employee</text>+ <text x="84" y="400" class="row-tag">58 nodes · a team lead that delegates to 5 specialists</text>+++ <rect x="50" y="450" width="120" height="38" class="node-box node-trigger" rx="8"></rect>+ <text x="110" y="468" text-anchor="middle" class="node-txt">💬 Chat</text>+ <text x="110" y="482" text-anchor="middle" class="node-sub">in-app panel</text>++ <rect x="50" y="500" width="120" height="38" class="node-box node-trigger" rx="8"></rect>+ <text x="110" y="518" text-anchor="middle" class="node-txt">📱 Telegram</text>+ <text x="110" y="532" text-anchor="middle" class="node-sub">incoming message</text>+++ <rect x="240" y="465" width="170" height="62" class="node-box node-agent-2" rx="10"></rect>+ <text x="325" y="490" text-anchor="middle" class="node-txt" style="font-size: 14px;">👔 Zeenie</text>+ <text x="325" y="510" text-anchor="middle" class="node-sub">team lead — decides</text>+ <text x="325" y="522" text-anchor="middle" class="node-sub">who handles what</text>++ <path d="M 175 469 L 240 487" class="conn-flow-2" marker-end="url(#arr-cyan)"></path>+ <path d="M 175 519 L 240 505" class="conn-flow-2" marker-end="url(#arr-cyan)"></path>+++ <rect x="245" y="545" width="78" height="26" class="node-box node-helper" rx="5"></rect>+ <text x="284" y="562" text-anchor="middle" class="node-sub">🧠 Memory</text>++ <rect x="327" y="545" width="78" height="26" class="node-box node-helper" rx="5"></rect>+ <text x="366" y="562" text-anchor="middle" class="node-sub">📚 Skills</text>++ <path d="M 290 527 L 284 545" class="conn-dotted"></path>+ <path d="M 360 527 L 366 545" class="conn-dotted"></path>+++ <text x="465" y="497" class="label-italic">delegates to →</text>+++ <rect x="555" y="395" width="220" height="48" class="node-box node-agent-2" rx="8"></rect>+ <text x="665" y="414" text-anchor="middle" class="node-txt">💻 Coding Agent</text>+ <text x="665" y="430" text-anchor="middle" class="node-sub">files · shell · Python · processes</text>++ <rect x="555" y="450" width="220" height="48" class="node-box node-agent-2" rx="8"></rect>+ <text x="665" y="469" text-anchor="middle" class="node-txt">📧 Productivity Agent</text>+ <text x="665" y="485" text-anchor="middle" class="node-sub">Gmail · Calendar · Drive · Sheets</text>++ <rect x="555" y="505" width="220" height="48" class="node-box node-agent-2" rx="8"></rect>+ <text x="665" y="524" text-anchor="middle" class="node-txt">🗺 Travel Agent</text>+ <text x="665" y="540" text-anchor="middle" class="node-sub">Maps · geocoding · nearby places</text>++ <rect x="555" y="560" width="220" height="48" class="node-box node-agent-2" rx="8"></rect>+ <text x="665" y="579" text-anchor="middle" class="node-txt">🌐 Web Agent</text>+ <text x="665" y="595" text-anchor="middle" class="node-sub">browser · HTTP · web search</text>++ <rect x="555" y="615" width="220" height="48" class="node-box node-agent-2" rx="8"></rect>+ <text x="665" y="634" text-anchor="middle" class="node-txt">💬 Social Agent</text>+ <text x="665" y="650" text-anchor="middle" class="node-sub">Twitter · WhatsApp</text>+++ <path d="M 410 480 Q 480 480 480 419 L 555 419" class="conn-delegate" marker-end="url(#arr-cyan)"></path>+ <path d="M 410 490 Q 490 490 490 474 L 555 474" class="conn-delegate" marker-end="url(#arr-cyan)"></path>+ <path d="M 410 500 L 555 529" class="conn-delegate" marker-end="url(#arr-cyan)"></path>+ <path d="M 410 510 Q 490 510 490 584 L 555 584" class="conn-delegate" marker-end="url(#arr-cyan)"></path>+ <path d="M 410 520 Q 480 520 480 639 L 555 639" class="conn-delegate" marker-end="url(#arr-cyan)"></path>+++ <text x="785" y="430" class="label-italic">each has its own</text>+ <text x="785" y="445" class="label-italic">memory · skills · tools</text>+++ <rect x="830" y="540" width="180" height="38" class="node-box node-output" rx="8"></rect>+ <text x="920" y="558" text-anchor="middle" class="node-txt">📤 Telegram</text>+ <text x="920" y="572" text-anchor="middle" class="node-sub">reply to user</text>++ <rect x="830" y="585" width="180" height="38" class="node-box node-output" rx="8"></rect>+ <text x="920" y="603" text-anchor="middle" class="node-txt">📝 Console</text>+ <text x="920" y="617" text-anchor="middle" class="node-sub">per-agent logs</text>+++ <text x="58" y="678" class="row-use">USE WHEN:</text>+ <text x="155" y="678" class="row-desc">You want one chat that handles everything — and each domain has a specialist that's actually good at it.</text>+++++ <rect x="30" y="720" width="1040" height="240" class="row-card row-3"></rect>+ <circle cx="58" cy="748" r="14" class="num-bg-3"></circle>+ <text x="58" y="753" text-anchor="middle" class="num-txt">3</text>+ <text x="84" y="748" class="row-title">Claude Assistant</text>+ <text x="84" y="765" class="row-tag">15 nodes · Anthropic's Claude Code in a workflow, sessions persist across days</text>+++ <rect x="50" y="810" width="120" height="38" class="node-box node-trigger" rx="8"></rect>+ <text x="110" y="828" text-anchor="middle" class="node-txt">💬 Chat</text>+ <text x="110" y="842" text-anchor="middle" class="node-sub">in-app panel</text>++ <rect x="50" y="862" width="120" height="38" class="node-box node-trigger" rx="8"></rect>+ <text x="110" y="880" text-anchor="middle" class="node-txt">📱 Telegram</text>+ <text x="110" y="894" text-anchor="middle" class="node-sub">incoming message</text>+++ <rect x="280" y="825" width="160" height="60" class="node-box node-agent-3" rx="10"></rect>+ <text x="360" y="850" text-anchor="middle" class="node-txt" style="font-size: 14px;">🧠 Claude Code</text>+ <text x="360" y="870" text-anchor="middle" class="node-sub">session-persistent CLI</text>++ <path d="M 175 829 L 280 845" class="conn-flow-3" marker-end="url(#arr-green)"></path>+ <path d="M 175 881 L 280 865" class="conn-flow-3" marker-end="url(#arr-green)"></path>+++ <rect x="270" y="908" width="80" height="28" class="node-box node-helper" rx="5"></rect>+ <text x="310" y="926" text-anchor="middle" class="node-sub">🧠 Memory</text>++ <rect x="365" y="908" width="80" height="28" class="node-box node-helper" rx="5"></rect>+ <text x="405" y="926" text-anchor="middle" class="node-sub">📚 Skills</text>++ <path d="M 320 885 L 310 908" class="conn-dotted"></path>+ <path d="M 400 885 L 405 908" class="conn-dotted"></path>+++ <rect x="490" y="800" width="280" height="120" class="node-box" rx="10" style="fill: #fafafa; stroke: #d1d5db;"></rect>+ <text x="630" y="820" text-anchor="middle" class="node-txt" style="fill: #6b7280;">🔧 Coding Toolbox</text>++ <rect x="500" y="830" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="542" y="845" text-anchor="middle" class="node-sub">📄 Files</text>++ <rect x="592" y="830" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="634" y="845" text-anchor="middle" class="node-sub">🔎 FS Search</text>++ <rect x="684" y="830" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="726" y="845" text-anchor="middle" class="node-sub">💻 Shell</text>++ <rect x="500" y="858" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="542" y="873" text-anchor="middle" class="node-sub">⚙ Processes</text>++ <rect x="592" y="858" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="634" y="873" text-anchor="middle" class="node-sub">🌐 Browser</text>++ <rect x="684" y="858" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="726" y="873" text-anchor="middle" class="node-sub">🔍 Search</text>++ <rect x="592" y="886" width="84" height="22" class="node-tool" rx="5"></rect>+ <text x="634" y="901" text-anchor="middle" class="node-sub">📋 Todos</text>++ <path d="M 440 855 L 490 855" class="conn-flow-3" marker-end="url(#arr-green)"></path>+++ <rect x="830" y="810" width="180" height="38" class="node-box node-output" rx="8"></rect>+ <text x="920" y="828" text-anchor="middle" class="node-txt">📤 Telegram Send</text>+ <text x="920" y="842" text-anchor="middle" class="node-sub">reply to user</text>++ <rect x="830" y="862" width="180" height="38" class="node-box node-output" rx="8"></rect>+ <text x="920" y="880" text-anchor="middle" class="node-txt">📝 Console</text>+ <text x="920" y="894" text-anchor="middle" class="node-sub">live log in UI</text>++ <path d="M 770 829 L 830 829" class="conn-flow-3" marker-end="url(#arr-green)"></path>+ <path d="M 770 881 L 830 881" class="conn-flow-3" marker-end="url(#arr-green)"></path>+++ <text x="58" y="945" class="row-use">USE WHEN:</text>+ <text x="155" y="945" class="row-desc">Your AI needs to actually ship code — refactor, build features, debug — across sessions that persist.</text>+++ <text x="550" y="995" text-anchor="middle" class="label-italic" style="font-size: 12px;">All three are real .json files in the /workflows folder. Open them in the canvas, edit anything, save as your own.</text>++</svg>\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/execution-flow.svg b/docs-internal/design-system/assets/diagrams/execution-flow.svgnew file mode 100644index 00000000..ae883a26--- /dev/null+++ b/docs-internal/design-system/assets/diagrams/execution-flow.svg@@ -0,0 +1,90 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" width="100%" preserveAspectRatio="xMidYMid meet" font-family="ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace">+ <defs>+ <marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#f8f8f2"></path>+ </marker>++ </defs>++ <rect class="bg" width="1200" height="800"></rect>+++ <rect class="entry" x="460" y="30" width="280" height="60" rx="8"></rect>+ <text x="600" y="58" class="title" text-anchor="middle">workflow.execute()</text>+ <text x="600" y="78" class="sub" text-anchor="middle">(WorkflowService facade)</text>+++ <path class="conn" d="M 600 90 L 600 135" marker-end="url(#arrow)"></path>+++ <polygon class="decision" points="600,140 780,210 600,280 420,210"></polygon>+ <text x="600" y="200" class="big" text-anchor="middle">TEMPORAL_ENABLED</text>+ <text x="600" y="225" class="big" text-anchor="middle">and reachable?</text>+++ <path class="conn-yes" d="M 780 210 L 950 210 L 950 320" marker-end="url(#arrow)"></path>+ <text x="830" y="200" class="branch-label">yes</text>+++ <path class="conn-no" d="M 420 210 L 260 210 L 260 280" marker-end="url(#arrow)"></path>+ <text x="325" y="200" class="branch-label">no</text>+++ <polygon class="decision" points="260,285 430,350 260,415 90,350"></polygon>+ <text x="260" y="345" class="big" text-anchor="middle">Redis</text>+ <text x="260" y="370" class="big" text-anchor="middle">available?</text>+++ <path class="conn-yes" d="M 430 350 L 600 350 L 600 320" marker-end="url(#arrow)"></path>+ <text x="475" y="340" class="branch-label">yes</text>+++ <path class="conn-no" d="M 260 415 L 260 445" marker-end="url(#arrow)"></path>+ <text x="200" y="440" class="branch-label">no</text>++++ <rect class="path-temporal" x="820" y="320" width="260" height="150" rx="8"></rect>+ <text x="950" y="348" class="mode-label" text-anchor="middle">Temporal Distributed</text>+ <text x="950" y="372" class="sub" text-anchor="middle">per-node activities</text>+ <text x="950" y="392" class="sub" text-anchor="middle">3 retries, 10 min timeout</text>+ <text x="950" y="412" class="sub" text-anchor="middle">horizontal scaling</text>+ <text x="950" y="432" class="sub" text-anchor="middle">FIRST_COMPLETED scheduling</text>+ <text x="950" y="458" class="caption" text-anchor="middle">services/temporal/</text>+++ <rect class="path-redis" x="470" y="320" width="260" height="150" rx="8"></rect>+ <text x="600" y="348" class="mode-label" text-anchor="middle">Parallel Local (Redis)</text>+ <text x="600" y="372" class="sub" text-anchor="middle">decide loop + Kahn layers</text>+ <text x="600" y="392" class="sub" text-anchor="middle">asyncio.gather() fork/join</text>+ <text x="600" y="412" class="sub" text-anchor="middle">Prefect-style input hash cache</text>+ <text x="600" y="432" class="sub" text-anchor="middle">DLQ + heartbeat recovery</text>+ <text x="600" y="458" class="caption" text-anchor="middle">services/execution/</text>+++ <rect class="path-seq" x="120" y="445" width="280" height="120" rx="8"></rect>+ <text x="260" y="473" class="mode-label" text-anchor="middle">Sequential Fallback</text>+ <text x="260" y="497" class="sub" text-anchor="middle">simple topological walk</text>+ <text x="260" y="517" class="sub" text-anchor="middle">no cache, no retry, no DLQ</text>+ <text x="260" y="537" class="sub" text-anchor="middle">minimal environments only</text>+ <text x="260" y="558" class="caption" text-anchor="middle">_execute_sequential()</text>+++ <path class="conn" d="M 950 470 L 950 590 L 600 590" marker-end="url(#arrow)"></path>+ <path class="conn" d="M 600 470 L 600 590" marker-end="url(#arrow)"></path>+ <path class="conn" d="M 260 565 L 260 590 L 600 590" marker-end="url(#arrow)"></path>+++ <rect class="shared" x="330" y="595" width="540" height="90" rx="8"></rect>+ <text x="600" y="625" class="title" text-anchor="middle">NodeExecutor.execute()</text>+ <text x="600" y="648" class="sub" text-anchor="middle">registry dispatch: {node_type: handler via functools.partial}</text>+ <text x="600" y="668" class="sub" text-anchor="middle">handlers/*.py -> result dict -> ExecutionContext</text>+++ <path class="conn" d="M 600 685 L 600 715" marker-end="url(#arrow)"></path>+++ <rect class="output" x="380" y="720" width="440" height="60" rx="8"></rect>+ <text x="600" y="745" class="title" text-anchor="middle">Status broadcast via StatusBroadcaster</text>+ <text x="600" y="765" class="sub" text-anchor="middle">node_status + node_output -> Frontend WebSocket</text>+</svg>\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/how-it-works.svg b/docs-internal/design-system/assets/diagrams/how-it-works.svgnew file mode 100644index 00000000..dd22af70--- /dev/null+++ b/docs-internal/design-system/assets/diagrams/how-it-works.svg@@ -0,0 +1,164 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1100 620" width="100%" preserveAspectRatio="xMidYMid meet" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif">+ <defs>+ <marker id="arrow-flow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#6b7280"></path>+ </marker>++ </defs>++ <rect width="1100" height="620" class="bg"></rect>+++ <text x="550" y="40" text-anchor="middle" class="header">How MachinaOS Works</text>+ <text x="550" y="62" text-anchor="middle" class="subheader">Build AI workflows visually. Connect them to your apps. Run everything on your own computer.</text>+++ <rect x="40" y="100" width="240" height="200" class="step-card-accent accent-1"></rect>+ <circle cx="68" cy="128" r="14" class="step-num-bg-1"></circle>+ <text x="68" y="133" text-anchor="middle" class="step-num">1</text>+ <text x="92" y="133" class="step-title">Pick from 100+ nodes</text>++ <rect x="60" y="155" width="200" height="22" class="node-mini"></rect>+ <text x="70" y="170" class="node-mini-text">🤖 AI Agent</text>++ <rect x="60" y="183" width="200" height="22" class="node-mini"></rect>+ <text x="70" y="198" class="node-mini-text">💬 Chat Trigger</text>++ <rect x="60" y="211" width="200" height="22" class="node-mini"></rect>+ <text x="70" y="226" class="node-mini-text">📱 Telegram</text>++ <rect x="60" y="239" width="200" height="22" class="node-mini"></rect>+ <text x="70" y="254" class="node-mini-text">📧 Gmail</text>++ <rect x="60" y="267" width="200" height="22" class="node-mini"></rect>+ <text x="70" y="282" class="node-mini-text">+ many more...</text>+++ <path d="M 290 200 L 360 200" class="flow-arrow" marker-end="url(#arrow-flow)"></path>+++ <rect x="370" y="100" width="360" height="200" class="step-card-accent accent-2"></rect>+ <circle cx="398" cy="128" r="14" class="step-num-bg-2"></circle>+ <text x="398" y="133" text-anchor="middle" class="step-num">2</text>+ <text x="422" y="133" class="step-title">Drag and connect them</text>+++ <rect x="390" y="160" width="92" height="42" class="node-mini node-trigger-mini" rx="8"></rect>+ <text x="436" y="178" text-anchor="middle" class="node-mini-text">💬 Chat</text>+ <text x="436" y="194" text-anchor="middle" class="node-mini-text" style="font-size: 9px; fill: #6b7280;">trigger</text>++ <rect x="515" y="160" width="100" height="42" class="node-mini node-agent-mini" rx="8"></rect>+ <text x="565" y="178" text-anchor="middle" class="node-mini-text">🤖 AI Agent</text>+ <text x="565" y="194" text-anchor="middle" class="node-mini-text" style="font-size: 9px; fill: #6b7280;">thinks + acts</text>++ <rect x="648" y="160" width="72" height="42" class="node-mini node-output-mini" rx="8"></rect>+ <text x="684" y="178" text-anchor="middle" class="node-mini-text">📤 Reply</text>+ <text x="684" y="194" text-anchor="middle" class="node-mini-text" style="font-size: 9px; fill: #6b7280;">output</text>++ <path d="M 482 181 L 515 181" class="flow-arrow" marker-end="url(#arrow-flow)"></path>+ <path d="M 615 181 L 648 181" class="flow-arrow" marker-end="url(#arrow-flow)"></path>+++ <rect x="430" y="220" width="80" height="22" class="node-mini" rx="6" style="fill: #f0fdfa; stroke: #06b6d4;"></rect>+ <text x="470" y="235" text-anchor="middle" class="node-mini-text" style="fill: #0e7490;">🧠 Memory</text>++ <rect x="520" y="220" width="80" height="22" class="node-mini" rx="6" style="fill: #f0fdfa; stroke: #06b6d4;"></rect>+ <text x="560" y="235" text-anchor="middle" class="node-mini-text" style="fill: #0e7490;">📚 Skill</text>++ <rect x="610" y="220" width="80" height="22" class="node-mini" rx="6" style="fill: #f0fdfa; stroke: #06b6d4;"></rect>+ <text x="650" y="235" text-anchor="middle" class="node-mini-text" style="fill: #0e7490;">🔧 Tool</text>++ <path d="M 545 202 L 470 220" class="dashed-conn"></path>+ <path d="M 565 202 L 560 220" class="dashed-conn"></path>+ <path d="M 590 202 L 650 220" class="dashed-conn"></path>++ <text x="550" y="265" text-anchor="middle" class="step-desc">Memory remembers · Skills teach · Tools extend</text>+ <text x="550" y="285" text-anchor="middle" class="step-desc" style="font-style: italic; fill: #6b7280;">This is the shape of every default workflow.</text>+++ <path d="M 740 200 L 810 200" class="flow-arrow" marker-end="url(#arrow-flow)"></path>+++ <rect x="820" y="100" width="240" height="200" class="step-card-accent accent-3"></rect>+ <circle cx="848" cy="128" r="14" class="step-num-bg-3"></circle>+ <text x="848" y="133" text-anchor="middle" class="step-num">3</text>+ <text x="872" y="133" class="step-title">AI runs it for you</text>++ <text x="940" y="170" text-anchor="middle" class="step-desc">Click Play, or...</text>++ <rect x="850" y="185" width="180" height="30" class="badge"></rect>+ <text x="940" y="204" text-anchor="middle" class="badge-text">DEPLOY ON A SCHEDULE</text>++ <rect x="850" y="223" width="180" height="30" class="badge"></rect>+ <text x="940" y="242" text-anchor="middle" class="badge-text">TRIGGER ON AN EVENT</text>++ <rect x="850" y="261" width="180" height="30" class="badge"></rect>+ <text x="940" y="280" text-anchor="middle" class="badge-text">RESPOND IN REAL TIME</text>+++ <rect x="40" y="340" width="1020" height="180" class="step-card-accent accent-4"></rect>+ <circle cx="68" cy="368" r="14" class="step-num-bg-4"></circle>+ <text x="68" y="373" text-anchor="middle" class="step-num">4</text>+ <text x="92" y="373" class="step-title">Connect to the apps you already use</text>+++ <rect x="60" y="395" width="90" height="28" class="integration-pill"></rect>+ <text x="105" y="414" text-anchor="middle" class="integration-text">📧 Gmail</text>++ <rect x="160" y="395" width="100" height="28" class="integration-pill"></rect>+ <text x="210" y="414" text-anchor="middle" class="integration-text">📅 Calendar</text>++ <rect x="270" y="395" width="80" height="28" class="integration-pill"></rect>+ <text x="310" y="414" text-anchor="middle" class="integration-text">📁 Drive</text>++ <rect x="360" y="395" width="90" height="28" class="integration-pill"></rect>+ <text x="405" y="414" text-anchor="middle" class="integration-text">📊 Sheets</text>++ <rect x="460" y="395" width="110" height="28" class="integration-pill"></rect>+ <text x="515" y="414" text-anchor="middle" class="integration-text">📱 WhatsApp</text>++ <rect x="580" y="395" width="100" height="28" class="integration-pill"></rect>+ <text x="630" y="414" text-anchor="middle" class="integration-text">💬 Telegram</text>++ <rect x="690" y="395" width="100" height="28" class="integration-pill"></rect>+ <text x="740" y="414" text-anchor="middle" class="integration-text">𝕏 Twitter</text>++ <rect x="800" y="395" width="110" height="28" class="integration-pill"></rect>+ <text x="855" y="414" text-anchor="middle" class="integration-text">📞 Your Phone</text>++ <rect x="920" y="395" width="120" height="28" class="integration-pill"></rect>+ <text x="980" y="414" text-anchor="middle" class="integration-text">💳 Stripe</text>+++ <rect x="60" y="430" width="120" height="28" class="integration-pill"></rect>+ <text x="120" y="449" text-anchor="middle" class="integration-text">🌐 Web Browser</text>++ <rect x="190" y="430" width="120" height="28" class="integration-pill"></rect>+ <text x="250" y="449" text-anchor="middle" class="integration-text">🔍 Web Search</text>++ <rect x="320" y="430" width="130" height="28" class="integration-pill"></rect>+ <text x="385" y="449" text-anchor="middle" class="integration-text">🕷 Web Scraping</text>++ <rect x="460" y="430" width="110" height="28" class="integration-pill"></rect>+ <text x="515" y="449" text-anchor="middle" class="integration-text">📄 PDF / Docs</text>++ <rect x="580" y="430" width="100" height="28" class="integration-pill"></rect>+ <text x="630" y="449" text-anchor="middle" class="integration-text">💻 Python</text>++ <rect x="690" y="430" width="120" height="28" class="integration-pill"></rect>+ <text x="750" y="449" text-anchor="middle" class="integration-text">⚡ JavaScript</text>++ <rect x="820" y="430" width="80" height="28" class="integration-pill"></rect>+ <text x="860" y="449" text-anchor="middle" class="integration-text">📨 Email</text>++ <rect x="910" y="430" width="130" height="28" class="integration-pill"></rect>+ <text x="975" y="449" text-anchor="middle" class="integration-text">⏰ Cron / Timers</text>++ <text x="550" y="490" text-anchor="middle" class="step-desc">+ residential proxies, Apify scrapers, Maps, document RAG, and more</text>+++ <rect x="40" y="540" width="1020" height="60" class="footer-strip"></rect>+ <text x="550" y="568" text-anchor="middle" class="footer-text">🏠 Everything runs on your computer</text>+ <text x="550" y="588" text-anchor="middle" class="footer-sub">Your API keys, your data, your conversations — never sent to MachinaOS servers. Free local AI via Ollama and LM Studio.</text>++</svg>\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/node-anatomy.svg b/docs-internal/design-system/assets/diagrams/node-anatomy.svgnew file mode 100644index 00000000..46162745--- /dev/null+++ b/docs-internal/design-system/assets/diagrams/node-anatomy.svg@@ -0,0 +1,123 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 800" width="100%" preserveAspectRatio="xMidYMid meet" font-family="ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace">+ <defs>+ <marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#f8f8f2"></path>+ </marker>++ </defs>++ <rect class="bg" width="1400" height="800"></rect>+++ <text x="700" y="35" class="title" text-anchor="middle" font-size="20">Anatomy of a Workflow Node</text>+ <text x="700" y="58" class="col-sub" text-anchor="middle" font-size="12">Where to touch code when adding a new node</text>+++ <text x="230" y="100" class="col-header" text-anchor="middle">Frontend (client/)</text>+ <text x="230" y="118" class="col-sub" text-anchor="middle">TypeScript + React</text>++ <text x="700" y="100" class="col-header" text-anchor="middle">Communication</text>+ <text x="700" y="118" class="col-sub" text-anchor="middle">WebSocket</text>++ <text x="1170" y="100" class="col-header" text-anchor="middle">Backend (server/)</text>+ <text x="1170" y="118" class="col-sub" text-anchor="middle">Python + FastAPI</text>++++ <rect class="fe-box" x="50" y="145" width="360" height="85" rx="8"></rect>+ <text x="70" y="170" class="title">1. Node definition</text>+ <text x="70" y="190" class="path">server/nodes/<category>/<node>.py</text>+ <text x="70" y="210" class="sub">INodeProperties: displayName, group, inputs,</text>+ <text x="70" y="224" class="sub">outputs, properties[], displayOptions.show</text>+++ <rect class="fe-box" x="50" y="255" width="360" height="85" rx="8"></rect>+ <text x="70" y="280" class="title">2. Parameter panel</text>+ <text x="70" y="300" class="path">client/src/components/ParameterRenderer.tsx</text>+ <text x="70" y="320" class="sub">Renders parameters, conditional display,</text>+ <text x="70" y="334" class="sub">drag-and-drop template variables</text>+++ <rect class="fe-box" x="50" y="365" width="360" height="85" rx="8"></rect>+ <text x="70" y="390" class="title">3. Canvas & Run button</text>+ <text x="70" y="410" class="path">client/src/Dashboard.tsx</text>+ <text x="70" y="430" class="sub">React Flow canvas, useExecution hook,</text>+ <text x="70" y="444" class="sub">sends execute_node via WebSocket</text>+++ <rect class="fe-box" x="50" y="475" width="360" height="85" rx="8"></rect>+ <text x="70" y="500" class="title">4. Credentials (if needed)</text>+ <text x="70" y="520" class="path">client/src/components/CredentialsModal.tsx</text>+ <text x="70" y="540" class="sub">API key entry + OAuth flows</text>+ <text x="70" y="554" class="sub">via useApiKeys hook</text>+++ <rect class="comm-box" x="530" y="255" width="340" height="250" rx="8"></rect>+ <text x="700" y="290" class="title" text-anchor="middle">WebSocket /ws/status</text>+ <text x="700" y="315" class="sub" text-anchor="middle">Single persistent connection</text>+ <text x="700" y="335" class="sub" text-anchor="middle">between UI and backend</text>+++ <text x="700" y="375" class="label" text-anchor="middle">execute_node</text>+ <path class="conn" d="M 570 385 L 830 385" marker-end="url(#arrow)"></path>++ <text x="700" y="420" class="label" text-anchor="middle">node_status</text>+ <path class="conn" d="M 830 430 L 570 430" marker-end="url(#arrow)"></path>++ <text x="700" y="465" class="label" text-anchor="middle">node_output</text>+ <path class="conn" d="M 830 475 L 570 475" marker-end="url(#arrow)"></path>++ <text x="700" y="495" class="sub" text-anchor="middle" fill="#6272a4" font-size="10">89 handler message types</text>+++ <path class="conn" d="M 410 405 L 530 385" marker-end="url(#arrow)"></path>++++ <rect class="be-box" x="990" y="145" width="360" height="85" rx="8"></rect>+ <text x="1010" y="170" class="title">A. Router / dispatch</text>+ <text x="1010" y="190" class="path-be">server/routers/websocket.py</text>+ <text x="1010" y="210" class="sub">@ws_handler decorators, dispatches</text>+ <text x="1010" y="224" class="sub">incoming messages to handlers</text>+++ <rect class="be-box" x="990" y="255" width="360" height="85" rx="8"></rect>+ <text x="1010" y="280" class="title">B. Registry dispatch</text>+ <text x="1010" y="300" class="path-be">server/services/node_executor.py</text>+ <text x="1010" y="320" class="sub">Dict[node_type, handler] via</text>+ <text x="1010" y="334" class="sub">functools.partial dependency injection</text>+++ <rect class="be-box" x="990" y="365" width="360" height="85" rx="8"></rect>+ <text x="1010" y="390" class="title">C. Business logic</text>+ <text x="1010" y="410" class="path-be">server/services/handlers/<name>.py</text>+ <text x="1010" y="430" class="sub">handle_<name>(node_id, parameters,</text>+ <text x="1010" y="444" class="sub">context, ...) -> result dict</text>+++ <rect class="ai-box" x="990" y="475" width="360" height="85" rx="8"></rect>+ <text x="1010" y="500" class="title">D. AI layer (for AI nodes)</text>+ <text x="1010" y="520" class="path-be">server/services/ai.py + llm/</text>+ <text x="1010" y="540" class="sub">Native SDK path or LangChain agent loop</text>+ <text x="1010" y="554" class="sub">with tool calling</text>+++ <path class="conn" d="M 1170 230 L 1170 255" marker-end="url(#arrow)"></path>+ <path class="conn" d="M 1170 340 L 1170 365" marker-end="url(#arrow)"></path>+ <path class="conn" d="M 1170 450 L 1170 475" marker-end="url(#arrow)"></path>+++ <path class="conn" d="M 870 385 L 990 185" marker-end="url(#arrow)"></path>+++ <rect class="be-box" x="450" y="590" width="520" height="80" rx="8" fill="#282a36" stroke="#ff79c6"></rect>+ <text x="710" y="615" class="title" text-anchor="middle" fill="#ff79c6">Register the handler</text>+ <text x="710" y="635" class="sub" text-anchor="middle">Add entry to registry dict in services/node_executor.py:</text>+ <text x="710" y="655" class="path-be" text-anchor="middle">registry['yourNode'] = partial(handle_your_node, database=self.database)</text>+++ <text x="50" y="710" class="step">Contribution checklist</text>+ <text x="50" y="732" class="sub">1. Define node in TypeScript (left col) -> 2. Write handler in Python (right col)</text>+ <text x="50" y="750" class="sub">3. Register in node_executor.py -> 4. Restart dev server -> Node appears in palette</text>+ <text x="50" y="770" class="sub" fill="#6272a4">Full step-by-step guide: docs-internal/node_creation.md</text>+</svg>\ No newline at end of filediff --git a/docs-internal/design-system/assets/diagrams/system-overview.svg b/docs-internal/design-system/assets/diagrams/system-overview.svgnew file mode 100644index 00000000..b6516655--- /dev/null+++ b/docs-internal/design-system/assets/diagrams/system-overview.svg@@ -0,0 +1,114 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 720" width="100%" preserveAspectRatio="xMidYMid meet" font-family="ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace">+ <defs>+ <marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">+ <path d="M0,0 L10,5 L0,10 z" fill="#f8f8f2"></path>+ </marker>++ </defs>++ <rect class="bg" width="1200" height="720"></rect>+++ <text x="40" y="55" class="tier-label">Tier 1</text>++ <rect class="panel panel-frontend" x="40" y="70" width="760" height="110" rx="8"></rect>+ <text x="60" y="100" class="title">Frontend (client/)</text>+ <text x="60" y="128" class="sub">React + TypeScript + React Flow + Zustand + Ant Design</text>+ <text x="60" y="148" class="sub">Dracula-themed canvas, parameter panel, credentials modal</text>+ <text x="60" y="168" class="sub">96 workflow nodes rendered via INodeProperties interface</text>+++ <path class="conn" d="M 420 180 L 420 240" marker-end="url(#arrow)"></path>+ <path class="conn" d="M 420 240 L 420 180" marker-end="url(#arrow)"></path>+ <text x="435" y="215" class="label">WebSocket /ws/status</text>+++ <text x="40" y="260" class="tier-label">Tier 2</text>++ <rect class="panel panel-backend" x="40" y="275" width="760" height="130" rx="8"></rect>+ <text x="60" y="305" class="title">Backend (server/)</text>+ <text x="60" y="333" class="sub">FastAPI + 89 WebSocket handlers + dependency injection container</text>+ <text x="60" y="353" class="sub">WorkflowService (facade) -> NodeExecutor -> per-node handlers</text>+ <text x="60" y="373" class="sub">ParameterResolver -> template {{node.field}} substitution</text>+ <text x="60" y="393" class="sub">AuthService -> encrypted credentials (Fernet + PBKDF2)</text>+++ <path class="conn" d="M 420 405 L 420 465" marker-end="url(#arrow)"></path>+ <text x="435" y="440" class="label">async handlers</text>+++ <text x="40" y="485" class="tier-label">Tier 3</text>++ <rect class="panel panel-exec" x="40" y="500" width="760" height="180" rx="8"></rect>+ <text x="60" y="530" class="title">Execution tier</text>+++ <rect class="small-box small-exec" x="60" y="545" width="140" height="50" rx="6"></rect>+ <text x="130" y="568" class="sub" text-anchor="middle">Temporal</text>+ <text x="130" y="584" class="sub" text-anchor="middle" font-size="10">distributed workers</text>++ <rect class="small-box small-exec" x="215" y="545" width="140" height="50" rx="6"></rect>+ <text x="285" y="568" class="sub" text-anchor="middle">Redis</text>+ <text x="285" y="584" class="sub" text-anchor="middle" font-size="10">cache + locks + streams</text>++ <rect class="small-box small-exec" x="370" y="545" width="140" height="50" rx="6"></rect>+ <text x="440" y="568" class="sub" text-anchor="middle">SQLite</text>+ <text x="440" y="584" class="sub" text-anchor="middle" font-size="10">machina.db + credentials.db</text>++ <rect class="small-box small-exec" x="525" y="545" width="140" height="50" rx="6"></rect>+ <text x="595" y="568" class="sub" text-anchor="middle">Node.js server</text>+ <text x="595" y="584" class="sub" text-anchor="middle" font-size="10">JS/TS code executor</text>++ <rect class="small-box small-exec" x="60" y="608" width="220" height="50" rx="6"></rect>+ <text x="170" y="631" class="sub" text-anchor="middle">WhatsApp RPC (port 9400)</text>+ <text x="170" y="647" class="sub" text-anchor="middle" font-size="10">whatsapp-rpc binary</text>++ <rect class="small-box small-exec" x="295" y="608" width="220" height="50" rx="6"></rect>+ <text x="405" y="631" class="sub" text-anchor="middle">Android relay</text>+ <text x="405" y="647" class="sub" text-anchor="middle" font-size="10">persistent WebSocket</text>++ <rect class="small-box small-exec" x="530" y="608" width="250" height="50" rx="6"></rect>+ <text x="655" y="631" class="sub" text-anchor="middle">Temporal server</text>+ <text x="655" y="647" class="sub" text-anchor="middle" font-size="10">ports 7233 / 8233 / 8080</text>+++ <text x="830" y="55" class="tier-label">External</text>+ <rect class="panel panel-ext" x="830" y="70" width="340" height="610" rx="8"></rect>+ <text x="850" y="100" class="title">External services</text>++ <text x="850" y="130" class="sub" font-weight="700" fill="#8be9fd">LLM providers (10)</text>+ <text x="850" y="150" class="sub">OpenAI, Anthropic, Gemini, OpenRouter,</text>+ <text x="850" y="168" class="sub">xAI, DeepSeek, Kimi, Mistral, Groq, Cerebras</text>++ <text x="850" y="200" class="sub" font-weight="700" fill="#8be9fd">Google Workspace</text>+ <text x="850" y="220" class="sub">Gmail, Calendar, Drive, Sheets,</text>+ <text x="850" y="238" class="sub">Tasks, Contacts (unified OAuth)</text>++ <text x="850" y="270" class="sub" font-weight="700" fill="#8be9fd">Social platforms</text>+ <text x="850" y="290" class="sub">WhatsApp, Telegram, Twitter/X,</text>+ <text x="850" y="308" class="sub">Discord, Slack, Signal (unified)</text>++ <text x="850" y="340" class="sub" font-weight="700" fill="#8be9fd">Search APIs</text>+ <text x="850" y="360" class="sub">Brave, Serper, Perplexity,</text>+ <text x="850" y="378" class="sub">DuckDuckGo (free)</text>++ <text x="850" y="410" class="sub" font-weight="700" fill="#8be9fd">Web scraping</text>+ <text x="850" y="430" class="sub">Apify actors, Crawlee scraper,</text>+ <text x="850" y="448" class="sub">residential proxy providers</text>++ <text x="850" y="480" class="sub" font-weight="700" fill="#8be9fd">Device integration</text>+ <text x="850" y="500" class="sub">Android via ADB relay,</text>+ <text x="850" y="518" class="sub">16 Android service nodes</text>++ <text x="850" y="550" class="sub" font-weight="700" fill="#8be9fd">Vector + RAG</text>+ <text x="850" y="570" class="sub">ChromaDB, Qdrant, Pinecone,</text>+ <text x="850" y="588" class="sub">HuggingFace embeddings</text>++ <text x="850" y="620" class="sub" font-weight="700" fill="#8be9fd">Maps</text>+ <text x="850" y="640" class="sub">Google Maps Geocoding,</text>+ <text x="850" y="658" class="sub">Places nearbySearch</text>+++ <path class="conn" d="M 800 590 L 830 590" marker-end="url(#arrow)"></path>+ <text x="805" y="580" class="label">HTTP / SDK</text>+</svg>\ No newline at end of filediff --git a/docs-internal/design-system/assets/product-canvas-screenshot.png b/docs-internal/design-system/assets/product-canvas-screenshot.pngnew file mode 100644index 00000000..3cf00fa7Binary files /dev/null and b/docs-internal/design-system/assets/product-canvas-screenshot.png differdiff --git a/docs-internal/design-system/components/buttons/ActionButton.d.ts b/docs-internal/design-system/components/buttons/ActionButton.d.tsnew file mode 100644index 00000000..4c3dafd0--- /dev/null+++ b/docs-internal/design-system/components/buttons/ActionButton.d.ts@@ -0,0 +1,19 @@+import * as React from 'react';++/**+ * ActionButton — MachinaOS's signature soft-tinted toolbar button.+ * Semantic intent picks the Dracula accent: run=green (deploy/run),+ * stop=pink (destructive), save=cyan (commit/panels), config=orange+ * (settings), secret=yellow (credentials), tools=purple (palette).+ *+ * @startingPoint section="Components" subtitle="Soft tinted toolbar button with six semantic intents" viewport="700x180"+ */+export interface ActionButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {+ /** Semantic role — picks the accent triplet. Default 'save' */+ intent?: 'run' | 'stop' | 'save' | 'config' | 'secret' | 'tools';+ /** Square 32px icon-only variant */+ iconOnly?: boolean;+ children?: React.ReactNode;+}++export function ActionButton(props: ActionButtonProps): JSX.Element;diff --git a/docs-internal/design-system/components/buttons/ActionButton.jsx b/docs-internal/design-system/components/buttons/ActionButton.jsxnew file mode 100644index 00000000..81f6278f--- /dev/null+++ b/docs-internal/design-system/components/buttons/ActionButton.jsx@@ -0,0 +1,57 @@+import * as React from 'react';++/**+ * ActionButton — the signature MachinaOS "soft tinted" toolbar button.+ * `intent` is a semantic role, not a color: run / stop / save / config /+ * secret / tools. Soft tint fill (15%), tinted border (60%), accent text;+ * hover deepens the fill to 25%; press nudges down 1px.+ */+export function ActionButton({+ intent = 'save',+ children,+ disabled = false,+ iconOnly = false,+ style,+ ...rest+}) {+ const [hover, setHover] = React.useState(false);+ const [active, setActive] = React.useState(false);+ const base = `var(--action-${intent}`;+ return (+ <button+ type="button"+ disabled={disabled}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => { setHover(false); setActive(false); }}+ onMouseDown={() => setActive(true)}+ onMouseUp={() => setActive(false)}+ style={{+ display: 'inline-flex',+ height: 'var(--h-control, 32px)',+ alignItems: 'center',+ justifyContent: 'center',+ gap: 6,+ borderRadius: 'var(--radius-md, 6px)',+ padding: iconOnly ? 0 : '0 14px',+ width: iconOnly ? 'var(--h-control, 32px)' : undefined,+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: 600,+ lineHeight: 1,+ border: `1px solid ${base}-border)`,+ background: hover && !disabled ? `${base}-hover)` : `${base}-soft)`,+ color: `${base}-ink)`,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ transform: active && !disabled ? 'translateY(1px)' : 'none',+ transition: 'background var(--dur-default, 180ms) var(--ease-default), transform var(--dur-fast, 90ms)',+ userSelect: 'none',+ whiteSpace: 'nowrap',+ ...style,+ }}+ {...rest}+ >+ {children}+ </button>+ );+}diff --git a/docs-internal/design-system/components/buttons/ActionButton.prompt.md b/docs-internal/design-system/components/buttons/ActionButton.prompt.mdnew file mode 100644index 00000000..45060f6a--- /dev/null+++ b/docs-internal/design-system/components/buttons/ActionButton.prompt.md@@ -0,0 +1,12 @@+Soft-tinted toolbar button — the most recognizable MachinaOS pattern. Pick intent by meaning, never by color.++```jsx+<ActionButton intent="run"><Icon name="Play" size={12} /> Start</ActionButton>+<ActionButton intent="stop"><Icon name="Square" size={12} /> Stop</ActionButton>+<ActionButton intent="save" disabled>Save</ActionButton>+<ActionButton intent="config" iconOnly title="Settings"><Icon name="Settings" size={14} /></ActionButton>+```++- Intents: run (green), stop (pink), save (cyan), config (orange), secret (yellow / credentials), tools (purple / component palette).+- Labels are one word or a short verb phrase: Start, Stop, Save, Apply All.+- 32px tall; `iconOnly` makes it a 32px square for toolbar icon buttons.diff --git a/docs-internal/design-system/components/buttons/Button.d.ts b/docs-internal/design-system/components/buttons/Button.d.tsnew file mode 100644index 00000000..07e5d091--- /dev/null+++ b/docs-internal/design-system/components/buttons/Button.d.ts@@ -0,0 +1,15 @@+import * as React from 'react';++/**+ * Button — general-purpose shadcn-derived button. For toolbar actions+ * prefer ActionButton; Button covers dialogs, forms, and menus.+ */+export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {+ /** Visual variant. Default 'default' (solid primary blue) */+ variant?: 'default' | 'outline' | 'secondary' | 'ghost' | 'destructive' | 'link';+ /** Size. icon / icon-sm are square. Default 'default' (32px) */+ size?: 'sm' | 'default' | 'lg' | 'icon' | 'icon-sm';+ children?: React.ReactNode;+}++export function Button(props: ButtonProps): JSX.Element;diff --git a/docs-internal/design-system/components/buttons/Button.jsx b/docs-internal/design-system/components/buttons/Button.jsxnew file mode 100644index 00000000..9a496a7b--- /dev/null+++ b/docs-internal/design-system/components/buttons/Button.jsx@@ -0,0 +1,94 @@+import * as React from 'react';++/**+ * Button — shadcn-derived general button. Solid primary, outline,+ * secondary, ghost, destructive (soft red tint), link.+ */+export function Button({+ variant = 'default',+ size = 'default',+ children,+ disabled = false,+ style,+ ...rest+}) {+ const [hover, setHover] = React.useState(false);+ const [active, setActive] = React.useState(false);++ const sizes = {+ sm: { height: 28, padding: '0 10px', fontSize: 13 },+ default: { height: 32, padding: '0 12px', fontSize: 14 },+ lg: { height: 36, padding: '0 16px', fontSize: 14 },+ icon: { height: 32, width: 32, padding: 0, fontSize: 14 },+ 'icon-sm': { height: 28, width: 28, padding: 0, fontSize: 13 },+ };++ const variants = {+ default: {+ background: hover ? 'color-mix(in srgb, var(--primary) 85%, var(--bg-app))' : 'var(--primary)',+ color: 'var(--primary-foreground)',+ border: '1px solid transparent',+ },+ outline: {+ background: hover ? 'var(--bg-hover)' : 'var(--bg-elevated)',+ color: 'var(--fg-default)',+ border: '1px solid var(--border-default)',+ },+ secondary: {+ background: hover ? 'var(--bg-active)' : 'var(--bg-hover)',+ color: 'var(--fg-default)',+ border: '1px solid transparent',+ },+ ghost: {+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-default)',+ border: '1px solid transparent',+ },+ destructive: {+ background: hover+ ? 'color-mix(in srgb, var(--destructive) 20%, transparent)'+ : 'color-mix(in srgb, var(--destructive) 10%, transparent)',+ color: 'var(--destructive)',+ border: '1px solid transparent',+ },+ link: {+ background: 'transparent',+ color: 'var(--primary)',+ border: '1px solid transparent',+ textDecoration: hover ? 'underline' : 'none',+ },+ };++ return (+ <button+ type="button"+ disabled={disabled}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => { setHover(false); setActive(false); }}+ onMouseDown={() => setActive(true)}+ onMouseUp={() => setActive(false)}+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ gap: 6,+ borderRadius: 'var(--radius-lg, 8px)',+ fontFamily: 'var(--font-sans)',+ fontWeight: 500,+ lineHeight: 1,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ transform: active && !disabled ? 'translateY(1px)' : 'none',+ transition: 'background var(--dur-default, 180ms) var(--ease-default), transform var(--dur-fast, 90ms)',+ userSelect: 'none',+ whiteSpace: 'nowrap',+ ...sizes[size],+ ...variants[variant],+ ...style,+ }}+ {...rest}+ >+ {children}+ </button>+ );+}diff --git a/docs-internal/design-system/components/buttons/Button.prompt.md b/docs-internal/design-system/components/buttons/Button.prompt.mdnew file mode 100644index 00000000..fcc5b0c8--- /dev/null+++ b/docs-internal/design-system/components/buttons/Button.prompt.md@@ -0,0 +1,11 @@+General button (dialogs, forms, menus). Toolbar actions should use ActionButton instead.++```jsx+<Button>New Workflow</Button>+<Button variant="outline">Cancel</Button>+<Button variant="destructive" size="sm"><Icon name="X" size={12} /> Delete</Button>+<Button variant="ghost" size="icon-sm" title="Close"><Icon name="X" size={14} /></Button>+```++- destructive is a soft red tint (10% fill), not solid red.+- Press state translates down 1px; disabled is opacity .5.diff --git a/docs-internal/design-system/components/buttons/buttons.card.html b/docs-internal/design-system/components/buttons/buttons.card.htmlnew file mode 100644index 00000000..1f51d2ea--- /dev/null+++ b/docs-internal/design-system/components/buttons/buttons.card.html@@ -0,0 +1,47 @@+<!-- @dsCard group="Components" viewport="700x240" name="Buttons" subtitle="ActionButton intents + Button variants" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=2"></script>+</head>+<body style="background: var(--bg-panel); margin: 0; padding: 16px;">+<div id="root"></div>+<script type="text/babel">+const { ActionButton, Button, Icon } = window.MachinaOSDesignSystem_2559cf;++function ButtonsCard() {+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 14 }}>+ <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap', alignItems: 'center' }}>+ <ActionButton intent="run"><Icon name="Play" size={12} /> Start</ActionButton>+ <ActionButton intent="stop"><Icon name="Square" size={12} /> Stop</ActionButton>+ <ActionButton intent="save"><Icon name="Save" size={12} /> Save</ActionButton>+ <ActionButton intent="save" disabled><Icon name="Save" size={12} /> Save</ActionButton>+ <ActionButton intent="config" iconOnly title="Settings"><Icon name="Settings" size={14} /></ActionButton>+ <ActionButton intent="secret" iconOnly title="Credentials"><Icon name="KeyRound" size={14} /></ActionButton>+ <ActionButton intent="tools" iconOnly title="Components"><Icon name="PanelRightClose" size={14} /></ActionButton>+ <ActionButton intent="config"><Icon name="Repeat" size={12} /> Apply All</ActionButton>+ </div>+ <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap', alignItems: 'center' }}>+ <Button><Icon name="FilePlus" size={14} /> New Workflow</Button>+ <Button variant="outline">Cancel</Button>+ <Button variant="secondary">Open</Button>+ <Button variant="ghost">Skip</Button>+ <Button variant="destructive"><Icon name="X" size={12} /> Delete</Button>+ <Button variant="link">Learn more</Button>+ <Button variant="outline" size="icon-sm" title="Close"><Icon name="X" size={14} /></Button>+ <Button disabled>Deploy</Button>+ </div>+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<ButtonsCard />);+</script>+</body>+</html>diff --git a/docs-internal/design-system/components/canvas/ComponentItem.d.ts b/docs-internal/design-system/components/canvas/ComponentItem.d.tsnew file mode 100644index 00000000..14ce2a43--- /dev/null+++ b/docs-internal/design-system/components/canvas/ComponentItem.d.ts@@ -0,0 +1,13 @@+import * as React from 'react';++/** ComponentItem — draggable palette card (icon tile, name, description, grip). */+export interface ComponentItemProps {+ /** Icon node or emoji string; falls back to 📦 */+ icon?: React.ReactNode;+ name: string;+ description?: string;+ onClick?: React.MouseEventHandler;+ style?: React.CSSProperties;+}++export function ComponentItem(props: ComponentItemProps): JSX.Element;diff --git a/docs-internal/design-system/components/canvas/ComponentItem.jsx b/docs-internal/design-system/components/canvas/ComponentItem.jsxnew file mode 100644index 00000000..3e8c4b4f--- /dev/null+++ b/docs-internal/design-system/components/canvas/ComponentItem.jsx@@ -0,0 +1,90 @@+import * as React from 'react';++/**+ * ComponentItem — draggable palette card: icon tile + name + description+ * + grip. Hover lifts -2px with a foreground ring.+ */+export function ComponentItem({ icon, name, description, onClick, style }) {+ const [hover, setHover] = React.useState(false);+ return (+ <div+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ display: 'flex',+ alignItems: 'center',+ gap: 12,+ padding: '8px 12px',+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ background: hover ? 'var(--bg-hover)' : 'var(--bg-app)',+ boxShadow: hover+ ? '0 0 0 2px color-mix(in srgb, var(--fg-default) 15%, transparent), var(--shadow-card-hover)'+ : 'none',+ transform: hover ? 'translateY(-2px)' : 'none',+ transition: 'all 150ms var(--ease-default)',+ cursor: 'grab',+ userSelect: 'none',+ ...style,+ }}+ >+ <div+ style={{+ width: 36,+ height: 36,+ flexShrink: 0,+ borderRadius: 'var(--radius-md, 6px)',+ background: 'var(--bg-elevated)',+ boxShadow: 'inset 0 0 0 1px color-mix(in srgb, var(--border-default) 40%, transparent)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ fontSize: 18,+ }}+ >+ {icon || '📦'}+ </div>+ <div style={{ minWidth: 0, flex: 1 }}>+ <div+ style={{+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: 500,+ color: 'var(--fg-default)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis',+ }}+ >+ {name}+ </div>+ <div+ style={{+ fontFamily: 'var(--font-sans)',+ fontSize: 11,+ lineHeight: 1.3,+ color: 'var(--fg-muted)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis',+ }}+ >+ {description}+ </div>+ </div>+ <svg+ width="14"+ height="14"+ viewBox="0 0 24 24"+ fill="none"+ stroke="var(--fg-faint)"+ strokeWidth="2"+ style={{ flexShrink: 0, opacity: hover ? 0.8 : 0.5, transition: 'opacity 150ms' }}+ >+ <circle cx="9" cy="5" r="1"></circle><circle cx="9" cy="12" r="1"></circle><circle cx="9" cy="19" r="1"></circle>+ <circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="19" r="1"></circle>+ </svg>+ </div>+ );+}diff --git a/docs-internal/design-system/components/canvas/ComponentItem.prompt.md b/docs-internal/design-system/components/canvas/ComponentItem.prompt.mdnew file mode 100644index 00000000..88b82822--- /dev/null+++ b/docs-internal/design-system/components/canvas/ComponentItem.prompt.md@@ -0,0 +1,9 @@+Component-palette row: what users drag onto the canvas.++```jsx+<ComponentItem icon="🤖" name="AI Agent" description="LangGraph agent with memory and tools" />+<ComponentItem icon="📱" name="WhatsApp Send" description="Send a WhatsApp message" />+```++- Stack in a single-column grid with 8px gap inside a 320px palette panel.+- Description truncates to one line; keep it under ~6 words.diff --git a/docs-internal/design-system/components/canvas/ModeToggle.d.ts b/docs-internal/design-system/components/canvas/ModeToggle.d.tsnew file mode 100644index 00000000..00f5c55e--- /dev/null+++ b/docs-internal/design-system/components/canvas/ModeToggle.d.ts@@ -0,0 +1,11 @@+import * as React from 'react';++/** ModeToggle — segmented Normal/Dev toolbar control (Normal hides advanced nodes). */+export interface ModeToggleProps {+ /** Active mode. Default 'normal' */+ mode?: 'normal' | 'dev';+ onChange?: (mode: 'normal' | 'dev') => void;+ style?: React.CSSProperties;+}++export function ModeToggle(props: ModeToggleProps): JSX.Element;diff --git a/docs-internal/design-system/components/canvas/ModeToggle.jsx b/docs-internal/design-system/components/canvas/ModeToggle.jsxnew file mode 100644index 00000000..1dbc5bb1--- /dev/null+++ b/docs-internal/design-system/components/canvas/ModeToggle.jsx@@ -0,0 +1,58 @@+import * as React from 'react';++/**+ * ModeToggle — segmented Normal/Dev control from the top toolbar.+ * Active segment gets the role's soft tint (green=Normal, purple=Dev).+ */+export function ModeToggle({ mode = 'normal', onChange, style }) {+ const seg = (id, label, color, dotPath) => {+ const isActive = mode === id;+ return (+ <button+ type="button"+ onClick={() => !isActive && onChange && onChange(id)}+ style={{+ display: 'flex',+ alignItems: 'center',+ gap: 4,+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid ' + (isActive ? `color-mix(in srgb, ${color} 30%, transparent)` : 'transparent'),+ background: isActive ? `color-mix(in srgb, ${color} 8%, transparent)` : 'transparent',+ color: isActive ? color : 'var(--fg-muted)',+ fontFamily: 'var(--font-sans)',+ fontSize: 12,+ fontWeight: 600,+ padding: '4px 10px',+ cursor: isActive ? 'default' : 'pointer',+ transition: 'all var(--dur-default, 180ms) var(--ease-default)',+ }}+ >+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">+ {dotPath}+ </svg>+ {label}+ </button>+ );+ };+ return (+ <div+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ borderRadius: 'var(--radius-md, 6px)',+ border: '1px solid var(--border-default)',+ background: 'var(--surface-card)',+ padding: 2,+ gap: 2,+ ...style,+ }}+ >+ {seg('normal', 'Normal', 'var(--node-tool)', (+ <g><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></g>+ ))}+ {seg('dev', 'Dev', 'var(--node-agent)', (+ <polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>+ ))}+ </div>+ );+}diff --git a/docs-internal/design-system/components/canvas/ModeToggle.prompt.md b/docs-internal/design-system/components/canvas/ModeToggle.prompt.mdnew file mode 100644index 00000000..6f2aa1b6--- /dev/null+++ b/docs-internal/design-system/components/canvas/ModeToggle.prompt.md@@ -0,0 +1,6 @@+Normal/Dev segmented toggle from the toolbar (Normal = AI components only; Dev = everything).++```jsx+const [mode, setMode] = React.useState('normal');+<ModeToggle mode={mode} onChange={setMode} />+```diff --git a/docs-internal/design-system/components/canvas/SquareNode.d.ts b/docs-internal/design-system/components/canvas/SquareNode.d.tsnew file mode 100644index 00000000..cb315a6f--- /dev/null+++ b/docs-internal/design-system/components/canvas/SquareNode.d.ts@@ -0,0 +1,38 @@+import * as React from 'react';++/**+ * SquareNode — MachinaOS canvas node: accent-bordered icon square with+ * status pip, gear button, connection handles, and label below.+ *+ * @startingPoint section="Canvas" subtitle="Workflow canvas node with pip, gear and handles" viewport="700x220"+ */+export interface SquareNodeProps {+ /** Icon node — emoji string, <Icon/>, or <img> (~28px) */+ icon?: React.ReactNode;+ /** Label rendered below the square */+ label?: string;+ /** Node accent color — use a node role token, e.g. 'var(--node-agent)'. Default dracula cyan */+ color?: string;+ /** Status pip state. 'listening' = trigger armed/waiting (continuous breathing glow). Default 'idle' */+ status?: 'idle' | 'executing' | 'listening' | 'waiting' | 'success' | 'error';+ /** Selected = solid accent border + ring */+ selected?: boolean;+ /** Executing = three-layer pulse glow (needs tokens/animations.css) */+ executing?: boolean;+ /** Trigger node: no input handle, lightning ⚡ badge; pair with status="listening" for the armed pulse */+ trigger?: boolean;+ /** Glow/pulse color — theme-contrast, independent of the fill `color`. Defaults to `color`. Set to a high-contrast accent for visibility on the active theme background. */+ pulseColor?: string;+ showGear?: boolean;+ showInput?: boolean;+ showOutput?: boolean;+ /** Top handle — for tool-capable nodes connecting to agents */+ showToolOutput?: boolean;+ /** Square size in px. Default 64 */+ size?: number;+ onClick?: React.MouseEventHandler;+ onGearClick?: React.MouseEventHandler;+ style?: React.CSSProperties;+}++export function SquareNode(props: SquareNodeProps): JSX.Element;diff --git a/docs-internal/design-system/components/canvas/SquareNode.jsx b/docs-internal/design-system/components/canvas/SquareNode.jsxnew file mode 100644index 00000000..77eeb2d3--- /dev/null+++ b/docs-internal/design-system/components/canvas/SquareNode.jsx@@ -0,0 +1,229 @@+import * as React from 'react';++/**+ * SquareNode — MachinaOS canvas node. 64px icon square with accent-tinted+ * 2px border + 135° gradient fill, status pip (top-left), gear button+ * (top-right), in/out connection handles, label below. Executing nodes+ * pulse a three-layer glow (requires tokens/animations.css).+ *+ * Trigger variant (`trigger`): no input handle, a lightning ⚡ badge, and a+ * continuous "listening/armed" breathing pulse while waiting for events+ * (status="listening"). The glow uses `pulseColor` — a theme-chosen high+ * contrast color, independent of the node's role fill — so it stays visible+ * on any theme background.+ */+const PIP_COLORS = {+ idle: 'var(--fg-faint)',+ executing: null, // glow color+ listening: null, // glow color+ waiting: 'var(--warning)',+ success: 'var(--success)',+ error: 'var(--destructive)',+};++export function SquareNode({+ icon,+ label,+ color = 'var(--dracula-cyan)',+ status = 'idle',+ selected = false,+ executing = false,+ trigger = false,+ pulseColor,+ showGear = true,+ showInput = true,+ showOutput = true,+ showToolOutput = false,+ size = 64,+ onClick,+ onGearClick,+ style,+}) {+ const [hover, setHover] = React.useState(false);+ // Glow/pulse color is theme-contrast (pulseColor), falling back to the+ // node's own role color. The fill/border always use `color`.+ const glow = pulseColor || color;+ const armed = status === 'listening';+ const isPulsing = executing || armed;+ const pipColor = (status === 'executing' || status === 'listening') ? glow : (PIP_COLORS[status] || PIP_COLORS.idle);+ const hasInput = showInput && !trigger; // triggers never take input+ const handleStyle = (pos) => ({+ position: 'absolute',+ width: 12,+ height: 12,+ borderRadius: '50%',+ zIndex: 20,+ ...pos,+ });+ return (+ <div+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ position: 'relative',+ display: 'inline-flex',+ flexDirection: 'column',+ alignItems: 'center',+ cursor: 'pointer',+ userSelect: 'none',+ width: size + 24,+ ...style,+ }}+ >+ <div+ className={executing ? 'machina-pulse' : armed ? 'machina-trigger-armed' : undefined}+ style={{+ '--node-pulse-color': glow,+ position: 'relative',+ width: size,+ height: size,+ borderRadius: 'var(--radius-node, 10px)',+ border: `2px solid ${selected ? color : `color-mix(in srgb, ${color} 60%, transparent)`}`,+ background: `linear-gradient(135deg, color-mix(in srgb, ${color} 18%, var(--surface-card)) 0%, var(--surface-card) 100%)`,+ boxShadow: selected+ ? `0 0 0 1px ${color}, 0 4px 14px color-mix(in srgb, ${color} 32%, transparent)`+ : hover+ ? `0 4px 14px color-mix(in srgb, ${color} 28%, transparent)`+ : `0 2px 8px color-mix(in srgb, ${color} 18%, transparent)`,+ transform: hover && !selected ? 'translateY(-1px)' : 'none',+ transition: 'transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ fontSize: Math.round(size * 0.44),+ color: 'var(--fg-default)',+ }}+ >+ {icon}++ {/* status pip */}+ <span+ className={status === 'listening' ? 'machina-pip-pulse' : undefined}+ style={{+ position: 'absolute',+ top: -4,+ left: -4,+ width: 10,+ height: 10,+ borderRadius: '50%',+ background: pipColor,+ boxShadow:+ status === 'executing' || status === 'listening' || status === 'success' || status === 'error'+ ? `0 0 6px color-mix(in srgb, ${pipColor} 70%, transparent)`+ : 'none',+ zIndex: 30,+ }}+ />++ {/* trigger lightning badge (bottom-left) */}+ {trigger ? (+ <span+ title="Trigger — starts the workflow"+ className={armed ? 'machina-bolt' : undefined}+ style={{+ position: 'absolute',+ bottom: -4,+ left: -4,+ width: 16,+ height: 16,+ borderRadius: 'var(--radius-sm, 4px)',+ background: 'var(--dracula-yellow, #f1fa8c)',+ border: '1px solid var(--surface-card)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ fontSize: 9,+ lineHeight: 1,+ color: '#1a1d21',+ zIndex: 30,+ }}+ >+ ⚡+ </span>+ ) : null}++ {/* gear button */}+ {showGear ? (+ <button+ type="button"+ title="Edit parameters"+ onClick={(e) => { e.stopPropagation(); onGearClick && onGearClick(e); }}+ style={{+ position: 'absolute',+ top: -8,+ right: -8,+ width: 20,+ height: 20,+ borderRadius: '50%',+ background: 'var(--surface-card)',+ border: '1px solid var(--border-default)',+ color: 'var(--fg-muted)',+ fontSize: 10,+ lineHeight: 1,+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ cursor: 'pointer',+ zIndex: 30,+ padding: 0,+ }}+ >+ ⚙️+ </button>+ ) : null}++ {/* handles */}+ {hasInput ? (+ <span+ title="Input"+ style={{+ ...handleStyle({ left: -6, top: '50%', transform: 'translateY(-50%)' }),+ background: 'var(--bg-app)',+ border: '2px solid var(--fg-faint)',+ }}+ />+ ) : null}+ {showOutput ? (+ <span+ title="Output"+ style={{+ ...handleStyle({ right: -6, top: '50%', transform: 'translateY(-50%)' }),+ background: color,+ border: `2px solid ${color}`,+ }}+ />+ ) : null}+ {showToolOutput ? (+ <span+ title="Tool output"+ style={{+ ...handleStyle({ top: -6, left: '50%', transform: 'translateX(-50%)' }),+ background: color,+ border: `2px solid ${color}`,+ }}+ />+ ) : null}+ </div>++ {label ? (+ <div+ style={{+ marginTop: 6,+ fontFamily: 'var(--font-sans)',+ fontSize: 11,+ fontWeight: 600,+ color: 'var(--fg-default)',+ textAlign: 'center',+ maxWidth: size + 40,+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis',+ }}+ >+ {label}+ </div>+ ) : null}+ </div>+ );+}diff --git a/docs-internal/design-system/components/canvas/SquareNode.prompt.md b/docs-internal/design-system/components/canvas/SquareNode.prompt.mdnew file mode 100644index 00000000..11c58f6e--- /dev/null+++ b/docs-internal/design-system/components/canvas/SquareNode.prompt.md@@ -0,0 +1,19 @@+Canvas workflow node — the heart of the MachinaOS visual identity. Color comes from the node's role.++```jsx+<SquareNode icon="🤖" label="AI Agent" color="var(--node-agent)" status="success" showToolOutput />+<SquareNode icon="🧠" label="Simple Memory" color="var(--node-agent)" />+<SquareNode icon={<Icon name="Search" size={26} />} label="Web Search Tool" color="var(--node-tool)" executing status="executing" />+```++- Role colors: agent=purple, model=cyan, tool/skill=green, trigger=pink, workflow=orange.+- Production icons are emoji-style colorful glyphs or brand SVGs — emoji strings are faithful here.+- `executing` adds the signature pulsing glow; pip shows idle/waiting/success/error.+- **Trigger nodes** (`trigger`): no input handle, a lightning ⚡ badge, and with `status="listening"` a continuous *armed* breathing glow (slower/gentler than the execution pulse) — the node is waiting for events. WhatsApp Receive, Cron, Webhook, Start are triggers.+- **Glow visibility:** the pulse/glow uses `pulseColor` (defaults to `color`). Pass a theme-contrast accent so the glow reads on the active background (lapis on vellum, cyan on void, REC-red on grey) — never the node's own faint role tint on a matching surface.+- Place on a dot-grid canvas (`background-image: radial-gradient(...)`) and join nodes with 2px dashed accent edges.++```jsx+<SquareNode icon="💬" label="WhatsApp Receive" color="var(--node-trigger)"+ trigger status="listening" pulseColor="var(--node-pulse-color)" showInput={false} />+```diff --git a/docs-internal/design-system/components/canvas/StatusBar.d.ts b/docs-internal/design-system/components/canvas/StatusBar.d.tsnew file mode 100644index 00000000..2af255d8--- /dev/null+++ b/docs-internal/design-system/components/canvas/StatusBar.d.ts@@ -0,0 +1,16 @@+import * as React from 'react';++/** StatusBar — 24px mono shell-prompt footer with connection pip and live clock. */+export interface StatusBarProps {+ /** Connection state. Default 'online' */+ connection?: 'online' | 'connecting' | 'offline';+ workflowName?: string;+ nodeCount?: number;+ /** Uppercase theme label, e.g. 'DARK'. Default 'DARK' */+ themeName?: string;+ /** Fixed clock text — omit for a live ticking clock */+ clock?: string;+ style?: React.CSSProperties;+}++export function StatusBar(props: StatusBarProps): JSX.Element;diff --git a/docs-internal/design-system/components/canvas/StatusBar.jsx b/docs-internal/design-system/components/canvas/StatusBar.jsxnew file mode 100644index 00000000..a743a9a9--- /dev/null+++ b/docs-internal/design-system/components/canvas/StatusBar.jsx@@ -0,0 +1,85 @@+import * as React from 'react';++/**+ * StatusBar — 24px shell-prompt footer: connection pip, workflow name,+ * node count, theme, live clock. All mono, uppercase, 0.04em tracking.+ */+export function StatusBar({+ connection = 'online',+ workflowName = '—',+ nodeCount = 0,+ themeName = 'DARK',+ clock,+ style,+}) {+ const [time, setTime] = React.useState(() => new Date());+ React.useEffect(() => {+ if (clock !== undefined) return;+ const id = window.setInterval(() => setTime(new Date()), 1000);+ return () => window.clearInterval(id);+ }, [clock]);+ const timeText =+ clock !== undefined+ ? clock+ : time.toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false });++ const tones = {+ online: { color: 'var(--success)', label: 'ONLINE' },+ connecting: { color: 'var(--warning)', label: 'CONNECTING' },+ offline: { color: 'var(--destructive)', label: 'OFFLINE' },+ };+ const tone = tones[connection] || tones.online;+ const sep = <span style={{ opacity: 0.4 }}>|</span>;++ return (+ <div+ role="contentinfo"+ style={{+ display: 'flex',+ height: 'var(--h-statusbar, 24px)',+ alignItems: 'center',+ gap: 12,+ borderTop: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ padding: '0 14px',+ fontFamily: 'var(--font-mono)',+ fontSize: 11,+ letterSpacing: '0.04em',+ color: 'var(--fg-muted)',+ textTransform: 'uppercase',+ whiteSpace: 'nowrap',+ ...style,+ }}+ >+ <span style={{ display: 'flex', alignItems: 'center', gap: 6, fontWeight: 500, color: tone.color }}>+ <span+ style={{+ width: 6,+ height: 6,+ borderRadius: '50%',+ background: tone.color,+ display: 'inline-block',+ animation: connection === 'online' ? 'machina-pip-blink 2s ease-in-out infinite' : 'none',+ }}+ />+ {tone.label}+ </span>+ {sep}+ <span>+ WF: <span style={{ color: 'var(--fg-default)' }}>{workflowName}</span>+ </span>+ {sep}+ <span>+ NODES: <span style={{ color: 'var(--fg-default)' }}>{nodeCount}</span>+ </span>+ <span style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 12 }}>+ <span>+ THEME: <span style={{ color: 'var(--fg-default)' }}>{themeName}</span>+ </span>+ {sep}+ <span style={{ fontVariantNumeric: 'tabular-nums' }}>{timeText}</span>+ </span>+ <style>{'@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }'}</style>+ </div>+ );+}diff --git a/docs-internal/design-system/components/canvas/StatusBar.prompt.md b/docs-internal/design-system/components/canvas/StatusBar.prompt.mdnew file mode 100644index 00000000..b7b355d9--- /dev/null+++ b/docs-internal/design-system/components/canvas/StatusBar.prompt.md@@ -0,0 +1,8 @@+Bottom system console line — reads like a shell prompt.++```jsx+<StatusBar connection="online" workflowName="WhatsApp Assistant" nodeCount={12} themeName="DARK" />+```++- Always 24px, pinned below the canvas, above nothing.+- Everything mono uppercase; values in `--fg-default`, labels muted.diff --git a/docs-internal/design-system/components/canvas/WorkflowCard.d.ts b/docs-internal/design-system/components/canvas/WorkflowCard.d.tsnew file mode 100644index 00000000..a7555e95--- /dev/null+++ b/docs-internal/design-system/components/canvas/WorkflowCard.d.ts@@ -0,0 +1,14 @@+import * as React from 'react';++/** WorkflowCard — sidebar saved-workflow card; selected = 3px accent left edge. */+export interface WorkflowCardProps {+ name: string;+ nodeCount?: number;+ /** Formatted timestamp, e.g. "Jun 11, 09:14" */+ modified?: string;+ selected?: boolean;+ onClick?: React.MouseEventHandler;+ style?: React.CSSProperties;+}++export function WorkflowCard(props: WorkflowCardProps): JSX.Element;diff --git a/docs-internal/design-system/components/canvas/WorkflowCard.jsx b/docs-internal/design-system/components/canvas/WorkflowCard.jsxnew file mode 100644index 00000000..52629ddd--- /dev/null+++ b/docs-internal/design-system/components/canvas/WorkflowCard.jsx@@ -0,0 +1,76 @@+import * as React from 'react';++/**+ * WorkflowCard — sidebar saved-workflow card. Selected gets a 3px accent+ * left edge; metadata row is mono.+ */+export function WorkflowCard({ name, nodeCount = 0, modified, selected = false, onClick, style }) {+ const [hover, setHover] = React.useState(false);+ return (+ <div+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ position: 'relative',+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid ' + (selected ? 'var(--accent)' : 'var(--border-default)'),+ borderLeftWidth: selected ? 3 : 1,+ background: selected ? 'var(--bg-active)' : hover ? 'var(--bg-hover)' : 'var(--bg-app)',+ padding: 12,+ cursor: 'pointer',+ transition: 'background var(--dur-default, 180ms) var(--ease-default)',+ userSelect: 'none',+ ...style,+ }}+ >+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 6 }}>+ <span+ style={{+ width: 24,+ height: 24,+ flexShrink: 0,+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid ' + (selected ? 'var(--accent)' : 'var(--border-default)'),+ background: selected ? 'color-mix(in srgb, var(--accent) 20%, transparent)' : 'var(--bg-elevated)',+ color: selected ? 'var(--accent)' : 'var(--fg-muted)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ }}+ >+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">+ <polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>+ </svg>+ </span>+ <span+ style={{+ flex: 1,+ minWidth: 0,+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ fontWeight: 500,+ color: selected ? 'var(--accent)' : 'var(--fg-default)',+ whiteSpace: 'nowrap',+ overflow: 'hidden',+ textOverflow: 'ellipsis',+ }}+ >+ {name}+ </span>+ </div>+ <div+ style={{+ display: 'flex',+ justifyContent: 'space-between',+ fontFamily: 'var(--font-mono)',+ fontSize: 11,+ color: selected ? 'var(--fg-default)' : 'var(--fg-muted)',+ }}+ >+ <span>{nodeCount} nodes</span>+ <span>{modified}</span>+ </div>+ </div>+ );+}diff --git a/docs-internal/design-system/components/canvas/WorkflowCard.prompt.md b/docs-internal/design-system/components/canvas/WorkflowCard.prompt.mdnew file mode 100644index 00000000..fb72c996--- /dev/null+++ b/docs-internal/design-system/components/canvas/WorkflowCard.prompt.md@@ -0,0 +1,8 @@+Saved-workflow card for the left sidebar list.++```jsx+<WorkflowCard name="WhatsApp Assistant" nodeCount={12} modified="Jun 11, 09:14" selected />+<WorkflowCard name="Daily Email Digest" nodeCount={5} modified="Jun 9, 18:30" />+```++- Date format: `Mon D, HH:MM` (short month). Metadata row is mono.diff --git a/docs-internal/design-system/components/canvas/canvas.card.html b/docs-internal/design-system/components/canvas/canvas.card.htmlnew file mode 100644index 00000000..9d0c87bb--- /dev/null+++ b/docs-internal/design-system/components/canvas/canvas.card.html@@ -0,0 +1,48 @@+<!-- @dsCard group="Components" viewport="700x330" name="Canvas" subtitle="SquareNode states, ComponentItem, WorkflowCard, ModeToggle, StatusBar" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=2"></script>+</head>+<body style="background: var(--bg-canvas); margin: 0;">+<div id="root"></div>+<script type="text/babel">+const { SquareNode, ComponentItem, WorkflowCard, ModeToggle, StatusBar, Icon } = window.MachinaOSDesignSystem_2559cf;++function CanvasCard() {+ const [mode, setMode] = React.useState('normal');+ return (+ <div style={{ display: 'flex', flexDirection: 'column' }}>+ <div style={{ display: 'flex', gap: 18, alignItems: 'flex-start', padding: '18px 16px 10px', backgroundImage: 'radial-gradient(color-mix(in srgb, var(--fg-muted) 30%, transparent) 1px, transparent 1px)', backgroundSize: '20px 20px' }}>+ <SquareNode icon="🤖" label="AI Agent" color="var(--node-agent)" status="success" showToolOutput />+ <SquareNode icon="🧠" label="Simple Memory" color="var(--node-agent)" />+ <SquareNode icon={<Icon name="Search" size={26} />} label="Web Search" color="var(--node-tool)" executing status="executing" />+ <SquareNode icon="💬" label="WhatsApp" color="var(--node-trigger)" status="error" selected />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8, flex: 1, minWidth: 0 }}>+ <ComponentItem icon="🤖" name="AI Agent" description="LangGraph agent with memory and tools" />+ <ComponentItem icon="📱" name="WhatsApp Send" description="Send a WhatsApp message" />+ </div>+ </div>+ <div style={{ display: 'flex', gap: 14, alignItems: 'flex-start', padding: '8px 16px 14px' }}>+ <div style={{ width: 230 }}>+ <WorkflowCard name="WhatsApp Assistant" nodeCount={12} modified="Jun 11, 09:14" selected />+ </div>+ <div style={{ width: 230 }}>+ <WorkflowCard name="Daily Email Digest" nodeCount={5} modified="Jun 9, 18:30" />+ </div>+ <ModeToggle mode={mode} onChange={setMode} />+ </div>+ <StatusBar connection="online" workflowName="WhatsApp Assistant" nodeCount={12} themeName="DARK" clock="14:02:33" />+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<CanvasCard />);+</script>+</body>+</html>diff --git a/docs-internal/design-system/components/display/Avatar.d.ts b/docs-internal/design-system/components/display/Avatar.d.tsnew file mode 100644index 00000000..ace3e554--- /dev/null+++ b/docs-internal/design-system/components/display/Avatar.d.ts@@ -0,0 +1,16 @@+import * as React from 'react';++/** Avatar — initials in a soft accent tile (providers, agents, users). */+export interface AvatarProps {+ /** Full name; initials derived from first two words */+ name: string;+ /** Accent color. Default var(--accent) */+ color?: string;+ /** Pixel size. Default 28 */+ size?: number;+ /** Rounded square instead of circle */+ square?: boolean;+ style?: React.CSSProperties;+}++export function Avatar(props: AvatarProps): JSX.Element;diff --git a/docs-internal/design-system/components/display/Avatar.jsx b/docs-internal/design-system/components/display/Avatar.jsxnew file mode 100644index 00000000..4fe179e0--- /dev/null+++ b/docs-internal/design-system/components/display/Avatar.jsx@@ -0,0 +1,35 @@+import * as React from 'react';++/**+ * Avatar — initials in a soft accent tile. Used for providers/agents+ * in credential rows and chat.+ */+export function Avatar({ name = '', color = 'var(--accent)', size = 28, square = false, style }) {+ const initials = String(name)+ .split(/\s+/)+ .map((w) => w.charAt(0))+ .slice(0, 2)+ .join('')+ .toUpperCase();+ return (+ <span+ title={name}+ style={{+ display: 'inline-flex', alignItems: 'center', justifyContent: 'center',+ width: size, height: size, flexShrink: 0,+ borderRadius: square ? 'var(--radius-md, 6px)' : '50%',+ border: `1px solid color-mix(in srgb, ${color} 35%, transparent)`,+ background: `color-mix(in srgb, ${color} 14%, transparent)`,+ color: color,+ fontFamily: 'var(--font-sans)',+ fontSize: Math.round(size * 0.38),+ fontWeight: 600,+ letterSpacing: '0.02em',+ userSelect: 'none',+ ...style,+ }}+ >+ {initials || '?'}+ </span>+ );+}diff --git a/docs-internal/design-system/components/display/Avatar.prompt.md b/docs-internal/design-system/components/display/Avatar.prompt.mdnew file mode 100644index 00000000..b5e34c28--- /dev/null+++ b/docs-internal/design-system/components/display/Avatar.prompt.md@@ -0,0 +1,8 @@+Initials tile for providers, agents, users. Soft-tint rule applies.++```jsx+<Avatar name="Claude" color="var(--dracula-orange)" />+<Avatar name="AI Agent" color="var(--node-agent)" square />+```++- Real provider logos (OpenAI, Claude, Ollama…) come from @lobehub/icons in production — Avatar is the prototype stand-in.diff --git a/docs-internal/design-system/components/display/Badge.d.ts b/docs-internal/design-system/components/display/Badge.d.tsnew file mode 100644index 00000000..6c6e4432--- /dev/null+++ b/docs-internal/design-system/components/display/Badge.d.ts@@ -0,0 +1,15 @@+import * as React from 'react';++/** Badge — small count or label chip. */+export interface BadgeProps {+ /** Default 'secondary'. 'accent' uses the soft-tint pattern with `color`. */+ variant?: 'default' | 'secondary' | 'outline' | 'accent';+ /** Use mono font (for counts/numbers). Default false */+ mono?: boolean;+ /** Accent color for variant="accent" — pass a token like 'var(--dracula-purple)' */+ color?: string;+ children?: React.ReactNode;+ style?: React.CSSProperties;+}++export function Badge(props: BadgeProps): JSX.Element;diff --git a/docs-internal/design-system/components/display/Badge.jsx b/docs-internal/design-system/components/display/Badge.jsxnew file mode 100644index 00000000..1c9bdad2--- /dev/null+++ b/docs-internal/design-system/components/display/Badge.jsx@@ -0,0 +1,38 @@+import * as React from 'react';++/**+ * Badge — small count / label chip. Mono font for numeric counts.+ */+export function Badge({ variant = 'secondary', mono = false, color, children, style }) {+ const variants = {+ default: { background: 'var(--primary)', color: 'var(--primary-foreground)', border: '1px solid transparent' },+ secondary: { background: 'var(--bg-hover)', color: 'var(--fg-muted)', border: '1px solid transparent' },+ outline: { background: 'transparent', color: 'var(--fg-muted)', border: '1px solid var(--border-default)' },+ accent: {+ background: `color-mix(in srgb, ${color || 'var(--accent)'} 12%, transparent)`,+ color: color || 'var(--accent)',+ border: `1px solid color-mix(in srgb, ${color || 'var(--accent)'} 30%, transparent)`,+ },+ };+ return (+ <span+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 4,+ height: 18,+ borderRadius: 'var(--radius-md, 6px)',+ padding: '0 6px',+ fontFamily: mono ? 'var(--font-mono)' : 'var(--font-sans)',+ fontSize: 11,+ fontWeight: 500,+ lineHeight: 1,+ whiteSpace: 'nowrap',+ ...variants[variant],+ ...style,+ }}+ >+ {children}+ </span>+ );+}diff --git a/docs-internal/design-system/components/display/Badge.prompt.md b/docs-internal/design-system/components/display/Badge.prompt.mdnew file mode 100644index 00000000..47a52ad1--- /dev/null+++ b/docs-internal/design-system/components/display/Badge.prompt.md@@ -0,0 +1,10 @@+Count and label chip — palette section counts, node tags, provider labels.++```jsx+<Badge mono>42</Badge>+<Badge variant="accent" color="var(--dracula-purple)">Agent</Badge>+<Badge variant="outline">MIT</Badge>+```++- Counts are always `mono`.+- `accent` follows the soft-tint rule: 12% fill, 30% border, full-strength text.diff --git a/docs-internal/design-system/components/display/Card.d.ts b/docs-internal/design-system/components/display/Card.d.tsnew file mode 100644index 00000000..e5706125--- /dev/null+++ b/docs-internal/design-system/components/display/Card.d.ts@@ -0,0 +1,12 @@+import * as React from 'react';++/** Card — base surface with optional hover-lift and selected (accent left edge) states. */+export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {+ /** Hover lifts -1px with deeper shadow + tint */+ interactive?: boolean;+ /** Selected = 3px accent left border + active background */+ selected?: boolean;+ children?: React.ReactNode;+}++export function Card(props: CardProps): JSX.Element;diff --git a/docs-internal/design-system/components/display/Card.jsx b/docs-internal/design-system/components/display/Card.jsxnew file mode 100644index 00000000..949b4a55--- /dev/null+++ b/docs-internal/design-system/components/display/Card.jsx@@ -0,0 +1,34 @@+import * as React from 'react';++/**+ * Card — base surface. Optional hover lift (for clickable cards) and+ * selected state (3px accent left edge, like WorkflowSidebar cards).+ */+export function Card({ interactive = false, selected = false, children, style, ...rest }) {+ const [hover, setHover] = React.useState(false);+ return (+ <div+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ borderLeft: selected ? '3px solid var(--accent)' : '1px solid var(--border-default)',+ background: selected+ ? 'var(--bg-active)'+ : interactive && hover+ ? 'var(--bg-hover)'+ : 'var(--surface-card)',+ boxShadow: interactive && hover ? 'var(--shadow-card-hover)' : 'var(--shadow-card)',+ transform: interactive && hover ? 'translateY(-1px)' : 'none',+ transition: 'all var(--dur-default, 180ms) var(--ease-default)',+ cursor: interactive ? 'pointer' : 'default',+ padding: 12,+ ...style,+ }}+ {...rest}+ >+ {children}+ </div>+ );+}diff --git a/docs-internal/design-system/components/display/Card.prompt.md b/docs-internal/design-system/components/display/Card.prompt.mdnew file mode 100644index 00000000..f9abe7b4--- /dev/null+++ b/docs-internal/design-system/components/display/Card.prompt.md@@ -0,0 +1,7 @@+Base surface card. Quiet shadow; personality comes from content, not the card.++```jsx+<Card>Static content</Card>+<Card interactive onClick={open}>Clickable — lifts on hover</Card>+<Card interactive selected>Selected — accent left edge</Card>+```diff --git a/docs-internal/design-system/components/display/ChatBubble.d.ts b/docs-internal/design-system/components/display/ChatBubble.d.tsnew file mode 100644index 00000000..256c20a5--- /dev/null+++ b/docs-internal/design-system/components/display/ChatBubble.d.ts@@ -0,0 +1,13 @@+import * as React from 'react';++/** ChatBubble — dock Chat message; user right/primary-tint, agent left/card. */+export interface ChatBubbleProps {+ /** Default 'agent' */+ role?: 'user' | 'agent';+ /** Mono timestamp below the bubble */+ time?: string;+ children: React.ReactNode;+ style?: React.CSSProperties;+}++export function ChatBubble(props: ChatBubbleProps): JSX.Element;diff --git a/docs-internal/design-system/components/display/ChatBubble.jsx b/docs-internal/design-system/components/display/ChatBubble.jsxnew file mode 100644index 00000000..85362d1b--- /dev/null+++ b/docs-internal/design-system/components/display/ChatBubble.jsx@@ -0,0 +1,31 @@+import * as React from 'react';++/**+ * ChatBubble — dock Chat tab message. User = right, primary tint,+ * square corner bottom-right; agent = left, card surface.+ */+export function ChatBubble({ role = 'agent', time, children, style }) {+ const user = role === 'user';+ return (+ <div style={{ display: 'flex', flexDirection: 'column', alignItems: user ? 'flex-end' : 'flex-start', gap: 3, ...style }}>+ <div+ style={{+ maxWidth: 420,+ borderRadius: user ? '10px 10px 2px 10px' : '10px 10px 10px 2px',+ border: user+ ? '1px solid color-mix(in srgb, var(--primary) 35%, transparent)'+ : '1px solid var(--border-default)',+ background: user+ ? 'color-mix(in srgb, var(--primary) 18%, transparent)'+ : 'var(--surface-card)',+ color: 'var(--fg-default)',+ fontFamily: 'var(--font-sans)', fontSize: 13.5, lineHeight: 1.45,+ padding: '8px 12px',+ }}+ >+ {children}+ </div>+ {time ? <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--fg-faint)', padding: '0 2px' }}>{time}</span> : null}+ </div>+ );+}diff --git a/docs-internal/design-system/components/display/ChatBubble.prompt.md b/docs-internal/design-system/components/display/ChatBubble.prompt.mdnew file mode 100644index 00000000..2b0917f5--- /dev/null+++ b/docs-internal/design-system/components/display/ChatBubble.prompt.md@@ -0,0 +1,8 @@+Chat message for the dock's Chat tab (talking to your agent).++```jsx+<ChatBubble role="user" time="12:03:58">Summarize my unread emails every weekday at 9 AM.</ChatBubble>+<ChatBubble role="agent">Done — I scheduled a daily digest. Want it on WhatsApp too?</ChatBubble>+```++- Agent voice: confirms outcome first, then one short follow-up question.diff --git a/docs-internal/design-system/components/display/Kbd.d.ts b/docs-internal/design-system/components/display/Kbd.d.tsnew file mode 100644index 00000000..c8d49d1b--- /dev/null+++ b/docs-internal/design-system/components/display/Kbd.d.ts@@ -0,0 +1,9 @@+import * as React from 'react';++/** Kbd — keyboard shortcut chip (mono, 2px bottom edge). */+export interface KbdProps {+ children: React.ReactNode;+ style?: React.CSSProperties;+}++export function Kbd(props: KbdProps): JSX.Element;diff --git a/docs-internal/design-system/components/display/Kbd.jsx b/docs-internal/design-system/components/display/Kbd.jsxnew file mode 100644index 00000000..fc0f22ff--- /dev/null+++ b/docs-internal/design-system/components/display/Kbd.jsx@@ -0,0 +1,26 @@+import * as React from 'react';++/**+ * Kbd — keyboard shortcut chip. Mono, bordered, bottom-weighted edge.+ */+export function Kbd({ children, style }) {+ return (+ <kbd+ style={{+ display: 'inline-flex', alignItems: 'center', justifyContent: 'center',+ minWidth: 20, height: 20, padding: '0 5px',+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid var(--border-default)',+ borderBottomWidth: 2,+ background: 'var(--bg-panel)',+ color: 'var(--fg-muted)',+ fontFamily: 'var(--font-mono)',+ fontSize: 10.5,+ lineHeight: 1,+ ...style,+ }}+ >+ {children}+ </kbd>+ );+}diff --git a/docs-internal/design-system/components/display/Kbd.prompt.md b/docs-internal/design-system/components/display/Kbd.prompt.mdnew file mode 100644index 00000000..78c3b598--- /dev/null+++ b/docs-internal/design-system/components/display/Kbd.prompt.md@@ -0,0 +1,5 @@+Keyboard shortcut chip for tooltips, menus, command hints.++```jsx+<span style={{ display: 'inline-flex', gap: 3 }}><Kbd>⌘</Kbd><Kbd>S</Kbd></span>+```diff --git a/docs-internal/design-system/components/display/LogLine.d.ts b/docs-internal/design-system/components/display/LogLine.d.tsnew file mode 100644index 00000000..b416b737--- /dev/null+++ b/docs-internal/design-system/components/display/LogLine.d.ts@@ -0,0 +1,13 @@+import * as React from 'react';++/** LogLine — mono console row with faint [timestamp] and toned message. */+export interface LogLineProps {+ /** e.g. "12:04:03" */+ time?: string;+ /** Named tone or any CSS color. Default 'muted' */+ tone?: 'muted' | 'success' | 'error' | 'warning' | 'agent' | 'model' | 'tool' | 'trigger' | string;+ children: React.ReactNode;+ style?: React.CSSProperties;+}++export function LogLine(props: LogLineProps): JSX.Element;diff --git a/docs-internal/design-system/components/display/LogLine.jsx b/docs-internal/design-system/components/display/LogLine.jsxnew file mode 100644index 00000000..a8e53516--- /dev/null+++ b/docs-internal/design-system/components/display/LogLine.jsx@@ -0,0 +1,25 @@+import * as React from 'react';++/**+ * LogLine — console output row: faint [timestamp] + toned message,+ * all mono. Tones map to event kinds.+ */+const LOG_TONES = {+ muted: 'var(--fg-muted)',+ success: 'var(--success)',+ error: 'var(--destructive)',+ warning: 'var(--warning)',+ agent: 'var(--node-agent)',+ model: 'var(--node-model)',+ tool: 'var(--node-tool)',+ trigger: 'var(--node-trigger)',+};++export function LogLine({ time, tone = 'muted', children, style }) {+ return (+ <div style={{ display: 'flex', gap: 10, fontFamily: 'var(--font-mono)', fontSize: 12, lineHeight: 1.5, ...style }}>+ {time ? <span style={{ color: 'var(--fg-faint)', flexShrink: 0 }}>[{time}]</span> : null}+ <span style={{ color: LOG_TONES[tone] || tone, minWidth: 0, overflowWrap: 'break-word' }}>{children}</span>+ </div>+ );+}diff --git a/docs-internal/design-system/components/display/LogLine.prompt.md b/docs-internal/design-system/components/display/LogLine.prompt.mdnew file mode 100644index 00000000..274d5399--- /dev/null+++ b/docs-internal/design-system/components/display/LogLine.prompt.md@@ -0,0 +1,8 @@+Console/event row — the dock's Console tab is a stack of these.++```jsx+<LogLine time="12:01:33" tone="success">Deployed — listening for incoming messages</LogLine>+<LogLine time="12:04:03" tone="agent">AI Agent → delegating to Web Search Tool</LogLine>+```++- Node-event tones reuse the node role colors; "→" joins actor and action.diff --git a/docs-internal/design-system/components/display/Tabs.d.ts b/docs-internal/design-system/components/display/Tabs.d.tsnew file mode 100644index 00000000..0b6b7edc--- /dev/null+++ b/docs-internal/design-system/components/display/Tabs.d.ts@@ -0,0 +1,13 @@+import * as React from 'react';++/** Tabs — console-dock tab strip; active = accent text + 2px underline. */+export interface TabsProps {+ /** Tab list — strings or {id, label} objects */+ tabs: Array<string | { id: string; label: React.ReactNode }>;+ /** Active tab id */+ active: string;+ onChange?: (id: string) => void;+ style?: React.CSSProperties;+}++export function Tabs(props: TabsProps): JSX.Element;diff --git a/docs-internal/design-system/components/display/Tabs.jsx b/docs-internal/design-system/components/display/Tabs.jsxnew file mode 100644index 00000000..71b92551--- /dev/null+++ b/docs-internal/design-system/components/display/Tabs.jsx@@ -0,0 +1,59 @@+import * as React from 'react';++/**+ * Tabs — console-dock style tab strip (Chat / Console / Terminal).+ * Active tab gets accent text + 2px underline.+ */+export function Tabs({ tabs, active, onChange, style }) {+ return (+ <div+ style={{+ display: 'flex',+ gap: 2,+ borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-panel)',+ padding: '0 8px',+ ...style,+ }}+ >+ {tabs.map((tab) => {+ const id = typeof tab === 'string' ? tab : tab.id;+ const label = typeof tab === 'string' ? tab : tab.label;+ const isActive = active === id;+ return (+ <TabButton key={id} isActive={isActive} onClick={() => onChange && onChange(id)}>+ {label}+ </TabButton>+ );+ })}+ </div>+ );+}++function TabButton({ isActive, onClick, children }) {+ const [hover, setHover] = React.useState(false);+ return (+ <button+ type="button"+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ appearance: 'none',+ background: hover && !isActive ? 'var(--bg-hover)' : 'transparent',+ border: 'none',+ borderBottom: isActive ? '2px solid var(--accent)' : '2px solid transparent',+ color: isActive ? 'var(--accent)' : 'var(--fg-muted)',+ fontFamily: 'var(--font-sans)',+ fontSize: 13,+ fontWeight: isActive ? 600 : 500,+ padding: '8px 12px',+ cursor: 'pointer',+ transition: 'color var(--dur-fast, 90ms), background var(--dur-fast, 90ms)',+ marginBottom: -1,+ }}+ >+ {children}+ </button>+ );+}diff --git a/docs-internal/design-system/components/display/Tabs.prompt.md b/docs-internal/design-system/components/display/Tabs.prompt.mdnew file mode 100644index 00000000..677206ab--- /dev/null+++ b/docs-internal/design-system/components/display/Tabs.prompt.md@@ -0,0 +1,6 @@+Tab strip used by the multi-tab console dock (Chat / Console / Terminal) and settings panels.++```jsx+const [tab, setTab] = React.useState('console');+<Tabs tabs={[{id:'chat',label:'Chat'},{id:'console',label:'Console'},{id:'terminal',label:'Terminal'}]} active={tab} onChange={setTab} />+```diff --git a/docs-internal/design-system/components/display/display.card.html b/docs-internal/design-system/components/display/display.card.htmlnew file mode 100644index 00000000..5c49eff8--- /dev/null+++ b/docs-internal/design-system/components/display/display.card.html@@ -0,0 +1,71 @@+<!-- @dsCard group="Components" viewport="700x430" name="Display" subtitle="Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=3"></script>+</head>+<body style="background: var(--bg-panel); margin: 0; padding: 16px;">+<div id="root"></div>+<script type="text/babel">+const { Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble } = window.MachinaOSDesignSystem_2559cf;++function DisplayCard() {+ const [tab, setTab] = React.useState('console');+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 13 }}>+ <div style={{ display: 'flex', gap: 8, alignItems: 'center', flexWrap: 'wrap' }}>+ <Badge mono>42</Badge>+ <Badge variant="default">New</Badge>+ <Badge variant="outline">MIT</Badge>+ <Badge variant="accent" color="var(--dracula-purple)">Agent</Badge>+ <Badge variant="accent" color="var(--dracula-green)">Tool</Badge>+ <Badge variant="accent" color="var(--dracula-pink)">Trigger</Badge>+ <span style={{ width: 12 }}></span>+ <Avatar name="Claude" color="var(--dracula-orange)" />+ <Avatar name="Open AI" color="var(--dracula-cyan)" />+ <Avatar name="AI Agent" color="var(--node-agent)" square />+ <span style={{ width: 12 }}></span>+ <span style={{ display: 'inline-flex', gap: 3, alignItems: 'center' }}>+ <Kbd>⌘</Kbd><Kbd>S</Kbd>+ <span style={{ fontSize: 11, color: 'var(--fg-muted)', marginLeft: 4 }}>Save</span>+ </span>+ </div>+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: 10 }}>+ <Card><div style={{ fontSize: 13, fontWeight: 600 }}>Static card</div><div style={{ fontSize: 12, color: 'var(--fg-muted)', marginTop: 4 }}>Quiet shadow, 8px radius</div></Card>+ <Card interactive><div style={{ fontSize: 13, fontWeight: 600 }}>Interactive</div><div style={{ fontSize: 12, color: 'var(--fg-muted)', marginTop: 4 }}>Lifts on hover</div></Card>+ <Card interactive selected><div style={{ fontSize: 13, fontWeight: 600 }}>Selected</div><div style={{ fontSize: 12, color: 'var(--fg-muted)', marginTop: 4 }}>Accent left edge</div></Card>+ </div>+ <div>+ <Tabs tabs={[{id:'chat',label:'Chat'},{id:'console',label:'Console'},{id:'terminal',label:'Terminal'}]} active={tab} onChange={setTab} />+ <div style={{ padding: '10px 12px', background: 'var(--bg-app)', borderRadius: '0 0 8px 8px', minHeight: 110 }}>+ {tab === 'console' ? (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>+ <LogLine time="12:01:31">Workflow "WhatsApp Assistant" loaded · 6 nodes</LogLine>+ <LogLine time="12:01:33" tone="success">Deployed — listening for incoming messages</LogLine>+ <LogLine time="12:04:02" tone="model">WhatsApp Receive → message from +1 (555) 014-2236</LogLine>+ <LogLine time="12:04:03" tone="agent">AI Agent → delegating to Web Search Tool</LogLine>+ <LogLine time="12:04:05" tone="error">Web Search Tool → rate limited, retrying in 2s</LogLine>+ </div>+ ) : tab === 'chat' ? (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>+ <ChatBubble role="user" time="12:03:58">Summarize my unread emails every weekday at 9 AM.</ChatBubble>+ <ChatBubble role="agent">Done — I scheduled a daily digest. Want it on WhatsApp too?</ChatBubble>+ </div>+ ) : (+ <LogLine tone="var(--fg-default)"><span style={{ color: 'var(--success)' }}>$</span> machina start</LogLine>+ )}+ </div>+ </div>+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<DisplayCard />);+</script>+</body>+</html>diff --git a/docs-internal/design-system/components/feedback/EmptyState.d.ts b/docs-internal/design-system/components/feedback/EmptyState.d.tsnew file mode 100644index 00000000..1058c168--- /dev/null+++ b/docs-internal/design-system/components/feedback/EmptyState.d.ts@@ -0,0 +1,14 @@+import * as React from 'react';++/** EmptyState — dashed placeholder with icon, title, hint, optional action. */+export interface EmptyStateProps {+ /** Icon node, e.g. <Icon name="FolderOpen" size={32} /> */+ icon?: React.ReactNode;+ title: React.ReactNode;+ hint?: React.ReactNode;+ /** Action node, usually a Button */+ action?: React.ReactNode;+ style?: React.CSSProperties;+}++export function EmptyState(props: EmptyStateProps): JSX.Element;diff --git a/docs-internal/design-system/components/feedback/EmptyState.jsx b/docs-internal/design-system/components/feedback/EmptyState.jsxnew file mode 100644index 00000000..9686f5c5--- /dev/null+++ b/docs-internal/design-system/components/feedback/EmptyState.jsx@@ -0,0 +1,26 @@+import * as React from 'react';++/**+ * EmptyState — dashed drop-zone style placeholder with icon, title,+ * hint and optional action. Matches "No workflows yet" pattern.+ */+export function EmptyState({ icon, title, hint, action, style }) {+ return (+ <div+ style={{+ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center',+ gap: 6, textAlign: 'center',+ border: '2px dashed var(--border-default)',+ borderRadius: 'var(--radius-xl, 12px)',+ background: 'transparent',+ padding: '32px 24px',+ ...style,+ }}+ >+ {icon ? <div style={{ color: 'var(--fg-faint)', marginBottom: 4 }}>{icon}</div> : null}+ <div style={{ fontFamily: 'var(--font-sans)', fontSize: 15, fontWeight: 600, color: 'var(--fg-default)' }}>{title}</div>+ {hint ? <div style={{ fontFamily: 'var(--font-sans)', fontSize: 13, color: 'var(--fg-muted)', maxWidth: 320, lineHeight: 1.45 }}>{hint}</div> : null}+ {action ? <div style={{ marginTop: 10 }}>{action}</div> : null}+ </div>+ );+}diff --git a/docs-internal/design-system/components/feedback/EmptyState.prompt.md b/docs-internal/design-system/components/feedback/EmptyState.prompt.mdnew file mode 100644index 00000000..0e64d9d8--- /dev/null+++ b/docs-internal/design-system/components/feedback/EmptyState.prompt.md@@ -0,0 +1,12 @@+Empty list / drop zone. Dashed 2px border is the product's empty-state signature.++```jsx+<EmptyState+ icon={<Icon name="FolderOpen" size={32} strokeWidth={1.5} />}+ title="No workflows yet"+ hint="Create your first workflow to get started"+ action={<Button><Icon name="FilePlus" size={14} /> New Workflow</Button>}+/>+```++- Title: terse "No X yet". Hint: one imperative sentence, no period needed.diff --git a/docs-internal/design-system/components/feedback/Modal.d.ts b/docs-internal/design-system/components/feedback/Modal.d.tsnew file mode 100644index 00000000..f5d6486d--- /dev/null+++ b/docs-internal/design-system/components/feedback/Modal.d.ts@@ -0,0 +1,19 @@+import * as React from 'react';++/** Modal — overlay dialog with flat scrim, title bar, optional footer. */+export interface ModalProps {+ /** Default true */+ open?: boolean;+ title: React.ReactNode;+ children?: React.ReactNode;+ /** Footer actions (right-aligned), e.g. Cancel + primary Button */+ footer?: React.ReactNode;+ onClose?: () => void;+ /** Max card width in px. Default 440 */+ width?: number;+ /** Render only the dialog card, no fixed overlay (for specimens) */+ inline?: boolean;+ style?: React.CSSProperties;+}++export function Modal(props: ModalProps): JSX.Element | null;diff --git a/docs-internal/design-system/components/feedback/Modal.jsx b/docs-internal/design-system/components/feedback/Modal.jsxnew file mode 100644index 00000000..df0fa001--- /dev/null+++ b/docs-internal/design-system/components/feedback/Modal.jsx@@ -0,0 +1,74 @@+import * as React from 'react';++/**+ * Modal — overlay dialog. Flat rgba scrim (no blur), elevated card with+ * --shadow-modal, 18px title, ghost X. `inline` renders just the dialog+ * card (for specimens / embedding).+ */+export function Modal({ open = true, title, children, footer, onClose, width = 440, inline = false, style }) {+ if (!open) return null;+ const card = (+ <div+ role="dialog"+ aria-modal={!inline}+ style={{+ width: '100%', maxWidth: width,+ borderRadius: 'var(--radius-xl, 12px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-elevated)',+ boxShadow: 'var(--shadow-modal)',+ display: 'flex', flexDirection: 'column',+ overflow: 'hidden',+ ...style,+ }}+ >+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12, padding: '14px 16px', borderBottom: '1px solid var(--border-default)' }}>+ <span style={{ fontFamily: 'var(--font-sans)', fontSize: 18, fontWeight: 600, color: 'var(--fg-default)' }}>{title}</span>+ <CloseButton onClick={onClose} />+ </div>+ <div style={{ padding: 16, color: 'var(--fg-default)', fontFamily: 'var(--font-sans)', fontSize: 14, lineHeight: 1.5 }}>{children}</div>+ {footer ? (+ <div style={{ display: 'flex', justifyContent: 'flex-end', gap: 8, padding: '12px 16px', borderTop: '1px solid var(--border-default)', background: 'var(--bg-panel)' }}>+ {footer}+ </div>+ ) : null}+ </div>+ );+ if (inline) return card;+ return (+ <div+ onClick={(e) => { if (e.target === e.currentTarget && onClose) onClose(); }}+ style={{+ position: 'fixed', inset: 0, zIndex: 100,+ background: 'var(--bg-overlay)',+ display: 'flex', alignItems: 'center', justifyContent: 'center',+ padding: 24,+ }}+ >+ {card}+ </div>+ );+}++function CloseButton({ onClick }) {+ const [hover, setHover] = React.useState(false);+ return (+ <button+ type="button"+ title="Close"+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ width: 26, height: 26, padding: 0, flexShrink: 0,+ borderRadius: 'var(--radius-md, 6px)', border: 'none',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-muted)', cursor: 'pointer',+ display: 'flex', alignItems: 'center', justifyContent: 'center',+ transition: 'background var(--dur-fast, 90ms)',+ }}+ >+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>+ </button>+ );+}diff --git a/docs-internal/design-system/components/feedback/Modal.prompt.md b/docs-internal/design-system/components/feedback/Modal.prompt.mdnew file mode 100644index 00000000..2410feaf--- /dev/null+++ b/docs-internal/design-system/components/feedback/Modal.prompt.md@@ -0,0 +1,13 @@+Dialog for settings, credentials, confirmations. Scrim is flat rgba — never blurred.++```jsx+<Modal title="API Credentials" onClose={close} footer={<>+ <Button variant="outline" onClick={close}>Cancel</Button>+ <Button onClick={save}>Save</Button>+</>}>+ <Input type="password" placeholder="sk-ant-api03-..." />+</Modal>+```++- Titles are short noun phrases: "API Credentials", "Workflow Settings".+- Footer order: secondary left, primary right.diff --git a/docs-internal/design-system/components/feedback/Progress.d.ts b/docs-internal/design-system/components/feedback/Progress.d.tsnew file mode 100644index 00000000..7a8c7482--- /dev/null+++ b/docs-internal/design-system/components/feedback/Progress.d.ts@@ -0,0 +1,14 @@+import * as React from 'react';++/** Progress — slim accent bar with optional label + mono percent. */+export interface ProgressProps {+ /** 0–100 */+ value: number;+ /** Fill color. Default var(--primary) */+ color?: string;+ /** Optional left label; percent renders right in mono */+ label?: React.ReactNode;+ style?: React.CSSProperties;+}++export function Progress(props: ProgressProps): JSX.Element;diff --git a/docs-internal/design-system/components/feedback/Progress.jsx b/docs-internal/design-system/components/feedback/Progress.jsxnew file mode 100644index 00000000..d3a1d3e2--- /dev/null+++ b/docs-internal/design-system/components/feedback/Progress.jsx@@ -0,0 +1,27 @@+import * as React from 'react';++/**+ * Progress — slim bar, accent fill, optional mono value label.+ */+export function Progress({ value = 0, color = 'var(--primary)', label, style }) {+ const pct = Math.max(0, Math.min(100, value));+ return (+ <div style={{ width: '100%', ...style }}>+ {label ? (+ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 5 }}>+ <span style={{ fontFamily: 'var(--font-sans)', fontSize: 12, fontWeight: 500, color: 'var(--fg-muted)' }}>{label}</span>+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 11, color: 'var(--fg-muted)' }}>{pct}%</span>+ </div>+ ) : null}+ <div style={{ height: 6, borderRadius: 'var(--radius-pill, 999px)', background: 'var(--bg-hover)', border: '1px solid var(--border-default)', overflow: 'hidden' }}>+ <div style={{+ height: '100%', width: pct + '%',+ borderRadius: 'inherit',+ background: color,+ boxShadow: `0 0 8px color-mix(in srgb, ${color} 50%, transparent)`,+ transition: 'width var(--dur-slow, 320ms) var(--ease-default)',+ }} />+ </div>+ </div>+ );+}diff --git a/docs-internal/design-system/components/feedback/Progress.prompt.md b/docs-internal/design-system/components/feedback/Progress.prompt.mdnew file mode 100644index 00000000..5971b006--- /dev/null+++ b/docs-internal/design-system/components/feedback/Progress.prompt.md@@ -0,0 +1,7 @@+Progress bar — model downloads (Ollama pulls), batch runs.++```jsx+<Progress value={64} label="Pulling llama3.1:8b" color="var(--dracula-cyan)" />+```++- The accent fill carries a soft glow — same "light = activity" rule as node pulses.diff --git a/docs-internal/design-system/components/feedback/Spinner.d.ts b/docs-internal/design-system/components/feedback/Spinner.d.tsnew file mode 100644index 00000000..288fe5db--- /dev/null+++ b/docs-internal/design-system/components/feedback/Spinner.d.ts@@ -0,0 +1,12 @@+import * as React from 'react';++/** Spinner — rotating arc. */+export interface SpinnerProps {+ /** Pixel size. Default 16 */+ size?: number;+ /** Arc color. Default var(--primary) */+ color?: string;+ style?: React.CSSProperties;+}++export function Spinner(props: SpinnerProps): JSX.Element;diff --git a/docs-internal/design-system/components/feedback/Spinner.jsx b/docs-internal/design-system/components/feedback/Spinner.jsxnew file mode 100644index 00000000..c1b0b428--- /dev/null+++ b/docs-internal/design-system/components/feedback/Spinner.jsx@@ -0,0 +1,16 @@+import * as React from 'react';++/**+ * Spinner — rotating arc in an accent color. Pair with mono label.+ */+export function Spinner({ size = 16, color = 'var(--primary)', style }) {+ return (+ <span style={{ display: 'inline-flex', ...style }}>+ <svg width={size} height={size} viewBox="0 0 24 24" fill="none" style={{ animation: 'machina-spin 0.9s linear infinite' }}>+ <circle cx="12" cy="12" r="9" stroke={`color-mix(in srgb, ${color} 20%, transparent)`} strokeWidth="3"></circle>+ <path d="M21 12a9 9 0 0 0-9-9" stroke={color} strokeWidth="3" strokeLinecap="round"></path>+ </svg>+ <style>{'@keyframes machina-spin { to { transform: rotate(360deg); } }'}</style>+ </span>+ );+}diff --git a/docs-internal/design-system/components/feedback/Spinner.prompt.md b/docs-internal/design-system/components/feedback/Spinner.prompt.mdnew file mode 100644index 00000000..3e23563e--- /dev/null+++ b/docs-internal/design-system/components/feedback/Spinner.prompt.md@@ -0,0 +1,8 @@+Loading arc — validating keys, deploying, model calls.++```jsx+<span style={{ display: 'flex', alignItems: 'center', gap: 8 }}>+ <Spinner size={14} color="var(--dracula-cyan)" />+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 12, color: 'var(--fg-muted)' }}>Deploying...</span>+</span>+```diff --git a/docs-internal/design-system/components/feedback/Toast.d.ts b/docs-internal/design-system/components/feedback/Toast.d.tsnew file mode 100644index 00000000..aa902746--- /dev/null+++ b/docs-internal/design-system/components/feedback/Toast.d.ts@@ -0,0 +1,15 @@+import * as React from 'react';++/** Toast — status notification with pip, soft tint, mono timestamp. */+export interface ToastProps {+ /** Default 'info' */+ tone?: 'success' | 'error' | 'warning' | 'info';+ title: React.ReactNode;+ message?: React.ReactNode;+ /** Mono timestamp, e.g. "12:04:05" */+ time?: string;+ onClose?: () => void;+ style?: React.CSSProperties;+}++export function Toast(props: ToastProps): JSX.Element;diff --git a/docs-internal/design-system/components/feedback/Toast.jsx b/docs-internal/design-system/components/feedback/Toast.jsxnew file mode 100644index 00000000..c63176aa--- /dev/null+++ b/docs-internal/design-system/components/feedback/Toast.jsx@@ -0,0 +1,45 @@+import * as React from 'react';++/**+ * Toast — status notification: soft tint, status pip, mono timestamp.+ */+const TONES = {+ success: 'var(--success)',+ error: 'var(--destructive)',+ warning: 'var(--warning)',+ info: 'var(--info)',+};++export function Toast({ tone = 'info', title, message, time, onClose, style }) {+ const c = TONES[tone] || TONES.info;+ return (+ <div+ role="status"+ style={{+ display: 'flex', alignItems: 'flex-start', gap: 10,+ width: '100%', maxWidth: 360,+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid color-mix(in srgb, ${c} 35%, transparent)`,+ background: `color-mix(in srgb, ${c} 8%, var(--bg-elevated))`,+ boxShadow: 'var(--shadow-card)',+ padding: '10px 12px',+ fontFamily: 'var(--font-sans)',+ ...style,+ }}+ >+ <span style={{ width: 8, height: 8, borderRadius: '50%', background: c, boxShadow: `0 0 6px color-mix(in srgb, ${c} 60%, transparent)`, marginTop: 5, flexShrink: 0 }} />+ <div style={{ flex: 1, minWidth: 0 }}>+ <div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 8 }}>+ <span style={{ fontSize: 13, fontWeight: 600, color: 'var(--fg-default)' }}>{title}</span>+ {time ? <span style={{ fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--fg-faint)', flexShrink: 0 }}>{time}</span> : null}+ </div>+ {message ? <div style={{ fontSize: 12.5, color: 'var(--fg-muted)', marginTop: 2, lineHeight: 1.4 }}>{message}</div> : null}+ </div>+ {onClose ? (+ <button type="button" onClick={onClose} title="Dismiss" style={{ border: 'none', background: 'none', color: 'var(--fg-faint)', cursor: 'pointer', padding: 0, lineHeight: 1, flexShrink: 0 }}>+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>+ </button>+ ) : null}+ </div>+ );+}diff --git a/docs-internal/design-system/components/feedback/Toast.prompt.md b/docs-internal/design-system/components/feedback/Toast.prompt.mdnew file mode 100644index 00000000..78ba05b4--- /dev/null+++ b/docs-internal/design-system/components/feedback/Toast.prompt.md@@ -0,0 +1,9 @@+Notification card — deploy results, validation errors, agent events.++```jsx+<Toast tone="success" title="Workflow deployed" message="Listening for incoming messages" time="12:01:33" onClose={dismiss} />+<Toast tone="error" title="API key invalid" message="Check your Anthropic credentials" />+```++- Titles are terse outcomes ("Workflow deployed", "Saved"); message adds one detail line.+- Stack bottom-right with 8px gap.diff --git a/docs-internal/design-system/components/feedback/Tooltip.d.ts b/docs-internal/design-system/components/feedback/Tooltip.d.tsnew file mode 100644index 00000000..f7847068--- /dev/null+++ b/docs-internal/design-system/components/feedback/Tooltip.d.ts@@ -0,0 +1,12 @@+import * as React from 'react';++/** Tooltip — hover label; inverted capsule (fg-on-bg). */+export interface TooltipProps {+ label: React.ReactNode;+ /** Default 'top' */+ side?: 'top' | 'bottom';+ children: React.ReactNode;+ style?: React.CSSProperties;+}++export function Tooltip(props: TooltipProps): JSX.Element;diff --git a/docs-internal/design-system/components/feedback/Tooltip.jsx b/docs-internal/design-system/components/feedback/Tooltip.jsxnew file mode 100644index 00000000..15ad7b03--- /dev/null+++ b/docs-internal/design-system/components/feedback/Tooltip.jsx@@ -0,0 +1,39 @@+import * as React from 'react';++/**+ * Tooltip — hover label. Dark capsule, full-sentence copy allowed.+ */+export function Tooltip({ label, side = 'top', children, style }) {+ const [show, setShow] = React.useState(false);+ const pos = side === 'bottom'+ ? { top: 'calc(100% + 6px)', left: '50%', transform: 'translateX(-50%)' }+ : { bottom: 'calc(100% + 6px)', left: '50%', transform: 'translateX(-50%)' };+ return (+ <span+ onMouseEnter={() => setShow(true)}+ onMouseLeave={() => setShow(false)}+ style={{ position: 'relative', display: 'inline-flex', ...style }}+ >+ {children}+ {show ? (+ <span+ role="tooltip"+ style={{+ position: 'absolute', zIndex: 60, ...pos,+ background: 'var(--fg-default)',+ color: 'var(--bg-app)',+ fontFamily: 'var(--font-sans)', fontSize: 11.5, fontWeight: 500, lineHeight: 1.35,+ borderRadius: 'var(--radius-md, 6px)',+ padding: '5px 9px',+ whiteSpace: 'nowrap',+ maxWidth: 260,+ boxShadow: 'var(--shadow-card-hover)',+ pointerEvents: 'none',+ }}+ >+ {label}+ </span>+ ) : null}+ </span>+ );+}diff --git a/docs-internal/design-system/components/feedback/Tooltip.prompt.md b/docs-internal/design-system/components/feedback/Tooltip.prompt.mdnew file mode 100644index 00000000..79ccb06b--- /dev/null+++ b/docs-internal/design-system/components/feedback/Tooltip.prompt.md@@ -0,0 +1,9 @@+Hover hint on icon buttons and dense controls.++```jsx+<Tooltip label="Override all agent nodes to use the selected model">+ <ActionButton intent="config" iconOnly><Icon name="Repeat" size={14} /></ActionButton>+</Tooltip>+```++- Tooltip copy may be a full sentence (product convention), but keep it one line.diff --git a/docs-internal/design-system/components/feedback/feedback.card.html b/docs-internal/design-system/components/feedback/feedback.card.htmlnew file mode 100644index 00000000..4fe7eb46--- /dev/null+++ b/docs-internal/design-system/components/feedback/feedback.card.html@@ -0,0 +1,60 @@+<!-- @dsCard group="Components" viewport="700x420" name="Feedback" subtitle="Modal, Toast, Tooltip, Spinner, Progress, EmptyState" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=3"></script>+</head>+<body style="background: var(--bg-panel); margin: 0; padding: 16px;">+<div id="root"></div>+<script type="text/babel">+const { Modal, Toast, Tooltip, Spinner, Progress, EmptyState, Button, ActionButton, Input, Icon } = window.MachinaOSDesignSystem_2559cf;++function FeedbackCard() {+ return (+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16, alignItems: 'start' }}>+ <Modal inline title="API Credentials" onClose={() => {}} footer={<>+ <Button variant="outline">Cancel</Button>+ <Button>Save</Button>+ </>}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>+ <span style={{ fontSize: 12, color: 'var(--fg-muted)' }}>Anthropic API key</span>+ <Input type="password" defaultValue="sk-ant-api03-xxxxxxxx" icon={<Icon name="KeyRound" size={14} />} />+ </div>+ </Modal>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>+ <Toast tone="success" title="Workflow deployed" message="Listening for incoming messages" time="12:01:33" onClose={() => {}} />+ <Toast tone="error" title="API key invalid" message="Check your Anthropic credentials" time="12:02:10" onClose={() => {}} />+ <Toast tone="warning" title="Unsaved changes" time="12:05:44" />+ <div style={{ display: 'flex', alignItems: 'center', gap: 18, marginTop: 2 }}>+ <Tooltip label="Override all agent nodes to use the selected model">+ <ActionButton intent="config" iconOnly><Icon name="Repeat" size={14} /></ActionButton>+ </Tooltip>+ <span style={{ display: 'flex', alignItems: 'center', gap: 8 }}>+ <Spinner size={15} color="var(--dracula-cyan)" />+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 12, color: 'var(--fg-muted)' }}>Deploying...</span>+ </span>+ </div>+ <Progress value={64} label="Pulling llama3.1:8b" color="var(--dracula-cyan)" />+ </div>+ <div style={{ gridColumn: '1 / -1' }}>+ <EmptyState+ icon={<Icon name="FolderOpen" size={30} strokeWidth={1.5} />}+ title="No workflows yet"+ hint="Create your first workflow to get started"+ action={<Button><Icon name="FilePlus" size={14} /> New Workflow</Button>}+ style={{ padding: '20px 24px' }}+ />+ </div>+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<FeedbackCard />);+</script>+</body>+</html>diff --git a/docs-internal/design-system/components/forms/ApiKeyInput.d.ts b/docs-internal/design-system/components/forms/ApiKeyInput.d.tsnew file mode 100644index 00000000..958379ea--- /dev/null+++ b/docs-internal/design-system/components/forms/ApiKeyInput.d.ts@@ -0,0 +1,26 @@+import * as React from 'react';++/** ApiKeyInput — credentials row: masked mono input + eye toggle + Validate/Valid button + optional delete. */+export interface ApiKeyInputProps {+ value?: string;+ defaultValue?: string;+ onChange?: (value: string) => void;+ /** Validate click */+ onSave?: () => void;+ /** Shows the red trash button when isStored */+ onDelete?: () => void;+ /** Default "Enter API key..." */+ placeholder?: string;+ /** Spinner in the button */+ loading?: boolean;+ /** Stored/valid state — green check + savedLabel */+ isStored?: boolean;+ disabled?: boolean;+ /** Default "Validate" */+ saveLabel?: string;+ /** Default "Valid" */+ savedLabel?: string;+ style?: React.CSSProperties;+}++export function ApiKeyInput(props: ApiKeyInputProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/ApiKeyInput.jsx b/docs-internal/design-system/components/forms/ApiKeyInput.jsxnew file mode 100644index 00000000..3d93e9b9--- /dev/null+++ b/docs-internal/design-system/components/forms/ApiKeyInput.jsx@@ -0,0 +1,145 @@+import * as React from 'react';++/**+ * ApiKeyInput — credentials row: mono masked input with eye toggle,+ * Validate button (→ check + "Valid" when stored), optional delete.+ * Source: client/src/components/ui/ApiKeyInput.tsx.+ */+export function ApiKeyInput({+ value,+ defaultValue = '',+ onChange,+ onSave,+ onDelete,+ placeholder = 'Enter API key...',+ loading = false,+ isStored = false,+ disabled = false,+ saveLabel = 'Validate',+ savedLabel = 'Valid',+ style,+}) {+ const [internal, setInternal] = React.useState(defaultValue);+ const [visible, setVisible] = React.useState(false);+ const [focus, setFocus] = React.useState(false);+ const cur = value !== undefined ? value : internal;++ return (+ <div style={{ display: 'flex', alignItems: 'stretch', gap: 4, width: '100%', ...style }}>+ <div style={{ position: 'relative', flex: 1 }}>+ <input+ type={visible ? 'text' : 'password'}+ value={cur}+ placeholder={placeholder}+ disabled={disabled}+ onChange={(e) => { if (value === undefined) setInternal(e.target.value); onChange && onChange(e.target.value); }}+ onFocus={() => setFocus(true)}+ onBlur={() => setFocus(false)}+ style={{+ height: 'var(--h-control, 32px)', width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${focus ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: focus ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)', color: 'var(--fg-default)',+ fontFamily: 'var(--font-mono)', fontSize: 13,+ padding: '0 34px 0 12px', outline: 'none',+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)',+ }}+ />+ <button+ type="button"+ aria-label={visible ? 'Hide key' : 'Show key'}+ onClick={() => setVisible((v) => !v)}+ style={{+ position: 'absolute', top: '50%', right: 8, transform: 'translateY(-50%)',+ border: 'none', background: 'none', padding: 2, cursor: 'pointer',+ color: 'var(--fg-faint)', display: 'flex',+ }}+ >+ {visible ? (+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"></path><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"></path><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"></path><line x1="2" x2="22" y1="2" y2="22"></line></svg>+ ) : (+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"></path><circle cx="12" cy="12" r="3"></circle></svg>+ )}+ </button>+ </div>++ <ValidateButton+ disabled={!String(cur).trim() || disabled || loading}+ loading={loading}+ isStored={isStored}+ onClick={onSave}+ label={isStored ? savedLabel : saveLabel}+ />++ {isStored && onDelete ? <DeleteButton onClick={onDelete} disabled={disabled} /> : null}+ </div>+ );+}++function ValidateButton({ disabled, loading, isStored, onClick, label }) {+ const [hover, setHover] = React.useState(false);+ const bg = isStored+ ? 'color-mix(in srgb, var(--success) 12%, transparent)'+ : hover && !disabled+ ? 'color-mix(in srgb, var(--primary) 85%, var(--bg-app))'+ : 'var(--primary)';+ return (+ <button+ type="button"+ disabled={disabled}+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ display: 'inline-flex', alignItems: 'center', gap: 6,+ height: 'var(--h-control, 32px)', padding: '0 12px',+ borderRadius: 'var(--radius-lg, 8px)',+ border: isStored ? '1px solid color-mix(in srgb, var(--success) 35%, transparent)' : '1px solid transparent',+ background: bg,+ color: isStored ? 'var(--success)' : 'var(--primary-foreground)',+ fontFamily: 'var(--font-sans)', fontSize: 13, fontWeight: 500, lineHeight: 1,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled && !isStored ? 0.5 : 1,+ whiteSpace: 'nowrap', flexShrink: 0,+ transition: 'background var(--dur-default, 180ms)',+ }}+ >+ {loading ? (+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" style={{ animation: 'machina-spin 0.9s linear infinite' }}>+ <path d="M21 12a9 9 0 0 0-9-9" stroke="currentColor" strokeWidth="3" strokeLinecap="round"></path>+ </svg>+ ) : isStored ? (+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><path d="m9 11 3 3L22 4"></path></svg>+ ) : (+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline></svg>+ )}+ {label}+ <style>{'@keyframes machina-spin { to { transform: rotate(360deg); } }'}</style>+ </button>+ );+}++function DeleteButton({ onClick, disabled }) {+ const [hover, setHover] = React.useState(false);+ return (+ <button+ type="button"+ title="Delete stored key"+ disabled={disabled}+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ width: 'var(--h-control, 32px)', height: 'var(--h-control, 32px)', flexShrink: 0,+ borderRadius: 'var(--radius-lg, 8px)', border: '1px solid transparent',+ background: hover ? 'color-mix(in srgb, var(--destructive) 20%, transparent)' : 'color-mix(in srgb, var(--destructive) 10%, transparent)',+ color: 'var(--destructive)', cursor: disabled ? 'not-allowed' : 'pointer',+ display: 'flex', alignItems: 'center', justifyContent: 'center',+ transition: 'background var(--dur-default, 180ms)',+ }}+ >+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path></svg>+ </button>+ );+}diff --git a/docs-internal/design-system/components/forms/ApiKeyInput.prompt.md b/docs-internal/design-system/components/forms/ApiKeyInput.prompt.mdnew file mode 100644index 00000000..f6737fc6--- /dev/null+++ b/docs-internal/design-system/components/forms/ApiKeyInput.prompt.md@@ -0,0 +1,10 @@+Credentials row — one per provider in the API Credentials panel.++```jsx+<ApiKeyInput placeholder="sk-ant-api03-..." onSave={validate} />+<ApiKeyInput defaultValue="sk-ant-xxxx" isStored onSave={()=>{}} onDelete={remove} />+<ApiKeyInput loading defaultValue="gsk_xxxx" onSave={()=>{}} />+```++- Key text is always mono and masked by default (eye toggles).+- Button flow: Validate (primary) → spinner → "Valid" (green soft tint + check). Delete appears only once stored.diff --git a/docs-internal/design-system/components/forms/Checkbox.d.ts b/docs-internal/design-system/components/forms/Checkbox.d.tsnew file mode 100644index 00000000..d7c309f3--- /dev/null+++ b/docs-internal/design-system/components/forms/Checkbox.d.ts@@ -0,0 +1,14 @@+import * as React from 'react';++/** Checkbox — 16px square with optional trailing label. */+export interface CheckboxProps {+ checked?: boolean;+ defaultChecked?: boolean;+ onChange?: (checked: boolean) => void;+ disabled?: boolean;+ /** Trailing label text */+ label?: React.ReactNode;+ style?: React.CSSProperties;+}++export function Checkbox(props: CheckboxProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/Checkbox.jsx b/docs-internal/design-system/components/forms/Checkbox.jsxnew file mode 100644index 00000000..2aa6bd0d--- /dev/null+++ b/docs-internal/design-system/components/forms/Checkbox.jsx@@ -0,0 +1,57 @@+import * as React from 'react';++/**+ * Checkbox — 16px square, primary blue when checked, with label support.+ */+export function Checkbox({ checked, defaultChecked = false, onChange, disabled = false, label, style }) {+ const [internal, setInternal] = React.useState(defaultChecked);+ const isOn = checked !== undefined ? checked : internal;+ const toggle = () => {+ if (disabled) return;+ const next = !isOn;+ if (checked === undefined) setInternal(next);+ onChange && onChange(next);+ };+ return (+ <label+ style={{+ display: 'inline-flex',+ alignItems: 'center',+ gap: 8,+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ userSelect: 'none',+ ...style,+ }}+ >+ <button+ type="button"+ role="checkbox"+ aria-checked={isOn}+ onClick={toggle}+ disabled={disabled}+ style={{+ width: 16,+ height: 16,+ borderRadius: 'var(--radius-sm, 4px)',+ border: '1px solid ' + (isOn ? 'var(--primary)' : 'var(--border-strong)'),+ background: isOn ? 'var(--primary)' : 'var(--bg-input)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ padding: 0,+ cursor: 'inherit',+ transition: 'background var(--dur-fast, 90ms), border-color var(--dur-fast, 90ms)',+ flexShrink: 0,+ }}+ >+ {isOn ? (+ <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="var(--primary-foreground)" strokeWidth="3.5" strokeLinecap="round" strokeLinejoin="round">+ <path d="M20 6 9 17l-5-5"></path>+ </svg>+ ) : null}+ </button>+ {label ? <span style={{ fontFamily: 'var(--font-sans)', fontSize: 14, color: 'var(--fg-default)' }}>{label}</span> : null}+ </label>+ );+}diff --git a/docs-internal/design-system/components/forms/Checkbox.prompt.md b/docs-internal/design-system/components/forms/Checkbox.prompt.mdnew file mode 100644index 00000000..6668d6ff--- /dev/null+++ b/docs-internal/design-system/components/forms/Checkbox.prompt.md@@ -0,0 +1,6 @@+Form checkbox with built-in label.++```jsx+<Checkbox defaultChecked label="Run on startup" />+<Checkbox disabled label="Requires API key" />+```diff --git a/docs-internal/design-system/components/forms/Input.d.ts b/docs-internal/design-system/components/forms/Input.d.tsnew file mode 100644index 00000000..dd9c1bd1--- /dev/null+++ b/docs-internal/design-system/components/forms/Input.d.ts@@ -0,0 +1,11 @@+import * as React from 'react';++/** Input — 32px text field with optional leading icon. */+export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {+ /** Leading icon node, e.g. <Icon name="Search" size={14} /> */+ icon?: React.ReactNode;+ /** Styles for the outer wrapper div */+ wrapperStyle?: React.CSSProperties;+}++export function Input(props: InputProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/Input.jsx b/docs-internal/design-system/components/forms/Input.jsxnew file mode 100644index 00000000..ecf69f71--- /dev/null+++ b/docs-internal/design-system/components/forms/Input.jsx@@ -0,0 +1,47 @@+import * as React from 'react';++/**+ * Input — 32px text field. Optional leading icon (pass a ReactNode).+ * Focus ring is the solarized blue --border-focus.+ */+export function Input({ icon, style, wrapperStyle, ...rest }) {+ const [focus, setFocus] = React.useState(false);+ return (+ <div style={{ position: 'relative', display: 'flex', alignItems: 'center', width: '100%', ...wrapperStyle }}>+ {icon ? (+ <span+ style={{+ position: 'absolute',+ left: 10,+ display: 'flex',+ alignItems: 'center',+ color: 'var(--fg-faint)',+ pointerEvents: 'none',+ }}+ >+ {icon}+ </span>+ ) : null}+ <input+ onFocus={(e) => { setFocus(true); rest.onFocus && rest.onFocus(e); }}+ onBlur={(e) => { setFocus(false); rest.onBlur && rest.onBlur(e); }}+ style={{+ height: 'var(--h-control, 32px)',+ width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${focus ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: focus ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)',+ color: 'var(--fg-default)',+ fontFamily: 'var(--font-sans)',+ fontSize: 14,+ padding: icon ? '0 12px 0 32px' : '0 12px',+ outline: 'none',+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)',+ ...style,+ }}+ {...rest}+ />+ </div>+ );+}diff --git a/docs-internal/design-system/components/forms/Input.prompt.md b/docs-internal/design-system/components/forms/Input.prompt.mdnew file mode 100644index 00000000..2039b9ce--- /dev/null+++ b/docs-internal/design-system/components/forms/Input.prompt.md@@ -0,0 +1,9 @@+Standard 32px text field; search fields get a leading Search icon.++```jsx+<Input placeholder="Search..." icon={<Icon name="Search" size={14} />} />+<Input type="password" placeholder="sk-..." />+```++- Placeholder copy is terse, often with trailing ellipsis: "Search...", "Select model...".+- Focus = blue border + 3px soft ring.diff --git a/docs-internal/design-system/components/forms/RadioGroup.d.ts b/docs-internal/design-system/components/forms/RadioGroup.d.tsnew file mode 100644index 00000000..eb574e23--- /dev/null+++ b/docs-internal/design-system/components/forms/RadioGroup.d.ts@@ -0,0 +1,15 @@+import * as React from 'react';++/** RadioGroup — radio list; options are strings or {value,label}. */+export interface RadioGroupProps {+ options: Array<string | { value: string; label: React.ReactNode }>;+ value?: string;+ defaultValue?: string;+ onChange?: (value: string) => void;+ /** 'column' (default) or 'row' */+ direction?: 'column' | 'row';+ disabled?: boolean;+ style?: React.CSSProperties;+}++export function RadioGroup(props: RadioGroupProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/RadioGroup.jsx b/docs-internal/design-system/components/forms/RadioGroup.jsxnew file mode 100644index 00000000..2af6ce0c--- /dev/null+++ b/docs-internal/design-system/components/forms/RadioGroup.jsx@@ -0,0 +1,45 @@+import * as React from 'react';++/**+ * RadioGroup — vertical or horizontal radio list. 16px circles,+ * primary blue dot when selected.+ */+export function RadioGroup({ options = [], value, defaultValue, onChange, direction = 'column', disabled = false, style }) {+ const [internal, setInternal] = React.useState(defaultValue);+ const current = value !== undefined ? value : internal;+ const norm = options.map((o) => (typeof o === 'string' ? { value: o, label: o } : o));+ const pick = (v) => {+ if (disabled) return;+ if (value === undefined) setInternal(v);+ onChange && onChange(v);+ };+ return (+ <div role="radiogroup" style={{ display: 'flex', flexDirection: direction, gap: direction === 'column' ? 8 : 16, opacity: disabled ? 0.5 : 1, ...style }}>+ {norm.map((o) => {+ const on = o.value === current;+ return (+ <label key={o.value} style={{ display: 'inline-flex', alignItems: 'center', gap: 8, cursor: disabled ? 'not-allowed' : 'pointer', userSelect: 'none' }}>+ <button+ type="button"+ role="radio"+ aria-checked={on}+ disabled={disabled}+ onClick={() => pick(o.value)}+ style={{+ width: 16, height: 16, borderRadius: '50%', padding: 0, flexShrink: 0,+ border: `1px solid ${on ? 'var(--primary)' : 'var(--border-strong)'}`,+ background: 'var(--bg-input)',+ display: 'flex', alignItems: 'center', justifyContent: 'center',+ cursor: 'inherit',+ transition: 'border-color var(--dur-fast, 90ms)',+ }}+ >+ {on ? <span style={{ width: 8, height: 8, borderRadius: '50%', background: 'var(--primary)' }} /> : null}+ </button>+ <span style={{ fontFamily: 'var(--font-sans)', fontSize: 14, color: 'var(--fg-default)' }}>{o.label}</span>+ </label>+ );+ })}+ </div>+ );+}diff --git a/docs-internal/design-system/components/forms/RadioGroup.prompt.md b/docs-internal/design-system/components/forms/RadioGroup.prompt.mdnew file mode 100644index 00000000..251a1bcd--- /dev/null+++ b/docs-internal/design-system/components/forms/RadioGroup.prompt.md@@ -0,0 +1,9 @@+Radio list for exclusive choices (search provider, deploy mode).++```jsx+<RadioGroup defaultValue="duckduckgo" options={[+ { value: 'duckduckgo', label: 'DuckDuckGo (no key required)' },+ { value: 'brave', label: 'Brave Search' },+ { value: 'serper', label: 'Serper' },+]} onChange={setProvider} />+```diff --git a/docs-internal/design-system/components/forms/Select.d.ts b/docs-internal/design-system/components/forms/Select.d.tsnew file mode 100644index 00000000..0a50edd2--- /dev/null+++ b/docs-internal/design-system/components/forms/Select.d.ts@@ -0,0 +1,16 @@+import * as React from 'react';++/** Select — 32px dropdown with custom menu card. Options are strings or {value,label}. */+export interface SelectProps {+ options: Array<string | { value: string; label: React.ReactNode }>;+ value?: string;+ defaultValue?: string;+ onChange?: (value: string) => void;+ /** Default "Select..." — placeholder copy ends with "..." */+ placeholder?: string;+ disabled?: boolean;+ style?: React.CSSProperties;+ wrapperStyle?: React.CSSProperties;+}++export function Select(props: SelectProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/Select.jsx b/docs-internal/design-system/components/forms/Select.jsxnew file mode 100644index 00000000..93037ac1--- /dev/null+++ b/docs-internal/design-system/components/forms/Select.jsx@@ -0,0 +1,93 @@+import * as React from 'react';++/**+ * Select — 32px dropdown matching Input. Custom menu card with+ * check on the selected option. Placeholder copy ends with "...".+ */+export function Select({ options = [], value, defaultValue, onChange, placeholder = 'Select...', disabled = false, style, wrapperStyle }) {+ const [internal, setInternal] = React.useState(defaultValue);+ const [open, setOpen] = React.useState(false);+ const ref = React.useRef(null);+ const current = value !== undefined ? value : internal;+ const norm = options.map((o) => (typeof o === 'string' ? { value: o, label: o } : o));+ const sel = norm.find((o) => o.value === current);++ React.useEffect(() => {+ if (!open) return;+ const close = (e) => { if (ref.current && !ref.current.contains(e.target)) setOpen(false); };+ document.addEventListener('mousedown', close);+ return () => document.removeEventListener('mousedown', close);+ }, [open]);++ const pick = (v) => {+ if (value === undefined) setInternal(v);+ onChange && onChange(v);+ setOpen(false);+ };++ return (+ <div ref={ref} style={{ position: 'relative', width: '100%', ...wrapperStyle }}>+ <button+ type="button"+ disabled={disabled}+ onClick={() => setOpen((o) => !o)}+ style={{+ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8,+ height: 'var(--h-control, 32px)', width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${open ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: open ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)',+ color: sel ? 'var(--fg-default)' : 'var(--fg-faint)',+ fontFamily: 'var(--font-sans)', fontSize: 14, padding: '0 10px 0 12px',+ cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1,+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)',+ textAlign: 'left', whiteSpace: 'nowrap', overflow: 'hidden',+ ...style,+ }}+ >+ <span style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>{sel ? sel.label : placeholder}</span>+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--fg-muted)" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ flexShrink: 0, transform: open ? 'rotate(180deg)' : 'none', transition: 'transform var(--dur-default, 180ms) var(--ease-default)' }}>+ <path d="m6 9 6 6 6-6"></path>+ </svg>+ </button>+ {open ? (+ <div style={{+ position: 'absolute', top: 'calc(100% + 4px)', left: 0, right: 0, zIndex: 50,+ borderRadius: 'var(--radius-lg, 8px)', border: '1px solid var(--border-default)',+ background: 'var(--bg-elevated)', boxShadow: 'var(--shadow-modal)',+ padding: 4, maxHeight: 220, overflowY: 'auto',+ }}>+ {norm.map((o) => (+ <SelectOption key={o.value} option={o} selected={o.value === current} onPick={pick} />+ ))}+ </div>+ ) : null}+ </div>+ );+}++function SelectOption({ option, selected, onPick }) {+ const [hover, setHover] = React.useState(false);+ return (+ <button+ type="button"+ onClick={() => onPick(option.value)}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8,+ width: '100%', border: 'none', textAlign: 'left',+ borderRadius: 'var(--radius-md, 6px)',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-default)', fontFamily: 'var(--font-sans)', fontSize: 13.5,+ padding: '7px 10px', cursor: 'pointer',+ }}+ >+ {option.label}+ {selected ? (+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="var(--primary)" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round"><path d="M20 6 9 17l-5-5"></path></svg>+ ) : null}+ </button>+ );+}diff --git a/docs-internal/design-system/components/forms/Select.prompt.md b/docs-internal/design-system/components/forms/Select.prompt.mdnew file mode 100644index 00000000..8e65639d--- /dev/null+++ b/docs-internal/design-system/components/forms/Select.prompt.md@@ -0,0 +1,8 @@+Dropdown for model pickers, provider choices, theme selection.++```jsx+<Select placeholder="Select model..." options={['claude-sonnet-4-5', 'gpt-4o', 'llama3.1:8b']} onChange={(v) => setModel(v)} />+```++- Same 32px metrics + focus ring as Input.+- Placeholder copy is terse with trailing ellipsis ("Select model...").diff --git a/docs-internal/design-system/components/forms/Slider.d.ts b/docs-internal/design-system/components/forms/Slider.d.tsnew file mode 100644index 00000000..1b2a3981--- /dev/null+++ b/docs-internal/design-system/components/forms/Slider.d.ts@@ -0,0 +1,17 @@+import * as React from 'react';++/** Slider — range control (settings compaction ratio, volumes). */+export interface SliderProps {+ value?: number;+ defaultValue?: number;+ min?: number;+ max?: number;+ step?: number;+ onChange?: (value: number) => void;+ /** Fill + thumb ring color. Default var(--primary) */+ color?: string;+ disabled?: boolean;+ style?: React.CSSProperties;+}++export function Slider(props: SliderProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/Slider.jsx b/docs-internal/design-system/components/forms/Slider.jsxnew file mode 100644index 00000000..e2f320f3--- /dev/null+++ b/docs-internal/design-system/components/forms/Slider.jsx@@ -0,0 +1,65 @@+import * as React from 'react';++/**+ * Slider — settings-panel range control: 6px track, accent fill,+ * 16px draggable thumb. Used with a % readout in the row label.+ */+export function Slider({ value, defaultValue = 50, min = 0, max = 100, step = 1, onChange, color = 'var(--primary)', disabled = false, style }) {+ const [internal, setInternal] = React.useState(defaultValue);+ const cur = value !== undefined ? value : internal;+ const trackRef = React.useRef(null);+ const draggingRef = React.useRef(false);+ const pct = ((cur - min) / (max - min)) * 100;++ const setFromClientX = React.useCallback((clientX) => {+ const el = trackRef.current;+ if (!el) return;+ const r = el.getBoundingClientRect();+ let p = (clientX - r.left) / r.width;+ p = Math.max(0, Math.min(1, p));+ let v = min + p * (max - min);+ v = Math.round(v / step) * step;+ v = Math.max(min, Math.min(max, v));+ if (value === undefined) setInternal(v);+ onChange && onChange(v);+ }, [min, max, step, value, onChange]);++ React.useEffect(() => {+ const move = (e) => { if (draggingRef.current) setFromClientX(e.clientX); };+ const up = () => { draggingRef.current = false; };+ window.addEventListener('pointermove', move);+ window.addEventListener('pointerup', up);+ return () => { window.removeEventListener('pointermove', move); window.removeEventListener('pointerup', up); };+ }, [setFromClientX]);++ return (+ <div+ ref={trackRef}+ role="slider"+ aria-valuemin={min}+ aria-valuemax={max}+ aria-valuenow={cur}+ onPointerDown={(e) => {+ if (disabled) return;+ draggingRef.current = true;+ setFromClientX(e.clientX);+ }}+ style={{+ position: 'relative', height: 20, display: 'flex', alignItems: 'center',+ cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1,+ touchAction: 'none', userSelect: 'none', width: '100%',+ ...style,+ }}+ >+ <div style={{ position: 'absolute', left: 0, right: 0, height: 6, borderRadius: 'var(--radius-pill, 999px)', background: 'var(--bg-hover)', border: '1px solid var(--border-default)' }} />+ <div style={{ position: 'absolute', left: 0, width: pct + '%', height: 6, borderRadius: 'var(--radius-pill, 999px)', background: color }} />+ <div style={{+ position: 'absolute', left: `calc(${pct}% - 8px)`,+ width: 16, height: 16, borderRadius: '50%',+ background: 'var(--bg-elevated)',+ border: `2px solid ${color}`,+ boxShadow: 'var(--shadow-card)',+ }} />+ </div>+ );+}diff --git a/docs-internal/design-system/components/forms/Slider.prompt.md b/docs-internal/design-system/components/forms/Slider.prompt.mdnew file mode 100644index 00000000..ead03c6a--- /dev/null+++ b/docs-internal/design-system/components/forms/Slider.prompt.md@@ -0,0 +1,7 @@+Range control — compaction ratio, thresholds. Pair with a bold accent % readout.++```jsx+<Slider min={5} max={95} step={5} defaultValue={80} color="var(--node-model)" onChange={setRatio} />+```++- Show min/center/max tick labels below in 10px muted text when range context matters.diff --git a/docs-internal/design-system/components/forms/Switch.d.ts b/docs-internal/design-system/components/forms/Switch.d.tsnew file mode 100644index 00000000..cf73b225--- /dev/null+++ b/docs-internal/design-system/components/forms/Switch.d.ts@@ -0,0 +1,13 @@+import * as React from 'react';++/** Switch — 36×20 toggle; on = primary blue. Controlled via checked/onChange or uncontrolled via defaultChecked. */+export interface SwitchProps {+ checked?: boolean;+ defaultChecked?: boolean;+ /** Called with the next boolean value */+ onChange?: (checked: boolean) => void;+ disabled?: boolean;+ style?: React.CSSProperties;+}++export function Switch(props: SwitchProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/Switch.jsx b/docs-internal/design-system/components/forms/Switch.jsxnew file mode 100644index 00000000..3bfd3bbf--- /dev/null+++ b/docs-internal/design-system/components/forms/Switch.jsx@@ -0,0 +1,52 @@+import * as React from 'react';++/**+ * Switch — 36×20 toggle. On = primary blue track.+ */+export function Switch({ checked, defaultChecked = false, onChange, disabled = false, style, ...rest }) {+ const [internal, setInternal] = React.useState(defaultChecked);+ const isOn = checked !== undefined ? checked : internal;+ const toggle = () => {+ if (disabled) return;+ const next = !isOn;+ if (checked === undefined) setInternal(next);+ onChange && onChange(next);+ };+ return (+ <button+ type="button"+ role="switch"+ aria-checked={isOn}+ onClick={toggle}+ disabled={disabled}+ style={{+ position: 'relative',+ width: 36,+ height: 20,+ borderRadius: 'var(--radius-pill, 999px)',+ border: '1px solid ' + (isOn ? 'transparent' : 'var(--border-default)'),+ background: isOn ? 'var(--primary)' : 'var(--bg-hover)',+ cursor: disabled ? 'not-allowed' : 'pointer',+ opacity: disabled ? 0.5 : 1,+ padding: 0,+ transition: 'background var(--dur-default, 180ms) var(--ease-default)',+ flexShrink: 0,+ ...style,+ }}+ {...rest}+ >+ <span+ style={{+ position: 'absolute',+ top: 2,+ left: isOn ? 17 : 2,+ width: 14,+ height: 14,+ borderRadius: '50%',+ background: isOn ? 'var(--primary-foreground)' : 'var(--fg-faint)',+ transition: 'left var(--dur-default, 180ms) var(--ease-default), background var(--dur-default, 180ms)',+ }}+ />+ </button>+ );+}diff --git a/docs-internal/design-system/components/forms/Switch.prompt.md b/docs-internal/design-system/components/forms/Switch.prompt.mdnew file mode 100644index 00000000..ad474397--- /dev/null+++ b/docs-internal/design-system/components/forms/Switch.prompt.md@@ -0,0 +1,8 @@+Settings toggle (sound effects, theme options, node flags).++```jsx+<label style={{ display: 'flex', alignItems: 'center', gap: 8 }}>+ <Switch defaultChecked onChange={(on) => console.log(on)} />+ <span style={{ fontSize: 14 }}>Sound effects</span>+</label>+```diff --git a/docs-internal/design-system/components/forms/Textarea.d.ts b/docs-internal/design-system/components/forms/Textarea.d.tsnew file mode 100644index 00000000..9a758511--- /dev/null+++ b/docs-internal/design-system/components/forms/Textarea.d.ts@@ -0,0 +1,9 @@+import * as React from 'react';++/** Textarea — multi-line input; mono variant for system prompts / code. */+export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {+ /** Use mono font (prompts, code, JSON). Default false */+ mono?: boolean;+}++export function Textarea(props: TextareaProps): JSX.Element;diff --git a/docs-internal/design-system/components/forms/Textarea.jsx b/docs-internal/design-system/components/forms/Textarea.jsxnew file mode 100644index 00000000..aab39134--- /dev/null+++ b/docs-internal/design-system/components/forms/Textarea.jsx@@ -0,0 +1,32 @@+import * as React from 'react';++/**+ * Textarea — multi-line Input. Mono option for prompts/code.+ */+export function Textarea({ mono = false, rows = 4, style, ...rest }) {+ const [focus, setFocus] = React.useState(false);+ return (+ <textarea+ rows={rows}+ onFocus={(e) => { setFocus(true); rest.onFocus && rest.onFocus(e); }}+ onBlur={(e) => { setFocus(false); rest.onBlur && rest.onBlur(e); }}+ style={{+ width: '100%',+ borderRadius: 'var(--radius-lg, 8px)',+ border: `1px solid ${focus ? 'var(--border-focus)' : 'var(--border-default)'}`,+ boxShadow: focus ? '0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent)' : 'none',+ background: 'var(--bg-input)',+ color: 'var(--fg-default)',+ fontFamily: mono ? 'var(--font-mono)' : 'var(--font-sans)',+ fontSize: mono ? 13 : 14,+ lineHeight: 1.5,+ padding: '8px 12px',+ outline: 'none',+ resize: 'vertical',+ transition: 'border-color var(--dur-default, 180ms), box-shadow var(--dur-default, 180ms)',+ ...style,+ }}+ {...rest}+ />+ );+}diff --git a/docs-internal/design-system/components/forms/Textarea.prompt.md b/docs-internal/design-system/components/forms/Textarea.prompt.mdnew file mode 100644index 00000000..62a11f75--- /dev/null+++ b/docs-internal/design-system/components/forms/Textarea.prompt.md@@ -0,0 +1,6 @@+Multi-line field — agent system prompts, skill instructions, JSON payloads.++```jsx+<Textarea placeholder="You are a helpful assistant that..." rows={4} />+<Textarea mono placeholder='{"query": "..."}' rows={3} />+```diff --git a/docs-internal/design-system/components/forms/forms.card.html b/docs-internal/design-system/components/forms/forms.card.htmlnew file mode 100644index 00000000..e917d9b2--- /dev/null+++ b/docs-internal/design-system/components/forms/forms.card.html@@ -0,0 +1,50 @@+<!-- @dsCard group="Components" viewport="700x300" name="Forms" subtitle="Input, Select, RadioGroup, Textarea, Switch, Checkbox" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=3"></script>+</head>+<body style="background: var(--bg-panel); margin: 0; padding: 16px;">+<div id="root"></div>+<script type="text/babel">+const { Input, Select, RadioGroup, Textarea, Switch, Checkbox, Icon } = window.MachinaOSDesignSystem_2559cf;++function FormsCard() {+ return (+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '14px 24px', alignItems: 'start' }}>+ <Input placeholder="Search..." icon={<Icon name="Search" size={14} />} />+ <Select placeholder="Select model..." options={['claude-sonnet-4-5', 'gpt-4o', 'llama3.1:8b']} defaultValue="claude-sonnet-4-5" />+ <Input type="password" placeholder="sk-ant-api03-..." icon={<Icon name="KeyRound" size={14} />} />+ <RadioGroup direction="row" defaultValue="duckduckgo" options={[+ { value: 'duckduckgo', label: 'DuckDuckGo' },+ { value: 'brave', label: 'Brave' },+ { value: 'serper', label: 'Serper' },+ ]} />+ <Textarea placeholder="You are a helpful assistant that..." rows={3} />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>+ <div style={{ display: 'flex', gap: 20, alignItems: 'center' }}>+ <label style={{ display: 'flex', alignItems: 'center', gap: 8, fontSize: 14, color: 'var(--fg-default)' }}>+ <Switch defaultChecked /> Sound effects+ </label>+ <label style={{ display: 'flex', alignItems: 'center', gap: 8, fontSize: 14, color: 'var(--fg-default)' }}>+ <Switch /> Auto-deploy+ </label>+ </div>+ <div style={{ display: 'flex', gap: 20, alignItems: 'center' }}>+ <Checkbox defaultChecked label="Run on startup" />+ <Checkbox disabled label="Requires API key" />+ </div>+ </div>+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<FormsCard />);+</script>+</body>+</html>diff --git a/docs-internal/design-system/components/icons/Icon.d.ts b/docs-internal/design-system/components/icons/Icon.d.tsnew file mode 100644index 00000000..f4ce31f2--- /dev/null+++ b/docs-internal/design-system/components/icons/Icon.d.ts@@ -0,0 +1,16 @@+import * as React from 'react';++/**+ * Icon — renders a Lucide icon by name from the lucide UMD CDN bundle.+ * Requires <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"> on the page.+ */+export interface IconProps extends React.SVGAttributes<SVGSVGElement> {+ /** Lucide icon name, e.g. "Play", "Settings", "KeyRound" (PascalCase or kebab-case) */+ name: string;+ /** Pixel size (width = height). Default 16 */+ size?: number;+ /** Stroke width. Default 2 */+ strokeWidth?: number;+}++export function Icon(props: IconProps): JSX.Element;diff --git a/docs-internal/design-system/components/icons/Icon.jsx b/docs-internal/design-system/components/icons/Icon.jsxnew file mode 100644index 00000000..0d11486d--- /dev/null+++ b/docs-internal/design-system/components/icons/Icon.jsx@@ -0,0 +1,54 @@+import * as React from 'react';++/**+ * Icon — Lucide bridge. MachinaOS uses lucide-react; in this design system+ * icons render from the lucide UMD bundle. Load it once per page:+ * <script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+ * Then <Icon name="Play" size={14} /> — colored via currentColor.+ */+export function Icon({ name, size = 16, strokeWidth = 2, style, ...rest }) {+ const lib = typeof window !== 'undefined' ? window.lucide : null;+ let node = null;+ if (lib && lib.icons) {+ node = lib.icons[name] || lib.icons[toPascal(name)] || null;+ }+ // lucide UMD icon shapes seen across versions:+ // [[tag, attrs], ...] — children list+ // ["svg", attrs, [[tag,attrs],..]] — full element triple+ let children = null;+ if (Array.isArray(node)) {+ if (node.length && Array.isArray(node[0])) children = node;+ else if (node[0] === 'svg' && Array.isArray(node[2])) children = node[2];+ }+ return (+ <svg+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={strokeWidth}+ strokeLinecap="round"+ strokeLinejoin="round"+ style={{ flexShrink: 0, display: 'inline-block', verticalAlign: 'middle', ...style }}+ aria-hidden="true"+ {...rest}+ >+ {children+ ? children.map((child, i) => {+ const tag = child[0];+ const attrs = child[1] || {};+ return React.createElement(tag, { key: i, ...attrs });+ })+ : null}+ </svg>+ );+}++function toPascal(name) {+ if (!name) return '';+ return String(name)+ .split(/[-_ ]/)+ .map((p) => p.charAt(0).toUpperCase() + p.slice(1))+ .join('');+}diff --git a/docs-internal/design-system/components/icons/Icon.prompt.md b/docs-internal/design-system/components/icons/Icon.prompt.mdnew file mode 100644index 00000000..51dcd990--- /dev/null+++ b/docs-internal/design-system/components/icons/Icon.prompt.md@@ -0,0 +1,11 @@+Lucide icon by name, colored via currentColor — the only icon system in MachinaOS.++```jsx+<span style={{ color: 'var(--action-run-ink)' }}>+ <Icon name="Play" size={14} />+</span>+```++- Requires the lucide UMD script on the page: `<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>`+- Common names: Play, Square (stop), Save, Settings, KeyRound, FolderOpen, FilePlus, Search, GripVertical, ChevronDown, Zap, Clock, PanelLeftClose, PanelRightClose, Code2, X.+- Stroke 2 at 12–16px UI sizes; use strokeWidth={1.5} at 20px+.diff --git a/docs-internal/design-system/components/icons/icons.card.html b/docs-internal/design-system/components/icons/icons.card.htmlnew file mode 100644index 00000000..4139e703--- /dev/null+++ b/docs-internal/design-system/components/icons/icons.card.html@@ -0,0 +1,33 @@+<!-- @dsCard group="Components" viewport="700x170" name="Icons" subtitle="Lucide via Icon component — stroke 2, currentColor" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=2"></script>+</head>+<body style="background: var(--bg-panel); margin: 0; padding: 16px;">+<div id="root"></div>+<script type="text/babel">+const { Icon } = window.MachinaOSDesignSystem_2559cf;+const NAMES = ['Play','Square','Save','Settings','KeyRound','FolderOpen','FilePlus','Search','GripVertical','ChevronDown','Zap','Clock','PanelLeftClose','PanelRightClose','Download','Upload','Clipboard','Pencil','Code2','X','Repeat','LogOut'];+function IconsCard() {+ return (+ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(11, 1fr)', gap: '12px 6px' }}>+ {NAMES.map((n) => (+ <div key={n} style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 5, color: 'var(--fg-default)' }}>+ <Icon name={n} size={18} />+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 8.5, color: 'var(--fg-faint)' }}>{n}</span>+ </div>+ ))}+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<IconsCard />);+</script>+</body>+</html>diff --git a/docs-internal/design-system/components/panels/CollapsibleSection.d.ts b/docs-internal/design-system/components/panels/CollapsibleSection.d.tsnew file mode 100644index 00000000..8653b809--- /dev/null+++ b/docs-internal/design-system/components/panels/CollapsibleSection.d.ts@@ -0,0 +1,16 @@+import * as React from 'react';++/** CollapsibleSection — accordion card with elevated trigger head + rotating chevron. */+export interface CollapsibleSectionProps {+ title: React.ReactNode;+ /** Uncontrolled initial state. Default false (open) */+ defaultCollapsed?: boolean;+ /** Controlled collapsed state */+ collapsed?: boolean;+ /** Called with the next collapsed value */+ onToggle?: (collapsed: boolean) => void;+ children?: React.ReactNode;+ style?: React.CSSProperties;+}++export function CollapsibleSection(props: CollapsibleSectionProps): JSX.Element;diff --git a/docs-internal/design-system/components/panels/CollapsibleSection.jsx b/docs-internal/design-system/components/panels/CollapsibleSection.jsxnew file mode 100644index 00000000..6bb1daf6--- /dev/null+++ b/docs-internal/design-system/components/panels/CollapsibleSection.jsx@@ -0,0 +1,59 @@+import * as React from 'react';++/**+ * CollapsibleSection — accordion card: elevated trigger head with+ * display-font title + rotating chevron over an app-surface body.+ * Source: client/src/components/ui/CollapsibleSection.tsx.+ */+export function CollapsibleSection({ title, defaultCollapsed = false, collapsed, onToggle, children, style }) {+ const [internal, setInternal] = React.useState(defaultCollapsed);+ const isCollapsed = collapsed !== undefined ? collapsed : internal;+ const [hover, setHover] = React.useState(false);+ const toggle = () => {+ if (collapsed === undefined) setInternal((c) => !c);+ onToggle && onToggle(!isCollapsed);+ };+ return (+ <div style={{+ overflow: 'hidden',+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-app)',+ ...style,+ }}>+ <button+ type="button"+ onClick={toggle}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ display: 'flex', width: '100%', alignItems: 'center', justifyContent: 'space-between', gap: 8,+ border: 'none', cursor: 'pointer',+ background: hover ? 'var(--bg-hover)' : 'var(--bg-elevated)',+ padding: '12px 16px',+ color: 'var(--fg-default)',+ transition: 'background var(--dur-fast, 90ms)',+ textAlign: 'left',+ }}+ >+ <span style={{+ fontFamily: 'var(--font-display, var(--font-sans))',+ fontSize: 14.5, fontWeight: 500, flex: 1, minWidth: 0,+ letterSpacing: 'var(--type-tracking-display, 0)',+ textTransform: 'var(--type-uppercase, none)',+ display: 'flex', alignItems: 'center', gap: 8,+ }}>+ {title}+ </span>+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="var(--fg-muted)" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ flexShrink: 0, transform: isCollapsed ? 'rotate(-90deg)' : 'none', transition: 'transform var(--dur-default, 180ms) var(--ease-default)' }}>+ <path d="m6 9 6 6 6-6"></path>+ </svg>+ </button>+ {!isCollapsed ? (+ <div style={{ padding: 12 }}>+ {children}+ </div>+ ) : null}+ </div>+ );+}diff --git a/docs-internal/design-system/components/panels/CollapsibleSection.prompt.md b/docs-internal/design-system/components/panels/CollapsibleSection.prompt.mdnew file mode 100644index 00000000..0e907131--- /dev/null+++ b/docs-internal/design-system/components/panels/CollapsibleSection.prompt.md@@ -0,0 +1,10 @@+Accordion card — Connected Skills, Token Usage, and other optional parameter-panel groups.++```jsx+<CollapsibleSection title="Connected Skills" defaultCollapsed>+ …rows…+</CollapsibleSection>+```++- Chevron points down when open, rotates -90° when collapsed.+- Head sits on --bg-elevated above the --bg-app body (two-tier surface).diff --git a/docs-internal/design-system/components/panels/DataCard.d.ts b/docs-internal/design-system/components/panels/DataCard.d.tsnew file mode 100644index 00000000..94cf0a41--- /dev/null+++ b/docs-internal/design-system/components/panels/DataCard.d.ts@@ -0,0 +1,20 @@+import * as React from 'react';++/** DataCard — execution-data card (Input/Output columns of the parameter panel). */+export interface DataCardProps {+ /** e.g. "Item 1" or "Execution Result" */+ title: React.ReactNode;+ /** Source/status chip, e.g. "from WhatsApp Receive" or "Success · 1.9s" */+ badge?: React.ReactNode;+ /** Colors the left edge, icon and badge. Default 'success' */+ tone?: 'success' | 'error' | 'warning';+ /** Label above the JSON block. Default "Received Data" */+ blockLabel?: string;+ /** Object (pretty-printed) or pre-formatted string */+ data: unknown;+ /** Override the default clipboard copy */+ onCopy?: (json: string) => void;+ style?: React.CSSProperties;+}++export function DataCard(props: DataCardProps): JSX.Element;diff --git a/docs-internal/design-system/components/panels/DataCard.jsx b/docs-internal/design-system/components/panels/DataCard.jsxnew file mode 100644index 00000000..42b5dcb9--- /dev/null+++ b/docs-internal/design-system/components/panels/DataCard.jsx@@ -0,0 +1,95 @@+import * as React from 'react';++/**+ * DataCard — execution-data card from the parameter panel's Input/Output+ * columns: status left-edge, icon + title + source badge header, Copy+ * action, labeled mono JSON block.+ * Source: client/src/components/ui/InputNodesPanel.tsx / OutputDisplayPanel.tsx.+ */+export function DataCard({+ title,+ badge,+ tone = 'success',+ blockLabel = 'Received Data',+ data,+ onCopy,+ style,+}) {+ const c = tone === 'error' ? 'var(--destructive)' : tone === 'warning' ? 'var(--warning)' : 'var(--success)';+ const json = typeof data === 'string' ? data : JSON.stringify(data, null, 2);+ return (+ <div style={{+ borderRadius: 'var(--radius-md, 6px)',+ border: '1px solid var(--border-default)',+ borderLeft: `4px solid ${c}`,+ background: 'var(--surface-card)',+ padding: 12,+ ...style,+ }}>+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8, marginBottom: 10 }}>+ <span style={{ display: 'flex', alignItems: 'center', gap: 8, minWidth: 0 }}>+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke={c} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ flexShrink: 0 }}>+ <ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12"></path>+ </svg>+ <span style={{ fontFamily: 'var(--font-sans)', fontSize: 13, fontWeight: 600, color: 'var(--fg-default)', whiteSpace: 'nowrap' }}>{title}</span>+ {badge ? (+ <span style={{+ display: 'inline-flex', alignItems: 'center', height: 18, padding: '0 6px',+ borderRadius: 'var(--radius-md, 6px)', fontSize: 11, fontWeight: 500, whiteSpace: 'nowrap',+ background: `color-mix(in srgb, ${c} 12%, transparent)`,+ border: `1px solid color-mix(in srgb, ${c} 30%, transparent)`,+ color: c,+ overflow: 'hidden', textOverflow: 'ellipsis',+ }}>{badge}</span>+ ) : null}+ </span>+ <CopyButton onCopy={onCopy} json={json} />+ </div>+ <div style={{ overflow: 'hidden', borderRadius: 'var(--radius-md, 6px)', border: '1px solid var(--border-default)' }}>+ <div style={{+ borderBottom: '1px solid var(--border-default)', background: 'var(--bg-hover)',+ padding: '6px 12px', fontFamily: 'var(--font-sans)', fontSize: 11.5, fontWeight: 600, color: 'var(--fg-muted)',+ }}>{blockLabel}</div>+ <pre style={{+ margin: 0, maxHeight: 300, overflow: 'auto',+ whiteSpace: 'pre-wrap', overflowWrap: 'break-word',+ background: 'color-mix(in srgb, var(--bg-hover) 40%, transparent)',+ padding: 12, fontFamily: 'var(--font-mono)', fontSize: 12, lineHeight: 1.4,+ color: 'var(--fg-default)',+ }}>{json}</pre>+ </div>+ </div>+ );+}++function CopyButton({ onCopy, json }) {+ const [hover, setHover] = React.useState(false);+ const [copied, setCopied] = React.useState(false);+ const handle = () => {+ if (onCopy) onCopy(json);+ else if (navigator.clipboard) navigator.clipboard.writeText(json).catch(() => {});+ setCopied(true);+ window.setTimeout(() => setCopied(false), 1200);+ };+ return (+ <button+ type="button"+ onClick={handle}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ display: 'inline-flex', alignItems: 'center', gap: 5,+ border: 'none', borderRadius: 'var(--radius-md, 6px)',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: 'var(--fg-muted)', fontFamily: 'var(--font-sans)', fontSize: 12, fontWeight: 500,+ padding: '5px 8px', cursor: 'pointer', flexShrink: 0,+ transition: 'background var(--dur-fast, 90ms)',+ }}+ >+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">+ <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path>+ </svg>+ {copied ? 'Copied' : 'Copy'}+ </button>+ );+}diff --git a/docs-internal/design-system/components/panels/DataCard.prompt.md b/docs-internal/design-system/components/panels/DataCard.prompt.mdnew file mode 100644index 00000000..c974f1a8--- /dev/null+++ b/docs-internal/design-system/components/panels/DataCard.prompt.md@@ -0,0 +1,9 @@+Execution-data card for parameter-panel Input/Output columns.++```jsx+<DataCard title="Item 1" badge="from WhatsApp Receive" data={{ message: "What's on my calendar?", from: '+1 555 014 2236' }} />+<DataCard title="Execution Result" tone="error" blockLabel="Error" badge="Failed · 0.4s" data={{ error: 'Rate limited' }} />+```++- 4px status left edge (success green / error red / warning amber).+- JSON block: muted label bar + mono 12px pre, max 300px scroll.diff --git a/docs-internal/design-system/components/panels/PanelModal.d.ts b/docs-internal/design-system/components/panels/PanelModal.d.tsnew file mode 100644index 00000000..1b1e4d67--- /dev/null+++ b/docs-internal/design-system/components/panels/PanelModal.d.ts@@ -0,0 +1,27 @@+import * as React from 'react';++/**+ * PanelModal — workspace modal shell: title absolute-left, ActionButton+ * cluster centered, X absolute-right. Used by Node Configuration,+ * Settings, AI Result, and other large panels.+ */+export interface PanelModalProps {+ /** Default true */+ open?: boolean;+ title: React.ReactNode;+ /** Small icon before the title (renders at 70% opacity) */+ titleIcon?: React.ReactNode;+ /** Centered header cluster — node name + ActionButtons */+ headerActions?: React.ReactNode;+ children?: React.ReactNode;+ onClose?: () => void;+ /** CSS max-width. Default '90%' (product uses 95vw for big panels) */+ maxWidth?: string;+ /** CSS max-height. Default '88%' */+ maxHeight?: string;+ /** Render only the card, no fixed overlay (for specimens) */+ inline?: boolean;+ style?: React.CSSProperties;+}++export function PanelModal(props: PanelModalProps): JSX.Element | null;diff --git a/docs-internal/design-system/components/panels/PanelModal.jsx b/docs-internal/design-system/components/panels/PanelModal.jsxnew file mode 100644index 00000000..49b7b492--- /dev/null+++ b/docs-internal/design-system/components/panels/PanelModal.jsx@@ -0,0 +1,103 @@+import * as React from 'react';++/**+ * PanelModal — the product's workspace modal: header bar with title+ * absolute-left (icon + display font), centered headerActions (the+ * Run/Save/Cancel ActionButton cluster), X absolute-right. Header sits+ * on --bg-panel one step above the --bg-app body. Source:+ * client/src/components/ui/Modal.tsx.+ */+export function PanelModal({+ open = true,+ title,+ titleIcon,+ headerActions,+ children,+ onClose,+ maxWidth = '90%',+ maxHeight = '88%',+ inline = false,+ style,+}) {+ if (!open) return null;+ const card = (+ <div+ role="dialog"+ aria-modal={!inline}+ className="modal modal-frame"+ style={{+ width: '100%', maxWidth, height: inline ? 'auto' : '100%', maxHeight,+ borderRadius: 'var(--radius-lg, 8px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-app)',+ boxShadow: 'var(--shadow-modal)',+ display: 'flex', flexDirection: 'column',+ overflow: 'hidden',+ ...style,+ }}+ >+ <div style={{+ position: 'relative', display: 'flex', alignItems: 'center', width: '100%',+ borderBottom: '1px solid var(--border-default)', background: 'var(--bg-panel)',+ padding: '10px 20px', minHeight: 48, flexShrink: 0,+ }}>+ <span style={{+ position: 'absolute', left: 20, display: 'flex', alignItems: 'center', gap: 8,+ fontFamily: 'var(--font-display, var(--font-sans))', fontSize: 15, fontWeight: 600,+ letterSpacing: 'var(--type-tracking-display, 0)',+ textTransform: 'var(--type-uppercase, none)',+ color: 'var(--fg-default)',+ }}>+ {titleIcon ? <span style={{ opacity: 0.7, display: 'flex' }}>{titleIcon}</span> : null}+ {title}+ </span>+ <div style={{ flex: 1, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>+ {headerActions}+ </div>+ <PanelClose onClick={onClose} />+ </div>+ <div style={{ flex: 1, minHeight: 0, display: 'flex', flexDirection: 'column', overflow: 'hidden' }}>+ {children}+ </div>+ </div>+ );+ if (inline) return card;+ return (+ <div+ onClick={(e) => { if (e.target === e.currentTarget && onClose) onClose(); }}+ style={{+ position: 'fixed', inset: 0, zIndex: 100,+ background: 'var(--bg-overlay)',+ display: 'flex', alignItems: 'center', justifyContent: 'center',+ padding: 24,+ }}+ >+ {card}+ </div>+ );+}++function PanelClose({ onClick }) {+ const [hover, setHover] = React.useState(false);+ return (+ <button+ type="button"+ aria-label="Close"+ onClick={onClick}+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ style={{+ position: 'absolute', right: 20,+ width: 32, height: 32, padding: 0,+ borderRadius: 'var(--radius-md, 6px)', border: 'none',+ background: hover ? 'var(--bg-hover)' : 'transparent',+ color: hover ? 'var(--fg-default)' : 'var(--fg-muted)',+ cursor: 'pointer',+ display: 'flex', alignItems: 'center', justifyContent: 'center',+ transition: 'background var(--dur-fast, 90ms), color var(--dur-fast, 90ms)',+ }}+ >+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>+ </button>+ );+}diff --git a/docs-internal/design-system/components/panels/PanelModal.prompt.md b/docs-internal/design-system/components/panels/PanelModal.prompt.mdnew file mode 100644index 00000000..28280e14--- /dev/null+++ b/docs-internal/design-system/components/panels/PanelModal.prompt.md@@ -0,0 +1,26 @@+Workspace modal shell — Node Configuration, Settings, AI Result all use this exact header anatomy: title left, centered ActionButton cluster, X right.++```jsx+<PanelModal+ title="Node Configuration"+ titleIcon={<Icon name="Settings" size={15} />}+ maxWidth="95%" maxHeight="95%"+ onClose={close}+ headerActions={+ <div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>+ <span style={{ display: 'flex', alignItems: 'center', gap: 8, fontSize: 15, fontWeight: 600 }}>🤖 AI Agent <span style={{ color: 'var(--warning)' }}>*</span></span>+ <div style={{ display: 'flex', gap: 8 }}>+ <ActionButton intent="run"><Icon name="Play" size={12} /> Run</ActionButton>+ <ActionButton intent="tools"><Icon name="Save" size={12} /> Save</ActionButton>+ <ActionButton intent="stop"><Icon name="X" size={12} /> Cancel</ActionButton>+ </div>+ </div>+ }+>+ …panel body…+</PanelModal>+```++- The unsaved-changes marker is a warning-colored `*` after the node name.+- Big panels (parameter, settings) use maxWidth/maxHeight "95%"; body owns its own scroll regions.+- For small alert dialogs, use Modal (feedback/) instead.diff --git a/docs-internal/design-system/components/panels/SettingsSection.d.ts b/docs-internal/design-system/components/panels/SettingsSection.d.tsnew file mode 100644index 00000000..b79332b5--- /dev/null+++ b/docs-internal/design-system/components/panels/SettingsSection.d.ts@@ -0,0 +1,29 @@+import * as React from 'react';++/**+ * SettingsSection — elevated settings card with toned icon tile + title.+ * Tones map to node role colors (agent purple, model cyan, workflow+ * orange, tool green).+ */+export interface SettingsSectionProps {+ title: React.ReactNode;+ /** 16px icon node for the 32px tile */+ icon?: React.ReactNode;+ /** Node-role tone or any CSS color. Default 'agent' */+ tone?: 'agent' | 'model' | 'workflow' | 'tool' | 'trigger' | string;+ children?: React.ReactNode;+ style?: React.CSSProperties;+}++export function SettingsSection(props: SettingsSectionProps): JSX.Element;++/** SettingsRow — label + description left, control right. */+export interface SettingsRowProps {+ label: React.ReactNode;+ description?: React.ReactNode;+ /** The control (Switch, Input, Slider, Button) */+ children?: React.ReactNode;+ style?: React.CSSProperties;+}++export function SettingsRow(props: SettingsRowProps): JSX.Element;diff --git a/docs-internal/design-system/components/panels/SettingsSection.jsx b/docs-internal/design-system/components/panels/SettingsSection.jsxnew file mode 100644index 00000000..630045af--- /dev/null+++ b/docs-internal/design-system/components/panels/SettingsSection.jsx@@ -0,0 +1,66 @@+import * as React from 'react';++/**+ * SettingsSection + SettingsRow — the Settings panel's building blocks.+ * Section = elevated card with a toned 32px icon tile + display-font+ * title over a divider. Row = label + description left, control right.+ * Source: client/src/components/ui/SettingsPanel.tsx.+ */+const SECTION_TONES = {+ agent: 'var(--node-agent)',+ model: 'var(--node-model)',+ workflow: 'var(--node-workflow)',+ tool: 'var(--node-tool)',+ trigger: 'var(--node-trigger)',+};++export function SettingsSection({ title, icon, tone = 'agent', children, style }) {+ const c = SECTION_TONES[tone] || tone;+ return (+ <div style={{+ marginBottom: 16,+ borderRadius: 'var(--radius-md, 6px)',+ border: '1px solid var(--border-default)',+ background: 'var(--bg-elevated)',+ padding: 16,+ ...style,+ }}>+ <div style={{+ display: 'flex', alignItems: 'center', gap: 8,+ borderBottom: '1px solid var(--border-default)',+ paddingBottom: 12, marginBottom: 12,+ }}>+ <span style={{+ display: 'flex', width: 32, height: 32, alignItems: 'center', justifyContent: 'center',+ borderRadius: 'var(--radius-md, 6px)',+ background: `color-mix(in srgb, ${c} 8%, transparent)`,+ color: c, flexShrink: 0,+ }}>+ {icon}+ </span>+ <span style={{+ fontFamily: 'var(--font-display, var(--font-sans))',+ fontSize: 16, fontWeight: 600,+ letterSpacing: 'var(--type-tracking-display, 0)',+ textTransform: 'var(--type-uppercase, none)',+ color: 'var(--fg-default)',+ }}>+ {title}+ </span>+ </div>+ {children}+ </div>+ );+}++export function SettingsRow({ label, description, children, style }) {+ return (+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 16, padding: '8px 0', ...style }}>+ <div style={{ flex: 1, minWidth: 0 }}>+ <div style={{ fontFamily: 'var(--font-sans)', fontSize: 14, fontWeight: 500, color: 'var(--fg-default)' }}>{label}</div>+ {description ? <div style={{ fontFamily: 'var(--font-sans)', fontSize: 12, color: 'var(--fg-muted)', marginTop: 2, lineHeight: 1.4 }}>{description}</div> : null}+ </div>+ <div style={{ flexShrink: 0 }}>{children}</div>+ </div>+ );+}diff --git a/docs-internal/design-system/components/panels/SettingsSection.prompt.md b/docs-internal/design-system/components/panels/SettingsSection.prompt.mdnew file mode 100644index 00000000..ca54b457--- /dev/null+++ b/docs-internal/design-system/components/panels/SettingsSection.prompt.md@@ -0,0 +1,16 @@+Settings panel building blocks — stack Sections inside a PanelModal; each Row pairs a label + description with one control.++```jsx+<SettingsSection title="Auto-save" icon={<Icon name="Save" size={16} />} tone="model">+ <SettingsRow label="Enable Auto-save" description="Automatically save the workflow at regular intervals">+ <Switch defaultChecked />+ </SettingsRow>+ <SettingsRow label="Auto-save Interval" description="How often to auto-save (10-300 seconds)">+ <Input type="number" defaultValue={30} style={{ width: 80 }} />+ </SettingsRow>+</SettingsSection>+```++- Section tones reuse node role colors; pick by topic (UI=agent, saving=model, processes=workflow, audio=tool).+- Descriptions are full sentences and may be long — they wrap under the label, never beside the control.+- `SettingsRow` is exported from this same file.diff --git a/docs-internal/design-system/components/panels/panels.card.html b/docs-internal/design-system/components/panels/panels.card.htmlnew file mode 100644index 00000000..f3328bb5--- /dev/null+++ b/docs-internal/design-system/components/panels/panels.card.html@@ -0,0 +1,79 @@+<!-- @dsCard group="Components" viewport="700x620" name="Panels" subtitle="PanelModal, SettingsSection, DataCard, CollapsibleSection, ApiKeyInput, Slider" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=4"></script>+</head>+<body style="background: var(--bg-panel); margin: 0; padding: 16px;">+<div id="root"></div>+<script type="text/babel">+const { PanelModal, SettingsSection, SettingsRow, DataCard, CollapsibleSection, ApiKeyInput, Slider, Switch, ActionButton, Icon } = window.MachinaOSDesignSystem_2559cf;++function PanelsCard() {+ const [ratio, setRatio] = React.useState(80);+ return (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 14 }}>+ <PanelModal+ inline+ title="Settings"+ titleIcon={<Icon name="Settings" size={14} />}+ headerActions={+ <div style={{ display: 'flex', gap: 8 }}>+ <ActionButton intent="config"><Icon name="RotateCcw" size={12} /> Reset</ActionButton>+ <ActionButton intent="run"><Icon name="Save" size={12} /> Save</ActionButton>+ <ActionButton intent="stop"><Icon name="X" size={12} /> Close</ActionButton>+ </div>+ }+ >+ <div style={{ padding: 16, maxHeight: 290, overflowY: 'auto' }}>+ <SettingsSection title="Auto-save" icon={<Icon name="Save" size={16} />} tone="model">+ <SettingsRow label="Enable Auto-save" description="Automatically save the workflow at regular intervals">+ <Switch defaultChecked />+ </SettingsRow>+ </SettingsSection>+ <SettingsSection title="Memory & Compaction" icon={<Icon name="Brain" size={16} />} tone="agent" style={{ marginBottom: 0 }}>+ <div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between' }}>+ <div>+ <div style={{ fontSize: 14, fontWeight: 500 }}>Compaction Ratio</div>+ <div style={{ fontSize: 12, color: 'var(--fg-muted)', marginTop: 2 }}>Fraction of context window that triggers memory compaction</div>+ </div>+ <span style={{ fontSize: 14, fontWeight: 600, color: 'var(--node-model)' }}>{ratio}%</span>+ </div>+ <Slider min={5} max={95} step={5} value={ratio} onChange={setRatio} color="var(--node-model)" style={{ margin: '10px 0 4px' }} />+ <div style={{ display: 'flex', justifyContent: 'space-between', fontSize: 10, color: 'var(--fg-muted)' }}>+ <span>5%</span><span>50%</span><span>95%</span>+ </div>+ </SettingsSection>+ </div>+ </PanelModal>++ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 12, alignItems: 'start' }}>+ <DataCard+ title="Item 1"+ badge="from WhatsApp Receive"+ data={{ message: "What's on my calendar today?", from: '+1 555 014 2236' }}+ />+ <div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>+ <CollapsibleSection title={<><Icon name="Wrench" size={13} /> Connected Skills</>}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6, fontSize: 13 }}>+ <span style={{ display: 'flex', alignItems: 'center', gap: 8 }}><span style={{ width: 6, height: 6, borderRadius: 99, background: 'var(--node-tool)' }}></span>Web Search</span>+ <span style={{ display: 'flex', alignItems: 'center', gap: 8 }}><span style={{ width: 6, height: 6, borderRadius: 99, background: 'var(--node-tool)' }}></span>Android Toolkit</span>+ </div>+ </CollapsibleSection>+ <ApiKeyInput defaultValue="sk-ant-api03-xxxxxxxxxxxx" isStored onSave={() => {}} onDelete={() => {}} />+ <ApiKeyInput placeholder="gsk_..." onSave={() => {}} />+ </div>+ </div>+ </div>+ );+}+ReactDOM.createRoot(document.getElementById('root')).render(<PanelsCard />);+</script>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/ANIMATIONS.md b/docs-internal/design-system/guidelines/ANIMATIONS.mdnew file mode 100644index 00000000..2b415dcb--- /dev/null+++ b/docs-internal/design-system/guidelines/ANIMATIONS.md@@ -0,0 +1,81 @@+# MachinaOS animation system++Motion is a **first-class part of each theme's identity**, not a global constant. Every theme declares the same six-token motion contract; the personality lives in the **easing function**, not just duration. Live demo: `guidelines/animations-all-themes.html`. Tokens + keyframes: `tokens/animations.css`.++## The contract (per theme)++| Token | Role |+|---|---|+| `--dur-fast / -default / -slow` | interaction / transition / panel timings |+| `--ease-default` | the curve every transition uses — carries the personality |+| `--ease-emphasis` | entrances, springy moments |+| `--motion-style` | a name (smooth, organic, mechanical, bouncy, glitch, jittery, drift, stiff, scanline) |+| `--pulse-keyframe / -duration / -timing` | which executing-node pulse this theme uses |+| `--node-pulse-color` | the glow color — **theme-chosen for contrast**, never the node's own role color |++## All 12 themes++| Theme | fast/def/slow | ease-default | motion-style | exec pulse | ambient |+|---|---|---|---|---|---|+| Light | 90/180/320 | cubic(.2,.7,.3,1) | smooth | node-pulse 1.4s ease-in-out | — |+| Dark | 90/180/320 | cubic(.2,.7,.3,1) | smooth | node-pulse 1.4s | — |+| Renaissance | 140/280/520 | cubic(.4,0,.2,1) | organic | ren-pulse-exec 2.0s (candle flame) | candle flicker 6s |+| Greek | 120/240/460 | cubic(.3,.7,.4,1) | smooth | node-pulse 1.4s | — |+| Edo | 90/220/520 | cubic(.4,0,.2,1) | organic | node-pulse 1.6s | — |+| Steampunk | 110/240/480 | cubic(.5,0,.4,1.1) | mechanical | node-pulse 1.4s | — |+| Atomic | 100/200/380 | **cubic(.34,1.6,.5,1)** | bouncy (1.6 overshoot) | node-pulse 1.4s | — |+| Cyber | 60/120/240 | **steps(4,end)** | glitch | cyber-pulse-exec 1.6s steps(2) | CRT flicker 5s + rolling scanline 8s + hover glitch |+| Wasteland | 60/180/320 | cubic(.6,0,.4,1) | jittery | node-pulse 1.3s | — |+| Rot | 140/320/**680** | cubic(.4,0,.6,1) | drift (slowest) | node-pulse 2.2s | — |+| Plague | 100/220/460 | cubic(.4,0,.6,1) | stiff | node-pulse 1.6s | — |+| Surveillance | 60/140/240 | **linear** | scanline | surv-pulse-exec 1.0s steps(2) | REC-LED blink + scanline |++## Signature keyframes (`tokens/animations.css`)++- **`node-pulse`** — default 3-layer glow (ring + mid halo + atmospheric halo) scaling out/in. Used by 8 themes.+- **`ren-pulse-exec`** — candle-flame: never fully dark, gentle ease-in-out swell (Renaissance).+- **`cyber-pulse-exec` / `cyber-flicker` / `cyber-roll` / `cyber-blink` / `cyber-glitch`** — hard digital strobe via `steps(2)`, whole-frame CRT flicker, rolling scanline band, LED blink, hover text-shear (Cyber).+- **`surv-pulse-exec` / `surv-blink`** — REC-red glow strobe + status-LED blink (Surveillance).+- **`machina-pip-blink`** — generic status-pip blink. **`machina-spin`** — spinner.++## Interaction motion (all themes)++- **Hover:** background tint shift; cards/nodes lift `-1` to `-2px` and gain shadow. Cyber replaces lift with a glitch shear.+- **Press:** `translateY(1px)`.+- **Disabled:** `opacity .5`, no transition.+- **Entrances:** slide/fade gated on `[data-deck-active]`-style activation and `--ease-emphasis`; base state is the visible end-state so reduced-motion / print show content, never the pre-animation frame.++## Usage++```html+<html data-theme="cyber"> <!-- picks the whole motion contract -->+<div class="machina-pulse node">…</div> <!-- executing node: reads --pulse-keyframe + color -->+<div class="machina-crt machina-scanline">…</div> <!-- app frame ambient (cyber/surveillance) -->+```++Set `--node-pulse-color` on (or above) the pulsing element. `.machina-pulse` automatically uses the active theme's keyframe, duration and timing. All loops stop under `prefers-reduced-motion: reduce`.++## Trigger nodes — the "listening / armed" state++Triggers (`whatsappReceive`, `cronScheduler`, `webhookTrigger`, `start`) animate differently from regular nodes:++- **No input handle**, and a **lightning ⚡ badge** (bottom-left, gold) marking them as workflow entry points.+- A **continuous "listening" pulse** (`trigger-listening`, ~2.4s, gentle ease-in-out) that runs the whole time the trigger is *armed and waiting for events* — not just during execution. This is the key distinction: a normal node is dark until it runs and pulses once; a trigger breathes continuously while listening. The armed pip blinks (`machina-pip-pulse`).+- A **one-shot `trigger-fire` flash** the moment an event arrives, before it hands off downstream.+- WhatsApp triggers fold connection state into the pip: connected → success, pairing → waiting (pulses), disconnected → error.++```jsx+<SquareNode icon="💬" label="WhatsApp Receive" color="var(--node-trigger)"+ trigger status="listening" pulseColor="var(--node-pulse-color)" />+```++## Glow color & visibility++The glow is **never the node's own faint role tint** — it uses `--node-pulse-color` (or the component's `pulseColor`), a saturated accent the theme picks **for contrast against its own canvas**: lapis on Renaissance vellum, neon cyan on Cyber's near-black void, REC-red on Surveillance grey, deep teal on Atomic cream. This keeps both the execution pulse and the trigger listening glow legible on light and dark themes alike. When adding a theme, choose its `--node-pulse-color` against the background, not to match the node.++## Rules++1. **Drive transitions from `var(--ease-default)` / `var(--dur-*)`** — never hardcode timing, so a theme swap restyles motion for free.+2. **Loops only for live processes** (executing pulse, connection LED). No decorative perpetual motion on idle content.+3. **The pulse color is the theme's, not the node's** — guarantees contrast on every canvas (lapis on vellum, cyan on void, REC-red on grey).+4. **Always provide the static end-state** so print, PDF export and reduced-motion render meaningfully.diff --git a/docs-internal/design-system/guidelines/THEMES.md b/docs-internal/design-system/guidelines/THEMES.mdnew file mode 100644index 00000000..899c1e27--- /dev/null+++ b/docs-internal/design-system/guidelines/THEMES.md@@ -0,0 +1,49 @@+# MachinaOS theming architecture — analysis++Source: `client/src/themes/*.css` + `client/src/index.css` in https://github.com/zeenie-ai/MachinaOS (full copies in `reference/themes/`). The app ships **12 themes**: 2 canonical (light, dark) + 10 "skins" (Renaissance, Greek, Edo, Steampunk, Atomic, Cyber, Wasteland, Rot, Plague, Surveillance).++## 1. How it works — a four-layer contract++Every theme is **one CSS file, zero component changes**. The system is layered so a theme can do as little as retint colors or as much as redraw every surface:++1. **`base.css` — neutral defaults on `:root`.** Space scale, radii, motion durations/eases, `--type-uppercase: none`, `--canvas-grid: none`, `--sound-pack: none`, cursor defaults, plus the *default node visuals* (gradient fill, accent border, hover lift, the 3-layer `node-pulse` keyframe). Any theme that omits a variable inherits these.+2. **New-contract tokens — full-color CSS vars, scoped `:root[data-theme="X"]`.** The ~40-variable contract every theme must fill: surfaces (`--bg-app/panel/canvas/elevated/input/hover/active/overlay`), borders (`-default/strong/focus` + `--ornament-frame`), foreground (`--fg-default/muted/faint` + four `--fg-on-*` contrast colors), 3 font slots, type scale/tracking/case, 4 radii, 3 durations + 2 eases + `--motion-style`, `--sound-pack`, `--node-pulse-color`, 2 cursors, 2 scrollbar colors, `--canvas-grid` (+opacity).+3. **shadcn HSL bridge — the same palette re-declared as HSL triplets** (`--background: 28 41% 12%`) so every existing Tailwind utility (`bg-card`, `text-muted-foreground`, `bg-action-save-soft`) retints with zero call-site edits. Includes the six action-intent triplets (with per-theme alphas — e.g. Steampunk raises soft fill to 20–22% because brass needs more presence than Dracula neon) and `--tint-soft`/`--tint-border` alphas.+4. **Structural-class decorations.** Components carry stable hook classes — `.toolbar .sidebar .palette .canvas .statusbar .chat .modal .cmdk .node .sq-node-box .sq-node-gear .sq-node-pip .sq-node-label .wf-card .comp .cat .row .btn .action-btn .pip .ornament` — and themes attach material identity to them: vellum noise + gilded `ornament-frame` (Renaissance), riveted brass plates with `::before/::after` rivets (Steampunk), CRT flicker + rolling scanline + glitch-on-hover keyframes (Cyber), REC-LED blink (Surveillance). Decorations are *additive*; un-themed components still work from layers 1–3.++**Key inversions worth copying:** color is bridged *twice* (full-color for new code, HSL triplets for legacy utilities); status pips read `data-status` attributes so themes restyle state without touching React; the executing pulse uses a *theme-chosen* `--node-pulse-color` (not the node's own accent) so the glow always contrasts with that theme's canvas; `prefers-reduced-motion` and a `data-page-hidden` animation-pause are handled globally in base.css.++## 2. What a theme is allowed to change++Beyond color: **typeface trio, base font size (13–15px), letter case, tracking (0–0.18em), all four radii (0 → 999px), motion speed (60ms → 680ms), easing curve *shape* (smooth bezier / bouncy overshoot / `steps()` strobe / `linear`), a named `--motion-style`, a sound pack, the cursor itself (SVG data-URI), the canvas background pattern (SVG tile), scrollbar chrome, and selection color.** That breadth is the design insight: MachinaOS themes are *material systems*, not palettes.++## 3. The 12 themes at a glance++| Theme | World | Surfaces | Signature accents | Display / body / mono | Case·track | Radii | Motion (style) | Sound | Pulse |+|---|---|---|---|---|---|---|---|---|---|+| **Light** | quiet workspace | grey-blue paper | Dracula tints + blue | Geist ×2 / sys mono | none·0 | 4/6/8 | 90/180/320 smooth | parchment | info blue |+| **Dark** | signature look | Solarized teal | Dracula neon | Geist ×2 / sys mono | none·0 | 4/6/8 | 90/180/320 smooth | terminal | info teal |+| **Renaissance** | illuminated codex | vellum cream | gold #d4a030 · crimson #8a1410 · lapis #2548c8 | Cinzel / Cormorant Garamond / IM Fell English | UPPER·.10em | 2/3/4 (pill 12) | 140/280/520 organic | parchment | lapis (Marian halo) |+| **Greek** | marble agora | sun-bleached marble | lapis #284b82 · oxblood #7a1a18 · gold #c8a040 · olive | Cinzel / Cormorant / Courier Prime | UPPER·.18em | 0/0/2 | 120/240/460 smooth | marble | lapis |+| **Edo** | washi + sumi-e | rice paper | vermillion #b41e1e · sumi ink · bamboo · sakura | Shippori Mincho ×2 / JetBrains | none·.06em | all 0 | 90/220/520 organic | ink | vermillion |+| **Steampunk** | Verne submarine | oiled leather | brass #d8a848 · copper #b8602a · rust | IM Fell English SC / IM Fell / Special Elite | UPPER·.10em | 2/4/8 | 110/240/480 mechanical | clockwork | copper |+| **Atomic** | 1962 Eames | cream cardstock | atomic orange #e85a26 · turquoise #3a9aa0 · mustard | Bevan / Lato / Space Mono | UPPER·.06em | 0/2/4 (pill 999) | 100/200/380 bouncy (1.6 overshoot) | vibraphone | turquoise |+| **Cyber** | Neuromancer market | void #050010 | neon magenta #f51eb6 · cyan #1dd9e5 · green · yellow | Major Mono Display / JetBrains ×2 (13px) | UPPER·.18em | all 0 | 60/120/240 `steps()` glitch | terminal | neon cyan |+| **Wasteland** | Mad Max scrap | irradiated dust | ochre #e88a28 · rust #8a3a18 · rad-yellow #c8d038 · bone | Special Elite ×2 / VT323 | UPPER·.10em | all 0 | 60/180/320 jittery | scrap | rad yellow |+| **Rot** | mossy crypt | charcoal green | moss #78c878 · candle #e8a838 · bone · crypt brown | Pirata One / EB Garamond / JetBrains | none·.04em | 1/2/4 | 140/320/680 drift (slowest) | crypt | moss phosphor |+| **Plague** | 1349 quarantine notice | bleached linen | dried blood #783c28 · bile #98a838 · crow black | UnifrakturCook / EB Garamond / Special Elite | UPPER·.06em | all 0 | 100/220/460 stiff | bell | bile red |+| **Surveillance** | 1970s panopticon | institutional grey | REC red #e82626 · phosphor #6acc6a · amber | Anonymous Pro / IBM Plex Mono ×2 (13px) | UPPER·.10em | all 0 | 60/140/240 `linear` scanline | telex | REC red |++Special hardware: **Cyber** ships custom crosshair + bracket cursors and full-frame CRT flicker/roll keyframes; **Surveillance** ships a REC-red reticle cursor and a 1920×1080 CCTV crosshair canvas overlay; **Renaissance** ships a quill cursor, fleur-de-lis canvas tile and the only non-`none` `--ornament-frame` (triple gilded inset); **Steampunk** draws bolt-pattern canvas tiles and rivets nodes with pseudo-elements.++## 4. Patterns / observations++- **Time-period clustering**: 6 of 10 skins are historical (Renaissance, Greek, Edo, Steampunk, Plague, + Rot's gothic), 4 are speculative-tech (Cyber, Surveillance, Wasteland, Atomic). All keep the exact same information architecture — only material changes.+- **Light skins keep dark text contrast ratios** (vellum/marble/washi/linen ≈ #f0e8d0 family with near-black ink); dark skins pick one luminous accent family and use the soft-tint discipline from light/dark.+- **Radius is the loudest single lever**: 8 of 10 skins flatten to ≤4px or 0; only light/dark/atomic keep pills. Sharp corners + uppercase + serif/mono display = instant "other era".+- **Motion personality is encoded in the *easing function*, not just speed**: `steps(4)` = digital strobe, `cubic-bezier(.34,1.6,.5,1)` = boomerang bounce, `linear` = machine scan, 680ms drift = crypt.+- **The HSL bridge is the cost of Tailwind compat** — every theme declares its palette twice. New work should target the full-color contract only.++## 5. Status in THIS design system++`tokens/colors.css` encodes the two canonical themes (light `:root`, dark `.dark`). The 10 skins are **documented + sourced** (`reference/themes/`) but not yet expressed as token scopes here. To port one: copy its layer-2 block into a `[data-theme="X"]` scope in `tokens/`, map its accents onto the action/node role triplets, and load its Google Fonts (all skin fonts are on Google Fonts — same delivery as production). Visual comparison: `guidelines/theme-matrix.html`.diff --git a/docs-internal/design-system/guidelines/action-intents.html b/docs-internal/design-system/guidelines/action-intents.htmlnew file mode 100644index 00000000..5777ccd2--- /dev/null+++ b/docs-internal/design-system/guidelines/action-intents.html@@ -0,0 +1,24 @@+<!-- @dsCard group="Colors" viewport="700x150" subtitle="Six toolbar intents — soft tint fill, tinted border, accent text" name="Action Intents" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+.ab { display: inline-flex; height: 32px; align-items: center; gap: 6px; border-radius: 6px; padding: 0 14px; font-size: 13px; font-weight: 600; font-family: var(--font-sans); border: 1px solid; cursor: pointer; background: none; transition: background var(--dur-default) var(--ease-default); }+</style>+</head>+<body style="background: var(--bg-panel); padding: 0; margin: 0;">+<div style="display: flex; align-items: center; justify-content: center; gap: 10px; height: 110px; flex-wrap: wrap;">+ <button class="ab" style="background: var(--action-run-soft); border-color: var(--action-run-border); color: var(--action-run-ink);">▶ Start</button>+ <button class="ab" style="background: var(--action-stop-soft); border-color: var(--action-stop-border); color: var(--action-stop-ink);">■ Stop</button>+ <button class="ab" style="background: var(--action-save-soft); border-color: var(--action-save-border); color: var(--action-save-ink);">Save</button>+ <button class="ab" style="background: var(--action-config-soft); border-color: var(--action-config-border); color: var(--action-config-ink);">Settings</button>+ <button class="ab" style="background: var(--action-secret-soft); border-color: var(--action-secret-border); color: var(--action-secret-ink);">Credentials</button>+ <button class="ab" style="background: var(--action-tools-soft); border-color: var(--action-tools-border); color: var(--action-tools-ink);">Components</button>+</div>+<div style="display: flex; justify-content: center; gap: 26px; padding-bottom: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">+ <span>run</span><span>stop</span><span>save</span><span>config</span><span>secret</span><span>tools</span>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/animations-all-themes.html b/docs-internal/design-system/guidelines/animations-all-themes.htmlnew file mode 100644index 00000000..a413ec52--- /dev/null+++ b/docs-internal/design-system/guidelines/animations-all-themes.html@@ -0,0 +1,247 @@+<!-- @dsCard group="Brand" viewport="1280x860" name="Animations — All Themes" subtitle="Live motion per theme: executing pulse, easing character, pip blink, hover lift, ambient CRT/scanline" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>MachinaOS — Animations, All Themes</title>+<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&family=Courier+Prime&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:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&display=swap">+<style>+ * { box-sizing: border-box; }+ body { margin: 0; background: #0a0c10; font-family: 'Geist', system-ui, sans-serif; color: #e6edf3; }+ header { padding: 26px 32px 6px; }+ header h1 { margin: 0; font-size: 20px; font-weight: 600; }+ header p { margin: 6px 0 0; font-size: 13px; color: #8b949e; max-width: 860px; line-height: 1.5; }+ .controls { display: flex; align-items: center; gap: 14px; padding: 14px 32px 4px; flex-wrap: wrap; }+ .controls button { font-family: 'Geist', sans-serif; font-size: 12.5px; font-weight: 600; color: #e6edf3; background: #1c2230; border: 1px solid #2a3344; border-radius: 7px; padding: 7px 14px; cursor: pointer; }+ .controls button:hover { border-color: #4a5568; }+ .controls .hint { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8b949e; }+ .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 18px 32px 60px; }+ @media (min-width: 1680px) { .grid { grid-template-columns: repeat(3, 1fr); } }++ .tile { border-radius: 12px; overflow: hidden; border: 1px solid #21262d; background: #11151a; }+ .tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 16px; }+ .tile-head .nm { font-size: 15px; font-weight: 600; }+ .tile-head .style { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; }++ .stage { position: relative; height: 246px; overflow: hidden; padding: 16px; display: flex; flex-direction: column; gap: 12px; }++ /* canvas mini with executing node */+ .mini { position: relative; flex: 1; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 26px; }+ .node { position: relative; width: 50px; height: 50px; border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 21px; }+ .node .pip { position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; }+ .edge { position: absolute; height: 2px; top: 50%; left: 50%; transform: transl(-50%,-50%); }++ /* ease lane */+ .lane-wrap { display: flex; flex-direction: column; gap: 5px; }+ .lane { position: relative; height: 22px; border-radius: 6px; overflow: hidden; border: 1px solid; }+ .lane .dot { position: absolute; top: 3px; left: 4px; width: 14px; height: 14px; border-radius: 4px; }+ .lane-meta { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; opacity: 0.7; }++ /* interaction row */+ .irow { display: flex; align-items: center; gap: 10px; }+ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 11.5px; font-weight: 600; border: 1px solid; line-height: 1; cursor: pointer; }+ .statuspip { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.04em; }+ .statuspip .led { width: 7px; height: 7px; border-radius: 50%; }+ .hoverhint { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; opacity: 0.55; margin-left: auto; }++ /* ambient overlays */+ .crt-roll { position: absolute; inset: 0; pointer-events: none; z-index: 5; }+ .crt-roll .band { position: absolute; left: 0; right: 0; height: 26px; }+</style>+</head>+<body>+<header>+ <h1>MachinaOS — animation system, all 12 themes</h1>+ <p>Live motion rendered with each theme's real timing tokens (from <code>client/src/themes/*.css</code>): the <strong>trigger "listening" pulse</strong> (armed heartbeat + lightning ⚡ badge, left node), the one-shot <strong>executing-node pulse</strong> (middle), an <strong>easing lane</strong> that shows the curve character (bouncy overshoot, steps strobe, linear scan, slow drift), the <strong>status-pip blink</strong>, button <strong>hover-lift / press</strong> (hover them), and ambient <strong>CRT flicker + rolling scanline</strong> for Cyber / Surveillance. Every glow uses a <strong>theme-contrast color</strong> so it stays visible on that background. Full system: <code>tokens/animations.css</code> · <code>guidelines/ANIMATIONS.md</code>.</p>+</header>+<div class="controls">+ <button id="replay">⟳ Replay entrances</button>+ <button id="toggle">⏸ Pause loops</button>+ <span class="hint">Hover the buttons & nodes to feel each theme's easing. Reduced-motion users see static end-states.</span>+</div>+<div class="grid" id="grid"></div>++<script>+const THEMES = [+ { name:'Light', style:'smooth', bg:'#f5f7fa', mini:'#ffffff', card:'#ffffff', fg:'#1a1d21', muted:'#4b5563', border:'#d1d5db', grid:'rgba(75,85,99,0.28)',+ body:"'Geist',sans-serif", durF:90, durD:180, durS:320, ease:'cubic-bezier(.2,.7,.3,1)', pulse:'#0891b2', pulseKf:'node', pulseDur:1.4, pulseTime:'ease-in-out',+ node:'#bd93f9', run:'#15803d', runBg:'rgba(80,250,123,0.15)', runBc:'rgba(80,250,123,0.6)', pip:'#059669', ambient:null },+ { name:'Dark', style:'smooth', bg:'#002b36', mini:'#002b36', card:'#073642', fg:'#f8f8f2', muted:'#94a8d6', border:'#586e75', grid:'rgba(148,168,214,0.30)',+ body:"'Geist',sans-serif", durF:90, durD:180, durS:320, ease:'cubic-bezier(.2,.7,.3,1)', pulse:'#8be9fd', pulseKf:'node', pulseDur:1.4, pulseTime:'ease-in-out',+ node:'#bd93f9', run:'#50fa7b', runBg:'rgba(80,250,123,0.15)', runBc:'rgba(80,250,123,0.6)', pip:'#50fa7b', ambient:null },+ { name:'Renaissance', style:'organic', bg:'#f3e8c8', mini:'#e8d4a0', card:'#fbf3dc', fg:'#3a2008', muted:'#6a4a1c', border:'#8a5e1c', grid:'rgba(138,94,28,0.28)',+ body:"'Cormorant Garamond',serif", durF:140, durD:280, durS:520, ease:'cubic-bezier(.4,0,.2,1)', pulse:'#2548c8', pulseKf:'ren', pulseDur:2.0, pulseTime:'ease-in-out',+ node:'#2548c8', run:'#8a1410', runBg:'rgba(212,160,48,0.20)', runBc:'#8a5e1c', pip:'#5a6a28', ambient:'candle' },+ { name:'Greek', style:'smooth', bg:'#ede5d0', mini:'#e6dcc2', card:'#faf6e9', fg:'#2a2415', muted:'#6a5d3c', border:'#b8a878', grid:'rgba(106,93,60,0.28)',+ body:"'Cormorant Garamond',serif", durF:120, durD:240, durS:460, ease:'cubic-bezier(.3,.7,.4,1)', pulse:'#284b82', pulseKf:'node', pulseDur:1.4, pulseTime:'ease-in-out',+ node:'#284b82', run:'#284b82', runBg:'rgba(40,75,130,0.12)', runBc:'#284b82', pip:'#6a7a32', ambient:null },+ { name:'Edo', style:'organic', bg:'#f4ecd8', mini:'#ede4ca', card:'#fdf8ea', fg:'#1a1410', muted:'#6a5e48', border:'#c8b890', grid:'rgba(106,94,72,0.28)',+ body:"'Shippori Mincho',serif", durF:90, durD:220, durS:520, ease:'cubic-bezier(.4,0,.2,1)', pulse:'#b41e1e', pulseKf:'node', pulseDur:1.6, pulseTime:'ease-in-out',+ node:'#b41e1e', run:'#b41e1e', runBg:'rgba(180,30,30,0.08)', runBc:'#b41e1e', pip:'#4a6a3a', ambient:null },+ { name:'Steampunk', style:'mechanical', bg:'#2a1f12', mini:'#1a1208', card:'#4a3620', fg:'#e8d8b0', muted:'#b8a070', border:'#6a4a20', grid:'rgba(184,160,112,0.25)',+ body:"'IM Fell English',serif", durF:110, durD:240, durS:480, ease:'cubic-bezier(.5,0,.4,1.1)', pulse:'#d8a848', pulseKf:'node', pulseDur:1.4, pulseTime:'ease-in-out',+ node:'#d8a848', run:'#d8a848', runBg:'rgba(216,168,72,0.20)', runBc:'#d8a848', pip:'#8a8a4a', ambient:null },+ { name:'Atomic', style:'bouncy', bg:'#f0e6d2', mini:'#e8dcc0', card:'#ffffff', fg:'#2a3a4a', muted:'#5a6a7a', border:'#c8b890', grid:'rgba(90,106,122,0.28)',+ body:"'Lato',sans-serif", durF:100, durD:200, durS:380, ease:'cubic-bezier(.34,1.6,.5,1)', pulse:'#3a9aa0', pulseKf:'node', pulseDur:1.4, pulseTime:'ease-in-out',+ node:'#e85a26', run:'#3a9aa0', runBg:'rgba(58,154,160,0.12)', runBc:'#3a9aa0', pip:'#3a9aa0', ambient:null },+ { name:'Cyber', style:'glitch', bg:'#050010', mini:'#03000a', card:'#15103a', fg:'#f0e0ff', muted:'#a090c0', border:'#2a1f50', grid:'rgba(160,144,192,0.30)',+ body:"'JetBrains Mono',monospace", durF:60, durD:120, durS:240, ease:'steps(4,end)', pulse:'#1dd9e5', pulseKf:'cyber', pulseDur:1.6, pulseTime:'steps(2)',+ node:'#f51eb6', run:'#26d97a', runBg:'rgba(38,217,122,0.14)', runBc:'#26d97a', pip:'#26d97a', ambient:'crt' },+ { name:'Wasteland', style:'jittery', bg:'#2a2018', mini:'#1a1410', card:'#4a3826', fg:'#e8d8a8', muted:'#b89868', border:'#6a4a28', grid:'rgba(184,152,104,0.25)',+ body:"'Special Elite',monospace", durF:60, durD:180, durS:320, ease:'cubic-bezier(.6,0,.4,1)', pulse:'#c8d038', pulseKf:'node', pulseDur:1.3, pulseTime:'ease-in-out',+ node:'#e88a28', run:'#c8d038', runBg:'rgba(200,208,56,0.14)', runBc:'#c8d038', pip:'#c8d038', ambient:null },+ { name:'Rot', style:'drift', bg:'#14181a', mini:'#0a0e10', card:'#242c30', fg:'#c8d8c0', muted:'#788878', border:'#2a3a30', grid:'rgba(120,136,120,0.28)',+ body:"'EB Garamond',serif", durF:140, durD:320, durS:680, ease:'cubic-bezier(.4,0,.6,1)', pulse:'#78c878', pulseKf:'node', pulseDur:2.2, pulseTime:'ease-in-out',+ node:'#78c878', run:'#78c878', runBg:'rgba(120,200,120,0.10)', runBc:'#78c878', pip:'#78c878', ambient:null },+ { name:'Plague', style:'stiff', bg:'#d8d4c0', mini:'#c8c4b0', card:'#efeacf', fg:'#2a1c14', muted:'#6a5440', border:'#a89478', grid:'rgba(106,84,64,0.25)',+ body:"'EB Garamond',serif", durF:100, durD:220, durS:460, ease:'cubic-bezier(.4,0,.6,1)', pulse:'#783c28', pulseKf:'node', pulseDur:1.6, pulseTime:'ease-in-out',+ node:'#783c28', run:'#783c28', runBg:'rgba(120,60,40,0.12)', runBc:'#783c28', pip:'#98a838', ambient:null },+ { name:'Surveillance', style:'scanline', bg:'#1a1c1e', mini:'#0a0c0e', card:'#2c3034', fg:'#c8ccd0', muted:'#888c90', border:'#3a3e42', grid:'rgba(136,140,144,0.28)',+ body:"'IBM Plex Mono',monospace", durF:60, durD:140, durS:240, ease:'linear', pulse:'#e82626', pulseKf:'surv', pulseDur:1.0, pulseTime:'steps(2)',+ node:'#e82626', run:'#6acc6a', runBg:'rgba(106,204,106,0.10)', runBc:'#6acc6a', pip:'#e82626', ambient:'scan' },+];++// Trigger fill colors (node role) per theme; the listening GLOW uses the+// theme's contrast pulse color so it stays visible on that background.+const TRIG = { Light:'#ff79c6', Dark:'#ff79c6', Renaissance:'#8a1410', Greek:'#7a1a18', Edo:'#b41e1e', Steampunk:'#b8602a', Atomic:'#d8a838', Cyber:'#ffd028', Wasteland:'#8a3a18', Rot:'#e8a838', Plague:'#783c28', Surveillance:'#d8a020' };++// Build per-tile keyframes (unique names) so each theme's pulse uses its own color.+let css = '';+THEMES.forEach((t, i) => {+ const c = t.pulse;+ const id = 'k' + i;+ if (t.pulseKf === 'node') {+ css += `@keyframes ${id}-pulse {+ 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, ${c} 80%, transparent), 0 0 12px 2px color-mix(in srgb, ${c} 50%, transparent), 0 0 24px 4px color-mix(in srgb, ${c} 24%, transparent); }+ 50% { box-shadow: 0 0 0 10px color-mix(in srgb, ${c} 42%, transparent), 0 0 28px 7px color-mix(in srgb, ${c} 62%, transparent), 0 0 48px 14px color-mix(in srgb, ${c} 28%, transparent); } }`;+ } else if (t.pulseKf === 'ren') {+ css += `@keyframes ${id}-pulse {+ 0%,100% { box-shadow: 0 0 0 1px ${c}, 0 0 10px 1px color-mix(in srgb, ${c} 40%, transparent); }+ 50% { box-shadow: 0 0 0 2px ${c}, 0 0 22px 5px color-mix(in srgb, ${c} 60%, transparent); } }`;+ } else if (t.pulseKf === 'cyber') {+ css += `@keyframes ${id}-pulse {+ 0%,49% { box-shadow: 0 0 0 1px ${c}, 0 0 8px ${c}; }+ 50%,100% { box-shadow: 0 0 0 1px ${c}, 0 0 24px ${c}, 0 0 40px color-mix(in srgb, ${c} 50%, transparent); } }`;+ } else if (t.pulseKf === 'surv') {+ css += `@keyframes ${id}-pulse {+ 0%,49% { box-shadow: 0 0 0 1px ${c}, 0 0 5px color-mix(in srgb, ${c} 40%, transparent); }+ 50%,100% { box-shadow: 0 0 0 1px ${c}, 0 0 16px color-mix(in srgb, ${c} 70%, transparent); } }`;+ }+ // ease lane: travel using the theme ease + a visible duration+ css += `@keyframes ${id}-lane { 0% { left: 4px; } 55%,100% { left: calc(100% - 18px); } }`;+ // trigger listening glow (contrast pulse color), gentle + slower than exec+ css += `@keyframes ${id}-listen {+ 0%,100% { box-shadow: 0 0 0 0 transparent, 0 0 8px 1px color-mix(in srgb, ${t.pulse} 36%, transparent); }+ 50% { box-shadow: 0 0 0 5px color-mix(in srgb, ${t.pulse} 18%, transparent), 0 0 18px 4px color-mix(in srgb, ${t.pulse} 52%, transparent); } }`;+ // pip blink: steps(2) for digital themes, smooth otherwise+ const blinkTime = (t.pulseKf === 'cyber' || t.pulseKf === 'surv') ? 'steps(2)' : 'ease-in-out';+ css += `@keyframes ${id}-blink { 0%,49% { opacity: 1; } 50%,100% { opacity: ${(t.pulseKf==='cyber'||t.pulseKf==='surv')?0.25:0.45}; } }+ .${id}-blink { animation: ${id}-blink ${t.pulseKf==='surv'?1.0:1.4}s ${blinkTime} infinite; }`;+});+// ambient+css += `@keyframes crt-flicker { 0%,92%,100% { opacity:1; } 93% { opacity:.82; } 94% { opacity:1; } 96% { opacity:.9; } }+ @keyframes crt-roll { 0% { transform: translateY(-40px); } 100% { transform: translateY(260px); } }+ @keyframes candle { 0%,100% { opacity:.10; } 50% { opacity:.2; } }`;+// glitch hover for cyber+css += `@keyframes hglitch { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-2px);} 40% { transform: translateX(2px);} 60% { transform: translateX(-1px);} 80% { transform: translateX(1px);} }`;+css += `@keyframes bolt { 0%,100% { opacity:.6; transform:scale(.92);} 50% { opacity:1; transform:scale(1.08);} }`;+const styleEl = document.createElement('style');+styleEl.id = 'kf';+styleEl.textContent = css;+document.head.appendChild(styleEl);++const TRIG_BOLT = { Light:'#d97706', Dark:'#ffb86c', Renaissance:'#d4a030', Greek:'#c8a040', Edo:'#d4a030', Steampunk:'#d8a848', Atomic:'#d8a838', Cyber:'#ffd028', Wasteland:'#e88a28', Rot:'#e8a838', Plague:'#98a838', Surveillance:'#d8a020' };++const grid = document.getElementById('grid');+THEMES.forEach((t, i) => {+ const id = 'k' + i;+ const sharp = (t.pulseKf === 'cyber' || t.pulseKf === 'surv' || t.style === 'stiff');+ const trig = TRIG[t.name];+ const bolt = TRIG_BOLT[t.name];+ const tile = document.createElement('div');+ tile.className = 'tile';+ const ambientHtml =+ t.ambient === 'crt' ? `<div class="crt-roll"><div class="band" style="background:linear-gradient(180deg,transparent,${t.pulse}22,transparent); animation:crt-roll 3.2s linear infinite;"></div></div>` :+ t.ambient === 'scan' ? `<div class="crt-roll"><div class="band" style="height:18px;background:linear-gradient(180deg,transparent,${t.pulse}26,transparent); animation:crt-roll 2.4s linear infinite;"></div></div>` :+ t.ambient === 'candle' ? `<div class="crt-roll" style="background:radial-gradient(circle at 78% 30%, ${t.pulse}, transparent 60%); animation:candle 6s ease-in-out infinite;"></div>` : '';+ const miniAnim = t.ambient === 'crt' ? 'animation:crt-flicker 5s linear infinite;' : '';++ tile.innerHTML = `+ <div class="tile-head" style="background:${t.card}; color:${t.fg};">+ <span class="nm" style="font-family:${t.body};">${t.name}</span>+ <span class="style" style="color:${t.pulse};">${t.style}</span>+ </div>+ <div class="stage" style="background:${t.bg};">+ <div class="mini" style="background:${t.mini}; background-image:radial-gradient(${t.grid} 1px, transparent 1px); background-size:16px 16px; ${miniAnim}">+ ${ambientHtml}+ <div style="position:absolute; height:2px; width:150px; left:50%; top:50%; transform:translate(-50%,-50%); background:repeating-linear-gradient(90deg, ${t.node} 0 5px, transparent 5px 11px); opacity:.55;"></div>+ <div class="node trig-node" style="border-radius:${sharp?0:8}px; border-color:${trig}; background:linear-gradient(135deg, color-mix(in srgb, ${trig} 16%, ${t.card}), ${t.card}); color:${t.fg}; z-index:3; animation:${id}-listen 2.4s ease-in-out infinite;">+ <span class="pip ${id}-blink" style="background:${t.pulse};"></span>+ <span class="bolt" style="position:absolute; bottom:-4px; left:-4px; width:15px; height:15px; border-radius:${sharp?0:3}px; background:${bolt}; border:1px solid ${t.card}; display:flex; align-items:center; justify-content:center; font-size:9px; line-height:1; color:#1a1d21; animation:bolt 1.8s ease-in-out infinite;">⚡</span>+ 💬+ </div>+ <div class="node exec-node" style="border-radius:${sharp?0:8}px; border-color:${t.pulse}; background:linear-gradient(135deg, color-mix(in srgb, ${t.pulse} 16%, ${t.card}), ${t.card}); color:${t.fg}; z-index:3; animation:${id}-pulse ${t.pulseDur}s ${t.pulseTime} infinite;">+ <span class="pip ${id}-blink" style="background:${t.pulse};"></span>🤖+ </div>+ <div class="node idle-node" style="border-radius:${sharp?0:8}px; border-color:${t.node}99; background:linear-gradient(135deg, color-mix(in srgb, ${t.node} 14%, ${t.card}), ${t.card}); color:${t.fg}; z-index:2;">+ <span class="pip" style="background:${t.muted};"></span>📤+ </div>+ </div>++ <div class="lane-wrap">+ <div class="lane" style="background:${t.card}; border-color:${t.border};">+ <div class="dot ease-dot" style="background:${t.run}; animation:${id}-lane 1.7s ${t.ease} infinite alternate;"></div>+ </div>+ <div class="lane-meta" style="color:${t.muted};">+ <span style="font-family:'JetBrains Mono',monospace;">ease ${t.ease}</span>+ <span style="font-family:'JetBrains Mono',monospace;">${t.durF}/${t.durD}/${t.durS}ms</span>+ </div>+ </div>++ <div class="irow">+ <button class="btn theme-btn" data-ease="${t.ease}" data-dur="${t.durD}" style="background:${t.runBg}; border-color:${t.runBc}; color:${t.run}; border-radius:${t.pulseKf==='cyber'||t.pulseKf==='surv'||t.style==='stiff'?0:7}px; font-family:${t.body}; transition:transform ${t.durF}ms ${t.ease}, box-shadow ${t.durD}ms ${t.ease};">▶ Start</button>+ <span class="statuspip" style="color:${t.pip}; font-family:${t.body};">+ <span class="led ${id}-blink" style="background:${t.pip};"></span>ONLINE+ </span>+ <span class="hoverhint" style="color:${t.muted};">hover ▶</span>+ </div>+ </div>`;+ grid.appendChild(tile);++ // hover interactions+ const btn = tile.querySelector('.theme-btn');+ btn.addEventListener('mouseenter', () => {+ btn.style.transform = (t.style === 'glitch') ? 'none' : 'translateY(-2px)';+ btn.style.boxShadow = `0 4px 14px color-mix(in srgb, ${t.run} 30%, transparent)`;+ if (t.style === 'glitch') btn.style.animation = 'hglitch 0.4s steps(4)';+ });+ btn.addEventListener('animationend', () => { btn.style.animation = ''; });+ btn.addEventListener('mouseleave', () => { btn.style.transform = 'none'; btn.style.boxShadow = 'none'; });+ btn.addEventListener('mousedown', () => { btn.style.transform = 'translateY(1px)'; });+ btn.addEventListener('mouseup', () => { btn.style.transform = 'translateY(-2px)'; });++ const exec = tile.querySelector('.exec-node');+ exec.addEventListener('mouseenter', () => { exec.style.transform = 'translateY(-2px)'; exec.style.transition = `transform ${t.durF}ms ${t.ease}`; });+ exec.addEventListener('mouseleave', () => { exec.style.transform = 'none'; });+});++// controls+document.getElementById('replay').addEventListener('click', () => {+ document.querySelectorAll('.exec-node, .ease-dot, [class*="-blink"]').forEach((el) => {+ const a = el.style.animation || getComputedStyle(el).animation;+ el.style.animation = 'none';+ void el.offsetWidth;+ el.style.animation = '';+ });+});+let paused = false;+document.getElementById('toggle').addEventListener('click', (e) => {+ paused = !paused;+ document.querySelectorAll('.stage *').forEach((el) => { el.style.animationPlayState = paused ? 'paused' : 'running'; });+ e.target.textContent = paused ? '▶ Resume loops' : '⏸ Pause loops';+});+</script>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/canvas-pattern.html b/docs-internal/design-system/guidelines/canvas-pattern.htmlnew file mode 100644index 00000000..47dc2a2c--- /dev/null+++ b/docs-internal/design-system/guidelines/canvas-pattern.html@@ -0,0 +1,19 @@+<!-- @dsCard group="Brand" viewport="700x190" subtitle="Canvas texture — dot grid + dashed accent edges between node handles" name="Canvas Pattern" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="margin: 0; background: var(--bg-canvas);">+<div style="position: relative; height: 190px; background-image: radial-gradient(color-mix(in srgb, var(--fg-muted) 30%, transparent) 1px, transparent 1px); background-size: 20px 20px;">+ <svg width="100%" height="100%" style="position: absolute; inset: 0;">+ <path d="M 120 95 C 220 95, 260 60, 360 60" fill="none" stroke="var(--dracula-cyan)" stroke-width="2" stroke-dasharray="6 6" opacity="0.85"></path>+ <path d="M 120 95 C 220 95, 260 130, 360 130" fill="none" stroke="var(--dracula-green)" stroke-width="2" stroke-dasharray="6 6" opacity="0.85"></path>+ </svg>+ <div style="position: absolute; left: 60px; top: 65px; width: 60px; height: 60px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-purple) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-purple) 18%, var(--surface-card)), var(--surface-card)); box-shadow: 0 2px 8px color-mix(in srgb, var(--dracula-purple) 18%, transparent);"></div>+ <div style="position: absolute; left: 360px; top: 30px; width: 60px; height: 60px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-cyan) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-cyan) 18%, var(--surface-card)), var(--surface-card)); box-shadow: 0 2px 8px color-mix(in srgb, var(--dracula-cyan) 18%, transparent);"></div>+ <div style="position: absolute; left: 360px; top: 100px; width: 60px; height: 60px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-green) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-green) 18%, var(--surface-card)), var(--surface-card)); box-shadow: 0 2px 8px color-mix(in srgb, var(--dracula-green) 18%, transparent);"></div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/dracula-accents.html b/docs-internal/design-system/guidelines/dracula-accents.htmlnew file mode 100644index 00000000..2cb71e47--- /dev/null+++ b/docs-internal/design-system/guidelines/dracula-accents.html@@ -0,0 +1,40 @@+<!-- @dsCard group="Colors" viewport="700x150" subtitle="Vibrant accents — identical in light & dark, used as soft tints" name="Dracula Accents" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); padding: 16px; margin: 0;">+<div style="display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;">+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 60px; border-radius: 8px; background: var(--dracula-green);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">green<br>#50fa7b</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 60px; border-radius: 8px; background: var(--dracula-cyan);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">cyan<br>#8be9fd</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 60px; border-radius: 8px; background: var(--dracula-purple);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">purple<br>#bd93f9</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 60px; border-radius: 8px; background: var(--dracula-pink);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">pink<br>#ff79c6</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 60px; border-radius: 8px; background: var(--dracula-orange);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">orange<br>#ffb86c</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 60px; border-radius: 8px; background: var(--dracula-yellow);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">yellow<br>#f1fa8c</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 60px; border-radius: 8px; background: var(--dracula-red);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">red<br>#ff5555</div>+ </div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/mono-usage.html b/docs-internal/design-system/guidelines/mono-usage.htmlnew file mode 100644index 00000000..54add785--- /dev/null+++ b/docs-internal/design-system/guidelines/mono-usage.html@@ -0,0 +1,28 @@+<!-- @dsCard group="Type" viewport="700x150" subtitle="Mono is the machine voice — counts, state, timestamps" name="Mono Usage" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); margin: 0; padding: 16px 24px;">+<div style="display: flex; flex-direction: column; gap: 12px;">+ <div style="display: flex; height: 24px; align-items: center; gap: 12px; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); background: var(--bg-panel); padding: 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-muted);">+ <span style="color: var(--success); display: flex; align-items: center; gap: 6px;"><span style="width: 6px; height: 6px; border-radius: 99px; background: var(--success); display: inline-block;"></span>ONLINE</span>+ <span style="opacity: 0.4;">|</span>+ <span>WF: <span style="color: var(--fg-default);">WhatsApp Assistant</span></span>+ <span style="opacity: 0.4;">|</span>+ <span>NODES: <span style="color: var(--fg-default);">12</span></span>+ <span style="margin-left: auto;">THEME: <span style="color: var(--fg-default);">DARK</span></span>+ <span style="opacity: 0.4;">|</span>+ <span>14:02:33</span>+ </div>+ <div style="display: flex; gap: 16px; align-items: center;">+ <span style="font-family: var(--font-mono); font-size: 12px; color: var(--warning);">● Modified</span>+ <span style="font-family: var(--font-mono); font-size: 12px; color: var(--success);">● Saved</span>+ <span style="font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted);">12 nodes · Jun 11, 09:14</span>+ <span style="font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint);">--font-mono: 'JetBrains Mono'</span>+ </div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/motion.html b/docs-internal/design-system/guidelines/motion.htmlnew file mode 100644index 00000000..71524974--- /dev/null+++ b/docs-internal/design-system/guidelines/motion.html@@ -0,0 +1,26 @@+<!-- @dsCard group="Spacing" viewport="700x150" subtitle="90 / 180 / 320ms · one smooth ease, one springy emphasis" name="Motion" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+@keyframes slide-default { 0%, 15% { transform: translateX(0); } 60%, 100% { transform: translateX(220px); } }+@keyframes slide-emphasis { 0%, 15% { transform: translateX(0); } 60%, 100% { transform: translateX(220px); } }+.lane { position: relative; height: 28px; background: var(--bg-panel); border: 1px solid var(--border-default); border-radius: 6px; overflow: hidden; }+.dot { position: absolute; top: 4px; left: 6px; width: 18px; height: 18px; border-radius: 5px; }+</style>+</head>+<body style="background: var(--bg-app); margin: 0; padding: 18px 24px;">+<div style="display: grid; grid-template-columns: 290px 1fr; gap: 10px 16px; align-items: center;">+ <div class="lane"><div class="dot" style="background: var(--primary); animation: slide-default 1.6s var(--ease-default) infinite;"></div></div>+ <span style="font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);">--ease-default · cubic-bezier(.2,.7,.3,1)</span>+ <div class="lane"><div class="dot" style="background: var(--accent); animation: slide-emphasis 1.6s var(--ease-emphasis) infinite;"></div></div>+ <span style="font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);">--ease-emphasis · cubic-bezier(.6,-.05,.3,1.4)</span>+ <div style="display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);">+ <span>fast 90ms</span><span>default 180ms</span><span>slow 320ms</span>+ </div>+ <span style="font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint);">hover: lift −1px · press: +1px</span>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/node-roles.html b/docs-internal/design-system/guidelines/node-roles.htmlnew file mode 100644index 00000000..e2e9908f--- /dev/null+++ b/docs-internal/design-system/guidelines/node-roles.html@@ -0,0 +1,32 @@+<!-- @dsCard group="Colors" viewport="700x170" subtitle="Canvas node role colors — 8% soft fill, 30% border, full-strength accents" name="Node Roles" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); padding: 16px; margin: 0;">+<div style="display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;">+ <div style="border-radius: 10px; border: 2px solid var(--node-agent-border); background: linear-gradient(135deg, color-mix(in srgb, var(--node-agent) 14%, var(--surface-card)), var(--surface-card)); padding: 12px; text-align: center;">+ <div style="font-size: 13px; font-weight: 600; color: var(--node-agent);">Agent</div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-top: 4px;">purple</div>+ </div>+ <div style="border-radius: 10px; border: 2px solid var(--node-model-border); background: linear-gradient(135deg, color-mix(in srgb, var(--node-model) 14%, var(--surface-card)), var(--surface-card)); padding: 12px; text-align: center;">+ <div style="font-size: 13px; font-weight: 600; color: var(--node-model);">Model</div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-top: 4px;">cyan</div>+ </div>+ <div style="border-radius: 10px; border: 2px solid var(--node-tool-border); background: linear-gradient(135deg, color-mix(in srgb, var(--node-tool) 14%, var(--surface-card)), var(--surface-card)); padding: 12px; text-align: center;">+ <div style="font-size: 13px; font-weight: 600; color: var(--node-tool);">Tool / Skill</div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-top: 4px;">green</div>+ </div>+ <div style="border-radius: 10px; border: 2px solid var(--node-trigger-border); background: linear-gradient(135deg, color-mix(in srgb, var(--node-trigger) 14%, var(--surface-card)), var(--surface-card)); padding: 12px; text-align: center;">+ <div style="font-size: 13px; font-weight: 600; color: var(--node-trigger);">Trigger</div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-top: 4px;">pink</div>+ </div>+ <div style="border-radius: 10px; border: 2px solid var(--node-workflow-border); background: linear-gradient(135deg, color-mix(in srgb, var(--node-workflow) 14%, var(--surface-card)), var(--surface-card)); padding: 12px; text-align: center;">+ <div style="font-size: 13px; font-weight: 600; color: var(--node-workflow);">Workflow</div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); margin-top: 4px;">orange</div>+ </div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/panels-all-themes.html b/docs-internal/design-system/guidelines/panels-all-themes.htmlnew file mode 100644index 00000000..4126ed15--- /dev/null+++ b/docs-internal/design-system/guidelines/panels-all-themes.html@@ -0,0 +1,582 @@+<!-- @dsCard group="Brand" viewport="1320x900" name="Panels × Themes" subtitle="Every panel — toolbar, sidebar, palette, console, status bar, Node Config, Settings, Credentials — in all 12 themes" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>MachinaOS — All Panels × All Themes</title>+<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:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&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:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Lato:wght@400;700&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=VT323&display=swap">+<style>+ * { box-sizing: border-box; }+ body { margin: 0; background: #0a0c10; font-family: 'Geist', system-ui, sans-serif; color: #e6edf3; }+ header { padding: 26px 32px 4px; }+ header h1 { margin: 0; font-size: 20px; font-weight: 600; }+ header p { margin: 6px 0 0; font-size: 13px; color: #8b949e; max-width: 860px; line-height: 1.5; }+ nav.jump { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 32px 4px; position: sticky; top: 0; background: rgba(10,12,16,0.92); z-index: 50; backdrop-filter: blur(4px); border-bottom: 1px solid #21262d; padding-bottom: 12px; }+ nav.jump a { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8b949e; text-decoration: none; border: 1px solid #21262d; border-radius: 999px; padding: 4px 10px; }+ nav.jump a:hover { color: #e6edf3; border-color: #8b949e; }+ .list { display: flex; flex-direction: column; gap: 30px; padding: 22px 32px 60px; }+ .tile { border-radius: 12px; overflow: hidden; border: 1px solid #21262d; background: #11151a; }+ .tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 18px; }+ .tile-head .nm { font-size: 16px; font-weight: 600; }+ .tile-head .meta { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #8b949e; text-align: right; }+ .screen-wrap { position: relative; width: 100%; }+ .stage { position: absolute; left: 0; top: 0; width: 1380px; display: flex; flex-direction: column; gap: 20px; transform-origin: top left; font-size: 13px; padding: 18px; }++ .pmodal { border: 1px solid; display: flex; flex-direction: column; overflow: hidden; }+ .phead { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-bottom: 1px solid; flex-shrink: 0; }+ .phead .ttl { position: absolute; left: 16px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }+ .phead .x { position: absolute; right: 14px; opacity: 0.6; font-size: 14px; }+ .phead .acts { display: flex; align-items: center; gap: 8px; }+ .btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; border: 1px solid; line-height: 1; white-space: nowrap; }+ .colhead { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-bottom: 1px solid; font-size: 11.5px; font-weight: 600; flex-shrink: 0; }+ .datacard { border: 1px solid; border-left-width: 4px; padding: 10px; }+ .dc-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; }+ .chip { display: inline-flex; align-items: center; height: 17px; padding: 0 6px; font-size: 9.5px; font-weight: 500; border: 1px solid; white-space: nowrap; }+ .jsonblk { border: 1px solid; overflow: hidden; }+ .jsonblk .lbl { padding: 5px 10px; font-size: 10px; font-weight: 600; border-bottom: 1px solid; }+ .jsonblk pre { margin: 0; padding: 9px 10px; font-size: 10.5px; line-height: 1.45; white-space: pre-wrap; }+ .flabel { display: block; font-size: 11px; font-weight: 500; margin-bottom: 4px; }+ .finput { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 10px; border: 1px solid; font-size: 11px; }+ .ftext { padding: 8px 10px; border: 1px solid; font-size: 10.5px; line-height: 1.5; }+ .slider { position: relative; height: 16px; display: flex; align-items: center; }+ .slider .tr { position: absolute; left: 0; right: 0; height: 5px; border-radius: 99px; border: 1px solid; }+ .slider .fl { position: absolute; left: 0; height: 5px; border-radius: 99px; }+ .slider .th { position: absolute; width: 13px; height: 13px; border-radius: 50%; border: 2px solid; }+ .acc { border: 1px solid; overflow: hidden; }+ .acc .ahead { display: flex; align-items: center; gap: 7px; padding: 9px 12px; font-size: 11.5px; font-weight: 600; }+ .acc .abody { padding: 10px 12px; border-top: 1px solid; }+ .prog { height: 7px; border-radius: 99px; overflow: hidden; border: 1px solid; }+ .prog .pf { height: 100%; }+ .stat .st { font-size: 9.5px; }+ .stat .sv { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }+ .skcard { display: flex; align-items: flex-start; gap: 9px; border: 1px solid; border-left-width: 3px; padding: 8px 10px; }+ .skcard .ictile { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }+ .switch { position: relative; width: 30px; height: 17px; border-radius: 999px; border: 1px solid; flex-shrink: 0; }+ .switch .knob { position: absolute; top: 2px; width: 11px; height: 11px; border-radius: 50%; }+ .srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }+ .srow .sl { font-size: 11.5px; font-weight: 500; }+ .srow .sd { font-size: 9.5px; margin-top: 1px; line-height: 1.35; }+ .sect { border: 1px solid; padding: 12px; }+ .sect-h { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid; font-size: 12.5px; font-weight: 600; }+ .sect-h .it { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }+ .skrow { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-left: 3px solid transparent; font-size: 11px; }+ .cb { width: 13px; height: 13px; border: 1px solid; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }+ .avat { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }+ .toast { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid; font-size: 11px; font-weight: 500; }+</style>+</head>+<body>+<header>+ <h1>MachinaOS — every workspace panel, all twelve themes</h1>+ <p>Every surface per theme — the <b>workspace chrome</b> (top toolbar, workflow sidebar, component palette, console dock, status bar), the three-column <b>Node Configuration</b> panel (Input · Parameters with Token Usage + Connected Skills · Output), the split <b>Master Skill Editor</b>, the <b>Settings</b> panel, <b>API Credentials</b>, and the <b>Clear Memory</b> dialog + toasts. UI copy uses each theme's readable body font; decorative display faces appear only in tile headers.</p>+</header>+<nav class="jump" id="jump"></nav>+<div class="list" id="list"></div>++<script>+const THEMES = [+ { name: 'Light', tag: 'default · Geist · radius 6–8', bg: '#f5f7fa', panel: '#fafbfc', card: '#ffffff', elevated: '#ffffff', fg: '#1a1d21', muted: '#4b5563', faint: '#9ca3af', border: '#d1d5db',+ body: "'Geist',sans-serif", mono: "'JetBrains Mono',monospace", r: 6,+ run: '#15803d', runBg: 'rgba(80,250,123,0.15)', runBc: 'rgba(80,250,123,0.6)', stop: '#be185d', stopBg: 'rgba(255,121,198,0.15)', stopBc: 'rgba(255,121,198,0.6)',+ save: '#0e7490', saveBg: 'rgba(139,233,253,0.15)', saveBc: 'rgba(139,233,253,0.6)', config: '#c2410c', configBg: 'rgba(255,184,108,0.15)', configBc: 'rgba(255,184,108,0.6)',+ tools: '#7c3aed', toolsBg: 'rgba(189,147,249,0.15)', toolsBc: 'rgba(189,147,249,0.6)',+ primary: '#2563eb', onPrimary: '#ffffff', agent: '#bd93f9', model: '#8be9fd', tool: '#50fa7b', trig: '#ff79c6', ok: '#059669', warn: '#d97706', err: '#dc2626', info: '#0891b2',+ display: "'Geist',sans-serif" },+ { name: 'Dark', tag: 'signature · Solarized + Dracula', bg: '#002b36', panel: '#073642', card: '#073642', elevated: '#0d1f2d', fg: '#f8f8f2', muted: '#94a8d6', faint: '#6272a4', border: '#586e75',+ body: "'Geist',sans-serif", mono: "'JetBrains Mono',monospace", r: 6,+ run: '#50fa7b', runBg: 'rgba(80,250,123,0.15)', runBc: 'rgba(80,250,123,0.6)', stop: '#ff79c6', stopBg: 'rgba(255,121,198,0.15)', stopBc: 'rgba(255,121,198,0.6)',+ save: '#8be9fd', saveBg: 'rgba(139,233,253,0.15)', saveBc: 'rgba(139,233,253,0.6)', config: '#ffb86c', configBg: 'rgba(255,184,108,0.15)', configBc: 'rgba(255,184,108,0.6)',+ tools: '#bd93f9', toolsBg: 'rgba(189,147,249,0.15)', toolsBc: 'rgba(189,147,249,0.6)',+ primary: '#268bd2', onPrimary: '#f8f8f2', agent: '#bd93f9', model: '#8be9fd', tool: '#50fa7b', trig: '#ff79c6', ok: '#859900', warn: '#b58900', err: '#dc322f', info: '#2aa198',+ display: "'Geist',sans-serif" },+ { name: 'Renaissance', tag: 'illuminated codex · Cormorant body', bg: '#f3e8c8', panel: '#ead09a', card: '#fbf3dc', elevated: '#fbf3dc', fg: '#3a2008', muted: '#6a4a1c', faint: '#9a7a3c', border: '#8a5e1c',+ body: "'Cormorant Garamond',serif", mono: "'IM Fell English',serif", r: 3,+ run: '#8a1410', runBg: 'rgba(212,160,48,0.20)', runBc: '#8a5e1c', stop: '#8a1410', stopBg: 'rgba(138,20,16,0.12)', stopBc: '#8a1410',+ save: '#2548c8', saveBg: 'rgba(37,72,200,0.10)', saveBc: '#2548c8', config: '#6a4a1c', configBg: 'rgba(106,74,28,0.12)', configBc: '#6a4a1c',+ tools: '#d4a030', toolsBg: 'rgba(212,160,48,0.16)', toolsBc: '#8a5e1c',+ primary: '#2548c8', onPrimary: '#fbf3dc', agent: '#2548c8', model: '#5a6a28', tool: '#d4a030', trig: '#8a1410', ok: '#5a6a28', warn: '#b87818', err: '#8a1410', info: '#2548c8',+ display: "'Cinzel',serif" },+ { name: 'Greek', tag: 'marble agora · Cormorant body', bg: '#ede5d0', panel: '#f5efde', card: '#faf6e9', elevated: '#faf6e9', fg: '#2a2415', muted: '#6a5d3c', faint: '#9a8c64', border: '#b8a878',+ body: "'Cormorant Garamond',serif", mono: "'Courier Prime',monospace", r: 1,+ run: '#284b82', runBg: 'rgba(40,75,130,0.12)', runBc: '#284b82', stop: '#7a1a18', stopBg: 'rgba(122,26,24,0.10)', stopBc: '#7a1a18',+ save: '#284b82', saveBg: 'rgba(40,75,130,0.08)', saveBc: '#284b82', config: '#a88430', configBg: 'rgba(200,160,64,0.14)', configBc: '#a88430',+ tools: '#6a7a32', toolsBg: 'rgba(106,122,50,0.12)', toolsBc: '#6a7a32',+ primary: '#284b82', onPrimary: '#faf6e9', agent: '#284b82', model: '#6a7a32', tool: '#c8a040', trig: '#7a1a18', ok: '#6a7a32', warn: '#b87818', err: '#7a1a18', info: '#284b82',+ display: "'Cinzel',serif" },+ { name: 'Edo', tag: 'washi + sumi-e · Shippori Mincho', bg: '#f4ecd8', panel: '#faf3e0', card: '#fdf8ea', elevated: '#fdf8ea', fg: '#1a1410', muted: '#6a5e48', faint: '#9a8c70', border: '#c8b890',+ body: "'Shippori Mincho',serif", mono: "'JetBrains Mono',monospace", r: 0,+ run: '#b41e1e', runBg: 'rgba(180,30,30,0.08)', runBc: '#b41e1e', stop: '#1a1410', stopBg: 'rgba(26,20,16,0.08)', stopBc: '#1a1410',+ save: '#4a6a3a', saveBg: 'rgba(74,106,58,0.10)', saveBc: '#4a6a3a', config: '#6a5e48', configBg: 'rgba(106,94,72,0.10)', configBc: '#6a5e48',+ tools: '#b41e1e', toolsBg: 'rgba(180,30,30,0.06)', toolsBc: '#b41e1e',+ primary: '#b41e1e', onPrimary: '#fdf8ea', agent: '#b41e1e', model: '#4a6a3a', tool: '#4a6a3a', trig: '#e89aa8', ok: '#4a6a3a', warn: '#b87818', err: '#b41e1e', info: '#4a6a3a',+ display: "'Shippori Mincho',serif" },+ { name: 'Steampunk', tag: 'brass & rivets · IM Fell body', bg: '#2a1f12', panel: '#3a2a18', card: '#4a3620', elevated: '#4a3620', fg: '#e8d8b0', muted: '#b8a070', faint: '#8a7448', border: '#6a4a20',+ body: "'IM Fell English',serif", mono: "'Special Elite',monospace", r: 3,+ run: '#d8a848', runBg: 'rgba(216,168,72,0.20)', runBc: '#d8a848', stop: '#b8602a', stopBg: 'rgba(184,96,42,0.18)', stopBc: '#b8602a',+ save: '#d8a848', saveBg: 'rgba(216,168,72,0.12)', saveBc: '#a87830', config: '#b8602a', configBg: 'rgba(184,96,42,0.12)', configBc: '#b8602a',+ tools: '#8a8a4a', toolsBg: 'rgba(138,138,74,0.14)', toolsBc: '#8a8a4a',+ primary: '#d8a848', onPrimary: '#2a1f12', agent: '#d8a848', model: '#b8a070', tool: '#8a8a4a', trig: '#b8602a', ok: '#8a8a4a', warn: '#d8a848', err: '#b8602a', info: '#b8a070',+ display: "'IM Fell English',serif" },+ { name: 'Atomic', tag: '1962 Eames · Lato body', bg: '#f0e6d2', panel: '#faf2dc', card: '#ffffff', elevated: '#ffffff', fg: '#2a3a4a', muted: '#5a6a7a', faint: '#8a96a2', border: '#c8b890',+ body: "'Lato',sans-serif", mono: "'Space Mono',monospace", r: 2,+ run: '#3a9aa0', runBg: 'rgba(58,154,160,0.12)', runBc: '#3a9aa0', stop: '#e85a26', stopBg: 'rgba(232,90,38,0.12)', stopBc: '#e85a26',+ save: '#3a9aa0', saveBg: 'rgba(58,154,160,0.08)', saveBc: '#3a9aa0', config: '#b8882a', configBg: 'rgba(216,168,56,0.14)', configBc: '#b8882a',+ tools: '#e85a26', toolsBg: 'rgba(232,90,38,0.08)', toolsBc: '#e85a26',+ primary: '#3a9aa0', onPrimary: '#ffffff', agent: '#e85a26', model: '#3a9aa0', tool: '#3a9aa0', trig: '#d8a838', ok: '#3a9aa0', warn: '#d8a838', err: '#e85a26', info: '#3a9aa0',+ display: "'Lato',sans-serif" },+ { name: 'Cyber', tag: 'neon market · JetBrains body', bg: '#050010', panel: '#0a0420', card: '#15103a', elevated: '#15103a', fg: '#f0e0ff', muted: '#a090c0', faint: '#6a5a90', border: '#2a1f50',+ body: "'JetBrains Mono',monospace", mono: "'JetBrains Mono',monospace", r: 0,+ run: '#26d97a', runBg: 'rgba(38,217,122,0.14)', runBc: '#26d97a', stop: '#f51eb6', stopBg: 'rgba(245,30,182,0.14)', stopBc: '#f51eb6',+ save: '#1dd9e5', saveBg: 'rgba(29,217,229,0.12)', saveBc: '#1dd9e5', config: '#ffd028', configBg: 'rgba(255,208,40,0.10)', configBc: '#ffd028',+ tools: '#f51eb6', toolsBg: 'rgba(245,30,182,0.10)', toolsBc: '#f51eb6',+ primary: '#1dd9e5', onPrimary: '#050010', agent: '#f51eb6', model: '#1dd9e5', tool: '#26d97a', trig: '#ffd028', ok: '#26d97a', warn: '#ffd028', err: '#f51eb6', info: '#1dd9e5',+ display: "'JetBrains Mono',monospace" },+ { name: 'Wasteland', tag: 'irradiated scrap · Special Elite', bg: '#2a2018', panel: '#3a2c1c', card: '#4a3826', elevated: '#4a3826', fg: '#e8d8a8', muted: '#b89868', faint: '#8a7048', border: '#6a4a28',+ body: "'Special Elite',monospace", mono: "'VT323',monospace", r: 0,+ run: '#c8d038', runBg: 'rgba(200,208,56,0.14)', runBc: '#c8d038', stop: '#e88a28', stopBg: 'rgba(138,58,24,0.20)', stopBc: '#e88a28',+ save: '#d8c8a0', saveBg: 'rgba(216,200,160,0.10)', saveBc: '#b8a880', config: '#e88a28', configBg: 'rgba(232,138,40,0.12)', configBc: '#e88a28',+ tools: '#c8d038', toolsBg: 'rgba(200,208,56,0.10)', toolsBc: '#a8b028',+ primary: '#e88a28', onPrimary: '#2a2018', agent: '#e88a28', model: '#d8c8a0', tool: '#c8d038', trig: '#8a3a18', ok: '#c8d038', warn: '#e88a28', err: '#8a3a18', info: '#d8c8a0',+ display: "'Special Elite',monospace" },+ { name: 'Rot', tag: 'mossy crypt · EB Garamond body', bg: '#14181a', panel: '#1c2226', card: '#242c30', elevated: '#242c30', fg: '#c8d8c0', muted: '#788878', faint: '#4a5a50', border: '#2a3a30',+ body: "'EB Garamond',serif", mono: "'JetBrains Mono',monospace", r: 2,+ run: '#78c878', runBg: 'rgba(120,200,120,0.10)', runBc: '#78c878', stop: '#e8a838', stopBg: 'rgba(232,168,56,0.10)', stopBc: '#e8a838',+ save: '#d8d0b8', saveBg: 'rgba(216,208,184,0.08)', saveBc: '#8a8470', config: '#b8882a', configBg: 'rgba(232,168,56,0.08)', configBc: '#b8882a',+ tools: '#78c878', toolsBg: 'rgba(120,200,120,0.08)', toolsBc: '#588858',+ primary: '#78c878', onPrimary: '#14181a', agent: '#78c878', model: '#788878', tool: '#d8d0b8', trig: '#e8a838', ok: '#78c878', warn: '#e8a838', err: '#c85040', info: '#78c878',+ display: "'EB Garamond',serif" },+ { name: 'Plague', tag: '1349 broadsheet · EB Garamond', bg: '#d8d4c0', panel: '#e4dfc8', card: '#efeacf', elevated: '#efeacf', fg: '#2a1c14', muted: '#6a5440', faint: '#9a8468', border: '#a89478',+ body: "'EB Garamond',serif", mono: "'Special Elite',monospace", r: 0,+ run: '#783c28', runBg: 'rgba(120,60,40,0.12)', runBc: '#783c28', stop: '#1a1410', stopBg: 'rgba(26,20,16,0.10)', stopBc: '#1a1410',+ save: '#6a5440', saveBg: 'rgba(106,84,64,0.10)', saveBc: '#6a5440', config: '#788828', configBg: 'rgba(152,168,56,0.14)', configBc: '#788828',+ tools: '#783c28', toolsBg: 'rgba(120,60,40,0.08)', toolsBc: '#783c28',+ primary: '#783c28', onPrimary: '#efeacf', agent: '#783c28', model: '#6a5440', tool: '#98a838', trig: '#1a1410', ok: '#98a838', warn: '#b87818', err: '#783c28', info: '#6a5440',+ display: "'EB Garamond',serif" },+ { name: 'Surveillance', tag: 'panopticon · IBM Plex Mono', bg: '#1a1c1e', panel: '#232628', card: '#2c3034', elevated: '#2c3034', fg: '#c8ccd0', muted: '#888c90', faint: '#5a5e62', border: '#3a3e42',+ body: "'IBM Plex Mono',monospace", mono: "'IBM Plex Mono',monospace", r: 0,+ run: '#6acc6a', runBg: 'rgba(106,204,106,0.10)', runBc: '#6acc6a', stop: '#e82626', stopBg: 'rgba(232,38,38,0.10)', stopBc: '#e82626',+ save: '#888c90', saveBg: 'rgba(136,140,144,0.10)', saveBc: '#888c90', config: '#d8a020', configBg: 'rgba(216,160,32,0.10)', configBc: '#d8a020',+ tools: '#e82626', toolsBg: 'rgba(232,38,38,0.08)', toolsBc: '#e82626',+ primary: '#6acc6a', onPrimary: '#1a1c1e', agent: '#e82626', model: '#888c90', tool: '#6acc6a', trig: '#d8a020', ok: '#6acc6a', warn: '#d8a020', err: '#e82626', info: '#6acc6a',+ display: "'Anonymous Pro',monospace" },+];++function mix(hex, pct, baseHex) {+ const h = (x) => [parseInt(x.slice(1,3),16), parseInt(x.slice(3,5),16), parseInt(x.slice(5,7),16)];+ const a = h(hex), b = h(baseHex);+ return `rgb(${a.map((v,i)=>Math.round(v*pct + b[i]*(1-pct))).join(',')})`;+}++const btn = (t, kind, label) =>+ `<span class="btn" style="background:${t[kind+'Bg']}; border-color:${t[kind+'Bc']}; color:${t[kind]}; border-radius:${t.r}px;">${label}</span>`;+const solidBtn = (t, label) =>+ `<span class="btn" style="background:${t.primary}; border-color:transparent; color:${t.onPrimary}; border-radius:${t.r}px;">${label}</span>`;+const validBtn = (t) =>+ `<span class="btn" style="background:${mix(t.ok,0.12,t.card)}; border-color:${mix(t.ok,0.4,t.card)}; color:${t.ok}; border-radius:${t.r}px;">✓ Valid</span>`;+const chip = (t, color, label) =>+ `<span class="chip" style="background:${mix(color,0.12,t.card)}; border-color:${mix(color,0.35,t.card)}; color:${color}; border-radius:${Math.max(t.r-1,2)}px;">${label}</span>`;+const sw = (t, on) =>+ `<span class="switch" style="background:${on ? t.primary : mix(t.fg,0.08,t.bg)}; border-color:${on ? 'transparent' : t.border};"><span class="knob" style="left:${on?16:2}px; background:${on ? t.onPrimary : t.faint};"></span></span>`;+const cbx = (t, on) =>+ `<span class="cb" style="border-radius:${Math.min(t.r,3)}px; border-color:${on?t.primary:t.faint}; background:${on?t.primary:t.elevated}; color:${t.onPrimary};">${on?'✓':''}</span>`;+const slider = (t, pct, color) => `+ <span class="slider" style="display:block;">+ <span class="tr" style="background:${mix(t.fg,0.06,t.bg)}; border-color:${t.border};"></span>+ <span class="fl" style="width:${pct}%; background:${color};"></span>+ <span class="th" style="left:calc(${pct}% - 7px); background:${t.elevated}; border-color:${color};"></span>+ </span>`;+const jsonBlk = (t, label, body, bodyColor) => `+ <div class="jsonblk" style="border-color:${t.border}; border-radius:${t.r}px;">+ <div class="lbl" style="background:${mix(t.fg,0.05,t.card)}; border-color:${t.border}; color:${t.muted}; font-family:${t.body};">${label}</div>+ <pre style="font-family:${t.mono}; color:${bodyColor || t.fg}; background:${mix(t.fg,0.02,t.card)};">${body}</pre>+ </div>`;+const dataCard = (t, tone, title, badgeTxt, blkLabel, blkBody) => `+ <div class="datacard" style="border-color:${t.border}; border-left-color:${tone}; background:${t.card}; border-radius:${t.r}px;">+ <div class="dc-head" style="color:${t.fg}; font-family:${t.body};">+ <span style="color:${tone};">▣</span> ${title} ${badgeTxt ? chip(t, tone, badgeTxt) : ''}+ <span style="margin-left:auto; color:${t.muted}; font-weight:500; font-size:10px;">⧉ Copy</span>+ </div>+ ${jsonBlk(t, blkLabel, blkBody)}+ </div>`;+const phead = (t, icon, title, actsHtml) => `+ <div class="phead" style="background:${t.panel}; border-color:${t.border};">+ <span class="ttl" style="color:${t.fg}; font-family:${t.body};"><span style="opacity:0.65;">${icon}</span> ${title}</span>+ <span class="acts">${actsHtml}</span>+ <span class="x" style="color:${t.muted};">✕</span>+ </div>`;+const colhead = (t, icon, text) =>+ `<div class="colhead" style="background:${t.panel}; border-color:${t.border}; color:${t.fg}; font-family:${t.body};">${icon} ${text}</div>`;+const accHead = (t, icon, title, right) => `+ <div class="ahead" style="background:${t.elevated}; color:${t.fg}; font-family:${t.body};">${icon} ${title}<span style="margin-left:auto; display:flex; align-items:center; gap:6px;">${right || ''}<span style="color:${t.muted};">⌄</span></span></div>`;+const stat = (t, title, value) =>+ `<span class="stat" style="display:flex; flex-direction:column;"><span class="st" style="color:${t.muted};">${title}</span><span class="sv" style="color:${t.fg}; font-family:${t.mono};">${value}</span></span>`;+const skCard = (t, color, icon, name, desc) => `+ <div class="skcard" style="border-color:${t.border}; border-left-color:${color}; background:${mix(t.fg,0.03,t.card)}; border-radius:${t.r}px;">+ <span class="ictile" style="background:${mix(color,0.12,t.card)}; color:${color}; border-radius:${t.r}px;">${icon}</span>+ <span style="min-width:0; flex:1;">+ <div style="font-size:11px; font-weight:600; color:${t.fg}; font-family:${t.body};">${name}</div>+ <div style="font-size:9.5px; color:${t.muted}; font-family:${t.body}; line-height:1.35;">${desc}</div>+ </span>+ ${chip(t, t.ok, 'Active')}+ </div>`;+const skRow = (t, on, icon, name, opts = {}) => `+ <div class="skrow" style="font-family:${t.body}; color:${on ? t.fg : t.muted}; ${opts.sel ? `background:${mix(opts.color || t.tools, 0.10, t.elevated)}; border-left-color:${opts.color || t.tools}; font-weight:600;` : ''} border-bottom:1px solid ${mix(t.border,0.5,t.elevated)};">+ ${cbx(t, on)} <span>${icon}</span> <span style="flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;">${name}</span>+ ${opts.customized ? `<span style="width:7px; height:7px; border-radius:99px; background:${t.warn}; flex-shrink:0;" title="Customized"></span>` : ''}+ ${opts.custom ? chip(t, t.info, 'Custom') : ''}+ </div>`;+const srow = (t, label, desc, ctrl) => `+ <div class="srow">+ <span style="min-width:0;"><div class="sl" style="color:${t.fg}; font-family:${t.body};">${label}</div><div class="sd" style="color:${t.muted}; font-family:${t.body};">${desc}</div></span>+ ${ctrl}+ </div>`;+const sectH = (t, color, icon, title) => `+ <div class="sect-h" style="border-color:${t.border}; color:${t.fg}; font-family:${t.body};">+ <span class="it" style="background:${mix(color,0.1,t.elevated)}; color:${color}; border-radius:${t.r}px;">${icon}</span> ${title}+ </div>`;++function nodeConfigPanel(t) {+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.bg}; border-radius:${t.r+2}px; height:560px;">+ ${phead(t, '⚙', 'Node Configuration', `+ <span style="display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:${t.fg}; font-family:${t.body}; margin-right:10px;">🤖 AI Agent <span style="color:${t.warn};">*</span></span>+ ${btn(t,'run','▶ Run')} ${btn(t,'tools','Save')} ${btn(t,'stop','✕ Cancel')}`)}+ <div style="display:flex; flex:1; min-height:0;">+ <div style="flex:0 0 300px; display:flex; flex-direction:column; border-right:1px solid ${t.border};">+ ${colhead(t, '🔗', 'Input Data (1 item)')}+ <div style="flex:1; padding:10px; overflow:hidden;">+ ${dataCard(t, t.ok, 'Item 1', 'from WhatsApp Receive', 'Received Data', '{\n "message": "What is on my\n calendar today?",\n "from": "+1 555 014 2236"\n}')}+ </div>+ <div style="padding:7px 12px; border-top:1px solid ${t.border}; font-size:9.5px; color:${t.muted}; font-family:${t.body};">Shows actual data received by this node during execution</div>+ </div>+ <div style="flex:1; min-width:0; display:flex; flex-direction:column;">+ ${colhead(t, '🎛', 'Parameters')}+ <div style="padding:8px 14px 4px; border-bottom:1px solid ${t.border}; background:${t.panel}; font-size:10.5px; color:${t.muted}; font-family:${t.body};">LangGraph agent with memory, skills and tool delegation</div>+ <div style="flex:1; min-height:0; overflow:hidden; padding:12px 14px; display:flex; flex-direction:column; gap:10px;">+ <div class="sect" style="border-color:${t.border}; background:${t.elevated}; border-radius:${t.r}px; display:flex; flex-direction:column; gap:9px;">+ <span><span class="flabel" style="color:${t.fg}; font-family:${t.body};">Model</span>+ <span class="finput" style="border-color:${t.border}; background:${mix(t.fg,0.02,t.elevated)}; color:${t.fg}; font-family:${t.body}; border-radius:${t.r}px;">claude-sonnet-4-5 <span style="color:${t.muted};">⌄</span></span></span>+ <span><span class="flabel" style="color:${t.fg}; font-family:${t.body};">System Prompt</span>+ <span class="ftext" style="display:block; border-color:${t.border}; background:${mix(t.fg,0.02,t.elevated)}; color:${t.fg}; font-family:${t.body}; border-radius:${t.r}px;">You are a personal assistant with access to my calendar, email, and messages. Answer briefly and take action when asked.</span></span>+ <span><span style="display:flex; justify-content:space-between;"><span class="flabel" style="color:${t.fg}; font-family:${t.body};">Temperature</span><span style="font-family:${t.mono}; font-size:10.5px; color:${t.model};">0.70</span></span>+ ${slider(t, 70, t.model)}</span>+ </div>+ <div class="acc" style="border-color:${t.border}; border-radius:${t.r}px;">+ ${accHead(t, '⚡', 'Token Usage', `<span style="font-size:9.5px; color:${t.muted}; font-family:${t.mono};">82K / 200K context</span>`)}+ <div class="abody" style="border-color:${t.border}; background:${t.card};">+ <div class="prog" style="background:${mix(t.fg,0.06,t.card)}; border-color:${t.border};"><div class="pf" style="width:41%; background:${t.model};"></div></div>+ <div style="font-size:9px; color:${t.muted}; margin-top:3px; font-family:${t.body};">Compaction at 160K (80% of context)</div>+ <div style="display:flex; gap:26px; margin-top:8px;">+ ${stat(t,'Total','82,114')} ${stat(t,'Threshold ✎','160,000')} ${stat(t,'Compactions','2')} ${stat(t,'Context','200K')}+ </div>+ <div style="font-size:9px; color:${t.muted}; margin-top:6px; font-family:${t.mono};">Session: agent_2YxK</div>+ </div>+ </div>+ </div>+ </div>+ <div style="flex:0 0 300px; display:flex; flex-direction:column; border-left:1px solid ${t.border};">+ ${colhead(t, '➡', 'Output')}+ <div style="flex:1; padding:10px; display:flex; flex-direction:column; gap:10px; overflow:hidden;">+ ${dataCard(t, t.ok, 'Execution Result', 'Success · 1.9s', 'Response', '{\n "response": "You have 2\n events today: standup at\n 10:00, dentist at 15:30."\n}')}+ <div class="acc" style="border-color:${t.border}; border-radius:${t.r}px;">+ ${accHead(t, '✦', 'Connected Skills', chip(t, t.tools, '2'))}+ <div class="abody" style="border-color:${t.border}; background:${t.card}; display:flex; flex-direction:column; gap:7px;">+ ${skCard(t, t.tool, '🔍', 'Web Search', 'Search the web via DuckDuckGo')}+ ${skCard(t, t.tool, '📱', 'Android Toolkit', '16 device services')}+ </div>+ </div>+ </div>+ </div>+ </div>+ </div>`;+}++function masterSkillPanel(t) {+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.bg}; border-radius:${t.r+2}px; height:430px;">+ ${phead(t, '⚙', 'Node Configuration', `+ <span style="display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:${t.fg}; font-family:${t.body}; margin-right:10px;">📚 Master Skill</span>+ ${btn(t,'run','▶ Run')} ${btn(t,'tools','Save')} ${btn(t,'stop','✕ Cancel')}`)}+ <div style="display:flex; flex:1; min-height:0; gap:10px; padding:10px;">+ <div style="flex:0 0 250px; display:flex; flex-direction:column; border:1px solid ${t.border}; background:${t.elevated}; border-radius:${t.r}px; overflow:hidden;">+ <div style="display:flex; align-items:center; justify-content:space-between; padding:7px 10px; border-bottom:1px solid ${t.border}; background:${t.panel};">+ <span style="font-size:11.5px; font-weight:600; color:${t.fg}; font-family:${t.body};">Skills</span>+ <span style="display:flex; gap:5px; align-items:center;">+ <span style="min-width:17px; height:17px; border-radius:99px; background:${t.tools}; color:${t.bg}; font-size:9.5px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; padding:0 4px; font-family:${t.mono};">3</span>+ ${btn(t,'tools','+')}+ </span>+ </div>+ <div style="padding:7px; border-bottom:1px solid ${t.border};"><span class="finput" style="border-color:${t.border}; background:${mix(t.fg,0.02,t.elevated)}; color:${t.faint}; font-family:${t.body}; border-radius:${t.r}px;">⌕ Search skills...</span></div>+ <div style="padding:7px; border-bottom:1px solid ${t.border};"><span class="finput" style="border-color:${t.border}; background:${mix(t.fg,0.02,t.elevated)}; color:${t.fg}; font-family:${t.body}; border-radius:${t.r}px;">🗀 assistant (12) <span style="color:${t.muted};">⌄</span></span></div>+ <div style="flex:1; overflow:hidden;">+ ${skRow(t, true, '📅', 'calendar-skill', { sel: true, color: t.tools, customized: true })}+ ${skRow(t, true, '✉️', 'email-skill')}+ ${skRow(t, true, '💬', 'whatsapp-skill')}+ ${skRow(t, false, '🌐', 'browser-skill')}+ ${skRow(t, false, '🗂️', 'files-skill')}+ ${skRow(t, false, '🧪', 'my-research-skill', { custom: true })}+ </div>+ </div>+ <div style="flex:1; min-width:0; display:flex; flex-direction:column; border:1px solid ${t.border}; background:${t.elevated}; border-radius:${t.r}px; overflow:hidden;">+ <div style="display:flex; align-items:center; gap:9px; padding:8px 11px; border-bottom:1px solid ${t.border}; background:${t.panel};">+ <span style="font-size:16px;">📅</span>+ <span style="flex:1;">+ <div style="font-size:11.5px; font-weight:600; color:${t.fg}; font-family:${t.body}; display:flex; align-items:center; gap:6px;">calendar-skill ${chip(t, t.warn, 'Customized')}</div>+ <div style="font-size:9.5px; color:${t.muted}; font-family:${t.body};">Read and create calendar events</div>+ </span>+ ${btn(t,'config','↺ Reset')}+ </div>+ <div style="flex:1; min-height:0; padding:9px; display:flex; flex-direction:column; gap:8px;">+ <div style="flex:1; border:1px solid ${t.border}; background:${mix(t.fg,0.02,t.elevated)}; border-radius:${t.r}px; padding:9px 11px; font-family:${t.mono}; font-size:10.5px; line-height:1.55; color:${t.fg}; overflow:hidden;"># Calendar Skill++When the user asks about their schedule:+1. Call \`calendar.list_events\` with the date range+2. Summarize events chronologically, flag conflicts+3. For new events, confirm title + time before creating</div>+ <div class="toast" style="background:${mix(t.info,0.08,t.elevated)}; border-color:${mix(t.info,0.35,t.elevated)}; color:${t.fg}; font-family:${t.body}; border-radius:${t.r}px;">+ <span style="color:${t.info};">ⓘ</span> Enable this skill to include it when running the AI Agent.+ </div>+ </div>+ </div>+ </div>+ </div>`;+}++function settingsPanel(t) {+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.bg}; border-radius:${t.r+2}px; height:430px;">+ ${phead(t, '⚙', 'Settings', `${btn(t,'config','↺ Reset')} ${btn(t,'run','Save')} ${btn(t,'stop','✕ Close')}`)}+ <div style="flex:1; min-height:0; overflow:hidden; padding:11px; display:flex; flex-direction:column; gap:10px;">+ <div class="sect" style="border-color:${t.border}; background:${t.elevated}; border-radius:${t.r}px;">+ ${sectH(t, t.agent, '🖥', 'UI Defaults')}+ ${srow(t, 'Sidebar Open by Default', 'Show the sidebar panel when the application starts', sw(t,true))}+ ${srow(t, 'Auto-add Skill for Connected Tools', 'Enable the matching skill when a tool node connects to an agent', sw(t,true))}+ </div>+ <div class="sect" style="border-color:${t.border}; background:${t.elevated}; border-radius:${t.r}px;">+ ${sectH(t, t.model, '💾', 'Auto-save')}+ ${srow(t, 'Enable Auto-save', 'Automatically save the workflow at regular intervals', sw(t,true))}+ ${srow(t, 'Auto-save Interval', 'How often to auto-save (10-300 seconds)', `<span class="finput" style="width:70px; border-color:${t.border}; background:${mix(t.fg,0.02,t.elevated)}; color:${t.fg}; font-family:${t.mono}; border-radius:${t.r}px;">30 <span style="color:${t.muted}; font-size:9px;">s</span></span>`)}+ </div>+ <div class="sect" style="border-color:${t.border}; background:${t.elevated}; border-radius:${t.r}px;">+ ${sectH(t, t.agent, '🧠', 'Memory & Compaction')}+ <div style="display:flex; justify-content:space-between; align-items:baseline;">+ <span class="sl" style="color:${t.fg}; font-family:${t.body}; font-size:11.5px; font-weight:500;">Compaction Ratio</span>+ <span style="font-family:${t.mono}; font-size:11.5px; font-weight:600; color:${t.model};">80%</span>+ </div>+ <div style="margin:8px 0 3px;">${slider(t, 80, t.model)}</div>+ <div style="display:flex; justify-content:space-between; font-size:8.5px; color:${t.muted}; font-family:${t.mono};"><span>5%</span><span>50%</span><span>95%</span></div>+ </div>+ </div>+ </div>`;+}++function credsPanel(t) {+ const row = (letter, color, name, masked, stored) => `+ <div style="display:flex; align-items:center; gap:8px;">+ <span class="avat" style="background:${mix(color,0.15,t.card)}; color:${color}; border-radius:${t.r}px;">${letter}</span>+ <span style="width:64px; font-size:11px; font-weight:500; color:${t.fg}; font-family:${t.body}; flex-shrink:0;">${name}</span>+ <span class="finput" style="flex:1; border-color:${t.border}; background:${mix(t.fg,0.02,t.card)}; color:${stored ? t.fg : t.faint}; font-family:${t.mono}; border-radius:${t.r}px;">${masked} <span style="color:${t.faint};">👁</span></span>+ ${stored ? validBtn(t) : solidBtn(t, 'Validate')}+ ${stored ? `<span class="btn" style="background:${mix(t.err,0.1,t.card)}; border-color:transparent; color:${t.err}; border-radius:${t.r}px; padding:6px 8px;">🗑</span>` : ''}+ </div>`;+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.bg}; border-radius:${t.r+2}px; height:430px;">+ ${phead(t, '🔑', 'API Credentials', btn(t,'stop','✕ Close'))}+ <div style="flex:1; padding:12px; display:flex; flex-direction:column; gap:10px; overflow:hidden;">+ <div style="font-size:10px; color:${t.muted}; font-family:${t.body}; line-height:1.45;">Bring your own keys — stored locally, never leave your machine.</div>+ ${row('A', t.config, 'Anthropic', '••••••••••••••••3f2a', true)}+ ${row('O', t.model, 'Open AI', 'Enter API key...', false)}+ ${row('G', t.trig, 'Groq', 'Enter API key...', false)}+ ${row('G', t.tool, 'Google', '••••••••••••••••9c1d', true)}+ <div style="border-top:1px solid ${t.border}; padding-top:9px; margin-top:2px; display:flex; flex-direction:column; gap:8px;">+ <div class="toast" style="background:${mix(t.ok,0.08,t.card)}; border-color:${mix(t.ok,0.35,t.card)}; color:${t.fg}; font-family:${t.body}; border-radius:${t.r}px;">+ <span style="color:${t.ok};">✓</span> Anthropic key validated+ </div>+ <div class="toast" style="background:${mix(t.err,0.08,t.card)}; border-color:${mix(t.err,0.35,t.card)}; color:${t.fg}; font-family:${t.body}; border-radius:${t.r}px;">+ <span style="color:${t.err};">✕</span> Groq validation failed — check the key+ </div>+ </div>+ </div>+ </div>`;+}++function alertDialog(t) {+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.elevated}; border-radius:${t.r+2}px; height:430px; justify-content:center; align-items:center; background:${mix(t.fg, 0.04, t.bg)};">+ <div style="width:300px; border:1px solid ${t.border}; background:${t.elevated}; border-radius:${t.r+2}px; padding:16px; box-shadow:0 14px 40px rgba(0,0,0,0.3);">+ <div style="font-size:13px; font-weight:600; color:${t.fg}; font-family:${t.body};">Clear Conversation Memory</div>+ <div style="font-size:10.5px; color:${t.muted}; font-family:${t.body}; line-height:1.5; margin-top:6px;">This will reset the conversation history to its initial state. This action cannot be undone.</div>+ <div style="display:flex; align-items:center; gap:7px; margin-top:11px; font-size:10.5px; color:${t.fg}; font-family:${t.body};">+ ${cbx(t, false)} Also clear long-term memory (vector store)+ </div>+ <div style="display:flex; justify-content:flex-end; gap:7px; margin-top:15px;">+ <span class="btn" style="background:transparent; border-color:${t.border}; color:${t.fg}; border-radius:${t.r}px; font-family:${t.body};">Cancel</span>+ <span class="btn" style="background:${t.err}; border-color:transparent; color:${t.onPrimary === t.fg ? t.bg : '#fff'}; border-radius:${t.r}px; font-family:${t.body};">Clear Memory</span>+ </div>+ </div>+ </div>`;+}++const list = document.getElementById('list');+const jump = document.getElementById('jump');++// ---- Workspace chrome panels (top toolbar, sidebar, palette, console, status) ----+const wfCard = (t, name, nodes, when, sel) => `+ <div style="border:1px solid ${sel?t.primary:t.border}; ${sel?`border-left:3px solid ${t.primary}; background:${mix(t.primary,0.1,t.card)};`:`background:${t.card};`} border-radius:${t.r}px; padding:8px 10px;">+ <div style="display:flex; align-items:center; gap:7px;">+ <span style="width:22px;height:22px;border:1px solid ${sel?t.primary:t.border}; border-radius:${Math.max(t.r-2,0)}px; display:flex;align-items:center;justify-content:center;color:${sel?t.primary:t.muted}; font-size:10px;">‹›</span>+ <span style="flex:1; font-size:11.5px; font-weight:500; color:${sel?t.primary:t.fg}; font-family:${t.body}; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">${name}</span>+ </div>+ <div style="display:flex; justify-content:space-between; margin-top:5px; font-size:9.5px; color:${t.muted}; font-family:${t.mono};"><span>${nodes} nodes</span><span>${when}</span></div>+ </div>`;+const compItem = (t, icon, name, desc) => `+ <div style="display:flex; align-items:center; gap:8px; padding:7px 9px; border:1px solid ${t.border}; background:${t.bg}; border-radius:${t.r}px;">+ <span style="width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:14px;border:1px solid ${t.border}; background:${t.card}; border-radius:${Math.max(t.r-1,0)}px;">${icon}</span>+ <span style="min-width:0;"><div style="font-size:11px; font-weight:500; color:${t.fg}; font-family:${t.body}; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">${name}</div><div style="font-size:9px; color:${t.muted}; font-family:${t.body}; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">${desc}</div></span>+ </div>`;+const vdiv = (t) => `<span style="width:1px; height:22px; background:${t.border};"></span>`;++function toolbarPanel(t) {+ return `+ <div style="display:flex; align-items:center; justify-content:space-between; gap:10px; height:46px; padding:0 12px; background:${t.panel}; border:1px solid ${t.border}; border-radius:${t.r+2}px;">+ <span style="display:flex; align-items:center; gap:7px;">+ ${btn(t,'save','☰')} ${vdiv(t)} ${btn(t,'save','▤ File ⌄')}+ </span>+ <span style="display:flex; align-items:center; gap:6px;">+ <span style="font-size:13px; font-weight:600; color:${t.fg}; font-family:${t.body};">WhatsApp Assistant</span>+ <span style="color:${t.muted}; font-size:10px;">✎</span>+ </span>+ <span style="display:flex; align-items:center; gap:6px;">+ <span style="display:inline-flex; border:1px solid ${t.border}; border-radius:${t.r+1}px; padding:2px; gap:2px; background:${t.card};">+ <span class="btn" style="background:${mix(t.tool,0.1,t.card)}; border-color:${mix(t.tool,0.35,t.card)}; color:${t.tool}; border-radius:${Math.max(t.r-2,0)}px; padding:5px 9px; font-size:10.5px;">◷ Normal</span>+ <span class="btn" style="background:transparent; border-color:transparent; color:${t.muted}; border-radius:${Math.max(t.r-2,0)}px; padding:5px 9px; font-size:10.5px;">⚡ Dev</span>+ </span>+ ${vdiv(t)}+ ${btn(t,'config','⚙')} ${btn(t,'config','🔑')}+ ${vdiv(t)}+ ${btn(t,'run','▶ Start')} ${btn(t,'save','Save')}+ <span style="display:inline-flex; align-items:center; gap:5px; font-family:${t.mono}; font-size:10.5px; color:${t.warn};"><span style="width:7px;height:7px;border-radius:50%;background:${t.warn};"></span>Modified</span>+ ${vdiv(t)}+ ${btn(t,'tools','▦')}+ </span>+ </div>`;+}++function sidebarPanel(t) {+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.panel}; border-radius:${t.r+2}px; height:236px;">+ <div style="padding:11px 13px; border-bottom:1px solid ${t.border}; background:${t.bg};">+ <div style="font-size:13px; font-weight:600; color:${t.fg}; font-family:${t.body};">Workflows</div>+ <div style="font-size:9.5px; color:${t.muted}; font-family:${t.mono};">3 saved</div>+ </div>+ <div style="padding:9px; display:flex; flex-direction:column; gap:7px;">+ ${wfCard(t,'WhatsApp Assistant',6,'Jun 11, 09:14',true)}+ ${wfCard(t,'Daily Email Digest',5,'Jun 9, 18:30',false)}+ ${wfCard(t,'Customer Support Bot',9,'Jun 5, 11:02',false)}+ </div>+ </div>`;+}++function palettePanel(t) {+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.panel}; border-radius:${t.r+2}px; height:236px;">+ <div style="padding:11px 13px; border-bottom:1px solid ${t.border}; background:${t.bg};">+ <div style="display:flex; align-items:center; justify-content:space-between;"><span style="font-size:13px; font-weight:600; color:${t.fg}; font-family:${t.body};">Components</span>${chip(t,t.tools,'14')}</div>+ <div style="margin-top:8px;"><span class="finput" style="border-color:${t.border}; background:${t.card}; color:${t.faint}; font-family:${t.body}; border-radius:${t.r}px;">⌕ Search... <span></span></span></div>+ </div>+ <div style="padding:9px; display:flex; flex-direction:column; gap:7px;">+ <div style="display:flex; align-items:center; justify-content:space-between; font-size:10.5px; font-weight:600; color:${t.fg}; font-family:${t.body}; padding:0 2px;"><span>🤖 AI</span>${chip(t,t.agent,'3')}</div>+ ${compItem(t,'🤖','AI Agent','LangGraph agent with memory')}+ ${compItem(t,'💬','WhatsApp Send','Send a WhatsApp message')}+ </div>+ </div>`;+}++function consolePanel(t) {+ const line = (time, color, txt) => `<span><span style="color:${t.faint};">[${time}]</span> <span style="color:${color};">${txt}</span></span>`;+ return `+ <div class="pmodal" style="border-color:${t.border}; background:${t.panel}; border-radius:${t.r+2}px; height:236px;">+ <div style="display:flex; gap:2px; padding:0 8px; border-bottom:1px solid ${t.border};">+ <span style="padding:9px 11px; font-size:11px; color:${t.muted}; font-family:${t.body};">Chat</span>+ <span style="padding:9px 11px; font-size:11px; font-weight:600; color:${t.info}; border-bottom:2px solid ${t.info}; font-family:${t.body};">Console</span>+ <span style="padding:9px 11px; font-size:11px; color:${t.muted}; font-family:${t.body};">Terminal</span>+ </div>+ <div style="flex:1; padding:9px 12px; background:${t.bg}; display:flex; flex-direction:column; gap:4px; font-family:${t.mono}; font-size:10px; line-height:1.5; overflow:hidden;">+ ${line('12:01:31', t.muted, 'Workflow "WhatsApp Assistant" loaded · 6 nodes')}+ ${line('12:01:33', t.ok, 'Deployed — listening for incoming messages')}+ ${line('12:04:02', t.model, 'WhatsApp Receive → message from +1 (555) 014-2236')}+ ${line('12:04:03', t.agent, 'AI Agent → delegating to Android Toolkit')}+ ${line('12:04:05', t.ok, 'WhatsApp Send → reply delivered (1.9s)')}+ </div>+ </div>`;+}++function statusBar(t) {+ return `+ <div style="display:flex; align-items:center; gap:10px; height:24px; padding:0 12px; background:${t.panel}; border:1px solid ${t.border}; border-radius:${t.r}px; font-family:${t.mono}; font-size:10px; letter-spacing:0.04em; text-transform:uppercase; color:${t.muted}; white-space:nowrap;">+ <span style="color:${t.ok}; display:flex; align-items:center;"><span style="width:6px;height:6px;border-radius:50%;background:${t.ok}; margin-right:5px;"></span>ONLINE</span>+ <span style="opacity:0.4;">|</span><span>WF: <span style="color:${t.fg};">WhatsApp Assistant</span></span>+ <span style="opacity:0.4;">|</span><span>NODES: <span style="color:${t.fg};">6</span></span>+ <span style="margin-left:auto; display:flex; gap:10px;"><span>THEME: <span style="color:${t.fg};">${t.name.toUpperCase()}</span></span><span style="opacity:0.4;">|</span><span>14:02:33</span></span>+ </div>`;+}++const sectionLabel = (txt) => `<div style="font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:0.08em; text-transform:uppercase; opacity:0.7; color:currentColor;">${txt}</div>`;++THEMES.forEach((t) => {+ const a = document.createElement('a');+ a.href = '#pt-' + t.name; a.textContent = t.name;+ jump.appendChild(a);++ const tile = document.createElement('div');+ tile.className = 'tile';+ tile.id = 'pt-' + t.name;+ tile.innerHTML = `+ <div class="tile-head">+ <span class="nm" style="font-family:${t.display};">${t.name}</span>+ <span class="meta">${t.tag}</span>+ </div>+ <div class="screen-wrap">+ <div class="stage" style="background:${mix(t.fg, 0.03, t.bg)}; color:${t.muted};">+ ${sectionLabel('Top toolbar')}+ ${toolbarPanel(t)}+ ${sectionLabel('Workflow sidebar · component palette · console dock')}+ <div style="display:grid; grid-template-columns: 0.85fr 1fr 1.15fr; gap:20px;">+ ${sidebarPanel(t)}+ ${palettePanel(t)}+ ${consolePanel(t)}+ </div>+ ${statusBar(t)}+ ${sectionLabel('Node configuration panel')}+ ${nodeConfigPanel(t)}+ ${sectionLabel('Master skill editor · settings')}+ <div style="display:grid; grid-template-columns: 1.45fr 1fr; gap:20px;">+ ${masterSkillPanel(t)}+ ${settingsPanel(t)}+ </div>+ ${sectionLabel('API credentials · confirm dialog')}+ <div style="display:grid; grid-template-columns: 1.45fr 1fr; gap:20px;">+ ${credsPanel(t)}+ ${alertDialog(t)}+ </div>+ </div>+ </div>`;+ list.appendChild(tile);+});++function fitStages() {+ document.querySelectorAll('.screen-wrap').forEach((wrap) => {+ const stage = wrap.querySelector('.stage');+ const s = wrap.clientWidth / 1380;+ stage.style.transform = `scale(${s})`;+ wrap.style.height = (stage.offsetHeight * s) + 'px';+ });+}+fitStages();+window.addEventListener('resize', fitStages);+window.addEventListener('load', fitStages);+</script>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/product-reference.html b/docs-internal/design-system/guidelines/product-reference.htmlnew file mode 100644index 00000000..1895569f--- /dev/null+++ b/docs-internal/design-system/guidelines/product-reference.html@@ -0,0 +1,11 @@+<!-- @dsCard group="Brand" viewport="700x300" subtitle="Real product — dark canvas, neon nodes, WhatsApp automation" name="Product Reference" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="margin: 0; background: #002b36;">+<img src="../assets/product-canvas-screenshot.png" alt="MachinaOS canvas with a WhatsApp + Android agent workflow" style="display: block; width: 100%; height: auto;">+</body>+</html>diff --git a/docs-internal/design-system/guidelines/radii.html b/docs-internal/design-system/guidelines/radii.htmlnew file mode 100644index 00000000..9b0a737c--- /dev/null+++ b/docs-internal/design-system/guidelines/radii.html@@ -0,0 +1,18 @@+<!-- @dsCard group="Spacing" viewport="700x150" subtitle="Controls 8px · chips 4–6px · nodes 10–12px · pills 999px" name="Radii" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); margin: 0; padding: 18px 24px;">+<div style="display: flex; align-items: flex-end; gap: 20px;">+ <div style="display:flex; flex-direction:column; align-items:center; gap:8px;"><div style="width: 72px; height: 56px; background: var(--bg-elevated); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">sm · 4</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:8px;"><div style="width: 72px; height: 56px; background: var(--bg-elevated); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">md · 6</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:8px;"><div style="width: 72px; height: 56px; background: var(--bg-elevated); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg);"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">lg · 8</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:8px;"><div style="width: 72px; height: 56px; background: var(--bg-elevated); border: 1.5px solid var(--border-strong); border-radius: var(--radius-node);"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">node · 10</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:8px;"><div style="width: 72px; height: 56px; background: var(--bg-elevated); border: 1.5px solid var(--border-strong); border-radius: var(--radius-xl);"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">xl · 12</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:8px;"><div style="width: 110px; height: 36px; background: var(--bg-elevated); border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill);"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">pill · 999</span></div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/semantic-status.html b/docs-internal/design-system/guidelines/semantic-status.htmlnew file mode 100644index 00000000..9b5a2293--- /dev/null+++ b/docs-internal/design-system/guidelines/semantic-status.html@@ -0,0 +1,31 @@+<!-- @dsCard group="Colors" viewport="700x150" subtitle="Status colors — Solarized in dark, deeper hues in light" name="Semantic Status" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+.row { display: grid; grid-template-columns: 80px repeat(5, 1fr); gap: 8px; align-items: center; padding: 8px 16px; }+.sw { height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.92); }+.lab { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); }+</style>+</head>+<body style="background: var(--bg-app); margin: 0; padding: 8px 0;">+<div class="row">+ <span class="lab">light</span>+ <div class="sw" style="background: var(--primary);">primary</div>+ <div class="sw" style="background: var(--success);">success</div>+ <div class="sw" style="background: var(--warning);">warning</div>+ <div class="sw" style="background: var(--destructive);">destructive</div>+ <div class="sw" style="background: var(--info);">info</div>+</div>+<div class="dark row" style="background: var(--bg-app); border-radius: 8px; margin: 0 8px;">+ <span class="lab">dark</span>+ <div class="sw" style="background: var(--primary);">primary</div>+ <div class="sw" style="background: var(--success);">success</div>+ <div class="sw" style="background: var(--warning);">warning</div>+ <div class="sw" style="background: var(--destructive);">destructive</div>+ <div class="sw" style="background: var(--info);">info</div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/shadows-glow.html b/docs-internal/design-system/guidelines/shadows-glow.htmlnew file mode 100644index 00000000..386172ef--- /dev/null+++ b/docs-internal/design-system/guidelines/shadows-glow.html@@ -0,0 +1,28 @@+<!-- @dsCard group="Spacing" viewport="700x170" subtitle="Quiet chrome shadows; glow is reserved for meaning" name="Shadows & Glow" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); margin: 0; padding: 22px 24px;">+<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;">+ <div style="display:flex; flex-direction:column; gap:8px; align-items:center;">+ <div style="width: 100%; height: 70px; border-radius: 8px; background: var(--surface-card); border: 1px solid var(--border-default); box-shadow: var(--shadow-card);"></div>+ <span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--shadow-card</span>+ </div>+ <div style="display:flex; flex-direction:column; gap:8px; align-items:center;">+ <div style="width: 100%; height: 70px; border-radius: 8px; background: var(--surface-card); border: 1px solid var(--border-default); box-shadow: var(--shadow-modal);"></div>+ <span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--shadow-modal</span>+ </div>+ <div style="display:flex; flex-direction:column; gap:8px; align-items:center;">+ <div style="width: 100%; height: 70px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-purple) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-purple) 16%, var(--surface-card)), var(--surface-card)); box-shadow: 0 2px 8px color-mix(in srgb, var(--dracula-purple) 18%, transparent);"></div>+ <span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">node accent glow</span>+ </div>+ <div style="display:flex; flex-direction:column; gap:8px; align-items:center;">+ <div class="machina-pulse" style="--node-pulse-color: var(--info); width: 100%; height: 70px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-cyan) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-cyan) 16%, var(--surface-card)), var(--surface-card));"></div>+ <span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">executing pulse</span>+ </div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/space-scale.html b/docs-internal/design-system/guidelines/space-scale.htmlnew file mode 100644index 00000000..cb1a46cc--- /dev/null+++ b/docs-internal/design-system/guidelines/space-scale.html@@ -0,0 +1,20 @@+<!-- @dsCard group="Spacing" viewport="700x150" subtitle="4 / 8 / 12 / 16 / 24 / 32 / 48 / 64" name="Space Scale" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); margin: 0; padding: 18px 24px;">+<div style="display: flex; align-items: flex-end; gap: 18px;">+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 4px; height: 4px; background: var(--accent); border-radius: 2px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">1·4</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 8px; height: 8px; background: var(--accent); border-radius: 2px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">2·8</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 12px; height: 12px; background: var(--accent); border-radius: 2px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">3·12</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 16px; height: 16px; background: var(--accent); border-radius: 3px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">4·16</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 24px; height: 24px; background: var(--accent); border-radius: 4px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">5·24</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 32px; height: 32px; background: var(--accent); border-radius: 5px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">6·32</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 48px; height: 48px; background: var(--accent); border-radius: 6px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">7·48</span></div>+ <div style="display:flex; flex-direction:column; align-items:center; gap:6px;"><div style="width: 64px; height: 64px; background: var(--accent); border-radius: 8px;"></div><span style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">8·64</span></div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/surfaces-dark.html b/docs-internal/design-system/guidelines/surfaces-dark.htmlnew file mode 100644index 00000000..f362cf8e--- /dev/null+++ b/docs-internal/design-system/guidelines/surfaces-dark.html@@ -0,0 +1,36 @@+<!-- @dsCard group="Colors" viewport="700x150" subtitle="Solarized dark surfaces — the signature look" name="Surfaces — Dark" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); padding: 16px; margin: 0;">+<div style="display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;">+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--bg-app); border: 1px solid var(--border-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--bg-app<br>#002b36</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--bg-panel); border: 1px solid var(--border-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--bg-panel<br>#073642</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--border-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--bg-elevated<br>#0d1f2d</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--fg-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--fg-default<br>#f8f8f2</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--dracula-comment);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">comment<br>#6272a4</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--border-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--border-default<br>#586e75</div>+ </div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/surfaces-light.html b/docs-internal/design-system/guidelines/surfaces-light.htmlnew file mode 100644index 00000000..e61e108c--- /dev/null+++ b/docs-internal/design-system/guidelines/surfaces-light.html@@ -0,0 +1,36 @@+<!-- @dsCard group="Colors" viewport="700x150" subtitle="Light structural surfaces & foreground" name="Surfaces — Light" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); padding: 16px; margin: 0;">+<div style="display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;">+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--bg-app); border: 1px solid var(--border-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--bg-app<br>#f5f7fa</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--bg-panel); border: 1px solid var(--border-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--bg-panel<br>#fafbfc</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--border-default); box-shadow: var(--shadow-card);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--bg-elevated<br>#ffffff</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--fg-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--fg-default<br>#1a1d21</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--fg-muted);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--fg-muted<br>#4b5563</div>+ </div>+ <div style="display: flex; flex-direction: column; gap: 6px;">+ <div style="height: 64px; border-radius: 8px; background: var(--border-default);"></div>+ <div style="font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);">--border-default<br>#d1d5db</div>+ </div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/theme-comparison-full.html b/docs-internal/design-system/guidelines/theme-comparison-full.htmlnew file mode 100644index 00000000..959b251c--- /dev/null+++ b/docs-internal/design-system/guidelines/theme-comparison-full.html@@ -0,0 +1,371 @@+<!-- @dsCard group="Brand" viewport="1320x880" name="Theme Comparison — Full" subtitle="Full app screen + component strip in all 12 themes" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>MachinaOS — Full Theme Comparison</title>+<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:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&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&family=Major+Mono+Display&family=Pirata+One&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=UnifrakturCook:wght@700&family=VT323&display=swap">+<style>+ * { box-sizing: border-box; }+ body { margin: 0; background: #0a0c10; font-family: 'Geist', system-ui, sans-serif; color: #e6edf3; }+ header { padding: 26px 32px 4px; }+ header h1 { margin: 0; font-size: 20px; font-weight: 600; }+ header p { margin: 6px 0 0; font-size: 13px; color: #8b949e; max-width: 820px; line-height: 1.5; }+ nav.jump { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 32px 4px; }+ nav.jump a { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8b949e; text-decoration: none; border: 1px solid #21262d; border-radius: 999px; padding: 4px 10px; }+ nav.jump a:hover { color: #e6edf3; border-color: #8b949e; }+ .list { display: flex; flex-direction: column; gap: 28px; padding: 20px 32px 60px; }+ .tile { border-radius: 12px; overflow: hidden; border: 1px solid #21262d; background: #11151a; }+ .tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 18px; }+ .tile-head .nm { font-size: 16px; font-weight: 600; }+ .tile-head .meta { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #8b949e; text-align: right; }++ .screen-wrap { position: relative; width: 100%; }+ .stage { position: absolute; left: 0; top: 0; width: 1280px; height: 700px; transform-origin: top left; display: flex; flex-direction: column; font-size: 13px; }++ .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 12px; border-bottom: 1px solid; flex-shrink: 0; }+ .tb-grp { display: flex; align-items: center; gap: 7px; min-width: 0; }+ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 12px; font-weight: 600; border: 1px solid; line-height: 1; white-space: nowrap; }+ .btn.sq { padding: 7px 9px; }+ .vdiv { width: 1px; height: 22px; opacity: 0.5; }+ .main { display: flex; flex: 1; min-height: 0; }+ .sidebar { width: 225px; border-right: 1px solid; display: flex; flex-direction: column; flex-shrink: 0; }+ .panel-hd { padding: 13px 14px; border-bottom: 1px solid; }+ .panel-hd .t { font-size: 14px; font-weight: 600; }+ .panel-hd .s { font-size: 10.5px; margin-top: 2px; }+ .wf-card { margin: 0 10px; padding: 10px 11px; border: 1px solid; }+ .wf-card .n { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .wf-card .m { display: flex; justify-content: space-between; font-size: 10px; margin-top: 5px; }+ .center { display: flex; flex-direction: column; flex: 1; min-width: 0; }+ .canvas { position: relative; flex: 1; overflow: hidden; }+ .canvas svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }+ .node { position: absolute; width: 58px; height: 58px; border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 24px; }+ .node .pip { position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; }+ .node .gear { position: absolute; top: -9px; right: -9px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; font-size: 9px; }+ .nlabel { position: absolute; font-size: 10px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }+ .agent-node { position: absolute; width: 168px; border: 2px solid; text-align: center; padding: 12px 10px 9px; }+ .agent-node .pip { position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; }+ .agent-node .gear { position: absolute; top: -9px; right: -9px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; font-size: 9px; }+ .agent-node .ti { font-size: 24px; line-height: 1; }+ .agent-node .tn { font-size: 13.5px; font-weight: 600; margin-top: 5px; }+ .agent-node .ts { font-size: 10px; margin-top: 2px; }+ .agent-node .th { display: flex; justify-content: space-between; margin-top: 7px; font-size: 9.5px; }+ .palette { width: 258px; border-left: 1px solid; display: flex; flex-direction: column; flex-shrink: 0; }+ .search { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding: 7px 10px; border: 1px solid; font-size: 11.5px; }+ .cat { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px 5px; font-size: 11.5px; font-weight: 600; }+ .badge { display: inline-flex; align-items: center; padding: 2px 6px; font-size: 9.5px; font-weight: 600; border: 1px solid; line-height: 1.3; }+ .comp { display: flex; align-items: center; gap: 9px; margin: 0 10px 7px; padding: 7px 9px; border: 1px solid; }+ .comp .ic { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; border: 1px solid; }+ .comp .nm2 { font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .comp .ds { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .console { border-top: 1px solid; flex-shrink: 0; }+ .ctabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid; }+ .ctab { padding: 7px 12px; font-size: 11.5px; font-weight: 500; border-bottom: 2px solid transparent; }+ .clog { padding: 8px 13px; display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; height: 78px; overflow: hidden; }+ .statusbar { display: flex; align-items: center; gap: 10px; height: 22px; padding: 0 12px; border-top: 1px solid; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0; white-space: nowrap; }+ .statusbar .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }+ .statusbar .sep { opacity: 0.4; }+ .statusbar .right { margin-left: auto; display: flex; gap: 10px; }++ .strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 13px 16px; border-top: 1px solid; }+ .input { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid; font-size: 11.5px; min-width: 160px; }+ .switch { position: relative; width: 34px; height: 19px; border-radius: 999px; border: 1px solid; flex-shrink: 0; }+ .switch .knob { position: absolute; top: 2px; width: 13px; height: 13px; border-radius: 50%; }+ .tabsdemo { display: flex; gap: 2px; border-bottom: 1px solid; }+</style>+</head>+<body>+<header>+ <h1>MachinaOS — full screen, twelve themes</h1>+ <p>The complete workspace per theme: toolbar · workflow sidebar · expanded canvas (full 6-node WhatsApp Assistant flow with rectangular AI Agent node) · component palette · console dock · status bar — plus a strip of core components (buttons, input, switch, badges, tabs) in that theme's tokens.</p>+</header>+<nav class="jump" id="jump"></nav>+<div class="list" id="list"></div>++<script>+const THEMES = [+ { name: 'Light', tag: 'default · Geist · radius 6–8 · 90/180/320ms smooth', bg: '#f5f7fa', panel: '#fafbfc', canvas: '#ffffff', card: '#ffffff', fg: '#1a1d21', muted: '#4b5563', faint: '#9ca3af', border: '#d1d5db',+ display: "'Geist',sans-serif", body: "'Geist',sans-serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0', rBtn: 6, rNode: 10, rCard: 8,+ run: '#15803d', runBg: 'rgba(80,250,123,0.15)', runBc: 'rgba(80,250,123,0.6)', stop: '#be185d', stopBg: 'rgba(255,121,198,0.15)', stopBc: 'rgba(255,121,198,0.6)',+ save: '#0e7490', saveBg: 'rgba(139,233,253,0.15)', saveBc: 'rgba(139,233,253,0.6)', config: '#c2410c', configBg: 'rgba(255,184,108,0.15)', configBc: 'rgba(255,184,108,0.6)',+ tools: '#7c3aed', toolsBg: 'rgba(189,147,249,0.15)', toolsBc: 'rgba(189,147,249,0.6)',+ nAgent: '#bd93f9', nTrig: '#ff79c6', nTool: '#50fa7b', nModel: '#8be9fd', ok: '#059669', warn: '#d97706', grid: 'rgba(75,85,99,0.30)', accent: '#7c3aed' },+ { name: 'Dark', tag: 'signature · Solarized + Dracula · radius 6–8 · smooth', bg: '#002b36', panel: '#073642', canvas: '#002b36', card: '#073642', fg: '#f8f8f2', muted: '#94a8d6', faint: '#6272a4', border: '#586e75',+ display: "'Geist',sans-serif", body: "'Geist',sans-serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0', rBtn: 6, rNode: 10, rCard: 8,+ run: '#50fa7b', runBg: 'rgba(80,250,123,0.15)', runBc: 'rgba(80,250,123,0.6)', stop: '#ff79c6', stopBg: 'rgba(255,121,198,0.15)', stopBc: 'rgba(255,121,198,0.6)',+ save: '#8be9fd', saveBg: 'rgba(139,233,253,0.15)', saveBc: 'rgba(139,233,253,0.6)', config: '#ffb86c', configBg: 'rgba(255,184,108,0.15)', configBc: 'rgba(255,184,108,0.6)',+ tools: '#bd93f9', toolsBg: 'rgba(189,147,249,0.15)', toolsBc: 'rgba(189,147,249,0.6)',+ nAgent: '#bd93f9', nTrig: '#ff79c6', nTool: '#50fa7b', nModel: '#8be9fd', ok: '#859900', warn: '#b58900', grid: 'rgba(148,168,214,0.30)', accent: '#8be9fd' },+ { name: 'Renaissance', tag: 'illuminated codex · Cinzel/Cormorant · UPPER .10em · 140/280/520ms', bg: '#f3e8c8', panel: '#ead09a', canvas: '#e8d4a0', card: '#fbf3dc', fg: '#3a2008', muted: '#6a4a1c', faint: '#9a7a3c', border: '#8a5e1c',+ display: "'Cinzel',serif", body: "'Cormorant Garamond',serif", mono: "'IM Fell English',serif", caps: true, track: '0.07em', rBtn: 3, rNode: 4, rCard: 3,+ run: '#8a1410', runBg: 'rgba(212,160,48,0.20)', runBc: '#8a5e1c', stop: '#8a1410', stopBg: 'rgba(138,20,16,0.12)', stopBc: '#8a1410',+ save: '#2548c8', saveBg: 'rgba(37,72,200,0.10)', saveBc: '#2548c8', config: '#6a4a1c', configBg: 'rgba(106,74,28,0.12)', configBc: '#6a4a1c',+ tools: '#d4a030', toolsBg: 'rgba(212,160,48,0.16)', toolsBc: '#8a5e1c',+ nAgent: '#2548c8', nTrig: '#8a1410', nTool: '#d4a030', nModel: '#5a6a28', ok: '#5a6a28', warn: '#b87818', grid: 'rgba(138,94,28,0.28)', accent: '#8a1410' },+ { name: 'Greek', tag: 'marble agora · Cinzel · UPPER .18em · radius 0–2', bg: '#ede5d0', panel: '#f5efde', canvas: '#e6dcc2', card: '#faf6e9', fg: '#2a2415', muted: '#6a5d3c', faint: '#9a8c64', border: '#b8a878',+ display: "'Cinzel',serif", body: "'Cormorant Garamond',serif", mono: "'Courier Prime',monospace", caps: true, track: '0.12em', rBtn: 0, rNode: 2, rCard: 0,+ run: '#284b82', runBg: 'rgba(40,75,130,0.12)', runBc: '#284b82', stop: '#7a1a18', stopBg: 'rgba(122,26,24,0.10)', stopBc: '#7a1a18',+ save: '#284b82', saveBg: 'rgba(40,75,130,0.08)', saveBc: '#284b82', config: '#c8a040', configBg: 'rgba(200,160,64,0.14)', configBc: '#a88430', tools: '#6a7a32', toolsBg: 'rgba(106,122,50,0.12)', toolsBc: '#6a7a32',+ nAgent: '#284b82', nTrig: '#7a1a18', nTool: '#c8a040', nModel: '#6a7a32', ok: '#6a7a32', warn: '#b87818', grid: 'rgba(106,93,60,0.28)', accent: '#284b82' },+ { name: 'Edo', tag: 'washi + sumi-e · Shippori Mincho · radius 0 · organic', bg: '#f4ecd8', panel: '#faf3e0', canvas: '#ede4ca', card: '#fdf8ea', fg: '#1a1410', muted: '#6a5e48', faint: '#9a8c70', border: '#c8b890',+ display: "'Shippori Mincho',serif", body: "'Shippori Mincho',serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0.05em', rBtn: 0, rNode: 0, rCard: 0,+ run: '#b41e1e', runBg: 'rgba(180,30,30,0.08)', runBc: '#b41e1e', stop: '#1a1410', stopBg: 'rgba(26,20,16,0.08)', stopBc: '#1a1410',+ save: '#4a6a3a', saveBg: 'rgba(74,106,58,0.10)', saveBc: '#4a6a3a', config: '#6a5e48', configBg: 'rgba(106,94,72,0.10)', configBc: '#6a5e48', tools: '#b41e1e', toolsBg: 'rgba(180,30,30,0.06)', toolsBc: '#b41e1e',+ nAgent: '#b41e1e', nTrig: '#e89aa8', nTool: '#4a6a3a', nModel: '#1a1410', ok: '#4a6a3a', warn: '#b87818', grid: 'rgba(106,94,72,0.28)', accent: '#b41e1e' },+ { name: 'Steampunk', tag: 'brass & rivets · IM Fell English SC · UPPER · mechanical', bg: '#2a1f12', panel: '#3a2a18', canvas: '#1a1208', card: '#4a3620', fg: '#e8d8b0', muted: '#b8a070', faint: '#8a7448', border: '#6a4a20',+ display: "'IM Fell English SC',serif", body: "'IM Fell English',serif", mono: "'Special Elite',monospace", caps: true, track: '0.07em', rBtn: 3, rNode: 4, rCard: 3,+ run: '#d8a848', runBg: 'rgba(216,168,72,0.20)', runBc: '#d8a848', stop: '#b8602a', stopBg: 'rgba(184,96,42,0.18)', stopBc: '#b8602a',+ save: '#d8a848', saveBg: 'rgba(216,168,72,0.12)', saveBc: '#a87830', config: '#b8602a', configBg: 'rgba(184,96,42,0.12)', configBc: '#b8602a', tools: '#8a8a4a', toolsBg: 'rgba(138,138,74,0.14)', toolsBc: '#8a8a4a',+ nAgent: '#d8a848', nTrig: '#b8602a', nTool: '#8a8a4a', nModel: '#b8a070', ok: '#8a8a4a', warn: '#d8a848', grid: 'rgba(184,160,112,0.25)', accent: '#d8a848' },+ { name: 'Atomic', tag: '1962 Eames · Bevan/Lato · bouncy 1.6 overshoot', bg: '#f0e6d2', panel: '#faf2dc', canvas: '#e8dcc0', card: '#ffffff', fg: '#2a3a4a', muted: '#5a6a7a', faint: '#8a96a2', border: '#c8b890',+ display: "'Bevan',serif", body: "'Lato',sans-serif", mono: "'Space Mono',monospace", caps: true, track: '0.04em', rBtn: 2, rNode: 4, rCard: 2,+ run: '#3a9aa0', runBg: 'rgba(58,154,160,0.12)', runBc: '#3a9aa0', stop: '#e85a26', stopBg: 'rgba(232,90,38,0.12)', stopBc: '#e85a26',+ save: '#3a9aa0', saveBg: 'rgba(58,154,160,0.08)', saveBc: '#3a9aa0', config: '#d8a838', configBg: 'rgba(216,168,56,0.14)', configBc: '#b8882a', tools: '#e85a26', toolsBg: 'rgba(232,90,38,0.08)', toolsBc: '#e85a26',+ nAgent: '#e85a26', nTrig: '#d8a838', nTool: '#3a9aa0', nModel: '#2a3a4a', ok: '#3a9aa0', warn: '#d8a838', grid: 'rgba(90,106,122,0.28)', accent: '#e85a26' },+ { name: 'Cyber', tag: 'neon night market · Major Mono · UPPER .18em · steps(4)', bg: '#050010', panel: '#0a0420', canvas: '#03000a', card: '#15103a', fg: '#f0e0ff', muted: '#a090c0', faint: '#6a5a90', border: '#2a1f50',+ display: "'Major Mono Display',monospace", body: "'JetBrains Mono',monospace", mono: "'JetBrains Mono',monospace", caps: true, track: '0.10em', rBtn: 0, rNode: 0, rCard: 0,+ run: '#26d97a', runBg: 'rgba(38,217,122,0.14)', runBc: '#26d97a', stop: '#f51eb6', stopBg: 'rgba(245,30,182,0.14)', stopBc: '#f51eb6',+ save: '#1dd9e5', saveBg: 'rgba(29,217,229,0.12)', saveBc: '#1dd9e5', config: '#ffd028', configBg: 'rgba(255,208,40,0.10)', configBc: '#ffd028', tools: '#f51eb6', toolsBg: 'rgba(245,30,182,0.10)', toolsBc: '#f51eb6',+ nAgent: '#f51eb6', nTrig: '#ffd028', nTool: '#1dd9e5', nModel: '#26d97a', ok: '#26d97a', warn: '#ffd028', grid: 'rgba(160,144,192,0.30)', accent: '#1dd9e5' },+ { name: 'Wasteland', tag: 'irradiated scrap · Special Elite/VT323 · jittery', bg: '#2a2018', panel: '#3a2c1c', canvas: '#1a1410', card: '#4a3826', fg: '#e8d8a8', muted: '#b89868', faint: '#8a7048', border: '#6a4a28',+ display: "'Special Elite',monospace", body: "'Special Elite',monospace", mono: "'VT323',monospace", caps: true, track: '0.06em', rBtn: 0, rNode: 0, rCard: 0,+ run: '#c8d038', runBg: 'rgba(200,208,56,0.14)', runBc: '#c8d038', stop: '#e88a28', stopBg: 'rgba(138,58,24,0.20)', stopBc: '#e88a28',+ save: '#d8c8a0', saveBg: 'rgba(216,200,160,0.10)', saveBc: '#b8a880', config: '#e88a28', configBg: 'rgba(232,138,40,0.12)', configBc: '#e88a28', tools: '#c8d038', toolsBg: 'rgba(200,208,56,0.10)', toolsBc: '#a8b028',+ nAgent: '#e88a28', nTrig: '#8a3a18', nTool: '#c8d038', nModel: '#d8c8a0', ok: '#c8d038', warn: '#e88a28', grid: 'rgba(184,152,104,0.25)', accent: '#e88a28' },+ { name: 'Rot', tag: 'mossy crypt · Pirata One/EB Garamond · 680ms drift', bg: '#14181a', panel: '#1c2226', canvas: '#0a0e10', card: '#242c30', fg: '#c8d8c0', muted: '#788878', faint: '#4a5a50', border: '#2a3a30',+ display: "'Pirata One',serif", body: "'EB Garamond',serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0.03em', rBtn: 2, rNode: 4, rCard: 2,+ run: '#78c878', runBg: 'rgba(120,200,120,0.10)', runBc: '#78c878', stop: '#e8a838', stopBg: 'rgba(232,168,56,0.10)', stopBc: '#e8a838',+ save: '#d8d0b8', saveBg: 'rgba(216,208,184,0.08)', saveBc: '#8a8470', config: '#e8a838', configBg: 'rgba(232,168,56,0.08)', configBc: '#b8882a', tools: '#78c878', toolsBg: 'rgba(120,200,120,0.08)', toolsBc: '#588858',+ nAgent: '#78c878', nTrig: '#e8a838', nTool: '#d8d0b8', nModel: '#788878', ok: '#78c878', warn: '#e8a838', grid: 'rgba(120,136,120,0.28)', accent: '#78c878' },+ { name: 'Plague', tag: '1349 broadsheet · UnifrakturCook/EB Garamond · stiff', bg: '#d8d4c0', panel: '#e4dfc8', canvas: '#c8c4b0', card: '#efeacf', fg: '#2a1c14', muted: '#6a5440', faint: '#9a8468', border: '#a89478',+ display: "'UnifrakturCook',serif", body: "'EB Garamond',serif", mono: "'Special Elite',monospace", caps: false, track: '0.04em', rBtn: 0, rNode: 0, rCard: 0,+ run: '#783c28', runBg: 'rgba(120,60,40,0.12)', runBc: '#783c28', stop: '#1a1410', stopBg: 'rgba(26,20,16,0.10)', stopBc: '#1a1410',+ save: '#6a5440', saveBg: 'rgba(106,84,64,0.10)', saveBc: '#6a5440', config: '#98a838', configBg: 'rgba(152,168,56,0.14)', configBc: '#788828', tools: '#783c28', toolsBg: 'rgba(120,60,40,0.08)', toolsBc: '#783c28',+ nAgent: '#783c28', nTrig: '#1a1410', nTool: '#98a838', nModel: '#6a5440', ok: '#98a838', warn: '#b87818', grid: 'rgba(106,84,64,0.25)', accent: '#783c28' },+ { name: 'Surveillance', tag: 'panopticon · Anonymous Pro/IBM Plex Mono · linear scanline', bg: '#1a1c1e', panel: '#232628', canvas: '#0a0c0e', card: '#2c3034', fg: '#c8ccd0', muted: '#888c90', faint: '#5a5e62', border: '#3a3e42',+ display: "'Anonymous Pro',monospace", body: "'IBM Plex Mono',monospace", mono: "'IBM Plex Mono',monospace", caps: true, track: '0.06em', rBtn: 0, rNode: 0, rCard: 0,+ run: '#6acc6a', runBg: 'rgba(106,204,106,0.10)', runBc: '#6acc6a', stop: '#e82626', stopBg: 'rgba(232,38,38,0.10)', stopBc: '#e82626',+ save: '#888c90', saveBg: 'rgba(136,140,144,0.10)', saveBc: '#888c90', config: '#d8a020', configBg: 'rgba(216,160,32,0.10)', configBc: '#d8a020', tools: '#e82626', toolsBg: 'rgba(232,38,38,0.08)', toolsBc: '#e82626',+ nAgent: '#e82626', nTrig: '#d8a020', nTool: '#6acc6a', nModel: '#888c90', ok: '#6acc6a', warn: '#d8a020', grid: 'rgba(136,140,144,0.28)', accent: '#e82626' },+];++function mix(hex, pct, baseHex) {+ const h = (x) => [parseInt(x.slice(1,3),16), parseInt(x.slice(3,5),16), parseInt(x.slice(5,7),16)];+ const a = h(hex), b = h(baseHex);+ return `rgb(${a.map((v,i)=>Math.round(v*pct + b[i]*(1-pct))).join(',')})`;+}++function sqNode(t, x, y, icon, label, color, status, opts = {}) {+ const fill = `linear-gradient(135deg, ${mix(color, 0.18, t.card)}, ${t.card})`;+ const pip = status === 'ok' ? t.ok : (status === 'run' ? color : (status === 'err' ? '#dc2626' : t.faint));+ const glow = status !== 'idle' ? `box-shadow:0 0 0 0 ${pip}, 0 0 10px ${pip}66, 0 2px 8px ${color}30;` : `box-shadow:0 2px 8px ${color}30;`;+ return `+ <div class="node" style="left:${x}px; top:${y}px; border-radius:${t.rNode}px; border-color:${color}99; background:${fill}; ${glow}">+ <span class="pip" style="background:${pip};"></span>+ <span class="gear" style="background:${t.card}; border-color:${t.border};">⚙️</span>${icon}+ ${opts.outR ? `<span style="position:absolute; right:-6px; top:50%; transform:translateY(-50%); width:11px; height:11px; border-radius:50%; background:${color}; border:2px solid ${color};"></span>` : ''}+ ${opts.inL ? `<span style="position:absolute; left:-6px; top:50%; transform:translateY(-50%); width:11px; height:11px; border-radius:50%; background:${t.bg}; border:2px solid ${t.faint};"></span>` : ''}+ ${opts.outT ? `<span style="position:absolute; top:-6px; left:50%; transform:translateX(-50%); width:11px; height:11px; border-radius:50%; background:${color}; border:2px solid ${color};"></span>` : ''}+ </div>+ <div class="nlabel" style="left:${x + 29}px; top:${y + 64}px; color:${t.fg}; font-family:${t.body};">${label}</div>`;+}++function agentNode(t, x, y) {+ const c = t.nAgent;+ const fill = `linear-gradient(135deg, ${mix(c, 0.14, t.card)}, ${t.card})`;+ return `+ <div class="agent-node" style="left:${x}px; top:${y}px; border-radius:${Math.max(t.rNode, 2)}px; border-color:${c}; background:${fill}; box-shadow:0 0 0 1px ${c}, 0 4px 14px ${c}44; color:${t.fg};">+ <span class="pip" style="background:${c}; box-shadow:0 0 8px ${c};"></span>+ <span class="gear" style="background:${t.card}; border-color:${t.border};">⚙️</span>+ <div class="ti">🤖</div>+ <div class="tn">AI Agent</div>+ <div class="ts" style="color:${c};">LangGraph Agent</div>+ <div class="th" style="color:${t.muted};"><span>Memory</span><span>Tool</span></div>+ <span style="position:absolute; left:-6px; top:50%; transform:translateY(-50%); width:11px; height:11px; border-radius:50%; background:${t.bg}; border:2px solid ${t.faint};"></span>+ <span style="position:absolute; right:-6px; top:50%; transform:translateY(-50%); width:11px; height:11px; border-radius:50%; background:${c}; border:2px solid ${c};"></span>+ <span style="position:absolute; left:24px; bottom:-6px; width:10px; height:10px; transform:rotate(45deg); background:${t.bg}; border:2px solid ${t.faint};"></span>+ <span style="position:absolute; right:24px; bottom:-6px; width:10px; height:10px; transform:rotate(45deg); background:${t.bg}; border:2px solid ${t.faint};"></span>+ </div>`;+}++function wfCard(t, name, nodes, when, sel) {+ return `+ <div class="wf-card" style="border-radius:${t.rCard}px; border-color:${sel ? t.accent : t.border}; ${sel ? `border-left:3px solid ${t.accent}; background:${mix(t.accent, 0.10, t.card)};` : `background:${t.card};`} margin-bottom:8px;">+ <div class="n" style="color:${sel ? t.accent : t.fg};">${name}</div>+ <div class="m" style="font-family:${t.mono}; color:${t.muted};"><span>${nodes} nodes</span><span>${when}</span></div>+ </div>`;+}++function compItem(t, icon, nm, ds) {+ return `+ <div class="comp" style="border-radius:${t.rCard}px; border-color:${t.border}; background:${t.bg};">+ <span class="ic" style="border-radius:${Math.max(t.rCard - 2, 0)}px; background:${t.card}; border-color:${t.border};">${icon}</span>+ <span style="min-width:0;"><div class="nm2" style="color:${t.fg};">${nm}</div><div class="ds" style="color:${t.muted};">${ds}</div></span>+ </div>`;+}++const list = document.getElementById('list');+const jump = document.getElementById('jump');+THEMES.forEach((t) => {+ // Readability rule (CLAUDE.md): decorative display fonts are specimens only.+ // UI copy renders in the theme's readable body font; mono stays mono.+ const HARD_TO_READ = ["'Major Mono Display',monospace", "'Pirata One',serif", "'UnifrakturCook',serif", "'IM Fell English SC',serif", "'Bevan',serif"];+ const uiFont = HARD_TO_READ.includes(t.display) ? t.body : t.display;+ const caps = t.caps ? 'text-transform:uppercase;' : '';+ const track = parseFloat(t.track) > 0.1 ? '0.08em' : t.track;+ const disp = `font-family:${uiFont}; ${caps} letter-spacing:${track};`;+ const a = document.createElement('a');+ a.href = '#th-' + t.name; a.textContent = t.name;+ jump.appendChild(a);++ const tile = document.createElement('div');+ tile.className = 'tile';+ tile.id = 'th-' + t.name;+ tile.innerHTML = `+ <div class="tile-head">+ <span class="nm" style="font-family:${t.display};">${t.name}</span>+ <span class="meta">${t.tag}</span>+ </div>+ <div class="screen-wrap">+ <div class="stage" style="background:${t.bg}; color:${t.fg}; font-family:${t.body};">++ <div class="toolbar" style="background:${t.panel}; border-color:${t.border};">+ <div class="tb-grp">+ <span class="btn sq" style="background:${t.saveBg}; border-color:${t.saveBc}; color:${t.save}; border-radius:${t.rBtn}px;">☰</span>+ <span class="vdiv" style="background:${t.border};"></span>+ <span class="btn" style="background:${t.saveBg}; border-color:${t.saveBc}; color:${t.save}; border-radius:${t.rBtn}px; ${disp}">File ▾</span>+ </div>+ <div class="tb-grp" style="flex:1; justify-content:center;">+ <span style="${disp} font-size:13.5px; font-weight:600;">WhatsApp Assistant</span>+ <span style="color:${t.muted}; font-size:10px;">✎</span>+ </div>+ <div class="tb-grp">+ <span style="display:inline-flex; border:1px solid ${t.border}; border-radius:${t.rBtn + 1}px; padding:2px; gap:2px; background:${t.card};">+ <span class="btn" style="background:${mix(t.nTool,0.10,t.card)}; border-color:${t.nTool}55; color:${t.nTool}; border-radius:${Math.max(t.rBtn-2,0)}px; ${disp} padding:5px 9px; font-size:10.5px;">◷ Normal</span>+ <span class="btn" style="background:transparent; border-color:transparent; color:${t.muted}; border-radius:${Math.max(t.rBtn-2,0)}px; ${disp} padding:5px 9px; font-size:10.5px;">⚡ Dev</span>+ </span>+ <span class="vdiv" style="background:${t.border};"></span>+ <span class="btn sq" style="background:${t.configBg}; border-color:${t.configBc}; color:${t.config}; border-radius:${t.rBtn}px;">⚙</span>+ <span class="btn sq" style="background:${t.configBg}; border-color:${t.configBc}; color:${t.config}; border-radius:${t.rBtn}px;">🔑</span>+ <span class="vdiv" style="background:${t.border};"></span>+ <span class="btn" style="background:${t.runBg}; border-color:${t.runBc}; color:${t.run}; border-radius:${t.rBtn}px; ${disp}">▶ Start</span>+ <span class="btn" style="background:${t.saveBg}; border-color:${t.saveBc}; color:${t.save}; border-radius:${t.rBtn}px; ${disp} opacity:0.5;">Save</span>+ <span style="display:inline-flex; align-items:center; gap:5px; font-family:${t.mono}; font-size:10.5px; color:${t.warn};"><span style="width:7px;height:7px;border-radius:50%;background:${t.warn};"></span>Modified</span>+ <span class="vdiv" style="background:${t.border};"></span>+ <span class="btn sq" style="background:${t.toolsBg}; border-color:${t.toolsBc}; color:${t.tools}; border-radius:${t.rBtn}px;">▦</span>+ </div>+ </div>++ <div class="main">+ <div class="sidebar" style="background:${t.panel}; border-color:${t.border};">+ <div class="panel-hd" style="border-color:${t.border}; background:${t.bg};">+ <div class="t" style="${disp}">Workflows</div>+ <div class="s" style="font-family:${t.mono}; color:${t.muted};">3 saved</div>+ </div>+ <div style="padding-top:10px;">+ ${wfCard(t, 'WhatsApp Assistant', 6, 'Jun 11, 09:14', true)}+ ${wfCard(t, 'Daily Email Digest', 5, 'Jun 9, 18:30', false)}+ ${wfCard(t, 'Customer Support Bot', 9, 'Jun 5, 11:02', false)}+ </div>+ </div>++ <div class="center">+ <div class="canvas" style="background:${t.canvas}; background-image:radial-gradient(${t.grid} 1px, transparent 1px); background-size:20px 20px;">+ <svg class="edges">+ <path d="M 124 154 C 200 154, 230 132, 300 132" fill="none" stroke="${t.nTrig}" stroke-width="2" stroke-dasharray="6 6" opacity="0.8"></path>+ <path d="M 472 132 C 550 132, 580 154, 648 154" fill="none" stroke="${t.nAgent}" stroke-width="2" stroke-dasharray="6 6" opacity="0.8"></path>+ <path d="M 330 226 C 330 270, 280 290, 247 308" fill="none" stroke="${t.nAgent}" stroke-width="2" stroke-dasharray="6 6" opacity="0.8"></path>+ <path d="M 442 226 C 442 270, 470 290, 489 308" fill="none" stroke="${t.nTool}" stroke-width="2" stroke-dasharray="6 6" opacity="0.8"></path>+ <path d="M 330 226 C 330 280, 180 300, 119 318" fill="none" stroke="${t.nModel}" stroke-width="2" stroke-dasharray="6 6" opacity="0.8"></path>+ </svg>+ ${sqNode(t, 66, 125, '💬', 'WhatsApp Receive', t.nTrig, 'ok', { outR: true })}+ ${agentNode(t, 300, 78)}+ ${sqNode(t, 648, 125, '📤', 'WhatsApp Send', t.nTrig, 'idle', { inL: true })}+ ${sqNode(t, 218, 308, '🧠', 'Simple Memory', t.nAgent, 'idle', { outT: true })}+ ${sqNode(t, 460, 308, '📱', 'Android Toolkit', t.nTool, 'run', { outT: true })}+ ${sqNode(t, 90, 318, '🔍', 'Web Search Tool', t.nModel, 'idle', { outT: true })}+ </div>++ <div class="console" style="background:${t.panel}; border-color:${t.border};">+ <div class="ctabs" style="border-color:${t.border};">+ <span class="ctab" style="color:${t.muted}; ${disp} font-size:10.5px;">Chat</span>+ <span class="ctab" style="color:${t.accent}; border-bottom-color:${t.accent}; font-weight:600; ${disp} font-size:10.5px;">Console</span>+ <span class="ctab" style="color:${t.muted}; ${disp} font-size:10.5px;">Terminal</span>+ </div>+ <div class="clog" style="background:${t.bg}; font-family:${t.mono};">+ <span><span style="color:${t.faint};">[12:01:31]</span> <span style="color:${t.muted};">Workflow "WhatsApp Assistant" loaded · 6 nodes</span></span>+ <span><span style="color:${t.faint};">[12:01:33]</span> <span style="color:${t.ok};">Deployed — listening for incoming messages</span></span>+ <span><span style="color:${t.faint};">[12:04:02]</span> <span style="color:${t.nModel};">WhatsApp Receive → message from +1 (555) 014-2236</span></span>+ <span><span style="color:${t.faint};">[12:04:03]</span> <span style="color:${t.nAgent};">AI Agent → delegating to Android Toolkit</span></span>+ <span><span style="color:${t.faint};">[12:04:05]</span> <span style="color:${t.ok};">WhatsApp Send → reply delivered (1.9s)</span></span>+ </div>+ </div>+ </div>++ <div class="palette" style="background:${t.panel}; border-color:${t.border};">+ <div class="panel-hd" style="border-color:${t.border}; background:${t.bg};">+ <div style="display:flex; align-items:center; justify-content:space-between;">+ <span class="t" style="${disp}">Components</span>+ <span class="badge" style="border-radius:${Math.max(t.rCard-2,2)}px; border-color:${t.border}; color:${t.muted}; background:${t.card}; font-family:${t.mono};">14</span>+ </div>+ <div class="search" style="border-radius:${t.rBtn}px; border-color:${t.border}; background:${t.card}; color:${t.faint};">⌕ <span>Search...</span></div>+ </div>+ <div style="padding-top:6px; overflow:hidden;">+ <div class="cat" style="color:${t.fg};"><span style="${disp} font-size:10.5px;">🤖 AI</span><span class="badge" style="border-radius:${Math.max(t.rCard-2,2)}px; border-color:${t.nAgent}55; color:${t.nAgent}; background:${mix(t.nAgent,0.10,t.panel)}; font-family:${t.mono};">3</span></div>+ ${compItem(t, '🤖', 'AI Agent', 'LangGraph agent with memory and tools')}+ ${compItem(t, '🧠', 'Simple Memory', 'Conversation memory store')}+ <div class="cat" style="color:${t.fg};"><span style="${disp} font-size:10.5px;">💬 Messaging</span><span class="badge" style="border-radius:${Math.max(t.rCard-2,2)}px; border-color:${t.nTrig}55; color:${t.nTrig}; background:${mix(t.nTrig,0.10,t.panel)}; font-family:${t.mono};">3</span></div>+ ${compItem(t, '💬', 'WhatsApp Receive', 'Trigger on incoming message')}+ ${compItem(t, '📤', 'WhatsApp Send', 'Send a WhatsApp message')}+ <div class="cat" style="color:${t.fg};"><span style="${disp} font-size:10.5px;">📱 Android</span><span class="badge" style="border-radius:${Math.max(t.rCard-2,2)}px; border-color:${t.nTool}55; color:${t.nTool}; background:${mix(t.nTool,0.10,t.panel)}; font-family:${t.mono};">2</span></div>+ ${compItem(t, '📱', 'Android Toolkit', '16 device services')}+ </div>+ </div>+ </div>++ <div class="statusbar" style="background:${t.panel}; border-color:${t.border}; color:${t.muted}; font-family:${t.mono};">+ <span style="color:${t.ok};"><span class="dot" style="background:${t.ok};"></span>ONLINE</span>+ <span class="sep">|</span>+ <span>WF: <span style="color:${t.fg};">WhatsApp Assistant</span></span>+ <span class="sep">|</span>+ <span>NODES: <span style="color:${t.fg};">6</span></span>+ <span class="right"><span>THEME: <span style="color:${t.fg};">${t.name.toUpperCase()}</span></span><span class="sep">|</span><span>14:02:33</span></span>+ </div>+ </div>+ </div>++ <div class="strip" style="background:${t.bg}; border-color:#21262d; color:${t.fg}; font-family:${t.body};">+ <span class="btn" style="background:${t.runBg}; border-color:${t.runBc}; color:${t.run}; border-radius:${t.rBtn}px; ${disp}">▶ Start</span>+ <span class="btn" style="background:${t.stopBg}; border-color:${t.stopBc}; color:${t.stop}; border-radius:${t.rBtn}px; ${disp}">■ Stop</span>+ <span class="btn" style="background:${t.configBg}; border-color:${t.configBc}; color:${t.config}; border-radius:${t.rBtn}px; ${disp}">⚙ Settings</span>+ <span class="btn" style="background:transparent; border-color:${t.border}; color:${t.fg}; border-radius:${t.rBtn}px; ${disp}">Cancel</span>+ <span class="input" style="border-radius:${t.rBtn}px; border-color:${t.border}; background:${t.card}; color:${t.faint};">⌕ <span>Search...</span></span>+ <span class="switch" style="background:${t.run}; border-color:transparent;"><span class="knob" style="left:18px; background:${t.bg};"></span></span>+ <span class="switch" style="background:${mix(t.fg, 0.08, t.bg)}; border-color:${t.border};"><span class="knob" style="left:2px; background:${t.faint};"></span></span>+ <span class="badge" style="border-radius:${Math.max(t.rCard-2,2)}px; border-color:${t.nAgent}55; color:${t.nAgent}; background:${mix(t.nAgent,0.10,t.bg)};">Agent</span>+ <span class="badge" style="border-radius:${Math.max(t.rCard-2,2)}px; border-color:${t.nTool}55; color:${t.nTool}; background:${mix(t.nTool,0.10,t.bg)};">Tool</span>+ <span class="badge" style="border-radius:${Math.max(t.rCard-2,2)}px; border-color:${t.nTrig}55; color:${t.nTrig}; background:${mix(t.nTrig,0.10,t.bg)};">Trigger</span>+ <span class="tabsdemo" style="border-color:${t.border};">+ <span class="ctab" style="color:${t.accent}; border-bottom:2px solid ${t.accent}; font-weight:600; ${disp} font-size:10.5px; padding:5px 10px;">Console</span>+ <span class="ctab" style="color:${t.muted}; ${disp} font-size:10.5px; padding:5px 10px; border-bottom:2px solid transparent;">Terminal</span>+ </span>+ <span style="font-family:${t.mono}; font-size:10px; color:${t.muted}; margin-left:auto;">${t.name.toUpperCase()} · radius ${t.rBtn}px</span>+ </div>`;+ list.appendChild(tile);+});++function fitStages() {+ document.querySelectorAll('.screen-wrap').forEach((wrap) => {+ const stage = wrap.querySelector('.stage');+ const s = wrap.clientWidth / 1280;+ stage.style.transform = `scale(${s})`;+ wrap.style.height = (700 * s) + 'px';+ });+}+fitStages();+window.addEventListener('resize', fitStages);+</script>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/theme-comparison.html b/docs-internal/design-system/guidelines/theme-comparison.htmlnew file mode 100644index 00000000..e23f2a84--- /dev/null+++ b/docs-internal/design-system/guidelines/theme-comparison.html@@ -0,0 +1,179 @@+<!-- @dsCard group="Brand" viewport="1280x900" name="Theme Comparison" subtitle="Same app screen rendered in all 12 themes — single file" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>MachinaOS — Theme Comparison</title>+<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:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&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&family=Major+Mono+Display&family=Pirata+One&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=UnifrakturCook:wght@700&family=VT323&display=swap">+<style>+ * { box-sizing: border-box; }+ body { margin: 0; background: #0a0c10; font-family: 'Geist', system-ui, sans-serif; color: #e6edf3; }+ header { padding: 26px 32px 6px; }+ header h1 { margin: 0; font-size: 20px; font-weight: 600; }+ header p { margin: 6px 0 0; font-size: 13px; color: #8b949e; max-width: 760px; line-height: 1.5; }+ .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px 32px 48px; }+ @media (min-width: 1700px) { .grid { grid-template-columns: repeat(3, 1fr); } }++ .tile { border-radius: 10px; overflow: hidden; border: 1px solid #21262d; background: #11151a; }+ .tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }+ .tile-head .nm { font-size: 14px; font-weight: 600; }+ .tile-head .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #8b949e; text-align: right; }++ /* ---- mini app screen ---- */+ .screen { display: flex; flex-direction: column; height: 330px; font-size: 12px; }+ .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 10px; border-bottom: 1px solid; flex-shrink: 0; }+ .tb-left, .tb-right { display: flex; align-items: center; gap: 6px; }+ .wfname { font-size: 12px; font-weight: 500; white-space: nowrap; }+ .btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 10.5px; font-weight: 600; border: 1px solid; line-height: 1; white-space: nowrap; }+ .canvas { position: relative; flex: 1; overflow: hidden; }+ .stage { position: absolute; left: 50%; top: 0; width: 540px; height: 250px; transform-origin: top center; }+ .stage svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }+ .node { position: absolute; width: 52px; height: 52px; border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 21px; }+ .node .pip { position: absolute; top: -4px; left: -4px; width: 8px; height: 8px; border-radius: 50%; }+ .nlabel { position: absolute; font-size: 9px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }+ .statusbar { display: flex; align-items: center; gap: 8px; height: 21px; padding: 0 10px; border-top: 1px solid; font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0; white-space: nowrap; overflow: hidden; }+ .statusbar .dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; margin-right: 4px; }+ .statusbar .sep { opacity: 0.4; }+ .statusbar .right { margin-left: auto; display: flex; gap: 8px; }+</style>+</head>+<body>+<header>+ <h1>MachinaOS — one screen, twelve themes</h1>+ <p>The same workflow view (toolbar · node canvas · status bar) rendered with each theme's real tokens from <code>client/src/themes/*.css</code>: surfaces, accents, typeface trio, letter case & tracking, radii, canvas grid. Light + Dark are encoded live in this design system's <code>tokens/</code>; the ten skins are sourced in <code>reference/themes/</code>.</p>+</header>+<div class="grid" id="grid"></div>++<script>+const THEMES = [+ { name: 'Light', tag: 'default · Geist · radius 6–8 · 90/180/320ms smooth', bg: '#f5f7fa', panel: '#fafbfc', canvas: '#ffffff', card: '#ffffff', fg: '#1a1d21', muted: '#4b5563', border: '#d1d5db',+ display: "'Geist',sans-serif", body: "'Geist',sans-serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0', rBtn: 6, rNode: 10,+ run: '#15803d', runBg: 'rgba(80,250,123,0.15)', runBc: 'rgba(80,250,123,0.6)', stop: '#be185d', stopBg: 'rgba(255,121,198,0.15)', stopBc: 'rgba(255,121,198,0.6)',+ nAgent: '#bd93f9', nTrig: '#ff79c6', nTool: '#50fa7b', ok: '#059669', grid: 'rgba(75,85,99,0.30)' },+ { name: 'Dark', tag: 'signature · Solarized + Dracula · radius 6–8 · smooth', bg: '#002b36', panel: '#073642', canvas: '#002b36', card: '#073642', fg: '#f8f8f2', muted: '#94a8d6', border: '#586e75',+ display: "'Geist',sans-serif", body: "'Geist',sans-serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0', rBtn: 6, rNode: 10,+ run: '#50fa7b', runBg: 'rgba(80,250,123,0.15)', runBc: 'rgba(80,250,123,0.6)', stop: '#ff79c6', stopBg: 'rgba(255,121,198,0.15)', stopBc: 'rgba(255,121,198,0.6)',+ nAgent: '#bd93f9', nTrig: '#ff79c6', nTool: '#50fa7b', ok: '#859900', grid: 'rgba(148,168,214,0.30)' },+ { name: 'Renaissance', tag: 'illuminated codex · Cinzel/Cormorant · UPPER .10em · 140/280/520ms', bg: '#f3e8c8', panel: '#ead09a', canvas: '#e8d4a0', card: '#fbf3dc', fg: '#3a2008', muted: '#6a4a1c', border: '#8a5e1c',+ display: "'Cinzel',serif", body: "'Cormorant Garamond',serif", mono: "'IM Fell English',serif", caps: true, track: '0.08em', rBtn: 3, rNode: 4,+ run: '#8a1410', runBg: 'rgba(212,160,48,0.20)', runBc: '#8a5e1c', stop: '#8a1410', stopBg: 'rgba(138,20,16,0.12)', stopBc: '#8a1410',+ nAgent: '#2548c8', nTrig: '#8a1410', nTool: '#d4a030', ok: '#5a6a28', grid: 'rgba(138,94,28,0.28)' },+ { name: 'Greek', tag: 'marble agora · Cinzel · UPPER .18em · radius 0–2', bg: '#ede5d0', panel: '#f5efde', canvas: '#e6dcc2', card: '#faf6e9', fg: '#2a2415', muted: '#6a5d3c', border: '#b8a878',+ display: "'Cinzel',serif", body: "'Cormorant Garamond',serif", mono: "'Courier Prime',monospace", caps: true, track: '0.14em', rBtn: 0, rNode: 2,+ run: '#284b82', runBg: 'rgba(40,75,130,0.12)', runBc: '#284b82', stop: '#7a1a18', stopBg: 'rgba(122,26,24,0.10)', stopBc: '#7a1a18',+ nAgent: '#284b82', nTrig: '#7a1a18', nTool: '#c8a040', ok: '#6a7a32', grid: 'rgba(106,93,60,0.28)' },+ { name: 'Edo', tag: 'washi + sumi-e · Shippori Mincho · radius 0 · 90/220/520ms organic', bg: '#f4ecd8', panel: '#faf3e0', canvas: '#ede4ca', card: '#fdf8ea', fg: '#1a1410', muted: '#6a5e48', border: '#c8b890',+ display: "'Shippori Mincho',serif", body: "'Shippori Mincho',serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0.06em', rBtn: 0, rNode: 0,+ run: '#b41e1e', runBg: 'rgba(180,30,30,0.08)', runBc: '#b41e1e', stop: '#1a1410', stopBg: 'rgba(26,20,16,0.08)', stopBc: '#1a1410',+ nAgent: '#b41e1e', nTrig: '#e89aa8', nTool: '#4a6a3a', ok: '#4a6a3a', grid: 'rgba(106,94,72,0.28)' },+ { name: 'Steampunk', tag: 'brass & rivets · IM Fell English SC · UPPER .10em · mechanical', bg: '#2a1f12', panel: '#3a2a18', canvas: '#1a1208', card: '#4a3620', fg: '#e8d8b0', muted: '#b8a070', border: '#6a4a20',+ display: "'IM Fell English SC',serif", body: "'IM Fell English',serif", mono: "'Special Elite',monospace", caps: true, track: '0.08em', rBtn: 3, rNode: 4,+ run: '#d8a848', runBg: 'rgba(216,168,72,0.20)', runBc: '#d8a848', stop: '#b8602a', stopBg: 'rgba(184,96,42,0.18)', stopBc: '#b8602a',+ nAgent: '#d8a848', nTrig: '#b8602a', nTool: '#8a8a4a', ok: '#8a8a4a', grid: 'rgba(184,160,112,0.25)' },+ { name: 'Atomic', tag: '1962 Eames · Bevan/Lato · bouncy 1.6 overshoot', bg: '#f0e6d2', panel: '#faf2dc', canvas: '#e8dcc0', card: '#ffffff', fg: '#2a3a4a', muted: '#5a6a7a', border: '#c8b890',+ display: "'Bevan',serif", body: "'Lato',sans-serif", mono: "'Space Mono',monospace", caps: true, track: '0.05em', rBtn: 2, rNode: 4,+ run: '#3a9aa0', runBg: 'rgba(58,154,160,0.12)', runBc: '#3a9aa0', stop: '#e85a26', stopBg: 'rgba(232,90,38,0.12)', stopBc: '#e85a26',+ nAgent: '#e85a26', nTrig: '#d8a838', nTool: '#3a9aa0', ok: '#3a9aa0', grid: 'rgba(90,106,122,0.28)' },+ { name: 'Cyber', tag: 'neon night market · Major Mono · UPPER .18em · steps(4) glitch', bg: '#050010', panel: '#0a0420', canvas: '#03000a', card: '#15103a', fg: '#f0e0ff', muted: '#a090c0', border: '#2a1f50',+ display: "'Major Mono Display',monospace", body: "'JetBrains Mono',monospace", mono: "'JetBrains Mono',monospace", caps: true, track: '0.12em', rBtn: 0, rNode: 0,+ run: '#26d97a', runBg: 'rgba(38,217,122,0.14)', runBc: '#26d97a', stop: '#f51eb6', stopBg: 'rgba(245,30,182,0.14)', stopBc: '#f51eb6',+ nAgent: '#f51eb6', nTrig: '#ffd028', nTool: '#1dd9e5', ok: '#26d97a', grid: 'rgba(160,144,192,0.30)' },+ { name: 'Wasteland', tag: 'irradiated scrap · Special Elite/VT323 · UPPER · jittery', bg: '#2a2018', panel: '#3a2c1c', canvas: '#1a1410', card: '#4a3826', fg: '#e8d8a8', muted: '#b89868', border: '#6a4a28',+ display: "'Special Elite',monospace", body: "'Special Elite',monospace", mono: "'VT323',monospace", caps: true, track: '0.08em', rBtn: 0, rNode: 0,+ run: '#c8d038', runBg: 'rgba(200,208,56,0.14)', runBc: '#c8d038', stop: '#8a3a18', stopBg: 'rgba(138,58,24,0.20)', stopBc: '#e88a28',+ nAgent: '#e88a28', nTrig: '#8a3a18', nTool: '#c8d038', ok: '#c8d038', grid: 'rgba(184,152,104,0.25)' },+ { name: 'Rot', tag: 'mossy crypt · Pirata One/EB Garamond · 140/320/680ms drift', bg: '#14181a', panel: '#1c2226', canvas: '#0a0e10', card: '#242c30', fg: '#c8d8c0', muted: '#788878', border: '#2a3a30',+ display: "'Pirata One',serif", body: "'EB Garamond',serif", mono: "'JetBrains Mono',monospace", caps: false, track: '0.04em', rBtn: 2, rNode: 4,+ run: '#78c878', runBg: 'rgba(120,200,120,0.10)', runBc: '#78c878', stop: '#e8a838', stopBg: 'rgba(232,168,56,0.10)', stopBc: '#e8a838',+ nAgent: '#78c878', nTrig: '#e8a838', nTool: '#d8d0b8', ok: '#78c878', grid: 'rgba(120,136,120,0.28)' },+ { name: 'Plague', tag: '1349 broadsheet · UnifrakturCook/EB Garamond · UPPER · stiff', bg: '#d8d4c0', panel: '#e4dfc8', canvas: '#c8c4b0', card: '#efeacf', fg: '#2a1c14', muted: '#6a5440', border: '#a89478',+ display: "'UnifrakturCook',serif", body: "'EB Garamond',serif", mono: "'Special Elite',monospace", caps: false, track: '0.05em', rBtn: 0, rNode: 0,+ run: '#783c28', runBg: 'rgba(120,60,40,0.12)', runBc: '#783c28', stop: '#1a1410', stopBg: 'rgba(26,20,16,0.10)', stopBc: '#1a1410',+ nAgent: '#783c28', nTrig: '#1a1410', nTool: '#98a838', ok: '#98a838', grid: 'rgba(106,84,64,0.25)' },+ { name: 'Surveillance', tag: 'panopticon · Anonymous Pro/IBM Plex Mono · linear scanline', bg: '#1a1c1e', panel: '#232628', canvas: '#0a0c0e', card: '#2c3034', fg: '#c8ccd0', muted: '#888c90', border: '#3a3e42',+ display: "'Anonymous Pro',monospace", body: "'IBM Plex Mono',monospace", mono: "'IBM Plex Mono',monospace", caps: true, track: '0.08em', rBtn: 0, rNode: 0,+ run: '#6acc6a', runBg: 'rgba(106,204,106,0.10)', runBc: '#6acc6a', stop: '#e82626', stopBg: 'rgba(232,38,38,0.10)', stopBc: '#e82626',+ nAgent: '#e82626', nTrig: '#d8a020', nTool: '#6acc6a', ok: '#6acc6a', grid: 'rgba(136,140,144,0.28)' },+];++function mix(hex, pct, baseHex) {+ // simple srgb mix of hex accent into base card color+ const h = (x) => [parseInt(x.slice(1,3),16), parseInt(x.slice(3,5),16), parseInt(x.slice(5,7),16)];+ const a = h(hex), b = h(baseHex);+ const m = a.map((v, i) => Math.round(v * pct + b[i] * (1 - pct)));+ return `rgb(${m[0]},${m[1]},${m[2]})`;+}++function nodeHtml(t, x, y, icon, label, color, status) {+ const fill = `linear-gradient(135deg, ${mix(color, 0.18, t.card)}, ${t.card})`;+ const pip = status === 'ok' ? t.ok : (status === 'run' ? color : t.muted);+ return `+ <div class="node" style="left:${x}px; top:${y}px; border-radius:${t.rNode}px; border-color:${color}99; background:${fill}; box-shadow:0 2px 8px ${color}30;">+ <span class="pip" style="background:${pip}; box-shadow:${status !== 'idle' ? `0 0 6px ${pip}` : 'none'};"></span>${icon}+ </div>+ <div class="nlabel" style="left:${x + 26}px; top:${y + 58}px; color:${t.fg}; font-family:${t.body};">${label}</div>`;+}++const grid = document.getElementById('grid');+THEMES.forEach((t) => {+ const caps = t.caps ? 'text-transform:uppercase;' : '';+ const dispStyle = `font-family:${t.display}; ${caps} letter-spacing:${t.track};`;+ const tile = document.createElement('div');+ tile.className = 'tile';+ tile.innerHTML = `+ <div class="tile-head">+ <span class="nm" style="font-family:${t.display};">${t.name}</span>+ <span class="meta">${t.tag}</span>+ </div>+ <div class="screen" style="background:${t.bg}; color:${t.fg}; font-family:${t.body};">+ <div class="toolbar" style="background:${t.panel}; border-color:${t.border};">+ <div class="tb-left">+ <span class="wfname" style="${dispStyle} font-size:11.5px;">WhatsApp Assistant</span>+ </div>+ <div class="tb-right">+ <span class="btn" style="background:${t.runBg}; border-color:${t.runBc}; color:${t.run}; border-radius:${t.rBtn}px; ${dispStyle}">▶ Start</span>+ <span class="btn" style="background:${t.stopBg}; border-color:${t.stopBc}; color:${t.stop}; border-radius:${t.rBtn}px; ${dispStyle}">■ Stop</span>+ </div>+ </div>+ <div class="canvas" style="background:${t.canvas}; background-image:radial-gradient(${t.grid} 1px, transparent 1px); background-size:16px 16px;">+ <div class="stage">+ <svg class="edges">+ <path d="M 92 96 C 150 96, 170 80, 228 80" fill="none" stroke="${t.nTrig}" stroke-width="2" stroke-dasharray="5 5" opacity="0.8"></path>+ <path d="M 282 80 C 350 80, 370 96, 430 96" fill="none" stroke="${t.nAgent}" stroke-width="2" stroke-dasharray="5 5" opacity="0.8"></path>+ <path d="M 255 108 C 255 140, 200 150, 165 170" fill="none" stroke="${t.nAgent}" stroke-width="2" stroke-dasharray="5 5" opacity="0.8"></path>+ <path d="M 255 108 C 255 140, 310 150, 345 170" fill="none" stroke="${t.nTool}" stroke-width="2" stroke-dasharray="5 5" opacity="0.8"></path>+ </svg>+ ${nodeHtml(t, 40, 70, '💬', 'WhatsApp Receive', t.nTrig, 'ok')}+ ${nodeHtml(t, 228, 54, '🤖', 'AI Agent', t.nAgent, 'run')}+ ${nodeHtml(t, 430, 70, '📤', 'WhatsApp Send', t.nTrig, 'idle')}+ ${nodeHtml(t, 130, 170, '🧠', 'Memory', t.nAgent, 'idle')}+ ${nodeHtml(t, 320, 170, '🔍', 'Web Search', t.nTool, 'idle')}+ </div>+ </div>+ <div class="statusbar" style="background:${t.panel}; border-color:${t.border}; color:${t.muted}; font-family:${t.mono};">+ <span style="color:${t.ok};"><span class="dot" style="background:${t.ok};"></span>ONLINE</span>+ <span class="sep">|</span>+ <span>WF: <span style="color:${t.fg};">Test</span></span>+ <span class="sep">|</span>+ <span>NODES: <span style="color:${t.fg};">5</span></span>+ <span class="right"><span>THEME: <span style="color:${t.fg};">${t.name.toUpperCase()}</span></span><span class="sep">|</span><span>14:02:33</span></span>+ </div>+ </div>`;+ grid.appendChild(tile);+});++function fitStages() {+ document.querySelectorAll('.canvas').forEach((cv) => {+ const stage = cv.querySelector('.stage');+ if (!stage) return;+ const s = Math.min(1, (cv.clientWidth - 8) / 540, (cv.clientHeight - 4) / 250);+ stage.style.transform = `translateX(-50%) scale(${s})`;+ });+}+fitStages();+window.addEventListener('resize', fitStages);+</script>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/theme-matrix.html b/docs-internal/design-system/guidelines/theme-matrix.htmlnew file mode 100644index 00000000..14cb96a2--- /dev/null+++ b/docs-internal/design-system/guidelines/theme-matrix.html@@ -0,0 +1,152 @@+<!-- @dsCard group="Brand" viewport="1100x720" name="Theme Matrix" subtitle="All 12 product themes — surfaces, accents, type, radii, motion" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>MachinaOS — Theme Matrix</title>+<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:ital,wght@0,400;0,500;0,600;1,400&family=Courier+Prime&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&family=Major+Mono+Display&family=Pirata+One&family=Shippori+Mincho:wght@400;500;600;700&family=Space+Mono&family=Special+Elite&family=UnifrakturCook:wght@700&family=VT323&display=swap">+<style>+ * { box-sizing: border-box; }+ body { margin: 0; background: #0d1117; font-family: 'Geist', system-ui, sans-serif; }+ .matrix { display: flex; flex-direction: column; }+ .theme-row {+ display: grid;+ grid-template-columns: 190px 200px 168px 1fr 150px;+ gap: 18px; align-items: center;+ padding: 16px 22px;+ border-bottom: 1px solid rgba(128,128,128,0.25);+ }+ .t-name { font-size: 17px; font-weight: 700; line-height: 1.1; }+ .t-world { font-size: 11px; opacity: 0.75; margin-top: 3px; font-family: 'Geist', sans-serif; }+ .t-meta { font-family: 'JetBrains Mono', monospace; font-size: 9px; opacity: 0.6; margin-top: 6px; line-height: 1.5; }+ .surfaces { display: flex; gap: 4px; }+ .surfaces .sw { flex: 1; height: 44px; border-radius: 4px; border: 1px solid rgba(128,128,128,0.45); }+ .surf-label { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; opacity: 0.55; margin-top: 5px; }+ .accents { display: flex; gap: 5px; flex-wrap: wrap; }+ .accents .chip { width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgba(128,128,128,0.4); }+ .acc-label { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; opacity: 0.55; margin-top: 5px; }+ .type-display { font-size: 21px; line-height: 1.15; }+ .type-body { font-size: 12.5px; margin-top: 4px; opacity: 0.9; }+ .type-mono { font-size: 10.5px; margin-top: 5px; opacity: 0.65; }+ .demo { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }+ .demo-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; font-size: 11px; font-weight: 600; border: 1px solid; line-height: 1; white-space: nowrap; }+ .demo-motion { font-family: 'JetBrains Mono', monospace; font-size: 9px; opacity: 0.6; }+ .hdr { padding: 18px 22px 10px; color: #e6edf3; }+ .hdr h1 { margin: 0; font-size: 18px; font-weight: 600; }+ .hdr p { margin: 4px 0 0; font-size: 12px; color: #8b949e; }+</style>+</head>+<body>+<div class="hdr">+ <h1>MachinaOS theme matrix — 12 material systems, one token contract</h1>+ <p>Each row is rendered in that theme's own tokens (from client/src/themes/*.css). Same UI, different era. Analysis: guidelines/THEMES.md</p>+</div>+<div class="matrix" id="matrix"></div>+<script>+const THEMES = [+ { name: 'Light', world: 'Quiet grey-blue workspace (default)', bg: '#f5f7fa', panel: '#fafbfc', canvas: '#ffffff', elevated: '#ffffff', fg: '#1a1d21', muted: '#4b5563', border: '#d1d5db',+ accents: ['#2563eb', '#7c3aed', '#059669', '#dc2626'], accNames: 'primary · accent · success · destructive',+ display: "'Geist', sans-serif", body: "'Geist', sans-serif", mono: "'JetBrains Mono', monospace", caps: false, track: '0',+ radius: '8px', btn: { bg: 'rgba(37,99,235,0.10)', bc: 'rgba(37,99,235,0.5)', fg: '#2563eb' },+ motion: '90/180/320ms · smooth · snd:parchment' },+ { name: 'Dark', world: 'Solarized teal + Dracula neon (signature)', bg: '#002b36', panel: '#073642', canvas: '#002b36', elevated: '#0d1f2d', fg: '#f8f8f2', muted: '#94a8d6', border: '#586e75',+ accents: ['#50fa7b', '#8be9fd', '#bd93f9', '#ff79c6'], accNames: 'run · save · tools · stop',+ display: "'Geist', sans-serif", body: "'Geist', sans-serif", mono: "'JetBrains Mono', monospace", caps: false, track: '0',+ radius: '8px', btn: { bg: 'rgba(80,250,123,0.15)', bc: 'rgba(80,250,123,0.6)', fg: '#50fa7b' },+ motion: '90/180/320ms · smooth · snd:terminal' },+ { name: 'Renaissance', world: 'Illuminated codex, Florentine workshop', bg: '#f3e8c8', panel: '#ead09a', canvas: '#e8d4a0', elevated: '#fbf3dc', fg: '#3a2008', muted: '#6a4a1c', border: '#8a5e1c',+ accents: ['#d4a030', '#8a1410', '#2548c8', '#f0c850'], accNames: 'gold · crimson · lapis · gold-bright',+ display: "'Cinzel', serif", body: "'Cormorant Garamond', serif", mono: "'IM Fell English', serif", caps: true, track: '0.10em',+ radius: '4px', btn: { bg: 'rgba(212,160,48,0.20)', bc: '#8a5e1c', fg: '#8a1410' },+ motion: '140/280/520ms · organic · snd:parchment · quill cursor' },+ { name: 'Greek', world: 'Sun-bleached marble agora', bg: '#ede5d0', panel: '#f5efde', canvas: '#e6dcc2', elevated: '#faf6e9', fg: '#2a2415', muted: '#6a5d3c', border: '#b8a878',+ accents: ['#284b82', '#7a1a18', '#c8a040', '#6a7a32'], accNames: 'lapis · oxblood · gold · olive',+ display: "'Cinzel', serif", body: "'Cormorant Garamond', serif", mono: "'Courier Prime', monospace", caps: true, track: '0.18em',+ radius: '2px', btn: { bg: 'rgba(40,75,130,0.12)', bc: '#284b82', fg: '#284b82' },+ motion: '120/240/460ms · smooth · snd:marble' },+ { name: 'Edo', world: 'Washi paper, sumi-e ink, hanko seal', bg: '#f4ecd8', panel: '#faf3e0', canvas: '#ede4ca', elevated: '#fdf8ea', fg: '#1a1410', muted: '#6a5e48', border: '#c8b890',+ accents: ['#b41e1e', '#1a1410', '#4a6a3a', '#e89aa8'], accNames: 'vermillion · sumi · bamboo · sakura',+ display: "'Shippori Mincho', serif", body: "'Shippori Mincho', serif", mono: "'JetBrains Mono', monospace", caps: false, track: '0.06em',+ radius: '0', btn: { bg: 'rgba(180,30,30,0.08)', bc: '#b41e1e', fg: '#b41e1e' },+ motion: '90/220/520ms · organic · snd:ink' },+ { name: 'Steampunk', world: 'Brass, copper, riveted leather — Verne', bg: '#2a1f12', panel: '#3a2a18', canvas: '#1a1208', elevated: '#4a3620', fg: '#e8d8b0', muted: '#b8a070', border: '#6a4a20',+ accents: ['#d8a848', '#b8602a', '#8a3a1a', '#4a2818'], accNames: 'brass · copper · rust · leather',+ display: "'IM Fell English SC', serif", body: "'IM Fell English', serif", mono: "'Special Elite', monospace", caps: true, track: '0.10em',+ radius: '4px', btn: { bg: 'linear-gradient(180deg, rgba(216,168,72,0.25), rgba(216,168,72,0.06))', bc: '#d8a848', fg: '#d8a848' },+ motion: '110/240/480ms · mechanical · snd:clockwork · rivets' },+ { name: 'Atomic', world: '1962 Eames optimism, NASA brochure', bg: '#f0e6d2', panel: '#faf2dc', canvas: '#e8dcc0', elevated: '#ffffff', fg: '#2a3a4a', muted: '#5a6a7a', border: '#c8b890',+ accents: ['#e85a26', '#3a9aa0', '#d8a838', '#2a3a4a'], accNames: 'atomic orange · turquoise · mustard · slate',+ display: "'Bevan', serif", body: "'Lato', sans-serif", mono: "'Space Mono', monospace", caps: true, track: '0.06em',+ radius: '4px', btn: { bg: 'rgba(232,90,38,0.12)', bc: '#e85a26', fg: '#e85a26' },+ motion: '100/200/380ms · bouncy (1.6 overshoot) · snd:vibraphone' },+ { name: 'Cyber', world: 'Neuromancer night market, pirate terminal', bg: '#050010', panel: '#0a0420', canvas: '#03000a', elevated: '#15103a', fg: '#f0e0ff', muted: '#a090c0', border: '#2a1f50',+ accents: ['#f51eb6', '#1dd9e5', '#26d97a', '#ffd028'], accNames: 'neon magenta · cyan · green · yellow',+ display: "'Major Mono Display', monospace", body: "'JetBrains Mono', monospace", mono: "'JetBrains Mono', monospace", caps: true, track: '0.18em',+ radius: '0', btn: { bg: 'rgba(245,30,182,0.14)', bc: '#f51eb6', fg: '#f51eb6' },+ motion: '60/120/240ms · steps(4) glitch · snd:terminal · CRT flicker + reticle cursor' },+ { name: 'Wasteland', world: 'Irradiated dust, scrap-metal warnings', bg: '#2a2018', panel: '#3a2c1c', canvas: '#1a1410', elevated: '#4a3826', fg: '#e8d8a8', muted: '#b89868', border: '#6a4a28',+ accents: ['#e88a28', '#8a3a18', '#c8d038', '#d8c8a0'], accNames: 'ochre · rust · rad-yellow · bone',+ display: "'Special Elite', monospace", body: "'Special Elite', monospace", mono: "'VT323', monospace", caps: true, track: '0.10em',+ radius: '0', btn: { bg: 'rgba(232,140,40,0.14)', bc: '#e88a28', fg: '#e88a28' },+ motion: '60/180/320ms · jittery · snd:scrap' },+ { name: 'Rot', world: 'Moss-overgrown crypt, guttering candles', bg: '#14181a', panel: '#1c2226', canvas: '#0a0e10', elevated: '#242c30', fg: '#c8d8c0', muted: '#788878', border: '#2a3a30',+ accents: ['#78c878', '#e8a838', '#d8d0b8', '#4a3838'], accNames: 'moss · candle · bone · crypt',+ display: "'Pirata One', serif", body: "'EB Garamond', serif", mono: "'JetBrains Mono', monospace", caps: false, track: '0.04em',+ radius: '4px', btn: { bg: 'rgba(120,200,120,0.10)', bc: '#78c878', fg: '#78c878' },+ motion: '140/320/680ms · drift (slowest) · snd:crypt' },+ { name: 'Plague', world: 'Quarantine notices, 1349 broadsheet', bg: '#d8d4c0', panel: '#e4dfc8', canvas: '#c8c4b0', elevated: '#efeacf', fg: '#2a1c14', muted: '#6a5440', border: '#a89478',+ accents: ['#783c28', '#98a838', '#1a1410', '#efeacf'], accNames: 'dried blood · bile · crow · linen',+ display: "'UnifrakturCook', serif", body: "'EB Garamond', serif", mono: "'Special Elite', monospace", caps: true, track: '0.06em',+ radius: '0', btn: { bg: 'rgba(120,60,40,0.12)', bc: '#783c28', fg: '#783c28' },+ motion: '100/220/460ms · stiff · snd:bell' },+ { name: 'Surveillance', world: '1970s panopticon control room', bg: '#1a1c1e', panel: '#232628', canvas: '#0a0c0e', elevated: '#2c3034', fg: '#c8ccd0', muted: '#888c90', border: '#3a3e42',+ accents: ['#e82626', '#6acc6a', '#d8a020', '#888c90'], accNames: 'REC red · phosphor · amber · concrete',+ display: "'Anonymous Pro', monospace", body: "'IBM Plex Mono', monospace", mono: "'IBM Plex Mono', monospace", caps: true, track: '0.10em',+ radius: '0', btn: { bg: 'rgba(232,38,38,0.10)', bc: '#e82626', fg: '#e82626' },+ motion: '60/140/240ms · linear scanline · snd:telex · CCTV cursor' },+];++const matrix = document.getElementById('matrix');+THEMES.forEach((t) => {+ const row = document.createElement('div');+ row.className = 'theme-row';+ row.style.background = t.bg;+ row.style.color = t.fg;+ const caps = t.caps ? 'text-transform: uppercase;' : '';+ row.innerHTML = `+ <div>+ <div class="t-name" style="font-family: ${t.display}; ${caps} letter-spacing: ${t.track};">${t.name}</div>+ <div class="t-world" style="color: ${t.muted};">${t.world}</div>+ <div class="t-meta" style="color: ${t.muted};">${t.motion}</div>+ </div>+ <div>+ <div class="surfaces">+ <div class="sw" style="background: ${t.bg}; border-color: ${t.border};"></div>+ <div class="sw" style="background: ${t.panel}; border-color: ${t.border};"></div>+ <div class="sw" style="background: ${t.canvas}; border-color: ${t.border};"></div>+ <div class="sw" style="background: ${t.elevated}; border-color: ${t.border};"></div>+ </div>+ <div class="surf-label" style="color: ${t.muted};">app · panel · canvas · elevated</div>+ </div>+ <div>+ <div class="accents">+ ${t.accents.map((a) => `<div class="chip" style="background: ${a};"></div>`).join('')}+ </div>+ <div class="acc-label" style="color: ${t.muted};">${t.accNames}</div>+ </div>+ <div>+ <div class="type-display" style="font-family: ${t.display}; ${caps} letter-spacing: ${t.track};">Workflow deployed</div>+ <div class="type-body" style="font-family: ${t.body};">Your own AI assistant that does real work.</div>+ <div class="type-mono" style="font-family: ${t.mono};">ONLINE | WF: TEST | NODES: 12</div>+ </div>+ <div class="demo">+ <span class="demo-btn" style="background: ${t.btn.bg}; border-color: ${t.btn.bc}; color: ${t.btn.fg}; border-radius: ${t.radius}; font-family: ${t.display}; ${caps} letter-spacing: ${t.track};">▶ Start</span>+ <span class="demo-motion" style="color: ${t.muted};">radius ${t.radius}</span>+ </div>`;+ matrix.appendChild(row);+});+</script>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/type-scale.html b/docs-internal/design-system/guidelines/type-scale.htmlnew file mode 100644index 00000000..ea947ce0--- /dev/null+++ b/docs-internal/design-system/guidelines/type-scale.html@@ -0,0 +1,23 @@+<!-- @dsCard group="Type" viewport="700x280" subtitle="14px base — dense desktop scale" name="Type Scale" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+<style>+.r { display: flex; align-items: baseline; gap: 16px; padding: 5px 0; border-bottom: 1px solid var(--bg-hover); }+.t { font-family: var(--font-mono); font-size: 10px; color: var(--fg-faint); width: 130px; flex-shrink: 0; }+</style>+</head>+<body style="background: var(--bg-app); margin: 0; padding: 12px 24px;">+<div class="r"><span class="t">--text-3xl · 44 / 600</span><span style="font-size: 44px; font-weight: 600; color: var(--fg-default); line-height: 1.1;">Hero headline</span></div>+<div class="r"><span class="t">--text-2xl · 32 / 600</span><span style="font-size: 32px; font-weight: 600; color: var(--fg-default); line-height: 1.15;">Marketing headline</span></div>+<div class="r"><span class="t">--text-xl · 24 / 600</span><span style="font-size: 24px; font-weight: 600; color: var(--fg-default);">Page heading</span></div>+<div class="r"><span class="t">--text-lg · 18 / 600</span><span style="font-size: 18px; font-weight: 600; color: var(--fg-default);">Modal title</span></div>+<div class="r"><span class="t">--text-md · 16 / 600</span><span style="font-size: 16px; font-weight: 600; color: var(--fg-default);">Panel heading</span></div>+<div class="r"><span class="t">--text-base · 14 / 400</span><span style="font-size: 14px; color: var(--fg-default);">Body, inputs, list items — workflows run reliably even if your computer restarts.</span></div>+<div class="r"><span class="t">--text-sm · 13 / 600</span><span style="font-size: 13px; font-weight: 600; color: var(--fg-default);">Toolbar buttons, secondary UI</span></div>+<div class="r"><span class="t">--text-xs · 12 / 500</span><span style="font-size: 12px; font-weight: 500; color: var(--fg-muted);">Metadata, badges, descriptions</span></div>+<div class="r" style="border-bottom: none;"><span class="t">--text-2xs · 11 / mono</span><span style="font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-muted);">STATUS BAR · FINE PRINT</span></div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/typeface-geist.html b/docs-internal/design-system/guidelines/typeface-geist.htmlnew file mode 100644index 00000000..ed298ced--- /dev/null+++ b/docs-internal/design-system/guidelines/typeface-geist.html@@ -0,0 +1,18 @@+<!-- @dsCard group="Type" viewport="700x170" subtitle="Geist — one family for display & body" name="Typeface — Geist" -->+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); margin: 0; padding: 20px 24px;">+<div style="font-family: var(--font-sans); font-size: 34px; font-weight: 600; color: var(--fg-default); letter-spacing: -0.01em;">Your own AI assistant that does real work.</div>+<div style="display: flex; gap: 24px; margin-top: 14px; align-items: baseline;">+ <span style="font-family: var(--font-sans); font-weight: 400; font-size: 15px; color: var(--fg-muted);">Regular 400</span>+ <span style="font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: var(--fg-default);">Medium 500</span>+ <span style="font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--fg-default);">Semibold 600</span>+ <span style="font-family: var(--font-sans); font-weight: 700; font-size: 15px; color: var(--fg-default);">Bold 700</span>+ <span style="font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint);">--font-sans: 'Geist'</span>+</div>+</body>+</html>diff --git a/docs-internal/design-system/guidelines/wordmark.html b/docs-internal/design-system/guidelines/wordmark.htmlnew file mode 100644index 00000000..75a0dc8d--- /dev/null+++ b/docs-internal/design-system/guidelines/wordmark.html@@ -0,0 +1,19 @@+<!-- @dsCard group="Brand" viewport="700x150" subtitle="Stand-in wordmark — no official logo in repo (see readme caveats)" name="Wordmark" -->+<!DOCTYPE html>+<html class="dark">+<head>+<meta charset="utf-8">+<link rel="stylesheet" href="../styles.css">+</head>+<body style="background: var(--bg-app); margin: 0; display: flex; align-items: center; justify-content: center; height: 130px; gap: 40px;">+<div style="display: flex; align-items: center; gap: 14px;">+ <div style="width: 40px; height: 40px; border-radius: 10px; border: 2px solid color-mix(in srgb, var(--dracula-cyan) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--dracula-cyan) 18%, var(--surface-card)), var(--surface-card)); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px color-mix(in srgb, var(--dracula-cyan) 25%, transparent);">+ <span style="font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--dracula-cyan);">M</span>+ </div>+ <div>+ <div style="font-family: var(--font-sans); font-size: 26px; font-weight: 600; color: var(--fg-default); letter-spacing: -0.01em;">MachinaOS</div>+ <div style="font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-muted);">by zeenie.ai</div>+ </div>+</div>+</body>+</html>diff --git a/docs-internal/design-system/readme.md b/docs-internal/design-system/readme.mdnew file mode 100644index 00000000..6247009b--- /dev/null+++ b/docs-internal/design-system/readme.md@@ -0,0 +1,85 @@+# MachinaOS Design System (zeenie.ai)++Design system for **MachinaOS** — zeenie.ai's open-source, local-first AI workflow OS. "Your own AI assistant that does real work": users drag, drop, and connect AI agents to email, calendar, messages, phone, and 50+ services on a visual node canvas, then run or deploy workflows that keep running in the background. No code, no subscription; bring your own API keys or run models locally.++**Sources** (explore these to design even better against this product):+- GitHub: https://github.com/zeenie-ai/MachinaOS — primary source. Key design files: `client/src/index.css` (all color/role tokens), `client/src/themes/{base,light,dark}.css` (contract tokens: surfaces, type, motion), `client/tailwind.config.js`, `client/src/components/ui/` (TopToolbar, ComponentPalette, ActionButton, StatusBar, WorkflowSidebar…), `client/src/components/SquareNode.tsx` (canvas node anatomy), `client/src/assets/icons/index.ts` (icon resolver).+- Hosted docs: https://docs.zeenie.xyz/ · DeepWiki: https://deepwiki.com/zeenie-ai/MachinaOS+- Reference screenshot: `assets/product-canvas-screenshot.png` (real product — dark canvas, neon nodes, WhatsApp automation demo).++## Product surfaces+1. **MachinaOS app** (`localhost:3000`) — the core product. A three-zone desktop workspace: workflow sidebar (left), node canvas (center), component palette (right), top toolbar, bottom status bar, multi-tab console dock. Recreated in `ui_kits/machinaos/`.+2. **Marketing/docs** (zeenie.ai, docs.zeenie.xyz) — not in the repo; no UI kit was fabricated for them. Use the foundations here plus the README voice when designing those.++The app ships 12 visual themes (light, dark, Renaissance, Cyber, Edo, Steampunk…). This design system encodes the two canonical ones: **light** (default `:root`) and **dark** (`class="dark"` — the signature look used in every screenshot and demo).++---++## CONTENT FUNDAMENTALS++**Voice: confident, concrete, slightly conspiratorial about doing less work.** The README sells outcomes, not features: "doing the work you'd rather not", "Agent teams that delegate", "Code execution that's actually safe".++- **Second person, possessive.** "Your own AI assistant", "your data stays with you", "your machine". The product is *yours*; zeenie.ai rarely says "we".+- **Short declarative fragments for value props.** "No code required. No subscription. No usage limits."+- **Sentence case everywhere** — headings ("What You Can Build" is Title Case in README headers, but UI copy is sentence case: "No workflows yet", "Create your first workflow to get started"). Buttons are single words or short verb phrases: **Start**, **Stop**, **Save**, **New Workflow**, **Apply All**.+- **UI microcopy is terse and systemy.** Status bar reads like a shell prompt: `ONLINE | WF: Test | NODES: 12 | THEME: DARK | 14:02:33`. States: "Saved" / "Modified". Tooltips are full sentences: "Override all agent nodes in this workflow to use the selected model".+- **Numbers as proof.** "50+ other services", "11 LLM providers", "17 specialized agent types", "16 device services". Counts are surfaced in the UI too (badge with component count, "3 saved").+- **Emoji: not part of the brand voice.** Marketing copy uses none. In-product the only emoji are *functional glyphs* (⚙️ gear button, 📦 fallback icon) — never decorative, never in sentences.+- **Bold for product nouns** mid-sentence: "**AI Employee**", "**Stripe**", "**WhatsApp**".+- Example headline pairs: "Personal AI assistants that remember" / "Task automations that run themselves" — lowercase-after-first-word, noun phrase + verb clause.++## VISUAL FOUNDATIONS++**Core idea: a quiet professional workspace wearing neon jewelry.** Surfaces are muted (grey-blue paper in light; Solarized dark teal in dark); all personality comes from the Dracula accent palette applied as *soft tints* — 8–15% alpha fills, 30–60% alpha borders, full-strength text/icons.++- **Color:** Two-layer system. (1) Calm structural tokens: `--bg-app/panel/elevated`, `--fg-default/muted/faint`, `--border-default`. (2) Vibrant Dracula accents (green `#50fa7b`, purple `#bd93f9`, pink `#ff79c6`, cyan `#8be9fd`, orange `#ffb86c`, yellow `#f1fa8c`) assigned to *semantic roles*, never used raw as backgrounds: action intents (run/stop/save/config/secret/tools) and node roles (agent/model/tool/trigger/workflow). Solarized colors handle status (success `#859900` dark / `#059669` light, etc.).+- **The "soft tinted button" is THE signature component pattern:** `background: color-mix(accent 15%)`, `border: color-mix(accent 60%)`, text in the accent color, hover deepens fill to 25%. Never solid neon fills.+- **Type:** Geist everywhere (display = body), 14px base, 600 weight for headings/buttons, 500 for UI labels. Mono (JetBrains Mono / system) for metadata, counts, timestamps, status bar — mono is the "machine voice". Uppercase only in the status bar and micro-labels with 0.04em tracking.+- **Backgrounds:** flat colors, no gradients in light/dark chrome. The canvas is the darkest surface (dark) or white (light) with a fine dot grid at 30% opacity. Node cards get a *subtle* 135° gradient from accent-tint(14–18%) to card color — the only gradient in the system.+- **Borders:** 1px `--border-default` for chrome; 2px accent-tinted (60%) for nodes; 3px left edge accent for selected list cards. Dashed 2px borders mark empty/drop states.+- **Radii:** controls 8px (`--radius-lg`), chips/inner elements 4–6px, canvas nodes 10–12px, pills 999px. Cards: 8px.+- **Shadows:** near-silent on chrome (`0 2px 8px rgba(0,0,0,.06)`); dark mode goes deeper-not-glowier (`0 4px 12px rgba(0,0,0,.3)`). Glow is reserved for *meaning*: accent-colored `box-shadow` on nodes (18% of node color), three-layer pulse on executing nodes, 1px ring + 14px glow for success/error states.+- **Hover:** background tint shift (`--bg-hover` rgba 4–6%), cards translate -1–2px and gain shadow + 2px foreground ring at 15%. **Press:** translateY(1px). Disabled: opacity .5.+- **Motion:** fast and smooth — 90/180/320ms, ease `cubic-bezier(0.2,0.7,0.3,1)`. Loops only for live processes (executing pulse 1.4s, status pip blink). Respects `prefers-reduced-motion`.+- **Layout:** fixed chrome — 48px toolbar, 24px status bar, 280px sidebar, 320px palette; canvas fills the rest. Density is high; controls are 32px tall, text 13–14px.+- **Transparency/blur:** overlays use flat rgba scrims (45%/70%), no backdrop blur in light/dark.+- **Imagery:** real product screen-recordings/screenshots on dark theme — cool, saturated neon-on-teal. No stock photography, no illustration system; diagrams (`assets/diagrams/`) are flat SVG node-graphs in brand colors.++## ICONOGRAPHY++- **Lucide is the system icon set** (`lucide-react` in app; pinned CDN UMD in this kit). 1.5px–2px stroke, no fill, sized 12–20px, colored via `currentColor`. Common verbs: Play/Square (run/stop), Save, Settings, KeyRound (credentials), FolderOpen, FilePlus, Search, GripVertical (drag), PanelLeft/RightClose, ChevronDown, Zap (dev mode), Clock (normal mode).+- **Provider/brand logos** come from `@lobehub/icons` (OpenAI, Claude, Gemini, Groq, Ollama…) — colored brand marks, used at 16–28px on nodes and credential rows. In prototypes substitute colored dots or the service's official mark.+- **Node/service icons in production are backend-declared** (`asset:<key>` SVGs, `lucide:<Name>`, or plain emoji strings). Many shipped nodes use full-color emoji-style glyphs (🧠 memory, 🤖 agent robot, ⚙️ gear) — see `assets/product-canvas-screenshot.png`. The ⚙️ gear emoji is literally the node's settings button.+- **Fallback icon is 📦.** Status communicated by 6–10px colored dot "pips", not icons.+- **No icon font; no custom-drawn icon set.** Use Lucide via the `Icon` component (`components/icons/`), which renders from the lucide CDN bundle.++## Use of this system (quick rules)++1. Link `styles.css`; add `class="dark"` on `<html>` for the signature dark look (default for product UI; light for docs/print).+2. Color = role, not decoration. Pick the action intent or node role first, then use its `-soft`/`-border`/ink triplet.+3. Geist for words, mono for numbers/state. 14px base, sentence case, terse copy.+4. Compose from `components/` (namespace `window.MachinaOSDS` — see `check_design_system`/cards): ActionButton, Button, Badge, Input, Select, RadioGroup, Textarea, Switch, Checkbox, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble, Modal, Toast, Tooltip, Spinner, Progress, EmptyState, SquareNode, ComponentItem, WorkflowCard, StatusBar, ModeToggle, Icon.++## Index++- `styles.css` — global entry; imports everything in `tokens/`.+- `tokens/` — `colors.css`, `typography.css`, `spacing.css`, `motion.css`, `animations.css`, `fonts.css`, `base.css`.+- `guidelines/` — foundation specimen cards (Design System tab), plus `THEMES.md` (deep analysis of the app's 12-theme architecture) and `theme-matrix.html` (visual comparison of all 12 themes).+- `reference/themes/` — verbatim copies of all 13 theme CSS files from the repo (`base, light, dark + 10 skins`) for porting.+- `assets/` — `product-canvas-screenshot.png`, `diagrams/*.svg` (official README diagrams).+- `components/buttons/` — ActionButton (6 intents), Button (shadcn variants).+- `components/forms/` — Input, Select, RadioGroup, Textarea, Switch, Checkbox, Slider, ApiKeyInput.+- `components/display/` — Badge, Card, Tabs, Avatar, Kbd, LogLine, ChatBubble.+- `components/feedback/` — Modal, Toast, Tooltip, Spinner, Progress, EmptyState.+- `components/panels/` — PanelModal, SettingsSection (+SettingsRow), CollapsibleSection, DataCard — the workspace panel anatomy (Node Configuration, Settings, Credentials).+- `components/canvas/` — SquareNode, ComponentItem, WorkflowCard, StatusBar, ModeToggle.+- `components/icons/` — Icon (Lucide bridge).+- `ui_kits/machinaos/` — interactive recreation of the workflow canvas app, including the Settings panel (toolbar ⚙), API Credentials panel (🔑), and the three-column Node Configuration panel (gear on any node).+- `SKILL.md` — agent-skill entry point.++## Caveats+- **Fonts substituted:** Geist served from Google Fonts instead of the app's bundled `@fontsource-variable/geist` (same typeface, different delivery). Drop real `.woff2` files into `tokens/` + add `@font-face` if pixel-exact metrics matter.+- **No official logo found in the repo** (favicon is the Vite placeholder; README hero is a GitHub user-attachment). The wordmark card sets "MachinaOS" in Geist 600 as a stand-in — replace with the real mark when available.+- zeenie.ai marketing site isn't in the repo; no marketing UI kit was invented.+- The app's 10 themed skins are analyzed in `guidelines/THEMES.md` (token contract, per-theme matrix, porting recipe) with sources in `reference/themes/` — but only light/dark are encoded as live token scopes here. Ask to port a skin (e.g. Cyber) into `tokens/` if you want it usable.+- **Motion** is documented in `guidelines/ANIMATIONS.md` and encoded in `tokens/animations.css` (per-theme `--dur`/`--ease`/`--motion-style` scopes + signature keyframes for all 12 themes). Live demo: `guidelines/animations-all-themes.html`.diff --git a/docs-internal/design-system/reference/themes/atomic.css b/docs-internal/design-system/reference/themes/atomic.cssnew file mode 100644index 00000000..c361e822--- /dev/null+++ b/docs-internal/design-system/reference/themes/atomic.css@@ -0,0 +1,253 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..5d2269c8--- /dev/null+++ b/docs-internal/design-system/reference/themes/base.css@@ -0,0 +1,373 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..ae1a76ff--- /dev/null+++ b/docs-internal/design-system/reference/themes/cyber.css@@ -0,0 +1,890 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..499da327--- /dev/null+++ b/docs-internal/design-system/reference/themes/dark.css@@ -0,0 +1,70 @@+/* ============================================================================+ * 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: Solarized dark + Dracula accents (matches existing+ * dark theme in client/src/styles/theme.ts).+ * ============================================================================ */++.dark,+:root[data-theme="dark"] {+ /* Surfaces — Solarized dark base + Dracula highlights */+ --bg-app: #002b36; /* base03 */+ --bg-panel: #073642; /* base02 */+ --bg-canvas: #002b36;+ --bg-elevated: #0d1f2d;+ --bg-input: #073642;+ --bg-hover: rgba(248, 248, 242, 0.06);+ --bg-active: rgba(189, 147, 249, 0.18);+ --bg-overlay: rgba(0, 0, 0, 0.7);++ /* Borders */+ --border-default: #586e75; /* base01 */+ --border-strong: #93a1a1;+ --border-focus: #268bd2; /* solarized blue */+ --ornament-frame: none;++ /* Foreground — Dracula light foreground for readability over Solarized dark */+ --fg-default: #f8f8f2;+ --fg-muted: #6272a4; /* dracula comment */+ --fg-faint: #586e75;+ --fg-on-accent: #002b36;+ --fg-on-success: #002b36;+ --fg-on-danger: #f8f8f2;+ --fg-on-warning: #002b36;++ /* 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: #073642;+ --scrollbar-thumb: #586e75;+}diff --git a/docs-internal/design-system/reference/themes/edo.css b/docs-internal/design-system/reference/themes/edo.cssnew file mode 100644index 00000000..e17e83c1--- /dev/null+++ b/docs-internal/design-system/reference/themes/edo.css@@ -0,0 +1,246 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..2b5e0b62--- /dev/null+++ b/docs-internal/design-system/reference/themes/greek.css@@ -0,0 +1,293 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..74f09eb0--- /dev/null+++ b/docs-internal/design-system/reference/themes/light.css@@ -0,0 +1,78 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..92daad75--- /dev/null+++ b/docs-internal/design-system/reference/themes/plague.css@@ -0,0 +1,253 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..c095eb3d--- /dev/null+++ b/docs-internal/design-system/reference/themes/renaissance.css@@ -0,0 +1,727 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..5d9e335d--- /dev/null+++ b/docs-internal/design-system/reference/themes/rot.css@@ -0,0 +1,249 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..ce941df0--- /dev/null+++ b/docs-internal/design-system/reference/themes/steampunk.css@@ -0,0 +1,272 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..ee1883f9--- /dev/null+++ b/docs-internal/design-system/reference/themes/surveillance.css@@ -0,0 +1,289 @@+/* ============================================================================+ * 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.cssnew file mode 100644index 00000000..c53ab799--- /dev/null+++ b/docs-internal/design-system/reference/themes/wasteland.css@@ -0,0 +1,250 @@+/* ============================================================================+ * 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/design-system/styles.css b/docs-internal/design-system/styles.cssnew file mode 100644index 00000000..e68fff6e--- /dev/null+++ b/docs-internal/design-system/styles.css@@ -0,0 +1,7 @@+@import url("tokens/fonts.css");+@import url("tokens/colors.css");+@import url("tokens/typography.css");+@import url("tokens/spacing.css");+@import url("tokens/base.css");+@import url("tokens/motion.css");+@import url("tokens/animations.css");diff --git a/docs-internal/design-system/tokens/animations.css b/docs-internal/design-system/tokens/animations.cssnew file mode 100644index 00000000..5793c79a--- /dev/null+++ b/docs-internal/design-system/tokens/animations.css@@ -0,0 +1,214 @@+/* ============================================================================+ * MachinaOS — animation system (all 12 themes)+ *+ * Source: client/src/themes/base.css + each theme file's Motion block and+ * decorative keyframes. This file declares:+ * 1. Per-theme motion scopes — dur/ease/motion-style by [data-theme].+ * 2. The signature keyframes every theme draws from.+ * 3. Reusable helper classes (pulse, blink, ambient overlays).+ *+ * Motion personality lives in the EASING FUNCTION, not just duration:+ * smooth (light/dark/greek) · organic (renaissance/edo) ·+ * mechanical (steampunk) · bouncy 1.6 overshoot (atomic) ·+ * glitch steps(4) (cyber) · jittery (wasteland) · drift 680ms (rot) ·+ * stiff (plague) · scanline linear (surveillance).+ *+ * The executing-node pulse uses --node-pulse-color (a theme-chosen high+ * contrast accent), NEVER the node's own role color, so the glow stays+ * visible on any canvas.+ * ========================================================================== */++/* ---- Base defaults (light / dark inherit these) ----+ * Durations + eases are declared in tokens/motion.css; here we add only the+ * motion-style label and the executing-pulse selectors. */+:root {+ --motion-style: smooth; /* @kind other */+ --pulse-keyframe: node-pulse; /* @kind other */+ --pulse-duration: 1.4s; /* @kind other */+ --pulse-timing: ease-in-out; /* @kind other */+}++/* ---- Per-theme motion contracts ---- */+[data-theme="renaissance"] {+ --dur-fast: 140ms; /* @kind other */ --dur-default: 280ms; /* @kind other */ --dur-slow: 520ms; /* @kind other */+ --ease-default: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.7, -0.1, 0.3, 1.2); /* @kind other */+ --motion-style: organic; /* @kind other */+ --pulse-keyframe: ren-pulse-exec; /* @kind other */ --pulse-duration: 2s; /* @kind other */ --pulse-timing: ease-in-out; /* @kind other */+}+[data-theme="greek"] {+ --dur-fast: 120ms; /* @kind other */ --dur-default: 240ms; /* @kind other */ --dur-slow: 460ms; /* @kind other */+ --ease-default: cubic-bezier(0.3, 0.7, 0.4, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.6, -0.05, 0.3, 1.4); /* @kind other */+ --motion-style: smooth; /* @kind other */+}+[data-theme="edo"] {+ --dur-fast: 90ms; /* @kind other */ --dur-default: 220ms; /* @kind other */ --dur-slow: 520ms; /* @kind other */+ --ease-default: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.7, -0.1, 0.3, 1.2); /* @kind other */+ --motion-style: organic; /* @kind other */+}+[data-theme="steampunk"] {+ --dur-fast: 110ms; /* @kind other */ --dur-default: 240ms; /* @kind other */ --dur-slow: 480ms; /* @kind other */+ --ease-default: cubic-bezier(0.5, 0, 0.4, 1.1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.7, -0.1, 0.3, 1.2); /* @kind other */+ --motion-style: mechanical; /* @kind other */+}+[data-theme="atomic"] {+ --dur-fast: 100ms; /* @kind other */ --dur-default: 200ms; /* @kind other */ --dur-slow: 380ms; /* @kind other */+ --ease-default: cubic-bezier(0.34, 1.6, 0.5, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.34, 1.6, 0.5, 1); /* @kind other */+ --motion-style: bouncy; /* @kind other */+}+[data-theme="cyber"] {+ --dur-fast: 60ms; /* @kind other */ --dur-default: 120ms; /* @kind other */ --dur-slow: 240ms; /* @kind other */+ --ease-default: steps(4, end); /* @kind other */+ --ease-emphasis: steps(8, end); /* @kind other */+ --motion-style: glitch; /* @kind other */+ --pulse-keyframe: cyber-pulse-exec; /* @kind other */ --pulse-duration: 1.6s; /* @kind other */ --pulse-timing: steps(2); /* @kind other */+}+[data-theme="wasteland"] {+ --dur-fast: 60ms; /* @kind other */ --dur-default: 180ms; /* @kind other */ --dur-slow: 320ms; /* @kind other */+ --ease-default: cubic-bezier(0.6, 0, 0.4, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.6, 0, 0.4, 1); /* @kind other */+ --motion-style: jittery; /* @kind other */+}+[data-theme="rot"] {+ --dur-fast: 140ms; /* @kind other */ --dur-default: 320ms; /* @kind other */ --dur-slow: 680ms; /* @kind other */+ --ease-default: cubic-bezier(0.4, 0, 0.6, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.4, 0, 0.6, 1); /* @kind other */+ --motion-style: drift; /* @kind other */+ --pulse-duration: 2.2s; /* @kind other */+}+[data-theme="plague"] {+ --dur-fast: 100ms; /* @kind other */ --dur-default: 220ms; /* @kind other */ --dur-slow: 460ms; /* @kind other */+ --ease-default: cubic-bezier(0.4, 0, 0.6, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.4, 0, 0.6, 1); /* @kind other */+ --motion-style: stiff; /* @kind other */+}+[data-theme="surveillance"] {+ --dur-fast: 60ms; /* @kind other */ --dur-default: 140ms; /* @kind other */ --dur-slow: 240ms; /* @kind other */+ --ease-default: linear; /* @kind other */+ --ease-emphasis: linear; /* @kind other */+ --motion-style: scanline; /* @kind other */+ --pulse-keyframe: surv-pulse-exec; /* @kind other */ --pulse-duration: 1s; /* @kind other */ --pulse-timing: steps(2); /* @kind other */+}++/* ============================================================================+ * Signature keyframes+ * ========================================================================== */++/* Default 3-layer executing pulse (light/dark/greek/edo/steampunk/atomic/+ * wasteland/rot/plague). Glow scales out and back. */+@keyframes node-pulse {+ 0%, 100% {+ box-shadow:+ 0 0 0 0 color-mix(in srgb, var(--node-pulse-color, var(--info)) 80%, transparent),+ 0 0 14px 2px color-mix(in srgb, var(--node-pulse-color, var(--info)) 50%, transparent),+ 0 0 28px 4px color-mix(in srgb, var(--node-pulse-color, var(--info)) 25%, transparent);+ }+ 50% {+ box-shadow:+ 0 0 0 12px color-mix(in srgb, var(--node-pulse-color, var(--info)) 45%, transparent),+ 0 0 32px 8px color-mix(in srgb, var(--node-pulse-color, var(--info)) 65%, transparent),+ 0 0 56px 16px color-mix(in srgb, var(--node-pulse-color, var(--info)) 30%, transparent);+ }+}++/* Renaissance — candle-flame pulse (smooth, never fully dark). */+@keyframes ren-pulse-exec {+ 0%, 100% { box-shadow: 0 0 0 1px var(--node-pulse-color, #2548c8), 0 0 10px 1px color-mix(in srgb, var(--node-pulse-color, #2548c8) 40%, transparent); }+ 50% { box-shadow: 0 0 0 2px var(--node-pulse-color, #2548c8), 0 0 22px 5px color-mix(in srgb, var(--node-pulse-color, #2548c8) 60%, transparent); }+}+@keyframes ren-flicker { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.8; } }++/* Cyber — hard digital strobe (steps), CRT flicker + rolling scanline. */+@keyframes cyber-pulse-exec {+ 0%, 49% { box-shadow: 0 0 0 1px var(--node-pulse-color, #1dd9e5), 0 0 10px var(--node-pulse-color, #1dd9e5); }+ 50%, 100% { box-shadow: 0 0 0 1px var(--node-pulse-color, #1dd9e5), 0 0 26px var(--node-pulse-color, #1dd9e5), 0 0 44px color-mix(in srgb, var(--node-pulse-color, #1dd9e5) 50%, transparent); }+}+@keyframes cyber-flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.88; } 94% { opacity: 1; } 96% { opacity: 0.92; } }+@keyframes cyber-roll { 0% { transform: translateY(-100%); } 100% { transform: translateY(900%); } }+@keyframes cyber-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.4; } }+@keyframes cyber-glitch {+ 0%, 100% { transform: translateX(0); }+ 20% { transform: translateX(-2px); }+ 40% { transform: translateX(2px); }+ 60% { transform: translateX(-1px); }+ 80% { transform: translateX(1px); }+}++/* Surveillance — REC-red glow strobe + status LED blink. */+@keyframes surv-pulse-exec {+ 0%, 49% { box-shadow: 0 0 0 1px var(--node-pulse-color, #e82626), 0 0 6px color-mix(in srgb, var(--node-pulse-color, #e82626) 40%, transparent); }+ 50%, 100% { box-shadow: 0 0 0 1px var(--node-pulse-color, #e82626), 0 0 18px color-mix(in srgb, var(--node-pulse-color, #e82626) 70%, transparent); }+}+@keyframes surv-blink { 50% { opacity: 0.2; } }++/* ---- Trigger nodes: "listening / armed" state ----+ * Triggers (whatsappReceive, cronScheduler, webhookTrigger, start) glow+ * CONTINUOUSLY while waiting for events — distinct from the one-shot+ * execution pulse. The breathing is gentler and slower (an idle-but-armed+ * heartbeat) and uses --node-pulse-color (theme-contrast), so it reads on+ * any background. Pair with the lightning badge. */+@keyframes trigger-listening {+ 0%, 100% {+ box-shadow:+ 0 0 0 0 color-mix(in srgb, var(--node-pulse-color, #ff79c6) 0%, transparent),+ 0 0 9px 1px color-mix(in srgb, var(--node-pulse-color, #ff79c6) 38%, transparent);+ }+ 50% {+ box-shadow:+ 0 0 0 6px color-mix(in srgb, var(--node-pulse-color, #ff79c6) 20%, transparent),+ 0 0 20px 4px color-mix(in srgb, var(--node-pulse-color, #ff79c6) 55%, transparent);+ }+}+/* When a trigger fires — a single bright flash before handing off. */+@keyframes trigger-fire {+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--node-pulse-color, #ff79c6) 90%, transparent), 0 0 28px 8px color-mix(in srgb, var(--node-pulse-color, #ff79c6) 70%, transparent); }+ 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--node-pulse-color, #ff79c6) 0%, transparent), 0 0 28px 8px color-mix(in srgb, var(--node-pulse-color, #ff79c6) 0%, transparent); }+}+/* Lightning badge soft flash while armed. */+@keyframes trigger-bolt { 0%, 100% { opacity: 0.6; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }++/* Status pip blink (generic, smooth). */+@keyframes machina-pip-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }++/* Spinner. */+@keyframes machina-spin { to { transform: rotate(360deg); } }++/* ============================================================================+ * Helper classes+ * ========================================================================== */++/* Apply to an executing node; reads the theme's chosen keyframe + timing. */+.machina-pulse {+ animation: var(--pulse-keyframe, node-pulse) var(--pulse-duration, 1.4s) var(--pulse-timing, ease-in-out) infinite;+}++/* Trigger node waiting for events — continuous armed heartbeat. Slower than+ * the execution pulse so the two read as distinct states. */+.machina-trigger-armed {+ animation: trigger-listening 2.4s ease-in-out infinite;+}+/* One-shot flash the moment a trigger fires (add, then remove on animationend). */+.machina-trigger-fire {+ animation: trigger-fire 0.6s var(--ease-default, ease-out) 1;+}+/* Lightning badge + listening pip pulses. */+.machina-bolt { animation: trigger-bolt 1.8s ease-in-out infinite; }+.machina-pip-pulse { animation: machina-pip-blink 1.4s ease-in-out infinite; }++/* Ambient overlays — add once at the app frame for cyber / surveillance. */+.machina-scanline::after {+ content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 50;+ height: 12%;+ background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--node-pulse-color, #1dd9e5) 18%, transparent), transparent);+ animation: cyber-roll 8s linear infinite;+}+.machina-crt { animation: cyber-flicker 5s linear infinite; }++@media (prefers-reduced-motion: reduce) {+ .machina-pulse, .machina-crt, .machina-scanline::after,+ .machina-trigger-armed, .machina-trigger-fire, .machina-bolt, .machina-pip-pulse { animation: none !important; }+}diff --git a/docs-internal/design-system/tokens/base.css b/docs-internal/design-system/tokens/base.cssnew file mode 100644index 00000000..d11f1297--- /dev/null+++ b/docs-internal/design-system/tokens/base.css@@ -0,0 +1,23 @@+/* ============================================================================+ * MachinaOS — minimal base styles+ * Body defaults + scrollbars. Everything else is component-level.+ * ========================================================================== */++* { box-sizing: border-box; }++body {+ margin: 0;+ background: var(--bg-app);+ color: var(--fg-default);+ font-family: var(--font-body);+ font-size: var(--text-base);+ line-height: var(--leading-normal);+ font-feature-settings: "rlig" 1, "calt" 1;+}++::-webkit-scrollbar { width: 8px; height: 8px; }+::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 4px; }+::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }+::-webkit-scrollbar-thumb:hover { background: var(--fg-faint); }++html { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }diff --git a/docs-internal/design-system/tokens/colors.css b/docs-internal/design-system/tokens/colors.cssnew file mode 100644index 00000000..b69d533b--- /dev/null+++ b/docs-internal/design-system/tokens/colors.css@@ -0,0 +1,178 @@+/* ============================================================================+ * MachinaOS — color tokens+ * Source: zeenie-ai/MachinaOS client/src/index.css + client/src/themes/{light,dark}.css+ * Light = grey-blue "paper" workspace. Dark = Solarized dark surfaces with+ * Dracula vibrant accents (the brand's signature look).+ * Toggle dark mode with class="dark" or data-theme="dark" on <html>.+ * ========================================================================== */++:root {+ /* ---- Surfaces (light) ---- */+ --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);+ --surface-card: #ffffff;++ /* ---- Foreground ---- */+ --fg-default: #1a1d21;+ --fg-muted: #4b5563;+ --fg-faint: #9ca3af;+ --fg-on-accent: #ffffff;+ --text-body: var(--fg-default);+ --text-muted: var(--fg-muted);++ /* ---- Borders / focus ---- */+ --border-default: #d1d5db;+ --border-strong: #9ca3af;+ --border-focus: #3b82f6;++ /* ---- Core brand ---- */+ --primary: #2563eb;+ --primary-foreground: #ffffff;+ --accent: #7c3aed;+ --accent-foreground: #ffffff;++ /* ---- Semantic status ---- */+ --destructive: #dc2626;+ --destructive-foreground: #ffffff;+ --success: #059669;+ --warning: #d97706;+ --info: #0891b2;++ /* ---- Dracula vibrant accents (identical in light + dark) ---- */+ --dracula-green: #50fa7b;+ --dracula-purple: #bd93f9;+ --dracula-pink: #ff79c6;+ --dracula-cyan: #8be9fd;+ --dracula-red: #ff5555;+ --dracula-orange: #ffb86c;+ --dracula-yellow: #f1fa8c;+ --dracula-selection: #44475a;+ --dracula-current-line: #383a4a;+ --dracula-comment: #6272a4;++ /* ---- Action intents (toolbar "soft tinted" buttons) ----+ * run=deploy/run · stop=destructive · save=commit/panels ·+ * config=settings · secret=credentials · tools=palette/creative */+ --action-run: var(--dracula-green);+ --action-run-soft: color-mix(in srgb, var(--dracula-green) 15%, transparent);+ --action-run-hover: color-mix(in srgb, var(--dracula-green) 25%, transparent);+ --action-run-border: color-mix(in srgb, var(--dracula-green) 60%, transparent);++ --action-stop: var(--dracula-pink);+ --action-stop-soft: color-mix(in srgb, var(--dracula-pink) 15%, transparent);+ --action-stop-hover: color-mix(in srgb, var(--dracula-pink) 25%, transparent);+ --action-stop-border: color-mix(in srgb, var(--dracula-pink) 60%, transparent);++ --action-save: var(--dracula-cyan);+ --action-save-soft: color-mix(in srgb, var(--dracula-cyan) 15%, transparent);+ --action-save-hover: color-mix(in srgb, var(--dracula-cyan) 25%, transparent);+ --action-save-border: color-mix(in srgb, var(--dracula-cyan) 60%, transparent);++ --action-config: var(--dracula-orange);+ --action-config-soft: color-mix(in srgb, var(--dracula-orange) 15%, transparent);+ --action-config-hover: color-mix(in srgb, var(--dracula-orange) 25%, transparent);+ --action-config-border: color-mix(in srgb, var(--dracula-orange) 60%, transparent);++ --action-secret: var(--dracula-yellow);+ --action-secret-soft: color-mix(in srgb, var(--dracula-yellow) 15%, transparent);+ --action-secret-hover: color-mix(in srgb, var(--dracula-yellow) 25%, transparent);+ --action-secret-border: color-mix(in srgb, var(--dracula-yellow) 60%, transparent);++ --action-tools: var(--dracula-purple);+ --action-tools-soft: color-mix(in srgb, var(--dracula-purple) 15%, transparent);+ --action-tools-hover: color-mix(in srgb, var(--dracula-purple) 25%, transparent);+ --action-tools-border: color-mix(in srgb, var(--dracula-purple) 60%, transparent);++ /* In light mode, the vivid Dracula hues need darker text for contrast on+ * soft tints. These resolve to the readable "ink" version per intent. */+ --action-run-ink: #15803d;+ --action-stop-ink: #be185d;+ --action-save-ink: #0e7490;+ --action-config-ink: #c2410c;+ --action-secret-ink: #a16207;+ --action-tools-ink: #7c3aed;++ /* ---- Node role colors (canvas) ----+ * agent=purple · model=cyan · skill/tool=green · trigger=pink · workflow=orange */+ --node-agent: var(--dracula-purple);+ --node-agent-soft: color-mix(in srgb, var(--dracula-purple) 8%, transparent);+ --node-agent-border: color-mix(in srgb, var(--dracula-purple) 30%, transparent);+ --node-model: var(--dracula-cyan);+ --node-model-soft: color-mix(in srgb, var(--dracula-cyan) 8%, transparent);+ --node-model-border: color-mix(in srgb, var(--dracula-cyan) 30%, transparent);+ --node-tool: var(--dracula-green);+ --node-tool-soft: color-mix(in srgb, var(--dracula-green) 8%, transparent);+ --node-tool-border: color-mix(in srgb, var(--dracula-green) 30%, transparent);+ --node-trigger: var(--dracula-pink);+ --node-trigger-soft: color-mix(in srgb, var(--dracula-pink) 8%, transparent);+ --node-trigger-border: color-mix(in srgb, var(--dracula-pink) 30%, transparent);+ --node-workflow: var(--dracula-orange);+ --node-workflow-soft: color-mix(in srgb, var(--dracula-orange) 8%, transparent);+ --node-workflow-border: color-mix(in srgb, var(--dracula-orange) 30%, transparent);++ /* Node execution pulse glow */+ --node-pulse-color: var(--info);++ /* ---- Scrollbar ---- */+ --scrollbar-track: #eef1f5;+ --scrollbar-thumb: #d1d5db;++ color-scheme: light;+}++/* ============================================================================+ * Dark theme — Solarized dark surfaces + Dracula foreground/accents.+ * This is MachinaOS's signature look (canvas screenshots, demo videos).+ * ========================================================================== */+.dark,+[data-theme="dark"] {+ --bg-app: #002b36; /* solarized base03 */+ --bg-panel: #073642; /* solarized base02 */+ --bg-canvas: #002b36;+ --bg-elevated: #0d1f2d;+ --bg-input: #073642;+ --bg-hover: rgba(248, 248, 242, 0.06);+ --bg-active: rgba(189, 147, 249, 0.18);+ --bg-overlay: rgba(0, 0, 0, 0.7);+ --surface-card: #073642;++ --fg-default: #f8f8f2; /* dracula foreground */+ --fg-muted: #94a8d6; /* lightened dracula comment for contrast */+ --fg-faint: #6272a4;+ --fg-on-accent: #002b36;++ --border-default: #586e75; /* solarized base01 */+ --border-strong: #93a1a1;+ --border-focus: #268bd2;++ --primary: #268bd2; /* solarized blue */+ --primary-foreground: #f8f8f2;+ --accent: #8be9fd; /* dracula cyan */+ --accent-foreground: #002b36;++ --destructive: #dc322f; /* solarized red */+ --destructive-foreground: #f8f8f2;+ --success: #859900; /* solarized green */+ --warning: #b58900;+ --info: #2aa198;++ /* In dark mode, the Dracula hues are bright enough to be the text color+ * directly — ink aliases resolve to the raw accents. */+ --action-run-ink: var(--dracula-green);+ --action-stop-ink: var(--dracula-pink);+ --action-save-ink: var(--dracula-cyan);+ --action-config-ink: var(--dracula-orange);+ --action-secret-ink: var(--dracula-yellow);+ --action-tools-ink: var(--dracula-purple);++ --scrollbar-track: #073642;+ --scrollbar-thumb: #586e75;++ color-scheme: dark;+}diff --git a/docs-internal/design-system/tokens/fonts.css b/docs-internal/design-system/tokens/fonts.cssnew file mode 100644index 00000000..ef5cd13e--- /dev/null+++ b/docs-internal/design-system/tokens/fonts.css@@ -0,0 +1,10 @@+/* ============================================================================+ * MachinaOS — webfonts+ *+ * SUBSTITUTION NOTE: the app bundles Geist via @fontsource-variable/geist+ * (npm). The binary isn't in the repo, so we load the same typeface from+ * Google Fonts. JetBrains Mono is loaded by the app from Google Fonts+ * directly (client/index.html), so this matches production.+ * ========================================================================== */++@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');diff --git a/docs-internal/design-system/tokens/motion.css b/docs-internal/design-system/tokens/motion.cssnew file mode 100644index 00000000..b18e0ea8--- /dev/null+++ b/docs-internal/design-system/tokens/motion.css@@ -0,0 +1,18 @@+/* ============================================================================+ * MachinaOS — motion tokens+ * Source: client/src/themes/base.css. Motion is quick and smooth: short+ * durations, one custom ease. Canvas nodes lift -1px on hover; executing+ * nodes pulse a three-layer glow.+ * ========================================================================== */++:root {+ --dur-fast: 90ms; /* @kind other */+ --dur-default: 180ms; /* @kind other */+ --dur-slow: 320ms; /* @kind other */+ --ease-default: cubic-bezier(0.2, 0.7, 0.3, 1); /* @kind other */+ --ease-emphasis: cubic-bezier(0.6, -0.05, 0.3, 1.4); /* @kind other */+}++/* The executing-node pulse, per-theme motion contracts, signature keyframes+ * (node-pulse, cyber-*, surv-*, ren-*), and the `.machina-pulse` helper live+ * in tokens/animations.css. See guidelines/ANIMATIONS.md for the full system. */diff --git a/docs-internal/design-system/tokens/spacing.css b/docs-internal/design-system/tokens/spacing.cssnew file mode 100644index 00000000..30b603a1--- /dev/null+++ b/docs-internal/design-system/tokens/spacing.css@@ -0,0 +1,45 @@+/* ============================================================================+ * MachinaOS — spacing, radius, shadow tokens+ * Source: client/src/themes/base.css (space scale) + light.css (radii)+ * ========================================================================== */++: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;++ /* Radii — shadcn-derived. Buttons/inputs 8px, chips 6px, nodes 10–12px */+ --radius-sm: 4px;+ --radius-md: 6px;+ --radius-lg: 8px;+ --radius-xl: 12px;+ --radius-node: 10px; /* square canvas nodes */+ --radius-pill: 999px;++ /* Fixed chrome heights */+ --h-toolbar: 48px; /* top toolbar */+ --h-statusbar: 24px; /* bottom status line */+ --h-control: 32px; /* buttons, inputs, selects */+ --w-sidebar: 280px; /* workflow sidebar */+ --w-palette: 320px; /* component palette */++ /* Shadows — quiet, layered. Cards barely lift; glows come from accents. */+ --shadow-card: 0 2px 8px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);+ --shadow-card-hover: 0 4px 14px rgb(0 0 0 / 0.10);+ --shadow-modal: 0 12px 40px rgb(0 0 0 / 0.18);+ /* Accent glow used by canvas nodes — pair with a node color:+ box-shadow: 0 2px 8px color-mix(in srgb, <color> 18%, transparent) */+}++.dark,+[data-theme="dark"] {+ --shadow-card: 0 4px 12px rgb(0 0 0 / 0.3);+ --shadow-card-hover: 0 6px 18px rgb(0 0 0 / 0.4);+ --shadow-modal: 0 16px 48px rgb(0 0 0 / 0.55);+}diff --git a/docs-internal/design-system/tokens/typography.css b/docs-internal/design-system/tokens/typography.cssnew file mode 100644index 00000000..a4011c38--- /dev/null+++ b/docs-internal/design-system/tokens/typography.css@@ -0,0 +1,42 @@+/* ============================================================================+ * MachinaOS — typography tokens+ * App font: Geist (loaded via @fontsource-variable/geist in the real app;+ * here served from Google Fonts — see tokens/fonts.css).+ * Mono: JetBrains Mono (Cyber theme / code) falling back to system mono.+ * Base UI size is 14px — MachinaOS is a dense desktop tool.+ * ========================================================================== */++:root {+ --font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;+ --font-display: var(--font-sans);+ --font-body: var(--font-sans);+ --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, monospace;++ /* Type scale (desktop app density — 14px base) */+ --type-scale-base: 14px;+ --text-2xs: 11px; /* status bar, fine print */+ --text-xs: 12px; /* metadata, badges, section labels */+ --text-sm: 13px; /* toolbar buttons, secondary UI */+ --text-base: 14px; /* body, inputs, list items */+ --text-md: 16px; /* panel headings */+ --text-lg: 18px; /* modal titles */+ --text-xl: 24px; /* page / empty-state headings */+ --text-2xl: 32px; /* marketing headlines */+ --text-3xl: 44px; /* hero headlines */++ /* Weights — Geist variable: 400 body, 500 medium UI, 600 semibold headings/buttons */+ --weight-regular: 400;+ --weight-medium: 500;+ --weight-semibold: 600;+ --weight-bold: 700;++ /* Tracking + case — light/dark themes use none; kept as tokens because+ * the product's themed skins flip these (uppercase + wide tracking). */+ --type-uppercase: none;+ --type-tracking-display: 0;+ --tracking-label: 0.04em; /* uppercase micro-labels, status bar */++ --leading-tight: 1.2;+ --leading-normal: 1.5;+ --leading-relaxed: 1.65;+}diff --git a/docs-internal/design-system/ui_kits/machinaos/App.jsx b/docs-internal/design-system/ui_kits/machinaos/App.jsxnew file mode 100644index 00000000..12dafb88--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/App.jsx@@ -0,0 +1,94 @@+// MachinaOS UI kit — app shell wiring all panels together.+const DS_APP = window.MachinaOSDesignSystem_2559cf;+const KIT = window.MachinaKit;++const WORKFLOWS = [+ { id: 'wa', name: 'WhatsApp Assistant', nodeCount: 6, modified: 'Jun 11, 09:14' },+ { id: 'digest', name: 'Daily Email Digest', nodeCount: 5, modified: 'Jun 9, 18:30' },+ { id: 'support', name: 'Customer Support Bot', nodeCount: 9, modified: 'Jun 5, 11:02' },+];++function App() {+ const { StatusBar } = DS_APP;+ const { Toolbar, SidebarPanel, PalettePanel, CanvasView, ConsoleDock, SettingsModal, NodeConfigModal, CredentialsModal } = KIT;++ const [dark, setDark] = React.useState(true);+ const [sidebarVisible, setSidebarVisible] = React.useState(true);+ const [paletteVisible, setPaletteVisible] = React.useState(true);+ const [consoleOpen, setConsoleOpen] = React.useState(true);+ const [mode, setMode] = React.useState('normal');+ const [running, setRunning] = React.useState(false);+ const [saved, setSaved] = React.useState(true);+ const [currentWf, setCurrentWf] = React.useState('wa');+ const [selectedId, setSelectedId] = React.useState(null);+ const [extraNodes, setExtraNodes] = React.useState([]);+ const [settingsOpen, setSettingsOpen] = React.useState(false);+ const [credsOpen, setCredsOpen] = React.useState(false);+ const [configNode, setConfigNode] = React.useState(null);++ React.useEffect(() => {+ document.documentElement.classList.toggle('dark', dark);+ }, [dark]);++ const wf = WORKFLOWS.find((w) => w.id === currentWf);++ const handleDropNode = (item, section) => {+ const id = 'extra-' + Date.now();+ setExtraNodes((ns) => [+ ...ns,+ {+ id,+ icon: item.icon,+ label: item.name,+ color: section.color,+ x: 620 + ((ns.length * 60) % 180),+ y: 60 + ((ns.length * 50) % 120),+ },+ ]);+ setSaved(false);+ setSelectedId(id);+ };++ return (+ <div style={{ display: 'flex', flexDirection: 'column', height: '100vh', overflow: 'hidden', background: 'var(--bg-app)' }}>+ <Toolbar+ workflowName={wf ? wf.name : 'Untitled Workflow'}+ sidebarVisible={sidebarVisible}+ paletteVisible={paletteVisible}+ mode={mode}+ dark={dark}+ running={running}+ saved={saved}+ onToggleSidebar={() => setSidebarVisible((v) => !v)}+ onTogglePalette={() => setPaletteVisible((v) => !v)}+ onModeChange={setMode}+ onToggleTheme={() => setDark((d) => !d)}+ onRun={() => setRunning((r) => !r)}+ onSave={() => setSaved(true)}+ onSettings={() => setSettingsOpen(true)}+ onCredentials={() => setCredsOpen(true)}+ />+ <div style={{ display: 'flex', flex: 1, minHeight: 0 }}>+ {sidebarVisible ? (+ <SidebarPanel workflows={WORKFLOWS} currentId={currentWf} onSelect={(id) => { setCurrentWf(id); setSelectedId(null); }} />+ ) : null}+ <div style={{ display: 'flex', flexDirection: 'column', flex: 1, minWidth: 0 }}>+ <CanvasView running={running} extraNodes={extraNodes} selectedId={selectedId} onSelect={(id) => setSelectedId((s) => (s === id ? null : id))} onConfigure={(n) => setConfigNode(n)} />+ <ConsoleDock open={consoleOpen} onToggle={() => setConsoleOpen((o) => !o)} />+ </div>+ {paletteVisible ? <PalettePanel mode={mode} onDropNode={handleDropNode} /> : null}+ </div>+ <StatusBar+ connection="online"+ workflowName={wf ? wf.name : '—'}+ nodeCount={6 + extraNodes.length}+ themeName={dark ? 'DARK' : 'LIGHT'}+ />+ <SettingsModal open={settingsOpen} onClose={() => setSettingsOpen(false)} />+ <CredentialsModal open={credsOpen} onClose={() => setCredsOpen(false)} />+ <NodeConfigModal node={configNode} onClose={() => setConfigNode(null)} />+ </div>+ );+}++ReactDOM.createRoot(document.getElementById('root')).render(<App />);diff --git a/docs-internal/design-system/ui_kits/machinaos/CanvasView.jsx b/docs-internal/design-system/ui_kits/machinaos/CanvasView.jsxnew file mode 100644index 00000000..c05be70a--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/CanvasView.jsx@@ -0,0 +1,153 @@+// MachinaOS UI kit — node canvas: dot grid, dashed edges, square nodes,+// rectangular AI Agent node. Click nodes to select; Start runs the flow.+const DS_CV = window.MachinaOSDesignSystem_2559cf;++// Rectangular agent node (the larger card-style node from the product).+function AgentNode({ x, y, status, selected, executing, onClick, onGearClick }) {+ const color = 'var(--node-agent)';+ return (+ <div+ onClick={onClick}+ className={executing ? 'machina-pulse' : undefined}+ style={{+ '--node-pulse-color': color,+ position: 'absolute', left: x, top: y, width: 190,+ borderRadius: 12,+ border: `2px solid ${selected ? color : `color-mix(in srgb, ${color} 60%, transparent)`}`,+ background: `linear-gradient(135deg, color-mix(in srgb, ${color} 14%, var(--surface-card)) 0%, var(--surface-card) 100%)`,+ boxShadow: selected+ ? `0 0 0 1px ${color}, 0 4px 14px color-mix(in srgb, ${color} 32%, transparent)`+ : `0 2px 8px color-mix(in srgb, ${color} 18%, transparent)`,+ cursor: 'pointer', userSelect: 'none', zIndex: 10,+ padding: '14px 12px 10px', textAlign: 'center',+ transition: 'border-color 150ms ease, box-shadow 150ms ease',+ }}+ >+ <span style={{ position: 'absolute', top: -4, left: -4, width: 10, height: 10, borderRadius: '50%', zIndex: 30, background: status === 'success' ? 'var(--success)' : status === 'executing' ? color : 'var(--fg-faint)', boxShadow: status !== 'idle' ? `0 0 6px color-mix(in srgb, ${status === 'executing' ? color : 'var(--success)'} 60%, transparent)` : 'none' }}></span>+ <button type="button" title="Edit parameters" onClick={(e) => { e.stopPropagation(); onGearClick && onGearClick(); }} style={{ position: 'absolute', top: -8, right: -8, width: 20, height: 20, borderRadius: '50%', background: 'var(--surface-card)', border: '1px solid var(--border-default)', fontSize: 10, cursor: 'pointer', zIndex: 30, padding: 0 }}>⚙️</button>+ <div style={{ fontSize: 26, lineHeight: 1 }}>🤖</div>+ <div style={{ fontSize: 15, fontWeight: 600, color: 'var(--fg-default)', marginTop: 6 }}>AI Agent</div>+ <div style={{ fontSize: 11, color: color, marginTop: 2 }}>LangGraph Agent</div>+ <div style={{ display: 'flex', justifyContent: 'space-between', marginTop: 8, fontSize: 10.5, color: 'var(--fg-muted)' }}>+ <span>Memory</span><span>Tool</span>+ </div>+ {/* handles: in (left), out (right), memory + tool (bottom) */}+ <span style={{ position: 'absolute', left: -6, top: '50%', transform: 'translateY(-50%)', width: 12, height: 12, borderRadius: '50%', background: 'var(--bg-app)', border: '2px solid var(--fg-faint)', zIndex: 20 }}></span>+ <span style={{ position: 'absolute', right: -6, top: '50%', transform: 'translateY(-50%)', width: 12, height: 12, borderRadius: '50%', background: color, border: `2px solid ${color}`, zIndex: 20 }}></span>+ <span style={{ position: 'absolute', left: 28, bottom: -6, width: 11, height: 11, borderRadius: 3, transform: 'rotate(45deg)', background: 'var(--bg-app)', border: '2px solid var(--fg-faint)', zIndex: 20 }}></span>+ <span style={{ position: 'absolute', right: 28, bottom: -6, width: 11, height: 11, borderRadius: 3, transform: 'rotate(45deg)', background: 'var(--bg-app)', border: '2px solid var(--fg-faint)', zIndex: 20 }}></span>+ </div>+ );+}++const BASE_NODES = [+ { id: 'receive', type: 'square', icon: '💬', label: 'WhatsApp Receive', color: 'var(--node-trigger)', x: 70, y: 210, showInput: false, trigger: true },+ { id: 'agent', type: 'agent', x: 330, y: 150 },+ { id: 'send', type: 'square', icon: '📤', label: 'WhatsApp Send', color: 'var(--node-trigger)', x: 670, y: 210, showOutput: false },+ { id: 'memory', type: 'square', icon: '🧠', label: 'Simple Memory', color: 'var(--node-agent)', x: 290, y: 400, showInput: false, showToolOutput: true },+ { id: 'toolkit', type: 'square', icon: '📱', label: 'Android Toolkit', color: 'var(--node-tool)', x: 480, y: 400, showInput: false, showToolOutput: true },+ { id: 'search', type: 'square', icon: '🔍', label: 'Web Search Tool', color: 'var(--node-model)', x: 130, y: 420, showInput: false, showToolOutput: true },+];++// Edge endpoints (hand-tuned against the node geometry above).+const EDGES = [+ { id: 'e1', from: [134, 242], to: [330, 215], color: 'var(--dracula-pink)' },+ { id: 'e2', from: [520, 215], to: [670, 242], color: 'var(--dracula-purple)' },+ { id: 'e3', from: [358, 286], to: [322, 400], color: 'var(--dracula-purple)' },+ { id: 'e4', from: [492, 286], to: [512, 400], color: 'var(--dracula-green)' },+ { id: 'e5', from: [358, 286], to: [162, 420], color: 'var(--dracula-cyan)' },+];++const RUN_ORDER = ['receive', 'agent', 'memory', 'search', 'toolkit', 'send'];++function CanvasView({ running, extraNodes, selectedId, onSelect, onConfigure }) {+ const { SquareNode } = DS_CV;+ const [step, setStep] = React.useState(-1);++ React.useEffect(() => {+ if (!running) { setStep(-1); return; }+ setStep(0);+ const id = window.setInterval(() => {+ setStep((s) => (s + 1) % (RUN_ORDER.length + 2));+ }, 900);+ return () => window.clearInterval(id);+ }, [running]);++ const statusOf = (nodeId) => {+ if (!running || step < 0) return 'idle';+ const idx = RUN_ORDER.indexOf(nodeId);+ if (idx === -1) return 'idle';+ if (idx === step) return 'executing';+ if (idx < step) return 'success';+ return 'idle';+ };++ return (+ <div style={{+ position: 'relative', flex: 1, overflow: 'hidden', background: 'var(--bg-canvas)',+ backgroundImage: 'radial-gradient(color-mix(in srgb, var(--fg-muted) 30%, transparent) 1px, transparent 1px)',+ backgroundSize: '20px 20px',+ }}>+ <svg style={{ position: 'absolute', inset: 0, width: '100%', height: '100%', pointerEvents: 'none' }}>+ {EDGES.map((e) => {+ const [x1, y1] = e.from;+ const [x2, y2] = e.to;+ const mx = (x1 + x2) / 2;+ return (+ <path+ key={e.id}+ d={`M ${x1} ${y1} C ${mx} ${y1}, ${mx} ${y2}, ${x2} ${y2}`}+ fill="none"+ stroke={e.color}+ strokeWidth="2"+ strokeDasharray="6 6"+ opacity="0.8"+ />+ );+ })}+ </svg>++ {BASE_NODES.map((n) =>+ n.type === 'agent' ? (+ <AgentNode+ key={n.id} x={n.x} y={n.y}+ status={statusOf(n.id)}+ executing={statusOf(n.id) === 'executing'}+ selected={selectedId === n.id}+ onClick={() => onSelect(n.id)}+ onGearClick={() => onConfigure && onConfigure({ id: n.id, icon: '🤖', label: 'AI Agent' })}+ />+ ) : (+ <div key={n.id} style={{ position: 'absolute', left: n.x, top: n.y, zIndex: 10 }}>+ <SquareNode+ icon={n.icon} label={n.label} color={n.color}+ status={n.trigger && statusOf(n.id) === 'idle' ? 'listening' : statusOf(n.id)}+ executing={statusOf(n.id) === 'executing'}+ trigger={!!n.trigger}+ pulseColor={n.trigger ? 'var(--node-trigger)' : undefined}+ selected={selectedId === n.id}+ showInput={n.showInput !== false}+ showOutput={n.showOutput !== false}+ showToolOutput={!!n.showToolOutput}+ onClick={() => onSelect(n.id)}+ onGearClick={() => onConfigure && onConfigure({ id: n.id, icon: n.icon, label: n.label })}+ />+ </div>+ )+ )}++ {extraNodes.map((n) => (+ <div key={n.id} style={{ position: 'absolute', left: n.x, top: n.y, zIndex: 10 }}>+ <SquareNode+ icon={n.icon} label={n.label} color={n.color}+ selected={selectedId === n.id}+ onClick={() => onSelect(n.id)}+ onGearClick={() => onConfigure && onConfigure({ id: n.id, icon: n.icon, label: n.label })}+ />+ </div>+ ))}+ </div>+ );+}++window.MachinaKit = Object.assign(window.MachinaKit || {}, { CanvasView });diff --git a/docs-internal/design-system/ui_kits/machinaos/ConsoleDock.jsx b/docs-internal/design-system/ui_kits/machinaos/ConsoleDock.jsxnew file mode 100644index 00000000..d10faf32--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/ConsoleDock.jsx@@ -0,0 +1,69 @@+// MachinaOS UI kit — multi-tab console dock (Chat / Console / Terminal).+const DS_CD = window.MachinaOSDesignSystem_2559cf;++const CONSOLE_LINES = [+ { t: '12:01:31', tone: 'var(--fg-muted)', text: 'Workflow "WhatsApp Assistant" loaded · 6 nodes' },+ { t: '12:01:33', tone: 'var(--success)', text: 'Deployed — listening for incoming messages' },+ { t: '12:04:02', tone: 'var(--dracula-cyan)', text: 'WhatsApp Receive → message from +1 (555) 014-2236' },+ { t: '12:04:03', tone: 'var(--dracula-purple)', text: 'AI Agent → delegating to Web Search Tool' },+ { t: '12:04:05', tone: 'var(--success)', text: 'WhatsApp Send → reply delivered (1.9s)' },+];++function ConsoleDock({ open, onToggle }) {+ const { Tabs, Icon, Input } = DS_CD;+ const [tab, setTab] = React.useState('console');+ return (+ <div style={{ borderTop: '1px solid var(--border-default)', background: 'var(--bg-panel)', flexShrink: 0 }}>+ <div style={{ display: 'flex', alignItems: 'center' }}>+ <Tabs+ tabs={[{ id: 'chat', label: 'Chat' }, { id: 'console', label: 'Console' }, { id: 'terminal', label: 'Terminal' }]}+ active={tab}+ onChange={(id) => { setTab(id); if (!open) onToggle(); }}+ style={{ flex: 1, borderBottom: open ? '1px solid var(--border-default)' : 'none' }}+ />+ <button+ type="button"+ onClick={onToggle}+ title={open ? 'Collapse console' : 'Expand console'}+ style={{ background: 'none', border: 'none', color: 'var(--fg-muted)', cursor: 'pointer', padding: '6px 12px' }}+ >+ <Icon name={open ? 'ChevronDown' : 'ChevronUp'} size={14} />+ </button>+ </div>+ {open ? (+ <div style={{ height: 150, overflowY: 'auto', padding: '10px 14px', background: 'var(--bg-app)' }}>+ {tab === 'console' ? (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>+ {CONSOLE_LINES.map((l, i) => (+ <div key={i} style={{ fontFamily: 'var(--font-mono)', fontSize: 12, display: 'flex', gap: 10 }}>+ <span style={{ color: 'var(--fg-faint)' }}>[{l.t}]</span>+ <span style={{ color: l.tone }}>{l.text}</span>+ </div>+ ))}+ </div>+ ) : tab === 'chat' ? (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8, height: '100%' }}>+ <div style={{ alignSelf: 'flex-end', maxWidth: 420, background: 'color-mix(in srgb, var(--primary) 18%, transparent)', border: '1px solid color-mix(in srgb, var(--primary) 35%, transparent)', borderRadius: '10px 10px 2px 10px', padding: '8px 12px', fontSize: 13, color: 'var(--fg-default)' }}>+ Summarize my unread emails every weekday at 9 AM.+ </div>+ <div style={{ alignSelf: 'flex-start', maxWidth: 420, background: 'var(--surface-card)', border: '1px solid var(--border-default)', borderRadius: '10px 10px 10px 2px', padding: '8px 12px', fontSize: 13, color: 'var(--fg-default)' }}>+ Done — I scheduled a daily digest. Want it on WhatsApp too?+ </div>+ <div style={{ marginTop: 'auto' }}>+ <Input placeholder="Message your agent..." />+ </div>+ </div>+ ) : (+ <div style={{ fontFamily: 'var(--font-mono)', fontSize: 12, color: 'var(--fg-default)' }}>+ <div><span style={{ color: 'var(--success)' }}>$</span> machina start</div>+ <div style={{ color: 'var(--fg-muted)', marginTop: 4 }}>MachinaOS running at http://localhost:3000</div>+ <div style={{ color: 'var(--fg-muted)' }}>Temporal · Python backend · WhatsApp service — all up</div>+ </div>+ )}+ </div>+ ) : null}+ </div>+ );+}++window.MachinaKit = Object.assign(window.MachinaKit || {}, { ConsoleDock });diff --git a/docs-internal/design-system/ui_kits/machinaos/Panels.jsx b/docs-internal/design-system/ui_kits/machinaos/Panels.jsxnew file mode 100644index 00000000..882b6912--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/Panels.jsx@@ -0,0 +1,151 @@+// MachinaOS UI kit — workflow sidebar (280px) + component palette (320px).+const DS_PN = window.MachinaOSDesignSystem_2559cf;++function SidebarPanel({ workflows, currentId, onSelect }) {+ const { WorkflowCard, Icon } = DS_PN;+ return (+ <div style={{+ display: 'flex', flexDirection: 'column', width: 'var(--w-sidebar, 280px)',+ borderRight: '1px solid var(--border-default)', background: 'var(--bg-panel)',+ overflow: 'hidden', flexShrink: 0,+ }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, borderBottom: '1px solid var(--border-default)', background: 'var(--bg-app)', padding: '18px 16px' }}>+ <span style={{ width: 36, height: 36, borderRadius: 'var(--radius-md)', background: 'color-mix(in srgb, var(--accent) 20%, transparent)', color: 'var(--accent)', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>+ <Icon name="FolderOpen" size={16} />+ </span>+ <div>+ <div style={{ fontSize: 16, fontWeight: 600, color: 'var(--fg-default)' }}>Workflows</div>+ <div style={{ fontFamily: 'var(--font-mono)', fontSize: 11, color: 'var(--fg-muted)' }}>{workflows.length} saved</div>+ </div>+ </div>+ <div style={{ flex: 1, overflowY: 'auto', padding: 12, display: 'flex', flexDirection: 'column', gap: 8 }}>+ {workflows.map((wf) => (+ <WorkflowCard+ key={wf.id}+ name={wf.name}+ nodeCount={wf.nodeCount}+ modified={wf.modified}+ selected={wf.id === currentId}+ onClick={() => onSelect(wf.id)}+ />+ ))}+ </div>+ </div>+ );+}++const PALETTE_SECTIONS = [+ {+ id: 'ai', label: 'AI', icon: '🤖', color: 'var(--node-agent)', visibility: 'normal',+ items: [+ { icon: '🤖', name: 'AI Agent', description: 'LangGraph agent with memory and tools' },+ { icon: '🧠', name: 'Simple Memory', description: 'Conversation memory store' },+ { icon: '📚', name: 'Skill', description: 'Teach your agent a capability' },+ ],+ },+ {+ id: 'messaging', label: 'Messaging', icon: '💬', color: 'var(--node-trigger)', visibility: 'normal',+ items: [+ { icon: '💬', name: 'WhatsApp Receive', description: 'Trigger on incoming message' },+ { icon: '📤', name: 'WhatsApp Send', description: 'Send a WhatsApp message' },+ { icon: '✈️', name: 'Telegram', description: 'Bot send and receive' },+ ],+ },+ {+ id: 'android', label: 'Android', icon: '📱', color: 'var(--node-tool)', visibility: 'normal',+ items: [+ { icon: '📱', name: 'Android Toolkit', description: '16 device services' },+ { icon: '🔋', name: 'Battery Monitor', description: 'Read battery status' },+ { icon: '🚀', name: 'App Launcher', description: 'Launch apps on device' },+ ],+ },+ {+ id: 'web', label: 'Web', icon: '🔍', color: 'var(--node-model)', visibility: 'normal',+ items: [+ { icon: '🔍', name: 'Web Search Tool', description: 'DuckDuckGo, Brave, Serper' },+ { icon: '🌐', name: 'Browser', description: 'Accessibility-tree navigation' },+ ],+ },+ {+ id: 'code', label: 'Code', icon: '⚙️', color: 'var(--node-workflow)', visibility: 'dev',+ items: [+ { icon: '🐍', name: 'Python', description: 'Run sandboxed Python' },+ { icon: '📜', name: 'JavaScript', description: 'Run sandboxed JS/TS' },+ { icon: '🖥️', name: 'Process Manager', description: 'Own long-running tasks' },+ ],+ },+];++function PalettePanel({ mode, onDropNode }) {+ const { Input, Badge, ComponentItem, Icon } = DS_PN;+ const [query, setQuery] = React.useState('');+ const [collapsed, setCollapsed] = React.useState({});++ const sections = PALETTE_SECTIONS+ .filter((s) => mode === 'dev' || s.visibility === 'normal')+ .map((s) => ({+ ...s,+ items: s.items.filter((it) =>+ !query.trim() ||+ it.name.toLowerCase().includes(query.toLowerCase()) ||+ it.description.toLowerCase().includes(query.toLowerCase())+ ),+ }))+ .filter((s) => s.items.length > 0);++ const total = sections.reduce((acc, s) => acc + s.items.length, 0);++ return (+ <div style={{+ display: 'flex', flexDirection: 'column', width: 'var(--w-palette, 320px)',+ borderLeft: '1px solid var(--border-default)', background: 'var(--bg-panel)',+ overflow: 'hidden', flexShrink: 0,+ }}>+ <div style={{ borderBottom: '1px solid var(--border-default)', background: 'var(--bg-app)', padding: 16 }}>+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: 12 }}>+ <span style={{ fontSize: 16, fontWeight: 600, color: 'var(--fg-default)' }}>Components</span>+ <Badge mono>{total}</Badge>+ </div>+ <Input placeholder="Search..." icon={<Icon name="Search" size={14} />} value={query} onChange={(e) => setQuery(e.target.value)} />+ </div>+ <div style={{ flex: 1, overflowY: 'auto', padding: 12 }}>+ {sections.length === 0 ? (+ <div style={{ textAlign: 'center', padding: '48px 24px', color: 'var(--fg-muted)' }}>+ <Icon name="Search" size={40} style={{ opacity: 0.5 }} />+ <p style={{ fontSize: 13, marginTop: 12 }}>No components found matching "{query}"</p>+ </div>+ ) : sections.map((section) => (+ <div key={section.id} style={{ marginBottom: 12 }}>+ <button+ type="button"+ onClick={() => setCollapsed((c) => ({ ...c, [section.id]: !c[section.id] }))}+ style={{+ display: 'flex', width: '100%', alignItems: 'center', justifyContent: 'space-between',+ background: 'none', border: 'none', padding: '6px 4px', cursor: 'pointer',+ }}+ >+ <span style={{ display: 'flex', alignItems: 'center', gap: 10 }}>+ <span style={{+ display: 'flex', width: 28, height: 28, alignItems: 'center', justifyContent: 'center',+ borderRadius: 'var(--radius-md)', fontSize: 14,+ background: `color-mix(in srgb, ${section.color} 8%, transparent)`,+ }}>{section.icon}</span>+ <span style={{ fontSize: 13, fontWeight: 600, color: 'var(--fg-default)' }}>{section.label}</span>+ </span>+ <Badge mono>{section.items.length}</Badge>+ </button>+ {!collapsed[section.id] ? (+ <div style={{ display: 'grid', gap: 8, paddingTop: 8 }}>+ {section.items.map((it) => (+ <ComponentItem key={it.name} icon={it.icon} name={it.name} description={it.description} onClick={() => onDropNode && onDropNode(it, section)} />+ ))}+ </div>+ ) : null}+ </div>+ ))}+ </div>+ </div>+ );+}++window.MachinaKit = Object.assign(window.MachinaKit || {}, { SidebarPanel, PalettePanel });diff --git a/docs-internal/design-system/ui_kits/machinaos/PanelsModals.jsx b/docs-internal/design-system/ui_kits/machinaos/PanelsModals.jsxnew file mode 100644index 00000000..8c3a8c2a--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/PanelsModals.jsx@@ -0,0 +1,224 @@+// MachinaOS UI kit — Settings, Node Configuration, and Credentials modals.+// Faithful recreations of SettingsPanel.tsx / ParameterPanel.tsx, composed+// from the DS panel components.+const DS_PM = window.MachinaOSDesignSystem_2559cf;++function SettingsModal({ open, onClose }) {+ const { PanelModal, SettingsSection, SettingsRow, Switch, Input, Slider, Button, ActionButton, Icon } = DS_PM;+ const [ratio, setRatio] = React.useState(80);+ if (!open) return null;+ return (+ <PanelModal+ title="Settings"+ titleIcon={<Icon name="Settings" size={14} />}+ maxWidth="720px" maxHeight="88%"+ onClose={onClose}+ headerActions={+ <div style={{ display: 'flex', gap: 8 }}>+ <ActionButton intent="config" title="Reset to default settings"><Icon name="RotateCcw" size={12} /> Reset</ActionButton>+ <ActionButton intent="run" title="Save settings"><Icon name="Save" size={12} /> Save</ActionButton>+ <ActionButton intent="stop" onClick={onClose} title="Close settings"><Icon name="X" size={12} /> Close</ActionButton>+ </div>+ }+ >+ <div style={{ flex: 1, overflowY: 'auto', padding: 16 }}>+ <SettingsSection title="UI Defaults" icon={<Icon name="Monitor" size={16} />} tone="agent">+ <SettingsRow label="Sidebar Open by Default" description="Show the sidebar panel when the application starts">+ <Switch defaultChecked />+ </SettingsRow>+ <SettingsRow label="Component Palette Open by Default" description="Show the component palette when the application starts">+ <Switch defaultChecked />+ </SettingsRow>+ <SettingsRow label="Console Panel Open by Default" description="Show the console/chat panel at the bottom when the application starts">+ <Switch defaultChecked />+ </SettingsRow>+ <SettingsRow label="Auto-add Skill for Connected Tools" description="When a tool node is connected to an AI agent, automatically enable the matching skill in the agent's Master Skill">+ <Switch defaultChecked />+ </SettingsRow>+ </SettingsSection>++ <SettingsSection title="Auto-save" icon={<Icon name="Save" size={16} />} tone="model">+ <SettingsRow label="Enable Auto-save" description="Automatically save the workflow at regular intervals">+ <Switch defaultChecked />+ </SettingsRow>+ <SettingsRow label="Auto-save Interval" description="How often to auto-save (10-300 seconds)">+ <div style={{ position: 'relative', width: 96 }}>+ <Input type="number" defaultValue={30} min={10} max={300} step={5} style={{ paddingRight: 24 }} />+ <span style={{ position: 'absolute', top: '50%', right: 8, transform: 'translateY(-50%)', fontSize: 12, color: 'var(--fg-muted)', pointerEvents: 'none' }}>s</span>+ </div>+ </SettingsRow>+ </SettingsSection>++ <SettingsSection title="Memory & Compaction" icon={<Icon name="Brain" size={16} />} tone="agent">+ <SettingsRow label="Default Window Size" description="Number of message pairs to keep in short-term memory (1-100)">+ <Input type="number" defaultValue={100} min={1} max={100} style={{ width: 80 }} />+ </SettingsRow>+ <div style={{ borderBottom: '1px solid var(--border-default)', margin: '4px 0' }}></div>+ <div style={{ padding: '8px 0' }}>+ <div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', marginBottom: 8 }}>+ <div>+ <div style={{ fontSize: 14, fontWeight: 500, color: 'var(--fg-default)' }}>Compaction Ratio</div>+ <div style={{ fontSize: 12, color: 'var(--fg-muted)', marginTop: 2 }}>Fraction of context window that triggers memory compaction</div>+ </div>+ <span style={{ fontSize: 14, fontWeight: 600, color: 'var(--node-model)', minWidth: 42, textAlign: 'right' }}>{ratio}%</span>+ </div>+ <Slider min={5} max={95} step={5} value={ratio} onChange={setRatio} color="var(--node-model)" style={{ margin: '12px 0 6px' }} />+ <div style={{ display: 'flex', justifyContent: 'space-between', fontSize: 10, color: 'var(--fg-muted)' }}>+ <span>5%</span><span>50%</span><span>95%</span>+ </div>+ <div style={{ fontSize: 12, color: 'var(--fg-muted)', marginTop: 6, lineHeight: 1.45 }}>+ Lower = compact sooner (saves tokens, loses detail). Higher = compact later (preserves context, uses more tokens).+ </div>+ </div>+ </SettingsSection>++ <SettingsSection title="Audio" icon={<Icon name="Volume2" size={16} />} tone="tool">+ <SettingsRow label="Sound Effects" description="Play per-theme click / hover / save / error sounds. Each theme ships a different pack (parchment, terminal, marble, ink, clockwork, ...)">+ <Switch defaultChecked />+ </SettingsRow>+ </SettingsSection>++ <SettingsSection title="Help" icon={<Icon name="HelpCircle" size={16} />} tone="model" style={{ marginBottom: 0 }}>+ <SettingsRow label="Replay Welcome Guide" description="Show the onboarding wizard again to review platform features">+ <Button size="sm"><Icon name="HelpCircle" size={13} /> Replay</Button>+ </SettingsRow>+ </SettingsSection>+ </div>+ </PanelModal>+ );+}++function NodeConfigModal({ node, onClose }) {+ const { PanelModal, DataCard, CollapsibleSection, Select, Textarea, Slider, Checkbox, ActionButton, EmptyState, Icon } = DS_PM;+ const [temp, setTemp] = React.useState(70);+ const [ran, setRan] = React.useState(false);+ if (!node) return null;+ const colHead = (icon, text) => (+ <div style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '10px 14px', borderBottom: '1px solid var(--border-default)', background: 'var(--bg-panel)', fontSize: 13, fontWeight: 600, color: 'var(--fg-default)', flexShrink: 0 }}>+ <Icon name={icon} size={14} /> {text}+ </div>+ );+ return (+ <PanelModal+ title="Node Configuration"+ titleIcon={<Icon name="Settings" size={14} />}+ maxWidth="95%" maxHeight="92%"+ onClose={onClose}+ headerActions={+ <div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>+ <span style={{ display: 'flex', alignItems: 'center', gap: 8, fontSize: 15, fontWeight: 600, color: 'var(--fg-default)' }}>+ <span style={{ fontSize: 18 }}>{node.icon}</span> {node.label}+ <span style={{ color: 'var(--warning)' }}>*</span>+ </span>+ <div style={{ display: 'flex', gap: 8 }}>+ <ActionButton intent="run" title="Execute this node" onClick={() => setRan(true)}><Icon name="Play" size={12} /> Run</ActionButton>+ <ActionButton intent="tools" title="Save parameters"><Icon name="Save" size={12} /> Save</ActionButton>+ <ActionButton intent="stop" onClick={onClose}><Icon name="X" size={12} /> Cancel</ActionButton>+ </div>+ </div>+ }+ >+ <div style={{ display: 'flex', flex: 1, minHeight: 0 }}>+ <div style={{ flex: 0.7, minWidth: 0, display: 'flex', flexDirection: 'column', borderRight: '1px solid var(--border-default)' }}>+ {colHead('Link2', 'Input Data (1 item)')}+ <div style={{ flex: 1, overflowY: 'auto', padding: 12 }}>+ <DataCard+ title="Item 1"+ badge="from WhatsApp Receive"+ data={{ message: "What's on my calendar today?", from: '+1 555 014 2236', timestamp: '2026-06-12T09:14:02Z' }}+ />+ </div>+ <div style={{ padding: '8px 14px', borderTop: '1px solid var(--border-default)', fontSize: 11, color: 'var(--fg-muted)', flexShrink: 0 }}>+ Shows actual data received by this node during execution+ </div>+ </div>++ <div style={{ flex: 1.6, minWidth: 0, display: 'flex', flexDirection: 'column' }}>+ {colHead('SlidersHorizontal', 'Parameters')}+ <div style={{ flex: 1, overflowY: 'auto', padding: 16, display: 'flex', flexDirection: 'column', gap: 14 }}>+ <label style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>+ <span style={{ fontSize: 13, fontWeight: 500, color: 'var(--fg-default)' }}>Model</span>+ <Select defaultValue="claude-sonnet-4-5" options={['claude-sonnet-4-5', 'gpt-4o', 'llama3.1:8b', 'gemini-2.0-flash']} />+ </label>+ <label style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>+ <span style={{ fontSize: 13, fontWeight: 500, color: 'var(--fg-default)' }}>System Prompt</span>+ <Textarea rows={4} defaultValue="You are a personal assistant with access to my calendar, email, and messages. Answer briefly and take action when asked." />+ </label>+ <div>+ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 6 }}>+ <span style={{ fontSize: 13, fontWeight: 500, color: 'var(--fg-default)' }}>Temperature</span>+ <span style={{ fontFamily: 'var(--font-mono)', fontSize: 12, color: 'var(--node-model)' }}>{(temp / 100).toFixed(2)}</span>+ </div>+ <Slider min={0} max={100} step={5} value={temp} onChange={setTemp} color="var(--node-model)" />+ </div>+ <CollapsibleSection title={<><Icon name="Wrench" size={13} /> Connected Skills</>}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>+ <Checkbox defaultChecked label="Web Search — search the web via DuckDuckGo" />+ <Checkbox defaultChecked label="Android Toolkit — 16 device services" />+ <Checkbox label="Code Execution — sandboxed Python" />+ </div>+ </CollapsibleSection>+ </div>+ </div>++ <div style={{ flex: 0.7, minWidth: 0, display: 'flex', flexDirection: 'column', borderLeft: '1px solid var(--border-default)' }}>+ {colHead('ArrowRightFromLine', 'Output')}+ <div style={{ flex: 1, overflowY: 'auto', padding: 12 }}>+ {ran ? (+ <DataCard+ title="Execution Result"+ badge="Success · 1.9s"+ blockLabel="Response"+ data={{ response: 'You have 2 events today: standup at 10:00 and a dentist appointment at 15:30.' }}+ />+ ) : (+ <EmptyState+ icon={<Icon name="Play" size={26} strokeWidth={1.5} />}+ title="No output yet"+ hint="Run this node to see its output"+ style={{ padding: '24px 16px' }}+ />+ )}+ </div>+ </div>+ </div>+ </PanelModal>+ );+}++function CredentialsModal({ open, onClose }) {+ const { PanelModal, ApiKeyInput, Avatar, ActionButton, Icon } = DS_PM;+ if (!open) return null;+ const providers = [+ { name: 'Anthropic', color: 'var(--dracula-orange)', stored: true, val: 'sk-ant-api03-xxxxxxxxxxxxxxxx' },+ { name: 'Open AI', color: 'var(--dracula-cyan)', stored: false, val: '' },+ { name: 'Groq', color: 'var(--dracula-pink)', stored: false, val: '' },+ { name: 'Google', color: 'var(--dracula-green)', stored: true, val: 'AIzaSyxxxxxxxxxxxxxxxx' },+ ];+ return (+ <PanelModal+ title="API Credentials"+ titleIcon={<Icon name="KeyRound" size={14} />}+ maxWidth="640px" maxHeight="80%"+ onClose={onClose}+ headerActions={+ <ActionButton intent="stop" onClick={onClose}><Icon name="X" size={12} /> Close</ActionButton>+ }+ >+ <div style={{ flex: 1, overflowY: 'auto', padding: 16, display: 'flex', flexDirection: 'column', gap: 14 }}>+ <div style={{ fontSize: 12.5, color: 'var(--fg-muted)', lineHeight: 1.5 }}>+ Bring your own keys — they're stored locally and never leave your machine.+ </div>+ {providers.map((p) => (+ <div key={p.name} style={{ display: 'flex', alignItems: 'center', gap: 10 }}>+ <Avatar name={p.name} color={p.color} square />+ <span style={{ width: 86, fontSize: 13, fontWeight: 500, color: 'var(--fg-default)', flexShrink: 0 }}>{p.name}</span>+ <ApiKeyInput defaultValue={p.val} isStored={p.stored} onSave={() => {}} onDelete={p.stored ? () => {} : undefined} placeholder="Enter API key..." />+ </div>+ ))}+ </div>+ </PanelModal>+ );+}++window.MachinaKit = Object.assign(window.MachinaKit || {}, { SettingsModal, NodeConfigModal, CredentialsModal });diff --git a/docs-internal/design-system/ui_kits/machinaos/README.md b/docs-internal/design-system/ui_kits/machinaos/README.mdnew file mode 100644index 00000000..b9432868--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/README.md@@ -0,0 +1,15 @@+# MachinaOS app UI kit++Interactive recreation of the MachinaOS workflow canvas (`localhost:3000`), built from the real client code (`client/src/Dashboard.tsx`, `ui/TopToolbar.tsx`, `ui/ComponentPalette.tsx`, `ui/WorkflowSidebar.tsx`, `ui/StatusBar.tsx`, `SquareNode.tsx`).++**What's interactive:** toggle sidebar/palette panels, Normal↔Dev mode (filters palette sections), search the palette, click palette items to add nodes, select canvas nodes, Start/Stop (runs an executing-pulse sequence through the flow), Save (Modified→Saved), light/dark theme toggle, console dock tabs + collapse.++**Files**+- `index.html` — entry; loads the DS bundle + lucide and mounts the app.+- `Toolbar.jsx` — 48px top toolbar (file menu, workflow name, mode toggle, action buttons, save state).+- `Panels.jsx` — workflow sidebar (280px) + component palette (320px) with fake node catalogue.+- `CanvasView.jsx` — dot-grid canvas, dashed SVG edges, SquareNodes + rectangular AgentNode.+- `ConsoleDock.jsx` — Chat / Console / Terminal tabs.+- `App.jsx` — state wiring.++The demo workflow mirrors the official screenshot: WhatsApp Receive → AI Agent (memory + tools) → WhatsApp Send, with Simple Memory, Android Toolkit, and Web Search Tool as tool nodes.diff --git a/docs-internal/design-system/ui_kits/machinaos/Toolbar.jsx b/docs-internal/design-system/ui_kits/machinaos/Toolbar.jsxnew file mode 100644index 00000000..e4acd129--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/Toolbar.jsx@@ -0,0 +1,75 @@+// MachinaOS UI kit — top toolbar (48px, bg-panel).+// Composes ActionButton / Button / ModeToggle / Icon from the DS bundle.+const DS_TB = window.MachinaOSDesignSystem_2559cf;++function Divider() {+ return <div style={{ width: 1, height: 24, background: 'var(--border-default)', margin: '0 4px', flexShrink: 0 }}></div>;+}++function Toolbar({+ workflowName, sidebarVisible, paletteVisible, mode, dark, running, saved,+ onToggleSidebar, onTogglePalette, onModeChange, onToggleTheme, onRun, onSave,+ onSettings, onCredentials,+}) {+ const { ActionButton, Icon, ModeToggle } = DS_TB;+ return (+ <div style={{+ display: 'flex', height: 'var(--h-toolbar, 48px)', alignItems: 'center',+ justifyContent: 'space-between', gap: 12, borderBottom: '1px solid var(--border-default)',+ background: 'var(--bg-panel)', padding: '0 12px', flexShrink: 0,+ }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>+ <ActionButton intent="save" iconOnly title={sidebarVisible ? 'Hide sidebar' : 'Show sidebar'} onClick={onToggleSidebar}>+ <Icon name={sidebarVisible ? 'PanelLeftClose' : 'PanelLeftOpen'} size={14} />+ </ActionButton>+ <Divider />+ <ActionButton intent="save">+ <Icon name="FileText" size={13} /> File <Icon name="ChevronDown" size={12} />+ </ActionButton>+ </div>++ <div style={{ display: 'flex', alignItems: 'center', gap: 6, flex: 1, justifyContent: 'center', minWidth: 0 }}>+ <span style={{ fontSize: 14, fontWeight: 500, color: 'var(--fg-default)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{workflowName}</span>+ <Icon name="Pencil" size={11} style={{ color: 'var(--fg-muted)' }} />+ </div>++ <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>+ <span style={{ fontSize: 13, fontWeight: 600, color: 'var(--node-model)', whiteSpace: 'nowrap' }}>Mode:</span>+ <ModeToggle mode={mode} onChange={onModeChange} />+ <Divider />+ <ActionButton intent="config" iconOnly title="Settings" onClick={onSettings}><Icon name="Settings" size={14} /></ActionButton>+ <ActionButton intent="secret" iconOnly title="API Credentials" onClick={onCredentials}><Icon name="KeyRound" size={14} /></ActionButton>+ <ActionButton intent="tools" iconOnly title="Toggle theme" onClick={onToggleTheme}>+ <Icon name={dark ? 'Sun' : 'Moon'} size={14} />+ </ActionButton>+ <Divider />+ {!running ? (+ <ActionButton intent="run" title="Start workflow" onClick={onRun}>+ <Icon name="Play" size={12} /> Start+ </ActionButton>+ ) : (+ <ActionButton intent="stop" title="Stop workflow" onClick={onRun}>+ <Icon name="Square" size={12} /> Stop+ </ActionButton>+ )}+ <ActionButton intent="save" disabled={saved} title={saved ? 'No changes to save' : 'Save changes'} onClick={onSave}>+ <Icon name="Save" size={12} /> Save+ </ActionButton>+ <span style={{+ display: 'flex', alignItems: 'center', gap: 6, padding: '4px 10px',+ fontFamily: 'var(--font-mono)', fontSize: 12,+ color: saved ? 'var(--success)' : 'var(--warning)',+ }}>+ <span style={{ width: 8, height: 8, borderRadius: '50%', background: saved ? 'var(--success)' : 'var(--warning)' }}></span>+ {saved ? 'Saved' : 'Modified'}+ </span>+ <Divider />+ <ActionButton intent="tools" iconOnly title={paletteVisible ? 'Hide components' : 'Show components'} onClick={onTogglePalette}>+ <Icon name={paletteVisible ? 'PanelRightClose' : 'PanelRightOpen'} size={14} />+ </ActionButton>+ </div>+ </div>+ );+}++window.MachinaKit = Object.assign(window.MachinaKit || {}, { Toolbar });diff --git a/docs-internal/design-system/ui_kits/machinaos/index.html b/docs-internal/design-system/ui_kits/machinaos/index.htmlnew file mode 100644index 00000000..cd20db74--- /dev/null+++ b/docs-internal/design-system/ui_kits/machinaos/index.html@@ -0,0 +1,24 @@+<!-- @dsCard group="MachinaOS App" viewport="1440x900" name="Workflow Canvas" subtitle="Interactive recreation — toolbar, sidebar, canvas, palette, console, status bar" -->+<!DOCTYPE html>+<html lang="en" class="dark">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1.0">+<title>MachinaOS</title>+<link rel="stylesheet" href="../../styles.css">+<script src="https://unpkg.com/[email protected]/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>+<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>+<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>+<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>+<script src="../../_ds_bundle.js?v=4"></script>+</head>+<body style="margin: 0; overflow: hidden;">+<div id="root"></div>+<script type="text/babel" src="Toolbar.jsx"></script>+<script type="text/babel" src="Panels.jsx"></script>+<script type="text/babel" src="CanvasView.jsx"></script>+<script type="text/babel" src="ConsoleDock.jsx"></script>+<script type="text/babel" src="PanelsModals.jsx"></script>+<script type="text/babel" src="App.jsx"></script>+</body>+</html>diff --git a/docs-internal/theme_system.md b/docs-internal/theme_system.mdindex 1e17042a..38681077 100644--- a/docs-internal/theme_system.md+++ b/docs-internal/theme_system.md@@ -9,6 +9,8 @@ Selected at runtime via `<html data-theme="...">`. The system is purely CSS-variThis document is the playbook for working in the design system: token taxonomy, decorative-layer wrappers, per-theme sound + canvas packs, migration recipe, anti-patterns, and where each piece lives.+> **Canonical reference + token format.** The vendored [Design System Bundle](./design-system/IMPLEMENTATION.md) (`docs-internal/design-system/`) is the canonical spec; its `tokens/*.css` carry the authoritative values — copy them verbatim, never re-derive by eye. **Token colors are `hex` + `color-mix()`** (e.g. `--primary: #2563eb`, `--action-run-soft: color-mix(in srgb, var(--dracula-green) 15%, transparent)`), NOT HSL-triplets. The Tailwind v4 `@theme inline` bridge maps `--color-X: var(--X)` directly (no `hsl()` wrapper); the `/opacity` modifier still works because v4 compiles it to `color-mix`. Action intents additionally expose an `--action-X-ink` readable-text variant (light: a darkened accent; dark: the raw accent) consumed by `ActionButton` via `text-action-X-ink`.+## Architecture at a glance```