viberoom 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/LICENSE +661 -0
  2. package/NOTICE +20 -0
  3. package/README.md +153 -0
  4. package/assets/icon-128.png +0 -0
  5. package/assets/icon-16.png +0 -0
  6. package/assets/icon-256.png +0 -0
  7. package/assets/icon-32.png +0 -0
  8. package/assets/icon-48.png +0 -0
  9. package/assets/icon-512.png +0 -0
  10. package/assets/icon-64.png +0 -0
  11. package/assets/icon-vector.svg +30 -0
  12. package/assets/icon.icns +0 -0
  13. package/assets/icon.ico +0 -0
  14. package/assets/icon.svg +30 -0
  15. package/assets/vendors/claude.svg +3 -0
  16. package/assets/vendors/codex.svg +3 -0
  17. package/assets/vendors/copilot.svg +5 -0
  18. package/assets/vendors/cursor.svg +3 -0
  19. package/assets/vendors/gemini.svg +3 -0
  20. package/assets/vendors/opencode.svg +3 -0
  21. package/dist/acp-client.js +137 -0
  22. package/dist/acp-types.js +2 -0
  23. package/dist/edit.js +34 -0
  24. package/dist/hub.js +348 -0
  25. package/dist/icons.js +235 -0
  26. package/dist/jsonrpc.js +109 -0
  27. package/dist/launcher.js +161 -0
  28. package/dist/log.js +35 -0
  29. package/dist/main.js +389 -0
  30. package/dist/mcp-skills-server.js +177 -0
  31. package/dist/open.js +141 -0
  32. package/dist/persona.js +217 -0
  33. package/dist/recipes.js +261 -0
  34. package/dist/room.js +2124 -0
  35. package/dist/server.js +433 -0
  36. package/dist/shortcuts.js +176 -0
  37. package/dist/skills.js +344 -0
  38. package/dist/tui.js +109 -0
  39. package/package.json +61 -0
  40. package/scripts/install.mjs +34 -0
  41. package/scripts/render-icon.mjs +84 -0
  42. package/scripts/update.mjs +29 -0
  43. package/ui/app.css +346 -0
  44. package/ui/app.js +2834 -0
  45. package/ui/avatars.js +113 -0
  46. package/ui/fonts/OFL.txt +93 -0
  47. package/ui/fonts/nunito-cyrillic-ext.woff2 +0 -0
  48. package/ui/fonts/nunito-cyrillic.woff2 +0 -0
  49. package/ui/fonts/nunito-latin-ext.woff2 +0 -0
  50. package/ui/fonts/nunito-latin.woff2 +0 -0
  51. package/ui/fonts/nunito-vietnamese.woff2 +0 -0
  52. package/ui/fonts/nunito.css +6 -0
  53. package/ui/icons.js +76 -0
  54. package/ui/index.html +217 -0
  55. package/ui/manifest.json +14 -0
  56. package/ui/theme.css +425 -0
