File size: 27,748 Bytes
6b62834
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@import './App.css';

/* ═══ Sidebar β€” DeepTutor-style ═══ */
.sidebar { width: 220px; height: 100vh; background: var(--secondary); border-right: 1px solid color-mix(in srgb, var(--border) 50%, transparent); display: flex; flex-direction: column; flex-shrink: 0; z-index: 10; transition: width 0.2s ease; overflow: hidden; }
.sidebar.collapsed { width: 56px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px 14px 14px; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); min-height: 52px; }
.sidebar-brand h1 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 650; white-space: nowrap; letter-spacing: -0.01em; }
.collapsed .sidebar-brand h1 { display: none; }
.sidebar-toggle { margin-left: auto; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted-foreground); transition: background-color 0.15s; font-size: 0.75rem; }
.sidebar-toggle:hover { background: color-mix(in srgb, var(--muted) 55%, transparent); color: var(--foreground); }
.sidebar-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.collapsed .sidebar-nav { padding: 8px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: color-mix(in srgb, var(--foreground) 85%, transparent); cursor: pointer; transition: background-color 0.15s, color 0.15s; white-space: nowrap; }
.nav-item:hover { background: color-mix(in srgb, var(--background) 60%, transparent); color: var(--foreground); }
.nav-item.active { background: var(--accent); color: var(--foreground); font-weight: 600; }
.collapsed .nav-item { padding: 8px; justify-content: center; }
.nav-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; opacity: 0.6; font-size: 0.85rem; }
.nav-item.active .nav-icon { opacity: 1; }
.collapsed .nav-label, .collapsed .nav-badge { display: none; }
.nav-spacer { flex: 1; }

/* Sidebar recents */
.sidebar-recent { margin: 4px 6px 8px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--border) 35%, transparent); }
.sidebar-recent-title { font-size: 10px; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 12px 4px; display: flex; justify-content: space-between; align-items: center; }
.recent-clear-all { cursor: pointer; font-size: 12px; opacity: 0.5; transition: opacity 0.15s; }
.recent-clear-all:hover { opacity: 1; color: var(--destructive); }
.sidebar-recent-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-recent-item { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; position: relative; color: var(--muted-foreground); font-size: 11.5px; transition: background-color 0.15s; }
.sidebar-recent-item:hover { background: color-mix(in srgb, var(--background) 40%, transparent); color: var(--foreground); }
.sidebar-recent-item-title { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.recent-delete { display: none; width: 16px; height: 16px; border-radius: 4px; font-size: 10px; color: var(--muted-foreground); align-items: center; justify-content: center; }
.sidebar-recent-item:hover .recent-delete { display: flex; }
.recent-delete:hover { color: var(--destructive); background: color-mix(in srgb, var(--destructive) 15%, transparent); }
.sidebar-recent-empty { font-size: 10px; color: var(--muted-foreground); padding: 0 12px; }
.nav-badge { margin-left: auto; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 8px; }

/* Sidebar footer */
.sidebar-footer { padding: 8px 14px; border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent); display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-foreground); min-height: 38px; }
.collapsed .sidebar-footer { justify-content: center; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); flex-shrink: 0; }
.status-dot.online { background: #22c55e; }

/* ═══ Chat Panel ═══ */
.chat-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-panel.welcome-active { justify-content: center; }
.chat-panel.welcome-active .chat-messages { flex: 0 0 auto; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px 20px 12px; display: flex; flex-direction: column; gap: 16px; max-width: 800px; width: 100%; margin: 0 auto; }

/* Welcome */
.welcome-block { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; margin: 0 auto; }
.welcome-title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 500; letter-spacing: -0.015em; color: var(--foreground); line-height: 1.15; }

