superlocalmemory 3.7.8 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/ATTRIBUTION.md +1 -3
  3. package/CHANGELOG.md +69 -0
  4. package/README.md +199 -29
  5. package/package.json +4 -2
  6. package/plugin/.claude-plugin/plugin.json +2 -2
  7. package/plugin/CLAUDE.md +8 -8
  8. package/plugin/agents/slm-governance-advisor.md +80 -0
  9. package/plugin/agents/slm-loop-runner.md +71 -0
  10. package/plugin/agents/slm-memory-advisor.md +10 -5
  11. package/plugin/agents/slm-optimize-advisor.md +9 -3
  12. package/plugin/commands/slm-loop.md +31 -0
  13. package/plugin/hooks/hooks.json +79 -0
  14. package/plugin/requirements.txt +1 -1
  15. package/plugin/scripts/slm-launch +46 -7
  16. package/plugin/settings.json +9 -0
  17. package/plugin/skills/slm-cache/SKILL.md +9 -1
  18. package/plugin/skills/slm-compress/SKILL.md +8 -1
  19. package/plugin/skills/slm-governance/SKILL.md +248 -0
  20. package/plugin/skills/slm-graph/SKILL.md +17 -3
  21. package/plugin/skills/slm-loop/SKILL.md +99 -0
  22. package/plugin/skills/slm-mesh/SKILL.md +282 -0
  23. package/plugin/skills/slm-profile/SKILL.md +148 -0
  24. package/plugin/skills/slm-recall/SKILL.md +46 -10
  25. package/plugin/skills/slm-remember/SKILL.md +48 -1
  26. package/plugin/skills/slm-scope/SKILL.md +176 -0
  27. package/plugin/skills/slm-session/SKILL.md +24 -1
  28. package/plugin/skills/slm-status/SKILL.md +18 -1
  29. package/plugin-src/agents/slm-governance-advisor.md +80 -0
  30. package/plugin-src/agents/slm-loop-runner.md +71 -0
  31. package/plugin-src/agents/slm-memory-advisor.md +10 -5
  32. package/plugin-src/agents/slm-optimize-advisor.md +9 -3
  33. package/plugin-src/commands/slm-loop.md +31 -0
  34. package/plugin-src/hooks/hooks.json +79 -0
  35. package/plugin-src/manifest.json +7 -2
  36. package/plugin-src/requirements.txt +1 -1
  37. package/plugin-src/rules/AGENTS.md +57 -18
  38. package/plugin-src/rules/CLAUDE.md.fragment +8 -8
  39. package/plugin-src/scripts/slm-launch +46 -7
  40. package/plugin-src/settings.json +9 -0
  41. package/plugin-src/skills/slm-cache/SKILL.md +9 -1
  42. package/plugin-src/skills/slm-compress/SKILL.md +8 -1
  43. package/plugin-src/skills/slm-governance/SKILL.md +248 -0
  44. package/plugin-src/skills/slm-graph/SKILL.md +17 -3
  45. package/plugin-src/skills/slm-loop/SKILL.md +99 -0
  46. package/plugin-src/skills/slm-mesh/SKILL.md +282 -0
  47. package/plugin-src/skills/slm-profile/SKILL.md +148 -0
  48. package/plugin-src/skills/slm-recall/SKILL.md +46 -10
  49. package/plugin-src/skills/slm-remember/SKILL.md +48 -1
  50. package/plugin-src/skills/slm-scope/SKILL.md +176 -0
  51. package/plugin-src/skills/slm-session/SKILL.md +24 -1
  52. package/plugin-src/skills/slm-status/SKILL.md +18 -1
  53. package/pyproject.toml +1 -1
  54. package/scripts/postinstall/validation.js +2 -0
  55. package/scripts/postinstall-interactive.js +74 -2
  56. package/src/superlocalmemory/__init__.py +1 -1
  57. package/src/superlocalmemory/access/__init__.py +3 -0
  58. package/src/superlocalmemory/access/rbac.py +477 -0
  59. package/src/superlocalmemory/cli/commands.py +94 -10
  60. package/src/superlocalmemory/cli/compress_cmd.py +17 -7
  61. package/src/superlocalmemory/cli/loop_cmd.py +192 -0
  62. package/src/superlocalmemory/cli/main.py +39 -4
  63. package/src/superlocalmemory/cli/mesh_cmd.py +38 -0
  64. package/src/superlocalmemory/cli/optimize_cmd.py +3 -0
  65. package/src/superlocalmemory/cli/pending_store.py +49 -13
  66. package/src/superlocalmemory/cli/proxy_cmd.py +4 -0
  67. package/src/superlocalmemory/cli/scale_engine_cmd.py +6 -0
  68. package/src/superlocalmemory/cli/setup_wizard.py +22 -13
  69. package/src/superlocalmemory/compliance/audit.py +6 -0
  70. package/src/superlocalmemory/compliance/gdpr.py +128 -138
  71. package/src/superlocalmemory/compliance/retention.py +176 -45
  72. package/src/superlocalmemory/core/backend_orchestrator.py +5 -43
  73. package/src/superlocalmemory/core/community_summary.py +267 -0
  74. package/src/superlocalmemory/core/config.py +216 -3
  75. package/src/superlocalmemory/core/consolidation_engine.py +95 -22
  76. package/src/superlocalmemory/core/context_cache.py +61 -18
  77. package/src/superlocalmemory/core/embedding_worker.py +17 -2
  78. package/src/superlocalmemory/core/embeddings.py +12 -1
  79. package/src/superlocalmemory/core/engine.py +17 -1
  80. package/src/superlocalmemory/core/engine_ingestion.py +29 -0
  81. package/src/superlocalmemory/core/engine_wiring.py +13 -0
  82. package/src/superlocalmemory/core/entity_community.py +178 -0
  83. package/src/superlocalmemory/core/graph_analyzer.py +39 -2
  84. package/src/superlocalmemory/core/graph_pruner.py +13 -8
  85. package/src/superlocalmemory/core/key_expander.py +138 -0
  86. package/src/superlocalmemory/core/maintenance.py +23 -0
  87. package/src/superlocalmemory/core/modes.py +1 -1
  88. package/src/superlocalmemory/core/mutations.py +2 -2
  89. package/src/superlocalmemory/core/pii.py +105 -0
  90. package/src/superlocalmemory/core/progressive_abstraction.py +208 -0
  91. package/src/superlocalmemory/core/recall_pipeline.py +2 -0
  92. package/src/superlocalmemory/core/recall_worker.py +20 -6
  93. package/src/superlocalmemory/core/scale_engine.py +60 -1
  94. package/src/superlocalmemory/core/security_primitives.py +40 -2
  95. package/src/superlocalmemory/core/store_pipeline.py +35 -11
  96. package/src/superlocalmemory/core/worker_pool.py +21 -6
  97. package/src/superlocalmemory/encoding/entity_reflexion.py +200 -0
  98. package/src/superlocalmemory/encoding/entity_resolver.py +34 -24
  99. package/src/superlocalmemory/encoding/fact_extractor.py +26 -1
  100. package/src/superlocalmemory/encoding/temporal_validator.py +64 -1
  101. package/src/superlocalmemory/evolution/evolution_store.py +122 -45
  102. package/src/superlocalmemory/evolution/llm_dispatch.py +12 -1
  103. package/src/superlocalmemory/evolution/model_selection.py +160 -0
  104. package/src/superlocalmemory/evolution/mutation_generator.py +16 -0
  105. package/src/superlocalmemory/evolution/skill_evolver.py +127 -42
  106. package/src/superlocalmemory/evolution/triggers.py +22 -13
  107. package/src/superlocalmemory/graph/cozo_backend.py +43 -20
  108. package/src/superlocalmemory/hooks/adapter_base.py +5 -1
  109. package/src/superlocalmemory/hooks/auto_recall.py +13 -1
  110. package/src/superlocalmemory/hooks/claude_code_hooks.py +11 -0
  111. package/src/superlocalmemory/hooks/codex_assets.py +64 -5
  112. package/src/superlocalmemory/hooks/hook_daemon.py +20 -3
  113. package/src/superlocalmemory/hooks/memory_protocol.py +54 -0
  114. package/src/superlocalmemory/hooks/portable_kit.py +114 -1
  115. package/src/superlocalmemory/infra/backup.py +12 -1
  116. package/src/superlocalmemory/infra/daemon_identity.py +40 -4
  117. package/src/superlocalmemory/infra/data_root.py +43 -4
  118. package/src/superlocalmemory/infra/event_bus.py +107 -24
  119. package/src/superlocalmemory/infra/rate_limiter.py +93 -0
  120. package/src/superlocalmemory/ingestion/adapter_manager.py +4 -1
  121. package/src/superlocalmemory/ingestion/credentials.py +1 -1
  122. package/src/superlocalmemory/learning/cross_project.py +28 -19
  123. package/src/superlocalmemory/learning/reward_proxy.py +42 -9
  124. package/src/superlocalmemory/loops/__init__.py +56 -0
  125. package/src/superlocalmemory/loops/budget.py +58 -0
  126. package/src/superlocalmemory/loops/engine.py +164 -0
  127. package/src/superlocalmemory/loops/ledger.py +243 -0
  128. package/src/superlocalmemory/loops/models.py +152 -0
  129. package/src/superlocalmemory/loops/rules.py +52 -0
  130. package/src/superlocalmemory/mcp/_daemon_proxy.py +3 -0
  131. package/src/superlocalmemory/mcp/_pool_adapter.py +2 -0
  132. package/src/superlocalmemory/mcp/profiles.py +103 -0
  133. package/src/superlocalmemory/mcp/server.py +21 -49
  134. package/src/superlocalmemory/mcp/tools_active.py +4 -7
  135. package/src/superlocalmemory/mcp/tools_code_graph.py +51 -5
  136. package/src/superlocalmemory/mcp/tools_core.py +8 -1
  137. package/src/superlocalmemory/mcp/tools_evolution.py +6 -3
  138. package/src/superlocalmemory/mcp/tools_loops.py +300 -0
  139. package/src/superlocalmemory/mcp/tools_mesh.py +140 -4
  140. package/src/superlocalmemory/mcp/tools_optimize.py +15 -8
  141. package/src/superlocalmemory/mesh/broker.py +237 -129
  142. package/src/superlocalmemory/mesh/remote_sync.py +50 -8
  143. package/src/superlocalmemory/optimize/NOTICE +1 -6
  144. package/src/superlocalmemory/optimize/adapters/anthropic_adapter.py +1 -4
  145. package/src/superlocalmemory/optimize/adapters/openai_adapter.py +1 -4
  146. package/src/superlocalmemory/optimize/cache/semantic.py +27 -19
  147. package/src/superlocalmemory/optimize/compress/align.py +32 -26
  148. package/src/superlocalmemory/optimize/compress/ccr.py +14 -71
  149. package/src/superlocalmemory/optimize/compress/router.py +105 -22
  150. package/src/superlocalmemory/optimize/config/defaults.py +1 -1
  151. package/src/superlocalmemory/optimize/config/schema.py +87 -4
  152. package/src/superlocalmemory/optimize/metrics/counters.py +13 -4
  153. package/src/superlocalmemory/optimize/metrics/estimator.py +0 -3
  154. package/src/superlocalmemory/optimize/proxy/_helpers.py +31 -4
  155. package/src/superlocalmemory/optimize/storage/db.py +38 -9
  156. package/src/superlocalmemory/optimize/storage/schema.py +10 -0
  157. package/src/superlocalmemory/parameterization/pattern_extractor.py +6 -3
  158. package/src/superlocalmemory/retrieval/agentic.py +1 -1
  159. package/src/superlocalmemory/retrieval/bm25_channel.py +68 -10
  160. package/src/superlocalmemory/retrieval/engine.py +168 -26
  161. package/src/superlocalmemory/retrieval/entity_channel.py +7 -5
  162. package/src/superlocalmemory/retrieval/hopfield_channel.py +9 -2
  163. package/src/superlocalmemory/retrieval/semantic_channel.py +114 -21
  164. package/src/superlocalmemory/retrieval/spreading_activation.py +11 -2
  165. package/src/superlocalmemory/retrieval/temporal_channel.py +48 -9
  166. package/src/superlocalmemory/retrieval/temporal_frame.py +102 -0
  167. package/src/superlocalmemory/retrieval/temporal_validity_filter.py +135 -0
  168. package/src/superlocalmemory/retrieval/time_window.py +181 -0
  169. package/src/superlocalmemory/server/api.py +4 -4
  170. package/src/superlocalmemory/server/profile_runtime.py +125 -8
  171. package/src/superlocalmemory/server/rbac_enforce.py +142 -0
  172. package/src/superlocalmemory/server/recall_health.py +24 -3
  173. package/src/superlocalmemory/server/recall_serializer.py +19 -1
  174. package/src/superlocalmemory/server/routes/abstraction.py +115 -0
  175. package/src/superlocalmemory/server/routes/agents.py +128 -38
  176. package/src/superlocalmemory/server/routes/backup.py +34 -10
  177. package/src/superlocalmemory/server/routes/behavioral.py +13 -12
  178. package/src/superlocalmemory/server/routes/brain.py +21 -5
  179. package/src/superlocalmemory/server/routes/chat.py +10 -5
  180. package/src/superlocalmemory/server/routes/compliance.py +171 -21
  181. package/src/superlocalmemory/server/routes/config_api.py +436 -0
  182. package/src/superlocalmemory/server/routes/data_io.py +30 -8
  183. package/src/superlocalmemory/server/routes/entity.py +9 -4
  184. package/src/superlocalmemory/server/routes/events.py +24 -8
  185. package/src/superlocalmemory/server/routes/evolution.py +135 -17
  186. package/src/superlocalmemory/server/routes/helpers.py +16 -1
  187. package/src/superlocalmemory/server/routes/ingest.py +7 -4
  188. package/src/superlocalmemory/server/routes/insights.py +3 -3
  189. package/src/superlocalmemory/server/routes/learning.py +14 -14
  190. package/src/superlocalmemory/server/routes/lifecycle.py +59 -8
  191. package/src/superlocalmemory/server/routes/memories.py +182 -57
  192. package/src/superlocalmemory/server/routes/mesh.py +95 -15
  193. package/src/superlocalmemory/server/routes/optimize.py +33 -1
  194. package/src/superlocalmemory/server/routes/prewarm.py +2 -0
  195. package/src/superlocalmemory/server/routes/profiles.py +63 -17
  196. package/src/superlocalmemory/server/routes/ratelimit.py +124 -0
  197. package/src/superlocalmemory/server/routes/rbac.py +367 -0
  198. package/src/superlocalmemory/server/routes/stats.py +13 -6
  199. package/src/superlocalmemory/server/routes/tiers.py +11 -9
  200. package/src/superlocalmemory/server/routes/v3_api.py +183 -69
  201. package/src/superlocalmemory/server/routes/ws.py +5 -2
  202. package/src/superlocalmemory/server/security_middleware.py +12 -5
  203. package/src/superlocalmemory/server/ui.py +20 -5
  204. package/src/superlocalmemory/server/unified_daemon.py +384 -56
  205. package/src/superlocalmemory/server/write_identity.py +38 -8
  206. package/src/superlocalmemory/storage/database.py +265 -53
  207. package/src/superlocalmemory/storage/migration_runner.py +53 -0
  208. package/src/superlocalmemory/storage/migrations/M021_ingestion_log_profile.py +108 -0
  209. package/src/superlocalmemory/storage/migrations/M022_entity_aliases_profile.py +86 -0
  210. package/src/superlocalmemory/storage/migrations/M023_mesh_profile_isolation.py +194 -0
  211. package/src/superlocalmemory/storage/migrations/M024_rbac_users_roles.py +87 -0
  212. package/src/superlocalmemory/storage/migrations/M025_perf_indexes.py +90 -0
  213. package/src/superlocalmemory/storage/migrations/M026_rbac_memberships_fk.py +136 -0
  214. package/src/superlocalmemory/storage/migrations/M027_transferable_patterns_profile.py +163 -0
  215. package/src/superlocalmemory/storage/models.py +4 -0
  216. package/src/superlocalmemory/storage/schema.py +87 -0
  217. package/src/superlocalmemory/storage/schema_v343.py +24 -12
  218. package/src/superlocalmemory/trust/gate.py +49 -8
  219. package/src/superlocalmemory/ui/assets/slm-icon-white.svg +64 -0
  220. package/src/superlocalmemory/ui/assets/slm-icon.svg +36 -0
  221. package/src/superlocalmemory/ui/css/design-system.css +621 -0
  222. package/src/superlocalmemory/ui/css/neural-glass.css +6 -0
  223. package/src/superlocalmemory/ui/css/od-bridge.css +158 -0
  224. package/src/superlocalmemory/ui/favicon.svg +35 -4
  225. package/src/superlocalmemory/ui/index.html +306 -173
  226. package/src/superlocalmemory/ui/js/brain.js +5 -20
  227. package/src/superlocalmemory/ui/js/core.js +47 -31
  228. package/src/superlocalmemory/ui/js/dashboard.js +314 -63
  229. package/src/superlocalmemory/ui/js/event-delegation.js +102 -0
  230. package/src/superlocalmemory/ui/js/knowledge-graph.js +11 -11
  231. package/src/superlocalmemory/ui/js/math-health.js +1 -1
  232. package/src/superlocalmemory/ui/js/memories.js +15 -4
  233. package/src/superlocalmemory/ui/js/memory-chat.js +7 -7
  234. package/src/superlocalmemory/ui/js/ng-entities.js +6 -8
  235. package/src/superlocalmemory/ui/js/ng-ingestion.js +4 -4
  236. package/src/superlocalmemory/ui/js/ng-mesh.js +4 -9
  237. package/src/superlocalmemory/ui/js/ng-shell.js +8 -8
  238. package/src/superlocalmemory/ui/js/ng-skills.js +54 -2
  239. package/src/superlocalmemory/ui/js/od-agents.js +544 -0
  240. package/src/superlocalmemory/ui/js/od-auth-gate.js +257 -0
  241. package/src/superlocalmemory/ui/js/od-backup.js +780 -0
  242. package/src/superlocalmemory/ui/js/od-brain.js +779 -0
  243. package/src/superlocalmemory/ui/js/od-entities.js +579 -0
  244. package/src/superlocalmemory/ui/js/od-graph.js +593 -0
  245. package/src/superlocalmemory/ui/js/od-health.js +539 -0
  246. package/src/superlocalmemory/ui/js/od-mcp.js +508 -0
  247. package/src/superlocalmemory/ui/js/od-memories.js +887 -0
  248. package/src/superlocalmemory/ui/js/od-mesh.js +539 -0
  249. package/src/superlocalmemory/ui/js/od-operations.js +1250 -0
  250. package/src/superlocalmemory/ui/js/od-optimize.js +787 -0
  251. package/src/superlocalmemory/ui/js/od-settings.js +1053 -0
  252. package/src/superlocalmemory/ui/js/od-shell.js +593 -0
  253. package/src/superlocalmemory/ui/js/od-skills.js +573 -0
  254. package/src/superlocalmemory/ui/js/od-team.js +258 -0
  255. package/src/superlocalmemory/ui/js/profiles.js +159 -46
  256. package/src/superlocalmemory/ui/js/settings.js +2 -2
  257. package/src/superlocalmemory/ui/js/timeline.js +34 -5
  258. package/src/superlocalmemory/ui/js/trust-dashboard.js +2 -2
  259. package/src/superlocalmemory/vector/lancedb_backend.py +8 -6
  260. package/src/superlocalmemory/learning/behavioral_listener.py +0 -94
