File size: 21,825 Bytes
abba79e
 
 
 
168fd46
abba79e
 
 
 
168fd46
 
 
 
 
abba79e
168fd46
 
 
 
 
abba79e
 
 
168fd46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
abba79e
 
 
 
 
168fd46
abba79e
 
 
168fd46
abba79e
 
 
168fd46
abba79e
 
 
168fd46
 
 
abba79e
 
 
 
168fd46
1876b33
 
 
168fd46
1876b33
 
 
 
168fd46
1876b33
 
168fd46
 
1876b33
168fd46
 
 
 
1876b33
168fd46
caafc47
 
3e129b7
 
abba79e
 
 
168fd46
abba79e
 
 
168fd46
abba79e
168fd46
 
abba79e
168fd46
 
abba79e
 
168fd46
 
 
 
abba79e
 
6ed0abd
 
 
abba79e
 
 
168fd46
 
abba79e
 
168fd46
 
abba79e
168fd46
abba79e
 
 
 
 
 
168fd46
abba79e
 
 
 
168fd46
 
 
abba79e
 
 
 
 
168fd46
 
abba79e
 
168fd46
abba79e
 
 
 
 
168fd46
 
abba79e
168fd46
 
 
 
 
 
abba79e
 
168fd46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
abba79e
 
 
 
 
 
168fd46
abba79e
 
 
168fd46
abba79e
 
 
 
 
168fd46
 
abba79e
 
 
 
 
168fd46
88c10c6
168fd46
88c10c6
abba79e
 
168fd46
abba79e
 
168fd46
abba79e
168fd46
abba79e
 
168fd46
abba79e
 
 
 
 
168fd46
 
 
 
 
 
 
abba79e
168fd46
abba79e
 
 
 
 
 
 
 
 
 
 
168fd46
abba79e
168fd46
abba79e
 
 
 
 
 
 
168fd46
 
abba79e
168fd46
 
 
abba79e
168fd46
 
abba79e
 
c272d7e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168fd46
 
abba79e
 
 
168fd46
 
abba79e
 
 
 
168fd46
 
abba79e
 
168fd46
abba79e
 
 
 
 
 
168fd46
abba79e
 
 
 
 
 
 
168fd46
 
 
 
 
 
 
 
b7f26c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
:root{
  --violet:#7c5cff;
  --violet-deep:#5b3fd6;
  --violet-soft:#efeaff;
  --accent-text:#5b3fd6;
  --lav:#f6f4ff;
  --ink:#1e1b31;
  --ink-soft:#6b6785;
  --line:#e6e2f5;
  --surface:#ffffff;
  --surface-2:#fbfaff;
  --glass:rgba(255,255,255,.8);
  --glass-2:rgba(255,255,255,.88);
  --hover:#e2daff;
  --danger:#e1556b;
  --danger-soft:#fdeef1;
  --ok:#2f9e6d;
  --bg:linear-gradient(165deg,#f2eeff 0%,#f8f6ff 42%,#fdfcff 100%);
  --overlay:rgba(30,27,49,.45);
  --aurora-op:.5;
  --radius:18px;
  --shadow-sm:0 2px 10px rgba(80,60,160,.07);
  --shadow-md:0 12px 34px rgba(80,60,160,.13);
  color-scheme:light;
}
:root[data-theme="dark"]{
  --violet:#8a6dff;
  --violet-soft:rgba(138,109,255,.18);
  --accent-text:#c1b0ff;
  --lav:#26213f;
  --ink:#ece9fb;
  --ink-soft:#a7a2c8;
  --line:#332e55;
  --surface:#1e1a35;
  --surface-2:#181530;
  --glass:rgba(30,26,53,.8);
  --glass-2:rgba(30,26,53,.9);
  --hover:#3a3263;
  --danger-soft:rgba(225,85,107,.16);
  --ok:#4cc38a;
  --bg:linear-gradient(165deg,#110f1f 0%,#151228 45%,#1a1630 100%);
  --overlay:rgba(5,4,12,.62);
  --aurora-op:.22;
  --shadow-sm:0 2px 10px rgba(0,0,0,.35);
  --shadow-md:0 12px 34px rgba(0,0,0,.45);
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--ink);background:var(--bg);background-attachment:fixed;min-height:100vh;
}
.hidden{display:none !important}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--violet);outline-offset:2px}

