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/app.css ADDED
@@ -0,0 +1,346 @@
1
+ /* viberoom - Copyright (c) 2026 Todor Rusev - AGPL-3.0-or-later; see LICENSE */
2
+ :root {
3
+ --rail-w: 72px;
4
+ --rail-w-open: 212px;
5
+ --side-w: 292px;
6
+ --details-w: 320px;
7
+ --gap: 12px;
8
+ }
9
+ .shell {
10
+ height: 100%; display: grid; gap: var(--gap); padding: var(--gap);
11
+ grid-template-columns: var(--rail-w) var(--side-w) minmax(0, 1fr) auto;
12
+ grid-template-areas: "rail side main details";
13
+ transition: grid-template-columns var(--t-slow) var(--ease-out);
14
+ }
15
+ .shell.rail-open { grid-template-columns: var(--rail-w-open) var(--side-w) minmax(0, 1fr) auto; }
16
+ .shell.resizing { user-select: none; cursor: col-resize; }
17
+ .rail { grid-area: rail; position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 4px; min-height: 0; }
18
+ .rail-head { display: flex; align-items: center; margin-bottom: 14px; padding: 0 14px; }
19
+ .rail-logo { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; margin: 0; color: var(--ink); font-weight: 800; font-size: 18px; white-space: nowrap; border-radius: 14px; }
20
+ .rail-logo .mark { width: 44px; height: 44px; border-radius: 14px; flex: none; display: block; box-shadow: 0 8px 18px -6px rgba(91, 91, 240, 0.6); }
21
+ .rail-logo .word, .rail-item .label, .rail .conn-label { opacity: 0; width: 0; overflow: hidden; transition: opacity var(--t-base) var(--ease-out), width var(--t-base) var(--ease-out); white-space: nowrap; }
22
+ .shell.rail-open .rail-logo .word, .shell.rail-open .rail-item .label, .shell.rail-open .rail .conn-label { opacity: 1; width: auto; }
23
+ .rail-items { display: flex; flex-direction: column; gap: 10px; align-items: center; }
24
+ .shell.rail-open .rail-items { align-items: stretch; padding: 0 14px; }
25
+ .shell:not(.rail-open) .rail-item, .shell:not(.rail-open) .rail-logo { gap: 0; }
26
+ .rail-item.new:hover { background: #fff; color: var(--primary); box-shadow: var(--shadow-tile); }
27
+ .rail-toggle { width: 44px; height: 24px; margin-top: 8px; border-radius: 8px; border: 0; background: transparent; color: var(--faint); display: grid; place-content: center; padding: 0; align-self: center; transition: background var(--t-fast), color var(--t-fast); }
28
+ .rail-toggle .i { width: 16px; height: 16px; }
29
+ .rail-toggle:hover { background: #fff; color: var(--primary); }
30
+ .rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0; align-items: center; }
31
+ .shell.rail-open .rail-foot { align-items: stretch; padding: 0 14px; }
32
+ .rail-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 14px; color: var(--muted); font-weight: 800; font-size: 13px; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
33
+ .shell.rail-open .rail-item { width: auto; justify-content: flex-start; padding: 0 12px 0 0; }
34
+ .rail-item .ico { width: 44px; height: 44px; display: grid; place-content: center; flex: none; }
35
+ .rail-item .ico .i { width: 22px; height: 22px; }
36
+ .rail-item:hover { color: var(--primary); }
37
+ .rail-item.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-tile); }
38
+ .rail-item.me { background: #fff; box-shadow: var(--shadow-tile); }
39
+ .rail-item.me .ico .avatar { display: block; }
40
+ .rail-item.me .ico .av-tile { background: transparent !important; }
41
+ .rail-count { position: absolute; top: -4px; right: -4px; background: var(--primary); color: #fff; border-radius: var(--r-pill); font-size: 10px; padding: 0 6px; font-weight: 800; line-height: 16px; box-shadow: 0 0 0 2px var(--bg); }
42
+ .shell.rail-open .rail-count { position: static; margin-left: auto; box-shadow: none; }
43
+ .rail-status { position: relative; height: 0; width: 44px; align-self: center; }
44
+ .shell.rail-open .rail-status { width: auto; height: auto; display: flex; align-items: center; gap: 8px; padding: 8px 0 0 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
45
+ .rail .conn { position: absolute; right: -3px; top: -11px; width: 14px; height: 14px; border-radius: 50%; background: var(--faint); border: 3px solid var(--bg); transition: background var(--t-base); }
46
+ .shell.rail-open .rail .conn { position: static; width: 9px; height: 9px; border: 0; }
47
+ .rail .conn.ok { background: var(--green); }
48
+ .side { grid-area: side; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--edge); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
49
+ .side-rooms, .side-room { display: flex; flex-direction: column; min-height: 0; flex: 1; animation: fade-in var(--t-base) var(--ease-out); }
50
+ .side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 20px 8px; }
51
+ .side-head h2 { font-size: 21px; letter-spacing: -0.01em; }
52
+ .side-head.room { align-items: flex-start; padding: 20px 14px 6px 20px; gap: 6px; }
53
+ .side-head.room #back-to-rooms { margin: 2px 0 0 -8px; }
54
+ .side-room-title { flex: 1; min-width: 0; }
55
+ .side-room-title h2 { font-size: 21px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
56
+ .side-room-title .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 5px; }
57
+ .side-head.room .icon-btn { flex: none; margin-top: 2px; }
58
+ .search { display: flex; align-items: center; gap: 8px; background: var(--softer); border: 0; border-radius: var(--r-pill); padding: 0 14px; height: 38px; margin: 4px 14px 10px; min-width: 0; cursor: text; transition: background var(--t-fast), box-shadow var(--t-fast); }
59
+ .search:hover { background: var(--lav); }
60
+ .search:focus-within { background: var(--lav); box-shadow: 0 0 0 2px var(--primary); }
61
+ .search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-size: 13px; font-weight: 700; height: 100%; }
62
+ .search input::placeholder { color: var(--placeholder); font-weight: 600; }
63
+ .search input::-webkit-search-cancel-button { appearance: none; }
64
+ .search-icon { color: var(--placeholder); }
65
+ .search-icon .i { width: 16px; height: 16px; }
66
+ .side-actions { padding: 8px 14px 6px; }
67
+ .side-label { padding: 12px 20px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 800; }
68
+ .side-list { list-style: none; margin: 0; padding: 4px 14px 10px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
69
+ .side-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; cursor: pointer; transition: background var(--t-fast); animation: slide-in-left var(--t-base) var(--ease-out); }
70
+ .side-list li:hover { background: var(--soft); }
71
+ .side-list li.selected { background: var(--lav); }
72
+ .side-list li.offline .avatar .av-tile { filter: grayscale(0.6); opacity: 0.8; }
73
+ .side-list .p-body { flex: 1; min-width: 0; }
74
+ .side-list .p-name { font-weight: 800; display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
75
+ .side-list .p-name > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
76
+ .side-list .p-sub { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
77
+ .side-list .p-warn { color: var(--rose-ink); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
78
+ .side-list .p-actions { display: flex; gap: 4px; align-items: center; }
79
+ .side-list .p-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11px; font-weight: 700; color: var(--faint); flex: none; }
80
+ .side-list li.me { background: transparent; }
81
+ .side-list li.me.selected { background: var(--lav); }
82
+ .side-list .p-preview { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
83
+ .side-foot { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
84
+ .side-foot .btn .i { width: 16px; height: 16px; }
85
+ .side-foot .btn.wake { height: 42px; background: var(--lav); color: var(--primary); }
86
+ .side-foot .btn.hush { height: 38px; background: transparent; color: var(--muted); font-weight: 700; }
87
+ .side-foot .btn.hush:hover:not(:disabled) { background: var(--soft); color: var(--primary); }
88
+ .side-foot .btn.hush.busy { background: var(--lav); color: var(--primary); }
89
+ .side-foot .btn.hush.busy .hush-face { animation: pulse 0.9s ease-in-out infinite; }
90
+ .side-foot .btn.hush.on { background: var(--warm); color: var(--warm-ink); cursor: default; }
91
+ .side-foot .btn.hush.on:hover { background: var(--warm); color: var(--warm-ink); }
92
+ .focused-pill { color: var(--primary); font-weight: 800; }
93
+ .shell.side-collapsed.view-room { grid-template-columns: var(--rail-w) 72px minmax(0, 1fr) auto; }
94
+ .shell.side-collapsed.view-room.rail-open { grid-template-columns: var(--rail-w-open) 72px minmax(0, 1fr) auto; }
95
+ .shell.side-collapsed .side-room .side-room-title, .shell.side-collapsed .side-room #back-to-rooms, .shell.side-collapsed .side-room #room-settings-btn, .shell.side-collapsed .side-label, .shell.side-collapsed .participants .p-body, .shell.side-collapsed .participants .p-actions, .shell.side-collapsed .side-room .label { display: none; }
96
+ .shell.side-collapsed .side-head.room { justify-content: center; padding: 12px 6px 4px; }
97
+ .shell.side-collapsed .side-actions { padding: 4px 10px 6px; }
98
+ .shell.side-collapsed .side-room .btn { padding: 0; width: 44px; height: 44px; margin: 0 auto; justify-content: center; gap: 0; }
99
+ .shell.side-collapsed .participants { padding: 4px 8px; }
100
+ .shell.side-collapsed .participants li { justify-content: center; padding: 6px 0; gap: 0; }
101
+ .shell.side-collapsed .side-foot { padding: 8px 8px 12px; align-items: center; }
102
+ .main { grid-area: main; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--edge); display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; overflow: hidden; }
103
+ .main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; min-height: 64px; }
104
+ .main-head h1 { font-size: 18px; letter-spacing: -0.01em; }
105
+ .rooms-view, .chat, .page { display: flex; flex-direction: column; min-height: 0; flex: 1; animation: fade-in var(--t-base) var(--ease-out); }
106
+ .rooms-grid { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 22px 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 12px; align-content: start; }
107
+ .room-card { display: flex; flex-direction: column; gap: 8px; animation: pop var(--t-slow) var(--ease-out); }
108
+ .room-card .rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
109
+ .room-card .rc-head .rc-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
110
+ .room-card h3 { font-size: 16px; overflow-wrap: anywhere; }
111
+ .room-card .rc-topic { color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
112
+ .room-card .rc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; color: var(--faint); }
113
+ .room-card.current { box-shadow: 0 0 0 2px var(--primary); }
114
+ .room-card .rc-dir { font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
115
+ .home { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 28px; animation: fade-in var(--t-base) var(--ease-out); }
116
+ .home-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
117
+ .hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 24px; align-items: center; padding: 34px 36px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #6a6af7 0%, #5b5bf0 45%, #8b5cf6 100%); box-shadow: 0 18px 40px -22px rgba(91, 91, 240, 0.9); }
118
+ .hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.10); pointer-events: none; }
119
+ .hero::before { width: 320px; height: 320px; right: -80px; top: -140px; }
120
+ .hero::after { width: 220px; height: 220px; left: 40%; bottom: -150px; background: rgba(47, 201, 126, 0.18); }
121
+ .hero-text { position: relative; z-index: 1; min-width: 0; }
122
+ .hero-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; margin-bottom: 10px; }
123
+ .hero h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
124
+ .hero p { font-size: 15px; font-weight: 600; line-height: 1.55; opacity: 0.92; margin: 0 0 20px; max-width: 520px; }
125
+ .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
126
+ .hero-cta { background: #fff; color: var(--primary); box-shadow: 0 10px 22px -10px rgba(28, 27, 51, 0.5); }
127
+ .hero-cta:hover:not(:disabled) { background: #fff; color: var(--primary); transform: translateY(-1px); }
128
+ .hero-ghost { height: 46px; padding: 0 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); color: #fff; }
129
+ .hero-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.26); color: #fff; }
130
+ .hero-art { position: relative; z-index: 1; min-height: 190px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
131
+ .ha-bubble { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; font-size: 13px; font-weight: 700; width: fit-content; max-width: 100%; box-shadow: 0 10px 24px -14px rgba(28, 27, 51, 0.6); animation: pop var(--t-slow) var(--ease-out) both; }
132
+ .ha-face { width: 30px; height: 30px; border-radius: 10px; display: grid; place-content: center; font-size: 17px; background: rgba(255, 255, 255, 0.55); flex: none; }
133
+ .ha-a { background: #fff; color: var(--ink); align-self: flex-end; border-bottom-right-radius: 6px; }
134
+ .ha-b { background: #d9f7e8; color: #14533f; border-bottom-left-radius: 6px; animation-delay: 0.12s; }
135
+ .ha-c { background: #fff3cc; color: #5a4200; align-self: flex-end; border-bottom-right-radius: 6px; animation-delay: 0.24s; }
136
+ .ha-spark { position: absolute; right: 6px; top: -6px; color: #ffd166; font-size: 26px; animation: pulse 2s ease-in-out infinite; }
137
+ .home-section { display: flex; flex-direction: column; gap: 12px; }
138
+ .home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
139
+ .home-head h2 { font-size: 19px; letter-spacing: -0.01em; }
140
+ .home-head .linklike { display: inline-flex; align-items: center; gap: 4px; }
141
+ .home-head .linklike .i { width: 14px; height: 14px; }
142
+ .home-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
143
+ .home-room { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--soft); text-align: left; min-width: 0; box-shadow: var(--edge); transition: transform var(--t-fast) var(--ease-out), background var(--t-fast); }
144
+ .home-room:not(.empty-room):hover { background: var(--lav); transform: translateY(-1px); }
145
+ .home-room .hr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
146
+ .home-room .hr-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
147
+ .home-room .hr-sub { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
148
+ .home-room .hr-time { color: var(--faint); font-size: 11px; font-weight: 700; flex: none; }
149
+ .home-room.empty-room { cursor: default; }
150
+ .feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
151
+ .feature { border-radius: 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--edge); transition: transform var(--t-fast) var(--ease-out); }
152
+ .feature:hover { transform: translateY(-2px); }
153
+ .feature .f-emoji { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.8); display: grid; place-content: center; font-size: 24px; box-shadow: var(--shadow-tile); }
154
+ .feature h3 { font-size: 15px; margin-top: 4px; }
155
+ .feature p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
156
+ .feature.lav { background: var(--lav); }
157
+ .feature.mint { background: var(--mint); }
158
+ .feature.warm { background: var(--warm); }
159
+ .feature.peach { background: #ffe4d6; }
160
+ .feature.rose { background: var(--rose); }
161
+ .feature.sky { background: var(--sky); }
162
+ .home-vendors { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
163
+ .home-vendor .vc-logo { width: 30px; height: 30px; border-radius: 10px; }
164
+ .home-vendor .vc-logo img { width: 18px; height: 18px; }
165
+ .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
166
+ .step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--edge); }
167
+ .step-n { width: 40px; height: 40px; border-radius: 13px; background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-content: center; flex: none; box-shadow: var(--shadow-primary); }
168
+ .step h3 { font-size: 15px; margin-bottom: 4px; }
169
+ .step p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
170
+ .tips { display: flex; flex-wrap: wrap; gap: 8px; }
171
+ .tip { background: var(--soft); border-radius: var(--r-pill); padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--edge); }
172
+ .tip b { color: var(--primary); font-weight: 800; }
173
+ @media (max-width: 1100px) { .hero { grid-template-columns: 1fr; } .hero-art { min-height: 0; } }
174
+ .chat-title { min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
175
+ .chat-sub { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
176
+ .chat-sub code { font-size: 11px; }
177
+ .chat-sub .dir-chip { cursor: help; }
178
+ .chat-actions { display: flex; align-items: center; gap: 8px; }
179
+ .chat-actions .search { margin: 0; width: 250px; }
180
+ .messages { flex: 1; overflow-y: auto; padding: 12px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--canvas-pattern) content-box, var(--grad-canvas); background-size: var(--canvas-pattern-size), auto; }
181
+ .day { align-self: center; color: var(--faint); font-size: 11px; font-weight: 800; padding: 3px 12px; margin: 2px 0; }
182
+ .msg { display: flex; gap: 12px; align-items: flex-start; max-width: 100%; animation: bubble-in var(--t-base) var(--ease-out); }
183
+ .msg.agent { padding-right: 64px; }
184
+ .msg.mine { flex-direction: row-reverse; padding-left: 64px; }
185
+ .msg.system { justify-content: center; }
186
+ .msg.hidden-by-search { display: none; }
187
+ .sys { color: var(--muted); font-size: 11px; font-weight: 700; padding: 2px 10px; max-width: 80%; text-align: center; }
188
+ .sys.warn { color: var(--warm-ink); background: var(--warm); border-radius: var(--r-pill); padding: 6px 12px; font-weight: 800; }
189
+ .bubble-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: min(1040px, 100%); }
190
+ .msg.mine .bubble-col { align-items: flex-end; }
191
+ .bubble { max-width: 100%; background: #fff; border-radius: 6px 18px 18px 18px; padding: 12px 16px; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.55; color: var(--ink-2); box-shadow: 0 2px 0 rgba(28, 27, 51, 0.06), 0 1px 3px rgba(28, 27, 51, 0.04); }
192
+ .msg.mine .bubble { background: var(--grad-primary); color: #fff; border-radius: 18px 18px 6px 18px; box-shadow: 0 8px 18px -10px rgba(91, 91, 240, 0.7); padding: 11px 16px; }
193
+ .msg.mine .bubble .text { color: #fff; }
194
+ .msg.mine .mention { background: rgba(255, 255, 255, 0.22); color: #fff !important; padding: 1px 7px; border-radius: 6px; font-weight: 800; }
195
+ .msg.mine .bubble code { background: rgba(255, 255, 255, 0.18); color: #fff; }
196
+ .msg.mine .open-link { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
197
+ .bubble .head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
198
+ .head { display: flex; gap: 8px; align-items: baseline; padding: 0 4px; }
199
+ .head .name { font-weight: 800; font-size: 14px; }
200
+ .head .time { color: var(--faint); font-size: 11px; font-weight: 600; cursor: default; white-space: nowrap; }
201
+ .msg.mine .head { justify-content: flex-end; }
202
+ .msg.mine .head .name { display: none; }
203
+ .bubble .text { white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
204
+ .bubble .text.clamped { max-height: 9.2em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
205
+ .bubble .more { background: none; border: 0; color: var(--primary); font-weight: 800; padding: 2px 0; font-size: 13px; }
206
+ .msg.mine .bubble .more { color: #fff; }
207
+ .bubble .pending { color: var(--muted); }
208
+ .mention { font-weight: 800; }
209
+ .caret { display: inline-block; width: 7px; height: 14px; background: var(--muted); margin-left: 2px; vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
210
+ @keyframes blink { to { opacity: 0; } }
211
+ .thought { margin: 2px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
212
+ .thought summary { cursor: pointer; }
213
+ .thought-text { white-space: pre-wrap; padding: 4px 0 0 8px; border-left: 2px solid var(--lav-2); margin-top: 4px; }
214
+ .agent-notices:empty, .tools:empty, .meta:empty, .perms:empty { display: none; }
215
+ .agent-notice { font-size: 12px; font-weight: 700; color: var(--warm-ink); background: var(--warm); border-radius: 10px; padding: 5px 10px; margin: 2px 0 8px; display: flex; gap: 6px; align-items: flex-start; }
216
+ .tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
217
+ .plan { margin: 4px 0 8px; font-size: 12px; font-weight: 600; background: #fff; border-radius: 10px; padding: 8px 10px; }
218
+ .plan-entry.completed { text-decoration: line-through; color: var(--muted); }
219
+ .plan-entry.in_progress { font-weight: 800; }
220
+ .meta { color: var(--faint); font-size: 11px; font-weight: 700; padding: 0 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
221
+ .meta .i { width: 12px; height: 12px; }
222
+ .msg.mine .meta { justify-content: flex-end; }
223
+ .head .edited { font-size: 10.5px; color: var(--faint); font-style: italic; margin-left: 6px; cursor: help; }
224
+ .head .edit-btn { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 0 4px; opacity: 0; transition: opacity var(--t-fast), color var(--t-fast); border-radius: 6px; line-height: 0; }
225
+ .head .edit-btn .i { width: 14px; height: 14px; }
226
+ .msg:hover .head .edit-btn, .head .edit-btn:focus { opacity: 1; }
227
+ .head .edit-btn:hover { color: var(--primary); }
228
+ .edit-box { margin: 4px 0 6px; }
229
+ .msg .bubble-col:has(> .bubble > .edit-box:not([hidden])) { width: 100%; }
230
+ .msg .bubble:has(> .edit-box:not([hidden])) { width: min(760px, 100%); }
231
+ .msg.mine .edit-box .btn.ghost { color: rgba(255, 255, 255, 0.85); }
232
+ .msg.mine .edit-box .btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); color: #fff; }
233
+ .msg.mine .edit-box .btn.primary { background: #fff; color: var(--primary); box-shadow: none; }
234
+ .msg.mine .edit-box .btn.primary:hover:not(:disabled) { background: #fff; color: var(--primary); }
235
+ .edit-area { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 2px solid var(--primary); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; resize: vertical; }
236
+ .edit-box .row-btns { margin-top: 6px; }
237
+ .skill-invoke { font-size: 11px; font-weight: 800; color: var(--primary); background: var(--lav); border-radius: var(--r-pill); padding: 2px 10px; display: inline-block; margin-bottom: 6px; }
238
+ .msg.mine .skill-invoke { background: rgba(255, 255, 255, 0.22); color: #fff; }
239
+ .perm { margin: 6px 0; background: var(--warm); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; max-width: 720px; animation: pop var(--t-base) var(--ease-out); }
240
+ .perm.resolved { opacity: 0.7; }
241
+ .perm-title .kind { font-size: 11px; color: var(--muted); }
242
+ .perm-input { margin: 6px 0; max-height: 160px; overflow: auto; font-size: 11px; }
243
+ .perm-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
244
+ .perm-btn { border: 0; background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 800; transition: transform var(--t-fast) var(--ease-out); }
245
+ .perm-btn:hover { transform: translateY(-1px); }
246
+ .perm-btn.kind-allow_once, .perm-btn.kind-allow_always { background: var(--mint); color: var(--mint-ink); }
247
+ .perm-btn.kind-reject_once, .perm-btn.kind-reject_always { background: var(--rose); color: var(--rose-ink); }
248
+ .perm-result { color: var(--muted); font-size: 12px; }
249
+ .visibility-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
250
+ .visibility-divider .vd-line { flex: 1; height: 8px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'><path d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='%23f472b6' stroke-width='1.6'/></svg>") repeat-x center / 16px 8px; opacity: 0.7; }
251
+ .visibility-divider .vd-label { color: #be185d; background: #fff1f7; border-radius: var(--r-pill); padding: 4px 12px; font-size: 11px; font-weight: 800; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
252
+ .msg.hidden { justify-content: center; }
253
+ .hidden-turn { max-width: 720px; width: 100%; background: var(--soft); border-radius: 12px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
254
+ .hidden-turn summary { cursor: pointer; list-style: none; }
255
+ .hidden-turn summary::-webkit-details-marker { display: none; }
256
+ .hidden-turn[open] summary { color: var(--ink); }
257
+ .hidden-body { padding: 6px 0 4px; }
258
+ .hidden-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; font-weight: 800; color: var(--faint); margin: 6px 0 2px; }
259
+ .hidden-text { white-space: pre-wrap; background: #fff; border-radius: 10px; padding: 8px 10px; color: var(--ink-2); }
260
+ .hidden-body ul { margin: 2px 0 0; padding-left: 18px; }
261
+ .focus-pill { align-self: center; font-size: 11px; font-weight: 800; color: var(--warm-ink); background: var(--warm); padding: 5px 14px 5px 10px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; max-width: 80%; text-align: left; }
262
+ .focus-pill .hush-face { font-size: 18px; line-height: 1; }
263
+ .side-foot .btn.hush .hush-face { font-size: 22px; line-height: 1; }
264
+ .meta .sep { color: var(--faint); margin: 0 4px; }
265
+ .meta.seen { color: var(--primary); font-weight: 800; }
266
+ .meta .ticks { letter-spacing: -0.15em; margin-right: 4px; }
267
+ .side-list li.offline .p-name, .side-list li.offline .p-sub { color: var(--muted); }
268
+ .side-list li.me .avatar .av-tile, .msg.mine .avatar .av-tile { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary); }
269
+ .msg.mine .avatar .av-tile { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--primary); }
270
+ .composer { display: flex; gap: 10px; padding: 8px 8px 8px 18px; margin: 4px 16px 16px; background: var(--softer); border-radius: 20px; align-items: center; min-height: 60px; transition: box-shadow var(--t-fast); }
271
+ .composer:focus-within { box-shadow: 0 0 0 2px var(--primary); }
272
+ .composer .smile-btn { border: 0; background: transparent; color: var(--placeholder); padding: 0; display: grid; place-content: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
273
+ .composer .smile-btn .i { width: 20px; height: 20px; }
274
+ .composer .smile-btn:hover { color: var(--primary); }
275
+ .composer-box { flex: 1; min-width: 0; display: flex; align-items: center; }
276
+ .composer textarea { flex: 1; display: block; box-sizing: border-box; resize: none; padding: 8px 0; margin: 0; border: 0; border-radius: 0; background: transparent; height: 36px; min-height: 36px; max-height: 180px; line-height: 20px; font-size: 14px; font-weight: 600; outline: none; color: var(--ink); overflow-y: auto; }
277
+ .composer textarea::placeholder { color: var(--placeholder); font-weight: 600; }
278
+ .send-btn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--grad-primary); color: #fff; display: grid; place-content: center; box-shadow: var(--shadow-primary); flex: none; transition: transform var(--t-fast) var(--ease-out), filter var(--t-fast); }
279
+ .send-btn .i { width: 18px; height: 18px; display: block; }
280
+ .send-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
281
+ .send-btn:active { transform: translateY(1px); }
282
+ .chat .mention-menu { left: 24px; bottom: 84px; }
283
+ .chat .emoji-menu { left: 24px; bottom: 84px; }
284
+ .page-inner { flex: 1; overflow-y: auto; padding: 8px 22px 22px; }
285
+ .page-inner > .page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; min-height: 48px; }
286
+ .page-inner h1 { font-size: 20px; letter-spacing: -0.01em; }
287
+ .page-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }
288
+ .details { grid-area: details; position: relative; width: var(--details-w); min-width: 0; min-height: 0; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--edge); animation: slide-in-right var(--t-slow) var(--ease-out); display: flex; flex-direction: column; overflow: hidden; }
289
+ .details.closing { animation: fade-out var(--t-base) var(--ease-out) forwards; }
290
+ .details-inner { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 20px; overflow-wrap: anywhere; }
291
+ .details-inner .field input, .details-inner .field select, .details-inner .field textarea, .details-inner .section input, .details-inner .section select, .details-inner .section textarea { max-width: 100%; }
292
+ .details-inner .section { background: transparent; padding: 0; margin-bottom: 8px; }
293
+ .details-inner .section.danger { background: var(--rose); padding: 16px; }
294
+ .details-inner .geek-body > .section { background: var(--soft); padding: 14px 16px 10px; margin-bottom: 10px; }
295
+ .resizer { position: absolute; left: -14px; top: 0; bottom: 0; width: 20px; cursor: col-resize; z-index: 3; }
296
+ .resizer::after { content: ""; position: absolute; left: 8.5px; top: 44%; height: 12%; width: 3px; border-radius: 3px; background: var(--lav-2); opacity: 0; transition: opacity var(--t-fast); }
297
+ .resizer:hover::after, .shell.resizing .resizer::after { opacity: 1; }
298
+ .panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
299
+ .panel-title h3 { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
300
+ .panel-title .hint { display: none; }
301
+ .profile { text-align: center; padding: 22px 16px 18px; background: linear-gradient(160deg, var(--lav), #e4f7ee); border-radius: 18px; margin-bottom: 12px; }
302
+ .profile .avatar { margin: 0 auto 10px; display: block; width: 84px; height: 84px; }
303
+ .profile .avatar .av-tile { background: #fff !important; border-radius: 26px !important; box-shadow: var(--shadow-pop); }
304
+ .profile h3 { font-size: 22px; overflow-wrap: anywhere; letter-spacing: -0.01em; }
305
+ .profile .tagline { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 2px; }
306
+ .profile .badges { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
307
+ .profile .badges .badge { background: #fff; }
308
+ .profile .badges .badge.status-offline, .profile .badges .badge.muted { color: var(--muted); }
309
+ .section label:not(.check-row):not(.switch):not(.toggle):not(.choice) { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink-3); margin-bottom: 12px; min-width: 0; }
310
+ .section label.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
311
+ .section label.row select { flex: 0 1 60%; }
312
+ .section input:not([type="checkbox"]):not([type="radio"]), .section select, .section 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); }
313
+ .details-inner .section input:not([type="checkbox"]):not([type="radio"]), .details-inner .section select, .details-inner .section textarea { background: var(--soft); }
314
+ .details-inner .geek-body .section input:not([type="checkbox"]):not([type="radio"]), .details-inner .geek-body .section select, .details-inner .geek-body .section textarea { background: #fff; }
315
+ .section input:hover, .section select:hover, .section textarea:hover { border-color: var(--lav-2); }
316
+ .section input:focus, .section select:focus, .section textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
317
+ .section 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; }
318
+ .section select:disabled { opacity: 0.55; }
319
+ .section textarea { resize: vertical; min-height: 76px; height: auto; padding: 10px 14px; line-height: 1.5; }
320
+ .section input::placeholder, .section textarea::placeholder { color: var(--placeholder); font-weight: 600; }
321
+ .section .hint { margin: -4px 0 10px; }
322
+ .three-inline { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
323
+ .three-inline label { margin-bottom: 4px; }
324
+ .rc-num { width: 64px !important; height: 30px !important; padding: 0 8px !important; display: inline-block; }
325
+ .rc-table { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
326
+ .rc-table td { padding: 6px 4px; border-top: 2px solid var(--lav); vertical-align: middle; }
327
+ .rc-table td:first-child { display: flex; align-items: center; gap: 8px; }
328
+ .rc-table select { height: 32px !important; padding: 0 28px 0 10px !important; font-size: 12px !important; width: auto !important; }
329
+ .rc-table .rc-note { color: var(--muted); font-size: 11px; }
330
+ .skill-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
331
+ .skill-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--soft); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
332
+ .skill-list li > div { min-width: 0; }
333
+ .skill-list .sk-main { flex: 1; }
334
+ .skill-list .sk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 2px; font-weight: 800; }
335
+ .skill-list .sk-holders { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--primary); }
336
+ .skill-list .sk-holders .i { width: 13px; height: 13px; }
337
+ .sk-about { margin-top: 12px; max-width: 760px; line-height: 1.5; font-size: 12px; }
338
+ .skill-editor { margin-top: 0; }
339
+ .skill-actions { display: flex; gap: 6px; align-items: center; flex: none; }
340
+ .dialog .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
341
+ @media (max-width: 1250px) { .dialog .two-col { grid-template-columns: 1fr; } }
342
+ @media (max-width: 1180px) {
343
+ .shell, .shell.rail-open { grid-template-columns: var(--rail-w) 250px minmax(0, 1fr) auto; }
344
+ .details { position: fixed; right: var(--gap); top: var(--gap); bottom: var(--gap); z-index: 20; width: min(var(--details-w), 92vw); }
345
+ .chat-actions .search { width: 160px; }
346
+ }