/* Messages */
.msg { display: flex; gap: 12px; max-width: 800px; width: 100%; margin: 0 auto; animation: msgIn 0.25s ease-out; }
.msg.user { flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; background: var(--secondary); }
.msg.user .msg-avatar { background: color-mix(in srgb, var(--primary) 15%, transparent); }
.msg-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.msg.user .msg-body { align-items: flex-end; }
.msg-content { padding: 10px 16px; border-radius: 14px; font-size: 14px; line-height: 1.65; word-wrap: break-word; background: var(--card); border: 1px solid var(--border); }
.msg.user .msg-content { background: var(--secondary); }
.msg-content p { margin-bottom: 6px; } .msg-content p:last-child { margin-bottom: 0; }
.msg-content pre { background: color-mix(in srgb, var(--muted) 40%, transparent); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5; }
.msg-content code { font-family: var(--font-mono); font-size: 0.88em; background: color-mix(in srgb, var(--muted) 40%, transparent); padding: 1px 4px; border-radius: 3px; }
.msg-content pre code { background: none; padding: 0; }
.msg-content h1, .msg-content h2, .msg-content h3 { font-family: var(--font-serif); margin: 12px 0 6px; }
.msg-content h1 { font-size: 1.4rem; }
.msg-content h2 { font-size: 1.15rem; }
.msg-content h3 { font-size: 1rem; }
.msg-content ul, .msg-content ol { margin: 4px 0; padding-left: 18px; }
.msg-content blockquote { border-left: 2px solid var(--primary); padding-left: 12px; color: var(--muted-foreground); margin: 6px 0; }
.msg-time { font-size: 0.65rem; color: var(--muted-foreground); margin-top: 2px; }
.streaming-cursor::after { content: ''; display: inline-block; width: 7px; height: 14px; background: var(--primary); margin-left: 2px; vertical-align: text-bottom; animation: blink 0.8s infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.msg-tool { padding: 6px 14px; font-size: 0.7rem; color: var(--muted-foreground); background: var(--secondary); border-radius: 6px; margin: 2px auto; max-width: 800px; width: 100%; }
.msg-tool.error { color: var(--destructive); }

/* Speak */
.speak-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 500; color: var(--muted-foreground); cursor: pointer; margin-top: 4px; transition: background-color 0.15s; }
.speak-btn:hover { background: color-mix(in srgb, var(--muted) 55%, transparent); color: var(--foreground); }

/* ═══ Chat Input ═══ */
.chat-input-area { padding: 0 20px 16px; flex-shrink: 0; max-width: 800px; width: 100%; margin: 0 auto; }
.attach-chips-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 2px 6px; }
.attach-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); border-radius: 6px; font-size: 11px; font-weight: 500; }
.remove-chip { cursor: pointer; opacity: 0.5; }
.remove-chip:hover { opacity: 1; }
.chat-input-row { display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 6px 8px; box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 4px 16px rgba(28, 25, 23, 0.06); transition: border-color 0.15s, box-shadow 0.15s; }
.chat-panel.welcome-active .chat-input-row { border-color: color-mix(in srgb, var(--foreground) 20%, transparent); box-shadow: 0 2px 4px rgba(28, 25, 23, 0.05), 0 8px 28px rgba(28, 25, 23, 0.1); }
.chat-input-row:hover { border-color: color-mix(in srgb, var(--foreground) 25%, transparent); }
.chat-input-row:focus-within { border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 4px 16px rgba(28, 25, 23, 0.06), 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.chat-input-row textarea { flex: 1; border: none; background: transparent; padding: 8px 6px; resize: none; min-height: 24px; max-height: 120px; font-size: 15px; line-height: 1.5; outline: none; color: var(--foreground); }
.chat-input-row textarea::placeholder { color: color-mix(in srgb, var(--muted-foreground) 70%, transparent); }
.input-icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: color-mix(in srgb, var(--muted-foreground) 55%, transparent); font-size: 0.9rem; transition: background-color 0.15s, color 0.15s, transform 0.15s; flex-shrink: 0; }
.input-icon-btn:hover { background: color-mix(in srgb, var(--background) 50%, transparent); color: var(--foreground); }
.input-icon-btn:active { transform: scale(0.9); }
.input-icon-btn.recording { color: var(--destructive); animation: micPulse 1.2s infinite; }
@keyframes micPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--destructive) 50%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--destructive) 0%, transparent); } }
.send-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-foreground); border-radius: 8px; font-size: 0.9rem; transition: background-color 0.15s, transform 0.15s, opacity 0.15s; flex-shrink: 0; }
.send-btn:hover { background: color-mix(in srgb, var(--primary) 85%, black); }
.send-btn:active { transform: scale(0.92); }
.send-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.send-btn.stop { background: var(--destructive); }