/* Aurora blobs */
.aurora{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.aurora span{position:absolute;border-radius:50%;filter:blur(70px);opacity:var(--aurora-op)}
.aurora span:nth-child(1){width:440px;height:440px;background:#c9b8ff;top:-140px;left:-100px;animation:float1 22s ease-in-out infinite}
.aurora span:nth-child(2){width:360px;height:360px;background:#ffd6f0;bottom:-120px;right:-80px;animation:float2 26s ease-in-out infinite}
.aurora span:nth-child(3){width:300px;height:300px;background:#b8e8ff;top:40%;right:12%;animation:float1 30s ease-in-out infinite reverse}
:root[data-theme="dark"] .aurora span:nth-child(1){background:#5a3fd0}
:root[data-theme="dark"] .aurora span:nth-child(2){background:#9a3d86}
:root[data-theme="dark"] .aurora span:nth-child(3){background:#2a6aa0}
@keyframes float1{0%,100%{transform:translate(0,0)}50%{transform:translate(40px,30px)}}
@keyframes float2{0%,100%{transform:translate(0,0)}50%{transform:translate(-36px,-26px)}}
@media(prefers-reduced-motion:reduce){.aurora span{animation:none}}

/* Tool buttons (mic, attach) */
.tool-btn{width:36px;height:36px;flex-shrink:0;border:none;border-radius:50%;background:transparent;
  color:var(--ink-soft);display:flex;align-items:center;justify-content:center;transition:.15s}
.tool-btn svg{width:19px;height:19px}
.tool-btn:hover{background:var(--lav);color:var(--accent-text)}
.tool-btn.recording{color:#fff;background:#e1556b;animation:recPulse 1.2s ease-in-out infinite}
@keyframes recPulse{0%,100%{box-shadow:0 0 0 0 rgba(225,85,107,.45)}50%{box-shadow:0 0 0 7px rgba(225,85,107,0)}}

.attach-preview{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding:8px 12px;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;width:fit-content}
.attach-preview img{width:44px;height:44px;border-radius:8px;object-fit:cover}
#attach-remove{width:22px;height:22px;border:none;border-radius:50%;background:var(--lav);
  color:var(--ink-soft);font-size:1rem;line-height:1}
#attach-remove:hover{background:var(--hover);color:var(--ink)}

.model-badge,.model-badge-inline{border-radius:999px;background:var(--violet-soft);
  color:var(--accent-text);font-size:.72rem;font-weight:600;letter-spacing:.02em}
.model-badge{display:inline-block;padding:2px 10px}
.model-badge-inline{flex-shrink:0;padding:4px 10px;display:flex;align-items:center}

.amasaku{color:var(--accent-text);font-weight:600}
.bubble strong{font-weight:700}
.bubble em{font-style:italic}
.bubble-image{max-width:220px;border-radius:12px;display:block;margin-bottom:6px}

/* Buttons */
.btn{border:none;border-radius:999px;padding:11px 22px;font-size:.92rem;font-weight:500;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s}
.btn.small{padding:8px 16px;font-size:.84rem}
.btn.primary{background:linear-gradient(135deg,var(--violet),var(--violet-deep));color:#fff;box-shadow:0 6px 18px rgba(124,92,255,.32)}
.btn.primary:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(124,92,255,.4)}
.btn.primary:disabled{opacity:.65;cursor:not-allowed;transform:none}
.btn.ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.btn.ghost:hover{background:var(--lav)}
.btn.danger-ghost{background:transparent;color:var(--danger);border:1px solid var(--danger)}
.btn.danger-ghost:hover{background:var(--danger-soft)}
.btn.full{width:100%}
.icon-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--surface);
  color:var(--ink-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.icon-btn:hover{background:var(--lav);color:var(--ink)}
.icon-btn svg{width:18px;height:18px}
.lang-btn{width:auto;padding:0 12px;font-size:.76rem;font-weight:700;letter-spacing:.04em}
.i-sun{display:none}
:root[data-theme="dark"] .i-sun{display:block}
:root[data-theme="dark"] .i-moon{display:none}
.link-btn{background:none;border:none;color:var(--violet);font-weight:500;font-size:.9rem}

#send-btn.stopping{background:#e1556b !important}
#send-btn.stopping:hover{background:#c8455f !important}

/* Nav */
#navbar{position:relative;z-index:10;max-width:1240px;margin:20px auto 0;padding:9px 12px 9px 20px;
  display:flex;align-items:center;justify-content:space-between;height:62px;
  background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow-md)}
.brand{display:flex;align-items:center;gap:8px;font-size:1.15rem;font-weight:700;color:var(--ink);text-decoration:none;letter-spacing:-.02em}
.brand-icon{width:32px;height:32px;border-radius:9px;object-fit:cover}
.nav-right,.nav-group,.nav-tools{display:flex;align-items:center;gap:10px}
.nav-tools{margin-right:4px}
#nav-name{font-weight:500;font-size:.92rem}
.avatar-btn{width:38px;height:38px;border-radius:50%;border:2px solid var(--surface);padding:0;overflow:hidden;
  background:linear-gradient(135deg,var(--violet),var(--violet-deep));color:#fff;font-weight:700;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm)}
.avatar-btn img{width:100%;height:100%;object-fit:cover}

/* Auth */
.auth-wrap{position:relative;z-index:5;display:flex;justify-content:center;padding:56px 20px}
.auth-card{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--line);
  border-radius:26px;padding:38px 34px;box-shadow:var(--shadow-md)}
.auth-card h2{font-size:1.55rem;text-align:center;letter-spacing:-.02em}
.auth-sub{text-align:center;color:var(--ink-soft);font-size:.93rem;margin:6px 0 24px}
.oauth-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.oauth-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;color:var(--ink);
  border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:.9rem;font-weight:500;transition:.15s}
.oauth-btn:hover{background:var(--lav);border-color:var(--violet)}
.oauth-note{font-size:.82rem;color:var(--ink-soft);text-align:center;margin-top:10px}
.divider{display:flex;align-items:center;gap:12px;margin:22px 0 18px;color:var(--ink-soft);font-size:.82rem}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.field-label{display:block;font-size:.83rem;font-weight:500;color:var(--ink-soft);margin-bottom:6px}
.field{width:100%;padding:12px 15px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface-2);font-size:.95rem;font-family:inherit;color:var(--ink);transition:.15s}
.field:focus{outline:none;border-color:var(--violet);background:var(--surface);box-shadow:0 0 0 3px rgba(124,92,255,.18)}
.status{text-align:center;font-size:.88rem;min-height:1.3em;margin-top:12px;color:var(--ink-soft)}
.status.error{color:var(--danger)}
.status.ok{color:var(--ok)}
.switch-line{text-align:center;font-size:.9rem;color:var(--ink-soft);margin-top:14px}
.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;
  border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Modal + dashboard */
.modal{position:fixed;inset:0;background:var(--overlay);backdrop-filter:blur(3px);
  display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}
.dash-card{position:relative;width:100%;max-width:620px;max-height:92vh;overflow-y:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow-md)}
.dash-x{position:absolute;top:16px;right:16px;font-size:1.3rem;line-height:1}
.dash-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px;padding-right:40px}
#modal-avatar{width:68px;height:68px;border-radius:50%;overflow:hidden;flex-shrink:0;
  background:linear-gradient(135deg,var(--violet),var(--violet-deep));color:#fff;font-size:1.6rem;font-weight:700;
  display:flex;align-items:center;justify-content:center}
