aifastdb-devplan 1.6.1 → 1.6.3

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 (97) hide show
  1. package/dist/dev-plan-document-store.d.ts +13 -1
  2. package/dist/dev-plan-document-store.d.ts.map +1 -1
  3. package/dist/dev-plan-document-store.js +119 -0
  4. package/dist/dev-plan-document-store.js.map +1 -1
  5. package/dist/dev-plan-factory.d.ts.map +1 -1
  6. package/dist/dev-plan-factory.js +3 -1
  7. package/dist/dev-plan-factory.js.map +1 -1
  8. package/dist/dev-plan-graph-store.d.ts +341 -9
  9. package/dist/dev-plan-graph-store.d.ts.map +1 -1
  10. package/dist/dev-plan-graph-store.js +2414 -210
  11. package/dist/dev-plan-graph-store.js.map +1 -1
  12. package/dist/dev-plan-interface.d.ts +119 -1
  13. package/dist/dev-plan-interface.d.ts.map +1 -1
  14. package/dist/dev-plan-migrate.d.ts +1 -0
  15. package/dist/dev-plan-migrate.d.ts.map +1 -1
  16. package/dist/dev-plan-migrate.js +28 -2
  17. package/dist/dev-plan-migrate.js.map +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/mcp-server/index.js +652 -0
  22. package/dist/mcp-server/index.js.map +1 -1
  23. package/dist/shard-config.d.ts +64 -0
  24. package/dist/shard-config.d.ts.map +1 -0
  25. package/dist/shard-config.js +109 -0
  26. package/dist/shard-config.js.map +1 -0
  27. package/dist/types.d.ts +305 -2
  28. package/dist/types.d.ts.map +1 -1
  29. package/dist/types.js.map +1 -1
  30. package/dist/visualize/graph-canvas/api-compat.d.ts.map +1 -1
  31. package/dist/visualize/graph-canvas/api-compat.js +22 -12
  32. package/dist/visualize/graph-canvas/api-compat.js.map +1 -1
  33. package/dist/visualize/graph-canvas/core.d.ts.map +1 -1
  34. package/dist/visualize/graph-canvas/core.js +296 -4
  35. package/dist/visualize/graph-canvas/core.js.map +1 -1
  36. package/dist/visualize/graph-canvas/interaction.d.ts.map +1 -1
  37. package/dist/visualize/graph-canvas/interaction.js +11 -0
  38. package/dist/visualize/graph-canvas/interaction.js.map +1 -1
  39. package/dist/visualize/graph-canvas/layout-worker.d.ts.map +1 -1
  40. package/dist/visualize/graph-canvas/layout-worker.js +45 -9
  41. package/dist/visualize/graph-canvas/layout-worker.js.map +1 -1
  42. package/dist/visualize/graph-canvas/renderer.d.ts.map +1 -1
  43. package/dist/visualize/graph-canvas/renderer.js +164 -33
  44. package/dist/visualize/graph-canvas/renderer.js.map +1 -1
  45. package/dist/visualize/graph-canvas/styles.d.ts.map +1 -1
  46. package/dist/visualize/graph-canvas/styles.js +146 -121
  47. package/dist/visualize/graph-canvas/styles.js.map +1 -1
  48. package/dist/visualize/graph-canvas/viewport.d.ts.map +1 -1
  49. package/dist/visualize/graph-canvas/viewport.js +10 -0
  50. package/dist/visualize/graph-canvas/viewport.js.map +1 -1
  51. package/dist/visualize/server.js +371 -32
  52. package/dist/visualize/server.js.map +1 -1
  53. package/dist/visualize/template-core.d.ts +9 -0
  54. package/dist/visualize/template-core.d.ts.map +1 -0
  55. package/dist/visualize/template-core.js +721 -0
  56. package/dist/visualize/template-core.js.map +1 -0
  57. package/dist/visualize/template-data-loading.d.ts +7 -0
  58. package/dist/visualize/template-data-loading.d.ts.map +1 -0
  59. package/dist/visualize/template-data-loading.js +677 -0
  60. package/dist/visualize/template-data-loading.js.map +1 -0
  61. package/dist/visualize/template-detail-panel.d.ts +14 -0
  62. package/dist/visualize/template-detail-panel.d.ts.map +1 -0
  63. package/dist/visualize/template-detail-panel.js +624 -0
  64. package/dist/visualize/template-detail-panel.js.map +1 -0
  65. package/dist/visualize/template-graph-3d.d.ts +7 -0
  66. package/dist/visualize/template-graph-3d.d.ts.map +1 -0
  67. package/dist/visualize/template-graph-3d.js +1114 -0
  68. package/dist/visualize/template-graph-3d.js.map +1 -0
  69. package/dist/visualize/template-graph-vis.d.ts +8 -0
  70. package/dist/visualize/template-graph-vis.d.ts.map +1 -0
  71. package/dist/visualize/template-graph-vis.js +1215 -0
  72. package/dist/visualize/template-graph-vis.js.map +1 -0
  73. package/dist/visualize/template-html.d.ts +9 -0
  74. package/dist/visualize/template-html.d.ts.map +1 -0
  75. package/dist/visualize/template-html.js +635 -0
  76. package/dist/visualize/template-html.js.map +1 -0
  77. package/dist/visualize/template-md-viewer.d.ts +11 -0
  78. package/dist/visualize/template-md-viewer.d.ts.map +1 -0
  79. package/dist/visualize/template-md-viewer.js +806 -0
  80. package/dist/visualize/template-md-viewer.js.map +1 -0
  81. package/dist/visualize/template-pages.d.ts +7 -0
  82. package/dist/visualize/template-pages.d.ts.map +1 -0
  83. package/dist/visualize/template-pages.js +1892 -0
  84. package/dist/visualize/template-pages.js.map +1 -0
  85. package/dist/visualize/template-stats-modal.d.ts +7 -0
  86. package/dist/visualize/template-stats-modal.d.ts.map +1 -0
  87. package/dist/visualize/template-stats-modal.js +466 -0
  88. package/dist/visualize/template-stats-modal.js.map +1 -0
  89. package/dist/visualize/template-styles.d.ts +9 -0
  90. package/dist/visualize/template-styles.d.ts.map +1 -0
  91. package/dist/visualize/template-styles.js +623 -0
  92. package/dist/visualize/template-styles.js.map +1 -0
  93. package/dist/visualize/template.d.ts +15 -3
  94. package/dist/visualize/template.d.ts.map +1 -1
  95. package/dist/visualize/template.js +44 -3475
  96. package/dist/visualize/template.js.map +1 -1
  97. package/package.json +2 -2