/* ═══ KB Panel ═══ */
.kb-layout { display: flex; flex: 1; min-height: 0; }
.kb-sidebar { width: 320px; border-right: 1px solid color-mix(in srgb, var(--border) 50%, transparent); background: var(--card); display: flex; flex-direction: column; flex-shrink: 0; }
.kb-settings-sidebar { width: 230px; border-left: 1px solid color-mix(in srgb, var(--border) 50%, transparent); background: var(--card); display: flex; flex-direction: column; overflow-y: auto; }

.kb-stats { display: flex; gap: 4px; padding: 14px 14px 10px; }
.kb-stat { flex: 1; text-align: center; }
.kb-stat-value { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 650; color: var(--foreground); }
.kb-stat-label { font-size: 0.62rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; }

.kb-setting-group { padding: 8px 14px; border-bottom: 1px solid color-mix(in srgb, var(--border) 35%, transparent); }
.kb-setting-group-title { font-size: 10px; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.kb-setting-group select, .kb-setting-group input { width: 100%; padding: 5px 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); }
.kb-setting-group select:focus, .kb-setting-group input:focus { border-color: color-mix(in srgb, var(--primary) 40%, transparent); outline: none; }
.kb-setting-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; }
.kb-setting-row label { flex: 0 0 55px; color: var(--muted-foreground); font-weight: 500; font-size: 11px; }

.kb-section-label { padding: 12px 16px 6px; font-size: 10px; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; }
.kb-doc-search { padding: 0 14px 6px; }
.kb-doc-search input { width: 100%; padding: 5px 8px; font-size: 11px; border-radius: 6px; }
.kb-doc-list { flex: 1; overflow-y: auto; padding: 2px 8px 6px; }
.kb-doc-item { padding: 7px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background-color 0.15s; font-size: 12px; }
.kb-doc-item:hover { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.kb-doc-icon { font-size: 0.9rem; flex-shrink: 0; }
.kb-doc-info { flex: 1; min-width: 0; }
.kb-doc-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-doc-meta { font-size: 0.65rem; color: var(--muted-foreground); }
.kb-doc-remove { opacity: 0; color: var(--muted-foreground); cursor: pointer; font-size: 0.85rem; flex-shrink: 0; transition: opacity 0.15s; }
.kb-doc-item:hover .kb-doc-remove { opacity: 1; }
.kb-doc-remove:hover { color: var(--destructive); }
.kb-empty-state { text-align: center; padding: 16px; color: var(--muted-foreground); font-size: 11px; }

.kb-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kb-search-area { padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--border) 35%, transparent); background: var(--card); display: flex; gap: 6px; }
.kb-search-area input { flex: 1; }
.kb-view-tabs { display: flex; border-bottom: 1px solid color-mix(in srgb, var(--border) 35%, transparent); padding: 0 14px; background: var(--card); }
.kb-view-tab { padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.kb-view-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.kb-view-tab:hover { color: var(--foreground); }
.kb-results { flex: 1; overflow-y: auto; padding: 12px 14px; }
.kb-preview-body { flex: 1; overflow-y: auto; padding: 14px; }
.kb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--muted-foreground); gap: 8px; font-size: 13px; }