#modal-avatar img{width:100%;height:100%;object-fit:cover}
.dash-who{flex:1;min-width:140px}
.dash-who h3{font-size:1.2rem;letter-spacing:-.02em}
.dash-who p{color:var(--ink-soft);font-size:.85rem;margin-top:2px}
.tabs{display:flex;gap:4px;padding:4px;background:var(--lav);border-radius:999px;margin-bottom:20px}
.tab{flex:1;border:none;background:none;padding:9px 12px;border-radius:999px;font-size:.88rem;font-weight:500;color:var(--ink-soft);transition:.16s}
.tab.active{background:var(--surface);color:var(--accent-text);box-shadow:var(--shadow-sm)}
.pane-h{font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin:22px 0 10px}
.tab-pane>.pane-h:first-child{margin-top:0}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:10px;margin-bottom:6px}
.stat{padding:14px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);display:flex;flex-direction:column;gap:2px}
.stat strong{font-size:1.5rem;letter-spacing:-.02em;color:var(--accent-text)}
.stat span{font-size:.76rem;color:var(--ink-soft);line-height:1.3}
.chart{display:flex;align-items:flex-end;gap:10px;height:130px;padding:6px 4px 0}
.bar{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px}
.bar i{display:block;width:100%;max-width:34px;min-height:4px;border-radius:8px 8px 4px 4px;
  background:linear-gradient(180deg,var(--violet),var(--violet-deep));transition:height .5s ease}
.bar.empty i{background:var(--line)}
.bar span{font-size:.72rem;color:var(--ink-soft)}
.saved-list{display:flex;flex-direction:column;gap:10px}
.saved-item{padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);
  display:flex;gap:10px;align-items:flex-start}
.saved-item p{flex:1;font-size:.92rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.saved-item small{display:block;color:var(--ink-soft);font-size:.74rem;margin-top:4px}
.saved-item .act{flex-shrink:0;opacity:1}
.field-row{display:flex;gap:10px;align-items:flex-start}
.field-row .field{margin-bottom:0}
#pw-box .field{margin-bottom:10px}
.data-actions{display:flex;flex-wrap:wrap;gap:10px}
.dash-done{margin-top:24px}

/* Toast */
#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);z-index:300;
  padding:11px 20px;border-radius:999px;background:var(--ink);color:var(--surface);font-size:.88rem;font-weight:500;
  box-shadow:var(--shadow-md);opacity:0;pointer-events:none;transition:.25s}
#toast.show{opacity:1;transform:translate(-50%,0)}

/* Layout */
.layout{position:relative;z-index:5;max-width:1240px;margin:22px auto;padding:0 20px;
  display:grid;grid-template-columns:268px 1fr;gap:20px;align-items:start}

/* Sidebar */
#sidebar{background:var(--glass);backdrop-filter:blur(12px);border:1px solid var(--line);
  border-radius:var(--radius);padding:18px 14px;box-shadow:var(--shadow-sm);position:sticky;top:20px}
.new-chat{margin-bottom:14px}
.search-wrap{display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid var(--line);
  border-radius:11px;background:var(--surface-2);color:var(--ink-soft);margin-bottom:16px}
.search-wrap input{border:none;background:none;outline:none;font-family:inherit;font-size:.88rem;width:100%;color:var(--ink)}
.side-label{font-size:.74rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-soft);margin:0 4px 8px}
.side-empty,.side-hint{font-size:.85rem;color:var(--ink-soft);padding:6px 4px;line-height:1.45}
#chat-list{display:flex;flex-direction:column;gap:2px;max-height:52vh;overflow-y:auto}
.chat-row{display:flex;align-items:center;border-radius:11px;position:relative;transition:.15s}
.chat-row:hover,.chat-row.active{background:var(--violet-soft)}
.chat-row.active .chat-name{color:var(--accent-text);font-weight:500}
.chat-name{flex:1;padding:9px 6px 9px 12px;font-size:.89rem;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;cursor:pointer;color:var(--ink)}
.dots-btn{width:26px;height:26px;margin-right:6px;border:none;background:none;border-radius:7px;
  color:var(--ink-soft);display:flex;align-items:center;justify-content:center;opacity:0;flex-shrink:0}
.chat-row:hover .dots-btn,.dots-btn.open{opacity:1}
.dots-btn:hover{background:var(--hover);color:var(--ink)}
.menu{position:fixed;z-index:200;min-width:150px;padding:5px;
  background:var(--surface);border:1px solid var(--line);border-radius:13px;
  box-shadow:var(--shadow-md);display:none}
.menu.open{display:block;animation:pop .13s ease-out}
@keyframes pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.menu-item{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:8px;font-size:.87rem;color:var(--ink);cursor:pointer}
.menu-item:hover{background:var(--lav)}
.menu-item.danger{color:var(--danger)}
.menu-item.danger:hover{background:var(--danger-soft)}
.rename-input{flex:1;margin:3px 6px;padding:7px 10px;border:1px solid var(--violet);border-radius:9px;
  background:var(--surface);font-family:inherit;font-size:.88rem;color:var(--ink);outline:none}

/* Panel */
#panel{background:var(--glass-2);backdrop-filter:blur(12px);border:1px solid var(--line);
  border-radius:var(--radius);padding:22px 24px 18px;box-shadow:var(--shadow-md);display:flex;flex-direction:column}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.panel-head h1{font-size:1.2rem;font-weight:700;letter-spacing:-.02em}
.panel-sub{font-size:.85rem;color:var(--ink-soft);margin-top:3px}
.adapt-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;flex-shrink:0;
  background:var(--lav);border:1px solid var(--line);font-size:.8rem;font-weight:500;color:var(--ink-soft)}
.ping{width:7px;height:7px;border-radius:50%;background:var(--violet);
  box-shadow:0 0 0 0 rgba(124,92,255,.55);animation:ping 2s ease-out infinite}
@keyframes ping{70%{box-shadow:0 0 0 8px rgba(124,92,255,0)}100%{box-shadow:0 0 0 0 rgba(124,92,255,0)}}
.segmented{display:inline-flex;gap:4px;padding:4px;background:var(--lav);border-radius:999px}
.seg{border:none;background:none;padding:8px 18px;border-radius:999px;font-size:.84rem;
  font-weight:500;color:var(--ink-soft);transition:.16s}
.seg.active{background:var(--surface);color:var(--accent-text);box-shadow:var(--shadow-sm)}

/* Chat */
#chatbox{height:56vh;min-height:380px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:4px 4px 8px}
.empty-state{margin:auto;text-align:center;max-width:440px;padding:20px}
.empty-orb{width:76px;height:76px;border-radius:50%;margin:0 auto 18px;
  background:linear-gradient(135deg,#a48bff,#7c5cff 55%,#5b3fd6);box-shadow:0 10px 30px rgba(124,92,255,.38);
  animation:breathe 4s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
.empty-state h2{font-size:1.35rem;margin-bottom:8px;letter-spacing:-.02em}
.empty-state p{color:var(--ink-soft);font-size:.94rem;line-height:1.55;margin-bottom:20px}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.chip{padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:var(--surface);
  font-size:.84rem;color:var(--ink);transition:.15s}
.chip:hover{border-color:var(--violet);color:var(--accent-text);background:var(--violet-soft)}

.row{display:flex;flex-direction:column;max-width:76%;animation:rise .22s ease-out}
.row.user{align-self:flex-end;align-items:flex-end}
.row.bot{align-self:flex-start;align-items:flex-start}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bubble{padding:12px 16px;border-radius:17px;font-size:.95rem;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.row.user .bubble{background:linear-gradient(135deg,var(--violet),var(--violet-deep));color:#fff;border-bottom-right-radius:5px}
.row.bot .bubble{background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:5px;box-shadow:var(--shadow-sm)}
.row.bot .bubble.err{border-color:var(--danger);color:var(--danger)}
.acts{display:flex;gap:6px;margin-top:5px;opacity:0;transition:.15s}
.row:hover .acts,.row:focus-within .acts{opacity:1}
@media(hover:none){.acts{opacity:1}}
.act{width:25px;height:25px;border-radius:7px;border:1px solid var(--line);background:var(--surface);
  color:var(--ink-soft);display:flex;align-items:center;justify-content:center}
.act:hover{background:var(--lav);color:var(--accent-text)}
.act.on{color:var(--violet)}
.act svg{width:13px;height:13px}

/* Sources (Inkomoko) + suggested questions */
.sources{margin-top:8px;max-width:100%;font-size:.82rem;color:var(--ink-soft)}
.sources summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;
  border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:600;font-size:.72rem;
  letter-spacing:.06em;text-transform:uppercase}
.sources summary::-webkit-details-marker{display:none}
.sources summary::before{content:"\25B8";transition:transform .15s}
.sources[open] summary::before{transform:rotate(90deg)}
.sources ul{list-style:none;margin-top:8px;display:flex;flex-direction:column;gap:6px}
.sources li{padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);line-height:1.35}
.sources a{color:var(--accent-text);font-weight:500;text-decoration:none;display:block}
.sources a:hover{text-decoration:underline}
.sources small{display:block;margin-top:2px;font-size:.74rem;opacity:.85}
.suggest{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:2px 0 6px;animation:rise .25s ease-out}
.suggest-label{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft)}
.suggest-chip{max-width:100%;text-align:left;padding:9px 15px;border:1px solid var(--line);border-radius:16px;
  background:var(--surface);color:var(--ink);font-size:.86rem;line-height:1.4;transition:.15s}
.suggest-chip:hover{border-color:var(--violet);background:var(--violet-soft);color:var(--accent-text)}

/* Thinking indicator */
.typing .bubble{display:flex;gap:5px;align-items:center;padding:14px 18px;flex-wrap:wrap}
.dot{width:7px;height:7px;border-radius:50%;background:#b6aee0;animation:bounce 1.25s infinite}
.dot:nth-child(2){animation-delay:.16s}
.dot:nth-child(3){animation-delay:.32s}
.think-text{margin-left:8px;font-size:.88rem;font-style:italic;color:var(--ink-soft);transition:opacity .25s}
.think-text.fade{opacity:0}
@keyframes bounce{0%,62%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-5px);opacity:1}}

/* Composer */
#composer{display:flex;align-items:flex-end;gap:10px;padding:10px 10px 10px 20px;margin-top:6px;
  background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow-sm);transition:.18s}
#composer:focus-within{border-color:var(--violet);box-shadow:0 0 0 4px rgba(124,92,255,.14)}
#msg-box{flex:1;border:none;outline:none;resize:none;background:none;font-family:inherit;font-size:.97rem;
  line-height:1.5;padding:10px 0;max-height:150px;color:var(--ink)}
#msg-box::placeholder,.field::placeholder,.search-wrap input::placeholder{color:var(--ink-soft);opacity:.7}
#send-btn{width:42px;height:42px;flex-shrink:0;border:none;border-radius:50%;color:#fff;
  background:linear-gradient(135deg,var(--violet),var(--violet-deep));
  display:flex;align-items:center;justify-content:center;box-shadow:0 5px 15px rgba(124,92,255,.35);transition:.16s}
#send-btn svg{width:19px;height:19px}
#send-btn:hover:not(:disabled){transform:translateY(-1px)}
#send-btn:disabled{opacity:.5;cursor:not-allowed}
.composer-note{text-align:center;font-size:.76rem;color:var(--ink-soft);margin-top:10px;opacity:.85}

@media(max-width:900px){
  .layout{grid-template-columns:1fr}
  #sidebar{position:static}
  #chat-list{max-height:200px}
  .panel-head{flex-direction:column}
  .row{max-width:90%}
}
@media(max-width:600px){
  #nav-name{display:none}
  #navbar{padding-left:14px;margin:12px 12px 0}
  .nav-right,.nav-group,.nav-tools{gap:6px}
  .btn{padding:10px 16px}
  .dash-card{padding:22px 18px}
  .stat strong{font-size:1.25rem}
}