@@ -0,0 +1,623 @@
1
+ "use strict";
2
+ /**
3
+ * DevPlan 图可视化 — CSS 样式模块
4
+ *
5
+ * 从 template.ts 拆分出的全部 CSS 样式定义。
6
+ * 包含: 布局、侧边栏、头部、统计栏、图谱容器、详情面板、图例、
7
+ * 设置页、统计仪表盘、文档浏览、RAG 聊天、统计弹层等样式。
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.getStyles = getStyles;
11
+ function getStyles() {
12
+ return `
13
+ * { margin: 0; padding: 0; box-sizing: border-box; }
14
+ body { background: #111827; color: #e5e7eb; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; overflow: hidden; }
15
+
16
+ /* App Layout */
17
+ .app-layout { display: flex; height: 100vh; overflow: hidden; }
18
+ .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
19
+
20
+ /* Sidebar */
21
+ .sidebar { width: 48px; background: #0f172a; border-right: 1px solid #1e293b; flex-shrink: 0; display: flex; flex-direction: column; transition: width 0.25s ease; overflow: hidden; z-index: 40; }
22
+ .sidebar.expanded { width: 200px; }
23
+ .sidebar-header { height: 56px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #1e293b; cursor: pointer; flex-shrink: 0; overflow: hidden; transition: all 0.2s; padding: 0 8px; }
24
+ .sidebar-header:hover { background: #1e293b; }
25
+ .sidebar-logo { font-size: 18px; font-weight: 900; background: linear-gradient(90deg, #38bdf8, #818cf8, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; line-height: 1; }
26
+ .sidebar-menu-icon { display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: color 0.2s; }
27
+ .sidebar-header:hover .sidebar-menu-icon { color: #e2e8f0; }
28
+ .sidebar-logo-full { display: none; }
29
+ .sidebar-logo-short { display: block; }
30
+ .sidebar.expanded .sidebar-header { justify-content: flex-start; padding: 0 16px; }
31
+ .sidebar.expanded .sidebar-logo-full { display: block; }
32
+ .sidebar.expanded .sidebar-logo-short { display: none; }
33
+ .sidebar-nav { flex: 1; padding: 8px 0; display: flex; flex-direction: column; gap: 2px; }
34
+ .sidebar-footer { padding: 8px 0; border-top: 1px solid #1e293b; }
35
+ .nav-item { position: relative; display: flex; align-items: center; height: 40px; padding: 0 12px; cursor: pointer; color: #6b7280; transition: all 0.2s; white-space: nowrap; overflow: hidden; gap: 12px; border-left: 3px solid transparent; }
36
+ .nav-item:hover { background: #1e293b; color: #d1d5db; }
37
+ .nav-item.active { color: #a5b4fc; background: rgba(99,102,241,0.1); border-left-color: #6366f1; }
38
+ .nav-item.disabled { cursor: default; opacity: 0.5; }
39
+ .nav-item.disabled:hover { background: #1e293b; }
40
+ .nav-item-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
41
+ .nav-item-text { font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.2s; }
42
+ .sidebar.expanded .nav-item-text { opacity: 1; }
43
+ .nav-item-badge { font-size: 9px; padding: 1px 6px; border-radius: 4px; background: #374151; color: #6b7280; margin-left: auto; opacity: 0; transition: opacity 0.2s; }
44
+ .sidebar.expanded .nav-item-badge { opacity: 1; }
45
+
46
+ /* Sidebar tooltip (collapsed mode) */
47
+ .nav-item .nav-tooltip { position: absolute; left: 52px; top: 50%; transform: translateY(-50%); background: #1f2937; border: 1px solid #374151; color: #e5e7eb; padding: 4px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 50; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
48
+ .sidebar:not(.expanded) .nav-item:hover .nav-tooltip { opacity: 1; }
49
+
50
+ /* Header */
51
+ .header { background: transparent; border-bottom: none; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; height: 44px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; pointer-events: none; }
52
+ .header * { pointer-events: auto; }
53
+ .header h1 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
54
+ .header h1 .icon { font-size: 24px; }
55
+ .header .project-name { color: #818cf8; }
56
+
57
+ /* Stats Bar */
58
+ .stats-bar { display: flex; gap: 24px; align-items: center; }
59
+ .stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9ca3af; }
60
+ .stat .num { font-weight: 700; font-size: 16px; }
61
+ .stat .num.green { color: #10b981; }
62
+ .stat .num.blue { color: #3b82f6; }
63
+ .stat .num.purple { color: #8b5cf6; }
64
+ .stat .num.amber { color: #f59e0b; }
65
+ .stat.clickable { cursor: pointer; border-radius: 6px; padding: 2px 8px; margin: -2px -8px; transition: background 0.15s; }
66
+ .stat.clickable:hover { background: rgba(99,102,241,0.12); }
67
+ .progress-bar { width: 120px; height: 8px; background: #374151; border-radius: 4px; overflow: hidden; }
68
+ .progress-fill { height: 100%; background: linear-gradient(90deg, #10b981, #3b82f6); border-radius: 4px; transition: width 0.5s; }
69
+
70
+ /* Controls */
71
+ .controls { display: none; }
72
+ .filter-check { display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 12px; color: #9ca3af; user-select: none; }
73
+ .filter-check input { accent-color: #6366f1; width: 13px; height: 13px; cursor: pointer; }
74
+ .filter-check:hover { color: #d1d5db; }
75
+ /* Interactive legend toggle items (merged filter + legend) */
76
+ .legend-item.toggle { cursor: pointer; padding: 2px 8px; border-radius: 4px; transition: opacity 0.2s, background 0.2s; user-select: none; position: relative; }
77
+ .legend-item.toggle:hover { background: rgba(99,102,241,0.15); color: #e5e7eb; }
78
+ .legend-item.toggle:not(.active) { opacity: 0.3; }
79
+ .legend-item.toggle:not(.active):hover { opacity: 0.5; }
80
+ .legend-item.toggle.loading::after { content: ' ⏳'; font-size: 10px; }
81
+ .legend-item.toggle.not-loaded { opacity: 0.45; border: 1px dashed rgba(99,102,241,0.35); }
82
+ .legend-item.toggle.not-loaded::after { content: ' ↓'; font-size: 9px; color: #60a5fa; }
83
+ /* Checkbox inside toggle legend items */
84
+ .legend-item.toggle .filter-cb { width: 14px; height: 14px; accent-color: #6366f1; cursor: pointer; margin: 0; pointer-events: none; }
85
+
86
+ /* Graph — flex 自适应高度 */
87
+ .graph-container { position: relative; flex: 1; background: #111827; min-height: 0; }
88
+ #graph { width: 100%; height: 100%; }
89
+
90
+ .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(17,24,39,0.9); z-index: 20; }
91
+ .spinner { width: 40px; height: 40px; border: 4px solid #4f46e5; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
92
+ @keyframes spin { to { transform: rotate(360deg); } }
93
+
94
+ /* Detail Panel */
95
+ .panel { position: absolute; top: 12px; right: 12px; width: 340px; max-height: calc(100vh - 180px); background: #1f2937; border: 1px solid #374151; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 10; display: none; overflow: hidden; min-width: 280px; max-width: calc(100vw - 40px); transition: none; }
96
+ .panel.show { display: flex; flex-direction: column; }
97
+ .panel-resize-handle { position: absolute; top: 0; left: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 15; background: transparent; }
98
+ .panel-resize-handle:hover, .panel-resize-handle.active { background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent); }
99
+ .panel-resize-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 3px; height: 32px; background: #4b5563; border-radius: 2px; opacity: 0; transition: opacity 0.2s; }
100
+ .panel-resize-handle:hover::after, .panel-resize-handle.active::after { opacity: 1; background: #6366f1; }
101
+ .panel-header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; cursor: default; user-select: none; }
102
+ .panel-header.project { background: linear-gradient(135deg, #d97706, #f59e0b); }
103
+ .panel-header.module { background: linear-gradient(135deg, #cc5200, #ff6600); }
104
+ .panel-header.main-task { background: linear-gradient(135deg, #4f46e5, #6366f1); }
105
+ .panel-header.sub-task { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
106
+ .panel-header.document { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
107
+ .panel-header.memory { background: linear-gradient(135deg, #a21caf, #e879f9); }
108
+ .panel-title { font-weight: 600; font-size: 14px; color: #fff; pointer-events: none; }
109
+ .panel-close { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
110
+ .panel-close:hover { background: rgba(255,255,255,0.3); }
111
+ .panel-back { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 16px; display: none; align-items: center; justify-content: center; margin-right: 8px; flex-shrink: 0; transition: background 0.15s, transform 0.15s; }
112
+ .panel-back:hover { background: rgba(255,255,255,0.3); transform: translateX(-1px); }
113
+ .panel-back.visible { display: flex; }
114
+ .panel-header-left { display: flex; align-items: center; min-width: 0; flex: 1; }
115
+ .panel-body { padding: 16px; overflow-y: auto; flex: 1; }
116
+ .panel-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #374151; }
117
+ .panel-row:last-child { border-bottom: none; }
118
+ .panel-label { color: #9ca3af; }
119
+ .panel-value { color: #e5e7eb; font-weight: 500; }
120
+ .status-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
121
+ .status-completed { background: #064e3b; color: #6ee7b7; }
122
+ .status-in_progress { background: #1e3a5f; color: #93c5fd; }
123
+ .status-pending { background: #374151; color: #9ca3af; }
124
+ .status-cancelled { background: #451a03; color: #fbbf24; }
125
+ .priority-P0 { background: #7f1d1d; color: #fca5a5; }
126
+ .priority-P1 { background: #78350f; color: #fde68a; }
127
+ .priority-P2 { background: #1e3a5f; color: #93c5fd; }
128
+ .panel-progress { margin-top: 8px; }
129
+ .panel-progress-bar { width: 100%; height: 6px; background: #374151; border-radius: 3px; overflow: hidden; margin-top: 4px; }
130
+ .panel-progress-fill { height: 100%; background: #10b981; border-radius: 3px; }
131
+
132
+ /* Sub-task List in Panel */
133
+ .subtask-section { margin-top: 12px; border-top: 1px solid #374151; padding-top: 10px; }
134
+ .subtask-section-title { font-size: 12px; color: #9ca3af; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
135
+ .subtask-list { list-style: none; padding: 0; margin: 0; }
136
+ .subtask-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(55,65,81,0.5); font-size: 12px; }
137
+ .subtask-item:last-child { border-bottom: none; }
138
+ .subtask-icon { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 10px; }
139
+ .subtask-icon.completed { background: #064e3b; color: #6ee7b7; }
140
+ .subtask-icon.in_progress { background: #1e3a5f; color: #93c5fd; }
141
+ .subtask-icon.pending { background: #374151; color: #6b7280; }
142
+ .subtask-icon.cancelled { background: #451a03; color: #fbbf24; }
143
+ .subtask-name { color: #d1d5db; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
144
+ .subtask-name.completed { color: #6ee7b7; text-decoration: line-through; text-decoration-color: rgba(110,231,183,0.3); }
145
+ .subtask-name.cancelled { color: #9ca3af; text-decoration: line-through; }
146
+ .subtask-id { color: #6b7280; font-size: 10px; flex-shrink: 0; font-family: monospace; }
147
+ .subtask-time { color: #6ee7b7; font-size: 10px; flex-shrink: 0; opacity: 0.75; margin-left: auto; }
148
+
149
+ /* Legend */
150
+ .legend { background: #1f2937; border-top: 1px solid #374151; padding: 6px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; font-size: 12px; color: #9ca3af; }
151
+ .legend-filters { display: flex; align-items: center; gap: 8px; }
152
+ .legend-divider { width: 1px; height: 18px; background: #374151; }
153
+ .legend-engine-badge { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7280; padding: 2px 8px; border-radius: 4px; background: rgba(99,102,241,0.08); border: 1px solid #1e293b; white-space: nowrap; cursor: pointer; transition: all 0.2s; }
154
+ .legend-engine-badge:hover { border-color: #4b5563; color: #a5b4fc; background: rgba(99,102,241,0.15); }
155
+ .legend-engine-badge .engine-name { font-weight: 600; color: #818cf8; }
156
+ .legend-refresh-btn { display: flex; align-items: center; justify-content: center; background: none; border: 1px solid #374151; border-radius: 4px; padding: 3px 6px; cursor: pointer; color: #9ca3af; transition: color 0.2s, border-color 0.2s, background 0.2s; }
157
+ .legend-refresh-btn:hover { color: #60a5fa; border-color: #60a5fa; background: rgba(96,165,250,0.08); }
158
+ .legend-refresh-btn:active { color: #3b82f6; }
159
+ .legend-refresh-btn.refreshing .legend-refresh-icon { animation: spin-refresh 0.8s linear infinite; }
160
+ @keyframes spin-refresh { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
161
+ .legend-sep { width: 100%; height: 0; }
162
+ .legend-item { display: flex; align-items: center; gap: 6px; }
163
+ .legend-icon { width: 12px; height: 12px; }
164
+ .legend-icon.star { background: #f59e0b; clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
165
+ .legend-icon.diamond { background: #ff6600; clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%); }
166
+ .legend-icon.circle { background: #22c55e; border-radius: 50%; }
167
+ .legend-icon.dot { background: #047857; border-radius: 50%; width: 8px; height: 8px; }
168
+ .legend-icon.square { background: #3b82f6; border-radius: 2px; width: 10px; height: 10px; }
169
+ .legend-icon.hexagon { background: #e879f9; clip-path: polygon(25% 0%,75% 0%,100% 50%,75% 100%,25% 100%,0% 50%); }
170
+ .legend-line { width: 24px; height: 2px; }
171
+ .legend-line.solid { background: #6b7280; }
172
+ .legend-line.thin { background: #6b7280; height: 1px; }
173
+ .legend-line.dashed { border-top: 2px dashed #6b7280; background: none; height: 0; }
174
+ .legend-line.dotted { border-top: 2px dotted #10b981; background: none; height: 0; }
175
+ .legend-line.task-doc { border-top: 2px dashed #6b7280; background: none; height: 0; }
176
+ .legend-line.doc-child { border-top: 2px dashed #6b7280; background: none; height: 0; }
177
+
178
+ /* Document Content in Panel */
179
+ .doc-section { margin-top: 12px; border-top: 1px solid #374151; padding-top: 10px; }
180
+ .doc-section-title { font-size: 12px; color: #9ca3af; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
181
+ .doc-content { background: #111827; border: 1px solid #374151; border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.7; color: #d1d5db; overflow-x: auto; }
182
+ .doc-content h1, .doc-content h2, .doc-content h3, .doc-content h4 { color: #f3f4f6; margin: 12px 0 6px 0; }
183
+ .doc-content h1 { font-size: 16px; border-bottom: 1px solid #374151; padding-bottom: 4px; }
184
+ .doc-content h2 { font-size: 14px; border-bottom: 1px solid rgba(55,65,81,0.5); padding-bottom: 3px; }
185
+ .doc-content h3 { font-size: 13px; }
186
+ .doc-content h4 { font-size: 12px; color: #d1d5db; }
187
+ .doc-content p { margin: 6px 0; }
188
+ .doc-content code { background: #1e293b; color: #a5b4fc; padding: 1px 5px; border-radius: 3px; font-size: 11px; font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; }
189
+ .doc-content pre { background: #0f172a; border: 1px solid #1e293b; border-radius: 6px; padding: 10px; overflow-x: auto; margin: 8px 0; }
190
+ .doc-content pre code { background: none; padding: 0; color: #e2e8f0; display: block; white-space: pre; }
191
+ .doc-content ul, .doc-content ol { padding-left: 20px; margin: 6px 0; }
192
+ .doc-content li { margin: 2px 0; }
193
+ .doc-content blockquote { border-left: 3px solid #4f46e5; padding-left: 10px; color: #9ca3af; margin: 8px 0; font-style: italic; }
194
+ .doc-content table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 11px; }
195
+ .doc-content th { background: #1e293b; color: #a5b4fc; padding: 5px 8px; text-align: left; border: 1px solid #374151; font-weight: 600; }
196
+ .doc-content td { padding: 4px 8px; border: 1px solid #374151; }
197
+ .doc-content tr:nth-child(even) { background: rgba(30,41,59,0.3); }
198
+ .doc-content a { color: #818cf8; text-decoration: none; }
199
+ .doc-content a:hover { text-decoration: underline; }
200
+ .doc-content hr { border: none; border-top: 1px solid #374151; margin: 10px 0; }
201
+ .doc-content strong { color: #f3f4f6; }
202
+ .doc-content em { color: #c4b5fd; }
203
+ .doc-loading { text-align: center; color: #6b7280; padding: 16px; font-size: 12px; }
204
+ .doc-error { text-align: center; color: #f87171; padding: 12px; font-size: 12px; }
205
+ .doc-toggle { background: none; border: 1px solid #4b5563; color: #9ca3af; padding: 2px 8px; border-radius: 4px; font-size: 11px; cursor: pointer; }
206
+ .doc-toggle:hover { border-color: #6b7280; color: #d1d5db; }
207
+
208
+ /* Page Views */
209
+ .page-view { display: none; }
210
+ .page-view.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
211
+ .page-graph.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
212
+
213
+ /* Settings Page */
214
+ .settings-page { padding: 32px 48px; overflow-y: auto; background: #111827; flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
215
+ .settings-page > h2, .settings-page > p, .settings-page > .settings-grid { width: 800px; max-width: 100%; }
216
+ .settings-page h2 { font-size: 22px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
217
+ .settings-page .settings-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 28px; }
218
+ .settings-grid { display: flex; flex-direction: column; gap: 28px; }
219
+ .settings-section { margin-bottom: 0; }
220
+ .settings-section-title { font-size: 14px; font-weight: 600; color: #d1d5db; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #1e293b; display: flex; align-items: center; gap: 8px; }
221
+ .settings-3d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
222
+ @media (max-width: 960px) { .settings-3d-grid { grid-template-columns: 1fr; } }
223
+ .settings-option-group { display: flex; flex-direction: column; gap: 10px; }
224
+ .settings-radio-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 2px solid #1e293b; background: #0f172a; cursor: pointer; transition: all 0.2s; }
225
+ .settings-radio-card:hover { border-color: #374151; background: #1e293b; }
226
+ .settings-radio-card.selected { border-color: #6366f1; background: rgba(99,102,241,0.08); }
227
+ .settings-radio-card input[type="radio"] { margin-top: 3px; accent-color: #6366f1; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
228
+ .settings-radio-card .radio-content { flex: 1; min-width: 0; }
229
+ .settings-radio-card .radio-label { font-size: 14px; font-weight: 600; color: #e5e7eb; display: flex; align-items: center; gap: 8px; }
230
+ .settings-radio-card .radio-label .default-badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #374151; color: #9ca3af; font-weight: 500; }
231
+ .settings-radio-card .radio-desc { font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.5; }
232
+ .settings-radio-card.selected .radio-label { color: #a5b4fc; }
233
+ .settings-radio-card.selected .radio-desc { color: #818cf8; }
234
+ .settings-saved-toast { position: fixed; bottom: 24px; right: 24px; background: #059669; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 100; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; pointer-events: none; }
235
+ .settings-saved-toast.show { opacity: 1; transform: translateY(0); }
236
+ /* 3D Settings Panel */
237
+ .settings-3d-panel { margin-top: 0; padding: 16px; border-radius: 10px; border: 1px solid #1e293b; background: #0f172a; }
238
+ .settings-section > .settings-3d-panel { margin-top: 16px; }
239
+ .settings-3d-panel.collapsed .s3d-body { display: none; }
240
+ .s3d-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding: 4px 0; }
241
+ .s3d-header-title { font-size: 13px; font-weight: 600; color: #c7d2fe; display: flex; align-items: center; gap: 6px; }
242
+ .s3d-header-arrow { font-size: 11px; color: #6b7280; transition: transform 0.2s; }
243
+ .settings-3d-panel.collapsed .s3d-header-arrow { transform: rotate(-90deg); }
244
+ .s3d-body { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
245
+ .s3d-group { display: flex; flex-direction: column; gap: 10px; }
246
+ .s3d-group-title { font-size: 12px; font-weight: 600; color: #94a3b8; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
247
+ .s3d-row { display: flex; align-items: center; gap: 10px; }
248
+ .s3d-label { font-size: 12px; color: #9ca3af; min-width: 80px; flex-shrink: 0; }
249
+ .s3d-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: #374151; outline: none; cursor: pointer; }
250
+ .s3d-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #6366f1; cursor: pointer; border: 2px solid #1e1b4b; }
251
+ .s3d-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #6366f1; cursor: pointer; border: 2px solid #1e1b4b; }
252
+ .s3d-value { font-size: 11px; color: #6366f1; font-weight: 600; min-width: 36px; text-align: right; font-family: monospace; }
253
+ .s3d-color-row { display: flex; align-items: center; gap: 10px; }
254
+ .s3d-color-label { font-size: 12px; color: #9ca3af; flex: 1; display: flex; align-items: center; gap: 6px; }
255
+ .s3d-color-label .s3d-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
256
+ .s3d-color-input { width: 32px; height: 24px; border: 1px solid #374151; border-radius: 4px; background: transparent; cursor: pointer; padding: 0; }
257
+ .s3d-color-hex { font-size: 11px; color: #6b7280; font-family: monospace; min-width: 60px; }
258
+ .s3d-toggle-row { display: flex; align-items: center; justify-content: space-between; }
259
+ .s3d-toggle-label { font-size: 12px; color: #9ca3af; }
260
+ .s3d-toggle { position: relative; width: 36px; height: 20px; cursor: pointer; }
261
+ .s3d-toggle input { opacity: 0; width: 0; height: 0; }
262
+ .s3d-toggle-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #374151; border-radius: 10px; transition: 0.2s; }
263
+ .s3d-toggle-slider:before { content: ''; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
264
+ .s3d-toggle input:checked + .s3d-toggle-slider { background: #6366f1; }
265
+ .s3d-toggle input:checked + .s3d-toggle-slider:before { transform: translateX(16px); }
266
+ .s3d-reset-btn { margin-top: 8px; padding: 6px 14px; border: 1px solid #374151; border-radius: 6px; background: transparent; color: #9ca3af; font-size: 11px; cursor: pointer; transition: all 0.2s; align-self: flex-start; }
267
+ .s3d-reset-btn:hover { background: #1e293b; color: #e5e7eb; border-color: #4b5563; }
268
+
269
+ /* ===== Memory Browser ===== */
270
+ .memory-page { padding: 24px 32px; overflow-y: auto; background: #111827; flex: 1; display: flex; flex-direction: column; }
271
+ .memory-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
272
+ .memory-header-left h2 { font-size: 22px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
273
+ .memory-header-desc { font-size: 13px; color: #6b7280; }
274
+ .memory-count { font-size: 13px; color: #9ca3af; background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 6px 14px; white-space: nowrap; }
275
+ .memory-filters { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
276
+ .memory-filter-btn { background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 6px 14px; color: #9ca3af; font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
277
+ .memory-filter-btn:hover { background: #374151; color: #e5e7eb; }
278
+ .memory-filter-btn.active { background: #312e81; border-color: #6366f1; color: #a5b4fc; }
279
+ /* Memory View Toggle */
280
+ .memory-view-toggle { display: flex; gap: 2px; background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 2px; margin-right: 12px; }
281
+ .memory-view-btn { background: transparent; border: none; border-radius: 6px; padding: 5px 12px; color: #9ca3af; font-size: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
282
+ .memory-view-btn:hover { color: #e5e7eb; background: #374151; }
283
+ .memory-view-btn.active { background: #312e81; color: #a5b4fc; }
284
+ .memory-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
285
+
286
+ /* Memory Graph Container */
287
+ .memory-graph-container { flex: 1; position: relative; border-radius: 12px; overflow: hidden; background: #0f172a; border: 1px solid #1e293b; min-height: 400px; }
288
+ .memory-graph-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #6b7280; font-size: 13px; z-index: 10; }
289
+ .memory-graph-legend { position: absolute; bottom: 16px; left: 16px; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); border: 1px solid #1e293b; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; z-index: 10; }
290
+ .mg-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9ca3af; }
291
+ .mg-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
292
+ .memory-graph-stats { position: absolute; top: 16px; right: 16px; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); border: 1px solid #1e293b; border-radius: 10px; padding: 8px 14px; font-size: 11px; color: #9ca3af; z-index: 10; }
293
+
294
+ .memory-list { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
295
+ .memory-card { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 16px 20px; transition: all 0.2s; position: relative; overflow: hidden; }
296
+ .memory-card:hover { border-color: #4b5563; background: #1e293b; }
297
+ .memory-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; }
298
+ .memory-card.type-decision::before { background: linear-gradient(180deg, #6366f1, #818cf8); }
299
+ .memory-card.type-bugfix::before { background: linear-gradient(180deg, #ef4444, #f87171); }
300
+ .memory-card.type-pattern::before { background: linear-gradient(180deg, #06b6d4, #22d3ee); }
301
+ .memory-card.type-insight::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
302
+ .memory-card.type-preference::before { background: linear-gradient(180deg, #8b5cf6, #a78bfa); }
303
+ .memory-card.type-summary::before { background: linear-gradient(180deg, #10b981, #34d399); }
304
+ .memory-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
305
+ .memory-type-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
306
+ .memory-type-badge.decision { background: #312e81; color: #a5b4fc; }
307
+ .memory-type-badge.bugfix { background: #7f1d1d; color: #fca5a5; }
308
+ .memory-type-badge.pattern { background: #164e63; color: #67e8f9; }
309
+ .memory-type-badge.insight { background: #78350f; color: #fde68a; }
310
+ .memory-type-badge.preference { background: #4c1d95; color: #c4b5fd; }
311
+ .memory-type-badge.summary { background: #064e3b; color: #6ee7b7; }
312
+ .memory-importance { display: flex; align-items: center; gap: 3px; font-size: 10px; color: #6b7280; margin-left: auto; }
313
+ .memory-importance-bar { width: 40px; height: 4px; background: #374151; border-radius: 2px; overflow: hidden; }
314
+ .memory-importance-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #6366f1, #a78bfa); }
315
+ .memory-card-content { font-size: 13px; color: #d1d5db; line-height: 1.6; word-break: break-word; }
316
+ .memory-card-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
317
+ .memory-tag { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: #1e293b; color: #64748b; border: 1px solid #334155; }
318
+ .memory-meta { font-size: 10px; color: #4b5563; margin-left: auto; display: flex; gap: 12px; }
319
+ .memory-empty { text-align: center; padding: 60px; color: #6b7280; font-size: 13px; }
320
+ .memory-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
321
+
322
+ /* Memory Generate Button Group */
323
+ .memory-generate-group { display: inline-flex; position: relative; margin-right: 10px; }
324
+ .memory-generate-btn { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; border-radius: 8px 0 0 8px; padding: 7px 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
325
+ .memory-generate-btn:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 0 16px rgba(99, 102, 241, 0.4); }
326
+ .memory-generate-dropdown-btn { background: #4f46e5; color: #c7d2fe; border: none; border-left: 1px solid rgba(255,255,255,0.15); border-radius: 0 8px 8px 0; padding: 7px 8px; font-size: 10px; cursor: pointer; transition: all 0.2s; }
327
+ .memory-generate-dropdown-btn:hover { background: #4338ca; }
328
+ .memory-generate-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 4px; min-width: 220px; background: #1f2937; border: 1px solid #374151; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 200; overflow: hidden; }
329
+ .memory-generate-dropdown.show { display: block; }
330
+ .memory-generate-dropdown-item { padding: 10px 16px; font-size: 12px; color: #d1d5db; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s; }
331
+ .memory-generate-dropdown-item:hover { background: #374151; }
332
+ .memory-generate-dropdown-item .mg-icon { font-size: 14px; width: 18px; text-align: center; }
333
+ .memory-generate-dropdown-sep { height: 1px; background: #374151; margin: 2px 0; }
334
+
335
+ /* Memory Generate Overlay (Candidate Preview Modal) */
336
+ .mem-gen-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; }
337
+ .mem-gen-modal { background: #111827; border: 1px solid #374151; border-radius: 16px; width: 90%; max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
338
+ .mem-gen-modal-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; border-bottom: 1px solid #1f2937; }
339
+ .mem-gen-modal-header h3 { font-size: 18px; font-weight: 700; color: #f3f4f6; margin: 0; }
340
+ .mem-gen-modal-stats { font-size: 11px; color: #6b7280; margin-left: auto; }
341
+ .mem-gen-close-btn { background: none; border: none; color: #6b7280; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.2s; margin-left: 8px; }
342
+ .mem-gen-close-btn:hover { background: #1f2937; color: #f87171; }
343
+ .mem-gen-modal-actions { display: flex; gap: 8px; padding: 12px 24px; border-bottom: 1px solid #1f2937; flex-wrap: wrap; }
344
+ .mem-gen-action-btn { background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 6px 14px; color: #9ca3af; font-size: 11px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
345
+ .mem-gen-action-btn:hover { background: #374151; color: #e5e7eb; }
346
+ .mem-gen-action-btn.primary { background: linear-gradient(135deg, #059669, #10b981); border-color: transparent; color: #fff; font-weight: 600; }
347
+ .mem-gen-action-btn.primary:hover { background: linear-gradient(135deg, #047857, #059669); box-shadow: 0 0 12px rgba(16, 185, 129, 0.3); }
348
+ .mem-gen-action-btn.primary:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
349
+ .mem-gen-sep { width: 1px; height: 20px; background: #374151; margin: 0 4px; }
350
+ .mem-gen-limit-label { display: flex; align-items: center; gap: 4px; color: #9ca3af; font-size: 11px; white-space: nowrap; }
351
+ .mem-gen-limit-label input[type="checkbox"] { accent-color: #10b981; width: 14px; height: 14px; cursor: pointer; }
352
+ .mem-gen-limit-select { background: #1f2937; border: 1px solid #374151; border-radius: 6px; color: #e5e7eb; font-size: 11px; padding: 3px 6px; cursor: pointer; outline: none; }
353
+ .mem-gen-limit-select:focus { border-color: #6366f1; }
354
+ .mem-gen-candidate-list { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
355
+
356
+ /* Candidate Card */
357
+ .mem-gen-candidate { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 14px 16px; display: flex; gap: 12px; transition: all 0.2s; cursor: pointer; }
358
+ .mem-gen-candidate:hover { border-color: #4b5563; background: #1e293b; }
359
+ .mem-gen-candidate.selected { border-color: #6366f1; background: #1e1b4b; }
360
+ .mem-gen-candidate.has-memory { opacity: 0.5; }
361
+ .mem-gen-candidate.has-memory.selected { opacity: 1; }
362
+ .mem-gen-candidate-check { flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #4b5563; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all 0.2s; margin-top: 2px; }
363
+ .mem-gen-candidate.selected .mem-gen-candidate-check { background: #6366f1; border-color: #6366f1; color: #fff; }
364
+ .mem-gen-candidate-body { flex: 1; min-width: 0; }
365
+ .mem-gen-candidate-title { font-size: 13px; font-weight: 600; color: #e5e7eb; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
366
+ .mem-gen-candidate-source { font-size: 10px; padding: 1px 6px; border-radius: 3px; }
367
+ .mem-gen-candidate-source.task { background: #064e3b; color: #6ee7b7; }
368
+ .mem-gen-candidate-source.document { background: #1e3a5f; color: #93c5fd; }
369
+ .mem-gen-candidate-preview { font-size: 11px; color: #9ca3af; line-height: 1.5; max-height: 60px; overflow: hidden; word-break: break-word; }
370
+ .mem-gen-candidate-meta { display: flex; gap: 8px; margin-top: 6px; align-items: center; flex-wrap: wrap; }
371
+ .mem-gen-candidate-type { font-size: 10px; padding: 1px 6px; border-radius: 3px; }
372
+ .mem-gen-candidate-type.decision { background: #312e81; color: #a5b4fc; }
373
+ .mem-gen-candidate-type.bugfix { background: #7f1d1d; color: #fca5a5; }
374
+ .mem-gen-candidate-type.pattern { background: #164e63; color: #67e8f9; }
375
+ .mem-gen-candidate-type.insight { background: #78350f; color: #fde68a; }
376
+ .mem-gen-candidate-type.preference { background: #4c1d95; color: #c4b5fd; }
377
+ .mem-gen-candidate-type.summary { background: #064e3b; color: #6ee7b7; }
378
+ .mem-gen-candidate-existing { font-size: 9px; color: #f59e0b; }
379
+ .mem-gen-candidate-importance { font-size: 10px; color: #6b7280; }
380
+
381
+ /* Auto-import dropdown highlight */
382
+ .memory-generate-dropdown-item.auto-import { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.08)); }
383
+ .memory-generate-dropdown-item.auto-import:hover { background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(16,185,129,0.18)); }
384
+
385
+ /* Auto-import overlay */
386
+ .mem-auto-import-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); z-index: 1001; display: flex; align-items: center; justify-content: center; }
387
+ .mem-auto-import-card { background: #1f2937; border: 1px solid #374151; border-radius: 16px; padding: 36px 48px; text-align: center; min-width: 360px; max-width: 460px; box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
388
+ .mem-auto-import-icon { font-size: 40px; margin-bottom: 12px; }
389
+ .mem-auto-import-title { font-size: 18px; font-weight: 700; color: #f3f4f6; margin-bottom: 20px; }
390
+ .mem-auto-import-progress-bar { width: 100%; height: 8px; background: #111827; border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
391
+ .mem-auto-import-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #10b981); border-radius: 4px; transition: width 0.3s ease; }
392
+ .mem-auto-import-status { font-size: 14px; color: #e5e7eb; margin-bottom: 6px; font-weight: 500; }
393
+ .mem-auto-import-detail { font-size: 11px; color: #6b7280; margin-bottom: 20px; min-height: 16px; }
394
+ .mem-auto-import-cancel { background: #374151; border: 1px solid #4b5563; border-radius: 8px; padding: 8px 24px; color: #9ca3af; font-size: 12px; cursor: pointer; transition: all 0.2s; }
395
+ .mem-auto-import-cancel:hover { background: #4b5563; color: #e5e7eb; }
396
+ .mem-auto-import-cancel:disabled { opacity: 0.4; cursor: default; }
397
+
398
+ /* Stats Dashboard */
399
+ .stats-page { padding: 24px; overflow-y: auto; background: #111827; flex: 1; }
400
+ .stats-header { margin-bottom: 24px; }
401
+ .stats-header h2 { font-size: 22px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
402
+ .stats-header p { font-size: 13px; color: #6b7280; }
403
+
404
+ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
405
+ .stat-card { background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 20px; position: relative; overflow: hidden; }
406
+ .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
407
+ .stat-card.purple::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
408
+ .stat-card.green::before { background: linear-gradient(90deg, #059669, #10b981); }
409
+ .stat-card.blue::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
410
+ .stat-card.amber::before { background: linear-gradient(90deg, #d97706, #f59e0b); }
411
+ .stat-card.rose::before { background: linear-gradient(90deg, #e11d48, #f43f5e); }
412
+ .stat-card-icon { font-size: 28px; margin-bottom: 8px; }
413
+ .stat-card-value { font-size: 32px; font-weight: 800; color: #f3f4f6; line-height: 1; }
414
+ .stat-card-label { font-size: 12px; color: #9ca3af; margin-top: 6px; }
415
+ .stat-card-sub { font-size: 11px; color: #6b7280; margin-top: 4px; }
416
+
417
+ .stats-section { margin-bottom: 28px; }
418
+ .stats-section-title { font-size: 15px; font-weight: 600; color: #e5e7eb; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
419
+ .stats-section-title .sec-icon { font-size: 18px; }
420
+
421
+ /* Overall Progress Ring */
422
+ .progress-ring-wrap { display: flex; align-items: center; gap: 24px; background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 24px; margin-bottom: 28px; }
423
+ .progress-ring-info { flex: 1; }
424
+ .progress-ring-info h3 { font-size: 18px; font-weight: 700; color: #f3f4f6; margin-bottom: 4px; }
425
+ .progress-ring-info p { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }
426
+ .progress-ring-info .motivate { font-size: 14px; color: #fbbf24; font-weight: 600; }
427
+ .ring-svg { flex-shrink: 0; }
428
+
429
+ /* Priority Bars */
430
+ .priority-bars { display: flex; flex-direction: column; gap: 12px; background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 20px; }
431
+ .priority-row { display: flex; align-items: center; gap: 12px; }
432
+ .priority-label { width: 32px; font-size: 12px; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 4px; flex-shrink: 0; }
433
+ .priority-label.P0 { background: #7f1d1d; color: #fca5a5; }
434
+ .priority-label.P1 { background: #78350f; color: #fde68a; }
435
+ .priority-label.P2 { background: #1e3a5f; color: #93c5fd; }
436
+ .priority-bar-track { flex: 1; height: 10px; background: #374151; border-radius: 5px; overflow: hidden; }
437
+ .priority-bar-fill { height: 100%; border-radius: 5px; transition: width 0.5s; }
438
+ .priority-bar-fill.P0 { background: linear-gradient(90deg, #dc2626, #f87171); }
439
+ .priority-bar-fill.P1 { background: linear-gradient(90deg, #d97706, #fbbf24); }
440
+ .priority-bar-fill.P2 { background: linear-gradient(90deg, #2563eb, #60a5fa); }
441
+ .priority-nums { font-size: 11px; color: #9ca3af; width: 70px; text-align: right; flex-shrink: 0; }
442
+
443
+ /* Phase List */
444
+ .phase-list { display: flex; flex-direction: column; gap: 8px; }
445
+ .phase-item { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
446
+ .phase-status-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
447
+ .phase-status-icon.completed { background: #064e3b; color: #6ee7b7; }
448
+ .phase-status-icon.in_progress { background: #1e3a5f; color: #93c5fd; }
449
+ .phase-status-icon.pending { background: #374151; color: #6b7280; }
450
+ .phase-info { flex: 1; min-width: 0; }
451
+ .phase-info-title { font-size: 13px; font-weight: 600; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
452
+ .phase-info-sub { font-size: 11px; color: #6b7280; margin-top: 2px; }
453
+ .phase-bar-mini { width: 80px; height: 6px; background: #374151; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
454
+ .phase-bar-mini-fill { height: 100%; background: #10b981; border-radius: 3px; }
455
+ .phase-pct { font-size: 12px; font-weight: 700; color: #9ca3af; width: 40px; text-align: right; flex-shrink: 0; }
456
+ .phase-item-wrap { background: #1f2937; border: 1px solid #374151; border-radius: 10px; overflow: hidden; }
457
+ .phase-item-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: background 0.15s; }
458
+ .phase-item-main:hover { background: rgba(55,65,81,0.3); }
459
+ .phase-expand-icon { width: 16px; font-size: 10px; color: #6b7280; flex-shrink: 0; transition: transform 0.2s; text-align: center; }
460
+ .phase-item-wrap.expanded .phase-expand-icon { transform: rotate(90deg); }
461
+ .phase-subtasks { display: none; border-top: 1px solid #374151; padding: 6px 0; }
462
+ .phase-item-wrap.expanded .phase-subtasks { display: block; }
463
+ .phase-sub-item { display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 62px; font-size: 12px; }
464
+ .phase-sub-icon { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
465
+ .phase-sub-icon.completed { background: #064e3b; color: #6ee7b7; }
466
+ .phase-sub-icon.in_progress { background: #1e3a5f; color: #93c5fd; }
467
+ .phase-sub-icon.pending { background: #374151; color: #6b7280; }
468
+ .phase-sub-icon.cancelled { background: #451a03; color: #fbbf24; }
469
+ .phase-sub-name { color: #d1d5db; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
470
+ .phase-sub-name.completed { color: #6ee7b7; text-decoration: line-through; text-decoration-color: rgba(110,231,183,0.3); }
471
+ .phase-sub-id { color: #4b5563; font-size: 10px; font-family: monospace; flex-shrink: 0; }
472
+ .phase-time { color: #6ee7b7; font-size: 10px; opacity: 0.8; }
473
+ .phase-sub-time { color: #6ee7b7; font-size: 10px; opacity: 0.7; flex-shrink: 0; margin-left: auto; }
474
+ .phase-time { color: #6ee7b7; font-size: 10px; }
475
+ .phase-sub-time { color: #6ee7b7; font-size: 10px; flex-shrink: 0; margin-left: auto; }
476
+
477
+ /* Module Cards */
478
+ .module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
479
+ .module-card { background: #1f2937; border: 1px solid #374151; border-radius: 10px; padding: 16px; }
480
+ .module-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
481
+ .module-card-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
482
+ .module-card-name { font-size: 13px; font-weight: 600; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
483
+ .module-card-bar { width: 100%; height: 6px; background: #374151; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
484
+ .module-card-bar-fill { height: 100%; background: linear-gradient(90deg, #059669, #10b981); border-radius: 3px; }
485
+ .module-card-stats { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; }
486
+
487
+ /* ===== Docs Browser Page ===== */
488
+ .docs-page { display: flex; flex: 1; min-height: 0; overflow: hidden; background: #111827; }
489
+ .docs-sidebar { width: 280px; background: #1f2937; border-right: 1px solid #374151; display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden; }
490
+ .docs-sidebar-header { padding: 16px 20px 12px; border-bottom: 1px solid #374151; flex-shrink: 0; }
491
+ .docs-sidebar-header h3 { font-size: 15px; font-weight: 700; color: #f3f4f6; margin-bottom: 8px; }
492
+ .docs-search-wrap { position: relative; }
493
+ .docs-search { width: 100%; background: #111827; border: 1px solid #374151; border-radius: 6px; padding: 7px 30px 7px 10px; color: #e5e7eb; font-size: 12px; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
494
+ .docs-search:focus { border-color: #6366f1; }
495
+ .docs-search::placeholder { color: #6b7280; }
496
+ .docs-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: none; background: none; color: #6b7280; font-size: 14px; cursor: pointer; display: none; align-items: center; justify-content: center; border-radius: 4px; padding: 0; line-height: 1; }
497
+ .docs-search-clear:hover { color: #e5e7eb; background: #374151; }
498
+ .docs-search-clear.show { display: flex; }
499
+ .docs-group-list { overflow-y: auto; flex: 1; padding: 8px 0; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
500
+ .docs-group-list::-webkit-scrollbar { width: 6px; }
501
+ .docs-group-list::-webkit-scrollbar-track { background: transparent; }
502
+ .docs-group-list::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
503
+ .docs-group { margin-bottom: 4px; }
504
+ .docs-group-title { display: flex; align-items: center; gap: 8px; padding: 8px 20px; font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; user-select: none; transition: color 0.15s; }
505
+ .docs-group-title:hover { color: #d1d5db; }
506
+ .docs-group-title .docs-group-arrow { font-size: 9px; transition: transform 0.2s; color: #6b7280; }
507
+ .docs-group.collapsed .docs-group-arrow { transform: rotate(-90deg); }
508
+ .docs-group.collapsed .docs-group-items { display: none; }
509
+ .docs-group-count { font-size: 10px; color: #4b5563; font-weight: 500; margin-left: auto; }
510
+ .docs-item { display: flex; align-items: center; gap: 8px; padding: 7px 20px 7px 28px; cursor: pointer; transition: background 0.15s; font-size: 13px; color: #d1d5db; border-left: 3px solid transparent; }
511
+ .docs-item:hover { background: rgba(55,65,81,0.4); }
512
+ .docs-item.active { background: rgba(99,102,241,0.12); border-left-color: #6366f1; color: #a5b4fc; }
513
+ .docs-item-icon { font-size: 14px; flex-shrink: 0; opacity: 0.7; }
514
+ .docs-item-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
515
+ .docs-item-sub { font-size: 10px; color: #6b7280; flex-shrink: 0; }
516
+ .docs-item-toggle { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3); color: #818cf8; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; transition: all 0.15s; line-height: 1; }
517
+ .docs-item-toggle:hover { background: rgba(99,102,241,0.3); color: #a5b4fc; }
518
+ .docs-children { overflow: hidden; transition: max-height 0.25s ease; }
519
+ .docs-children.collapsed { max-height: 0 !important; }
520
+ .docs-children .docs-item { padding-left: 44px; font-size: 12px; opacity: 0.85; }
521
+ .docs-children .docs-children .docs-item { padding-left: 60px; font-size: 11px; opacity: 0.75; }
522
+ .docs-child-line { position: absolute; left: 35px; top: 0; bottom: 0; width: 1px; background: #374151; }
523
+ .docs-item-wrapper { position: relative; }
524
+
525
+ .docs-content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
526
+ .docs-content-header { padding: 16px 28px 12px; border-bottom: 1px solid #374151; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
527
+ .docs-content-title { font-size: 20px; font-weight: 700; color: #f3f4f6; }
528
+ .docs-content-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
529
+ .docs-content-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #374151; color: #9ca3af; }
530
+ .docs-content-tag.section { background: rgba(99,102,241,0.15); color: #a5b4fc; }
531
+ .docs-content-tag.version { background: rgba(16,185,129,0.15); color: #6ee7b7; }
532
+ .docs-content-body { flex: 1; overflow-y: auto; padding: 20px 28px 40px; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
533
+ .docs-content-body::-webkit-scrollbar { width: 6px; }
534
+ .docs-content-body::-webkit-scrollbar-track { background: transparent; }
535
+ .docs-content-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
536
+ .docs-content-empty { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
537
+ .docs-content-empty .empty-icon { font-size: 48px; opacity: 0.4; }
538
+
539
+ /* RAG Chat UI */
540
+ .docs-chat-container { display: flex; flex-direction: column; flex: 1; min-height: 0; }
541
+ .docs-chat-messages { flex: 1; overflow-y: auto; padding: 20px 28px; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
542
+ .docs-chat-messages::-webkit-scrollbar { width: 6px; }
543
+ .docs-chat-messages::-webkit-scrollbar-track { background: transparent; }
544
+ .docs-chat-messages::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
545
+ .docs-chat-welcome { text-align: center; padding: 60px 40px 30px; color: #6b7280; }
546
+ .docs-chat-welcome .welcome-icon { font-size: 48px; opacity: 0.4; margin-bottom: 12px; }
547
+ .docs-chat-welcome .welcome-title { font-size: 16px; font-weight: 600; color: #9ca3af; margin-bottom: 6px; }
548
+ .docs-chat-welcome .welcome-desc { font-size: 13px; color: #6b7280; line-height: 1.6; }
549
+ .docs-chat-welcome .welcome-tips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
550
+ .docs-chat-welcome .tip-chip { font-size: 12px; padding: 6px 14px; border-radius: 16px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: #a5b4fc; cursor: pointer; transition: all 0.15s; }
551
+ .docs-chat-welcome .tip-chip:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.4); }
552
+
553
+ .chat-bubble { margin-bottom: 16px; max-width: 90%; animation: chatFadeIn 0.25s ease; }
554
+ .chat-bubble.user { margin-left: auto; }
555
+ .chat-bubble.assistant { margin-right: auto; }
556
+ .chat-bubble-inner { padding: 10px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
557
+ .chat-bubble.user .chat-bubble-inner { background: rgba(99,102,241,0.2); color: #c7d2fe; border-bottom-right-radius: 4px; }
558
+ .chat-bubble.assistant .chat-bubble-inner { background: #1f2937; color: #d1d5db; border: 1px solid #374151; border-bottom-left-radius: 4px; }
559
+ .chat-result-card { margin-top: 8px; padding: 10px 14px; border-radius: 8px; background: rgba(55,65,81,0.4); border: 1px solid #374151; cursor: pointer; transition: all 0.15s; }
560
+ .chat-result-card:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
561
+ .chat-result-title { font-size: 13px; font-weight: 600; color: #a5b4fc; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
562
+ .chat-result-score { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(16,185,129,0.15); color: #6ee7b7; font-weight: 500; }
563
+ .chat-result-snippet { font-size: 11px; color: #9ca3af; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
564
+ .chat-result-meta { font-size: 10px; color: #6b7280; margin-top: 4px; display: flex; gap: 8px; }
565
+ .chat-no-result { color: #6b7280; font-size: 12px; margin-top: 8px; }
566
+ .chat-typing { display: flex; gap: 4px; padding: 12px 16px; }
567
+ .chat-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #6b7280; animation: chatTyping 1.2s infinite; }
568
+ .chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
569
+ .chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
570
+ @keyframes chatTyping { 0%,60%,100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1); } }
571
+ @keyframes chatFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
572
+
573
+ .docs-chat-input-wrap { padding: 12px 20px 16px; border-top: 1px solid #374151; flex-shrink: 0; display: flex; gap: 8px; align-items: flex-end; background: #111827; }
574
+ .docs-chat-input { flex: 1; background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 10px 16px; color: #e5e7eb; font-size: 13px; outline: none; resize: none; min-height: 20px; max-height: 120px; line-height: 1.5; font-family: inherit; transition: border-color 0.2s; }
575
+ .docs-chat-input:focus { border-color: #6366f1; }
576
+ .docs-chat-input::placeholder { color: #6b7280; }
577
+ .docs-chat-send { width: 36px; height: 36px; border-radius: 10px; border: none; background: #6366f1; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; font-size: 16px; }
578
+ .docs-chat-send:hover { background: #818cf8; }
579
+ .docs-chat-send:disabled { background: #374151; color: #6b7280; cursor: not-allowed; }
580
+ .docs-related { margin-top: 20px; border-top: 1px solid #374151; padding-top: 16px; }
581
+ .docs-related-title { font-size: 13px; font-weight: 600; color: #9ca3af; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
582
+ .docs-related-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; color: #d1d5db; }
583
+ .docs-related-item .rel-icon { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; }
584
+
585
+ /* Debug bar */
586
+ .debug { position: absolute; bottom: 0; left: 12px; background: rgba(31,41,55,0.9); border: 1px solid #374151; border-radius: 8px 8px 0 0; padding: 8px 12px; font-size: 11px; color: #9ca3af; z-index: 30; max-width: 400px; }
587
+ .debug .ok { color: #10b981; }
588
+ .debug .err { color: #f87171; }
589
+
590
+ /* Stats Modal — left side panel */
591
+ .stats-modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
592
+ .stats-modal-overlay.active { display: block; }
593
+ .stats-modal { position: fixed; top: 0; bottom: 0; left: 48px; width: 300px; background: #1f2937; border-right: 1px solid #374151; display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,0.4); animation: modal-slide-in 0.2s ease; z-index: 201; pointer-events: auto; transition: left 0.25s ease; }
594
+ @keyframes modal-slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
595
+ .stats-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #374151; }
596
+ .stats-modal-title { font-size: 15px; font-weight: 700; color: #f3f4f6; }
597
+ .stats-modal-count { font-size: 12px; color: #6b7280; margin-left: 8px; }
598
+ .stats-modal-close { background: none; border: none; color: #6b7280; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; line-height: 1; }
599
+ .stats-modal-close:hover { background: #374151; color: #e5e7eb; }
600
+ .stats-modal-body { overflow-y: auto; padding: 8px 0; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #374151 transparent; }
601
+ .stats-modal-body::-webkit-scrollbar { width: 6px; }
602
+ .stats-modal-body::-webkit-scrollbar-track { background: transparent; }
603
+ .stats-modal-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
604
+ .stats-modal-body::-webkit-scrollbar-thumb:hover { background: #4b5563; }
605
+ .doc-modal-search-sticky { position: sticky; top: 0; z-index: 2; background: #1f2937; padding: 12px 16px 8px; border-bottom: 1px solid #374151; }
606
+ .stats-modal-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; cursor: pointer; transition: background 0.15s; }
607
+ .stats-modal-item:hover { background: #283344; }
608
+ .stats-modal-item-icon { font-size: 14px; flex-shrink: 0; width: 22px; text-align: center; }
609
+ .stats-modal-item-name { flex: 1; font-size: 13px; color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
610
+ .stats-modal-item-badge { font-size: 11px; padding: 2px 8px; border-radius: 9999px; flex-shrink: 0; }
611
+ .stats-modal-item-badge.completed { background: rgba(16,185,129,0.15); color: #6ee7b7; }
612
+ .stats-modal-item-badge.in_progress { background: rgba(59,130,246,0.15); color: #93c5fd; }
613
+ .stats-modal-item-badge.pending { background: rgba(107,114,128,0.15); color: #9ca3af; }
614
+ .stats-modal-item-badge.cancelled { background: rgba(146,64,14,0.15); color: #fbbf24; }
615
+ .stats-modal-item-badge.active { background: rgba(16,185,129,0.15); color: #6ee7b7; }
616
+ .stats-modal-item-sub { font-size: 11px; color: #6b7280; flex-shrink: 0; font-family: monospace; }
617
+
618
+ /* Prompt 日志弹层 — 头部 hover + 复制按钮 */
619
+ .prompt-item-header:hover { background: rgba(40,51,68,0.6); }
620
+ .prompt-copy-btn:hover { background: rgba(107,114,128,0.25) !important; color: #d1d5db !important; border-color: rgba(107,114,128,0.6) !important; }
621
+ `;
622
+ }
623
+ //# sourceMappingURL=template-styles.js.map