.kb-result-item { padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; cursor: pointer; transition: border-color 0.15s; }
.kb-result-item:hover { border-color: var(--primary); }
.kb-result-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kb-result-type { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.kb-result-type.text { background: var(--secondary); color: var(--muted-foreground); }
.kb-result-type.image { background: color-mix(in srgb, #3b82f6 12%, transparent); color: #3b82f6; }
.kb-result-type.video { background: color-mix(in srgb, var(--destructive) 12%, transparent); color: var(--destructive); }
.kb-result-type.audio { background: color-mix(in srgb, #f59e0b 12%, transparent); color: #f59e0b; }
.kb-result-type.table { background: color-mix(in srgb, #22c55e 12%, transparent); color: #22c55e; }
.kb-result-score { font-size: 0.65rem; color: var(--muted-foreground); font-weight: 500; }
.kb-result-text { font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }

/* Ingest */
.ingest-section { border-top: 1px solid color-mix(in srgb, var(--border) 35%, transparent); background: var(--card); flex-shrink: 0; }
.ingest-tabs { display: flex; border-bottom: 1px solid color-mix(in srgb, var(--border) 35%, transparent); padding: 0 14px; }
.ingest-tab { padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ingest-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.ingest-panel { padding: 10px 14px; }
.drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer; background: var(--background); font-size: 12px; color: var(--muted-foreground); transition: border-color 0.15s; }
.drop-zone:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, transparent); }
.file-queue { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; font-size: 11px; }
.file-queue-item { display: flex; justify-content: space-between; padding: 5px 8px; background: var(--background); border-radius: 4px; }

/* ═══ Buttons ═══ */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius); font-weight: 600; font-size: 12px; transition: background-color 0.15s, transform 0.15s; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, black); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; font-size: 12px; color: var(--foreground); transition: background-color 0.15s; }
.btn-secondary:hover { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.btn-danger { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 7px 14px; background: none; border: 1px solid color-mix(in srgb, var(--destructive) 40%, transparent); border-radius: var(--radius); font-weight: 500; font-size: 12px; color: var(--destructive); cursor: pointer; transition: background-color 0.15s; }
.btn-danger:hover { background: color-mix(in srgb, var(--destructive) 10%, transparent); }

/* ═══ Settings ═══ */
.set-loading { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted-foreground); font-size: 13px; }
.set-page { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.set-tabs { display: flex; gap: 0; padding: 0 18px; border-bottom: 1px solid var(--border); background: var(--card); flex-shrink: 0; overflow-x: auto; }
.set-tab { display: flex; align-items: center; gap: 6px; padding: 11px 16px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.set-tab:hover { color: var(--foreground); }
.set-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.set-tab span { font-size: 14px; }
.set-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.set-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.set-card-hd { min-height: 54px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.set-card-hd h2 { font-size: 13px; }
.set-card-hd small { color: var(--muted-foreground); font-size: 10px; }
.set-card-bd { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.set-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.set-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.set-subtitle { font-size: 11px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 4px; }
.set-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.set-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.set-field > label { font-size: 10px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; display: flex; justify-content: space-between; }
.set-field input, .set-field select, .set-field textarea { width: 100%; padding: 8px 10px; font-size: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 7px; color: var(--foreground); }
.set-field input:focus, .set-field select:focus, .set-field textarea:focus { border-color: color-mix(in srgb, var(--primary) 40%, transparent); outline: none; }
.set-field small { color: var(--muted-foreground); font-size: 9px; line-height: 1.4; }
.set-field input[type="range"] { height: 32px; padding: 0; border: 0; accent-color: var(--primary); }
.set-row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.set-chip { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--muted-foreground); transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.set-chip:hover { border-color: var(--primary); color: var(--foreground); }
.set-chip.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--card)); color: var(--primary); font-weight: 600; }
.secret-wrap { position: relative; }
.secret-wrap input { padding-right: 38px; font-family: var(--font-mono); }
.secret-wrap button { position: absolute; top: 50%; right: 5px; width: 28px; height: 26px; border-radius: 6px; transform: translateY(-50%); color: var(--muted-foreground); font-size: 11px; }
.secret-wrap button:hover { background: var(--secondary); color: var(--foreground); }

.set-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; }
.set-check input { position: absolute; opacity: 0; pointer-events: none; }
.set-check i { width: 34px; height: 20px; padding: 2px; border-radius: 999px; background: #d6d3d1; transition: background-color 0.15s; flex-shrink: 0; }
.set-check i::after { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.18); transition: transform 0.15s; }
.set-check input:checked + i { background: var(--primary); }
.set-check input:checked + i::after { transform: translateX(14px); }
.set-check span { font-size: 11px; color: var(--muted-foreground); }

.set-empty { padding: 24px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted-foreground); text-align: center; font-size: 11px; }
.set-badge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.set-badge.on { background: color-mix(in srgb, #22c55e 12%, transparent); color: #15803d; }
.set-badge.off { background: color-mix(in srgb, var(--destructive) 10%, transparent); color: var(--destructive); }

.set-mcp-list { display: flex; flex-direction: column; gap: 6px; }
.set-mcp-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; text-align: left; transition: background-color 0.15s, border-color 0.15s; }
.set-mcp-row:hover { border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); background: var(--secondary); }
.set-mcp-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-size: 14px; flex-shrink: 0; }
.set-mcp-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.set-mcp-info strong { font-size: 11px; }
.set-mcp-info small { overflow: hidden; color: var(--muted-foreground); font-family: var(--font-mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.set-mcp-arrow { color: var(--muted-foreground); font-size: 18px; }
.set-btn-inline { width: auto; }

.set-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(28,25,23,0.3); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }
.set-modal { background: var(--card); border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,0.14); width: 460px; max-width: 90vw; overflow: hidden; }
.set-modal-hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.set-modal-bd { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.set-modal-bd textarea { resize: vertical; min-height: 70px; font-size: 11px; }
.set-modal-ft { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); align-items: center; }