@@ -0,0 +1,621 @@
1
+ /* ============================================================
2
+ SuperLocalMemory — Dashboard Design System
3
+ Dual theme (light / dark). Drop-in shared stylesheet.
4
+ Tiers: glass (translucent/blur), solid (raised), flush (borderless).
5
+ Accent budget: one accent (violet) + one utility (cyan). Semantics only otherwise.
6
+ ============================================================ */
7
+
8
+ /* ---------- Tokens : LIGHT (default) ---------- */
9
+ :root {
10
+ /* surfaces */
11
+ --page: hsl(0 0% 98%);
12
+ --card: hsl(0 0% 100%);
13
+ --card-2: hsl(220 14% 97%);
14
+ --sidebar: hsl(220 14% 14%); /* dark anchor even in light mode */
15
+ --sidebar-2: hsl(220 14% 18%);
16
+ --topbar: hsl(0 0% 100% / 0.72);
17
+
18
+ /* text */
19
+ --fg: hsl(222 47% 11%);
20
+ --fg-2: hsl(215 16% 47%);
21
+ --fg-3: hsl(215 14% 60%);
22
+ --on-sidebar: hsl(220 14% 92%);
23
+ --on-sidebar-2: hsl(220 10% 62%);
24
+
25
+ /* structure */
26
+ --border: hsl(220 13% 91%);
27
+ --border-strong: hsl(220 13% 84%);
28
+ --ring: hsl(262 83% 58% / 0.35);
29
+
30
+ /* glass */
31
+ --glass-bg: hsl(0 0% 100% / 0.62);
32
+ --glass-border: hsl(0 0% 100% / 0.7);
33
+ --glass-blur: 16px;
34
+ --glass-shadow: 0 8px 40px -12px hsl(222 47% 11% / 0.18), inset 0 1px 0 hsl(0 0% 100% / 0.6);
35
+
36
+ /* elevation */
37
+ --sh-sm: 0 1px 2px hsl(222 47% 11% / 0.06);
38
+ --sh-md: 0 4px 16px -6px hsl(222 47% 11% / 0.1), 0 1px 3px hsl(222 47% 11% / 0.05);
39
+ --sh-lg: 0 16px 48px -16px hsl(222 47% 11% / 0.18);
40
+
41
+ /* accents */
42
+ --violet: hsl(262 83% 58%);
43
+ --violet-fg: hsl(0 0% 100%);
44
+ --violet-soft: hsl(262 83% 58% / 0.12);
45
+ --violet-line: hsl(262 83% 58% / 0.4);
46
+ --cyan: hsl(196 94% 48%);
47
+ --cyan-soft: hsl(196 94% 48% / 0.12);
48
+
49
+ /* semantics */
50
+ --ok: hsl(142 71% 42%);
51
+ --ok-soft: hsl(142 71% 42% / 0.13);
52
+ --warn: hsl(38 92% 48%);
53
+ --warn-soft: hsl(38 92% 48% / 0.14);
54
+ --danger: hsl(0 78% 55%);
55
+ --danger-soft: hsl(0 78% 55% / 0.12);
56
+
57
+ /* graph node families */
58
+ --node-episode: hsl(196 94% 48%);
59
+ --node-entity: hsl(262 83% 58%);
60
+ --node-community: hsl(38 92% 52%);
61
+
62
+ /* fonts */
63
+ --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
64
+ --font-mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
65
+
66
+ /* rhythm */
67
+ --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
68
+ --sidebar-w: 248px;
69
+ --topbar-h: 60px;
70
+ }
71
+
72
+ /* ---------- Tokens : DARK ---------- */
73
+ [data-theme="dark"] {
74
+ --page: #0d1117; /* GitHub dark */
75
+ --card: hsl(222 47% 11%);
76
+ --card-2: hsl(222 40% 14%);
77
+ --sidebar: hsl(222 47% 9%);
78
+ --sidebar-2: hsl(222 42% 13%);
79
+ --topbar: hsl(222 47% 11% / 0.7);
80
+
81
+ --fg: #f0f6fc;
82
+ --fg-2: #8b949e;
83
+ --fg-3: #6e7681;
84
+ --on-sidebar: #f0f6fc;
85
+ --on-sidebar-2: #8b949e;
86
+
87
+ --border: rgba(255,255,255,0.08);
88
+ --border-strong: rgba(255,255,255,0.14);
89
+ --ring: hsl(262 83% 66% / 0.5);
90
+
91
+ --glass-bg: hsl(222 47% 13% / 0.55);
92
+ --glass-border: rgba(255,255,255,0.1);
93
+ --glass-shadow: 0 8px 40px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
94
+
95
+ --sh-sm: 0 1px 2px rgba(0,0,0,0.4);
96
+ --sh-md: 0 4px 16px -6px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
97
+ --sh-lg: 0 16px 48px -16px rgba(0,0,0,0.7);
98
+
99
+ --violet: hsl(262 83% 66%);
100
+ --violet-soft: hsl(262 83% 66% / 0.18);
101
+ --violet-line: hsl(262 83% 66% / 0.5);
102
+ --cyan: hsl(196 94% 56%);
103
+ --cyan-soft: hsl(196 94% 56% / 0.16);
104
+
105
+ --ok: hsl(142 65% 55%);
106
+ --ok-soft: hsl(142 65% 45% / 0.18);
107
+ --warn: hsl(38 92% 60%);
108
+ --warn-soft: hsl(38 92% 55% / 0.18);
109
+ --danger: hsl(0 82% 66%);
110
+ --danger-soft: hsl(0 82% 60% / 0.18);
111
+
112
+ --node-episode: hsl(196 94% 60%);
113
+ --node-entity: hsl(262 83% 68%);
114
+ --node-community: hsl(38 92% 62%);
115
+ }
116
+
117
+ /* ---------- Reset ---------- */
118
+ *, *::before, *::after { box-sizing: border-box; }
119
+ html, body { height: 100%; }
120
+ body {
121
+ margin: 0;
122
+ font-family: var(--font-sans);
123
+ background: var(--page);
124
+ color: var(--fg);
125
+ font-size: 14px;
126
+ line-height: 1.5;
127
+ -webkit-font-smoothing: antialiased;
128
+ text-rendering: optimizeLegibility;
129
+ transition: background .3s ease, color .3s ease;
130
+ }
131
+ h1,h2,h3,h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; color: var(--fg); }
132
+ p { margin: 0; }
133
+ a { color: var(--cyan); text-decoration: none; }
134
+ a:hover { text-decoration: underline; }
135
+ button { font-family: inherit; }
136
+ ::selection { background: var(--violet-soft); }
137
+ .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
138
+ .num { font-variant-numeric: tabular-nums; }
139
+ .muted { color: var(--fg-2); }
140
+ .dim { color: var(--fg-3); }
141
+
142
+ /* scrollbars */
143
+ * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
144
+ *::-webkit-scrollbar { width: 10px; height: 10px; }
145
+ *::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
146
+ *::-webkit-scrollbar-thumb:hover { background: var(--fg-3); background-clip: content-box; }
147
+
148
+ /* ============================================================
149
+ APP SHELL
150
+ ============================================================ */
151
+ .app {
152
+ display: grid;
153
+ grid-template-columns: var(--sidebar-w) 1fr;
154
+ min-height: 100vh;
155
+ }
156
+
157
+ /* ---- Sidebar ---- */
158
+ .sidebar {
159
+ background: var(--sidebar);
160
+ color: var(--on-sidebar);
161
+ display: flex;
162
+ flex-direction: column;
163
+ position: sticky;
164
+ top: 0;
165
+ height: 100vh;
166
+ border-right: 1px solid rgba(255,255,255,0.06);
167
+ z-index: 40;
168
+ }
169
+ .brand {
170
+ display: flex; align-items: center; gap: 11px;
171
+ padding: 18px 20px 16px;
172
+ }
173
+ .brand .logo {
174
+ width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
175
+ display: grid; place-items: center;
176
+ background: #fff;
177
+ box-shadow: 0 4px 14px -6px var(--violet), inset 0 0 0 1px rgba(255,255,255,0.06);
178
+ }
179
+ .brand .logo svg, .brand .logo img { width: 26px; height: 26px; display: block; }
180
+ .brand .name { font-weight: 680; font-size: 15px; letter-spacing: -0.02em; color: #fff; }
181
+ .brand .sub { font-size: 11px; color: var(--on-sidebar-2); letter-spacing: .02em; }
182
+
183
+ .nav { padding: 6px 12px; overflow-y: auto; flex: 1; }
184
+ .nav-group-label {
185
+ font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em;
186
+ color: var(--on-sidebar-2); font-weight: 600;
187
+ padding: 14px 10px 6px;
188
+ }
189
+ .nav-link {
190
+ display: flex; align-items: center; gap: 11px;
191
+ padding: 9px 11px; border-radius: 9px;
192
+ color: var(--on-sidebar-2); font-size: 13.5px; font-weight: 500;
193
+ text-decoration: none; cursor: pointer; position: relative;
194
+ transition: background .16s, color .16s;
195
+ }
196
+ .nav-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
197
+ .nav-link:hover { background: rgba(255,255,255,0.05); color: var(--on-sidebar); text-decoration: none; }
198
+ .nav-link.active { background: var(--violet-soft); color: #fff; }
199
+ .nav-link.active::before {
200
+ content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
201
+ background: var(--violet); border-radius: 0 3px 3px 0;
202
+ }
203
+ .nav-link .tag {
204
+ margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 7px;
205
+ border-radius: var(--r-pill); background: rgba(255,255,255,0.08); color: var(--on-sidebar);
206
+ }
207
+ .nav-link.hero .tag { background: var(--cyan-soft); color: var(--cyan); }
208
+ .sidebar-foot {
209
+ padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.06);
210
+ display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--on-sidebar-2);
211
+ }
212
+ .sidebar-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
213
+
214
+ /* ---- Main column ---- */
215
+ .main { display: flex; flex-direction: column; min-width: 0; }
216
+ .topbar {
217
+ position: sticky; top: 0; z-index: 30;
218
+ height: var(--topbar-h);
219
+ display: flex; align-items: center; gap: 16px;
220
+ padding: 0 26px;
221
+ background: var(--topbar);
222
+ backdrop-filter: blur(18px) saturate(1.6);
223
+ -webkit-backdrop-filter: blur(18px) saturate(1.6);
224
+ border-bottom: 1px solid var(--border);
225
+ }
226
+ .topbar h1 { font-size: 17px; }
227
+ .topbar .crumb { font-size: 12.5px; color: var(--fg-2); }
228
+ .topbar .spacer { flex: 1; }
229
+
230
+ .content { padding: 26px; max-width: 1560px; width: 100%; }
231
+ .page-head { margin-bottom: 22px; }
232
+ .page-head h2 { font-size: 22px; }
233
+ .page-head p { color: var(--fg-2); margin-top: 5px; max-width: 62ch; }
234
+
235
+ /* ---- Search box (topbar) ---- */
236
+ .search {
237
+ display: flex; align-items: center; gap: 9px;
238
+ height: 38px; padding: 0 14px; min-width: 220px;
239
+ background: var(--card-2); border: 1px solid var(--border);
240
+ border-radius: var(--r-pill); color: var(--fg-2);
241
+ cursor: text; transition: border .16s, box-shadow .16s;
242
+ }
243
+ .search:focus-within { border-color: var(--violet-line); box-shadow: 0 0 0 4px var(--ring); }
244
+ .search svg { width: 15px; height: 15px; }
245
+ .search input { border: 0; background: none; outline: none; color: var(--fg); font-size: 13.5px; width: 100%; }
246
+ .search .kbd { margin-left: auto; font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--card); border: 1px solid var(--border); color: var(--fg-3); }
247
+
248
+ /* ---- Header: Star-us-on-GitHub CTA ---- */
249
+ .star-cta {
250
+ display: inline-flex; align-items: center; gap: 8px;
251
+ height: 38px; padding: 0 6px 0 13px; border-radius: var(--r-pill);
252
+ background: var(--sidebar); color: #fff; font-size: 13px; font-weight: 600;
253
+ border: 1px solid transparent; text-decoration: none; white-space: nowrap;
254
+ transition: transform .15s, box-shadow .15s;
255
+ }
256
+ .star-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--sh-md); }
257
+ .star-cta .gh { width: 16px; height: 16px; }
258
+ .star-cta .star-count {
259
+ display: inline-flex; align-items: center; gap: 4px;
260
+ background: rgba(255,255,255,0.14); color: #fff;
261
+ padding: 3px 9px 3px 7px; border-radius: var(--r-pill); font-size: 12px;
262
+ font-variant-numeric: tabular-nums;
263
+ }
264
+ .star-cta .star-count svg { width: 12px; height: 12px; color: var(--warn); fill: var(--warn); }
265
+ [data-theme="dark"] .star-cta { background: var(--card-2); border-color: var(--border-strong); }
266
+
267
+ /* ---- Shared site footer ---- */
268
+ .site-foot {
269
+ display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
270
+ margin-top: 40px; padding: 22px 2px 8px; border-top: 1px solid var(--border);
271
+ }
272
+ .foot-brand { display: flex; align-items: center; gap: 11px; }
273
+ .foot-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
274
+ background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
275
+ .foot-logo svg { width: 18px; height: 18px; color: #fff; }
276
+ .foot-logo img { width: 22px; height: 22px; display: block; }
277
+ .foot-brand b { display: block; font-size: 13.5px; }
278
+ .foot-brand span { font-size: 12px; color: var(--fg-2); }
279
+ .foot-links { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; margin-left: auto; }
280
+ .foot-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-2); }
281
+ .foot-links a:hover { color: var(--fg); text-decoration: none; }
282
+ .foot-links a svg { width: 14px; height: 14px; }
283
+ @media (max-width: 860px) {
284
+ .star-cta .lbl { display: none; }
285
+ .foot-links { margin-left: 0; }
286
+ }
287
+
288
+ /* ============================================================
289
+ CARD TIERS
290
+ ============================================================ */
291
+ .card { /* solid = raised */
292
+ background: var(--card);
293
+ border: 1px solid var(--border);
294
+ border-radius: var(--r-lg);
295
+ box-shadow: var(--sh-md);
296
+ }
297
+ .card.glass { /* glass = translucent + blur */
298
+ background: var(--glass-bg);
299
+ border: 1px solid var(--glass-border);
300
+ box-shadow: var(--glass-shadow);
301
+ backdrop-filter: blur(var(--glass-blur)) saturate(1.7);
302
+ -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.7);
303
+ }
304
+ .card.flush { /* flush = borderless section */
305
+ background: transparent;
306
+ border: 0; box-shadow: none;
307
+ }
308
+ .card-pad { padding: 20px; }
309
+ .card-head {
310
+ display: flex; align-items: center; gap: 10px;
311
+ padding: 16px 20px; border-bottom: 1px solid var(--border);
312
+ }
313
+ .card-head h3 { font-size: 14.5px; font-weight: 640; }
314
+ .card-head .sub { font-size: 12px; color: var(--fg-2); }
315
+ .card-head .spacer { flex: 1; }
316
+
317
+ /* ============================================================
318
+ KPI / STAT
319
+ ============================================================ */
320
+ .grid { display: grid; gap: 16px; }
321
+ .kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
322
+ .kpi {
323
+ padding: 18px 20px; position: relative; overflow: hidden;
324
+ }
325
+ .kpi .label { font-size: 12px; color: var(--fg-2); display: flex; align-items: center; gap: 7px; font-weight: 500; }
326
+ .kpi .label svg { width: 15px; height: 15px; color: var(--violet); }
327
+ .kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
328
+ .kpi .value small { font-size: 15px; font-weight: 600; color: var(--fg-2); }
329
+ .kpi .delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-top: 6px; }
330
+ .kpi .delta.up { color: var(--ok); }
331
+ .kpi .delta.down { color: var(--danger); }
332
+ .kpi .spark { position: absolute; right: 16px; bottom: 14px; width: 96px; height: 34px; opacity: .9; }
333
+
334
+ /* ============================================================
335
+ BADGES / CHIPS / PILLS
336
+ ============================================================ */
337
+ .badge {
338
+ display: inline-flex; align-items: center; gap: 5px;
339
+ font-size: 11.5px; font-weight: 600; padding: 3px 9px;
340
+ border-radius: var(--r-pill); line-height: 1.4;
341
+ }
342
+ .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
343
+ .badge.ok { color: var(--ok); background: var(--ok-soft); }
344
+ .badge.warn { color: var(--warn); background: var(--warn-soft); }
345
+ .badge.danger { color: var(--danger); background: var(--danger-soft); }
346
+ .badge.violet { color: var(--violet); background: var(--violet-soft); }
347
+ .badge.cyan { color: var(--cyan); background: var(--cyan-soft); }
348
+ .badge.neutral { color: var(--fg-2); background: var(--card-2); border: 1px solid var(--border); }
349
+
350
+ .badge-local { /* LOCAL ONLY trust badge */
351
+ display: inline-flex; align-items: center; gap: 7px;
352
+ font-size: 11.5px; font-weight: 650; letter-spacing: .04em;
353
+ padding: 5px 12px 5px 10px; border-radius: var(--r-pill);
354
+ color: var(--ok); background: var(--ok-soft);
355
+ border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
356
+ }
357
+ .badge-local svg { width: 14px; height: 14px; }
358
+
359
+ .chip {
360
+ display: inline-flex; align-items: center; gap: 6px;
361
+ font-size: 12px; font-weight: 500; padding: 4px 11px;
362
+ border-radius: var(--r-pill); background: var(--card-2);
363
+ border: 1px solid var(--border); color: var(--fg); cursor: pointer;
364
+ transition: all .15s;
365
+ }
366
+ .chip:hover { border-color: var(--border-strong); }
367
+ .chip.on { background: var(--violet-soft); border-color: var(--violet-line); color: var(--violet); }
368
+ .chip .cnt { color: var(--fg-3); font-variant-numeric: tabular-nums; }
369
+
370
+ /* ============================================================
371
+ BUTTONS / SEGMENTED / TOGGLE
372
+ ============================================================ */
373
+ .btn {
374
+ display: inline-flex; align-items: center; gap: 8px; justify-content: center;
375
+ height: 38px; padding: 0 16px; border-radius: var(--r-md);
376
+ font-size: 13.5px; font-weight: 600; cursor: pointer;
377
+ border: 1px solid var(--border); background: var(--card); color: var(--fg);
378
+ transition: all .15s;
379
+ }
380
+ .btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
381
+ .btn svg { width: 16px; height: 16px; }
382
+ .btn.primary { background: var(--violet); color: var(--violet-fg); border-color: transparent; box-shadow: 0 4px 14px -4px var(--violet); }
383
+ .btn.primary:hover { filter: brightness(1.05); }
384
+ .btn.ghost { background: transparent; }
385
+ .btn.icon { width: 38px; padding: 0; }
386
+ .btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
387
+
388
+ .seg {
389
+ display: inline-flex; padding: 3px; gap: 2px;
390
+ background: var(--card-2); border: 1px solid var(--border);
391
+ border-radius: var(--r-pill);
392
+ }
393
+ .seg button {
394
+ border: 0; background: none; cursor: pointer;
395
+ padding: 6px 14px; border-radius: var(--r-pill);
396
+ font-size: 12.5px; font-weight: 600; color: var(--fg-2);
397
+ transition: all .15s;
398
+ }
399
+ .seg button.active { background: var(--card); color: var(--fg); box-shadow: var(--sh-sm); }
400
+ [data-theme="dark"] .seg button.active { background: var(--card-2); }
401
+
402
+ .switch { width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; cursor: pointer; border: 0; transition: background .2s; flex-shrink: 0; }
403
+ .switch::after { content:""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .2s; }
404
+ .switch.on { background: var(--violet); }
405
+ .switch.on::after { transform: translateX(18px); }
406
+
407
+ /* ============================================================
408
+ TABS (in-page, real product tabs)
409
+ ============================================================ */
410
+ .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
411
+ .tab {
412
+ border: 0; background: none; cursor: pointer;
413
+ padding: 11px 15px; font-size: 13.5px; font-weight: 550; color: var(--fg-2);
414
+ border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
415
+ transition: color .15s;
416
+ }
417
+ .tab:hover { color: var(--fg); }
418
+ .tab.active { color: var(--fg); border-bottom-color: var(--violet); }
419
+ .tab .cnt { font-size: 11px; color: var(--fg-3); margin-left: 5px; }
420
+ .tabpane { display: none; }
421
+ .tabpane.active { display: block; animation: fade .25s ease; }
422
+ @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
423
+
424
+ /* ============================================================
425
+ TABLES / LISTS
426
+ ============================================================ */
427
+ .tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
428
+ .tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); }
429
+ .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
430
+ .tbl tr:last-child td { border-bottom: 0; }
431
+ .tbl tbody tr:hover, .tbl tr.row:hover { background: var(--card-2); }
432
+
433
+ .list-row {
434
+ display: flex; align-items: center; gap: 14px;
435
+ padding: 13px 4px; border-bottom: 1px solid var(--border);
436
+ }
437
+ .list-row:last-child { border-bottom: 0; }
438
+ .avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
439
+
440
+ /* provenance / score meter */
441
+ .meter { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
442
+ .meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
443
+
444
+ /* ============================================================
445
+ CONTRIBUTION HEATMAP (GitHub-style)
446
+ ============================================================ */
447
+ .heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
448
+ .heatmap i { width: 13px; height: 13px; border-radius: 3px; background: var(--card-2); transition: transform .1s; }
449
+ .heatmap i:hover { transform: scale(1.35); outline: 1px solid var(--violet); }
450
+ .heatmap i[data-l="1"] { background: color-mix(in srgb, var(--violet) 22%, var(--card-2)); }
451
+ .heatmap i[data-l="2"] { background: color-mix(in srgb, var(--violet) 44%, var(--card-2)); }
452
+ .heatmap i[data-l="3"] { background: color-mix(in srgb, var(--violet) 70%, var(--card-2)); }
453
+ .heatmap i[data-l="4"] { background: var(--violet); }
454
+ .heat-legend { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--fg-2); }
455
+ .heat-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
456
+
457
+ /* ============================================================
458
+ GRAPH WORKSPACE LAYOUT (hero)
459
+ ============================================================ */
460
+ .graph-shell {
461
+ display: grid;
462
+ grid-template-columns: 1fr 340px;
463
+ height: calc(100vh - var(--topbar-h));
464
+ }
465
+ .graph-stage { position: relative; overflow: hidden; background:
466
+ radial-gradient(1200px 700px at 30% 20%, color-mix(in srgb, var(--violet) 7%, transparent), transparent 60%),
467
+ radial-gradient(900px 600px at 80% 90%, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 55%),
468
+ var(--page);
469
+ }
470
+ .graph-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
471
+ .graph-stage canvas:active { cursor: grabbing; }
472
+ .graph-overlay { position: absolute; inset: 0; pointer-events: none; }
473
+ .graph-overlay > * { pointer-events: auto; }
474
+ .graph-tools { position: absolute; top: 16px; left: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
475
+ .graph-legend { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 14px; padding: 9px 14px; font-size: 12px; }
476
+ .graph-legend .k { display: flex; align-items: center; gap: 6px; color: var(--fg-2); }
477
+ .graph-legend .k b { width: 10px; height: 10px; border-radius: 50%; }
478
+ .graph-zoom { position: absolute; bottom: 16px; right: 16px; display: flex; flex-direction: column; gap: 1px; border-radius: var(--r-md); overflow: hidden; }
479
+ .graph-zoom button { width: 36px; height: 34px; border: 0; background: var(--card); color: var(--fg); cursor: pointer; font-size: 16px; }
480
+ .graph-zoom button:hover { background: var(--card-2); }
481
+
482
+ .inspector { border-left: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; min-height: 0; }
483
+ .inspector-scroll { flex: 1 1 auto; overflow-y: auto; padding: 20px; min-height: 0; }
484
+ .inspector-empty { color: var(--fg-2); font-size: 13px; text-align: center; margin-top: 40px; }
485
+
486
+ /* Ask-Memory chat pinned bottom */
487
+ .ask { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--card-2); display: flex; flex-direction: column; }
488
+ .ask-head { padding: 12px 18px 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 640; }
489
+ .ask-head svg { width: 16px; height: 16px; color: var(--violet); }
490
+ .ask-log { max-height: 230px; overflow-y: auto; padding: 6px 16px; display: flex; flex-direction: column; gap: 10px; }
491
+ .msg { font-size: 13px; line-height: 1.55; }
492
+ .msg.q { align-self: flex-end; background: var(--violet); color: #fff; padding: 8px 13px; border-radius: 14px 14px 3px 14px; max-width: 85%; }
493
+ .msg.a { background: var(--card); border: 1px solid var(--border); padding: 10px 13px; border-radius: 14px 14px 14px 3px; max-width: 92%; }
494
+ .msg.a .cite { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--cyan); background: var(--cyan-soft); padding: 1px 7px; border-radius: 99px; margin: 3px 4px 0 0; cursor: pointer; }
495
+ .ask-input { display: flex; gap: 8px; padding: 12px 14px 14px; }
496
+ .ask-input input { flex: 1; height: 40px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--card); color: var(--fg); padding: 0 14px; font-size: 13.5px; outline: none; }
497
+ .ask-input input:focus { border-color: var(--violet-line); box-shadow: 0 0 0 4px var(--ring); }
498
+ .ask-input button { width: 40px; height: 40px; border-radius: var(--r-md); border: 0; background: var(--violet); color: #fff; cursor: pointer; display: grid; place-items: center; }
499
+ .ask-input button svg { width: 17px; height: 17px; }
500
+ .typing { display: inline-flex; gap: 3px; }
501
+ .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); animation: blink 1.2s infinite; }
502
+ .typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }
503
+ @keyframes blink { 0%,60%,100%{ opacity:.3 } 30%{ opacity:1 } }
504
+
505
+ /* node inspector fields */
506
+ .field { padding: 11px 0; border-bottom: 1px solid var(--border); }
507
+ .field:last-child { border-bottom: 0; }
508
+ .field .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); font-weight: 600; }
509
+ .field .v { font-size: 13.5px; margin-top: 3px; }
510
+
511
+ /* ============================================================
512
+ SPARKLINE / MINI CHART helpers (SVG filled by shell.js)
513
+ ============================================================ */
514
+ .spark-lg { width: 100%; height: 60px; display: block; }
515
+ .bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
516
+ .bars i { flex: 1; background: var(--violet-soft); border-radius: 3px 3px 0 0; min-height: 3px; transition: background .15s; }
517
+ .bars i:hover { background: var(--violet); }
518
+
519
+ /* live activity dot pulse */
520
+ .pulse { position: relative; }
521
+ .pulse::after { content:""; position:absolute; inset:0; border-radius: inherit; box-shadow: 0 0 0 0 var(--ok); animation: pulsering 2s infinite; }
522
+ @keyframes pulsering { 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent) } 70%{ box-shadow: 0 0 0 8px transparent } 100%{ box-shadow: 0 0 0 0 transparent } }
523
+
524
+ /* stream feed */
525
+ .feed-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
526
+ .feed-item:last-child { border-bottom: 0; }
527
+ .feed-item .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
528
+ .feed-item .ic svg { width: 15px; height: 15px; }
529
+ .feed-item time { margin-left: auto; color: var(--fg-3); font-size: 11.5px; white-space: nowrap; }
530
+
531
+ /* ============================================================
532
+ LAUNCHER (index.html)
533
+ ============================================================ */
534
+ .hero-launch {
535
+ border-radius: var(--r-xl); padding: 38px 40px; margin-bottom: 26px; position: relative; overflow: hidden;
536
+ background:
537
+ radial-gradient(700px 340px at 12% -10%, var(--violet-soft), transparent 60%),
538
+ radial-gradient(600px 320px at 95% 120%, var(--cyan-soft), transparent 55%),
539
+ var(--card);
540
+ border: 1px solid var(--border);
541
+ }
542
+ .launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
543
+ .launch-card { padding: 20px; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; text-decoration: none; color: inherit; display: block; }
544
+ .launch-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--violet-line); text-decoration: none; }
545
+ .launch-card .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 14px; }
546
+ .launch-card .ic svg { width: 21px; height: 21px; }
547
+ .launch-card.hero .ic { background: linear-gradient(140deg, var(--violet), var(--cyan)); color: #fff; }
548
+ .launch-card h3 { font-size: 15px; }
549
+ .launch-card p { font-size: 12.5px; color: var(--fg-2); margin-top: 5px; line-height: 1.5; }
550
+
551
+ /* ============================================================
552
+ RESPONSIVE
553
+ ============================================================ */
554
+ .menu-btn { display: none; }
555
+ @media (max-width: 1100px) {
556
+ .kpi-strip { grid-template-columns: repeat(2, 1fr); }
557
+ .graph-shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: auto; }
558
+ .graph-stage { height: 60vh; }
559
+ .inspector { border-left: 0; border-top: 1px solid var(--border); }
560
+ .inspector-scroll { max-height: 320px; }
561
+ }
562
+ @media (max-width: 860px) {
563
+ :root { --sidebar-w: 0px; }
564
+ .app { grid-template-columns: 1fr; }
565
+ .sidebar {
566
+ position: fixed; left: 0; top: 0; width: 264px; height: 100vh;
567
+ transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--sh-lg);
568
+ }
569
+ .sidebar.open { transform: none; }
570
+ .menu-btn { display: inline-grid; }
571
+ .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 39; opacity: 0; pointer-events: none; transition: opacity .25s; }
572
+ .scrim.on { opacity: 1; pointer-events: auto; }
573
+ .content { padding: 18px; }
574
+ .kpi-strip { grid-template-columns: 1fr 1fr; }
575
+ }
576
+ /* ---- Mobile hardening (phones + small tablets) ---- */
577
+ @media (max-width: 768px) {
578
+ /* any inline multi-column grid collapses to one column (beats inline styles) */
579
+ .content [style*="grid-template-columns"]:not(.kpi-strip) { grid-template-columns: 1fr !important; }
580
+ /* KPI strips (including inline repeat(N)) go 2-up */
581
+ .kpi-strip { grid-template-columns: 1fr 1fr !important; }
582
+ /* release sticky side panels so they stack instead of overlapping / fixed-height clipping */
583
+ .content [style*="position:sticky"],
584
+ .content [style*="position: sticky"] {
585
+ position: static !important; top: auto !important; height: auto !important; max-height: none !important;
586
+ }
587
+ /* wide tables scroll inside their card instead of blowing out the page */
588
+ .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
589
+ .card-pad { overflow-x: auto; }
590
+ }
591
+
592
+ @media (max-width: 640px) {
593
+ body { overflow-x: hidden; }
594
+ .content:not(.graph-content) { overflow-x: hidden; padding: 16px; }
595
+ /* topbar compaction — keep search functional but shrunk, trim non-essential chrome */
596
+ .topbar { padding: 0 12px; gap: 8px; }
597
+ .topbar .crumb { display: none; }
598
+ .topbar h1 { font-size: 15px; white-space: nowrap; }
599
+ .search { min-width: 0; }
600
+ .topbar .search { flex: 1 1 56px; }
601
+ .badge-local { font-size: 0; gap: 0; padding: 7px; } /* icon-only trust badge */
602
+ .badge-local svg { width: 15px; height: 15px; }
603
+ .star-cta { padding: 0 8px; }
604
+ .star-cta .star-count { display: none; } /* keep the star link, drop the count */
605
+ .kpi .value { font-size: 24px; }
606
+ .hero-launch { padding: 24px 18px; }
607
+ .hero-launch h2 { font-size: 21px !important; }
608
+ .page-head h2 { font-size: 19px; }
609
+ .drawer { width: 100vw !important; max-width: 100vw !important; }
610
+ /* segmented controls & chips wrap rather than overflow */
611
+ .seg, .tabs { flex-wrap: wrap; }
612
+ }
613
+
614
+ @media (max-width: 400px) {
615
+ .kpi-strip { grid-template-columns: 1fr !important; }
616
+ }
617
+
618
+ /* reduced motion */
619
+ @media (prefers-reduced-motion: reduce) {
620
+ * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
621
+ }
@@ -242,6 +242,12 @@
242
242
  -webkit-backdrop-filter: blur(12px);
243
243
  }
244
244
 
245
+ /* B2 (v3.7.9): CSP-safe hover border — replaces inline onmouseover/onmouseout
246
+ on entity cards (which forced script-src 'unsafe-inline'). */
247
+ .ng-hover-border:hover {
248
+ border-color: var(--ng-border-prominent);
249
+ }
250
+
245
251
  .ng-glass-elevated {
246
252
  background: var(--ng-bg-glass-hover);
247
253
  border: 1px solid var(--ng-border-default);