polyrob 0.5.0__py3-none-any.whl

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 (745) hide show
  1. agents/README.md +453 -0
  2. agents/__init__.py +164 -0
  3. agents/base_agent.py +743 -0
  4. agents/personality/character.py +119 -0
  5. agents/personality/character_manager.py +309 -0
  6. agents/personality/characters/rob.character.json +56 -0
  7. agents/personality/characters/trump.character.json +63 -0
  8. agents/personality/persona_render.py +78 -0
  9. agents/personality/persona_resolver.py +115 -0
  10. agents/prompt/__init__.py +58 -0
  11. agents/prompt/base_prompt.py +92 -0
  12. agents/prompt/system.py +417 -0
  13. agents/task/README_PATH_MANAGEMENT.md +141 -0
  14. agents/task/__init__.py +162 -0
  15. agents/task/agent/__init__.py +70 -0
  16. agents/task/agent/agent_state.py +408 -0
  17. agents/task/agent/async_delegation.py +274 -0
  18. agents/task/agent/autonomy_state.py +275 -0
  19. agents/task/agent/conversation.py +75 -0
  20. agents/task/agent/core/__init__.py +6 -0
  21. agents/task/agent/core/aux_metering.py +61 -0
  22. agents/task/agent/core/background_review.py +157 -0
  23. agents/task/agent/core/construction.py +1179 -0
  24. agents/task/agent/core/conversational_exit.py +49 -0
  25. agents/task/agent/core/correspondent_gate.py +227 -0
  26. agents/task/agent/core/curator.py +246 -0
  27. agents/task/agent/core/episodic_digest.py +103 -0
  28. agents/task/agent/core/error_recovery.py +480 -0
  29. agents/task/agent/core/history_io.py +257 -0
  30. agents/task/agent/core/llm_provisioning.py +287 -0
  31. agents/task/agent/core/llm_runner.py +547 -0
  32. agents/task/agent/core/logging_io.py +276 -0
  33. agents/task/agent/core/loop_detection.py +262 -0
  34. agents/task/agent/core/memory_prefetch.py +325 -0
  35. agents/task/agent/core/memory_writer.py +667 -0
  36. agents/task/agent/core/model_introspection.py +82 -0
  37. agents/task/agent/core/model_swap.py +177 -0
  38. agents/task/agent/core/next_action_internal.py +1331 -0
  39. agents/task/agent/core/output_validation.py +303 -0
  40. agents/task/agent/core/project_context.py +272 -0
  41. agents/task/agent/core/resources.py +93 -0
  42. agents/task/agent/core/result_processing.py +389 -0
  43. agents/task/agent/core/run_loop.py +661 -0
  44. agents/task/agent/core/safety_lifecycle.py +228 -0
  45. agents/task/agent/core/secret_guard.py +293 -0
  46. agents/task/agent/core/self_wake.py +280 -0
  47. agents/task/agent/core/session_metadata.py +104 -0
  48. agents/task/agent/core/step.py +781 -0
  49. agents/task/agent/core/step_execution.py +398 -0
  50. agents/task/agent/core/step_telemetry.py +222 -0
  51. agents/task/agent/core/test_aux_metering.py +50 -0
  52. agents/task/agent/core/test_billing_failover.py +68 -0
  53. agents/task/agent/core/test_fatal_error_classifier.py +38 -0
  54. agents/task/agent/core/test_judge_validation.py +275 -0
  55. agents/task/agent/core/test_model_swap.py +190 -0
  56. agents/task/agent/core/test_reflection_offload.py +54 -0
  57. agents/task/agent/core/turn_input.py +8 -0
  58. agents/task/agent/core/untrusted_wrap.py +103 -0
  59. agents/task/agent/core/user_ingress.py +228 -0
  60. agents/task/agent/hitl_manager.py +396 -0
  61. agents/task/agent/log_sanitize.py +36 -0
  62. agents/task/agent/message_manager/config.py +97 -0
  63. agents/task/agent/message_manager/service.py +758 -0
  64. agents/task/agent/message_manager/tests.py +305 -0
  65. agents/task/agent/message_manager/tool_call_builder.py +539 -0
  66. agents/task/agent/message_manager/tool_message_repair.py +364 -0
  67. agents/task/agent/message_manager/views.py +143 -0
  68. agents/task/agent/messages/__init__.py +8 -0
  69. agents/task/agent/messages/builders.py +309 -0
  70. agents/task/agent/messages/compactor.py +611 -0
  71. agents/task/agent/messages/context_references.py +271 -0
  72. agents/task/agent/messages/filters.py +333 -0
  73. agents/task/agent/messages/guidance.py +328 -0
  74. agents/task/agent/messages/persistence.py +448 -0
  75. agents/task/agent/messages/retrieval.py +506 -0
  76. agents/task/agent/messages/sqlite_persistence.py +85 -0
  77. agents/task/agent/messages/test_compaction_upgrade.py +349 -0
  78. agents/task/agent/messages/test_persistence_subdir_fix.py +28 -0
  79. agents/task/agent/messages/test_sqlite_persistence.py +54 -0
  80. agents/task/agent/messages/token_counter.py +532 -0
  81. agents/task/agent/orchestrator.py +776 -0
  82. agents/task/agent/profile_manager.py +105 -0
  83. agents/task/agent/profile_registry.py +173 -0
  84. agents/task/agent/prompts.py +1090 -0
  85. agents/task/agent/scenario_registry.py +226 -0
  86. agents/task/agent/service.py +509 -0
  87. agents/task/agent/session.py +984 -0
  88. agents/task/agent/skill_discovery.py +110 -0
  89. agents/task/agent/skill_frontmatter.py +94 -0
  90. agents/task/agent/skill_manager.py +1201 -0
  91. agents/task/agent/skill_store.py +627 -0
  92. agents/task/agent/skill_validation.py +56 -0
  93. agents/task/agent/skill_writer.py +492 -0
  94. agents/task/agent/sub_agent_manager.py +1137 -0
  95. agents/task/agent/test_session_disk_recovery.py +34 -0
  96. agents/task/agent/tests.py +513 -0
  97. agents/task/agent/tool_call_tracker.py +511 -0
  98. agents/task/agent/views.py +469 -0
  99. agents/task/config.py +432 -0
  100. agents/task/constants.py +1384 -0
  101. agents/task/flag_defaults.py +63 -0
  102. agents/task/goals/__init__.py +1 -0
  103. agents/task/goals/autonomy_marker.py +28 -0
  104. agents/task/goals/board.py +690 -0
  105. agents/task/goals/completion_judge.py +247 -0
  106. agents/task/goals/context.py +62 -0
  107. agents/task/goals/dispatcher.py +848 -0
  108. agents/task/goals/escalation.py +102 -0
  109. agents/task/goals/planner.py +114 -0
  110. agents/task/logging_config.py +155 -0
  111. agents/task/path.py +991 -0
  112. agents/task/robust_parse_config.py +400 -0
  113. agents/task/runtime/__init__.py +0 -0
  114. agents/task/runtime/run_as_session.py +130 -0
  115. agents/task/runtime_safety.py +308 -0
  116. agents/task/session/__init__.py +5 -0
  117. agents/task/session/browser_pool.py +130 -0
  118. agents/task/session/cleanup.py +612 -0
  119. agents/task/session/execution.py +397 -0
  120. agents/task/session/feed.py +200 -0
  121. agents/task/session/hitl_ingress.py +201 -0
  122. agents/task/session/hooks.py +83 -0
  123. agents/task/session/multi_agent.py +243 -0
  124. agents/task/session/workspace.py +91 -0
  125. agents/task/session_registry.py +91 -0
  126. agents/task/session_route.py +35 -0
  127. agents/task/sqlite_session_registry.py +261 -0
  128. agents/task/surface_config.py +185 -0
  129. agents/task/telemetry/__init__.py +58 -0
  130. agents/task/telemetry/event_log.py +180 -0
  131. agents/task/telemetry/formatters.py +642 -0
  132. agents/task/telemetry/manager.py +571 -0
  133. agents/task/telemetry/memory_events.py +66 -0
  134. agents/task/telemetry/self_events.py +53 -0
  135. agents/task/telemetry/sequence.py +160 -0
  136. agents/task/telemetry/service.py +1265 -0
  137. agents/task/telemetry/views.py +882 -0
  138. agents/task/templates.py +98 -0
  139. agents/task/test_aux_chain.py +151 -0
  140. agents/task/test_aux_router.py +41 -0
  141. agents/task/tests/test_parse_robustness.py +170 -0
  142. agents/task/tool_defaults.py +110 -0
  143. agents/task/utils.py +762 -0
  144. agents/task/utils_json.py +768 -0
  145. agents/task/utils_webview.py +86 -0
  146. agents/task/workspace_context.py +229 -0
  147. agents/task_agent_lite.py +2398 -0
  148. api/README.md +683 -0
  149. api/TASK_API_DOCS.md +151 -0
  150. api/__init__.py +0 -0
  151. api/a2a/__init__.py +37 -0
  152. api/a2a/agent_card.py +337 -0
  153. api/a2a/client.py +657 -0
  154. api/a2a/endpoints.py +375 -0
  155. api/a2a/models.py +268 -0
  156. api/a2a/streaming.py +419 -0
  157. api/a2a/task_handler.py +929 -0
  158. api/admin_endpoints.py +1584 -0
  159. api/app.py +923 -0
  160. api/auth_constants.py +28 -0
  161. api/auth_endpoints.py +402 -0
  162. api/auth_state.py +36 -0
  163. api/chat_via_task.py +42 -0
  164. api/conversation_manager.py +231 -0
  165. api/dependencies.py +186 -0
  166. api/eip8004_endpoints.py +452 -0
  167. api/hyperliquid_models.py +174 -0
  168. api/hyperliquid_routes.py +450 -0
  169. api/interfaces.py +207 -0
  170. api/jwt_middleware.py +83 -0
  171. api/kb/__init__.py +1 -0
  172. api/kb/endpoints.py +314 -0
  173. api/mcp_models.py +279 -0
  174. api/mcp_routes.py +438 -0
  175. api/middleware.py +526 -0
  176. api/models.py +176 -0
  177. api/openai_compat/__init__.py +0 -0
  178. api/openai_compat/model_map.py +25 -0
  179. api/openai_compat/models.py +59 -0
  180. api/openai_compat/router.py +140 -0
  181. api/payment_endpoints.py +444 -0
  182. api/payment_verification.py +138 -0
  183. api/polymarket_models.py +155 -0
  184. api/polymarket_routes.py +501 -0
  185. api/pricing_endpoints.py +89 -0
  186. api/session_routing.py +54 -0
  187. api/skill_endpoints.py +453 -0
  188. api/task_http_api.py +1856 -0
  189. api/webhooks.py +52 -0
  190. api/x402_endpoints.py +280 -0
  191. avatar/README.md +44 -0
  192. avatar/__init__.py +1 -0
  193. avatar/config/rob.json +7 -0
  194. avatar/mindprint.js +395 -0
  195. avatar/renders/rob.meta.json +20 -0
  196. avatar/renders/rob.png +0 -0
  197. avatar/studio.html +373 -0
  198. avatar/webview/avatar-live.js +44 -0
  199. cli/README.md +89 -0
  200. cli/__init__.py +0 -0
  201. cli/cli_surface.py +67 -0
  202. cli/commands/__init__.py +0 -0
  203. cli/commands/_bootstrap.py +49 -0
  204. cli/commands/_errors.py +53 -0
  205. cli/commands/chat.py +973 -0
  206. cli/commands/config.py +100 -0
  207. cli/commands/dashboard.py +103 -0
  208. cli/commands/doctor.py +222 -0
  209. cli/commands/email.py +174 -0
  210. cli/commands/gateway.py +346 -0
  211. cli/commands/goals.py +509 -0
  212. cli/commands/init.py +276 -0
  213. cli/commands/journey.py +30 -0
  214. cli/commands/kb.py +280 -0
  215. cli/commands/model.py +107 -0
  216. cli/commands/owner.py +431 -0
  217. cli/commands/pfp.py +232 -0
  218. cli/commands/run.py +414 -0
  219. cli/commands/serve.py +41 -0
  220. cli/commands/session.py +684 -0
  221. cli/commands/skill_install.py +786 -0
  222. cli/commands/skills.py +128 -0
  223. cli/commands/subagents.py +100 -0
  224. cli/commands/surface.py +81 -0
  225. cli/commands/telegram.py +185 -0
  226. cli/commands/todos.py +209 -0
  227. cli/commands/tools.py +102 -0
  228. cli/commands/update.py +316 -0
  229. cli/commands/whatsapp.py +175 -0
  230. cli/config_store.py +276 -0
  231. cli/gitignore.py +43 -0
  232. cli/inventory.py +46 -0
  233. cli/keys.py +101 -0
  234. cli/persona.py +17 -0
  235. cli/polyrob.py +137 -0
  236. cli/ui/__init__.py +64 -0
  237. cli/ui/activity.py +141 -0
  238. cli/ui/app.py +538 -0
  239. cli/ui/banner.py +233 -0
  240. cli/ui/blocks.py +534 -0
  241. cli/ui/bootstrap_notice.py +47 -0
  242. cli/ui/commands/__init__.py +41 -0
  243. cli/ui/commands/h_cron.py +64 -0
  244. cli/ui/commands/h_journey.py +164 -0
  245. cli/ui/commands/h_kb.py +121 -0
  246. cli/ui/commands/h_learn.py +100 -0
  247. cli/ui/commands/h_mcp.py +215 -0
  248. cli/ui/commands/h_self.py +113 -0
  249. cli/ui/commands/h_skills.py +314 -0
  250. cli/ui/commands/handlers.py +1672 -0
  251. cli/ui/commands/registry.py +426 -0
  252. cli/ui/dialog.py +425 -0
  253. cli/ui/event_registry.py +110 -0
  254. cli/ui/event_specs.py +45 -0
  255. cli/ui/events.py +433 -0
  256. cli/ui/identity.py +15 -0
  257. cli/ui/lifecycle.py +159 -0
  258. cli/ui/live_hooks.py +43 -0
  259. cli/ui/model_selector.py +532 -0
  260. cli/ui/persistent_loop.py +181 -0
  261. cli/ui/pick.py +113 -0
  262. cli/ui/plain_renderer.py +351 -0
  263. cli/ui/renderer.py +384 -0
  264. cli/ui/rich_renderer.py +533 -0
  265. cli/ui/secrets.py +115 -0
  266. cli/ui/state.py +376 -0
  267. cli/ui/statusbar.py +231 -0
  268. cli/ui/streaming.py +254 -0
  269. cli/ui/terminal_render.py +105 -0
  270. cli/ui/theme.py +132 -0
  271. cli/update/__init__.py +6 -0
  272. cli/update/context.py +121 -0
  273. cli/update/detect.py +176 -0
  274. cli/update/engine.py +95 -0
  275. cli/update/migrate_guarded.py +55 -0
  276. cli/update/process_guard.py +215 -0
  277. cli/update/runners.py +78 -0
  278. cli/update/snapshot.py +270 -0
  279. cli/update/versions.py +205 -0
  280. core/README.md +377 -0
  281. core/__init__.py +174 -0
  282. core/assets.py +87 -0
  283. core/async_bridge.py +76 -0
  284. core/autonomy_runtime.py +259 -0
  285. core/base_component.py +302 -0
  286. core/bootstrap.py +681 -0
  287. core/bot.py +310 -0
  288. core/config.py +833 -0
  289. core/constants.py +126 -0
  290. core/container.py +462 -0
  291. core/db_manifest.py +101 -0
  292. core/embedding.py +57 -0
  293. core/env.py +39 -0
  294. core/exceptions.py +287 -0
  295. core/flags.py +144 -0
  296. core/flags_catalog.py +345 -0
  297. core/home_migration.py +62 -0
  298. core/identity.py +118 -0
  299. core/initialization.py +1004 -0
  300. core/instance.py +537 -0
  301. core/interactive_gate.py +96 -0
  302. core/logging.py +436 -0
  303. core/owner_doc_writer.py +176 -0
  304. core/pairing.py +193 -0
  305. core/path_safety.py +20 -0
  306. core/paths.py +27 -0
  307. core/payment_config.py +21 -0
  308. core/permissions.py +322 -0
  309. core/runtime_config.py +96 -0
  310. core/runtime_paths.py +135 -0
  311. core/seams.py +35 -0
  312. core/secret_scan.py +25 -0
  313. core/secret_scrub.py +71 -0
  314. core/secrets.py +35 -0
  315. core/security_logging_filter.py +148 -0
  316. core/self_context_writer.py +333 -0
  317. core/self_evolution.py +294 -0
  318. core/session_context.py +47 -0
  319. core/sqlite_util.py +59 -0
  320. core/surfaces/__init__.py +16 -0
  321. core/surfaces/access.py +118 -0
  322. core/surfaces/binding.py +88 -0
  323. core/surfaces/bootstrap.py +78 -0
  324. core/surfaces/circuit.py +168 -0
  325. core/surfaces/continuity.py +77 -0
  326. core/surfaces/correspondents.py +228 -0
  327. core/surfaces/dispatcher.py +216 -0
  328. core/surfaces/envelopes.py +75 -0
  329. core/surfaces/gc.py +30 -0
  330. core/surfaces/idempotency.py +57 -0
  331. core/surfaces/inbound_webhook.py +124 -0
  332. core/surfaces/media.py +32 -0
  333. core/surfaces/message_router.py +91 -0
  334. core/surfaces/outbound_allowlist.py +80 -0
  335. core/surfaces/outbound_dispatcher.py +110 -0
  336. core/surfaces/outbound_mirror.py +37 -0
  337. core/surfaces/outbound_queue.py +107 -0
  338. core/surfaces/outbound_target.py +12 -0
  339. core/surfaces/owner_admin.py +29 -0
  340. core/surfaces/proactive.py +78 -0
  341. core/surfaces/progress.py +108 -0
  342. core/surfaces/rate_bucket.py +21 -0
  343. core/surfaces/registry.py +51 -0
  344. core/surfaces/rendering.py +53 -0
  345. core/surfaces/send_policy.py +14 -0
  346. core/surfaces/serialize.py +24 -0
  347. core/surfaces/session_chat_registry.py +112 -0
  348. core/surfaces/session_policy.py +60 -0
  349. core/surfaces/surface.py +288 -0
  350. core/surfaces/transcription.py +88 -0
  351. core/surfaces/voice_echo.py +26 -0
  352. core/surfaces/voice_guard.py +23 -0
  353. core/tickers.py +174 -0
  354. core/tool_catalog.py +192 -0
  355. core/version.py +75 -0
  356. core/wallet/__init__.py +5 -0
  357. core/wallet/agent_wallet.py +59 -0
  358. core/wallet/audit_sink.py +61 -0
  359. core/wallet/config.py +70 -0
  360. core/wallet/factory.py +87 -0
  361. core/wallet/policy.py +104 -0
  362. core/wallet/signer.py +51 -0
  363. cron/README.md +65 -0
  364. cron/__init__.py +0 -0
  365. cron/delivery.py +277 -0
  366. cron/digest.py +124 -0
  367. cron/jobs.py +207 -0
  368. cron/runner.py +297 -0
  369. cron/schedule.py +194 -0
  370. cron/scheduler.py +201 -0
  371. cron/service.py +57 -0
  372. cron/wake_gate.py +223 -0
  373. data/__init__.py +1 -0
  374. data/prompts/autov2_prompts.json +87 -0
  375. data/prompts/skills/browser-automation/SKILL.md +43 -0
  376. data/prompts/skills/coding-workflow/SKILL.md +36 -0
  377. data/prompts/skills/crypto-trading-safety/SKILL.md +53 -0
  378. data/prompts/skills/document-writing/SKILL.md +33 -0
  379. data/prompts/skills/email-comms/SKILL.md +33 -0
  380. data/prompts/skills/file-data-ops/SKILL.md +35 -0
  381. data/prompts/skills/hyperliquid-account-review/SKILL.md +48 -0
  382. data/prompts/skills/hyperliquid-market-data/SKILL.md +52 -0
  383. data/prompts/skills/hyperliquid-trading/SKILL.md +59 -0
  384. data/prompts/skills/lead-research/SKILL.md +86 -0
  385. data/prompts/skills/market-research-brief/SKILL.md +104 -0
  386. data/prompts/skills/person-analyzer/SKILL.md +124 -0
  387. data/prompts/skills/polymarket-market-research/SKILL.md +54 -0
  388. data/prompts/skills/polymarket-portfolio-review/SKILL.md +50 -0
  389. data/prompts/skills/polymarket-trading/SKILL.md +55 -0
  390. data/prompts/skills/presentation-creator/SKILL.md +36 -0
  391. data/prompts/skills/project-analyzer/SKILL.md +169 -0
  392. data/prompts/skills/rules.json +268 -0
  393. data/prompts/skills/secret-handling/SKILL.md +20 -0
  394. data/prompts/skills/skill-authoring/SKILL.md +31 -0
  395. data/prompts/skills/skill-security-review/SKILL.md +27 -0
  396. data/prompts/skills/social-discovery/SKILL.md +57 -0
  397. data/prompts/skills/task-planning/SKILL.md +33 -0
  398. data/prompts/skills/web-research/SKILL.md +39 -0
  399. data/prompts/skills/web-scraping/SKILL.md +73 -0
  400. data/prompts/skills/x-engagement/SKILL.md +69 -0
  401. data/prompts/system_prompts.json +4 -0
  402. data/subscription_channels.json +5 -0
  403. modules/README.md +503 -0
  404. modules/__init__.py +124 -0
  405. modules/auth/__init__.py +13 -0
  406. modules/auth/api_key_manager.py +157 -0
  407. modules/auth/identity_mapper.py +380 -0
  408. modules/auth/siwe_auth.py +273 -0
  409. modules/auth/tier_manager.py +173 -0
  410. modules/base_module.py +190 -0
  411. modules/credits/__init__.py +29 -0
  412. modules/credits/balance_manager.py +237 -0
  413. modules/credits/cost_utils.py +129 -0
  414. modules/credits/pricing.py +139 -0
  415. modules/credits/unified_ledger.py +148 -0
  416. modules/credits/usage_meter.py +310 -0
  417. modules/credits/usage_tracker.py +674 -0
  418. modules/database/__init__.py +33 -0
  419. modules/database/audit_log.py +322 -0
  420. modules/database/auth_tables.py +276 -0
  421. modules/database/connection.py +644 -0
  422. modules/database/connection_pool.py +305 -0
  423. modules/database/conversation_contexts.py +446 -0
  424. modules/database/database_manager.py +237 -0
  425. modules/database/hyperliquid.py +375 -0
  426. modules/database/polymarket.py +574 -0
  427. modules/database/user_mcp_servers.py +728 -0
  428. modules/database/user_profiles.py +562 -0
  429. modules/database/utils.py +107 -0
  430. modules/database/x402_tables.py +92 -0
  431. modules/eip8004/README.md +1069 -0
  432. modules/eip8004/__init__.py +65 -0
  433. modules/eip8004/contracts.py +498 -0
  434. modules/eip8004/models.py +271 -0
  435. modules/eip8004/registration.py +148 -0
  436. modules/eip8004/reputation.py +367 -0
  437. modules/eip8004/validation.py +277 -0
  438. modules/llm/__init__.py +97 -0
  439. modules/llm/adapters.py +963 -0
  440. modules/llm/anthropic_client.py +831 -0
  441. modules/llm/available_models.py +106 -0
  442. modules/llm/brain_scrubber.py +137 -0
  443. modules/llm/cache_hints.py +162 -0
  444. modules/llm/deepseek_client.py +562 -0
  445. modules/llm/gemini_client.py +1367 -0
  446. modules/llm/llm_client.py +1139 -0
  447. modules/llm/llm_client_registry.py +188 -0
  448. modules/llm/llm_factory.py +237 -0
  449. modules/llm/llm_manager.py +1036 -0
  450. modules/llm/messages.py +374 -0
  451. modules/llm/model_registry.py +1935 -0
  452. modules/llm/nvidia_client.py +125 -0
  453. modules/llm/openai_client.py +800 -0
  454. modules/llm/openrouter_client.py +969 -0
  455. modules/llm/profiles.py +178 -0
  456. modules/llm/test_anthropic_cache_capture.py +35 -0
  457. modules/llm/test_cached_pricing_derivation.py +24 -0
  458. modules/llm/think_scrubber.py +444 -0
  459. modules/llm/token_counter.py +268 -0
  460. modules/memory/__init__.py +35 -0
  461. modules/memory/backend_factory.py +83 -0
  462. modules/memory/cache_manager.py +186 -0
  463. modules/memory/episodic.py +108 -0
  464. modules/memory/local_vector_memory_provider.py +552 -0
  465. modules/memory/memory_manager.py +225 -0
  466. modules/memory/models.py +312 -0
  467. modules/memory/provider.py +210 -0
  468. modules/memory/registry.py +205 -0
  469. modules/memory/sqlite_memory_provider.py +767 -0
  470. modules/memory/task/__init__.py +52 -0
  471. modules/memory/task/compaction_manager.py +157 -0
  472. modules/memory/task/context_retriever.py +809 -0
  473. modules/memory/task/hierarchical_memory.py +1002 -0
  474. modules/memory/task/lexical_retriever.py +71 -0
  475. modules/memory/task/null_context_manager.py +213 -0
  476. modules/memory/task/phase_manager.py +625 -0
  477. modules/memory/task/reflection_service.py +157 -0
  478. modules/memory/task/semantic_retriever.py +218 -0
  479. modules/memory/task/task_context_manager.py +1165 -0
  480. modules/memory/task/test_forgetting_engages.py +24 -0
  481. modules/memory/task/test_reflection_llm.py +39 -0
  482. modules/memory/task/test_threat_scan.py +53 -0
  483. modules/memory/task/threat_scan.py +90 -0
  484. modules/memory/test_sqlite_memory_provider.py +106 -0
  485. modules/memory/user_profile_manager.py +527 -0
  486. modules/payments/__init__.py +11 -0
  487. modules/payments/deposit_monitor.py +478 -0
  488. modules/payments/price_oracle.py +70 -0
  489. modules/payments/treasury_sweeper.py +401 -0
  490. modules/payments/wallet_generator.py +145 -0
  491. modules/pfp/__init__.py +1 -0
  492. modules/pfp/config.py +92 -0
  493. modules/pfp/mesh.py +565 -0
  494. modules/pfp/push.py +69 -0
  495. modules/pfp/renderer.py +85 -0
  496. modules/pfp/store.py +82 -0
  497. modules/skills/__init__.py +1 -0
  498. modules/skills/skill_usage.py +248 -0
  499. modules/transcription/__init__.py +24 -0
  500. modules/transcription/base.py +20 -0
  501. modules/transcription/faster_whisper_transcriber.py +55 -0
  502. modules/x402/README.md +249 -0
  503. modules/x402/__init__.py +22 -0
  504. modules/x402/invoicing.py +416 -0
  505. modules/x402/middleware.py +364 -0
  506. modules/x402/settlement_watcher.py +145 -0
  507. modules/x402/x402_integration.py +344 -0
  508. polyrob-0.5.0.dist-info/METADATA +482 -0
  509. polyrob-0.5.0.dist-info/RECORD +745 -0
  510. polyrob-0.5.0.dist-info/WHEEL +5 -0
  511. polyrob-0.5.0.dist-info/entry_points.txt +2 -0
  512. polyrob-0.5.0.dist-info/licenses/LICENSE +21 -0
  513. polyrob-0.5.0.dist-info/top_level.txt +12 -0
  514. surfaces/README.md +70 -0
  515. surfaces/__init__.py +0 -0
  516. surfaces/email/__init__.py +0 -0
  517. surfaces/email/dedup.py +44 -0
  518. surfaces/email/harness.py +187 -0
  519. surfaces/email/inbound.py +159 -0
  520. surfaces/email/seed.py +60 -0
  521. surfaces/email/surface.py +105 -0
  522. surfaces/telegram/__init__.py +0 -0
  523. surfaces/telegram/dedup.py +83 -0
  524. surfaces/telegram/harness.py +886 -0
  525. surfaces/telegram/inbound.py +145 -0
  526. surfaces/telegram/interactive_tools.py +49 -0
  527. surfaces/telegram/markdown.py +347 -0
  528. surfaces/telegram/rate_limit.py +167 -0
  529. surfaces/telegram/surface.py +187 -0
  530. surfaces/telegram/voice.py +52 -0
  531. surfaces/whatsapp/__init__.py +0 -0
  532. surfaces/whatsapp/client.py +51 -0
  533. surfaces/whatsapp/harness.py +62 -0
  534. surfaces/whatsapp/inbound.py +132 -0
  535. surfaces/whatsapp/surface.py +64 -0
  536. surfaces/whatsapp/window.py +34 -0
  537. tools/README.md +578 -0
  538. tools/__init__.py +424 -0
  539. tools/alchemy/__init__.py +5 -0
  540. tools/alchemy/alchemy_tool.py +389 -0
  541. tools/anysite/__init__.py +17 -0
  542. tools/anysite/client.py +88 -0
  543. tools/anysite/tool.py +89 -0
  544. tools/base_tool.py +468 -0
  545. tools/browser/__init__.py +22 -0
  546. tools/browser/actions.py +118 -0
  547. tools/browser/browser.py +1457 -0
  548. tools/browser/browser_manager.py +690 -0
  549. tools/browser/context.py +1748 -0
  550. tools/browser/playwright_utils.py +137 -0
  551. tools/browser/views.py +56 -0
  552. tools/code_exec/SANDBOX_SECURITY.md +144 -0
  553. tools/code_exec/__init__.py +178 -0
  554. tools/code_exec/backend.py +73 -0
  555. tools/code_exec/backends/__init__.py +1 -0
  556. tools/code_exec/backends/docker.py +779 -0
  557. tools/code_exec/backends/local_subprocess.py +154 -0
  558. tools/code_exec/env_policy.py +45 -0
  559. tools/code_exec/result.py +42 -0
  560. tools/code_exec/sandbox_guard.py +59 -0
  561. tools/code_exec/tool.py +227 -0
  562. tools/coding/__init__.py +50 -0
  563. tools/coding/edit.py +107 -0
  564. tools/coding/search.py +113 -0
  565. tools/coding/tool.py +353 -0
  566. tools/collabland/__init__.py +5 -0
  567. tools/collabland/collabland_tool.py +471 -0
  568. tools/controller/__init__.py +0 -0
  569. tools/controller/_helpers.py +165 -0
  570. tools/controller/action_registration.py +1765 -0
  571. tools/controller/approval.py +244 -0
  572. tools/controller/approval_interactive.py +90 -0
  573. tools/controller/delegation.py +195 -0
  574. tools/controller/execution.py +797 -0
  575. tools/controller/execution_context.py +141 -0
  576. tools/controller/hooks.py +135 -0
  577. tools/controller/introspection.py +344 -0
  578. tools/controller/mcp_registrar.py +190 -0
  579. tools/controller/message_send.py +31 -0
  580. tools/controller/registry/__init__.py +4 -0
  581. tools/controller/registry/schema_generators.py +395 -0
  582. tools/controller/registry/schema_sanitizer.py +406 -0
  583. tools/controller/registry/service.py +1266 -0
  584. tools/controller/registry/views.py +151 -0
  585. tools/controller/service.py +409 -0
  586. tools/controller/tool_management.py +334 -0
  587. tools/controller/types.py +28 -0
  588. tools/controller/views.py +450 -0
  589. tools/cronjob_tools.py +166 -0
  590. tools/crypto_trade_gate.py +59 -0
  591. tools/descriptors.py +452 -0
  592. tools/dom/__init__.py +0 -0
  593. tools/dom/history_tree_processor/service.py +244 -0
  594. tools/dom/history_tree_processor/view.py +99 -0
  595. tools/dom/service.py +471 -0
  596. tools/dom/views.py +346 -0
  597. tools/email_tool.py +403 -0
  598. tools/exceptions.py +169 -0
  599. tools/filesystem.py +1038 -0
  600. tools/filesystem_docproc.py +331 -0
  601. tools/filesystem_pdf.py +755 -0
  602. tools/git/__init__.py +42 -0
  603. tools/git/tool.py +258 -0
  604. tools/github/__init__.py +33 -0
  605. tools/github/client.py +94 -0
  606. tools/github/tool.py +237 -0
  607. tools/goal_tools.py +309 -0
  608. tools/hyperliquid/__init__.py +56 -0
  609. tools/hyperliquid/models.py +233 -0
  610. tools/hyperliquid/service.py +1680 -0
  611. tools/knowledge_ingest.py +950 -0
  612. tools/mcp/README.md +535 -0
  613. tools/mcp/__init__.py +52 -0
  614. tools/mcp/catalog.py +115 -0
  615. tools/mcp/config.py +337 -0
  616. tools/mcp/mcp_tool.py +1415 -0
  617. tools/mcp/param_coercion.py +289 -0
  618. tools/mcp/protocol.py +1520 -0
  619. tools/mcp/rate_limit.py +50 -0
  620. tools/mcp/security.py +424 -0
  621. tools/mcp/self_install.py +111 -0
  622. tools/mcp/server_manager.py +829 -0
  623. tools/mcp/subscriptions.py +72 -0
  624. tools/mcp/user_mcp_service.py +899 -0
  625. tools/mcp/validation_tracker.py +89 -0
  626. tools/mcp/views.py +346 -0
  627. tools/oauth/__init__.py +17 -0
  628. tools/oauth/manager.py +75 -0
  629. tools/oauth/provider.py +69 -0
  630. tools/oauth/providers/__init__.py +1 -0
  631. tools/oauth/providers/generic_oauth2.py +96 -0
  632. tools/perplexity_tool.py +280 -0
  633. tools/polymarket/__init__.py +41 -0
  634. tools/polymarket/clob_adapter.py +76 -0
  635. tools/polymarket/models.py +182 -0
  636. tools/polymarket/service.py +2082 -0
  637. tools/self_env/__init__.py +61 -0
  638. tools/self_env/tool.py +274 -0
  639. tools/shell/__init__.py +80 -0
  640. tools/shell/backend_pool.py +118 -0
  641. tools/shell/discipline.py +62 -0
  642. tools/shell/executor.py +157 -0
  643. tools/shell/loopback_allow.py +87 -0
  644. tools/shell/process_registry.py +113 -0
  645. tools/shell/process_tool.py +131 -0
  646. tools/shell/state.py +129 -0
  647. tools/shell/tool.py +151 -0
  648. tools/task_tool.py +637 -0
  649. tools/twitter_tool.py +2086 -0
  650. tools/user_directory.py +179 -0
  651. tools/web_fetch/__init__.py +3 -0
  652. tools/web_fetch/fetcher.py +144 -0
  653. tools/web_fetch/render.py +44 -0
  654. tools/web_fetch/tool.py +60 -0
  655. tools/x402/__init__.py +60 -0
  656. tools/x402/client.py +47 -0
  657. tools/x402/invoice_tool.py +143 -0
  658. tools/x402/real_client.py +250 -0
  659. tools/x402/service.py +131 -0
  660. utils/README.md +498 -0
  661. utils/__init__.py +46 -0
  662. utils/auth_utils.py +114 -0
  663. utils/bounded_collections.py +162 -0
  664. utils/circuit_breaker.py +389 -0
  665. utils/gif_utils.py +435 -0
  666. utils/markdown_utils.py +291 -0
  667. utils/message_utils.py +147 -0
  668. utils/metrics.py +36 -0
  669. utils/path_validator.py +227 -0
  670. utils/rate_limit_manager.py +399 -0
  671. utils/result_size.py +296 -0
  672. utils/time_utils.py +206 -0
  673. utils/user_utils.py +188 -0
  674. webview/README.md +111 -0
  675. webview/RENAME_AND_ALIGN_HANDOFF.md +200 -0
  676. webview/__init__.py +8 -0
  677. webview/activity.py +636 -0
  678. webview/owner_auth.py +108 -0
  679. webview/pages.py +448 -0
  680. webview/repair_sessions.py +399 -0
  681. webview/server.py +4323 -0
  682. webview/server_launcher.py +112 -0
  683. webview/static/css/activity.css +89 -0
  684. webview/static/css/chat.css +1772 -0
  685. webview/static/css/components.css +1190 -0
  686. webview/static/css/config-panel.css +651 -0
  687. webview/static/css/pages/admin.css +766 -0
  688. webview/static/css/pages/profile.css +231 -0
  689. webview/static/css/pages/settings.css +297 -0
  690. webview/static/css/pages/signin.css +316 -0
  691. webview/static/css/style.css +4250 -0
  692. webview/static/css/variables.css +147 -0
  693. webview/static/css/workspace-fullwidth-fix.css +109 -0
  694. webview/static/img/favicon.ico +0 -0
  695. webview/static/js/activity.js +394 -0
  696. webview/static/js/admin/activity.js +186 -0
  697. webview/static/js/admin/dashboard.js +163 -0
  698. webview/static/js/admin/user_detail.js +400 -0
  699. webview/static/js/admin/users.js +174 -0
  700. webview/static/js/admin/utils.js +214 -0
  701. webview/static/js/chat.js +3178 -0
  702. webview/static/js/config-panel.js +522 -0
  703. webview/static/js/constants.js +20 -0
  704. webview/static/js/error-handler.js +226 -0
  705. webview/static/js/ethers.min.js +1 -0
  706. webview/static/js/event-filter.js +137 -0
  707. webview/static/js/event-store.js +351 -0
  708. webview/static/js/file-attachments.js +374 -0
  709. webview/static/js/file-loader.js +163 -0
  710. webview/static/js/index.js +103 -0
  711. webview/static/js/performance-utils.js +196 -0
  712. webview/static/js/profile.js +396 -0
  713. webview/static/js/screenshot.js +386 -0
  714. webview/static/js/session.js +1527 -0
  715. webview/static/js/settings.js +1288 -0
  716. webview/static/js/sidebar-data.js +766 -0
  717. webview/static/js/sidebar-toggle.js +296 -0
  718. webview/static/js/socket.io.min.js +7 -0
  719. webview/static/js/stats.js +355 -0
  720. webview/static/js/ui-utils.js +420 -0
  721. webview/static/js/workspace.js +966 -0
  722. webview/stats_service.py +613 -0
  723. webview/templates/__init__.py +1 -0
  724. webview/templates/__pycache__/__init__.cpython-311.pyc +0 -0
  725. webview/templates/activity.html +36 -0
  726. webview/templates/admin/activity.html +122 -0
  727. webview/templates/admin/dashboard.html +112 -0
  728. webview/templates/admin/user_detail.html +228 -0
  729. webview/templates/admin/users.html +105 -0
  730. webview/templates/autonomy.html +60 -0
  731. webview/templates/error.html +133 -0
  732. webview/templates/finance.html +90 -0
  733. webview/templates/identity.html +73 -0
  734. webview/templates/index.html +42 -0
  735. webview/templates/layout.html +125 -0
  736. webview/templates/memory.html +59 -0
  737. webview/templates/owner_login.html +15 -0
  738. webview/templates/profile.html +121 -0
  739. webview/templates/session.html +312 -0
  740. webview/templates/settings.html +534 -0
  741. webview/templates/sidebar.html +112 -0
  742. webview/templates/signin.html +213 -0
  743. webview/templates/status.html +14 -0
  744. webview/templates/system.html +45 -0
  745. webview/webgate.py +196 -0