.set-toast { position: fixed; top: 16px; right: 16px; z-index: 200; padding: 10px 18px; border-radius: 9px; font-size: 12px; font-weight: 500; box-shadow: 0 6px 24px rgba(0,0,0,0.1); animation: toastIn 0.25s ease-out; }
.set-toast.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.set-toast.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.btn-sm { padding: 4px 10px; font-size: 11px; }

@media (max-width: 640px) {
  .set-grid, .set-grid-2, .set-grid-3 { grid-template-columns: 1fr; }
  .set-tabs { padding: 0 8px; }
  .set-tab { padding: 10px 12px; font-size: 11px; }
  .set-body { padding: 14px 8px; }
}

/* ═══ Sessions ═══ */
.sessions-list { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.session-item { display: flex; align-items: center; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); gap: 10px; font-size: 12px; }
.session-item.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, transparent); }
.session-id { font-family: var(--font-mono); font-size: 0.75rem; }
.session-date { font-size: 0.68rem; color: var(--muted-foreground); margin-left: auto; }

/* ═══ Voice Recording ═══ */
.recording-bar { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: color-mix(in srgb, var(--destructive) 10%, transparent); border-top: 1px solid color-mix(in srgb, var(--destructive) 20%, transparent); font-size: 11px; color: var(--destructive); }
.recording-bar.processing { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.recording-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--destructive); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(1.4); } }
.loading-dots span { animation: dotBounce 1.4s infinite ease-in-out; font-weight: 700; font-size: 14px; }
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }
.input-icon-btn.recording { background: color-mix(in srgb, var(--destructive) 15%, transparent); color: var(--destructive); animation: pulse 1.2s ease-in-out infinite; }
.input-icon-btn.processing { opacity: 0.6; cursor: not-allowed; }

@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }