Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(ui): draw every Architecture scene in the green of the IDE
Bernhard Jackiewicz196daaac07b7
diff --git a/graph-ui/src/architecture/ArchitecturePanel.tsx b/graph-ui/src/architecture/ArchitecturePanel.tsxindex d8e57a05a..5d725582e 100644--- a/graph-ui/src/architecture/ArchitecturePanel.tsx+++ b/graph-ui/src/architecture/ArchitecturePanel.tsx@@ -7,6 +7,7 @@ import {import type { ArchitectureView, ConfigStorage } from './architecture-model';import { architectureText as text } from './strings';import './architecture.css';+import { scenePaletteStyle } from './scene-palette';import type { RepositoryMapProps } from './RepositoryMap';import SpatialArchitecture from './SpatialArchitecture';import RoutesArchitecture from './RoutesArchitecture';@@ -110,6 +111,8 @@ function Findings({ view, data, empty, onNavigate }: {</section>;}+const paletteStyle = scenePaletteStyle();+function ArchitectureWorkspace({ projectName, overview, loading = false, error, onRefresh, onNavigate, graph, selectionPanel, onSelect, onClearSelection, onSelectionEvidence, graphNote, graphGeneration, active = true, coverage, systemArchitectureLoader }: ArchitecturePanelProps): JSX.Element {const storage = useMemo(browserStorage, []);// A filter is a search for this visit: one saved by an earlier session would silently hide routes.@@ -126,7 +129,8 @@ function ArchitectureWorkspace({ projectName, overview, loading = false, error,// Only the Routes view offers the filter, so no other view may receive a stale one.const filter = config.view === 'routes' ? config.filter : '';const setFilter = (value: string) => setConfig(current => ({ ...current, filter: value }));- return <section className="atlas-architecture" data-testid="atlas-architecture" data-system-view={systemView} aria-label={text.title} aria-busy={!systemView && loading}>+ // Every scene below draws with the same palette; the DOM reads it as CSS variables.+ return <section className="atlas-architecture" data-testid="atlas-architecture" data-system-view={systemView} aria-label={text.title} aria-busy={!systemView && loading} style={paletteStyle}><nav className="atlas-arch-tabs" aria-label={text.navigation}>{ARCHITECTURE_VIEWS.map(view =><button className="atlas-arch-tab" key={view} aria-pressed={config.view === view || (view === 'overview' && ['dependencies', 'entryPoints'].includes(config.view))} data-view={view}onClick={() => { if (view !== config.view) onSelectionEvidence?.(undefined); setConfig(current => ({ ...current, view })); }}>{text.views[view]}</button>)}</nav>diff --git a/graph-ui/src/architecture/ArchitectureScene.tsx b/graph-ui/src/architecture/ArchitectureScene.tsxindex f7db451dc..4a6688cd0 100644--- a/graph-ui/src/architecture/ArchitectureScene.tsx+++ b/graph-ui/src/architecture/ArchitectureScene.tsx@@ -11,6 +11,7 @@ import { edgeColor, isDirectedEdge } from '../graph/edge-style';import { EdgePulseLayer } from '../graph/EdgePulseLayer';import './architecture-scene.css';import { useGraphBackgroundReset } from '../graph/useGraphBackgroundReset';+import { SCENE_MAX_TILT, SCENE_PALETTE } from './scene-palette';export interface ArchitectureSceneProps {model: SemanticGraph;@@ -53,8 +54,8 @@ function FolderPlatform({ platform }: { platform: SemanticPlatform }) {return <group position={platform.position}><mesh position={[0, -0.225, 0]} raycast={() => null}><boxGeometry args={[platform.width, 0.45, platform.depth]} />- <meshStandardMaterial color="#536977" roughness={0.95} transparent opacity={0.11 + platform.level * 0.015} depthWrite={false} />- <Edges color="#6e8a98" transparent opacity={0.3} />+ <meshStandardMaterial color={SCENE_PALETTE.plate} roughness={0.95} transparent opacity={0.11 + platform.level * 0.015} depthWrite={false} />+ <Edges color={SCENE_PALETTE.plateEdge} transparent opacity={0.3} /></mesh><Html position={[-platform.width / 2 + 3, 0.12, platform.depth / 2 - 2]} zIndexRange={[5, 1]} style={{ pointerEvents: 'none' }}><span className="architecture-folder-label" data-folder-path={platform.path} data-level={platform.level}@@ -128,7 +129,7 @@ function ArchitectureNode({ node, selected, highlighted, dimmed, labelVisible =onOpen?: () => void;}) {const color = node.tint ?? PALETTE[node.kind];- const fill = useMemo(() => new Color('#27333e').lerp(new Color(color), selected ? 0.34 : highlighted ? 0.25 : 0.18), [color, selected, highlighted]);+ const fill = useMemo(() => new Color(SCENE_PALETTE.body).lerp(new Color(color), selected ? 0.34 : highlighted ? 0.25 : 0.18), [color, selected, highlighted]);const size = dimensions(node);const labelY = size[1] + 7;const measure = node.measure;@@ -152,7 +153,7 @@ function ArchitectureNode({ node, selected, highlighted, dimmed, labelVisible =<meshStandardMaterial color={fill} roughness={0.85} metalness={0.05}emissive={color} emissiveIntensity={selected ? 0.08 : highlighted ? 0.035 : 0.008}transparent opacity={dimmed ? 0.14 : selected ? 0.65 : highlighted ? 0.55 : 0.42} depthWrite={false} />- <Edges color={selected ? '#f0fff9' : color} transparent opacity={dimmed ? 0.12 : selected ? 1 : highlighted ? 0.85 : 0.48} />+ <Edges color={selected ? SCENE_PALETTE.selected : color} transparent opacity={dimmed ? 0.12 : selected ? 1 : highlighted ? 0.85 : 0.48} /></mesh>{roofLanguages.map(language => {const width = size[0] * (measure?.lines ? language.lines : language.files) / roofTotal;@@ -163,7 +164,7 @@ function ArchitectureNode({ node, selected, highlighted, dimmed, labelVisible =})}{selected && <mesh position={[0, 0.05, 0]} rotation={[-Math.PI / 2, 0, 0]} raycast={() => null}><ringGeometry args={[Math.max(size[0], size[2]) * 0.65, Math.max(size[0], size[2]) * 0.65 + 0.12, 64]} />- <meshBasicMaterial color="#ecfff7" transparent opacity={0.85} depthWrite={false} />+ <meshBasicMaterial color={SCENE_PALETTE.selected} transparent opacity={0.85} depthWrite={false} /></mesh>}<Html position={[0, labelY, 0]} center zIndexRange={selected ? [60, 50] : [20, 10]}><button type="button" className={`architecture-node-label${selected ? ' is-selected' : ''}${dimmed ? ' is-dimmed' : ''}${labelVisible ? '' : ' is-hidden'}`}@@ -347,12 +348,12 @@ export function ArchitectureScene({ model: graphModel, selectedId, selectedEdgeI<Canvas {...background} frameloop={active ? 'demand' : 'never'} dpr={[1, 1.5]}gl={{ antialias: true, alpha: false, powerPreference: 'low-power' }}role="img" aria-label={`${model.title}. ${model.positionMeaning}. Use the adjacent list to select nodes and inspect relationships.`}>- <color attach="background" args={['#0b1118']} />+ <color attach="background" args={[SCENE_PALETTE.background]} /><OrthographicCamera makeDefault position={[80, 100, 100]} near={0.1} far={2000} zoom={5} /><ambientLight intensity={1.6} />- <directionalLight position={[30, 80, 20]} intensity={2.4} color="#dcfff3" />- <directionalLight position={[-20, 20, -30]} intensity={1.2} color="#a899ff" />- <gridHelper args={[extent, Math.min(80, Math.ceil(extent / 12)), '#1c3440', '#15242e']} position={[0, floorY, 0]} />+ <directionalLight position={[30, 80, 20]} intensity={2.4} color={SCENE_PALETTE.keyLight} />+ <directionalLight position={[-20, 20, -30]} intensity={1.2} color={SCENE_PALETTE.fillLight} />+ <gridHelper args={[extent, Math.min(80, Math.ceil(extent / 12)), SCENE_PALETTE.gridMajor, SCENE_PALETTE.gridMinor]} position={[0, floorY, 0]} />{model.platforms?.map(platform => <FolderPlatform key={platform.id} platform={platform} />)}{model.nodes.filter(node => node.gravity).map(node => <GravityWell key={`gravity:${node.id}`} node={node} floorY={floorY} dimmed={related.size > 0 && !related.has(node.id)} />)}{model.edges.map(edge => {@@ -371,7 +372,7 @@ export function ArchitectureScene({ model: graphModel, selectedId, selectedEdgeI<OrbitControls ref={controls} makeDefault enabled={active} enableRotate={!planar} enableDamping={false}mouseButtons={{ LEFT: planar ? MOUSE.PAN : MOUSE.ROTATE, MIDDLE: MOUSE.DOLLY, RIGHT: MOUSE.PAN }}touches={{ ONE: planar ? TOUCH.PAN : TOUCH.ROTATE, TWO: TOUCH.DOLLY_PAN }}- minZoom={0.15} maxZoom={60} rotateSpeed={0.5} zoomSpeed={0.8} maxPolarAngle={Math.PI / 2.05} zoomToCursor />+ minZoom={0.15} maxZoom={60} rotateSpeed={0.5} zoomSpeed={0.8} maxPolarAngle={SCENE_MAX_TILT} zoomToCursor /><FitArchitecture model={model} planar={planar} resetKey={resetKey} controls={controls} active={active} />{(adaptiveLabels || model.view === 'hotspots') && <HotspotLabels model={model} priorityId={selectedId ?? hoveredId} onVisible={setVisibleHotspotLabels} />}</Canvas>diff --git a/graph-ui/src/architecture/SystemArchitectureScene.tsx b/graph-ui/src/architecture/SystemArchitectureScene.tsxindex 279824853..a61adcacb 100644--- a/graph-ui/src/architecture/SystemArchitectureScene.tsx+++ b/graph-ui/src/architecture/SystemArchitectureScene.tsx@@ -7,6 +7,7 @@ import { edgeColor, isDirectedEdge, normalizeEdgeType } from '../graph/edge-stylimport { EdgePulseLayer } from '../graph/EdgePulseLayer';import { useGraphBackgroundReset } from '../graph/useGraphBackgroundReset';import { connectionLoad, type ConnectionLoad } from '../graph/connection-load';+import { SCENE_MAX_TILT, SCENE_PALETTE } from './scene-palette';/** The model keeps its stable XY layout; rendering places that footprint on XZ. */const groundPosition = ([x, y, z]: [number, number, number]): Vector3 => new Vector3(x, z, -y);@@ -82,8 +83,8 @@ function FolderBackplate({ lane }: { lane: SystemSceneLane }) {return <group position={groundPosition(lane.position)}><mesh raycast={() => null}><boxGeometry args={[lane.width, lane.depth, height]} />- <meshStandardMaterial color="#536977" roughness={0.95} transparent opacity={0.09} depthWrite={false} />- <Edges color="#6e8a98" transparent opacity={0.24} />+ <meshStandardMaterial color={SCENE_PALETTE.plate} roughness={0.95} transparent opacity={0.09} depthWrite={false} />+ <Edges color={SCENE_PALETTE.plateEdge} transparent opacity={0.24} /></mesh><Html position={[-lane.width / 2 + 3, lane.depth / 2 + 0.2, -height / 2 + 3]} zIndexRange={[5, 1]} style={{ pointerEvents: 'none' }}><span className="system-scene-lane-label" data-folder-id={lane.id} title={lane.label}>{lane.label}</span>@@ -183,7 +184,7 @@ function NodeLabels({ model, selectedNode, highlightedPathIndex, onSelect, onExpdata-node-id={node.id} data-position={center(node).toArray().join(',')} data-size={dimensions(node).join(',')}data-color={node.visual?.color} data-color-label={node.visual?.label}data-connection-load={loads?.get(node.id)?.links}- style={{ '--system-node-tint': node.visual?.color ?? '#91a6b4' } as CSSProperties}+ style={{ '--system-node-tint': node.visual?.color ?? SCENE_PALETTE.node } as CSSProperties}data-muted={!activeNode(model, node, highlightedPathIndex)} title={`${node.label} · ${node.detail}${loads ? ` · ${loads.get(node.id)?.links ?? 0} visible links · ${loads.get(node.id)?.neighbors ?? 0} connected items` : ''}${node.visual ? ` · ${node.visual.label}${node.visual.basis ? ` (${node.visual.basis})` : ''}` : ''}`}type="button" aria-label={`${node.label} · ${node.detail}`} aria-pressed={selectedNode === node.id}onClick={() => onSelect(node.id)} onDoubleClick={onExpand && (node.group || presentation === 'journey') ? () => onExpand(node.id) : undefined}>@@ -245,11 +246,11 @@ export default function SystemArchitectureScene({ model, selectedNode, selectedEreturn <SceneBoundary><div className="system-scene" data-testid="system-scene" data-projection={planar ? 'plan' : '3d'}><Canvas {...background} frameloop={active ? 'demand' : 'never'} dpr={[1, 1.5]} gl={{ antialias: true, alpha: false, powerPreference: 'low-power' }}role="img" aria-label={presentation === 'journey' ? 'Behavior call journey. Follow recorded invocations across component lanes. Double-click an operation to explore its calls.' : `System ${planar ? 'plan' : '3D map'}. Groups lie on a ground plane; expanded members sit above their group. Use the adjacent list to inspect source evidence.`}>- <color attach="background" args={['#0b1118']} />+ <color attach="background" args={[SCENE_PALETTE.background]} /><OrthographicCamera makeDefault position={[80, 115, 105]} zoom={4} near={0.1} far={10000} />- <ambientLight intensity={1.6} /><directionalLight position={[30, 80, 20]} intensity={2.4} color="#dcfff3" />- <directionalLight position={[-20, 20, -30]} intensity={1.2} color="#a899ff" />- <gridHelper args={[extent, Math.min(80, Math.ceil(extent / 12)), '#1c3440', '#15242e']} position={[0, floorY, 0]} raycast={() => null} />+ <ambientLight intensity={1.6} /><directionalLight position={[30, 80, 20]} intensity={2.4} color={SCENE_PALETTE.keyLight} />+ <directionalLight position={[-20, 20, -30]} intensity={1.2} color={SCENE_PALETTE.fillLight} />+ <gridHelper args={[extent, Math.min(80, Math.ceil(extent / 12)), SCENE_PALETTE.gridMajor, SCENE_PALETTE.gridMinor]} position={[0, floorY, 0]} raycast={() => null} />{(model.lanes ?? []).map(lane => <FolderBackplate key={lane.id} lane={lane} />)}{showConnectionLoad && model.nodes.map(node => {const load = loads.get(node.id)!;@@ -259,7 +260,7 @@ export default function SystemArchitectureScene({ model, selectedNode, selectedEreturn <mesh key={`load:${node.id}`} position={[position.x, position.y - size[1] / 2 - 0.1, position.z]}rotation={[-Math.PI / 2, 0, 0]} scale={[size[0] * 0.56, size[2] * 0.62, 1]} raycast={() => null}><ringGeometry args={[1, Math.sqrt(1 + load.strength * 1.1), 48]} />- <meshBasicMaterial color="#91a6b4" transparent opacity={muted ? 0.025 : 0.08 + load.strength * 0.12} depthWrite={false} />+ <meshBasicMaterial color={SCENE_PALETTE.node} transparent opacity={muted ? 0.025 : 0.08 + load.strength * 0.12} depthWrite={false} /></mesh>;})}{model.edges.map(edge => {@@ -272,21 +273,21 @@ export default function SystemArchitectureScene({ model, selectedNode, selectedE<EdgePulseLayer paths={pulsePaths} active={active} />{model.nodes.map(node => {const selected = selectedNode === node.id, active = activeNode(model, node, activePath) && (!neighborhood.size || neighborhood.has(node.id)), size = dimensions(node);- const color = node.visual?.color ?? (node.kind === 'remainder' ? '#9c9a8b' : '#91a6b4');- const fill = new Color('#27333e').lerp(new Color(color), selected ? 0.34 : 0.2);+ const color = node.visual?.color ?? (node.kind === 'remainder' ? SCENE_PALETTE.remainder : SCENE_PALETTE.node);+ const fill = new Color(SCENE_PALETTE.body).lerp(new Color(color), selected ? 0.34 : 0.2);return <mesh key={node.id} position={center(node)} onClick={event => { event.stopPropagation(); onSelectNode(node.id); }}onDoubleClick={onExpandNode && (node.group || presentation === 'journey') ? event => { event.stopPropagation(); onExpandNode(node.id); } : undefined}><boxGeometry args={size} /><meshStandardMaterial color={fill} roughness={0.85} metalness={0.05} emissive={color} emissiveIntensity={selected ? 0.05 : 0.008}transparent opacity={selected ? 0.6 : !active ? 0.045 : node.expanded ? 0.065 : node.parentId ? 0.36 : 0.28} depthWrite={false} />- <Edges color={selected ? '#f0f6fa' : color} transparent opacity={selected ? 0.95 : !active ? 0.12 : node.expanded ? 0.36 : 0.46} />+ <Edges color={selected ? SCENE_PALETTE.selected : color} transparent opacity={selected ? 0.95 : !active ? 0.12 : node.expanded ? 0.36 : 0.46} /></mesh>;})}<NodeLabels model={model} selectedNode={selectedNode} highlightedPathIndex={activePath} onSelect={onSelectNode} onExpand={onExpandNode} loads={showConnectionLoad ? loads : undefined} presentation={presentation} /><OrbitControls makeDefault enabled={active} enableRotate={!planar} enableDamping={false}mouseButtons={{ LEFT: planar ? MOUSE.PAN : MOUSE.ROTATE, MIDDLE: MOUSE.DOLLY, RIGHT: MOUSE.PAN }}touches={{ ONE: planar ? TOUCH.PAN : TOUCH.ROTATE, TWO: TOUCH.DOLLY_PAN }}- minZoom={0.15} maxZoom={90} rotateSpeed={0.5} zoomSpeed={0.8} maxPolarAngle={Math.PI / 2.05} zoomToCursor />+ minZoom={0.15} maxZoom={90} rotateSpeed={0.5} zoomSpeed={0.8} maxPolarAngle={SCENE_MAX_TILT} zoomToCursor /><ScopeCamera model={model} resetKey={resetKey} planar={planar} presentation={presentation} /></Canvas></div></SceneBoundary>;diff --git a/graph-ui/src/architecture/architecture-scene.css b/graph-ui/src/architecture/architecture-scene.cssindex 3b96b51ed..236354c61 100644--- a/graph-ui/src/architecture/architecture-scene.css+++ b/graph-ui/src/architecture/architecture-scene.css@@ -5,13 +5,13 @@min-height: 480px;overflow: hidden;isolation: isolate;- background: #0b1118;+ background: var(--arch-background);border-radius: 12px;}.architecture-scene canvas { display: block; outline: none; touch-action: none; }.architecture-scene button { font-family: inherit; }-.architecture-folder-label { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #91a4af; font: 10px/1.4 var(--atlas-mono, monospace); letter-spacing: 0.02em; text-shadow: 0 1px 5px #0b1118; }+.architecture-folder-label { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--arch-folder-label); font: 10px/1.4 var(--atlas-mono, monospace); letter-spacing: 0.02em; text-shadow: 0 1px 5px var(--arch-background); }.architecture-node-label {display: flex;@@ -21,29 +21,29 @@min-width: 78px;max-width: 178px;padding: 9px 12px;- border: 1px solid #334754;+ border: 1px solid var(--arch-label-border);border-radius: 8px;- background: #0e1925ed;- color: #e1ecef;- box-shadow: 0 5px 20px #03070c66;+ background: var(--arch-label);+ color: var(--arch-label-text);+ box-shadow: 0 5px 20px #02080566;text-align: left;white-space: normal;cursor: pointer;transition: border-color 100ms, opacity 100ms;}-.architecture-node-label:hover, .architecture-node-label:focus-visible { border-color: #8bccdf; outline: 2px solid #8bccdf55; outline-offset: 2px; }-.architecture-node-label.is-selected { border-color: #83e4c3; background: #13282e; box-shadow: 0 0 0 1px #83e4c326, 0 5px 22px #03070c99; }+.architecture-node-label:hover, .architecture-node-label:focus-visible { border-color: var(--arch-label-focus); outline: 2px solid color-mix(in srgb, var(--arch-label-focus) 33%, transparent); outline-offset: 2px; }+.architecture-node-label.is-selected { border-color: var(--arch-label-focus); background: var(--arch-label-selected); box-shadow: 0 0 0 1px color-mix(in srgb, var(--arch-label-focus) 15%, transparent), 0 5px 22px #02080599; }.architecture-node-label.is-dimmed { opacity: 0.28; }.architecture-node-label.is-hidden { visibility: hidden; pointer-events: none; }.architecture-node-label strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }.architecture-node-title { display:flex; align-items:center; gap:7px; min-width:0; }.architecture-node-title strong { min-width:0; }-.architecture-node-size { flex-shrink:0; color:#a5b5bf; font:9px/1.35 var(--atlas-mono, monospace); font-variant-numeric:tabular-nums; }-.architecture-node-kind { display: flex; gap: 5px; align-items: center; font-size: 9px; line-height: 1.1; color: #9cadba; text-transform: uppercase; letter-spacing: 0.09em; }+.architecture-node-size { flex-shrink:0; color:var(--arch-label-muted); font:9px/1.35 var(--atlas-mono, monospace); font-variant-numeric:tabular-nums; }+.architecture-node-kind { display: flex; gap: 5px; align-items: center; font-size: 9px; line-height: 1.1; color: var(--arch-label-muted); text-transform: uppercase; letter-spacing: 0.09em; }.architecture-node-kind i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }-.architecture-node-detail { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.35; color: #91a8b3; }-.architecture-node-metric { display:flex; align-items:center; gap:5px; color:#b4c5ce; font:10px/1.3 var(--atlas-mono, monospace); white-space:nowrap; }+.architecture-node-detail { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.35; color: var(--arch-label-muted); }+.architecture-node-metric { display:flex; align-items:center; gap:5px; color:var(--arch-label-muted); font:10px/1.3 var(--atlas-mono, monospace); white-space:nowrap; }.architecture-node-metric i { width:6px; height:6px; border-radius:2px; flex-shrink:0; }.architecture-node-label[data-kind="route"] { border-color: #735d40; }.architecture-node-label[data-kind="symbol"] { border-color: #554d70; }@@ -52,18 +52,18 @@padding: 4px 7px;border: 1px solid;border-radius: 5px;- background: #0b1525f5;- color: #e2ebf3;+ background: var(--arch-edge-label);+ color: var(--arch-label-text);font-size: 10px;line-height: 1.3;white-space: nowrap;cursor: pointer;box-shadow: 0 2px 10px #0008;}-.architecture-edge-label span { color: #9cafbc; }-.architecture-edge-label:focus-visible { outline: 2px solid #d9efff; outline-offset: 2px; }-.architecture-scene-guide { position: absolute; bottom: 14px; left: 16px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #233641; border-radius: 7px; background: #0b141dcc; color: #879eaa; font-size: 10px; line-height: 1.2; pointer-events: none; }-.architecture-scene-guide span { color: #94dbc9; letter-spacing: 0.1em; font-size: 9px; }+.architecture-edge-label span { color: var(--arch-label-muted); }+.architecture-edge-label:focus-visible { outline: 2px solid var(--arch-label-focus); outline-offset: 2px; }+.architecture-scene-guide { position: absolute; bottom: 14px; left: 16px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--arch-line); border-radius: 7px; background: color-mix(in srgb, var(--arch-background) 80%, transparent); color: var(--arch-muted); font-size: 10px; line-height: 1.2; pointer-events: none; }+.architecture-scene-guide span { color: var(--arch-accent); letter-spacing: 0.1em; font-size: 9px; }@media (max-width: 800px) {.architecture-scene { min-height: 400px; }.architecture-node-label { max-width: 140px; padding: 7px 9px; }diff --git a/graph-ui/src/architecture/behavior-journey.css b/graph-ui/src/architecture/behavior-journey.cssindex e106cb02a..952901c9f 100644--- a/graph-ui/src/architecture/behavior-journey.css+++ b/graph-ui/src/architecture/behavior-journey.css@@ -1,73 +1,73 @@-.behavior-journey { --journey-line: #8ca5bc29; font-family: var(--atlas-ui-font, system-ui, sans-serif); }+.behavior-journey { --journey-line: var(--arch-line); --journey-tint: color-mix(in srgb, var(--arch-accent) 4%, transparent); font-family: var(--atlas-ui-font, system-ui, sans-serif); }.behavior-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 18px 0; }.behavior-heading h2 { font-size: 25px; font-weight: 500; letter-spacing: -.6px; margin: 7px 0; overflow-wrap: anywhere; }.behavior-heading p { color: var(--atlas-dim); font-size: 12px; margin: 0; }.behavior-journey button { cursor: pointer; }-.behavior-heading > button, .behavior-navigation > button, .behavior-inspector-actions button, .behavior-walk button, .behavior-visual-toolbar > button, .behavior-source-heading button { background: #9bb5ca09; color: #becbd7; border: 1px solid var(--journey-line); border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 11px; }+.behavior-heading > button, .behavior-navigation > button, .behavior-inspector-actions button, .behavior-walk button, .behavior-visual-toolbar > button, .behavior-source-heading button { background: var(--journey-tint); color: var(--arch-label-text); border: 1px solid var(--journey-line); border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 11px; }.behavior-journey button:disabled { opacity: .35; cursor: default; }-.behavior-journey button:focus-visible { outline: 2px solid #8eadce; outline-offset: 3px; }-.behavior-requests { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--journey-line); border-radius: 10px; background: #91a8c106; }+.behavior-journey button:focus-visible { outline: 2px solid var(--arch-label-focus); outline-offset: 3px; }+.behavior-requests { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--journey-line); border-radius: 10px; background: var(--journey-tint); }.behavior-requests label { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--atlas-dim); flex: 1 1 270px; min-width: 0; }.behavior-requests select { min-width: 0; width: 100%; max-width: 100%; }.behavior-requests input { flex: 1 1 150px; min-width: 120px; background: transparent; color: var(--atlas-fg); border: 1px solid var(--journey-line); border-radius: 5px; padding: 6px 9px; font: inherit; font-size: 11px; }.behavior-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 12px 0; font-size: 11px; color: var(--atlas-dim); }.behavior-navigation > span:first-of-type { margin-left: 4px; }-.behavior-static-badge { margin-left: auto; border: 1px solid #91a6bb25; border-radius: 20px; padding: 4px 9px; font-size: 10px; }-.behavior-stage { display: grid; grid-template-columns: minmax(0, 1fr) 310px; border: 1px solid var(--journey-line); border-radius: 12px; overflow: hidden; background: #0b1118; }+.behavior-static-badge { margin-left: auto; border: 1px solid var(--journey-line); border-radius: 20px; padding: 4px 9px; font-size: 10px; }+.behavior-stage { display: grid; grid-template-columns: minmax(0, 1fr) 310px; border: 1px solid var(--journey-line); border-radius: 12px; overflow: hidden; background: var(--arch-background); }.behavior-visual { min-width: 0; }-.behavior-visual-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--journey-line); color: #9baec1; font-size: 10px; }+.behavior-visual-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--journey-line); color: var(--arch-muted); font-size: 10px; }.behavior-visual-toolbar > span { margin-right: auto; letter-spacing: 1.4px; }.system-architecture.behavior-journey .behavior-map { height: clamp(410px, calc(100dvh - 400px), 680px); }.behavior-journey .system-map-caption { gap: 5px; font-size: 10px; }-.behavior-inspector { min-width: 0; border-left: 1px solid var(--journey-line); padding: 18px; max-height: clamp(500px, calc(100dvh - 320px), 790px); overflow: auto; background: #101820; }+.behavior-inspector { min-width: 0; border-left: 1px solid var(--journey-line); padding: 18px; max-height: clamp(500px, calc(100dvh - 320px), 790px); overflow: auto; background: var(--arch-panel-raised); }.behavior-inspector h3 { overflow-wrap: anywhere; font-size: 19px; font-weight: 500; line-height: 1.25; margin: 12px 0; }-.behavior-inspector > p { color: #99aabd; font-size: 11px; overflow-wrap: anywhere; line-height: 1.6; }-.behavior-call-arrow { display: block; color: #7399b1; font-size: 16px; margin: 6px 0; }+.behavior-inspector > p { color: var(--arch-muted); font-size: 11px; overflow-wrap: anywhere; line-height: 1.6; }+.behavior-call-arrow { display: block; color: var(--arch-accent-line); font-size: 16px; margin: 6px 0; }.behavior-inspector-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }.behavior-resolution { font-size: 10px !important; }.behavior-contract section { padding: 12px 0; border-top: 1px solid var(--journey-line); }-.behavior-contract h4 { margin: 0 0 8px; font-size: 11px; font-weight: 500; color: #b4c9dc; }-.behavior-contract code { font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: #d0deeb; }+.behavior-contract h4 { margin: 0 0 8px; font-size: 11px; font-weight: 500; color: var(--arch-label-text); }+.behavior-contract code { font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--arch-text); }.behavior-contract ol, .behavior-contract ul { padding-left: 18px; margin: 6px 0; }-.behavior-contract li { margin: 6px 0; color: #8298ac; font-size: 10px; }-.behavior-contract small { display: block; margin-top: 5px; font-size: 9px; line-height: 1.5; color: #7e96ac; }-.behavior-signature { display: block; padding: 8px; border-radius: 5px; background: #0b1219; }+.behavior-contract li { margin: 6px 0; color: var(--arch-muted); font-size: 10px; }+.behavior-contract small { display: block; margin-top: 5px; font-size: 9px; line-height: 1.5; color: var(--arch-muted); }+.behavior-signature { display: block; padding: 8px; border-radius: 5px; background: var(--arch-code); }.behavior-source { border-top: 1px solid var(--journey-line); padding-top: 14px; margin-top: 16px; }.behavior-source-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.behavior-source h4, .behavior-immediate-list h4 { font-size: 11px; font-weight: 500; margin: 0; }.behavior-source-heading button { padding: 4px 6px; font-size: 10px; }-.behavior-source-location { color: #91a5b9; font-size: 10px; overflow-wrap: anywhere; margin: 8px 0; }-.behavior-source pre { max-height: 255px; overflow: auto; background: #080f17; border-radius: 7px; padding: 10px 0; font-size: 10px; line-height: 1.7; color: #bdcbd9; tab-size: 4; }+.behavior-source-location { color: var(--arch-muted); font-size: 10px; overflow-wrap: anywhere; margin: 8px 0; }+.behavior-source pre { max-height: 255px; overflow: auto; background: var(--arch-code); border-radius: 7px; padding: 10px 0; font-size: 10px; line-height: 1.7; color: var(--arch-text); tab-size: 4; }.behavior-source code > span { display: block; white-space: pre; min-width: max-content; padding-right: 12px; }-.behavior-source code i { display: inline-block; width: 34px; padding-right: 8px; font-style: normal; color: #5f758b; text-align: right; user-select: none; }-.behavior-source code > span[data-selected=true] { background: #638db328; box-shadow: inset 2px 0 #7ca1bf; color: #ecf3fa; }-.behavior-source > small { font-size: 9px; color: #8b9db0; line-height: 1.5; display: block; }+.behavior-source code i { display: inline-block; width: 34px; padding-right: 8px; font-style: normal; color: color-mix(in srgb, var(--arch-muted) 65%, transparent); text-align: right; user-select: none; }+.behavior-source code > span[data-selected=true] { background: var(--arch-code-line); box-shadow: inset 2px 0 var(--arch-accent); color: var(--arch-selected); }+.behavior-source > small { font-size: 9px; color: var(--arch-muted); line-height: 1.5; display: block; }.behavior-source > p[role=status] { font-size: 11px; color: #b4a999; }-.behavior-walk { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--journey-line); padding: 12px 14px; color: #9baec1; font-size: 11px; }-.behavior-walk input { min-width: 40px; flex: 1; accent-color: #8caec7; }+.behavior-walk { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--journey-line); padding: 12px 14px; color: var(--arch-muted); font-size: 11px; }+.behavior-walk input { min-width: 40px; flex: 1; accent-color: var(--arch-accent); }.behavior-paths { display: flex; overflow-x: auto; gap: 7px; margin: 12px 0; }-.behavior-paths button { display: grid; gap: 4px; background: #94b6d20a; border: 1px solid var(--journey-line); border-radius: 7px; padding: 8px 12px; color: #b8cadb; font: inherit; font-size: 11px; white-space: nowrap; }-.behavior-paths button small { color: #8198ae; font-size: 10px; }-.behavior-paths button[aria-pressed=true] { border-color: #8bacce94; background: #719ec51a; }+.behavior-paths button { display: grid; gap: 4px; background: var(--journey-tint); border: 1px solid var(--journey-line); border-radius: 7px; padding: 8px 12px; color: var(--arch-label-text); font: inherit; font-size: 11px; white-space: nowrap; }+.behavior-paths button small { color: var(--arch-muted); font-size: 10px; }+.behavior-paths button[aria-pressed=true] { border-color: var(--arch-accent-line); background: var(--arch-accent-bg); }.behavior-operation-strip { display: flex; gap: 7px; overflow-x: auto; list-style: none; padding: 14px 0; margin: 0; }.behavior-operation-strip li { flex: 0 0 170px; }-.behavior-operation-strip button { display: grid; width: 100%; grid-template-columns: 20px minmax(0, 1fr); gap: 5px 8px; text-align: left; border: 1px solid var(--journey-line); border-radius: 8px; padding: 10px; background: #91a9c006; color: #a8bace; font: inherit; font-size: 11px; }-.behavior-operation-strip button > span { grid-row: span 2; color: #6e95b7; }+.behavior-operation-strip button { display: grid; width: 100%; grid-template-columns: 20px minmax(0, 1fr); gap: 5px 8px; text-align: left; border: 1px solid var(--journey-line); border-radius: 8px; padding: 10px; background: var(--journey-tint); color: var(--arch-label-text); font: inherit; font-size: 11px; }+.behavior-operation-strip button > span { grid-row: span 2; color: var(--arch-accent-line); }.behavior-operation-strip strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }-.behavior-operation-strip small { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7d96ae; }-.behavior-operation-strip button[aria-pressed=true] { border-color: #88abc780; background: #719ec51a; color: #e0ebf7; }-.behavior-limits { border-top: 1px solid var(--journey-line); padding: 14px 0; color: #91a5b9; font-size: 11px; }+.behavior-operation-strip small { font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--arch-muted); }+.behavior-operation-strip button[aria-pressed=true] { border-color: var(--arch-accent-line); background: var(--arch-accent-bg); color: var(--arch-label-text); }+.behavior-limits { border-top: 1px solid var(--journey-line); padding: 14px 0; color: var(--arch-muted); font-size: 11px; }.behavior-limits summary { cursor: pointer; }.behavior-limits p { max-width: 950px; }.behavior-next-operation, .behavior-immediate-list { margin-top: 18px; border-top: 1px solid var(--journey-line); padding-top: 14px; }-.behavior-next-operation > span { color: #839eb8; font-size: 10px; display: block; margin-bottom: 6px; }-.behavior-next-operation button, .behavior-immediate-list button { background: transparent; border: 0; color: #b5cee4; padding: 6px 0; text-align: left; font: inherit; font-size: 11px; overflow-wrap: anywhere; }-.behavior-immediate-list button { display: flex; align-items: center; gap: 12px; width: 100%; border-bottom: 1px solid #91a6bb12; }-.behavior-immediate-list small { margin-left: auto; color: #849aaf; font-size: 9px; white-space: nowrap; }-.behavior-loading { min-height: 310px; display: flex; align-items: center; justify-content: center; color: #829bb2; font-size: 12px; padding: 25px; text-align: center; }+.behavior-next-operation > span { color: var(--arch-muted); font-size: 10px; display: block; margin-bottom: 6px; }+.behavior-next-operation button, .behavior-immediate-list button { background: transparent; border: 0; color: var(--arch-label-text); padding: 6px 0; text-align: left; font: inherit; font-size: 11px; overflow-wrap: anywhere; }+.behavior-immediate-list button { display: flex; align-items: center; gap: 12px; width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--arch-line) 60%, transparent); }+.behavior-immediate-list small { margin-left: auto; color: var(--arch-muted); font-size: 9px; white-space: nowrap; }+.behavior-loading { min-height: 310px; display: flex; align-items: center; justify-content: center; color: var(--arch-muted); font-size: 12px; padding: 25px; text-align: center; }.behavior-limited { display: grid; gap: 8px; max-width: 560px; }-.behavior-limited strong { color: #c4d6e6; font-weight: 500; }-.system-architecture .system-scene .system-scene-node-label[data-presentation=journey] { width: 116px; height: 58px; gap: 3px; padding: 7px; background: #14212ef2; border-radius: 8px; }+.behavior-limited strong { color: var(--arch-text); font-weight: 500; }+.system-architecture .system-scene .system-scene-node-label[data-presentation=journey] { width: 116px; height: 58px; gap: 3px; padding: 7px; background: var(--arch-label); border-radius: 8px; }.system-architecture .system-scene .system-scene-node-label[data-presentation=journey] small { font-size: 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }.system-architecture .system-scene .system-scene-node-label[data-presentation=journey] strong { font-size: 10px; }@media (max-width: 1000px) { .behavior-stage { grid-template-columns: minmax(0, 1fr) 280px; } .behavior-inspector { padding: 14px; } }diff --git a/graph-ui/src/architecture/container-map.css b/graph-ui/src/architecture/container-map.cssindex 3cdb08415..14471b0fb 100644--- a/graph-ui/src/architecture/container-map.css+++ b/graph-ui/src/architecture/container-map.css@@ -7,7 +7,7 @@.container-call-key { width:18px; height:2px; background:#7da4ba; }.container-map .spatial-map { height:clamp(540px,64vh,820px); }.container-map .spatial-inspector { max-height:clamp(540px,64vh,820px); }-.container-map .architecture-node-label:not(.is-selected) { max-width:145px; background:#101b23db; border-color:#63889380; border-radius:6px; padding:7px 12px; }+.container-map .architecture-node-label:not(.is-selected) { max-width:145px; background:var(--arch-label); border-color:color-mix(in srgb, var(--arch-accent-line) 50%, transparent); border-radius:6px; padding:7px 12px; }.container-map .architecture-node-label:not(.is-selected) strong { font-size:12px; }.container-facts { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; font-size:11px; line-height:1.6; }.container-facts dt { color:var(--spatial-muted); }diff --git a/graph-ui/src/architecture/scene-palette.test.ts b/graph-ui/src/architecture/scene-palette.test.tsnew file mode 100644index 000000000..225b299f4--- /dev/null+++ b/graph-ui/src/architecture/scene-palette.test.ts@@ -0,0 +1,41 @@+import { readFileSync } from 'node:fs';+import { dirname, join } from 'node:path';+import { fileURLToPath } from 'node:url';+import { describe, expect, it } from 'vitest';+import { SCENE_PALETTE, scenePaletteStyle } from './scene-palette';++const here = dirname(fileURLToPath(import.meta.url));+const read = (name: string) => readFileSync(join(here, name), 'utf8');+/** Every file that draws or styles an Architecture scene: Overview, Routes, Hotspots, System structure, Behavior. */+const SCENE_FILES = ['ArchitectureScene.tsx', 'SystemArchitectureScene.tsx', 'architecture-scene.css', 'spatial-architecture.css',+ 'system-architecture.css', 'behavior-journey.css', 'container-map.css'];+/** The blue-grey scheme System structure and Behavior had next to the green Overview (Korrekturplan K19). */+const BLUE_GREY = ['#0b1118', '#1c3440', '#15242e', '#536977', '#6e8a98', '#91a6b4', '#27333e', '#0e1925', '#111923', '#14212e',+ '#101820', '#0b1219', '#080f17', '#0b1525', '#12252d', '#080f14', '#101b23', '#638db3', '#719ec5', '#8ca5bc', '#9bb5ca', '#b6c7d5'];+const rgb = (hex: string) => [1, 3, 5].map(at => parseInt(hex.slice(at, at + 2), 16));++describe('architecture scene palette', () => {+ it('leaves no blue-grey scene colour in any Architecture scene', () => {+ const found = SCENE_FILES.flatMap(name => BLUE_GREY.filter(color => read(name).toLowerCase().includes(color)).map(color => `${name}: ${color}`));+ expect(found).toEqual([]);+ });+ it('draws every scene surface in the green of the IDE', () => {+ for (const key of ['background', 'gridMajor', 'gridMinor', 'plate', 'plateEdge', 'body', 'node', 'panel', 'panelRaised', 'line', 'label', 'labelBorder', 'labelSelected', 'code'] as const) {+ const [red, green, blue] = rgb(SCENE_PALETTE[key]);+ expect(green, key).toBeGreaterThanOrEqual(blue);+ expect(green, key).toBeGreaterThanOrEqual(red);+ }+ });+ it('hands the same values to the DOM labels as CSS variables, so there is one table', () => {+ const style = scenePaletteStyle() as Record<string, string>;+ expect(style['--arch-background']).toBe(SCENE_PALETTE.background);+ expect(style['--arch-label-border']).toBe(SCENE_PALETTE.labelBorder);+ expect(Object.keys(style)).toHaveLength(Object.keys(SCENE_PALETTE).length);+ });+ it('uses the palette in both WebGL scenes and the variables in every scene stylesheet', () => {+ for (const name of ['ArchitectureScene.tsx', 'SystemArchitectureScene.tsx']) expect(read(name), name).toContain('SCENE_PALETTE.background');+ for (const name of ['architecture-scene.css', 'spatial-architecture.css', 'system-architecture.css', 'behavior-journey.css', 'container-map.css']) {+ expect(read(name), name).toContain('var(--arch-');+ }+ });+});diff --git a/graph-ui/src/architecture/scene-palette.ts b/graph-ui/src/architecture/scene-palette.tsnew file mode 100644index 000000000..0e6aa0e73--- /dev/null+++ b/graph-ui/src/architecture/scene-palette.ts@@ -0,0 +1,66 @@+import type { CSSProperties } from 'react';++/**+ * One colour scheme for every Architecture scene: Overview, Routes (Service+ * map and Endpoints), Hotspots, System structure and Behavior.+ *+ * The base is the green of the IDE (styles/tokens.css: --atlas-bg,+ * --atlas-panel, --atlas-line) and the accent of the Overview+ * (spatial-architecture.css). System structure and Behavior had a blue-grey+ * scheme of their own and read like another product. WebGL needs real colour+ * values, so they live here; the labels, panels and source blocks in the DOM+ * read the same values as CSS variables (scenePaletteStyle on the Architecture+ * root), so there is a single table.+ *+ * Relationship hues (graph/edge-style.ts), language tints and the amber of+ * hotspots and routes are encodings, not scenery, and stay as they are.+ */+export const SCENE_PALETTE = {+ /** Canvas clear colour and the ground of every scene container. */+ background: '#0b1311',+ gridMajor: '#1e3b31',+ gridMinor: '#13261f',+ /** Folder platforms, directory lanes and component lanes. */+ plate: '#4f7a68',+ plateEdge: '#6c9a86',+ /** The dark body a box colour is mixed into. */+ body: '#24322c',+ /** A box without its own tint: a group, component or operation. */+ node: '#8fc0aa',+ remainder: '#a6a68f',+ selected: '#effff8',+ keyLight: '#dcfff3',+ fillLight: '#a899ff',+ /** Map containers and their inspectors. */+ panel: '#0c1613',+ panelRaised: '#0e1a16',+ line: '#27443e',+ text: '#deece7',+ muted: '#91ada7',+ accent: '#6be7ba',+ accentStrong: '#85f0c3',+ accentLine: '#449e7b',+ accentBg: '#17332e',+ /** Chips on the map. */+ label: '#0e1a16ed',+ labelBorder: '#2f4d42',+ labelSelected: '#12291f',+ labelText: '#e1ede7',+ labelMuted: '#9ab5a9',+ labelFocus: '#83e4c3',+ folderLabel: '#94b4a7',+ edgeLabel: '#0d1714f5',+ /** Source excerpts beside a scene. */+ code: '#08110e',+ codeLine: '#6be7ba1f',+} as const;++/** The lowest the camera may tilt: a map turned edge-on reads as a flat line. */+export const SCENE_MAX_TILT = Math.PI * 7 / 18;++const variable = (key: string) => `--arch-${key.replace(/[A-Z]/g, letter => `-${letter.toLowerCase()}`)}`;++/** The palette as CSS variables for everything inside the Architecture workspace. */+export function scenePaletteStyle(): CSSProperties {+ return Object.fromEntries(Object.entries(SCENE_PALETTE).map(([key, value]) => [variable(key), value])) as CSSProperties;+}diff --git a/graph-ui/src/architecture/spatial-architecture.css b/graph-ui/src/architecture/spatial-architecture.cssindex d8d1b5107..2a34d6501 100644--- a/graph-ui/src/architecture/spatial-architecture.css+++ b/graph-ui/src/architecture/spatial-architecture.css@@ -1,9 +1,9 @@-.spatial-architecture { --spatial-line: #27443e; --spatial-muted: #91ada7; margin: 20px 0 28px; border: 1px solid var(--spatial-line); border-radius: 14px; background: #0b1517; overflow: hidden; color: #deece7; }+.spatial-architecture { --spatial-line: var(--arch-line, #27443e); --spatial-muted: var(--arch-muted, #91ada7); margin: 20px 0 28px; border: 1px solid var(--spatial-line); border-radius: 14px; background: var(--arch-panel); overflow: hidden; color: var(--arch-text); }.spatial-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:24px 24px 18px; }.spatial-eyebrow { color:#6be7ba; font: 11px/1.5 var(--atlas-mono, monospace); text-transform:uppercase; letter-spacing: .14em; }.atlas-architecture .spatial-heading h2 { margin:6px 0; font-size:24px; font-weight:550; letter-spacing:-.035em; text-transform:none; }.spatial-heading p { margin:8px 0 0; max-width:740px; font-size:13px; line-height:1.6; color:var(--spatial-muted); }-.spatial-architecture button, .spatial-architecture select { color:inherit; border:1px solid var(--spatial-line); border-radius:5px; background:#101e21; padding:7px 10px; font:inherit; font-size:12px; cursor:pointer; }+.spatial-architecture button, .spatial-architecture select { color:inherit; border:1px solid var(--spatial-line); border-radius:5px; background:var(--arch-panel-raised); padding:7px 10px; font:inherit; font-size:12px; cursor:pointer; }.spatial-architecture button:hover, .spatial-architecture button[aria-pressed=true] { color:#85f0c3; background:#17332e; border-color:#449e7b; }.spatial-architecture button:focus-visible, .spatial-architecture select:focus-visible, .spatial-architecture summary:focus-visible { outline:2px solid #8ce9f7; outline-offset:3px; }.spatial-architecture button:disabled { opacity:.5; cursor:default; }@@ -15,10 +15,10 @@.spatial-relations { flex-wrap:wrap; }.spatial-relations button { font-size:10px; padding:5px 7px; }.spatial-map-layout { display:grid; grid-template-columns:minmax(0, 1fr) 300px; }-.spatial-map { position:relative; height:clamp(490px,55vh,720px); min-width:0; background:radial-gradient(ellipse at 45% 45%,#12252d,#080f14 75%); overflow:hidden; }-.spatial-map-caption { position:absolute; pointer-events:none; bottom:0; left:0; right:0; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; background:linear-gradient(transparent,#080f14); color:#91ada7; padding:30px 18px 14px; font-size:10px; }+.spatial-map { position:relative; height:clamp(490px,55vh,720px); min-width:0; background:var(--arch-background); overflow:hidden; }+.spatial-map-caption { position:absolute; pointer-events:none; bottom:0; left:0; right:0; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; background:linear-gradient(transparent,var(--arch-background)); color:var(--arch-muted); padding:30px 18px 14px; font-size:10px; }.spatial-map .architecture-scene-guide { display:none; }-.spatial-map .architecture-node-label:not(.is-selected) { padding:5px 7px; min-width:0; max-width:112px; background:#0e1925e8; }+.spatial-map .architecture-node-label:not(.is-selected) { padding:5px 7px; min-width:0; max-width:112px; background:var(--arch-label); }.spatial-map .architecture-node-label:not(.is-selected) strong { font-size:10px; }.architecture-hotspot-mark { color:#edb780; }.spatial-hotspot-key { color:#d5b38d; }@@ -29,7 +29,7 @@.spatial-hotspot-details article button { text-align:left; overflow-wrap:anywhere; }.spatial-hotspot-details article > div { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }.spatial-hotspot-details article span { color:#dfc39f; background:#30271e; border:1px solid #574430; border-radius:4px; padding:3px 5px; font-size:10px; }-.spatial-inspector { padding:20px; min-width:0; max-height:clamp(490px,55vh,720px); overflow:auto; border-left:1px solid var(--spatial-line); background:#0d191c; }+.spatial-inspector { padding:20px; min-width:0; max-height:clamp(490px,55vh,720px); overflow:auto; border-left:1px solid var(--spatial-line); background:var(--arch-panel-raised); }.spatial-inspector h3 { font-size:18px; font-weight:500; overflow-wrap:anywhere; margin:10px 0; }.spatial-inspector h3 span { color:#6be7ba; }.spatial-inspector h4 { margin:20px 0 10px; font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:#91ada7; }@@ -51,7 +51,7 @@.spatial-relationship-list > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:6px; }.spatial-relationship-list button { text-align:left; overflow-wrap:anywhere; }.spatial-coverage p { font-size:11px; line-height:1.6; color:var(--spatial-muted); }-.spatial-encoding-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:10px 20px; border-bottom:1px solid var(--spatial-line); font-size:11px; color:var(--spatial-muted); background:#0d1b1e; }+.spatial-encoding-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:10px 20px; border-bottom:1px solid var(--spatial-line); font-size:11px; color:var(--spatial-muted); background:var(--arch-panel-raised); }.spatial-encoding-controls label { display:flex; align-items:center; gap:7px; }.spatial-encoding-controls select { font-size:11px; padding:5px 8px; }.spatial-language-legend { display:flex; flex-wrap:wrap; gap:10px; margin-left:auto; font-size:10px; }@@ -72,7 +72,7 @@.spatial-file-inventory { padding:0 20px 14px; border-top:1px solid var(--spatial-line); }.spatial-file-inventory > p { font-size:11px; line-height:1.6; color:var(--spatial-muted); max-width:900px; }.spatial-file-inventory label { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0; font-size:12px; }-.spatial-file-inventory input { border:1px solid var(--spatial-line); border-radius:5px; background:#0b1517; color:#deece7; padding:8px 10px; min-width:min(340px,65vw); }+.spatial-file-inventory input { border:1px solid var(--spatial-line); border-radius:5px; background:var(--arch-panel); color:var(--arch-text); padding:8px 10px; min-width:min(340px,65vw); }.spatial-inventory-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:8px; }.spatial-inventory-list article { padding:10px; border:1px solid var(--spatial-line); border-radius:6px; min-width:0; }.spatial-inventory-list button:first-child { display:block; max-width:100%; overflow-wrap:anywhere; text-align:left; border:0; padding:0; background:none; }diff --git a/graph-ui/src/architecture/system-architecture.css b/graph-ui/src/architecture/system-architecture.cssindex f44cd66e4..6849d8145 100644--- a/graph-ui/src/architecture/system-architecture.css+++ b/graph-ui/src/architecture/system-architecture.css@@ -25,7 +25,7 @@.system-architecture .system-map { height: clamp(320px, calc(100dvh - 540px), 620px); min-width: 0; position: relative; overflow: hidden; }.system-map-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 11px 16px; font-size: 11px; color: var(--atlas-dim); background: linear-gradient(transparent, var(--atlas-panel)); pointer-events: none; }.system-map-caption button { pointer-events: auto; }-.system-architecture .system-inspector { border-left: 1px solid var(--atlas-line); padding: 16px; min-height: 0; box-sizing: border-box; max-height: clamp(320px, calc(100dvh - 540px), 620px); overflow: auto; }+.system-architecture .system-inspector { border-left: 1px solid var(--atlas-line); background: var(--arch-panel-raised); padding: 16px; min-height: 0; box-sizing: border-box; max-height: clamp(320px, calc(100dvh - 540px), 620px); overflow: auto; }.system-inspector h3 { font-size: 17px; margin: 8px 0 14px; overflow-wrap: anywhere; }.system-inspector h4 { margin: 18px 0 8px; font-size: 12px; font-weight: 500; }.system-inspector h4 span { float: right; color: var(--atlas-dim); }@@ -77,7 +77,7 @@.system-scene-empty[data-limited="true"] p { color: var(--atlas-fg); max-width: 560px; }.system-progress { width: 26px; height: 26px; border: 1px solid #869f9638; border-top-color: #a0b6aa; border-radius: 50%; animation: system-progress-turn 1.3s linear infinite; }@keyframes system-progress-turn { to { transform: rotate(360deg); } }-.system-architecture .system-scene-node-label { display: grid; align-content: center; gap: 0; width: 96px; height: 28px; min-height: 0; box-sizing: border-box; margin: 0; background: #101816ec; color: #c0cec7; border: 1px solid #78928638; border-radius: 6px; padding: 6px 7px; text-align: center; line-height: 14px; font-family: var(--atlas-ui-font, system-ui, sans-serif); box-shadow: 0 2px 8px #0002; }+.system-architecture .system-scene-node-label { display: grid; align-content: center; gap: 0; width: 96px; height: 28px; min-height: 0; box-sizing: border-box; margin: 0; background: var(--arch-label); color: #c0cec7; border: 1px solid #78928638; border-radius: 6px; padding: 6px 7px; text-align: center; line-height: 14px; font-family: var(--atlas-ui-font, system-ui, sans-serif); box-shadow: 0 2px 8px #0002; }.system-architecture .system-scene-node-label strong { margin: 0; font-size: 11px; line-height: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.system-architecture .system-scene-node-label small { margin: 0; font-size: 9px; line-height: 11px; color: #94a79c; white-space: nowrap; }.system-architecture .system-scene-node-label[data-selected=true] { border-color: #9db5a7; color: #edf2ef; }@@ -105,24 +105,24 @@@media (prefers-reduced-motion: reduce) { .system-progress { animation: none; } }/* System maps share the Overview ground-plane canvas and restrained source tint. */-.system-architecture .system-scene { position: relative; isolation: isolate; width: 100%; height: 100%; min-width: 0; background: #0b1118; cursor: grab; }+.system-architecture .system-scene { position: relative; isolation: isolate; width: 100%; height: 100%; min-width: 0; background: var(--arch-background); cursor: grab; }.system-architecture .system-scene:active { cursor: grabbing; }.system-architecture .system-scene canvas { display: block; outline: none; touch-action: none; }-.system-architecture .system-scene .system-scene-node-label { color: #c4ced9; background: #111923ed; border-color: color-mix(in srgb, var(--system-node-tint, #91a6b4) 34%, transparent); box-shadow: 0 2px 8px #0003; cursor: pointer; }+.system-architecture .system-scene .system-scene-node-label { color: var(--arch-label-text); background: var(--arch-label); border-color: color-mix(in srgb, var(--system-node-tint, var(--arch-node)) 34%, transparent); box-shadow: 0 2px 8px #0003; cursor: pointer; }.system-architecture .system-scene .system-scene-node-label[data-kind=group]:not([data-expanded=true]) { width: 76px; height: 24px; gap: 0; padding: 4px 5px; }-.system-architecture .system-scene .system-scene-node-label small { color: #99a8b8; }-.system-architecture .system-scene .system-scene-node-label[data-focus=true] { border-color: #ced9e080; background: #1a2530ee; color: #e1e9ef; }-.system-architecture .system-scene .system-scene-node-label[data-selected=true] { border-color: #eff5fa; color: #f1f6fa; background: #1c2732f2; }-.system-architecture .system-scene .system-scene-node-label:focus-visible { outline: 2px solid #e5eef8; outline-offset: 2px; }-.system-architecture .system-scene .system-scene-lane-label { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: #9aaaba; background: #101923c9; font-size: 10px; }-.system-architecture .system-scene .system-scene-edge-label { background: #111923f2; border-color: #91a6b440; }+.system-architecture .system-scene .system-scene-node-label small { color: var(--arch-label-muted); }+.system-architecture .system-scene .system-scene-node-label[data-focus=true] { border-color: color-mix(in srgb, var(--arch-label-focus) 50%, transparent); background: var(--arch-label-selected); color: var(--arch-label-text); }+.system-architecture .system-scene .system-scene-node-label[data-selected=true] { border-color: var(--arch-label-focus); color: var(--arch-selected); background: var(--arch-label-selected); }+.system-architecture .system-scene .system-scene-node-label:focus-visible { outline: 2px solid var(--arch-label-focus); outline-offset: 2px; }+.system-architecture .system-scene .system-scene-lane-label { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: var(--arch-folder-label); background: color-mix(in srgb, var(--arch-background) 80%, transparent); font-size: 10px; }+.system-architecture .system-scene .system-scene-edge-label { background: var(--arch-edge-label); border-color: color-mix(in srgb, var(--arch-node) 25%, transparent); }.system-display-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 10px; color: var(--atlas-dim); font-size: 11px; }.system-layout-hint { margin-right: auto; }.system-display-controls label { display: flex; align-items: center; gap: 8px; }.system-view-switch { display: flex; border: 1px solid var(--atlas-line); border-radius: 7px; padding: 2px; }.system-view-switch button { background: transparent; color: var(--atlas-dim); border: 0; border-radius: 4px; padding: 5px 12px; font: inherit; }-.system-view-switch button[aria-pressed=true] { background: #b6c7d51a; color: var(--atlas-fg); }+.system-view-switch button[aria-pressed=true] { background: color-mix(in srgb, var(--arch-accent) 12%, transparent); color: var(--atlas-fg); }.system-color-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 2px; color: var(--atlas-dim); font-size: 10px; }.system-color-legend span { display: inline-flex; align-items: center; gap: 6px; }.system-color-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; opacity: .7; }