@@ -0,0 +1,4250 @@
1
+ /*
2
+ * AutoV2 WebView - Terminal Cyberpunk Theme
3
+ * Main CSS file - layout and page-specific styles
4
+ *
5
+ * Note: CSS variables are defined in variables.css
6
+ * Note: Reusable components are defined in components.css
7
+ * Load order: variables.css -> components.css -> style.css
8
+ */
9
+
10
+ /* Additional layout-specific variables */
11
+ :root {
12
+ --mobile-header-height: 45px;
13
+ --footer-height: 25px;
14
+ --footer-height-safe: calc(25px + env(safe-area-inset-bottom, 0px));
15
+ }
16
+
17
+ body {
18
+ background-color: var(--primary-bg);
19
+ color: var(--color-text-primary);
20
+ font-family: var(--code-font);
21
+ font-size: var(--font-size-base);
22
+ overflow-x: hidden;
23
+ text-shadow: 0 0 2px rgba(192, 255, 179, 0.2);
24
+ margin: 0;
25
+ padding: 0;
26
+ padding-left: max(10px, env(safe-area-inset-left));
27
+ padding-right: max(10px, env(safe-area-inset-right));
28
+ padding-top: env(safe-area-inset-top);
29
+ box-sizing: border-box;
30
+ max-width: 100%;
31
+ min-height: 100vh;
32
+ display: flex;
33
+ flex-direction: column;
34
+ }
35
+
36
+ a {
37
+ color: var(--color-accent-blue);
38
+ text-decoration: none;
39
+ transition: color 0.2s;
40
+ }
41
+
42
+ a:hover {
43
+ color: var(--color-accent-green);
44
+ text-decoration: none;
45
+ }
46
+
47
+ /* Global form element reset - ensure dark theme */
48
+ input, select, textarea, button {
49
+ font-family: var(--code-font);
50
+ font-size: var(--font-size-sm);
51
+ box-sizing: border-box;
52
+ }
53
+
54
+ input[type="text"],
55
+ input[type="email"],
56
+ input[type="number"],
57
+ input[type="search"],
58
+ input[type="password"],
59
+ textarea,
60
+ select {
61
+ background: var(--primary-bg);
62
+ border: 1px solid var(--color-border);
63
+ color: var(--color-text-primary);
64
+ -webkit-appearance: none;
65
+ -moz-appearance: none;
66
+ appearance: none;
67
+ border-radius: 0;
68
+ }
69
+
70
+ input[type="text"]:focus,
71
+ input[type="email"]:focus,
72
+ input[type="number"]:focus,
73
+ input[type="search"]:focus,
74
+ input[type="password"]:focus,
75
+ textarea:focus,
76
+ select:focus {
77
+ outline: none;
78
+ border-color: var(--color-accent-blue);
79
+ }
80
+
81
+ /* Style select dropdown arrow */
82
+ select {
83
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23909090' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
84
+ background-repeat: no-repeat;
85
+ background-position: right 10px center;
86
+ padding-right: 30px;
87
+ }
88
+
89
+ /* MOBILE-FIRST BASE LAYOUT */
90
+ /* Session container mobile layout (default) */
91
+ .session-container {
92
+ display: flex;
93
+ flex-direction: column;
94
+ flex: 1;
95
+ min-height: 0;
96
+ position: relative;
97
+ z-index: 1;
98
+ width: 100%;
99
+ max-width: 100%;
100
+ box-sizing: border-box;
101
+ }
102
+
103
+ .main-panel {
104
+ width: 100%;
105
+ display: flex;
106
+ flex-direction: column;
107
+ flex: 1;
108
+ min-height: 0;
109
+ overflow: hidden;
110
+ order: 1;
111
+ }
112
+
113
+ .sidebar-top {
114
+ width: 100%;
115
+ height: auto;
116
+ max-height: 45vh;
117
+ overflow-y: hidden;
118
+ order: 2;
119
+ }
120
+
121
+ .sidebar-bottom {
122
+ width: 100%;
123
+ height: auto;
124
+ max-height: 60vh;
125
+ overflow-y: hidden;
126
+ order: 3;
127
+ }
128
+
129
+ /* Mobile workspace layout - stacked vertically on small screens */
130
+ @media (max-width: 768px) {
131
+ .workspace-layout {
132
+ flex-direction: column !important;
133
+ }
134
+
135
+ .file-tree {
136
+ width: 100% !important;
137
+ height: auto !important; /* Dynamic height based on content */
138
+ min-height: 150px;
139
+ max-height: 50vh; /* Allow more space but cap it */
140
+ border-right: none !important;
141
+ border-bottom: 1px solid rgba(86, 226, 194, 0.1) !important;
142
+ flex-shrink: 0;
143
+ }
144
+
145
+ .file-tree-content {
146
+ flex: 0 1 auto; /* Allow shrinking based on content */
147
+ min-height: min-content;
148
+ overflow-y: auto;
149
+ }
150
+
151
+ .file-preview {
152
+ width: 100% !important;
153
+ flex: 1;
154
+ }
155
+ }
156
+
157
+ /* Index page - sessions grid */
158
+ /* History page title - reuses tabs-wrapper structure */
159
+ .history-page-title {
160
+ display: flex;
161
+ align-items: center;
162
+ font-size: var(--font-size-sm);
163
+ font-weight: 500;
164
+ color: var(--color-accent-green);
165
+ font-family: var(--code-font);
166
+ text-transform: uppercase;
167
+ letter-spacing: 0.5px;
168
+ line-height: 1.4;
169
+ height: 32px;
170
+ }
171
+
172
+ .sessions-list {
173
+ display: flex;
174
+ flex-direction: column;
175
+ gap: 12px;
176
+ }
177
+
178
+ .sessions-grid {
179
+ display: flex;
180
+ flex-direction: column;
181
+ gap: 12px;
182
+ }
183
+
184
+ .session-card {
185
+ width: 100%;
186
+ margin-bottom: 0;
187
+ }
188
+
189
+ /* Tab bar sticky for mobile */
190
+ .tabs-wrapper {
191
+ position: sticky;
192
+ top: 0;
193
+ z-index: 10;
194
+ background-color: var(--color-bg-terminal);
195
+ display: flex;
196
+ justify-content: space-between;
197
+ align-items: center;
198
+ padding: 4px 0;
199
+ border-bottom: 1px solid var(--color-border);
200
+ margin-bottom: 0;
201
+ min-height: 40px;
202
+ box-sizing: border-box;
203
+ }
204
+
205
+ /* Terminal effects - these are theme-specific */
206
+ .crt-effect {
207
+ position: fixed;
208
+ top: 0;
209
+ left: 0;
210
+ width: 100%;
211
+ height: 100%;
212
+ z-index: 1000; /* Reduced from 10000 to prevent blocking interactions */
213
+ pointer-events: none;
214
+ }
215
+
216
+ .crt-scanline {
217
+ position: fixed;
218
+ top: 0;
219
+ left: 0;
220
+ width: 100%;
221
+ height: 2px;
222
+ background: rgba(192, 255, 179, 0.03);
223
+ z-index: 1001; /* Reduced from 10001 */
224
+ opacity: 0.3;
225
+ animation: scanline 6s linear infinite;
226
+ pointer-events: none;
227
+ }
228
+
229
+ .crt-flicker {
230
+ position: fixed;
231
+ top: 0;
232
+ left: 0;
233
+ width: 100%;
234
+ height: 100%;
235
+ background: rgba(0, 0, 0, 0);
236
+ z-index: 1002; /* Reduced from 10002 */
237
+ animation: flicker 0.2s infinite;
238
+ pointer-events: none;
239
+ opacity: 0.01;
240
+ }
241
+
242
+ .crt-lines {
243
+ position: fixed;
244
+ top: 0;
245
+ left: 0;
246
+ width: 100%;
247
+ height: 100%;
248
+ background: linear-gradient(
249
+ to bottom,
250
+ rgba(0, 0, 0, 0) 50%,
251
+ rgba(0, 0, 0, 0.01) 50%
252
+ );
253
+ background-size: 100% 4px;
254
+ z-index: 1003; /* Reduced from 10003 */
255
+ pointer-events: none;
256
+ opacity: 0.4;
257
+ }
258
+
259
+ /* Terminal scanlines */
260
+ .terminal-scanlines {
261
+ position: fixed;
262
+ top: 0;
263
+ left: 0;
264
+ width: 100%;
265
+ height: 100%;
266
+ background: linear-gradient(
267
+ to bottom,
268
+ rgba(192, 255, 179, 0.01) 50%,
269
+ rgba(0, 0, 0, 0.01) 50%
270
+ );
271
+ background-size: 100% 4px;
272
+ z-index: 2000;
273
+ pointer-events: none;
274
+ opacity: 0.06;
275
+ }
276
+
277
+ /* Loading indicator styles */
278
+ /* Loading indicator styles - align to start for stats page */
279
+ .loading-indicator {
280
+ display: flex;
281
+ flex-direction: column;
282
+ align-items: flex-start;
283
+ justify-content: flex-start;
284
+ padding: 20px;
285
+ color: var(--color-text-secondary);
286
+ font-size: var(--font-size-sm);
287
+ gap: 10px;
288
+ }
289
+ /* .loading-spinner defined in components.css */
290
+
291
+ /* Loading placeholder with more general styling */
292
+ .loading-placeholder {
293
+ padding: 4px 10px;
294
+ text-align: center;
295
+ color: var(--color-accent-blue);
296
+ font-size: var(--font-size-xs);
297
+ margin: 4px 0;
298
+ font-style: italic;
299
+ animation: subtle-pulse 1.5s infinite ease-in-out;
300
+ background-color: rgba(123, 195, 201, 0.08);
301
+ border-left: 2px solid var(--color-accent-blue);
302
+ }
303
+
304
+ /* Directory-specific loading placeholder styles */
305
+ .dir-contents .loading-placeholder {
306
+ padding: 3px 8px;
307
+ margin: 2px 0;
308
+ font-size: var(--font-size-xs);
309
+ color: var(--color-accent-blue);
310
+ background-color: rgba(123, 195, 201, 0.05);
311
+ border-left: 2px solid var(--color-accent-blue);
312
+ animation: subtle-pulse 2s infinite ease-in-out;
313
+ }
314
+
315
+ .placeholder .error-message {
316
+ max-width: 80%;
317
+ margin: 0 auto 10px;
318
+ }
319
+
320
+ /* Theme-specific text effects - reduced glow */
321
+ .terminal-title {
322
+ color: var(--color-accent-green);
323
+ font-size: var(--font-size-md);
324
+ font-weight: 500;
325
+ text-shadow: 0 0 3px rgba(146, 209, 150, 0.3);
326
+ }
327
+
328
+ .feed-content, .action-params, .step-progress {
329
+ text-shadow: 0 0 1px rgba(146, 209, 150, 0.2);
330
+ }
331
+
332
+ .feed-type {
333
+ color: var(--color-accent-blue);
334
+ font-size: var(--font-size-sm);
335
+ font-weight: 600;
336
+ display: flex;
337
+ align-items: center;
338
+ gap: 8px; /* Reduced from 12px */
339
+ }
340
+
341
+ .action-name {
342
+ text-shadow: 0 0 2px rgba(212, 208, 122, 0.3);
343
+ }
344
+
345
+ .agent-name {
346
+ text-shadow: 0 0 2px rgba(146, 209, 150, 0.3);
347
+ }
348
+
349
+ .service-name {
350
+ text-shadow: 0 0 2px rgba(193, 150, 211, 0.3);
351
+ }
352
+
353
+ /* Terminal container - pure terminal style, no visual boxes */
354
+ .terminal-container {
355
+ box-shadow: none;
356
+ background: transparent;
357
+ border: none;
358
+ padding: 8px;
359
+ margin: 0;
360
+ font-family: var(--code-font);
361
+ display: flex;
362
+ flex-direction: column;
363
+ width: 100%;
364
+ max-width: 100%;
365
+ height: 100%;
366
+ box-sizing: border-box;
367
+ overflow: auto;
368
+ }
369
+
370
+ /* Terminal containers inside tab panels should fill the entire space */
371
+ /* General tab-panel terminal-container - set proper alignment */
372
+ .tab-panel .terminal-container {
373
+ width: 100%;
374
+ max-width: 100%;
375
+ height: 100%;
376
+ margin: 0;
377
+ padding: 8px;
378
+ box-sizing: border-box;
379
+ overflow: auto;
380
+ background: transparent;
381
+ box-shadow: none;
382
+ border: none;
383
+ display: flex;
384
+ flex-direction: column;
385
+ align-items: flex-start;
386
+ justify-content: flex-start;
387
+ }
388
+ /* Sidebar panel terminal containers need special handling */
389
+ .sidebar-top .terminal-container,
390
+ .sidebar-bottom .terminal-container {
391
+ height: auto;
392
+ max-height: none;
393
+ overflow: visible;
394
+ display: flex;
395
+ flex-direction: column;
396
+ width: 100%; /* Ensure containers fill sidebar width */
397
+ }
398
+
399
+ .sidebar-top .terminal-container > *:not(.vision-header),
400
+ .sidebar-bottom .terminal-container > *:not(.info-header) {
401
+ overflow: visible;
402
+ }
403
+
404
+ .sidebar-top .screenshot-container {
405
+ max-height: 70%;
406
+ overflow: hidden;
407
+ }
408
+
409
+ .sidebar-bottom .meta-section {
410
+ padding-right: 5px;
411
+ }
412
+
413
+ /* =============================================================================
414
+ DESKTOP LAYOUT - UNIFIED CONTENT ZONE
415
+ All pages use the same max-width and padding for consistency
416
+ ============================================================================= */
417
+ @media (min-width: 769px) {
418
+ /* Session container - fills available flex space */
419
+ .session-container {
420
+ display: flex;
421
+ flex-direction: column;
422
+ flex: 1;
423
+ min-height: 0;
424
+ width: 100%;
425
+ max-width: none;
426
+ position: relative;
427
+ }
428
+
429
+ /* Main panel - ALWAYS full viewport width, children control their own max-width */
430
+ .main-panel {
431
+ flex: 1;
432
+ min-height: 0;
433
+ overflow: hidden;
434
+ width: 100%;
435
+ max-width: none;
436
+ display: flex;
437
+ flex-direction: column;
438
+ align-items: center; /* Center children horizontally */
439
+ }
440
+
441
+ /* ALL main-panel children use SAME content zone width */
442
+ .main-panel > * {
443
+ width: 100%;
444
+ max-width: var(--content-max-width, 1400px); /* Single source of truth */
445
+ padding-left: var(--spacing-xl);
446
+ padding-right: var(--spacing-xl);
447
+ padding-top: 0;
448
+ padding-bottom: 0;
449
+ box-sizing: border-box;
450
+ }
451
+
452
+ /* Tab panels - same max-width as other content */
453
+ .main-panel > .tab-panel,
454
+ .main-panel > .tab-panels,
455
+ .main-panel > .tabs-wrapper {
456
+ width: 100%;
457
+ max-width: var(--content-max-width, 1400px);
458
+ padding-left: var(--spacing-xl);
459
+ padding-right: var(--spacing-xl);
460
+ }
461
+
462
+ /* EXCEPTION: Workspace tab needs FULL WIDTH for side-by-side layout */
463
+ .main-panel > #workspace-tab {
464
+ max-width: none;
465
+ padding-left: 0;
466
+ padding-right: 0;
467
+ }
468
+
469
+ /* Terminal containers inherit their parent's constraints - NO max-width override */
470
+ .main-panel .terminal-container {
471
+ width: 100%;
472
+ /* REMOVED: max-width: none - this was overriding parent constraints */
473
+ padding-left: 0;
474
+ padding-right: 0;
475
+ }
476
+
477
+ /* ONLY workspace terminal container should be full-width */
478
+ #workspace-tab .terminal-container {
479
+ max-width: none;
480
+ }
481
+
482
+ /* Sidebar toggle extends to the left edge */
483
+ .tabs-wrapper .btn-sidebar-toggle {
484
+ margin-left: 0;
485
+ padding-left: 0;
486
+ padding-right: 12px;
487
+ }
488
+
489
+ /* Terminal controls flush to right */
490
+ .tabs-wrapper .terminal-controls {
491
+ padding-right: 0;
492
+ }
493
+
494
+ /* Tab panels should fill available flex space */
495
+ .tab-panel {
496
+ flex: 1;
497
+ min-height: 0;
498
+ display: flex;
499
+ flex-direction: column;
500
+ }
501
+
502
+ /* Sidebar as fixed overlay on the left */
503
+ .sidebar-top,
504
+ .sidebar-bottom {
505
+ position: fixed;
506
+ left: 0;
507
+ width: 350px;
508
+ background: var(--color-bg-terminal);
509
+ border-right: 1px solid var(--color-border);
510
+ transition: transform 0.3s ease-out, opacity 0.3s ease-out;
511
+ z-index: 100;
512
+ box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
513
+ }
514
+
515
+ .sidebar-top {
516
+ top: 0;
517
+ height: 40vh;
518
+ overflow-y: auto;
519
+ }
520
+
521
+ .sidebar-bottom {
522
+ top: 40vh;
523
+ height: 60vh;
524
+ overflow-y: auto;
525
+ }
526
+
527
+ /* Hidden state - slide out to the left */
528
+ .session-container.sidebar-hidden .sidebar-top,
529
+ .session-container.sidebar-hidden .sidebar-bottom {
530
+ transform: translateX(-100%);
531
+ opacity: 0;
532
+ pointer-events: none;
533
+ }
534
+
535
+ /* Visible state - slide in from left */
536
+ .session-container:not(.sidebar-hidden) .sidebar-top,
537
+ .session-container:not(.sidebar-hidden) .sidebar-bottom {
538
+ transform: translateX(0);
539
+ opacity: 1;
540
+ pointer-events: auto;
541
+ }
542
+
543
+ /* Backdrop overlay when sidebar is visible */
544
+ .session-container::before {
545
+ content: '';
546
+ position: fixed;
547
+ top: 0;
548
+ left: 0;
549
+ right: 0;
550
+ bottom: 0;
551
+ background: rgba(0, 0, 0, 0.5);
552
+ opacity: 0;
553
+ pointer-events: none;
554
+ transition: opacity 0.3s ease-out;
555
+ z-index: 99;
556
+ }
557
+
558
+ .session-container:not(.sidebar-hidden)::before {
559
+ opacity: 1;
560
+ pointer-events: auto;
561
+ }
562
+
563
+ /* Disable backdrop on history page */
564
+ .session-container.history-mode::before {
565
+ display: none;
566
+ }
567
+
568
+ /* Always hide sidebar on history page */
569
+ .session-container.history-mode .sidebar-top,
570
+ .session-container.history-mode .sidebar-bottom {
571
+ display: none;
572
+ }
573
+
574
+ /* History page main panel - same centering as session page */
575
+ .session-container.history-mode .main-panel {
576
+ width: 100%;
577
+ /* Uses align-items: center from base .main-panel rule */
578
+ }
579
+
580
+ /* History page terminal-container - MUST have unified max-width */
581
+ .session-container.history-mode .main-panel > .terminal-container {
582
+ width: 100%;
583
+ max-width: var(--content-max-width, 1400px);
584
+ padding-left: var(--spacing-xl);
585
+ padding-right: var(--spacing-xl);
586
+ box-sizing: border-box;
587
+ }
588
+
589
+ /* Workspace desktop styles handled in main workspace section */
590
+
591
+ /* Session cards for desktop */
592
+ .session-card {
593
+ width: calc(33.3% - 15px);
594
+ margin-bottom: 20px;
595
+ }
596
+ }
597
+
598
+ /* Media queries for responsive layout - using consistent 768px breakpoint */
599
+ @media (max-width: 768px) {
600
+ /* Force full width on mobile - ZERO body padding for edge-to-edge content */
601
+ body {
602
+ padding-left: 0 !important;
603
+ padding-right: 0 !important;
604
+ }
605
+
606
+ .main-panel, .sidebar-top, .sidebar-bottom {
607
+ grid-column: auto;
608
+ grid-row: auto;
609
+ width: 100%;
610
+ max-width: 100%;
611
+ }
612
+
613
+ .main-panel {
614
+ height: auto;
615
+ max-height: 100vh; /* Increased from 65vh for better mobile screen usage */
616
+ overflow-y: auto;
617
+ order: 1;
618
+ }
619
+
620
+ /* Override desktop max-width constraints for mobile - use safe-area for content padding */
621
+ .main-panel > * {
622
+ max-width: 100% !important;
623
+ padding-left: max(8px, env(safe-area-inset-left)) !important;
624
+ padding-right: max(8px, env(safe-area-inset-right)) !important;
625
+ }
626
+
627
+ /* EXCEPTION: Chat tab needs zero padding so fixed input can span full width */
628
+ .main-panel > #chat-tab {
629
+ padding-left: 0 !important;
630
+ padding-right: 0 !important;
631
+ }
632
+
633
+ /* Tab panels should fill width */
634
+ .tab-panel,
635
+ .tab-panels {
636
+ width: 100% !important;
637
+ max-width: 100% !important;
638
+ }
639
+
640
+ /* EXCEPTION: Remove height limit when workspace tab is active */
641
+ .main-panel:has(#workspace-tab.active) {
642
+ max-height: 100vh;
643
+ height: 100vh;
644
+ overflow: hidden;
645
+ }
646
+
647
+ .terminal-container {
648
+ padding: 8px;
649
+ height: auto;
650
+ max-height: none;
651
+ }
652
+
653
+ .screenshot-container {
654
+ max-height: 30vh;
655
+ }
656
+
657
+ #feed-container {
658
+ max-height: 60vh;
659
+ overflow-y: auto;
660
+ padding-bottom: 30px;
661
+ }
662
+
663
+ /* Stats container for mobile */
664
+ .stats-container {
665
+ grid-template-columns: 1fr !important;
666
+ gap: 12px;
667
+ }
668
+
669
+ .stats-box {
670
+ width: 100%;
671
+ margin-bottom: 0;
672
+ }
673
+
674
+ #stats-tab {
675
+ padding: 8px;
676
+ }
677
+
678
+ /* Tab buttons - hide scrollbar for cleaner look */
679
+ .tab-buttons {
680
+ scrollbar-width: none;
681
+ -ms-overflow-style: none;
682
+ flex: 1;
683
+ overflow-x: auto;
684
+ }
685
+
686
+ .tab-buttons::-webkit-scrollbar {
687
+ display: none;
688
+ }
689
+
690
+ .tab-button {
691
+ padding: 6px 10px;
692
+ font-size: 10px;
693
+ min-height: 36px;
694
+ gap: 4px;
695
+ }
696
+
697
+ /* Tabs wrapper - full width on mobile, more compact, with safe-area padding */
698
+ .tabs-wrapper {
699
+ width: 100% !important;
700
+ max-width: 100% !important;
701
+ padding: 2px max(4px, env(safe-area-inset-right)) 2px max(4px, env(safe-area-inset-left));
702
+ min-height: 40px;
703
+ box-sizing: border-box;
704
+ }
705
+
706
+ /* New session button - compact on mobile */
707
+ .btn-new-session {
708
+ padding: 0 8px;
709
+ font-size: 10px;
710
+ height: 28px;
711
+ min-height: 28px;
712
+ }
713
+
714
+ /* Optional: Add fade gradient to indicate more tabs */
715
+ .tabs-wrapper::after {
716
+ content: '';
717
+ position: absolute;
718
+ right: 0;
719
+ top: 0;
720
+ bottom: 0;
721
+ width: 30px;
722
+ background: linear-gradient(to right, transparent, var(--color-bg-terminal));
723
+ pointer-events: none;
724
+ z-index: 1;
725
+ }
726
+
727
+ /* Global header mobile - use safe-area padding */
728
+ .global-header {
729
+ padding: 6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
730
+ }
731
+
732
+ .terminal-brand {
733
+ font-size: 12px;
734
+ }
735
+
736
+ .terminal-nav {
737
+ gap: 10px;
738
+ }
739
+
740
+ .nav-link {
741
+ font-size: 11px;
742
+ }
743
+
744
+
745
+ /* Hide footer on mobile - conflicts with keyboard and input */
746
+ .terminal-footer {
747
+ display: none !important;
748
+ }
749
+
750
+ /* Hide desktop sidebar toggle button on mobile - we use the circular bottom button instead */
751
+ .btn-sidebar-toggle {
752
+ display: none !important;
753
+ }
754
+
755
+ /* Fullscreen modals - true fullscreen on mobile */
756
+ .preview-modal,
757
+ .fullscreen-container {
758
+ width: 100vw !important;
759
+ height: 100vh !important;
760
+ height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
761
+ padding: 0 !important;
762
+ top: 0 !important;
763
+ left: 0 !important;
764
+ right: 0 !important;
765
+ bottom: 0 !important;
766
+ }
767
+
768
+ .fullscreen-content,
769
+ .preview-modal-content {
770
+ max-width: 100% !important;
771
+ max-height: 100% !important;
772
+ width: 100% !important;
773
+ height: 100% !important;
774
+ }
775
+
776
+ .fullscreen-close,
777
+ .btn-close-modal {
778
+ top: 12px !important; /* Changed from -40px */
779
+ right: 12px !important;
780
+ background: rgba(0, 0, 0, 0.7);
781
+ border-radius: 50%;
782
+ width: 40px;
783
+ height: 40px;
784
+ display: flex;
785
+ align-items: center;
786
+ justify-content: center;
787
+ }
788
+
789
+ /* Enable pinch-to-zoom for images */
790
+ .fullscreen-img,
791
+ .preview-modal-content .image-preview img {
792
+ touch-action: pinch-zoom;
793
+ }
794
+
795
+ /* Mobile sidebar toggle - hide by default, slide up from bottom */
796
+ .sidebar-top,
797
+ .sidebar-bottom {
798
+ position: fixed !important;
799
+ bottom: 0 !important;
800
+ left: 0 !important;
801
+ right: 0 !important;
802
+ top: auto !important;
803
+ width: 100% !important;
804
+ height: 0 !important;
805
+ max-height: 0 !important;
806
+ overflow: hidden !important;
807
+ transition: height 0.3s ease, max-height 0.3s ease !important;
808
+ z-index: 200 !important;
809
+ background: var(--color-bg-terminal) !important;
810
+ border-top: 1px solid var(--color-border) !important;
811
+ border-right: none !important;
812
+ order: initial !important;
813
+ }
814
+
815
+ /* Show sidebars when active on mobile */
816
+ .session-container.mobile-sidebar-visible .sidebar-top,
817
+ .session-container.mobile-sidebar-visible .sidebar-bottom {
818
+ height: auto !important;
819
+ max-height: 70vh !important;
820
+ overflow-y: auto !important;
821
+ }
822
+
823
+ /* Backdrop for mobile sidebar */
824
+ .session-container.mobile-sidebar-visible::after {
825
+ content: '';
826
+ position: fixed;
827
+ top: 0;
828
+ left: 0;
829
+ right: 0;
830
+ bottom: 0;
831
+ background: rgba(0, 0, 0, 0.5);
832
+ z-index: 199;
833
+ }
834
+
835
+ /* Mobile sidebar toggle button - pixel-perfect design */
836
+ .mobile-sidebar-toggle {
837
+ position: fixed;
838
+ bottom: 8px;
839
+ left: 50%;
840
+ transform: translateX(-50%);
841
+ z-index: 201;
842
+ background: rgba(8, 8, 8, 0.9);
843
+ color: var(--color-text-secondary);
844
+ border: 1px solid rgba(123, 195, 201, 0.3);
845
+ border-radius: 16px;
846
+ height: 28px;
847
+ padding: 0 12px;
848
+ display: flex;
849
+ align-items: center;
850
+ justify-content: center;
851
+ gap: 0;
852
+ cursor: pointer;
853
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
854
+ backdrop-filter: blur(8px);
855
+ -webkit-backdrop-filter: blur(8px);
856
+ transition: all 0.2s ease;
857
+ font-family: system-ui, -apple-system, sans-serif;
858
+ }
859
+
860
+ /* Arrow icon - left side (12x12 container) */
861
+ .mobile-sidebar-toggle::before {
862
+ content: '▲';
863
+ font-size: 10px;
864
+ line-height: 1;
865
+ opacity: 0.75;
866
+ display: flex;
867
+ align-items: center;
868
+ justify-content: center;
869
+ width: 12px;
870
+ height: 12px;
871
+ transform: translateY(1px);
872
+ }
873
+
874
+ /* Hamburger icon - right side (12x12 container) */
875
+ .mobile-sidebar-toggle::after {
876
+ content: '≡';
877
+ font-size: 13px;
878
+ font-weight: 600;
879
+ line-height: 1;
880
+ opacity: 0.85;
881
+ display: flex;
882
+ align-items: center;
883
+ justify-content: center;
884
+ width: 12px;
885
+ height: 12px;
886
+ margin-left: 4px;
887
+ }
888
+
889
+ /* When sidebar is visible, flip arrow */
890
+ .mobile-sidebar-toggle.active::before {
891
+ content: '▼';
892
+ }
893
+
894
+ /* Hover state */
895
+ .mobile-sidebar-toggle:hover {
896
+ border-color: rgba(123, 195, 201, 0.6);
897
+ color: var(--color-accent-blue);
898
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
899
+ transform: translateX(-50%) scale(1.05);
900
+ }
901
+
902
+ .mobile-sidebar-toggle:active {
903
+ transform: translateX(-50%) scale(0.95);
904
+ }
905
+ }
906
+
907
+ /* =============================================================================
908
+ ANIMATION KEYFRAMES - Theme-specific (base @keyframes spin in components.css)
909
+ ============================================================================= */
910
+
911
+ @keyframes pulse {
912
+ 0%, 100% { transform: scale(1); opacity: .6; }
913
+ 50% { transform: scale(1.4); opacity: 1; }
914
+ }
915
+
916
+ @keyframes scanline {
917
+ 0% { top: -100px; }
918
+ 100% { top: 100%; }
919
+ }
920
+
921
+ @keyframes flicker {
922
+ 0% { opacity: 0.01; }
923
+ 50% { opacity: 0.02; }
924
+ 100% { opacity: 0.01; }
925
+ }
926
+
927
+ @keyframes pulse-glow {
928
+ 0% { text-shadow: 0 0 3px rgba(146, 209, 150, 0.3); }
929
+ 50% { text-shadow: 0 0 7px rgba(146, 209, 150, 0.5); }
930
+ 100% { text-shadow: 0 0 3px rgba(146, 209, 150, 0.3); }
931
+ }
932
+
933
+ @keyframes subtle-pulse {
934
+ 0% { opacity: 0.6; }
935
+ 50% { opacity: 1; }
936
+ 100% { opacity: 0.6; }
937
+ }
938
+
939
+ /* Event and action styling - properly formatted */
940
+ .event-action {
941
+ margin: 3px 0; /* Reduced from 6px */
942
+ padding: 3px 4px; /* Reduced from 6px 8px */
943
+ border-left: 2px solid var(--color-accent-blue);
944
+ background: transparent;
945
+ border-radius: 0;
946
+ }
947
+
948
+ .event-action-header {
949
+ display: flex;
950
+ align-items: center;
951
+ gap: 4px;
952
+ padding: 0 0 2px 0; /* Reduced from 0 0 4px 0 */
953
+ background: none;
954
+ border: none;
955
+ }
956
+
957
+ .event-action-service,
958
+ .event-action-name {
959
+ padding: 0 4px;
960
+ background: none; /* remove pill background */
961
+ border: none; /* remove pill border */
962
+ font-size: var(--font-size-sm);
963
+ }
964
+
965
+ .event-action-service {
966
+ color: var(--color-accent-purple);
967
+ font-weight: 500;
968
+ }
969
+
970
+ .event-action-name {
971
+ color: var(--color-accent-orange);
972
+ font-weight: 500;
973
+ }
974
+
975
+ .event-action-separator {
976
+ margin: 0 4px;
977
+ color: var(--color-text-muted);
978
+ }
979
+
980
+ /* Remove pre wrapper from action params for cleaner display */
981
+ .event-action-params {
982
+ padding: 0;
983
+ margin: 0;
984
+ }
985
+
986
+ /* =============================================================================
987
+ HEADING STYLES - Terminal aesthetic (opt-in via .terminal-heading class)
988
+ Note: Default headings use component styles. Add .terminal-heading for "> " prefix
989
+ ============================================================================= */
990
+
991
+ h1, h2, h3, h4, h5, h6 {
992
+ font-family: var(--code-font);
993
+ font-weight: normal;
994
+ margin-top: 0.6rem;
995
+ margin-bottom: 0.6rem;
996
+ }
997
+
998
+ /* Terminal-style headings with "> " prefix - use .terminal-heading class */
999
+ .terminal-heading::before {
1000
+ content: "> ";
1001
+ color: var(--color-accent-green);
1002
+ }
1003
+
1004
+ /* Sidebar headings get terminal prefix automatically */
1005
+ .sidebar-top h1::before, .sidebar-top h2::before, .sidebar-top h3::before,
1006
+ .sidebar-bottom h1::before, .sidebar-bottom h2::before, .sidebar-bottom h3::before,
1007
+ .vision-title::before, .info-title::before {
1008
+ content: "> ";
1009
+ color: var(--color-accent-green);
1010
+ }
1011
+
1012
+ /* Action tag styling */
1013
+ .action-tag {
1014
+ display: inline-block;
1015
+ font-family: var(--code-font);
1016
+ font-size: var(--font-size-xs);
1017
+ color: var(--color-accent-blue);
1018
+ background-color: rgba(123, 195, 201, 0.08);
1019
+ border: 1px solid rgba(123, 195, 201, 0.15);
1020
+ padding: 1px 6px;
1021
+ margin: 1px 2px;
1022
+ white-space: nowrap;
1023
+ }
1024
+
1025
+ .service-tag {
1026
+ display: inline-block;
1027
+ font-family: var(--code-font);
1028
+ font-size: var(--font-size-xs);
1029
+ color: var(--color-accent-purple);
1030
+ background-color: rgba(193, 150, 211, 0.08);
1031
+ border: 1px solid rgba(193, 150, 211, 0.15);
1032
+ padding: 1px 6px;
1033
+ margin: 1px 2px;
1034
+ white-space: nowrap;
1035
+ }
1036
+
1037
+ .action-tags-container {
1038
+ display: flex;
1039
+ flex-wrap: wrap;
1040
+ gap: 3px;
1041
+ margin-top: 3px;
1042
+ margin-bottom: 5px;
1043
+ }
1044
+
1045
+ /* Custom action styling for feed */
1046
+ .feed-action {
1047
+ background-color: rgba(123, 195, 201, 0.05);
1048
+ border-left: 2px solid var(--color-accent-blue);
1049
+ padding: 4px 8px;
1050
+ margin: 4px 0;
1051
+ }
1052
+
1053
+ .feed-service {
1054
+ color: var(--color-accent-purple);
1055
+ font-weight: 500;
1056
+ font-size: var(--font-size-xs);
1057
+ margin-left: 4px;
1058
+ padding: 0 4px;
1059
+ background-color: rgba(193, 150, 211, 0.08);
1060
+ border: 1px solid rgba(193, 150, 211, 0.15);
1061
+ }
1062
+
1063
+ /* Status badge styles */
1064
+ .status-running {
1065
+ color: var(--color-accent-blue);
1066
+ }
1067
+
1068
+ .status-completed {
1069
+ color: var(--color-accent-green);
1070
+ }
1071
+
1072
+ .status-failed {
1073
+ color: var(--color-accent-red);
1074
+ }
1075
+
1076
+ .status-confirmed {
1077
+ color: var(--color-accent-green);
1078
+ }
1079
+
1080
+ .status-pending {
1081
+ color: var(--color-accent-yellow);
1082
+ }
1083
+
1084
+ /* Transaction amount colors */
1085
+ .tx-positive {
1086
+ color: var(--color-accent-green);
1087
+ }
1088
+
1089
+ .tx-negative {
1090
+ color: var(--color-accent-red);
1091
+ }
1092
+
1093
+ /* Actions list styling */
1094
+ .actions-list {
1095
+ margin-top: 6px;
1096
+ padding-left: 0;
1097
+ display: flex;
1098
+ flex-wrap: wrap;
1099
+ gap: 4px;
1100
+ }
1101
+
1102
+ .action-item {
1103
+ margin-bottom: 6px;
1104
+ font-size: var(--font-size-sm);
1105
+ padding: 3px 0;
1106
+ border-left: 2px solid var(--color-accent-orange);
1107
+ padding-left: 8px;
1108
+ background-color: rgba(255, 150, 75, 0.05);
1109
+ }
1110
+
1111
+ /* Scope to feed tab only to avoid conflicts with chat */
1112
+ #feed-tab .action-name,
1113
+ .feed-content .action-name {
1114
+ color: var(--color-accent-orange);
1115
+ font-weight: 500;
1116
+ }
1117
+
1118
+ #feed-tab .action-service,
1119
+ .feed-content .action-service {
1120
+ margin-left: 6px;
1121
+ color: var(--color-accent-purple);
1122
+ font-size: var(--font-size-xs);
1123
+ background-color: rgba(193, 150, 211, 0.08);
1124
+ border: 1px solid rgba(193, 150, 211, 0.15);
1125
+ padding: 0 4px;
1126
+ }
1127
+
1128
+ #feed-tab .action-params,
1129
+ .feed-content .action-params {
1130
+ margin-top: 8px;
1131
+ padding: 10px 12px;
1132
+ color: var(--color-text-secondary);
1133
+ font-size: var(--font-size-sm);
1134
+ font-family: var(--code-font);
1135
+ white-space: pre-wrap;
1136
+ word-break: break-word;
1137
+ max-height: 400px;
1138
+ overflow-y: auto;
1139
+ overflow-x: auto;
1140
+ line-height: 1.5;
1141
+ background-color: rgba(30, 35, 40, 0.3);
1142
+ border-left: 2px solid var(--color-accent-blue);
1143
+ }
1144
+
1145
+ /* Service styling in feed */
1146
+ .service-section {
1147
+ margin-bottom: 8px;
1148
+ }
1149
+
1150
+ .service-header {
1151
+ color: var(--color-accent-purple);
1152
+ font-size: var(--font-size-sm);
1153
+ font-weight: 500;
1154
+ margin-bottom: 4px;
1155
+ padding: 2px 0;
1156
+ border-bottom: 1px dotted rgba(193, 150, 211, 0.3);
1157
+ }
1158
+
1159
+ /* Page domain display - removed border */
1160
+ .page-domain {
1161
+ font-size: var(--font-size-sm);
1162
+ color: var(--color-text-secondary);
1163
+ padding: 6px 10px;
1164
+ margin-top: 5px;
1165
+ font-family: var(--code-font);
1166
+ overflow: hidden;
1167
+ text-overflow: ellipsis;
1168
+ white-space: nowrap;
1169
+ background-color: rgba(30, 35, 40, 0.4);
1170
+ }
1171
+
1172
+ .domain-icon {
1173
+ margin-right: 6px;
1174
+ color: var(--color-accent-blue);
1175
+ font-size: 12px;
1176
+ }
1177
+
1178
+ /* Metadata section styling */
1179
+ .metadata-grid {
1180
+ display: grid;
1181
+ grid-template-columns: auto 1fr;
1182
+ gap: 6px 8px; /* Reduced from 8px 10px */
1183
+ font-size: var(--font-size-sm);
1184
+ margin-bottom: 6px;
1185
+ }
1186
+
1187
+ .metadata-grid .meta-label {
1188
+ border-left: none;
1189
+ padding-left: 0;
1190
+ margin-bottom: 0;
1191
+ color: var(--color-text-muted);
1192
+ font-weight: normal;
1193
+ display: block;
1194
+ }
1195
+
1196
+ .meta-label {
1197
+ color: var(--color-text-muted);
1198
+ }
1199
+
1200
+ .meta-value {
1201
+ color: var(--color-text-primary);
1202
+ text-align: right;
1203
+ overflow: hidden;
1204
+ text-overflow: ellipsis;
1205
+ white-space: nowrap;
1206
+ }
1207
+
1208
+ .meta-section {
1209
+ margin-bottom: 8px;
1210
+ padding-top: 4px;
1211
+ }
1212
+
1213
+ .meta-section.compact {
1214
+ margin-bottom: 4px;
1215
+ padding-top: 2px;
1216
+ }
1217
+
1218
+ .meta-section + .meta-section {
1219
+ border-top: 1px dotted var(--color-border);
1220
+ padding-top: 8px;
1221
+ }
1222
+
1223
+ .meta-section.compact + .meta-section.compact {
1224
+ border-top: 1px dotted var(--color-border);
1225
+ padding-top: 4px;
1226
+ }
1227
+
1228
+ .meta-section-title {
1229
+ color: var(--color-text-muted);
1230
+ margin-bottom: 6px;
1231
+ font-size: var(--font-size-sm);
1232
+ font-weight: 500;
1233
+ }
1234
+
1235
+ .meta-section.compact .meta-section-title {
1236
+ margin-bottom: 4px;
1237
+ font-size: var(--font-size-xs);
1238
+ }
1239
+
1240
+ .meta-section-title::before {
1241
+ content: "";
1242
+ }
1243
+
1244
+ /* Compact list styles */
1245
+ .compact-list {
1246
+ min-height: auto;
1247
+ }
1248
+
1249
+ .compact-list .loading-indicator.compact {
1250
+ padding: 2px 0;
1251
+ font-size: var(--font-size-xs);
1252
+ color: var(--color-text-muted);
1253
+ }
1254
+
1255
+ .compact-list .loading-indicator.compact .loading-spinner {
1256
+ display: none;
1257
+ }
1258
+
1259
+ .compact-list .placeholder-text.compact {
1260
+ padding: 2px 0;
1261
+ font-size: var(--font-size-xs);
1262
+ color: var(--color-text-muted);
1263
+ text-align: left;
1264
+ }
1265
+
1266
+ /* Compact metadata grid */
1267
+ .metadata-grid.compact {
1268
+ gap: 3px 6px;
1269
+ font-size: var(--font-size-xs);
1270
+ }
1271
+
1272
+ .task-description.compact {
1273
+ font-size: var(--font-size-sm);
1274
+ line-height: 1.4;
1275
+ margin: 0;
1276
+ padding: 0;
1277
+ }
1278
+
1279
+ /* Feed styling */
1280
+ .feed-container {
1281
+ display: flex;
1282
+ flex-direction: column;
1283
+ gap: 4px;
1284
+ padding: 0;
1285
+ }
1286
+
1287
+ .feed-item {
1288
+ background-color: var(--color-bg-elevated);
1289
+ border-radius: 6px;
1290
+ padding: 6px; /* Reduced from 12px */
1291
+ margin-bottom: 4px; /* Reduced from 8px */
1292
+ border-left: 3px solid var(--color-accent-blue);
1293
+ transition: box-shadow 0.2s ease;
1294
+ }
1295
+
1296
+ /* Compact feed content */
1297
+ .feed-content.compact {
1298
+ padding: 4px 0;
1299
+ font-size: var(--font-size-sm);
1300
+ }
1301
+
1302
+ /* Actions summary - compact inline display */
1303
+ .event-actions-summary {
1304
+ font-size: var(--font-size-xs);
1305
+ color: var(--color-text-secondary);
1306
+ opacity: 0.8;
1307
+ font-family: var(--code-font);
1308
+ margin-top: 2px;
1309
+ padding: 2px 0;
1310
+ }
1311
+
1312
+ .feed-item:hover {
1313
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
1314
+ }
1315
+
1316
+ .feed-header {
1317
+ display: flex;
1318
+ justify-content: space-between;
1319
+ margin-bottom: 4px; /* Reduced from 8px */
1320
+ font-size: var(--font-size-sm);
1321
+ }
1322
+
1323
+ .feed-time {
1324
+ color: var(--color-text-muted);
1325
+ font-family: var(--code-font);
1326
+ }
1327
+
1328
+ .feed-content {
1329
+ padding: 4px 0; /* Reduced from 8px 0 */
1330
+ line-height: 1.4;
1331
+ }
1332
+
1333
+ /* Tab styles */
1334
+ .tab-header {
1335
+ display: flex;
1336
+ justify-content: space-between;
1337
+ align-items: center;
1338
+ border-bottom: 1px solid var(--color-border);
1339
+ padding: 0;
1340
+ }
1341
+
1342
+ .tab-buttons {
1343
+ display: flex;
1344
+ align-items: center;
1345
+ gap: 0;
1346
+ overflow-x: auto;
1347
+ overflow-y: hidden;
1348
+ scroll-behavior: smooth;
1349
+ -webkit-overflow-scrolling: touch;
1350
+ }
1351
+
1352
+ .tab-button {
1353
+ background: none;
1354
+ border: none;
1355
+ color: var(--color-text-secondary);
1356
+ font-family: var(--code-font);
1357
+ font-size: var(--font-size-sm);
1358
+ padding: 10px 20px; /* Increased from 6px 15px for mobile touch targets */
1359
+ cursor: pointer;
1360
+ text-transform: uppercase;
1361
+ border-bottom: 2px solid transparent;
1362
+ position: relative;
1363
+ line-height: 1.4;
1364
+ display: flex;
1365
+ align-items: center;
1366
+ min-height: 44px; /* Increased from 32px for mobile touch targets */
1367
+ flex-shrink: 0;
1368
+ white-space: nowrap;
1369
+ }
1370
+
1371
+ .tab-button:hover {
1372
+ color: var(--color-text-primary);
1373
+ }
1374
+
1375
+ .tab-button.active {
1376
+ color: var(--color-accent-green);
1377
+ border-bottom-color: var(--color-accent-green);
1378
+ }
1379
+
1380
+ .tab-button .pulse-dot {
1381
+ margin-left: 5px;
1382
+ }
1383
+
1384
+ .tab-panel {
1385
+ display: none;
1386
+ height: 100%;
1387
+ padding: 0;
1388
+ margin: 0;
1389
+ }
1390
+
1391
+ .tab-panel.active {
1392
+ display: flex;
1393
+ flex-direction: column;
1394
+ }
1395
+
1396
+ /* Remove conflicting display rules - rely on .tab-panel.active */
1397
+ #chat-tab:not(.active),
1398
+ #feed-tab:not(.active),
1399
+ #workspace-tab:not(.active),
1400
+ #stats-tab:not(.active) {
1401
+ display: none;
1402
+ }
1403
+
1404
+ /* All active tabs use flex layout from .tab-panel.active */
1405
+
1406
+ /* ========== WORKSPACE: SIMPLE TWO-COLUMN LAYOUT ========== */
1407
+ /* LEFT: File list | RIGHT: File preview */
1408
+
1409
+ #workspace-tab .terminal-container {
1410
+ padding: 0;
1411
+ overflow: hidden;
1412
+ }
1413
+
1414
+ .workspace-container {
1415
+ height: 100%;
1416
+ }
1417
+
1418
+ .workspace-layout {
1419
+ display: flex;
1420
+ flex-direction: row;
1421
+ height: 100%;
1422
+ }
1423
+
1424
+ /* LEFT COLUMN: File Tree */
1425
+ .file-tree {
1426
+ display: flex;
1427
+ flex-direction: column;
1428
+ width: 220px;
1429
+ min-width: 180px;
1430
+ max-width: 300px;
1431
+ border-right: 1px solid rgba(86, 226, 194, 0.1);
1432
+ }
1433
+
1434
+ .file-tree-header {
1435
+ padding: 6px 12px;
1436
+ font-size: var(--font-size-xs);
1437
+ color: var(--color-text-muted);
1438
+ opacity: 0.7;
1439
+ text-transform: uppercase;
1440
+ letter-spacing: 0.5px;
1441
+ }
1442
+
1443
+ .file-tree-content {
1444
+ flex: 1;
1445
+ overflow-y: auto;
1446
+ padding: 4px 0;
1447
+ }
1448
+
1449
+ .file-item {
1450
+ display: flex;
1451
+ align-items: center;
1452
+ padding: 4px 8px;
1453
+ cursor: pointer;
1454
+ font-size: var(--font-size-sm);
1455
+ }
1456
+
1457
+ .file-item:hover {
1458
+ background-color: rgba(255, 255, 255, 0.05);
1459
+ }
1460
+
1461
+ .file-item.active {
1462
+ background-color: rgba(121, 192, 255, 0.1);
1463
+ border-left: 2px solid var(--color-accent-blue);
1464
+ }
1465
+
1466
+ .file-item-icon {
1467
+ width: 16px;
1468
+ margin-right: 8px;
1469
+ color: var(--text-accent);
1470
+ }
1471
+
1472
+ .file-item-name {
1473
+ flex: 1;
1474
+ }
1475
+
1476
+ .dir-toggle {
1477
+ margin-right: 5px;
1478
+ cursor: pointer;
1479
+ transition: transform 0.2s;
1480
+ width: 12px;
1481
+ color: var(--color-accent-green);
1482
+ }
1483
+
1484
+ .dir-toggle.open {
1485
+ transform: rotate(90deg);
1486
+ }
1487
+
1488
+ .dir-contents {
1489
+ margin-left: 15px;
1490
+ display: none;
1491
+ }
1492
+
1493
+ .dir-contents.open {
1494
+ display: block;
1495
+ }
1496
+
1497
+ /* RIGHT COLUMN: File Preview */
1498
+ .file-preview {
1499
+ flex: 1;
1500
+ display: flex;
1501
+ flex-direction: column;
1502
+ overflow: hidden;
1503
+ }
1504
+
1505
+ .file-preview-header {
1506
+ display: flex;
1507
+ justify-content: space-between;
1508
+ align-items: center;
1509
+ padding: 6px 12px;
1510
+ font-size: var(--font-size-sm);
1511
+ color: var(--color-text-muted);
1512
+ border-bottom: 1px solid rgba(86, 226, 194, 0.1);
1513
+ }
1514
+
1515
+ /* Actions container in preview header */
1516
+ .file-preview-actions {
1517
+ display: flex;
1518
+ flex-direction: row;
1519
+ align-items: center;
1520
+ gap: 2px;
1521
+ flex-shrink: 0;
1522
+ }
1523
+
1524
+ .file-preview-content {
1525
+ flex: 1;
1526
+ overflow: auto;
1527
+ padding: 0;
1528
+ font-family: var(--code-font);
1529
+ font-size: var(--font-size-sm);
1530
+ line-height: 1.5;
1531
+ }
1532
+
1533
+ .file-preview-content pre {
1534
+ margin: 0;
1535
+ }
1536
+
1537
+ .file-preview-content code {
1538
+ font-family: var(--code-font);
1539
+ }
1540
+
1541
+ /* Placeholder when no file selected */
1542
+ .file-preview-content .placeholder {
1543
+ color: var(--color-text-muted);
1544
+ opacity: 0.5;
1545
+ font-style: italic;
1546
+ padding: 16px;
1547
+ }
1548
+
1549
+ /* Add padding for text files (but not HTML/Markdown/CSV) */
1550
+ .file-preview-content > pre.file-content {
1551
+ padding: 16px;
1552
+ }
1553
+
1554
+ /* Image preview in workspace - constrain to viewport */
1555
+ .file-preview-content .image-preview {
1556
+ display: flex;
1557
+ justify-content: center;
1558
+ align-items: flex-start;
1559
+ padding: 20px;
1560
+ width: 100%;
1561
+ height: 100%;
1562
+ overflow: auto;
1563
+ }
1564
+
1565
+ .file-preview-content .image-preview img {
1566
+ max-width: 100%;
1567
+ max-height: calc(100vh - 200px);
1568
+ height: auto;
1569
+ object-fit: contain;
1570
+ border-radius: 4px;
1571
+ }
1572
+
1573
+ /* Task styling */
1574
+ .task-title {
1575
+ font-weight: 500;
1576
+ color: var(--color-text-primary);
1577
+ margin-bottom: 2px;
1578
+ font-size: var(--font-size-sm);
1579
+ }
1580
+
1581
+ .task-description {
1582
+ color: var(--color-text-primary);
1583
+ font-size: var(--font-size-sm);
1584
+ margin-top: 6px;
1585
+ white-space: pre-wrap;
1586
+ word-break: break-word;
1587
+ line-height: 1.5;
1588
+ }
1589
+
1590
+ .task-current {
1591
+ margin-top: 10px;
1592
+ padding: 8px 12px;
1593
+ background-color: rgba(108, 169, 247, 0.08);
1594
+ border-left: 2px solid var(--color-accent-blue);
1595
+ font-size: var(--font-size-sm);
1596
+ }
1597
+
1598
+ .current-label {
1599
+ color: var(--color-text-muted);
1600
+ font-size: var(--font-size-xs);
1601
+ margin-right: 6px;
1602
+ }
1603
+
1604
+ #current-task-text {
1605
+ color: var(--color-accent-blue);
1606
+ }
1607
+
1608
+ /* Screenshot container styling */
1609
+ .screenshot-container {
1610
+ width: 100%;
1611
+ position: relative;
1612
+ overflow: hidden;
1613
+ transition: all 0.3s ease;
1614
+ background-color: var(--color-bg-terminal);
1615
+ border: 1px solid var(--color-border);
1616
+ margin-bottom: 10px;
1617
+ min-height: auto;
1618
+ max-height: none;
1619
+ display: flex;
1620
+ align-items: center;
1621
+ justify-content: center;
1622
+ }
1623
+
1624
+ .screenshot {
1625
+ width: 100%;
1626
+ display: block;
1627
+ max-height: none;
1628
+ object-fit: contain;
1629
+ }
1630
+
1631
+ /* Fullscreen container */
1632
+ .fullscreen-container {
1633
+ position: fixed;
1634
+ top: 0;
1635
+ left: 0;
1636
+ width: 100vw;
1637
+ height: 100vh;
1638
+ background-color: rgba(0, 0, 0, 0.9);
1639
+ z-index: 1000;
1640
+ display: none;
1641
+ justify-content: center;
1642
+ align-items: center;
1643
+ padding: 20px;
1644
+ }
1645
+
1646
+ .fullscreen-container.active {
1647
+ display: flex;
1648
+ }
1649
+
1650
+ .fullscreen-content {
1651
+ max-width: 95%;
1652
+ max-height: 95%;
1653
+ position: relative;
1654
+ }
1655
+
1656
+ .fullscreen-img {
1657
+ max-width: 100%;
1658
+ max-height: 95vh;
1659
+ border: none;
1660
+ }
1661
+
1662
+ .fullscreen-close {
1663
+ position: absolute;
1664
+ top: -40px;
1665
+ right: 0;
1666
+ color: white;
1667
+ background: none;
1668
+ border: none;
1669
+ font-size: var(--font-size-lg);
1670
+ cursor: pointer;
1671
+ padding: 8px 12px;
1672
+ }
1673
+
1674
+ /* Fix for the fullscreen button in vision header */
1675
+ #fullscreen-btn {
1676
+ color: var(--color-accent-blue);
1677
+ font-size: var(--font-size-md);
1678
+ padding: 4px 8px;
1679
+ background: none;
1680
+ border: none;
1681
+ cursor: pointer;
1682
+ transition: color 0.2s;
1683
+ }
1684
+
1685
+ #fullscreen-btn:hover {
1686
+ color: var(--color-accent-green);
1687
+ }
1688
+
1689
+ /* Placeholder styling - minimal terminal style */
1690
+ .placeholder {
1691
+ padding: 12px;
1692
+ text-align: left;
1693
+ color: var(--color-text-muted);
1694
+ font-size: var(--font-size-sm);
1695
+ background: transparent;
1696
+ opacity: 0.5;
1697
+ font-style: italic;
1698
+ }
1699
+
1700
+ /* Terminal header styling for container elements */
1701
+ .terminal-container .terminal-header {
1702
+ border-bottom: 1px dotted var(--color-border);
1703
+ padding-bottom: 2px;
1704
+ margin-bottom: 2px;
1705
+ display: flex;
1706
+ justify-content: space-between;
1707
+ align-items: center;
1708
+ flex: 0 0 auto;
1709
+ }
1710
+
1711
+ .terminal-container .terminal-header-content {
1712
+ display: flex;
1713
+ justify-content: space-between;
1714
+ align-items: center;
1715
+ }
1716
+
1717
+ /* Terminal title - no prefix by default (controlled by heading rules above) */
1718
+ .terminal-title::before {
1719
+ content: none;
1720
+ }
1721
+
1722
+ /* Terminal controls styling */
1723
+ .terminal-controls {
1724
+ display: flex;
1725
+ gap: 8px;
1726
+ align-items: center;
1727
+ margin-left: auto;
1728
+ padding-right: 0;
1729
+ }
1730
+
1731
+ /* Sidebar Toggle button - minimal icon, flush to left edge */
1732
+ .btn-sidebar-toggle {
1733
+ background: none;
1734
+ border: none;
1735
+ color: var(--color-text-muted);
1736
+ padding: 8px 4px 6px 0;
1737
+ margin: 0;
1738
+ margin-right: -8px;
1739
+ cursor: pointer;
1740
+ transition: all 0.2s;
1741
+ font-size: 16px;
1742
+ line-height: 1.4;
1743
+ font-family: var(--code-font);
1744
+ display: inline-flex;
1745
+ align-items: center;
1746
+ justify-content: center;
1747
+ align-self: center;
1748
+ min-width: 44px; /* Mobile touch target minimum */
1749
+ min-height: 44px; /* Mobile touch target minimum */
1750
+ position: relative;
1751
+ top: -4px;
1752
+ }
1753
+
1754
+ .btn-sidebar-toggle:hover {
1755
+ color: var(--color-accent-blue);
1756
+ }
1757
+
1758
+ /* History button - minimal icon with SVG */
1759
+ .btn-history {
1760
+ background: none;
1761
+ border: none;
1762
+ color: var(--color-text-muted);
1763
+ padding: 0 8px;
1764
+ margin: 0;
1765
+ cursor: pointer;
1766
+ transition: all 0.2s;
1767
+ text-decoration: none;
1768
+ font-size: 16px;
1769
+ line-height: 1;
1770
+ font-family: var(--code-font);
1771
+ display: flex;
1772
+ align-items: center;
1773
+ justify-content: center;
1774
+ height: 32px;
1775
+ }
1776
+
1777
+ .btn-history svg {
1778
+ display: block;
1779
+ width: 16px;
1780
+ height: 16px;
1781
+ }
1782
+
1783
+ .btn-history:hover {
1784
+ color: var(--color-accent-blue);
1785
+ }
1786
+
1787
+ /* New Session button - mild style matching SEND button */
1788
+ .btn-new-session {
1789
+ background: transparent;
1790
+ border: 1px solid var(--color-border);
1791
+ border-radius: 0;
1792
+ color: var(--color-text-primary);
1793
+ font-family: var(--code-font);
1794
+ font-size: var(--font-size-xs);
1795
+ padding: 0 12px;
1796
+ margin: 0;
1797
+ cursor: pointer;
1798
+ text-transform: uppercase;
1799
+ letter-spacing: 0.5px;
1800
+ transition: all 0.15s;
1801
+ font-weight: 400;
1802
+ white-space: nowrap;
1803
+ line-height: 1.4;
1804
+ display: flex;
1805
+ align-items: center;
1806
+ height: 28px;
1807
+ }
1808
+
1809
+ .btn-new-session:hover {
1810
+ border-color: var(--color-accent-green);
1811
+ color: var(--color-accent-green);
1812
+ }
1813
+
1814
+ .btn-new-session:active {
1815
+ transform: scale(0.98);
1816
+ }
1817
+
1818
+ .btn-new-session:disabled {
1819
+ border-color: var(--color-border);
1820
+ color: var(--color-text-muted);
1821
+ cursor: not-allowed;
1822
+ opacity: 0.3;
1823
+ }
1824
+
1825
+ /* Vision header styles */
1826
+ .vision-header {
1827
+ display: flex;
1828
+ justify-content: space-between;
1829
+ align-items: center;
1830
+ border-bottom: 1px dotted var(--color-border);
1831
+ padding-bottom: 2px;
1832
+ margin-bottom: 2px;
1833
+ }
1834
+
1835
+ .vision-title {
1836
+ color: var(--color-accent-green);
1837
+ font-size: var(--font-size-md);
1838
+ font-weight: 500;
1839
+ }
1840
+
1841
+ .vision-title::before {
1842
+ content: "> ";
1843
+ color: var(--color-accent-green);
1844
+ }
1845
+
1846
+ /* Info header styles */
1847
+ .info-header {
1848
+ display: flex;
1849
+ justify-content: space-between;
1850
+ align-items: center;
1851
+ border-bottom: 1px dotted var(--color-border);
1852
+ padding-bottom: 2px;
1853
+ margin-bottom: 2px;
1854
+ }
1855
+
1856
+ /* Connection status indicator */
1857
+ .connection-status {
1858
+ display: flex;
1859
+ align-items: center;
1860
+ gap: 5px;
1861
+ font-size: var(--font-size-xs);
1862
+ color: var(--color-text-muted);
1863
+ }
1864
+
1865
+ .connection-dot {
1866
+ width: 8px;
1867
+ height: 8px;
1868
+ border-radius: 50%;
1869
+ background-color: var(--color-accent-yellow);
1870
+ transition: background-color 0.3s ease;
1871
+ }
1872
+
1873
+ /* Connected state */
1874
+ .connection-status.connected .connection-dot {
1875
+ background-color: var(--color-accent-green);
1876
+ box-shadow: 0 0 4px var(--color-accent-green);
1877
+ }
1878
+
1879
+ .connection-status.connected .connection-text {
1880
+ color: var(--color-accent-green);
1881
+ }
1882
+
1883
+ /* Disconnected state */
1884
+ .connection-status.disconnected .connection-dot {
1885
+ background-color: var(--color-accent-red);
1886
+ animation: pulse-red 2s infinite;
1887
+ }
1888
+
1889
+ .connection-status.disconnected .connection-text {
1890
+ color: var(--color-accent-red);
1891
+ }
1892
+
1893
+ /* Reconnecting state */
1894
+ .connection-status.reconnecting .connection-dot {
1895
+ background-color: var(--color-accent-yellow);
1896
+ animation: pulse-yellow 1s infinite;
1897
+ }
1898
+
1899
+ .connection-status.reconnecting .connection-text {
1900
+ color: var(--color-accent-yellow);
1901
+ }
1902
+
1903
+ @keyframes pulse-red {
1904
+ 0%, 100% { opacity: 1; }
1905
+ 50% { opacity: 0.4; }
1906
+ }
1907
+
1908
+ @keyframes pulse-yellow {
1909
+ 0%, 100% { opacity: 1; }
1910
+ 50% { opacity: 0.5; }
1911
+ }
1912
+
1913
+ .connection-text {
1914
+ white-space: nowrap;
1915
+ overflow: hidden;
1916
+ text-overflow: ellipsis;
1917
+ max-width: 100px;
1918
+ }
1919
+
1920
+ .info-title {
1921
+ color: var(--color-accent-green);
1922
+ font-size: var(--font-size-md);
1923
+ font-weight: 500;
1924
+ }
1925
+
1926
+ .info-title::before {
1927
+ content: "> ";
1928
+ color: var(--color-accent-green);
1929
+ }
1930
+
1931
+ /* File content styling - NO BOXES */
1932
+ .file-content {
1933
+ white-space: pre;
1934
+ font-family: var(--code-font);
1935
+ line-height: 1.6;
1936
+ tab-size: 4;
1937
+ background-color: transparent;
1938
+ padding: 0;
1939
+ margin: 0;
1940
+ font-size: var(--font-size-sm);
1941
+ box-sizing: border-box;
1942
+ height: 100%;
1943
+ overflow: auto;
1944
+ }
1945
+
1946
+ /* Code content styling */
1947
+ .code-content {
1948
+ font-family: var(--code-font);
1949
+ font-size: var(--font-size-sm);
1950
+ line-height: 1.5;
1951
+ white-space: pre-wrap;
1952
+ background-color: var(--color-bg-terminal);
1953
+ padding: 15px;
1954
+ color: var(--color-text-secondary);
1955
+ tab-size: 4;
1956
+ width: 100%;
1957
+ overflow-x: auto;
1958
+ max-height: none;
1959
+ }
1960
+
1961
+ .terminal-output {
1962
+ font-family: var(--code-font);
1963
+ font-size: var(--font-size-sm);
1964
+ line-height: 1.5;
1965
+ white-space: pre-wrap;
1966
+ background-color: transparent;
1967
+ padding: 0;
1968
+ color: var(--color-text-secondary);
1969
+ overflow-x: auto;
1970
+ width: 100%;
1971
+ }
1972
+
1973
+ /* =============================================================================
1974
+ ERROR DISPLAY - Session-specific extensions (base in components.css)
1975
+ ============================================================================= */
1976
+
1977
+ /* Scrollable variant for large error content */
1978
+ .error-message--scrollable {
1979
+ max-height: 400px;
1980
+ overflow-y: auto;
1981
+ overflow-x: auto;
1982
+ }
1983
+
1984
+ /* Traceback toggle (session-specific) */
1985
+ .traceback-section {
1986
+ font-size: var(--font-size-xs);
1987
+ color: var(--color-text-muted);
1988
+ margin-top: var(--spacing-sm);
1989
+ padding-top: var(--spacing-sm);
1990
+ border-top: 1px dotted rgba(212, 118, 118, 0.2);
1991
+ }
1992
+
1993
+ .traceback-toggle {
1994
+ font-size: var(--font-size-xs);
1995
+ color: var(--color-accent-blue);
1996
+ background: none;
1997
+ border: none;
1998
+ border-left: 2px solid var(--color-accent-blue);
1999
+ padding: 3px 10px;
2000
+ cursor: pointer;
2001
+ margin-top: 5px;
2002
+ font-family: var(--code-font);
2003
+ }
2004
+
2005
+ .traceback-toggle:hover {
2006
+ background-color: rgba(123, 195, 201, 0.1);
2007
+ }
2008
+
2009
+ .traceback-content {
2010
+ display: none;
2011
+ margin-top: var(--spacing-sm);
2012
+ padding: var(--spacing-sm);
2013
+ background-color: var(--color-bg-secondary);
2014
+ border-left: 2px solid var(--color-accent-yellow);
2015
+ font-family: var(--code-font);
2016
+ white-space: pre-wrap;
2017
+ word-break: break-all;
2018
+ font-size: var(--font-size-xs);
2019
+ line-height: 1.5;
2020
+ color: var(--color-text-muted);
2021
+ max-height: 300px;
2022
+ overflow-y: auto;
2023
+ }
2024
+
2025
+ /* Agent and service styling */
2026
+ .agent-item {
2027
+ padding: 8px 10px;
2028
+ margin-bottom: 8px;
2029
+ font-size: var(--font-size-sm);
2030
+ background-color: rgba(123, 195, 201, 0.08);
2031
+ transition: background-color 0.2s;
2032
+ border-left: 2px solid var(--color-accent-blue);
2033
+ box-sizing: border-box;
2034
+ width: 100%;
2035
+ display: flex;
2036
+ flex-direction: column;
2037
+ gap: 4px;
2038
+ }
2039
+
2040
+ .agent-item:hover {
2041
+ background-color: rgba(123, 195, 201, 0.12);
2042
+ }
2043
+
2044
+ /* Remove badge and use colored text instead */
2045
+ .agent-role {
2046
+ color: var(--color-accent-blue);
2047
+ font-weight: 500;
2048
+ font-size: var(--font-size-sm);
2049
+ margin: 0;
2050
+ padding: 0;
2051
+ }
2052
+
2053
+ .agent-info-row {
2054
+ display: flex;
2055
+ flex-direction: column;
2056
+ align-items: flex-start;
2057
+ width: 100%;
2058
+ margin-bottom: 2px;
2059
+ gap: 2px;
2060
+ }
2061
+
2062
+ .agent-name {
2063
+ font-weight: 500;
2064
+ font-size: var(--font-size-sm);
2065
+ color: var(--color-text-primary);
2066
+ width: auto;
2067
+ overflow: hidden;
2068
+ text-overflow: ellipsis;
2069
+ white-space: nowrap;
2070
+ }
2071
+
2072
+ .agent-type {
2073
+ font-size: var(--font-size-xs);
2074
+ color: var(--color-text-secondary);
2075
+ margin-bottom: 0;
2076
+ margin-top: 1px;
2077
+ width: 100%;
2078
+ }
2079
+
2080
+ .agent-model {
2081
+ font-size: var(--font-size-xs);
2082
+ color: var(--color-accent-teal);
2083
+ font-weight: 500;
2084
+ white-space: nowrap;
2085
+ overflow: hidden;
2086
+ text-overflow: ellipsis;
2087
+ max-width: 100%;
2088
+ width: 100%;
2089
+ margin-top: 2px;
2090
+ }
2091
+
2092
+ .agent-list {
2093
+ margin-top: 6px;
2094
+ width: 100%;
2095
+ display: flex;
2096
+ flex-direction: column;
2097
+ gap: 8px;
2098
+ }
2099
+
2100
+ /* Services styling - removed border */
2101
+ .service-tile {
2102
+ background-color: rgba(40, 45, 50, 0.2);
2103
+ padding: 6px 12px;
2104
+ border-radius: 0;
2105
+ transition: background-color 0.2s;
2106
+ font-size: var(--font-size-sm);
2107
+ display: inline-block;
2108
+ min-width: 90px;
2109
+ text-align: center;
2110
+ position: relative;
2111
+ margin: 0 4px 4px 0;
2112
+ }
2113
+
2114
+ .service-tile:hover {
2115
+ background-color: rgba(40, 45, 50, 0.3);
2116
+ }
2117
+
2118
+ .service-name {
2119
+ color: var(--color-accent-purple);
2120
+ font-weight: 500;
2121
+ white-space: nowrap;
2122
+ font-family: var(--code-font);
2123
+ letter-spacing: 0.5px;
2124
+ }
2125
+
2126
+ /* Skill badge for custom skills */
2127
+ .skill-badge {
2128
+ display: inline-block;
2129
+ padding: 1px 5px;
2130
+ font-size: 9px;
2131
+ border-radius: 3px;
2132
+ margin-left: 6px;
2133
+ font-weight: 500;
2134
+ letter-spacing: 0.3px;
2135
+ vertical-align: middle;
2136
+ text-transform: uppercase;
2137
+ }
2138
+
2139
+ .skill-badge.custom {
2140
+ background-color: var(--accent-green);
2141
+ color: var(--color-bg-dark);
2142
+ }
2143
+
2144
+ .skill-badge.system {
2145
+ background-color: var(--color-accent-purple);
2146
+ color: var(--color-bg-dark);
2147
+ }
2148
+
2149
+ /* Agent styles for JavaScript generated content */
2150
+ .agent-item-generated {
2151
+ border-left: 2px solid var(--color-accent-blue);
2152
+ background-color: rgba(123, 195, 201, 0.08);
2153
+ padding: 8px 10px;
2154
+ margin-bottom: 8px;
2155
+ transition: background-color 0.2s;
2156
+ }
2157
+
2158
+ .agent-name-generated {
2159
+ color: var(--color-accent-blue);
2160
+ font-weight: 500;
2161
+ display: block;
2162
+ margin-bottom: 3px;
2163
+ }
2164
+
2165
+ .agent-type-generated {
2166
+ color: var(--color-text-muted);
2167
+ font-style: italic;
2168
+ font-size: var(--font-size-sm);
2169
+ }
2170
+
2171
+ .agent-model-generated {
2172
+ color: var(--color-accent-teal);
2173
+ font-weight: 500;
2174
+ font-size: var(--font-size-sm);
2175
+ }
2176
+
2177
+ .agent-id-generated {
2178
+ font-size: var(--font-size-sm);
2179
+ color: var(--color-text-muted);
2180
+ margin-top: 3px;
2181
+ }
2182
+
2183
+ /* Step task and progress */
2184
+ .step-task {
2185
+ color: var(--color-accent-green);
2186
+ font-weight: 500;
2187
+ margin-bottom: 4px;
2188
+ font-size: var(--font-size-md);
2189
+ }
2190
+
2191
+ .step-progress {
2192
+ color: var(--color-text-secondary);
2193
+ font-size: var(--font-size-base);
2194
+ margin-bottom: 6px;
2195
+ }
2196
+
2197
+ /* Status update styles */
2198
+ .status-update {
2199
+ color: var(--color-text-primary);
2200
+ font-size: var(--font-size-base);
2201
+ }
2202
+
2203
+ .status-value {
2204
+ color: var(--color-accent-blue);
2205
+ font-weight: 500;
2206
+ }
2207
+
2208
+ .previous-status {
2209
+ color: var(--color-text-muted);
2210
+ }
2211
+
2212
+ /* Plan content */
2213
+ .plan-content {
2214
+ white-space: pre-wrap;
2215
+ color: var(--color-accent-blue);
2216
+ font-family: var(--code-font);
2217
+ font-size: var(--font-size-md);
2218
+ padding: 8px 12px;
2219
+ background: rgba(123, 195, 201, 0.08);
2220
+ line-height: 1.5;
2221
+ }
2222
+
2223
+ /* CSV table styling */
2224
+ .csv-table-container {
2225
+ width: 100%;
2226
+ overflow-x: auto;
2227
+ max-height: none;
2228
+ }
2229
+
2230
+ .csv-table {
2231
+ border-collapse: collapse;
2232
+ width: 100%;
2233
+ font-size: var(--font-size-xs);
2234
+ overflow: auto;
2235
+ }
2236
+
2237
+ .csv-table th {
2238
+ background-color: rgba(80, 80, 80, 0.3);
2239
+ color: var(--color-accent-blue);
2240
+ text-align: left;
2241
+ padding: 6px 8px;
2242
+ border: 1px solid var(--color-border);
2243
+ }
2244
+
2245
+ .csv-table td {
2246
+ padding: 4px 8px;
2247
+ border: 1px solid var(--color-border);
2248
+ max-width: 300px;
2249
+ overflow: hidden;
2250
+ text-overflow: ellipsis;
2251
+ white-space: nowrap;
2252
+ }
2253
+
2254
+ .csv-table tr:nth-child(even) {
2255
+ background-color: rgba(80, 80, 80, 0.1);
2256
+ }
2257
+
2258
+ /* Keep language-specific syntax highlighting tints */
2259
+ .code-js { border-left: 2px solid var(--color-accent-yellow); }
2260
+ .code-py { border-left: 2px solid var(--color-accent-blue); }
2261
+ .code-java { border-left: 2px solid var(--color-accent-orange); }
2262
+ .code-c, .code-cpp { border-left: 2px solid var(--color-accent-purple); }
2263
+ .code-html { border-left: 2px solid var(--color-accent-red); }
2264
+ .code-css { border-left: 2px solid var(--color-accent-blue); }
2265
+ .code-json { border-left: 2px solid var(--color-accent-yellow); }
2266
+ .code-xml { border-left: 2px solid var(--color-accent-green); }
2267
+ .code-sh, .code-bash { border-left: 2px solid var(--color-accent-teal); }
2268
+
2269
+ /* =============================================================================
2270
+ UTILITY CLASSES (Additional - base utilities in components.css)
2271
+ ============================================================================= */
2272
+
2273
+ /* Animation utilities (not in components.css) */
2274
+ .animate-pulse { animation: pulse 2s infinite; }
2275
+ .animate-glow { animation: pulse-glow 2s ease-out; }
2276
+ .hover-highlight:hover { background-color: rgba(0, 255, 0, 0.05); }
2277
+ .no-transition, .no-transition * { transition: none !important; }
2278
+
2279
+ /* Hide any dynamically added debug elements showing dimensions */
2280
+ [id="div.terminal-header"],
2281
+ div[id*="terminal-header"]:not(.terminal-container .terminal-header),
2282
+ div[class*="debug"],
2283
+ div[class*="inspector"] {
2284
+ display: none !important;
2285
+ visibility: hidden !important;
2286
+ opacity: 0 !important;
2287
+ pointer-events: none !important;
2288
+ width: 0 !important;
2289
+ height: 0 !important;
2290
+ }
2291
+
2292
+ /* Remove any element showing dimensions like 722×36.5 */
2293
+ *:not(code):not(pre) {
2294
+ content: normal !important;
2295
+ }
2296
+
2297
+ /* Agent and Services containers */
2298
+ #agents-container {
2299
+ min-height: auto;
2300
+ max-height: none;
2301
+ overflow: visible;
2302
+ margin-bottom: 10px;
2303
+ }
2304
+
2305
+ #services-container {
2306
+ min-height: auto;
2307
+ max-height: none;
2308
+ overflow: visible;
2309
+ }
2310
+
2311
+ .pulse-dot {
2312
+ display: inline-block;
2313
+ width: 6px;
2314
+ height: 6px;
2315
+ border-radius: 50%;
2316
+ background: var(--color-accent-green);
2317
+ animation: pulse 1.5s infinite ease-in-out;
2318
+ }
2319
+
2320
+ /* Session-specific styles integrated from session.css */
2321
+ .info-section {
2322
+ margin-bottom: 20px;
2323
+ border-bottom: 1px solid var(--color-border);
2324
+ padding-bottom: 10px;
2325
+ }
2326
+
2327
+ .info-section h3 {
2328
+ margin-top: 0;
2329
+ margin-bottom: 10px;
2330
+ color: var(--color-accent-green);
2331
+ font-size: var(--font-size-lg);
2332
+ }
2333
+
2334
+ .info-content {
2335
+ padding-left: var(--spacing-md);
2336
+ }
2337
+
2338
+ /* Note: .info-item card style is defined in pages/admin.css */
2339
+ /* These are session-page specific for inline key-value display in .info-row
2340
+ Admin pages use different styling in .info-item containers (admin.css) */
2341
+ .info-row {
2342
+ display: flex;
2343
+ justify-content: space-between;
2344
+ margin-bottom: var(--spacing-xs);
2345
+ font-size: var(--font-size-sm);
2346
+ }
2347
+
2348
+ /* Session-specific info-label (inline style) */
2349
+ .info-row .info-label,
2350
+ .info-section .info-label {
2351
+ color: var(--color-text-muted);
2352
+ }
2353
+
2354
+ /* Session-specific info-value (inline style) */
2355
+ .info-row .info-value,
2356
+ .info-section .info-value {
2357
+ color: var(--color-text-primary);
2358
+ font-weight: 500;
2359
+ }
2360
+
2361
+ .info-value.highlight {
2362
+ color: var(--color-accent-green);
2363
+ font-weight: bold;
2364
+ }
2365
+
2366
+ .info-subheader {
2367
+ margin-top: var(--spacing-md);
2368
+ margin-bottom: var(--spacing-xs);
2369
+ font-size: var(--font-size-sm);
2370
+ color: var(--color-accent-blue);
2371
+ border-bottom: 1px dotted var(--color-border);
2372
+ }
2373
+
2374
+ #session-duration {
2375
+ color: var(--color-accent-green);
2376
+ font-weight: bold;
2377
+ }
2378
+
2379
+ /* Stats Tab Styles */
2380
+ #stats-tab {
2381
+ padding: 0;
2382
+ display: flex;
2383
+ flex-direction: column;
2384
+ }
2385
+
2386
+ #stats-tab .terminal-container {
2387
+ display: flex;
2388
+ flex-direction: column;
2389
+ align-items: stretch; /* Allow children to fill width */
2390
+ justify-content: flex-start;
2391
+ width: 100%;
2392
+ height: 100%;
2393
+ padding: 15px;
2394
+ overflow-y: auto;
2395
+ box-sizing: border-box;
2396
+ }
2397
+
2398
+ #stats-content {
2399
+ width: 100%;
2400
+ display: flex;
2401
+ flex-direction: column;
2402
+ align-items: stretch; /* Allow children to fill width */
2403
+ justify-content: flex-start;
2404
+ flex: 1 1 auto; /* Allow growth */
2405
+ min-height: 0;
2406
+ }
2407
+
2408
+ .stats-container {
2409
+ display: grid;
2410
+ grid-template-columns: 1fr 1fr;
2411
+ gap: 12px;
2412
+ margin-bottom: 20px;
2413
+ width: 100%;
2414
+ box-sizing: border-box;
2415
+ }
2416
+
2417
+ .stats-box {
2418
+ background-color: var(--color-bg-secondary);
2419
+ border: 1px solid var(--color-border);
2420
+ border-radius: 0;
2421
+ padding: 12px;
2422
+ }
2423
+
2424
+ .stats-box h3 {
2425
+ margin-top: 0;
2426
+ color: var(--color-accent-green);
2427
+ font-size: var(--font-size-sm);
2428
+ margin-bottom: 6px;
2429
+ border-bottom: 1px solid var(--color-border);
2430
+ padding-bottom: 5px;
2431
+ }
2432
+
2433
+ /* ============================================
2434
+ STATS TAB STYLES
2435
+ ============================================ */
2436
+
2437
+ /* General Stats Items */
2438
+ .stats-item {
2439
+ display: flex;
2440
+ justify-content: space-between;
2441
+ margin-bottom: 6px;
2442
+ font-size: var(--font-size-sm);
2443
+ }
2444
+
2445
+ .stats-label {
2446
+ color: var(--color-text-muted);
2447
+ }
2448
+
2449
+ .stats-value {
2450
+ color: var(--color-text-primary);
2451
+ font-weight: 500;
2452
+ }
2453
+
2454
+ .stats-value.highlight {
2455
+ color: var(--color-accent-green);
2456
+ font-weight: bold;
2457
+ }
2458
+
2459
+ .stats-subheader {
2460
+ margin-top: 15px;
2461
+ margin-bottom: 10px;
2462
+ font-size: var(--font-size-md);
2463
+ color: var(--color-accent-blue);
2464
+ border-bottom: 1px solid var(--color-border);
2465
+ padding-bottom: 3px;
2466
+ }
2467
+
2468
+ /* Chart Styles */
2469
+ .chart-container {
2470
+ display: flex;
2471
+ flex-direction: column;
2472
+ gap: 6px;
2473
+ }
2474
+
2475
+ .chart-item {
2476
+ margin-bottom: 6px;
2477
+ }
2478
+
2479
+ .chart-label {
2480
+ color: var(--color-text-secondary);
2481
+ margin-bottom: 3px;
2482
+ font-size: var(--font-size-xs);
2483
+ }
2484
+
2485
+ .chart-bar-container {
2486
+ display: flex;
2487
+ align-items: center;
2488
+ height: 20px;
2489
+ }
2490
+
2491
+ .chart-bar {
2492
+ height: 16px;
2493
+ background-color: var(--color-accent-blue);
2494
+ border-radius: 0;
2495
+ }
2496
+
2497
+ .chart-value {
2498
+ margin-left: 8px;
2499
+ color: var(--color-text-primary);
2500
+ font-size: var(--font-size-sm);
2501
+ }
2502
+
2503
+ /* Per-Model Breakdown Styles */
2504
+ .model-item {
2505
+ display: block;
2506
+ background-color: var(--color-bg-secondary);
2507
+ padding: 6px;
2508
+ border-left: 2px solid var(--color-accent-blue);
2509
+ margin-bottom: 6px;
2510
+ }
2511
+
2512
+ .model-header {
2513
+ display: flex;
2514
+ justify-content: space-between;
2515
+ align-items: center;
2516
+ margin-bottom: 6px;
2517
+ }
2518
+
2519
+ .model-name {
2520
+ font-weight: bold;
2521
+ color: var(--color-accent-blue);
2522
+ font-size: var(--font-size-sm);
2523
+ }
2524
+
2525
+ .model-count {
2526
+ font-size: var(--font-size-xs);
2527
+ color: var(--color-text-muted);
2528
+ }
2529
+
2530
+ .model-details {
2531
+ display: flex;
2532
+ gap: 12px;
2533
+ padding-left: 2px;
2534
+ }
2535
+
2536
+ .model-stat {
2537
+ font-size: var(--font-size-xs);
2538
+ }
2539
+
2540
+ .model-stat .label {
2541
+ color: var(--color-text-muted);
2542
+ margin-right: 4px;
2543
+ font-size: var(--font-size-xs);
2544
+ }
2545
+
2546
+ .model-stat .value {
2547
+ color: var(--color-text-primary);
2548
+ font-size: var(--font-size-xs);
2549
+ }
2550
+
2551
+ .model-stat .value.highlight {
2552
+ color: var(--color-accent-green);
2553
+ font-weight: bold;
2554
+ }
2555
+
2556
+ /* Actions Grid */
2557
+ .actions-grid {
2558
+ width: 100%;
2559
+ }
2560
+
2561
+ /* Utility Classes */
2562
+ .highlight-box {
2563
+ background-color: rgba(86, 226, 194, 0.05);
2564
+ border-left: 2px solid var(--color-accent-green);
2565
+ padding: 8px;
2566
+ margin-bottom: 8px;
2567
+ }
2568
+
2569
+ .stats-divider {
2570
+ height: 1px;
2571
+ background-color: var(--color-border);
2572
+ margin: 10px 0;
2573
+ opacity: 0.5;
2574
+ }
2575
+
2576
+ .loading-message {
2577
+ color: var(--color-text-muted);
2578
+ font-style: italic;
2579
+ padding: 10px 0;
2580
+ }
2581
+
2582
+ /* ============================================
2583
+ END STATS TAB STYLES
2584
+ ============================================ */
2585
+
2586
+ /* Global header styling */
2587
+ .global-header {
2588
+ flex-shrink: 0;
2589
+ background-color: var(--color-bg-terminal);
2590
+ color: var(--color-text-primary);
2591
+ padding: 8px 15px;
2592
+ display: flex;
2593
+ justify-content: space-between;
2594
+ align-items: center;
2595
+ border-bottom: 1px solid var(--color-border);
2596
+ }
2597
+
2598
+ .terminal-brand {
2599
+ color: var(--color-accent-green);
2600
+ font-weight: 600;
2601
+ font-size: var(--font-size-sm);
2602
+ text-transform: uppercase;
2603
+ font-family: 'VT323', monospace;
2604
+ letter-spacing: 1px;
2605
+ text-decoration: none;
2606
+ cursor: pointer;
2607
+ transition: color 0.2s;
2608
+ }
2609
+
2610
+ .terminal-brand:hover {
2611
+ color: var(--color-accent-teal);
2612
+ }
2613
+
2614
+ .terminal-nav {
2615
+ display: flex;
2616
+ gap: 15px;
2617
+ }
2618
+
2619
+ .nav-link {
2620
+ color: var(--color-text-secondary);
2621
+ text-decoration: none;
2622
+ transition: color 0.2s;
2623
+ font-size: var(--font-size-xs);
2624
+ }
2625
+
2626
+ .nav-link:hover {
2627
+ color: var(--color-accent-blue);
2628
+ }
2629
+
2630
+ .nav-link--admin {
2631
+ color: var(--color-accent-red);
2632
+ }
2633
+
2634
+ /* Feed styling for various event types */
2635
+ .event-icon {
2636
+ margin-right: 5px;
2637
+ font-size: var(--font-size-md);
2638
+ display: inline-block;
2639
+ }
2640
+
2641
+ .event-step {
2642
+ color: var(--color-accent-blue);
2643
+ font-weight: 500;
2644
+ margin-bottom: 5px;
2645
+ }
2646
+
2647
+ .event-model {
2648
+ color: var(--color-accent-purple);
2649
+ font-size: var(--font-size-sm);
2650
+ margin-bottom: 5px;
2651
+ }
2652
+
2653
+ .event-purpose {
2654
+ color: var(--color-text-secondary);
2655
+ font-style: italic;
2656
+ margin-bottom: 3px;
2657
+ }
2658
+
2659
+ .event-tokens {
2660
+ color: var(--color-accent-green);
2661
+ font-size: var(--font-size-sm);
2662
+ font-family: var(--code-font);
2663
+ }
2664
+
2665
+ .event-cost {
2666
+ color: var(--color-accent-orange);
2667
+ font-size: var(--font-size-sm);
2668
+ font-family: var(--code-font);
2669
+ }
2670
+
2671
+ .event-actions {
2672
+ margin-top: 5px;
2673
+ padding: 5px 0;
2674
+ }
2675
+
2676
+ .event-actions-header {
2677
+ color: var(--color-text-muted);
2678
+ font-size: var(--font-size-xs);
2679
+ margin-bottom: 2px; /* Reduced from default */
2680
+ padding: 0;
2681
+ }
2682
+
2683
+ .event-actions-list {
2684
+ display: flex;
2685
+ flex-direction: column;
2686
+ gap: 2px; /* Reduced spacing between actions */
2687
+ }
2688
+
2689
+ .event-progress {
2690
+ margin-top: 5px;
2691
+ color: var(--color-text-secondary);
2692
+ font-style: italic;
2693
+ }
2694
+
2695
+ .event-status-value {
2696
+ font-weight: 500;
2697
+ }
2698
+
2699
+ .event-previous-status {
2700
+ color: var(--color-text-muted);
2701
+ font-size: var(--font-size-sm);
2702
+ margin-top: 3px;
2703
+ }
2704
+
2705
+ .event-task {
2706
+ color: var(--color-accent-green);
2707
+ font-weight: 500;
2708
+ margin-bottom: 5px;
2709
+ }
2710
+
2711
+ .event-agent-id,
2712
+ .event-agent-name {
2713
+ color: var(--color-accent-blue);
2714
+ font-weight: 500;
2715
+ }
2716
+
2717
+ .event-agent-type {
2718
+ color: var(--color-text-secondary);
2719
+ font-style: italic;
2720
+ font-size: var(--font-size-sm);
2721
+ }
2722
+
2723
+ .event-agent-model {
2724
+ color: var(--color-accent-purple);
2725
+ font-size: var(--font-size-sm);
2726
+ margin-left: 8px;
2727
+ }
2728
+
2729
+ .event-agent-count,
2730
+ .event-orchestrator {
2731
+ margin-bottom: 5px;
2732
+ }
2733
+
2734
+ .event-agents {
2735
+ margin-top: 8px;
2736
+ }
2737
+
2738
+ .event-agents-header,
2739
+ .event-components-header,
2740
+ .event-eval-header {
2741
+ color: var(--color-text-muted);
2742
+ font-size: var(--font-size-sm);
2743
+ margin-bottom: 5px;
2744
+ }
2745
+
2746
+ .event-agents-list {
2747
+ display: flex;
2748
+ flex-direction: column;
2749
+ gap: 5px;
2750
+ }
2751
+
2752
+ .event-agent {
2753
+ background-color: rgba(123, 195, 201, 0.05);
2754
+ border-left: 2px solid var(--color-accent-blue);
2755
+ padding: 3px 8px;
2756
+ font-size: var(--font-size-sm);
2757
+ }
2758
+
2759
+ .event-components {
2760
+ margin-top: 8px;
2761
+ }
2762
+
2763
+ .event-components-list {
2764
+ display: grid;
2765
+ grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
2766
+ gap: 5px;
2767
+ }
2768
+
2769
+ .event-component {
2770
+ background-color: rgba(193, 150, 211, 0.05);
2771
+ border-left: 2px solid var(--color-accent-purple);
2772
+ padding: 3px 8px;
2773
+ font-size: var(--font-size-xs);
2774
+ display: flex;
2775
+ justify-content: space-between;
2776
+ }
2777
+
2778
+ .event-component-value {
2779
+ color: var(--color-accent-green);
2780
+ }
2781
+
2782
+ .event-assessment {
2783
+ font-weight: 500;
2784
+ color: var(--color-accent-green);
2785
+ margin-bottom: 8px;
2786
+ }
2787
+
2788
+ .event-eval-section {
2789
+ margin-top: 5px;
2790
+ }
2791
+
2792
+ .event-eval-list {
2793
+ margin: 0;
2794
+ padding-left: 20px;
2795
+ font-size: var(--font-size-sm);
2796
+ }
2797
+
2798
+ .event-eval-list li {
2799
+ margin-bottom: 3px;
2800
+ }
2801
+
2802
+ /* Params header in action parameters */
2803
+ .params-header {
2804
+ padding-bottom: 10px;
2805
+ margin-bottom: 10px;
2806
+ border-bottom: 1px dotted var(--color-border);
2807
+ color: var(--color-accent-green);
2808
+ font-size: var(--font-size-sm);
2809
+ }
2810
+
2811
+ /* Parameter table styling */
2812
+ .params-table {
2813
+ width: 100%;
2814
+ border-collapse: collapse;
2815
+ margin: 0;
2816
+ background-color: rgba(20, 25, 30, 0.4);
2817
+ font-family: var(--code-font);
2818
+ font-size: var(--font-size-sm);
2819
+ }
2820
+
2821
+ .params-table tr {
2822
+ border-bottom: 1px solid rgba(60, 70, 80, 0.2);
2823
+ }
2824
+
2825
+ .params-table tr:last-child {
2826
+ border-bottom: none;
2827
+ }
2828
+
2829
+ .params-table td {
2830
+ padding: 2px 4px; /* Further reduced from 3px 5px */
2831
+ vertical-align: top;
2832
+ }
2833
+
2834
+ .param-name {
2835
+ color: var(--color-accent-blue);
2836
+ width: 25%;
2837
+ white-space: nowrap;
2838
+ font-weight: 500;
2839
+ }
2840
+
2841
+ .param-value {
2842
+ color: var(--color-text-secondary);
2843
+ word-break: break-word;
2844
+ }
2845
+
2846
+ .param-value.file-path {
2847
+ color: var(--color-accent-green);
2848
+ font-family: var(--code-font);
2849
+ }
2850
+
2851
+ /* Limit width of parameter values to avoid unreasonable stretching */
2852
+ .params-table .param-value {
2853
+ max-width: 400px;
2854
+ word-break: break-word;
2855
+ white-space: pre-wrap;
2856
+ font-size: var(--font-size-xs); /* Smaller font size */
2857
+ line-height: 1.3; /* Tighter line height */
2858
+ }
2859
+
2860
+ /* URL preview in action params */
2861
+ .url-preview {
2862
+ margin-top: 2px; /* Reduced from 6px */
2863
+ padding: 0; /* Removed padding */
2864
+ background-color: transparent; /* Removed background */
2865
+ border-left: none; /* Removed border */
2866
+ max-width: 100%;
2867
+ overflow-wrap: break-word;
2868
+ font-size: var(--font-size-xs); /* Smaller font */
2869
+ line-height: 1.3; /* Tighter line height */
2870
+ }
2871
+
2872
+ .url-preview a {
2873
+ color: var(--color-accent-blue);
2874
+ word-break: break-all;
2875
+ text-decoration: none;
2876
+ max-width: 100%;
2877
+ display: inline-block;
2878
+ font-size: var(--font-size-xs); /* Smaller font */
2879
+ }
2880
+
2881
+ .url-preview a:hover {
2882
+ color: var(--color-accent-green);
2883
+ text-decoration: underline;
2884
+ }
2885
+
2886
+ .param-summary {
2887
+ margin: 8px 0; /* Reduced from 10px */
2888
+ padding: 6px 10px; /* Reduced from 8px 12px */
2889
+ color: var(--color-text-muted);
2890
+ font-size: var(--font-size-xs);
2891
+ font-style: italic;
2892
+ background-color: rgba(30, 35, 40, 0.3);
2893
+ border-left: 2px solid var(--color-accent-blue);
2894
+ }
2895
+
2896
+ .json-value {
2897
+ margin: 0;
2898
+ padding: 4px; /* Reduced from 5px */
2899
+ white-space: pre-wrap;
2900
+ background-color: rgba(20, 25, 30, 0.3);
2901
+ border-radius: 3px;
2902
+ max-height: 200px;
2903
+ overflow-y: auto;
2904
+ font-size: var(--font-size-xs); /* Smaller font */
2905
+ line-height: 1.3; /* Tighter line height */
2906
+ }
2907
+
2908
+ .file-content-header {
2909
+ padding: 8px 10px;
2910
+ color: var(--color-accent-blue);
2911
+ font-weight: 500;
2912
+ background-color: rgba(30, 35, 40, 0.6);
2913
+ border-top: 1px solid var(--color-border);
2914
+ }
2915
+
2916
+ .event-next-goal {
2917
+ color: var(--color-accent-green);
2918
+ font-style: italic;
2919
+ margin-bottom: 6px;
2920
+ }
2921
+
2922
+ /* Minimal single-line LLM request entry */
2923
+ .feed-llm-line {
2924
+ padding: 0; /* remove extra spacing */
2925
+ }
2926
+
2927
+ .feed-llm-line .feed-type {
2928
+ /* Override base feed-type styles for minimal appearance */
2929
+ font-size: var(--font-size-xs);
2930
+ font-weight: normal;
2931
+ color: var(--color-text-muted);
2932
+ font-family: var(--code-font);
2933
+ white-space: nowrap;
2934
+ overflow: hidden;
2935
+ text-overflow: ellipsis;
2936
+ opacity: 0.7; /* make it less prominent */
2937
+ }
2938
+
2939
+ /* Hide icon and timestamp for ultra-compact display */
2940
+ .feed-llm-line .event-icon,
2941
+ .feed-llm-line .feed-time {
2942
+ display: none;
2943
+ }
2944
+
2945
+ /* Container tweaks for minimal footprint */
2946
+ .feed-llm-item {
2947
+ padding: 2px 6px;
2948
+ background: transparent;
2949
+ border-left: none;
2950
+ margin-bottom: 2px;
2951
+ }
2952
+
2953
+ /* Actions table styles */
2954
+ .actions-table {
2955
+ width: 100%;
2956
+ border-collapse: collapse;
2957
+ margin-top: 10px;
2958
+ font-size: var(--font-size-sm);
2959
+ }
2960
+
2961
+ .actions-table th,
2962
+ .actions-table td {
2963
+ padding: 4px 8px;
2964
+ text-align: left;
2965
+ border-bottom: 1px solid var(--color-border);
2966
+ }
2967
+
2968
+ .actions-table th {
2969
+ background-color: rgba(30, 35, 40, 0.4);
2970
+ color: var(--color-accent-blue);
2971
+ font-weight: 500;
2972
+ }
2973
+
2974
+ .actions-table tr:hover {
2975
+ background-color: rgba(30, 35, 40, 0.2);
2976
+ }
2977
+
2978
+ .mini-bar-container {
2979
+ width: 100%;
2980
+ background-color: rgba(30, 35, 40, 0.3);
2981
+ height: 16px;
2982
+ position: relative;
2983
+ border-radius: 3px;
2984
+ overflow: hidden;
2985
+ display: flex;
2986
+ align-items: center;
2987
+ }
2988
+
2989
+ .mini-bar {
2990
+ height: 100%;
2991
+ background-color: var(--color-accent-blue);
2992
+ position: absolute;
2993
+ left: 0;
2994
+ top: 0;
2995
+ }
2996
+
2997
+ .mini-bar-text {
2998
+ position: relative;
2999
+ z-index: 1;
3000
+ margin-left: 5px;
3001
+ font-size: var(--font-size-xs);
3002
+ color: var(--color-text-primary);
3003
+ }
3004
+
3005
+ /* URL styling within content */
3006
+ .content-url {
3007
+ color: var(--color-accent-blue);
3008
+ text-decoration: none;
3009
+ transition: color 0.2s;
3010
+ word-break: break-word;
3011
+ display: inline;
3012
+ background-color: transparent;
3013
+ padding: 0;
3014
+ border-bottom: none;
3015
+ pointer-events: auto !important;
3016
+ cursor: pointer !important;
3017
+ line-height: inherit;
3018
+ vertical-align: baseline;
3019
+ margin: 0;
3020
+ white-space: normal;
3021
+ }
3022
+
3023
+ .content-url:hover {
3024
+ color: var(--color-accent-green);
3025
+ text-decoration: underline;
3026
+ }
3027
+
3028
+ /* Ensure links in code blocks are clickable and flow naturally */
3029
+ .file-content a.content-url,
3030
+ code a.content-url,
3031
+ pre a.content-url,
3032
+ .file-content-text a.content-url {
3033
+ pointer-events: auto !important;
3034
+ cursor: pointer !important;
3035
+ position: relative;
3036
+ z-index: 10;
3037
+ display: inline;
3038
+ word-break: break-word;
3039
+ line-height: inherit;
3040
+ vertical-align: baseline;
3041
+ margin: 0;
3042
+ padding: 0;
3043
+ }
3044
+
3045
+ /* Mobile-specific fixes for URL display */
3046
+ @media (max-width: 768px) {
3047
+ .content-url {
3048
+ word-break: break-word;
3049
+ overflow-wrap: break-word;
3050
+ hyphens: auto;
3051
+ display: inline;
3052
+ white-space: normal;
3053
+ line-height: inherit;
3054
+ vertical-align: baseline;
3055
+ }
3056
+
3057
+ .file-content-text {
3058
+ word-wrap: break-word;
3059
+ overflow-wrap: break-word;
3060
+ }
3061
+ }
3062
+
3063
+ /* Specific styling for URL/open_tab actions */
3064
+ .event-action-url {
3065
+ background-color: transparent;
3066
+ border-left: none;
3067
+ margin: 2px 0;
3068
+ padding: 0;
3069
+ }
3070
+
3071
+ .event-action-url .params-table {
3072
+ background-color: transparent;
3073
+ margin: 0;
3074
+ }
3075
+
3076
+ .event-action-url .param-name {
3077
+ width: 15%;
3078
+ min-width: 40px;
3079
+ }
3080
+
3081
+ /* Fix for the link preview box - make it more compact */
3082
+ .event-action-url .param-value.url-value {
3083
+ padding: 0;
3084
+ background-color: transparent;
3085
+ line-height: 1.2;
3086
+ max-width: 100%;
3087
+ }
3088
+
3089
+ /* Compact URL display for open_tab actions */
3090
+ .compact-url {
3091
+ font-family: var(--code-font);
3092
+ padding: 0;
3093
+ margin: 0;
3094
+ background-color: transparent;
3095
+ border-left: none;
3096
+ font-size: var(--font-size-xs);
3097
+ white-space: nowrap;
3098
+ overflow: hidden;
3099
+ text-overflow: ellipsis;
3100
+ line-height: 1.2;
3101
+ max-height: 1.5em;
3102
+ }
3103
+
3104
+ .compact-url a {
3105
+ color: var(--color-accent-blue);
3106
+ text-decoration: none;
3107
+ transition: color 0.2s;
3108
+ word-break: normal;
3109
+ max-width: 100%;
3110
+ display: block;
3111
+ overflow: hidden;
3112
+ text-overflow: ellipsis;
3113
+ }
3114
+
3115
+ .compact-url a:hover {
3116
+ color: var(--color-accent-green);
3117
+ text-decoration: underline;
3118
+ }
3119
+
3120
+ /* Step error styling */
3121
+ .event-error {
3122
+ margin-top: 5px;
3123
+ margin-bottom: 8px;
3124
+ background-color: var(--error-bg);
3125
+ border-left: 2px solid var(--color-accent-red);
3126
+ padding: 6px 10px;
3127
+ }
3128
+
3129
+ .event-error-header {
3130
+ color: var(--color-accent-red);
3131
+ font-weight: 500;
3132
+ font-size: var(--font-size-sm);
3133
+ margin-bottom: 4px;
3134
+ }
3135
+
3136
+ .event-error-content {
3137
+ color: var(--color-text-primary);
3138
+ font-size: var(--font-size-sm);
3139
+ }
3140
+
3141
+ .event-error-item {
3142
+ margin-bottom: 3px;
3143
+ font-family: var(--code-font);
3144
+ white-space: pre-wrap;
3145
+ word-break: break-word;
3146
+ }
3147
+
3148
+ .event-no-actions {
3149
+ color: var(--color-text-muted);
3150
+ font-style: italic;
3151
+ padding: 4px 0;
3152
+ }
3153
+
3154
+ /* Add proper URL styling to URL display */
3155
+ .url {
3156
+ font-family: var(--code-font);
3157
+ display: inline-block;
3158
+ padding: 0;
3159
+ margin: 0;
3160
+ background-color: transparent;
3161
+ color: var(--color-accent-blue);
3162
+ border-left: none;
3163
+ }
3164
+
3165
+
3166
+ .param-value.url-value {
3167
+ max-width: 100%;
3168
+ width: 100%;
3169
+ overflow-wrap: break-word;
3170
+ word-break: break-all;
3171
+ padding: 0;
3172
+ background-color: transparent;
3173
+ border-left: none;
3174
+ line-height: 1.2;
3175
+ font-size: var(--font-size-xs);
3176
+ }
3177
+
3178
+ .param-value.url-value a {
3179
+ color: var(--color-accent-blue);
3180
+ text-decoration: none;
3181
+ word-break: break-all;
3182
+ overflow-wrap: break-word;
3183
+ max-width: 100%;
3184
+ white-space: normal;
3185
+ display: inline-block;
3186
+ font-size: var(--font-size-xs);
3187
+ }
3188
+
3189
+ .param-value.url-value a:hover {
3190
+ color: var(--color-accent-green);
3191
+ text-decoration: underline;
3192
+ }
3193
+
3194
+ /* Terminal Footer - Static positioning at bottom of flex body */
3195
+ .terminal-footer {
3196
+ flex-shrink: 0;
3197
+ background: rgba(40, 45, 50, 0.8);
3198
+ color: var(--color-text-secondary);
3199
+ padding: 2px 15px;
3200
+ padding-bottom: calc(2px + env(safe-area-inset-bottom));
3201
+ text-align: center;
3202
+ font-size: 11px;
3203
+ font-weight: 400;
3204
+ border-top: 1px solid var(--color-border);
3205
+ line-height: 1.2;
3206
+ z-index: 100;
3207
+ }
3208
+
3209
+ .footer-content {
3210
+ max-width: 1200px;
3211
+ margin: 0 auto;
3212
+ display: flex;
3213
+ align-items: center;
3214
+ justify-content: center;
3215
+ gap: 4px;
3216
+ flex-wrap: wrap;
3217
+ text-align: center;
3218
+ }
3219
+
3220
+ .footer-link {
3221
+ color: #666666;
3222
+ text-decoration: none;
3223
+ font-weight: 400;
3224
+ transition: color 0.2s ease;
3225
+ }
3226
+
3227
+ .footer-link:hover {
3228
+ color: var(--color-accent-blue);
3229
+ text-decoration: none;
3230
+ }
3231
+
3232
+ .footer-link[href="https://theselfrule.org"]:hover {
3233
+ color: var(--color-accent-yellow);
3234
+ }
3235
+
3236
+ .footer-separator {
3237
+ color: #666666;
3238
+ margin: 0 2px;
3239
+ }
3240
+
3241
+ .footer-center-text {
3242
+ color: #666666;
3243
+ font-size: 10px; /* Increased from 7px for mobile readability */
3244
+ }
3245
+ /* ========================================================================
3246
+ Continuous Chat Styles
3247
+ ======================================================================== */
3248
+
3249
+ /* Feed tab container with fixed message input at bottom */
3250
+ #feed-tab .terminal-container {
3251
+ display: flex;
3252
+ flex-direction: column;
3253
+ height: 100%;
3254
+ position: relative;
3255
+ padding-top: 0;
3256
+ }
3257
+
3258
+ #feed-tab .feed-container {
3259
+ flex: 1;
3260
+ overflow-y: auto;
3261
+ padding-bottom: 0;
3262
+ margin-bottom: 0;
3263
+ }
3264
+
3265
+ .continuous-chat-container {
3266
+ position: sticky;
3267
+ bottom: 0;
3268
+ background: var(--color-bg-terminal);
3269
+ border-top: 1px solid var(--color-border);
3270
+ padding-top: 8px;
3271
+ z-index: 10;
3272
+ width: 100%;
3273
+ max-width: 100%;
3274
+ box-sizing: border-box;
3275
+ overflow-x: hidden;
3276
+ }
3277
+
3278
+ /* Responsive adjustments for chat */
3279
+ @media (max-width: 768px) {
3280
+ .queue-indicator {
3281
+ font-size: 9px;
3282
+ padding: 1px 4px;
3283
+ }
3284
+
3285
+ /* Mobile-specific HTML iframe styles - use full available height like text previews */
3286
+ .html-preview-container {
3287
+ height: 100% !important;
3288
+ min-height: 300px !important;
3289
+ display: flex !important;
3290
+ flex-direction: column !important;
3291
+ }
3292
+
3293
+ .html-iframe {
3294
+ flex: 1 !important;
3295
+ height: 100% !important;
3296
+ min-height: 300px !important;
3297
+ width: 100% !important;
3298
+ -webkit-overflow-scrolling: touch;
3299
+ overflow-y: auto;
3300
+ }
3301
+ }
3302
+
3303
+ /* ========================================================================
3304
+ Session Card Redesign
3305
+ ======================================================================== */
3306
+
3307
+ /* Sessions container in tab panel */
3308
+ .sessions-container {
3309
+ flex: 1;
3310
+ overflow-y: auto;
3311
+ padding: 0;
3312
+ display: flex;
3313
+ flex-direction: column;
3314
+ width: 100%;
3315
+ max-width: 100%;
3316
+ box-sizing: border-box;
3317
+ }
3318
+
3319
+ /* Placeholder message for empty tabs */
3320
+ .placeholder-message {
3321
+ display: flex;
3322
+ align-items: center;
3323
+ justify-content: center;
3324
+ height: 100%;
3325
+ color: var(--color-text-muted);
3326
+ font-size: var(--font-size-sm);
3327
+ padding: 40px 20px;
3328
+ text-align: center;
3329
+ }
3330
+
3331
+ /* Mobile sessions container */
3332
+ @media (max-width: 768px) {
3333
+ .sessions-container {
3334
+ padding: 8px;
3335
+ }
3336
+
3337
+ .sessions-list,
3338
+ .sessions-grid {
3339
+ gap: 8px;
3340
+ }
3341
+
3342
+ .session-card {
3343
+ padding: 10px 12px;
3344
+ }
3345
+
3346
+ .session-task {
3347
+ font-size: 13px;
3348
+ -webkit-line-clamp: 3;
3349
+ line-clamp: 3;
3350
+ }
3351
+ }
3352
+
3353
+ /* Terminal container inside tab panels should fill height */
3354
+
3355
+ .session-card {
3356
+ display: block;
3357
+ background-color: var(--color-bg-terminal);
3358
+ border: 1px solid var(--color-border);
3359
+ border-left: 3px solid var(--color-accent-blue);
3360
+ padding: 12px 15px;
3361
+ margin-bottom: 0;
3362
+ transition: all 0.2s;
3363
+ text-decoration: none;
3364
+ color: var(--color-text-primary);
3365
+ }
3366
+
3367
+ .session-card:hover {
3368
+ border-left-color: var(--color-accent-green);
3369
+ background-color: var(--color-bg-secondary);
3370
+ transform: translateX(2px);
3371
+ }
3372
+
3373
+ .session-card-header {
3374
+ display: flex;
3375
+ justify-content: space-between;
3376
+ align-items: center;
3377
+ margin-bottom: 8px;
3378
+ font-size: var(--font-size-xs);
3379
+ color: var(--color-text-muted);
3380
+ }
3381
+
3382
+ .session-date {
3383
+ color: var(--color-accent-blue);
3384
+ font-weight: 500;
3385
+ }
3386
+
3387
+ .session-steps {
3388
+ color: var(--color-text-muted);
3389
+ }
3390
+
3391
+ .session-task {
3392
+ font-size: var(--font-size-sm);
3393
+ color: var(--color-text-primary);
3394
+ margin-bottom: 8px;
3395
+ line-height: 1.4;
3396
+ display: -webkit-box;
3397
+ -webkit-line-clamp: 2;
3398
+ line-clamp: 2;
3399
+ -webkit-box-orient: vertical;
3400
+ overflow: hidden;
3401
+ text-overflow: ellipsis;
3402
+ }
3403
+
3404
+ .session-card-footer {
3405
+ display: flex;
3406
+ justify-content: space-between;
3407
+ align-items: center;
3408
+ font-size: var(--font-size-xs);
3409
+ }
3410
+
3411
+ .session-id-small {
3412
+ color: var(--color-text-muted);
3413
+ font-family: var(--code-font);
3414
+ }
3415
+
3416
+ /* .empty-state defined in components.css */
3417
+
3418
+ .empty-state-subtext {
3419
+ font-size: var(--font-size-sm);
3420
+ color: var(--color-text-muted);
3421
+ }
3422
+
3423
+ /* Start Chat button in empty sessions list - compact centered button */
3424
+ .empty-state .btn-new-session {
3425
+ display: inline-block;
3426
+ background: transparent;
3427
+ border: 1px solid var(--color-border);
3428
+ color: var(--color-text-primary);
3429
+ font-family: var(--code-font);
3430
+ font-size: var(--font-size-xs);
3431
+ padding: 8px 20px;
3432
+ margin-top: 20px;
3433
+ cursor: pointer;
3434
+ text-transform: uppercase;
3435
+ letter-spacing: 0.5px;
3436
+ transition: all 0.15s;
3437
+ text-decoration: none;
3438
+ text-align: center;
3439
+ }
3440
+
3441
+ .empty-state .btn-new-session:hover {
3442
+ border-color: var(--color-accent-green);
3443
+ color: var(--color-accent-green);
3444
+ }
3445
+
3446
+ .error-state {
3447
+ text-align: center;
3448
+ padding: 40px 20px;
3449
+ color: var(--color-accent-red);
3450
+ }
3451
+
3452
+ /* ============================================================================
3453
+ EMPTY STATE STYLES (NEW SESSION UI)
3454
+ ============================================================================ */
3455
+
3456
+ /* Empty state text styling */
3457
+ .when-empty {
3458
+ color: var(--color-text-muted);
3459
+ font-style: italic;
3460
+ font-size: var(--font-size-sm);
3461
+ }
3462
+
3463
+ /* Placeholder text for sidebar sections */
3464
+ .placeholder-text {
3465
+ color: var(--color-text-muted);
3466
+ font-size: var(--font-size-sm);
3467
+ padding: 10px;
3468
+ text-align: center;
3469
+ font-style: italic;
3470
+ }
3471
+
3472
+ /* Disable non-chat tabs for new sessions */
3473
+ body[data-is-new="true"] .tab-button:not([data-tab="chat"]) {
3474
+ opacity: 0.4;
3475
+ cursor: not-allowed;
3476
+ pointer-events: none;
3477
+ }
3478
+
3479
+ /* Loading state for session creation */
3480
+ .creating-session {
3481
+ opacity: 0.7;
3482
+ pointer-events: none;
3483
+ }
3484
+
3485
+ /* Smooth transitions for state changes */
3486
+ .when-empty,
3487
+ .when-active {
3488
+ transition: opacity 0.3s ease-in-out;
3489
+ }
3490
+
3491
+ /* Hide when-active elements initially for new sessions */
3492
+ body[data-is-new="true"] .when-active {
3493
+ display: none;
3494
+ }
3495
+
3496
+ /* Show when-empty elements for new sessions */
3497
+ body[data-is-new="true"] .when-empty {
3498
+ display: block;
3499
+ }
3500
+
3501
+ /* Hide when-empty for active sessions */
3502
+ body[data-is-new="false"] .when-empty {
3503
+ display: none;
3504
+ }
3505
+
3506
+ /* Show when-active for active sessions */
3507
+ body[data-is-new="false"] .when-active {
3508
+ display: block;
3509
+ }
3510
+
3511
+ /* ===================================================================
3512
+ Tool Execution Event Styling
3513
+ =================================================================== */
3514
+ .event-tool-execution {
3515
+ border-left-color: #2196F3;
3516
+ }
3517
+
3518
+ .tool-badge {
3519
+ display: inline-block;
3520
+ padding: 2px 8px;
3521
+ background: rgba(33, 150, 243, 0.2);
3522
+ border-radius: 4px;
3523
+ font-weight: 600;
3524
+ font-size: 0.9em;
3525
+ }
3526
+
3527
+ .event-parameters {
3528
+ font-family: 'Monaco', 'Menlo', monospace;
3529
+ font-size: 0.85em;
3530
+ color: #888;
3531
+ margin-top: 4px;
3532
+ padding: 4px 8px;
3533
+ background: rgba(0, 0, 0, 0.2);
3534
+ border-radius: 3px;
3535
+ overflow-x: auto;
3536
+ white-space: nowrap;
3537
+ }
3538
+
3539
+ .status-success {
3540
+ color: #4caf50;
3541
+ font-weight: bold;
3542
+ margin-left: 8px;
3543
+ }
3544
+
3545
+ .status-error {
3546
+ color: #f44336;
3547
+ font-weight: bold;
3548
+ margin-left: 8px;
3549
+ }
3550
+
3551
+ /* ========================================================================
3552
+ Workspace Tab - Advanced File Rendering
3553
+ ======================================================================== */
3554
+
3555
+ /* Common controls for all renderers */
3556
+ .html-preview-controls,
3557
+ .markdown-preview-controls,
3558
+ .csv-preview-controls {
3559
+ padding: 8px 12px;
3560
+ background: var(--color-bg-secondary);
3561
+ border-bottom: 1px solid var(--color-border);
3562
+ display: flex;
3563
+ gap: 8px;
3564
+ align-items: center;
3565
+ }
3566
+
3567
+ .toggle-view-btn {
3568
+ background: #1a1a1a;
3569
+ border: 1px solid var(--color-border);
3570
+ color: var(--color-text-primary);
3571
+ padding: 6px 12px;
3572
+ border-radius: 4px;
3573
+ cursor: pointer;
3574
+ font-size: var(--font-size-sm);
3575
+ display: flex;
3576
+ gap: 8px;
3577
+ align-items: center;
3578
+ font-family: var(--code-font);
3579
+ transition: background 0.2s;
3580
+ }
3581
+
3582
+ .toggle-view-btn:hover {
3583
+ background: #252525;
3584
+ }
3585
+
3586
+ .toggle-view-btn span {
3587
+ opacity: 0.5;
3588
+ transition: opacity 0.2s;
3589
+ }
3590
+
3591
+ .toggle-view-btn span.active {
3592
+ opacity: 1;
3593
+ font-weight: 600;
3594
+ color: var(--color-accent-blue);
3595
+ }
3596
+
3597
+ /* HTML iframe rendering */
3598
+ /* HTML iframe styles moved to workspace section (line ~3817) */
3599
+
3600
+ /* Markdown rendering */
3601
+ .markdown-rendered {
3602
+ padding: 20px 24px;
3603
+ max-width: 900px;
3604
+ line-height: 1.6;
3605
+ color: var(--color-text-primary);
3606
+ background: var(--color-bg-terminal);
3607
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
3608
+ font-size: var(--font-size-md);
3609
+ }
3610
+
3611
+ .markdown-rendered h1,
3612
+ .markdown-rendered h2,
3613
+ .markdown-rendered h3,
3614
+ .markdown-rendered h4,
3615
+ .markdown-rendered h5,
3616
+ .markdown-rendered h6 {
3617
+ color: var(--color-accent-teal);
3618
+ margin-top: 20px;
3619
+ margin-bottom: 10px;
3620
+ font-weight: 600;
3621
+ line-height: 1.3;
3622
+ }
3623
+
3624
+ .markdown-rendered h1 {
3625
+ font-size: var(--font-size-xl);
3626
+ border-bottom: 1px solid var(--color-border);
3627
+ padding-bottom: 6px;
3628
+ margin-top: 24px;
3629
+ }
3630
+
3631
+ .markdown-rendered h2 {
3632
+ font-size: var(--font-size-lg);
3633
+ color: var(--color-accent-green);
3634
+ padding-left: 8px;
3635
+ border-left: 3px solid var(--color-accent-green);
3636
+ }
3637
+
3638
+ .markdown-rendered h3 {
3639
+ font-size: var(--font-size-md);
3640
+ color: var(--color-text-primary);
3641
+ font-weight: 600;
3642
+ }
3643
+
3644
+ .markdown-rendered h4 {
3645
+ font-size: var(--font-size-base);
3646
+ color: var(--color-text-secondary);
3647
+ font-weight: 600;
3648
+ }
3649
+
3650
+ .markdown-rendered p {
3651
+ margin: 10px 0;
3652
+ font-size: var(--font-size-md);
3653
+ line-height: 1.7;
3654
+ }
3655
+
3656
+ .markdown-rendered code {
3657
+ background: rgba(86, 194, 255, 0.1);
3658
+ padding: 2px 6px;
3659
+ border-radius: 3px;
3660
+ font-family: var(--code-font);
3661
+ font-size: var(--font-size-sm);
3662
+ color: var(--color-accent-blue);
3663
+ border: 1px solid rgba(86, 194, 255, 0.2);
3664
+ }
3665
+
3666
+ .markdown-rendered pre {
3667
+ background: #0a0a0a;
3668
+ padding: 14px 16px;
3669
+ border-radius: 4px;
3670
+ overflow-x: auto;
3671
+ margin: 14px 0;
3672
+ border: 1px solid var(--color-border);
3673
+ }
3674
+
3675
+ .markdown-rendered pre code {
3676
+ background: none;
3677
+ padding: 0;
3678
+ color: var(--color-text-primary);
3679
+ border: none;
3680
+ font-size: var(--font-size-sm);
3681
+ }
3682
+
3683
+ .markdown-rendered a {
3684
+ color: var(--color-accent-blue);
3685
+ text-decoration: none;
3686
+ }
3687
+
3688
+ .markdown-rendered a:hover {
3689
+ text-decoration: underline;
3690
+ }
3691
+
3692
+ .markdown-rendered ul,
3693
+ .markdown-rendered ol {
3694
+ margin: 12px 0;
3695
+ padding-left: 28px;
3696
+ font-size: var(--font-size-md);
3697
+ }
3698
+
3699
+ .markdown-rendered li {
3700
+ margin: 8px 0;
3701
+ line-height: 1.6;
3702
+ }
3703
+
3704
+ .markdown-rendered li > p {
3705
+ margin: 4px 0;
3706
+ }
3707
+
3708
+ .markdown-rendered blockquote {
3709
+ border-left: 3px solid var(--color-accent-purple);
3710
+ padding-left: 16px;
3711
+ margin: 16px 0;
3712
+ color: var(--color-text-secondary);
3713
+ font-style: italic;
3714
+ background: rgba(213, 128, 255, 0.05);
3715
+ padding: 12px 16px;
3716
+ border-radius: 0 4px 4px 0;
3717
+ }
3718
+
3719
+ .markdown-rendered table {
3720
+ border-collapse: collapse;
3721
+ width: 100%;
3722
+ margin: 16px 0;
3723
+ font-size: var(--font-size-sm);
3724
+ border: 1px solid var(--color-border);
3725
+ }
3726
+
3727
+ .markdown-rendered th,
3728
+ .markdown-rendered td {
3729
+ border: 1px solid var(--color-border);
3730
+ padding: 10px 14px;
3731
+ text-align: left;
3732
+ }
3733
+
3734
+ .markdown-rendered th {
3735
+ background: #1a1a1a;
3736
+ font-weight: 600;
3737
+ color: var(--color-accent-teal);
3738
+ font-size: var(--font-size-sm);
3739
+ }
3740
+
3741
+ .markdown-rendered td {
3742
+ font-size: var(--font-size-sm);
3743
+ }
3744
+
3745
+ .markdown-rendered tr:nth-child(even) {
3746
+ background: rgba(255, 255, 255, 0.03);
3747
+ }
3748
+
3749
+ .markdown-rendered tr:hover {
3750
+ background: rgba(86, 226, 194, 0.05);
3751
+ }
3752
+
3753
+ .markdown-rendered img {
3754
+ max-width: 100%;
3755
+ height: auto;
3756
+ margin: 16px 0;
3757
+ border-radius: 4px;
3758
+ }
3759
+
3760
+ .markdown-rendered hr {
3761
+ border: none;
3762
+ border-top: 2px solid var(--color-border);
3763
+ margin: 24px 0;
3764
+ opacity: 0.5;
3765
+ }
3766
+
3767
+ .markdown-rendered strong {
3768
+ color: var(--highlight-text);
3769
+ font-weight: 600;
3770
+ }
3771
+
3772
+ .markdown-rendered em {
3773
+ color: var(--color-accent-yellow);
3774
+ font-style: italic;
3775
+ }
3776
+
3777
+ .markdown-source {
3778
+ background: var(--color-bg-terminal);
3779
+ }
3780
+
3781
+ /* CSV table rendering */
3782
+ .csv-table-container {
3783
+ background: var(--color-bg-terminal);
3784
+ border-radius: 4px;
3785
+ overflow: hidden;
3786
+ }
3787
+
3788
+ .csv-controls {
3789
+ display: flex;
3790
+ justify-content: space-between;
3791
+ align-items: center;
3792
+ padding: 12px;
3793
+ background: var(--color-bg-secondary);
3794
+ border-bottom: 1px solid var(--color-border);
3795
+ }
3796
+
3797
+ .csv-info {
3798
+ color: var(--color-text-secondary);
3799
+ font-size: var(--font-size-sm);
3800
+ }
3801
+
3802
+ .csv-actions {
3803
+ display: flex;
3804
+ gap: 8px;
3805
+ }
3806
+
3807
+ .csv-export-btn {
3808
+ background: #1a1a1a;
3809
+ border: 1px solid var(--color-border);
3810
+ color: var(--color-text-primary);
3811
+ padding: 6px 12px;
3812
+ border-radius: 4px;
3813
+ cursor: pointer;
3814
+ font-size: var(--font-size-sm);
3815
+ font-family: var(--code-font);
3816
+ transition: background 0.2s;
3817
+ }
3818
+
3819
+ .csv-export-btn:hover {
3820
+ background: #252525;
3821
+ color: var(--color-accent-blue);
3822
+ }
3823
+
3824
+ .csv-table-wrapper {
3825
+ max-height: 600px;
3826
+ overflow: auto;
3827
+ position: relative;
3828
+ }
3829
+
3830
+ .csv-table {
3831
+ width: 100%;
3832
+ border-collapse: collapse;
3833
+ font-size: var(--font-size-sm);
3834
+ font-family: var(--code-font);
3835
+ }
3836
+
3837
+ .csv-table th,
3838
+ .csv-table td {
3839
+ padding: 8px 12px;
3840
+ text-align: left;
3841
+ border: 1px solid var(--color-border);
3842
+ }
3843
+
3844
+ .csv-table th {
3845
+ background: #1a1a1a;
3846
+ font-weight: 600;
3847
+ color: var(--highlight-text);
3848
+ position: sticky;
3849
+ top: 0;
3850
+ z-index: 10;
3851
+ cursor: pointer;
3852
+ user-select: none;
3853
+ transition: background 0.2s;
3854
+ }
3855
+
3856
+ .csv-table th:hover {
3857
+ background: #252525;
3858
+ color: var(--color-accent-blue);
3859
+ }
3860
+
3861
+ .sort-indicator {
3862
+ margin-left: 4px;
3863
+ opacity: 0.5;
3864
+ font-size: 11px;
3865
+ color: var(--color-text-secondary);
3866
+ }
3867
+
3868
+ .csv-table th[data-sort="asc"] .sort-indicator,
3869
+ .csv-table th[data-sort="desc"] .sort-indicator {
3870
+ opacity: 1;
3871
+ color: var(--color-accent-blue);
3872
+ }
3873
+
3874
+ .csv-table tbody tr:nth-child(even) {
3875
+ background: rgba(255, 255, 255, 0.02);
3876
+ }
3877
+
3878
+ .csv-table tbody tr:hover {
3879
+ background: rgba(86, 194, 255, 0.05);
3880
+ }
3881
+
3882
+ .csv-table td {
3883
+ color: var(--color-text-primary);
3884
+ }
3885
+
3886
+ .csv-table-view,
3887
+ .csv-raw-view {
3888
+ padding: 12px;
3889
+ }
3890
+
3891
+ .csv-raw-view pre {
3892
+ margin: 0;
3893
+ }
3894
+
3895
+ /* Empty state for CSV */
3896
+ .csv-table-container .empty-state {
3897
+ padding: 40px;
3898
+ text-align: center;
3899
+ color: var(--color-text-secondary);
3900
+ font-size: var(--font-size-base);
3901
+ }
3902
+
3903
+ /* Make sure workspace container scrolls properly */
3904
+ .workspace-container {
3905
+ overflow-y: auto;
3906
+ }
3907
+
3908
+ .file-preview-content {
3909
+ min-height: 400px;
3910
+ }
3911
+
3912
+ /* ========================================================================
3913
+ Workspace Tab - File Preview Header Elements
3914
+ ======================================================================== */
3915
+
3916
+ #current-file-name {
3917
+ display: flex;
3918
+ align-items: center;
3919
+ gap: 8px;
3920
+ flex: 1;
3921
+ min-width: 0;
3922
+ font-size: var(--font-size-sm);
3923
+ }
3924
+
3925
+ .file-name-text {
3926
+ color: var(--color-text-primary);
3927
+ font-size: var(--font-size-sm);
3928
+ font-family: var(--code-font);
3929
+ white-space: nowrap;
3930
+ overflow: hidden;
3931
+ text-overflow: ellipsis;
3932
+ }
3933
+
3934
+ /* Header toggle button (next to filename) */
3935
+ .header-toggle-btn {
3936
+ background: #1a1a1a;
3937
+ border: 1px solid var(--color-border);
3938
+ color: var(--color-text-secondary);
3939
+ padding: 4px 10px;
3940
+ border-radius: 3px;
3941
+ cursor: pointer;
3942
+ font-size: var(--font-size-xs);
3943
+ font-family: var(--code-font);
3944
+ display: flex;
3945
+ align-items: center;
3946
+ gap: 6px;
3947
+ transition: background 0.2s;
3948
+ flex-shrink: 0;
3949
+ }
3950
+
3951
+ .header-toggle-btn:hover {
3952
+ background: #252525;
3953
+ }
3954
+
3955
+ .header-toggle-btn span {
3956
+ opacity: 0.6;
3957
+ transition: opacity 0.2s, color 0.2s;
3958
+ font-size: var(--font-size-xs);
3959
+ }
3960
+
3961
+ .header-toggle-btn span.active {
3962
+ opacity: 1;
3963
+ color: var(--color-accent-blue);
3964
+ font-weight: 600;
3965
+ }
3966
+
3967
+ .header-toggle-btn .view-divider {
3968
+ opacity: 0.3;
3969
+ color: var(--color-text-muted);
3970
+ }
3971
+
3972
+ /* Present button for presentation files */
3973
+ .present-btn {
3974
+ background: linear-gradient(135deg, #00d4ff, #7c3aed);
3975
+ border: none;
3976
+ color: white;
3977
+ padding: 4px 12px;
3978
+ border-radius: 3px;
3979
+ cursor: pointer;
3980
+ font-size: var(--font-size-xs);
3981
+ font-family: var(--code-font);
3982
+ font-weight: 600;
3983
+ margin-left: 8px;
3984
+ transition: opacity 0.2s, transform 0.2s;
3985
+ }
3986
+
3987
+ .present-btn:hover {
3988
+ opacity: 0.9;
3989
+ transform: scale(1.02);
3990
+ }
3991
+
3992
+ .present-btn:active {
3993
+ transform: scale(0.98);
3994
+ }
3995
+
3996
+ /* ========================================================================
3997
+ Workspace Tab - HTML/Markdown/CSV Rendering (Updated)
3998
+ ======================================================================== */
3999
+
4000
+ /* HTML iframe - full width */
4001
+ .html-preview-container {
4002
+ width: 100%;
4003
+ height: 100%;
4004
+ min-height: 600px;
4005
+ background: white;
4006
+ overflow: hidden;
4007
+ padding: 0 !important;
4008
+ margin: 0;
4009
+ }
4010
+
4011
+ .html-iframe {
4012
+ width: 100%;
4013
+ height: 100%;
4014
+ min-height: 600px;
4015
+ border: none;
4016
+ background: white;
4017
+ display: block;
4018
+ margin: 0;
4019
+ padding: 0;
4020
+ }
4021
+
4022
+ .html-source-container {
4023
+ padding: 0;
4024
+ margin: 0;
4025
+ overflow: auto;
4026
+ }
4027
+
4028
+ /* Note: file-preview-content now has padding: 0 by default (line 1252)
4029
+ Padding is added back only for text files via .file-content (line 1275) */
4030
+
4031
+ /* Text file wrapping fix */
4032
+ .file-content {
4033
+ margin: 0;
4034
+ padding: 16px;
4035
+ background: var(--color-bg-terminal);
4036
+ overflow-x: auto;
4037
+ white-space: pre-wrap;
4038
+ word-wrap: break-word;
4039
+ font-family: var(--code-font);
4040
+ font-size: var(--font-size-sm);
4041
+ line-height: 1.6;
4042
+ }
4043
+
4044
+ .file-content code {
4045
+ white-space: pre-wrap;
4046
+ word-wrap: break-word;
4047
+ }
4048
+
4049
+ /* Markdown rendered view - full width with internal padding */
4050
+ .markdown-rendered {
4051
+ width: 100%;
4052
+ padding: 20px 24px;
4053
+ max-width: none;
4054
+ line-height: 1.7;
4055
+ color: var(--color-text-primary);
4056
+ background: var(--color-bg-terminal);
4057
+ overflow-x: auto;
4058
+ margin: 0;
4059
+ box-sizing: border-box;
4060
+ }
4061
+
4062
+ .markdown-source {
4063
+ padding: 0;
4064
+ margin: 0;
4065
+ overflow: auto;
4066
+ }
4067
+
4068
+ /* CSV table - full width */
4069
+ .csv-table-view {
4070
+ width: 100%;
4071
+ overflow: auto;
4072
+ margin: 0;
4073
+ padding: 0;
4074
+ }
4075
+
4076
+ .csv-raw-view {
4077
+ padding: 0;
4078
+ margin: 0;
4079
+ overflow: auto;
4080
+ }
4081
+
4082
+ /* Remove old controls styling (moved to header) */
4083
+ .html-preview-controls,
4084
+ .markdown-preview-controls,
4085
+ .csv-preview-controls {
4086
+ display: none;
4087
+ }
4088
+
4089
+ /* ========================================================================
4090
+ File Preview Action Buttons (Download, Expand)
4091
+ ======================================================================== */
4092
+
4093
+ .btn-preview-action {
4094
+ display: none;
4095
+ align-items: center;
4096
+ justify-content: center;
4097
+ background: none;
4098
+ border: none;
4099
+ color: var(--color-accent-blue);
4100
+ font-size: 15px;
4101
+ width: 28px;
4102
+ height: 28px;
4103
+ padding: 0;
4104
+ cursor: pointer;
4105
+ transition: color 0.2s;
4106
+ }
4107
+
4108
+ .btn-preview-action-svg svg {
4109
+ display: block;
4110
+ width: 15px;
4111
+ height: 15px;
4112
+ position: relative;
4113
+ top: -1px;
4114
+ }
4115
+
4116
+ .btn-preview-action:hover {
4117
+ color: var(--color-accent-green);
4118
+ }
4119
+
4120
+ /* ========================================================================
4121
+ Preview Modal - Fullscreen Overlay
4122
+ ======================================================================== */
4123
+
4124
+ .preview-modal {
4125
+ position: fixed;
4126
+ top: 0;
4127
+ left: 0;
4128
+ width: 100vw;
4129
+ height: 100vh;
4130
+ background: rgba(0, 0, 0, 0.95);
4131
+ z-index: 10000;
4132
+ display: flex;
4133
+ flex-direction: column;
4134
+ padding: 1vh 1vw;
4135
+ box-sizing: border-box;
4136
+ }
4137
+
4138
+ .preview-modal-header {
4139
+ display: flex;
4140
+ justify-content: space-between;
4141
+ align-items: center;
4142
+ padding: 12px 16px;
4143
+ background: var(--color-bg-secondary);
4144
+ border-bottom: 1px solid var(--color-border);
4145
+ margin-bottom: 0;
4146
+ }
4147
+
4148
+ #modal-file-name {
4149
+ color: var(--color-text-primary);
4150
+ font-size: var(--font-size-base);
4151
+ font-family: var(--code-font);
4152
+ flex: 1;
4153
+ }
4154
+
4155
+ .btn-close-modal {
4156
+ color: var(--color-accent-blue);
4157
+ font-size: var(--font-size-md);
4158
+ padding: 4px 8px;
4159
+ background: none;
4160
+ border: none;
4161
+ cursor: pointer;
4162
+ transition: color 0.2s;
4163
+ }
4164
+
4165
+ .btn-close-modal:hover {
4166
+ color: var(--color-accent-red);
4167
+ }
4168
+
4169
+ .preview-modal-content {
4170
+ flex: 1;
4171
+ overflow: auto;
4172
+ background: var(--color-bg-terminal);
4173
+ border: 1px solid var(--color-border);
4174
+ font-family: var(--code-font);
4175
+ font-size: var(--font-size-sm);
4176
+ }
4177
+
4178
+ /* Modal content styling - inherit styles from regular preview */
4179
+ .preview-modal-content .html-iframe {
4180
+ width: 100%;
4181
+ height: 100%;
4182
+ border: none;
4183
+ }
4184
+
4185
+ .preview-modal-content .file-content {
4186
+ padding: 16px;
4187
+ }
4188
+
4189
+ .preview-modal-content .image-preview {
4190
+ display: flex;
4191
+ justify-content: center;
4192
+ align-items: center;
4193
+ padding: 20px;
4194
+ }
4195
+
4196
+ .preview-modal-content .image-preview img {
4197
+ max-width: 100%;
4198
+ max-height: 100%;
4199
+ object-fit: contain;
4200
+ }
4201
+
4202
+ /* ============================================================================
4203
+ ADMIN DASHBOARD STYLES
4204
+ Tier, Role, and Event Type badges/colors
4205
+ (Other admin styles moved to pages/admin.css)
4206
+ ============================================================================ */
4207
+
4208
+ /* Tier & Role Badges */
4209
+ .tier-holder { background: var(--color-accent-green); color: var(--primary-bg); }
4210
+ .tier-free { background: var(--color-text-muted); color: var(--primary-bg); }
4211
+ .tier-free_access { background: var(--color-accent-blue); color: var(--primary-bg); }
4212
+ .tier-x402 { background: var(--color-accent-purple); color: var(--primary-bg); }
4213
+ .tier-admin { background: var(--color-accent-red); color: var(--primary-bg); }
4214
+
4215
+ .role-user { background: var(--color-border); color: var(--color-text-secondary); }
4216
+ .role-admin { background: var(--color-accent-red); color: var(--primary-bg); }
4217
+
4218
+ /* Event Type Colors (Admin Activity Log) */
4219
+ .event-type.auth_success { background: var(--color-accent-green); color: var(--primary-bg); }
4220
+ .event-type.auth_failure { background: var(--color-accent-red); color: var(--primary-bg); }
4221
+ .event-type.tier_change { background: var(--color-accent-purple); color: var(--primary-bg); }
4222
+ .event-type.role_change { background: var(--color-accent-yellow); color: var(--primary-bg); }
4223
+ .event-type.credit_add { background: var(--color-accent-green); color: var(--primary-bg); }
4224
+ .event-type.credit_deduct { background: var(--color-accent-red); color: var(--primary-bg); }
4225
+ .event-type.user_blocked { background: var(--color-accent-red); color: var(--primary-bg); }
4226
+ .event-type.user_unblocked { background: var(--color-accent-green); color: var(--primary-bg); }
4227
+ .event-type.admin_action { background: var(--color-accent-blue); color: var(--primary-bg); }
4228
+
4229
+ /* Activity type colors (text-only, for feed lists) */
4230
+ .activity-type.auth_success,
4231
+ .audit-type.auth_success { color: var(--color-accent-green); }
4232
+ .activity-type.auth_failure,
4233
+ .audit-type.auth_failure { color: var(--color-accent-red); }
4234
+ .activity-type.tier_change,
4235
+ .audit-type.tier_change { color: var(--color-accent-purple); }
4236
+ .activity-type.role_change,
4237
+ .audit-type.role_change { color: var(--color-accent-yellow); }
4238
+ .activity-type.credit_add,
4239
+ .audit-type.credit_add { color: var(--color-accent-green); }
4240
+ .activity-type.credit_deduct,
4241
+ .audit-type.credit_deduct { color: var(--color-accent-red); }
4242
+ .activity-type.user_blocked,
4243
+ .audit-type.user_blocked { color: var(--color-accent-red); }
4244
+ .activity-type.user_unblocked,
4245
+ .audit-type.user_unblocked { color: var(--color-accent-green); }
4246
+ .activity-type.admin_action,
4247
+ .audit-type.admin_action { color: var(--color-accent-blue); }
4248
+
4249
+ /* NOTE: Form components, buttons, pagination, info-grid, modal, and loading
4250
+ styles have been moved to components.css */