package/ui/theme.css ADDED
@@ -0,0 +1,425 @@
1
+ /* viberoom - Copyright (c) 2026 Todor Rusev - AGPL-3.0-or-later; see LICENSE */
2
+ @import url("/fonts/nunito.css");
3
+ :root {
4
+ --primary: #5b5bf0;
5
+ --primary-deep: #4f4fe0;
6
+ --primary-dark: #4343cc;
7
+ --grad-primary: linear-gradient(135deg, #6a6af7, #4f4fe0);
8
+ --ink: #1c1b33;
9
+ --ink-2: #2c2b4a;
10
+ --ink-3: #5c5c80;
11
+ --muted: #8f8fb0;
12
+ --faint: #b3b3cc;
13
+ --placeholder: #a3a3c0;
14
+ --bg: #eef0fb;
15
+ --panel: #ffffff;
16
+ --card: #ffffff;
17
+ --soft: #f6f6fb;
18
+ --softer: #f1f1f8;
19
+ --lav: #eef0fb;
20
+ --lav-2: #e4e6fb;
21
+ --mint: #d9f7e8;
22
+ --mint-ink: #1d8f6a;
23
+ --green: #2fc97e;
24
+ --warm: #fff3cc;
25
+ --warm-ink: #b8860b;
26
+ --peach: #ffe3cc;
27
+ --rose: #fff0ee;
28
+ --rose-ink: #e0554a;
29
+ --sky: #dcefff;
30
+ --code-bg: #26244a;
31
+ --primary-soft: var(--lav);
32
+ --primary-softer: var(--soft);
33
+ --primary-ghost: rgba(91, 91, 240, 0.10);
34
+ --mint-soft: var(--mint);
35
+ --warn: #f5a524;
36
+ --warn-soft: var(--warm);
37
+ --danger: var(--rose-ink);
38
+ --danger-soft: var(--rose);
39
+ --danger-dark: #c9463c;
40
+ --info: #4f8ef7;
41
+ --info-soft: var(--sky);
42
+ --muted-2: var(--faint);
43
+ --panel-soft: var(--soft);
44
+ --panel-tint: var(--soft);
45
+ --border: var(--lav);
46
+ --border-strong: var(--lav-2);
47
+ --mine: var(--grad-primary);
48
+ --mine-border: transparent;
49
+ --text: var(--ink);
50
+ --ok: var(--green);
51
+ --r-xs: 8px;
52
+ --r-sm: 12px;
53
+ --r-md: 14px;
54
+ --r-lg: 18px;
55
+ --r-xl: 18px;
56
+ --r-pill: 99px;
57
+ --edge: 0 2px 0 rgba(28, 27, 51, 0.04);
58
+ --shadow-tile: 0 4px 12px -4px rgba(28, 27, 51, 0.15);
59
+ --shadow-pop: 0 10px 24px -10px rgba(28, 27, 51, 0.25);
60
+ --shadow-primary: 0 8px 18px -8px rgba(91, 91, 240, 0.8);
61
+ --shadow-dialog: 0 30px 60px -30px rgba(50, 40, 120, 0.4);
62
+ --shadow-1: var(--edge);
63
+ --shadow-2: var(--shadow-dialog);
64
+ --shadow-card: var(--edge);
65
+ --shadow-ctl: none;
66
+ --shadow-ctl-hover: var(--shadow-tile);
67
+ --shadow-glow: var(--shadow-primary);
68
+ --shadow-inset: none;
69
+ --shadow-soft: var(--edge);
70
+ --shadow: var(--edge);
71
+ --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
72
+ --mono: "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;
73
+ --fs-xs: 11px;
74
+ --fs-sm: 12px;
75
+ --fs-md: 14px;
76
+ --fs-lg: 16px;
77
+ --fs-xl: 18px;
78
+ --fs-2xl: 22px;
79
+ --t-fast: 120ms;
80
+ --t-base: 200ms;
81
+ --t-slow: 320ms;
82
+ --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
83
+ --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
84
+ --sb-w: 8px;
85
+ --sb-thumb: rgba(91, 91, 240, 0.22);
86
+ --sb-thumb-hover: rgba(91, 91, 240, 0.45);
87
+ --grad-canvas: radial-gradient(900px 520px at 100% 100%, rgba(91, 91, 240, 0.06), transparent 70%), radial-gradient(640px 380px at 0% 0%, rgba(47, 201, 126, 0.04), transparent 70%), linear-gradient(165deg, #fdfdff 0%, #f7f7fe 55%, #f0f1fd 100%);
88
+ --canvas-pattern: radial-gradient(circle at 1px 1px, rgba(91, 91, 240, 0.13) 0.9px, transparent 1.6px);
89
+ --canvas-pattern-size: 22px 22px;
90
+ --grad-page: var(--bg);
91
+ }
92
+ * { box-sizing: border-box; }
93
+ html, body { height: 100%; margin: 0; overflow: hidden; }
94
+ body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: var(--fs-md); font-weight: 600; line-height: 1.45; -webkit-font-smoothing: antialiased; }
95
+ button { font: inherit; cursor: pointer; color: inherit; }
96
+ input, select, textarea { font: inherit; color: var(--ink); }
97
+ h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.2; }
98
+ p { margin: 0 0 8px; }
99
+ pre, code { font-family: var(--mono); font-size: 12px; font-weight: 500; }
100
+ code { background: var(--lav); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
101
+ pre { background: var(--code-bg); color: #f4f2ff; padding: 10px 12px; border-radius: var(--r-sm); overflow-x: auto; white-space: pre-wrap; }
102
+ [hidden] { display: none !important; }
103
+ ::selection { background: var(--lav-2); }
104
+ :focus-visible { outline: 3px solid rgba(91, 91, 240, 0.35); outline-offset: 2px; border-radius: 8px; }
105
+ @supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
106
+ *::-webkit-scrollbar { width: var(--sb-w); height: var(--sb-w); }
107
+ *::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
108
+ *::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: padding-box; }
109
+ *::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); background-clip: padding-box; }
110
+ *::-webkit-scrollbar-corner { background: transparent; }
111
+ .i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; display: inline-block; }
112
+ .i.lg { width: 20px; height: 20px; }
113
+ .i.xl { width: 24px; height: 24px; }
114
+ [data-icon] { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
115
+ .h-ico { width: 40px; height: 40px; border-radius: 13px; background: var(--lav); color: var(--primary); display: inline-grid; place-content: center; flex: none; }
116
+ .h-ico .i { width: 20px; height: 20px; }
117
+ .h-ico.danger { background: var(--rose); color: var(--rose-ink); }
118
+ .hint { color: var(--faint); font-size: var(--fs-xs); font-weight: 600; line-height: 1.45; }
119
+ .hint.accent { color: var(--primary); }
120
+ .hint.error, .error { color: var(--rose-ink); font-size: var(--fs-sm); font-weight: 700; }
121
+ .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 800; }
122
+ .muted { color: var(--muted); }
123
+ .saved { color: var(--mint-ink); font-size: var(--fs-sm); font-weight: 700; }
124
+ .saved:empty { display: none; }
125
+ .saved:not(:empty) { animation: fade-in var(--t-base) var(--ease-out); }
126
+ .btn {
127
+ display: inline-flex; align-items: center; justify-content: center; gap: 8px;
128
+ border: 0; background: var(--softer); color: var(--ink-3);
129
+ border-radius: var(--r-sm); height: 42px; padding: 0 16px; font-weight: 800; font-size: 13px; line-height: 1;
130
+ white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
131
+ }
132
+ .btn:hover:not(:disabled) { background: var(--lav); color: var(--primary); }
133
+ .btn:active:not(:disabled) { transform: translateY(1px); }
134
+ .btn:disabled { opacity: 0.45; cursor: default; }
135
+ .btn.primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-primary); }
136
+ .btn.primary:hover:not(:disabled) { background: var(--grad-primary); color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
137
+ .btn.secondary:hover:not(:disabled) { background: var(--card); color: var(--primary); }
138
+ .btn.primary:active:not(:disabled) { transform: translateY(1px); }
139
+ .btn.secondary { background: var(--card); color: var(--ink-3); box-shadow: var(--shadow-tile); }
140
+ .btn.soft { background: var(--lav); color: var(--primary); }
141
+ .btn.soft:hover:not(:disabled) { background: var(--lav-2); }
142
+ .btn.ghost { background: transparent; color: var(--muted); font-weight: 700; }
143
+ .btn.ghost:hover:not(:disabled) { background: var(--soft); color: var(--primary); }
144
+ .btn.danger { background: var(--rose); color: var(--rose-ink); }
145
+ .btn.danger:hover:not(:disabled) { background: #ffe1dd; color: var(--rose-ink); }
146
+ .btn.danger.solid { background: var(--rose-ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(224, 85, 74, 0.8); }
147
+ .btn.danger.solid:hover:not(:disabled) { background: var(--danger-dark); color: #fff; }
148
+ .btn.sm, .btn.small { height: 34px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
149
+ .btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
150
+ .btn.full { width: 100%; }
151
+ .btn.pill { border-radius: var(--r-pill); }
152
+ .btn .ico { font-size: 1.1em; line-height: 1; }
153
+ .btn .i { width: 16px; height: 16px; }
154
+ .btn.sm .i { width: 15px; height: 15px; }
155
+ .btn.cta { height: 46px; border-radius: var(--r-md); font-size: 14px; padding: 0 18px; }
156
+ .btn.cta .cta-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; }
157
+ .btn.cta .cta-ico .i { width: 16px; height: 16px; }
158
+ .btn.loading { position: relative; color: transparent !important; pointer-events: none; }
159
+ .btn.loading::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; animation: spin 0.8s linear infinite; }
160
+ .btn.secondary.loading::after, .btn.ghost.loading::after, .btn.soft.loading::after { border-color: var(--lav-2); border-top-color: var(--primary); }
161
+ .icon-btn {
162
+ width: 36px; height: 36px; border-radius: 12px; border: 0; background: transparent; color: var(--muted);
163
+ display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none;
164
+ transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
165
+ }
166
+ .icon-btn .i { width: 18px; height: 18px; }
167
+ .icon-btn:hover:not(:disabled) { background: var(--soft); color: var(--primary); }
168
+ .icon-btn:active:not(:disabled) { transform: translateY(1px); }
169
+ .icon-btn.sm, .icon-btn.small { width: 30px; height: 30px; border-radius: 10px; }
170
+ .icon-btn.sm .i { width: 16px; height: 16px; }
171
+ .icon-btn.primary { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-primary); }
172
+ .icon-btn.primary:hover:not(:disabled) { color: #fff; background: var(--grad-primary); filter: brightness(1.05); }
173
+ .icon-btn.ghost { background: transparent; }
174
+ .icon-btn.danger { color: var(--rose-ink); }
175
+ .icon-btn.danger:hover:not(:disabled) { background: var(--rose); color: var(--rose-ink); }
176
+ .icon-btn:disabled { opacity: 0.4; cursor: default; }
177
+ .linklike { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 800; cursor: pointer; text-align: left; }
178
+ .linklike:hover { text-decoration: underline; }
179
+ .field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 12px; min-width: 0; }
180
+ .field > .label, .field > span.label { font-weight: 800; color: var(--ink-3); font-size: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
181
+ .field .hint { margin: 0; }
182
+ .field .hint.error { margin-top: 2px; }
183
+ .field.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
184
+ .field.row > .label { flex: 1; }
185
+ .field.row > .input, .field.row > .select { flex: 0 1 58%; min-width: 0; }
186
+ .input, .select, .textarea,
187
+ .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
188
+ width: 100%; min-width: 0; height: 42px; padding: 0 14px; border: 2px solid var(--lav); border-radius: var(--r-sm); background: var(--soft);
189
+ font-size: 14px; font-weight: 700; color: var(--ink);
190
+ transition: border-color var(--t-fast), background var(--t-fast);
191
+ }
192
+ .input:hover, .select:hover, .textarea:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--lav-2); }
193
+ .input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--card); }
194
+ .input.invalid, .field.invalid input, .field.invalid textarea { border-color: var(--rose-ink); }
195
+ .input::placeholder, .textarea::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--placeholder); font-weight: 600; }
196
+ .select, .field select {
197
+ appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
198
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238f8fb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
199
+ background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
200
+ }
201
+ .select:disabled, .field select:disabled, .input:disabled, .field input:disabled { opacity: 0.55; cursor: default; }
202
+ .textarea, .field textarea { resize: vertical; min-height: 76px; height: auto; padding: 10px 14px; line-height: 1.5; }
203
+ .field.inline-num input { width: 84px; }
204
+ .field-grid { display: grid; gap: 8px 10px; }
205
+ .field-grid.two { grid-template-columns: 1fr 1fr; }
206
+ .field-grid.three { grid-template-columns: 1.3fr 1fr 1fr; }
207
+ .field-grid .field { margin-bottom: 4px; }
208
+ .field-note { font-size: var(--fs-xs); color: var(--faint); margin: -4px 0 10px; line-height: 1.45; }
209
+ .switch, .toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; cursor: pointer; }
210
+ .switch .label { flex: 1; }
211
+ .switch .label .hint { display: block; margin-top: 2px; }
212
+ .switch input, .toggle input { flex: none; width: 42px; height: 24px; appearance: none; -webkit-appearance: none; background: var(--lav-2); border-radius: var(--r-pill); position: relative; cursor: pointer; transition: background var(--t-base) var(--ease-out); margin: 0; }
213
+ .switch input::after, .toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(28, 27, 51, 0.25); transition: transform var(--t-base) var(--ease-pop); }
214
+ .switch input:checked, .toggle input:checked { background: var(--primary); }
215
+ .switch input:checked::after, .toggle input:checked::after { transform: translateX(18px); }
216
+ .switch input:focus-visible { outline: 3px solid rgba(91, 91, 240, 0.35); }
217
+ .check-list { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
218
+ .check-row { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; margin-bottom: 0; padding: 8px 10px; border-radius: 12px; transition: background var(--t-fast); }
219
+ .check-row:hover { background: var(--soft); }
220
+ .check-row input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid var(--lav-2); border-radius: 7px; background: #fff; margin: 0; flex: none; display: grid; place-content: center; transition: background var(--t-fast), border-color var(--t-fast); cursor: pointer; }
221
+ .check-row input::before { content: ""; width: 10px; height: 10px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #fff; transform: scale(0); transition: transform var(--t-fast) var(--ease-pop); }
222
+ .check-row input:checked { background: var(--primary); border-color: var(--primary); }
223
+ .check-row input:checked::before { transform: scale(1); }
224
+ .check-row input:disabled { opacity: 0.45; }
225
+ .check-row .hint { display: block; }
226
+ .choice { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--soft); border: 2px solid var(--soft); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
227
+ .choice:hover { border-color: var(--lav-2); }
228
+ .choice:has(input:checked) { border-color: var(--primary); background: var(--lav); }
229
+ .choice input[type="radio"] { margin-top: 3px; accent-color: var(--primary); }
230
+ .choice-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
231
+ .card { background: var(--soft); border: 0; border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
232
+ .card.hover { transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-base); cursor: pointer; }
233
+ .card.hover:hover { transform: translateY(-2px); background: var(--lav); }
234
+ .card.cta { border: 2px dashed var(--lav-2); background: transparent; color: var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; }
235
+ .card.cta:hover { background: var(--soft); transform: translateY(-2px); }
236
+ .card.cta .plus { width: 44px; height: 44px; border-radius: 14px; background: var(--grad-primary); color: #fff; display: grid; place-content: center; box-shadow: var(--shadow-primary); }
237
+ .card.cta .plus .i { width: 20px; height: 20px; }
238
+ .section { background: var(--soft); border: 0; border-radius: var(--r-lg); padding: 16px 16px 12px; margin-bottom: 12px; min-width: 0; }
239
+ .section > h4 { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 7px; }
240
+ .section > h4 .i { display: none; }
241
+ .section > h4 .spacer { flex: 1; }
242
+ .section.danger { background: var(--rose); }
243
+ .section.danger > h4 { color: var(--rose-ink); }
244
+ .save-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 2px; }
245
+ .save-row .hint { flex: 1; margin: 0; }
246
+ .btn.save { min-width: 90px; }
247
+ .btn.save.saved { background: var(--mint); color: var(--mint-ink); box-shadow: none; }
248
+ .section .row-btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin: 2px 0 6px; flex-wrap: wrap; }
249
+ .row-btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
250
+ .row-btns.start { justify-content: flex-start; }
251
+ .kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: var(--fs-sm); font-weight: 700; overflow-wrap: anywhere; }
252
+ .kv span:nth-child(odd) { color: var(--muted); font-weight: 600; }
253
+ .kv span:nth-child(even) { text-align: right; color: var(--ink-2); }
254
+ .divider { height: 2px; background: var(--lav); margin: 10px 0; border-radius: 2px; }
255
+ .geek { margin: 4px 0 2px; min-width: 0; }
256
+ .geek > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--lav); color: var(--primary); font-weight: 800; font-size: 12px; cursor: pointer; user-select: none; white-space: nowrap; min-width: 0; transition: background var(--t-fast); }
257
+ .geek > summary::-webkit-details-marker { display: none; }
258
+ .geek > summary:hover { background: var(--lav-2); }
259
+ .geek > summary .i { width: 16px; height: 16px; flex: none; }
260
+ .geek > summary .g-hint { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
261
+ .geek > summary .chev { margin-left: auto; display: inline-flex; flex: none; transition: transform var(--t-base) var(--ease-out); }
262
+ .geek[open] > summary .chev { transform: rotate(180deg); }
263
+ .geek-body { padding-top: 10px; animation: fade-in var(--t-base) var(--ease-out); min-width: 0; }
264
+ .geek-body > .section:last-child { margin-bottom: 0; }
265
+ .geek-tip { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--primary); padding: 0 0 1px; margin-left: auto; cursor: pointer; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; vertical-align: middle; box-shadow: inset 0 -1.5px 0 transparent; transition: box-shadow var(--t-fast); }
266
+ .geek-tip .i { width: 17px; height: 17px; display: block; }
267
+ p .geek-tip, .hint > .geek-tip, .switch .label > .geek-tip { margin-left: 8px; }
268
+ .geek-tip:hover { box-shadow: inset 0 -1.5px 0 currentColor; }
269
+ .geek-text { display: block; flex: 1 0 100%; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--lav); border-radius: 10px; padding: 8px 10px; margin: 4px 0 2px; line-height: 1.45; animation: fade-in var(--t-base) var(--ease-out); }
270
+ .geek-text code { font-size: 11px; }
271
+ .choice-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
272
+ .choice-row > .label { font-size: 12px; font-weight: 800; color: var(--ink-3); }
273
+ .chips { display: flex; flex-wrap: wrap; gap: 6px; }
274
+ .chip-btn { border: 2px solid transparent; background: var(--soft); border-radius: var(--r-pill); padding: 0 12px; height: 32px; font-size: 12px; font-weight: 800; color: var(--ink-3); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
275
+ .chip-btn:hover { background: var(--lav); color: var(--primary); }
276
+ .chip-btn.on { background: var(--lav); color: var(--primary); border-color: var(--primary); }
277
+ .chip-btn.none { color: var(--muted); font-weight: 700; }
278
+ .agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 2px 0 14px; }
279
+ .agent-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 2px solid transparent; border-radius: var(--r-md); background: var(--soft); cursor: pointer; text-align: center; transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast), background var(--t-fast); min-width: 0; }
280
+ .agent-tile .at-logo { width: 40px; height: 40px; border-radius: 13px; background: #fff; display: grid; place-content: center; overflow: hidden; box-shadow: var(--shadow-tile); }
281
+ .agent-tile .at-logo img { width: 22px; height: 22px; object-fit: contain; display: block; }
282
+ .agent-tile .at-name { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
283
+ .agent-tile .at-sub { font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
284
+ .agent-tile:hover:not(.off) { transform: translateY(-2px); background: var(--lav); }
285
+ .agent-tile.selected { border-color: var(--primary); background: var(--lav); }
286
+ .agent-tile.off { opacity: 0.5; filter: grayscale(1); cursor: default; }
287
+ .badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--lav); color: var(--primary); font-weight: 800; white-space: nowrap; vertical-align: middle; }
288
+ .badge.outline { background: transparent; border: 2px solid var(--lav-2); color: var(--muted); }
289
+ .badge.status-idle { background: var(--mint); color: var(--mint-ink); }
290
+ .badge.status-thinking { background: var(--warm); color: var(--warm-ink); }
291
+ .badge.status-queued { background: var(--sky); color: #2a6fbf; }
292
+ .badge.status-starting { background: var(--sky); color: #2a6fbf; }
293
+ .badge.status-offline { background: var(--softer); color: var(--muted); }
294
+ .badge.status-error { background: var(--rose); color: var(--rose-ink); }
295
+ .badge.status-left { background: var(--softer); color: var(--muted); }
296
+ .badge.muted { background: var(--softer); color: var(--muted); }
297
+ .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
298
+ .badge.status-thinking .dot { animation: pulse 1.2s ease-in-out infinite; }
299
+ .chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; background: var(--lav); color: var(--primary); border: 0; border-radius: var(--r-pill); padding: 4px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
300
+ .chip .i { width: 13px; height: 13px; }
301
+ .chip-completed { background: var(--mint); color: var(--mint-ink); }
302
+ .chip-failed { background: var(--rose); color: var(--rose-ink); }
303
+ .chip-in_progress { background: var(--warm); color: var(--warm-ink); }
304
+ .count-pill { background: var(--primary); color: #fff; border-radius: var(--r-pill); font-size: 10px; padding: 1px 7px; font-weight: 800; line-height: 15px; }
305
+ .zzz { font-size: 10px; font-weight: 800; color: var(--muted); background: var(--softer); padding: 3px 8px; border-radius: var(--r-pill); }
306
+ .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--warm); animation: pulse 1.2s ease-in-out infinite; display: inline-block; }
307
+ .avatar { position: relative; display: inline-block; flex: none; }
308
+ .avatar .av-tile { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; line-height: 1; font-family: var(--font); user-select: none; }
309
+ .avatar-badge { position: absolute; right: -4px; bottom: -4px; width: 44%; height: 44%; min-width: 15px; min-height: 15px; border-radius: 6px; background: #fff; border: 2px solid #fff; box-shadow: var(--shadow-tile); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--primary); overflow: hidden; }
310
+ .avatar-badge img { width: 72%; height: 72%; object-fit: contain; }
311
+ .avatar-status { position: absolute; left: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: var(--faint); }
312
+ .avatar-status.status-idle { background: var(--green); }
313
+ .avatar-status.status-thinking { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
314
+ .avatar-status.status-offline { background: var(--faint); }
315
+ .avatar-status.status-error { background: var(--rose-ink); }
316
+ .avatar-status.status-starting { background: #7aa7ff; }
317
+ .avatar-status.status-queued { background: #7aa7ff; }
318
+ .avatar-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin: 4px 0 8px; }
319
+ .avatar-picker button { aspect-ratio: 1; width: 100%; border-radius: 12px; border: 2px solid transparent; background: var(--soft); font-size: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: transform var(--t-fast) var(--ease-pop), border-color var(--t-fast), background var(--t-fast); }
320
+ .avatar-picker button:hover { transform: translateY(-1px); background: var(--lav); }
321
+ .avatar-picker button.selected { border-color: var(--primary); background: var(--lav); }
322
+ .avatar-picker button.none { font-size: 12px; font-weight: 800; color: var(--muted); }
323
+ .avatar-stack { display: flex; }
324
+ .avatar-stack .avatar { margin-left: -8px; }
325
+ .avatar-stack .avatar .av-tile { box-shadow: 0 0 0 2px #fff; }
326
+ .avatar-stack .avatar:first-child { margin-left: 0; }
327
+ .room-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-content: center; color: #fff; font-weight: 800; font-size: 18px; flex: none; text-transform: uppercase; }
328
+ .room-mark.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
329
+ .room-mark.emoji { font-size: 24px; text-transform: none; }
330
+ .room-mark.lg.emoji { font-size: 28px; }
331
+ .vendor-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; }
332
+ .vendor-card .vc-head, .vendor-row { display: flex; align-items: center; gap: 10px; }
333
+ .vendor-row { padding: 6px 0; }
334
+ .vc-logo { width: 36px; height: 36px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-tile); display: grid; place-content: center; font-weight: 800; color: var(--primary); overflow: hidden; flex: none; }
335
+ .vc-logo img { width: 22px; height: 22px; object-fit: contain; }
336
+ .vc-name { font-weight: 800; flex: 1; min-width: 0; }
337
+ .vc-name .hint { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
338
+ .vendor-card .vc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
339
+ .vendor-card .vc-fields .field { margin-bottom: 0; }
340
+ .action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 16px; }
341
+ .action { height: 58px; border: 0; border-radius: var(--r-md); background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--ink-3); cursor: pointer; padding: 0; transition: background var(--t-fast), transform var(--t-fast) var(--ease-out); }
342
+ .action .ico { display: flex; color: inherit; }
343
+ .action .ico .i { width: 16px; height: 16px; }
344
+ .action:first-child { color: var(--primary); }
345
+ .action:hover:not(:disabled) { background: var(--lav); transform: translateY(-1px); }
346
+ .action.danger { background: var(--rose); color: var(--rose-ink); }
347
+ .action.danger:hover:not(:disabled) { background: #ffe1dd; }
348
+ .action:disabled { opacity: 0.45; cursor: default; }
349
+ .open-link { color: var(--primary); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(91, 91, 240, 0.35); text-underline-offset: 2px; cursor: pointer; overflow-wrap: anywhere; }
350
+ .open-link:hover { text-decoration-color: var(--primary); }
351
+ code .open-link { color: inherit; }
352
+ .mermaid-block { margin: 8px 0; background: var(--card); border-radius: 14px; padding: 10px 12px 4px; max-width: 100%; overflow-x: auto; box-shadow: var(--edge); }
353
+ .mermaid-block .mm-out svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
354
+ .mermaid-block .mm-out pre { margin: 0; }
355
+ .mermaid-block .mm-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 2px; }
356
+ .mermaid-block .mm-src { border: 0; background: transparent; color: var(--faint); font-size: 11px; font-weight: 800; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
357
+ .mermaid-block .mm-src:hover { background: var(--soft); color: var(--primary); }
358
+ .mermaid-block .mm-code { margin: 6px 0 0; }
359
+ .mermaid-block.preview { margin-top: 4px; }
360
+ .mermaid-block.preview .mm-bar { display: none; }
361
+ .diagram-presets .chip-btn { display: inline-flex; align-items: center; gap: 6px; }
362
+ .diagram-presets .swatch { width: 14px; height: 14px; border-radius: 5px; border: 2px solid; display: inline-block; }
363
+ .menu, .mention-menu { position: absolute; background: var(--card); border: 0; border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 30; min-width: 240px; max-height: 280px; overflow-y: auto; animation: rise var(--t-base) var(--ease-out); transform-origin: bottom left; }
364
+ .menu button, .mention-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 800; color: var(--ink); }
365
+ .menu button.active, .menu button:hover, .mention-menu button.active, .mention-menu button:hover { background: var(--lav); }
366
+ .menu .mm-sub, .mention-menu .mm-sub { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.3; }
367
+ .menu .mm-skill, .mention-menu .mm-skill { font-weight: 800; color: var(--primary); min-width: 84px; }
368
+ .mention-host { position: relative; }
369
+ .mention-menu.inline { left: 0; top: 100%; bottom: auto; margin-top: 4px; }
370
+ .emoji-menu { min-width: 0; width: 352px; padding: 8px; }
371
+ .emoji-menu .avatar-picker { margin: 0; grid-template-columns: repeat(8, 1fr); }
372
+ .dialog { border: 0; border-radius: 22px; padding: 24px 26px; width: 580px; max-width: 94vw; max-height: 90vh; box-shadow: var(--shadow-dialog); overflow: auto; overflow-x: hidden; background: var(--card); color: var(--ink); }
373
+ .dialog::backdrop { background: rgba(28, 27, 51, 0.4); backdrop-filter: blur(4px); }
374
+ .dialog[open] { animation: pop var(--t-slow) var(--ease-pop); }
375
+ .dialog[open]::backdrop { animation: fade-in var(--t-base) var(--ease-out); }
376
+ .dialog.closing { animation: pop-out var(--t-base) var(--ease-out) forwards; }
377
+ .dialog.closing::backdrop { animation: fade-out var(--t-base) var(--ease-out) forwards; }
378
+ .dialog form { min-width: 0; }
379
+ .dialog h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 20px; }
380
+ .dialog .lead { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
381
+ .dialog label:not(.check-row):not(.choice):not(.switch) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; font-weight: 800; color: var(--ink-3); margin-bottom: 12px; min-width: 0; }
382
+ .dialog label:not(.check-row):not(.choice):not(.switch) > .hint { margin: 0; }
383
+ .dialog label:not(.check-row):not(.choice):not(.switch) > input:not([type="checkbox"]):not([type="radio"]),
384
+ .dialog label:not(.check-row):not(.choice):not(.switch) > select,
385
+ .dialog label:not(.check-row):not(.choice):not(.switch) > textarea,
386
+ .dialog label:not(.check-row):not(.choice):not(.switch) > div,
387
+ .dialog label:not(.check-row):not(.choice):not(.switch) > .geek-text { flex: 1 0 100%; margin-top: 2px; }
388
+ .dialog label:not(.check-row):not(.choice):not(.switch) > input[type="number"] { flex: 0 0 120px; }
389
+ .dialog input:not([type="checkbox"]):not([type="radio"]), .dialog select, .dialog textarea { width: 100%; min-width: 0; height: 42px; padding: 0 14px; border: 2px solid var(--lav); border-radius: var(--r-sm); background: var(--soft); font-size: 14px; font-weight: 700; color: var(--ink); transition: border-color var(--t-fast), background var(--t-fast); }
390
+ .dialog input:focus, .dialog select:focus, .dialog textarea:focus { outline: none; border-color: var(--primary); background: var(--card); }
391
+ .dialog input::placeholder, .dialog textarea::placeholder { color: var(--placeholder); font-weight: 600; }
392
+ .dialog select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238f8fb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
393
+ .dialog select:disabled { opacity: 0.55; }
394
+ .dialog textarea { resize: vertical; min-height: 76px; height: auto; padding: 10px 14px; line-height: 1.5; }
395
+ .dialog .two { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
396
+ .dialog .three { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
397
+ .dialog .two > label, .dialog .three > label { min-width: 0; }
398
+ .dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
399
+ .dialog .actions .spacer { flex: 1; }
400
+ .dialog.wide { width: 720px; }
401
+ .dialog.narrow { width: 440px; }
402
+ .toasts { position: fixed; right: 18px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 400px; z-index: 50; pointer-events: none; }
403
+ .toast { pointer-events: auto; background: var(--ink); color: #f4f2ff; padding: 10px 14px; border-radius: 12px; font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow-pop); cursor: pointer; animation: slide-in-right var(--t-slow) var(--ease-pop); line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; }
404
+ .toast .i { width: 15px; height: 15px; margin-top: 1px; opacity: 0.85; }
405
+ .toast.warn { background: var(--warm-ink); }
406
+ .toast.error { background: var(--rose-ink); }
407
+ .toast.leaving { animation: fade-out var(--t-base) var(--ease-out) forwards; }
408
+ .segmented { display: inline-flex; background: var(--soft); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
409
+ .segmented button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 6px 12px; font-size: var(--fs-sm); font-weight: 800; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
410
+ .segmented button.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-tile); }
411
+ .empty { margin: auto; text-align: center; color: var(--muted); max-width: 400px; line-height: 1.55; padding: 24px; font-weight: 600; }
412
+ .empty .art { color: var(--primary); margin-bottom: 8px; }
413
+ .empty .art .i { width: 48px; height: 48px; }
414
+ .empty strong { color: var(--ink); }
415
+ @keyframes pulse { 50% { transform: scale(1.35); } }
416
+ @keyframes spin { to { transform: rotate(360deg); } }
417
+ @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
418
+ @keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
419
+ @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
420
+ @keyframes pop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(6px) scale(0.98); } }
421
+ @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
422
+ @keyframes slide-in-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
423
+ @keyframes slide-in-left { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
424
+ @keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
425
+ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }