GCStream commited on
Commit
f3a7355
·
verified ·
1 Parent(s): e451716

Add tools/dataview/static/style.css

Browse files
Files changed (1) hide show
  1. tools/dataview/static/style.css +871 -0
tools/dataview/static/style.css ADDED
@@ -0,0 +1,871 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ═══════════════════════════════════════════════════════════════════════
2
+ DataView — "Light Table"
3
+ A dataset explorer for AI image-prompt pairs.
4
+ Warm parchment palette, editorial typography, image-forward cards.
5
+ ═══════════════════════════════════════════════════════════════════════ */
6
+
7
+ :root {
8
+ --bg: #F7F4EE;
9
+ --surface: #FFFFFF;
10
+ --surface-raised: #FDFCFA;
11
+ --border: #E6E0D6;
12
+ --border-light: #EFE9DF;
13
+ --text: #2D2A26;
14
+ --text-secondary: #8C8478;
15
+ --text-tertiary: #B5AEA4;
16
+ --accent: #8B5C3C;
17
+ --accent-hover: #A06A45;
18
+ --accent-soft: #F0E6DA;
19
+ --accent-softer: #F8F2EB;
20
+ --danger: #B54A4A;
21
+ --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
22
+ --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
23
+ --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
24
+ --radius: 8px;
25
+ --radius-sm: 5px;
26
+ --drawer-w: 480px;
27
+ --shadow-sm: 0 1px 3px rgba(45,42,38,0.06);
28
+ --shadow-md: 0 4px 16px rgba(45,42,38,0.08);
29
+ --shadow-lg: 0 8px 32px rgba(45,42,38,0.12);
30
+ --transition: 180ms ease;
31
+ }
32
+
33
+ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
34
+
35
+ body {
36
+ font-family: var(--sans);
37
+ background: var(--bg);
38
+ color: var(--text);
39
+ min-height: 100vh;
40
+ -webkit-font-smoothing: antialiased;
41
+ -moz-osx-font-smoothing: grayscale;
42
+ }
43
+
44
+ ::-webkit-scrollbar { width: 5px; height: 5px; }
45
+ ::-webkit-scrollbar-track { background: transparent; }
46
+ ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
47
+ ::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
48
+
49
+ .hidden { display: none !important; }
50
+ .spacer { flex: 1; }
51
+
52
+ /* ── Header ───────────────────────────────────────────────────────── */
53
+ .header {
54
+ display: flex;
55
+ align-items: center;
56
+ gap: 10px;
57
+ padding: 10px 20px;
58
+ background: var(--surface);
59
+ border-bottom: 1px solid var(--border);
60
+ position: sticky;
61
+ top: 0;
62
+ z-index: 100;
63
+ }
64
+
65
+ .header-btn {
66
+ display: flex;
67
+ align-items: center;
68
+ gap: 5px;
69
+ padding: 6px 12px;
70
+ background: var(--bg);
71
+ color: var(--text-secondary);
72
+ border: 1px solid var(--border);
73
+ border-radius: var(--radius-sm);
74
+ cursor: pointer;
75
+ font-size: 12.5px;
76
+ font-family: var(--sans);
77
+ font-weight: 500;
78
+ transition: all var(--transition);
79
+ white-space: nowrap;
80
+ }
81
+ .header-btn:hover { color: var(--text); border-color: var(--text-tertiary); background: var(--surface); }
82
+
83
+ .path-wrap {
84
+ flex: 1;
85
+ display: flex;
86
+ max-width: 640px;
87
+ position: relative;
88
+ }
89
+
90
+ .path-wrap input {
91
+ width: 100%;
92
+ padding: 6px 60px 6px 10px;
93
+ background: var(--bg);
94
+ border: 1px solid var(--border);
95
+ border-radius: var(--radius-sm);
96
+ color: var(--text);
97
+ font-family: var(--mono);
98
+ font-size: 12px;
99
+ outline: none;
100
+ transition: border-color var(--transition);
101
+ }
102
+ .path-wrap input:focus { border-color: var(--accent); }
103
+ .path-wrap input::placeholder { color: var(--text-tertiary); }
104
+
105
+ .path-open-btn {
106
+ position: absolute;
107
+ right: 1px; top: 1px; bottom: 1px;
108
+ padding: 0 14px;
109
+ background: var(--accent);
110
+ color: #fff;
111
+ border: none;
112
+ border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
113
+ cursor: pointer;
114
+ font-size: 12px;
115
+ font-weight: 600;
116
+ font-family: var(--sans);
117
+ transition: background var(--transition);
118
+ }
119
+ .path-open-btn:hover { background: var(--accent-hover); }
120
+
121
+ .wordmark {
122
+ font-family: var(--mono);
123
+ font-size: 13px;
124
+ font-weight: 500;
125
+ color: var(--text-tertiary);
126
+ letter-spacing: -0.3px;
127
+ flex-shrink: 0;
128
+ }
129
+ .wordmark-accent { color: var(--accent); }
130
+
131
+ /* ── Toolbar ──────────────────────────────────────────────────────── */
132
+ .toolbar {
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: space-between;
136
+ gap: 12px;
137
+ padding: 8px 20px;
138
+ background: var(--surface);
139
+ border-bottom: 1px solid var(--border);
140
+ flex-wrap: wrap;
141
+ }
142
+
143
+ .toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 6px; }
144
+
145
+ .pill {
146
+ display: inline-flex;
147
+ align-items: center;
148
+ padding: 2px 10px;
149
+ background: var(--bg);
150
+ border: 1px solid var(--border);
151
+ border-radius: 100px;
152
+ font-size: 11px;
153
+ font-family: var(--mono);
154
+ color: var(--text-secondary);
155
+ white-space: nowrap;
156
+ line-height: 1.6;
157
+ }
158
+ .pill-accent { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-softer); font-weight: 500; }
159
+
160
+ .search-box {
161
+ display: flex;
162
+ align-items: center;
163
+ gap: 6px;
164
+ background: var(--bg);
165
+ border: 1px solid var(--border);
166
+ border-radius: var(--radius-sm);
167
+ padding: 0 8px;
168
+ transition: border-color var(--transition);
169
+ }
170
+ .search-box:focus-within { border-color: var(--accent); }
171
+
172
+ .search-icon { color: var(--text-tertiary); flex-shrink: 0; }
173
+
174
+ #search-input {
175
+ background: none;
176
+ border: none;
177
+ color: var(--text);
178
+ font-family: var(--mono);
179
+ font-size: 12px;
180
+ padding: 5px 0;
181
+ outline: none;
182
+ width: 160px;
183
+ }
184
+ #search-input::placeholder { color: var(--text-tertiary); }
185
+
186
+ .search-count {
187
+ font-size: 10px;
188
+ font-family: var(--mono);
189
+ color: var(--text-tertiary);
190
+ }
191
+
192
+ .view-switch {
193
+ display: flex;
194
+ gap: 2px;
195
+ background: var(--bg);
196
+ border: 1px solid var(--border);
197
+ border-radius: var(--radius-sm);
198
+ padding: 2px;
199
+ }
200
+
201
+ .vs-btn {
202
+ display: flex;
203
+ align-items: center;
204
+ justify-content: center;
205
+ gap: 4px;
206
+ padding: 5px 8px;
207
+ background: none;
208
+ border: none;
209
+ border-radius: 3px;
210
+ color: var(--text-tertiary);
211
+ cursor: pointer;
212
+ transition: all var(--transition);
213
+ position: relative;
214
+ }
215
+ .vs-btn:hover { color: var(--text-secondary); }
216
+ .vs-btn.active { color: var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); }
217
+
218
+ .vs-badge {
219
+ background: var(--accent);
220
+ color: #fff;
221
+ font-size: 9px;
222
+ font-weight: 600;
223
+ font-family: var(--mono);
224
+ padding: 0 4px;
225
+ border-radius: 6px;
226
+ min-width: 14px;
227
+ text-align: center;
228
+ line-height: 16px;
229
+ }
230
+
231
+ /* ── Main ─────────────────────────────────────────────────────────── */
232
+ .main { display: flex; flex-direction: column; height: calc(100vh - 93px); }
233
+ .view { flex: 1; overflow: auto; }
234
+
235
+ .gallery-toolbar {
236
+ display: flex;
237
+ align-items: center;
238
+ gap: 10px;
239
+ padding: 6px 20px;
240
+ border-bottom: 1px solid var(--border-light);
241
+ background: var(--surface-raised);
242
+ position: sticky;
243
+ top: 0;
244
+ z-index: 10;
245
+ }
246
+
247
+ .gt-label {
248
+ display: flex;
249
+ align-items: center;
250
+ gap: 5px;
251
+ font-size: 11px;
252
+ color: var(--text-secondary);
253
+ font-weight: 500;
254
+ }
255
+
256
+ .gt-select {
257
+ background: var(--surface);
258
+ color: var(--text);
259
+ border: 1px solid var(--border);
260
+ padding: 3px 6px;
261
+ border-radius: var(--radius-sm);
262
+ font-size: 12px;
263
+ font-family: var(--mono);
264
+ cursor: pointer;
265
+ }
266
+
267
+ .gt-hint {
268
+ font-size: 10.5px;
269
+ color: var(--text-tertiary);
270
+ font-style: italic;
271
+ }
272
+
273
+ .page-label {
274
+ font-size: 11px;
275
+ font-family: var(--mono);
276
+ color: var(--text-secondary);
277
+ }
278
+
279
+ .page-btn {
280
+ display: inline-flex;
281
+ align-items: center;
282
+ justify-content: center;
283
+ width: 26px;
284
+ height: 26px;
285
+ background: var(--surface);
286
+ color: var(--text-secondary);
287
+ border: 1px solid var(--border);
288
+ border-radius: var(--radius-sm);
289
+ cursor: pointer;
290
+ transition: all var(--transition);
291
+ }
292
+ .page-btn:hover:not(:disabled) { color: var(--text); border-color: var(--text-tertiary); }
293
+ .page-btn:disabled { opacity: 0.3; cursor: default; }
294
+
295
+ /* ── Gallery ──────────────────────────────────────────────────────── */
296
+ .gallery-grid {
297
+ display: grid;
298
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
299
+ gap: 12px;
300
+ padding: 16px 20px;
301
+ }
302
+
303
+ .card {
304
+ position: relative;
305
+ background: var(--surface);
306
+ border: 1px solid var(--border);
307
+ border-radius: var(--radius);
308
+ overflow: hidden;
309
+ cursor: pointer;
310
+ transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
311
+ }
312
+ .card:hover { border-color: var(--text-tertiary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
313
+ .card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
314
+ .card.card-open { border-color: var(--accent); background: var(--accent-softer); }
315
+
316
+ .card-img {
317
+ width: 100%;
318
+ aspect-ratio: 1;
319
+ object-fit: cover;
320
+ display: block;
321
+ background: var(--bg);
322
+ }
323
+
324
+ .card-row {
325
+ position: absolute;
326
+ top: 6px;
327
+ left: 6px;
328
+ background: rgba(255,255,255,0.92);
329
+ backdrop-filter: blur(6px);
330
+ color: var(--text-secondary);
331
+ padding: 1px 6px;
332
+ border-radius: 3px;
333
+ font-size: 10px;
334
+ font-family: var(--mono);
335
+ font-weight: 500;
336
+ pointer-events: none;
337
+ }
338
+
339
+ .card-dims {
340
+ position: absolute;
341
+ bottom: 6px;
342
+ right: 6px;
343
+ background: rgba(255,255,255,0.92);
344
+ backdrop-filter: blur(6px);
345
+ color: var(--text-tertiary);
346
+ padding: 1px 6px;
347
+ border-radius: 3px;
348
+ font-size: 9px;
349
+ font-family: var(--mono);
350
+ pointer-events: none;
351
+ }
352
+
353
+ .card-check {
354
+ position: absolute;
355
+ top: 6px;
356
+ right: 6px;
357
+ width: 20px;
358
+ height: 20px;
359
+ border-radius: 50%;
360
+ background: var(--accent);
361
+ color: #fff;
362
+ display: none;
363
+ align-items: center;
364
+ justify-content: center;
365
+ font-size: 11px;
366
+ font-weight: 700;
367
+ pointer-events: none;
368
+ box-shadow: var(--shadow-sm);
369
+ }
370
+ .card.selected .card-check { display: flex; }
371
+
372
+ .card-caption {
373
+ padding: 8px 10px;
374
+ font-size: 12px;
375
+ font-family: var(--serif);
376
+ color: var(--text-secondary);
377
+ line-height: 1.45;
378
+ max-height: 60px;
379
+ overflow: hidden;
380
+ border-top: 1px solid var(--border-light);
381
+ }
382
+
383
+ /* ── Table ────────────────────────────────────────────────────────── */
384
+ .table-wrap {
385
+ overflow: auto;
386
+ flex: 1;
387
+ }
388
+
389
+ .table-wrap table {
390
+ width: 100%;
391
+ border-collapse: collapse;
392
+ font-size: 12px;
393
+ font-family: var(--mono);
394
+ }
395
+
396
+ .table-wrap th {
397
+ padding: 7px 12px;
398
+ background: var(--surface);
399
+ color: var(--text-secondary);
400
+ font-weight: 500;
401
+ text-align: left;
402
+ border-bottom: 1px solid var(--border);
403
+ position: sticky;
404
+ top: 0;
405
+ z-index: 5;
406
+ white-space: nowrap;
407
+ text-transform: uppercase;
408
+ font-size: 10px;
409
+ letter-spacing: 0.4px;
410
+ }
411
+
412
+ .table-wrap td {
413
+ padding: 5px 12px;
414
+ border-bottom: 1px solid var(--border-light);
415
+ max-width: 360px;
416
+ overflow: hidden;
417
+ text-overflow: ellipsis;
418
+ white-space: nowrap;
419
+ vertical-align: middle;
420
+ }
421
+
422
+ .table-wrap tbody tr:hover td { background: var(--accent-softer); }
423
+ .table-wrap .cell-null { color: var(--text-tertiary); }
424
+ .table-wrap .row-num { color: var(--text-tertiary); font-size: 10px; user-select: none; }
425
+
426
+ .cell-thumb {
427
+ width: 36px;
428
+ height: 36px;
429
+ object-fit: cover;
430
+ border-radius: 3px;
431
+ display: block;
432
+ cursor: pointer;
433
+ border: 1px solid var(--border);
434
+ transition: transform var(--transition);
435
+ }
436
+ .cell-thumb:hover { transform: scale(1.12); }
437
+
438
+ /* ── Compare ──────────────────────────────────────────────────────── */
439
+ .empty-state {
440
+ display: flex;
441
+ flex-direction: column;
442
+ align-items: center;
443
+ justify-content: center;
444
+ height: 55vh;
445
+ color: var(--text-tertiary);
446
+ gap: 10px;
447
+ text-align: center;
448
+ }
449
+ .empty-state p { font-size: 13px; color: var(--text-secondary); }
450
+ .empty-hint { font-size: 11.5px !important; color: var(--text-tertiary) !important; }
451
+
452
+ .compare-grid {
453
+ display: grid;
454
+ grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
455
+ gap: 16px;
456
+ padding: 20px;
457
+ align-items: start;
458
+ }
459
+
460
+ .compare-card {
461
+ background: var(--surface);
462
+ border: 1px solid var(--border);
463
+ border-radius: var(--radius);
464
+ overflow: hidden;
465
+ }
466
+
467
+ .cc-head {
468
+ display: flex;
469
+ align-items: center;
470
+ justify-content: space-between;
471
+ padding: 8px 12px;
472
+ border-bottom: 1px solid var(--border-light);
473
+ }
474
+
475
+ .cc-label {
476
+ font-size: 11px;
477
+ font-weight: 600;
478
+ text-transform: uppercase;
479
+ letter-spacing: 0.4px;
480
+ color: var(--accent);
481
+ font-family: var(--mono);
482
+ }
483
+
484
+ .cc-remove {
485
+ background: none;
486
+ border: none;
487
+ color: var(--text-tertiary);
488
+ cursor: pointer;
489
+ font-size: 16px;
490
+ padding: 2px 6px;
491
+ border-radius: 3px;
492
+ line-height: 1;
493
+ }
494
+ .cc-remove:hover { color: var(--danger); background: rgba(181,74,74,0.06); }
495
+
496
+ .compare-card img {
497
+ width: 100%;
498
+ max-height: 45vh;
499
+ object-fit: contain;
500
+ display: block;
501
+ background: var(--bg);
502
+ cursor: zoom-in;
503
+ }
504
+
505
+ .cc-prompt {
506
+ padding: 12px 14px;
507
+ font-family: var(--serif);
508
+ font-size: 13.5px;
509
+ line-height: 1.55;
510
+ color: var(--text);
511
+ border-top: 1px solid var(--border-light);
512
+ max-height: 140px;
513
+ overflow-y: auto;
514
+ }
515
+
516
+ .cc-meta {
517
+ padding: 8px 14px 12px;
518
+ border-top: 1px solid var(--border-light);
519
+ }
520
+
521
+ .cc-meta-row {
522
+ display: flex;
523
+ gap: 8px;
524
+ font-size: 11px;
525
+ line-height: 1.6;
526
+ }
527
+ .cc-meta-key { color: var(--text-tertiary); font-family: var(--mono); font-size: 10px; min-width: 80px; flex-shrink: 0; }
528
+ .cc-meta-val { color: var(--text-secondary); font-family: var(--mono); font-size: 10px; word-break: break-all; }
529
+
530
+ /* ── Drawer ───────────────────────────────────────────────────────── */
531
+ .drawer {
532
+ position: fixed;
533
+ top: 0;
534
+ right: 0;
535
+ bottom: 0;
536
+ width: var(--drawer-w);
537
+ background: var(--surface);
538
+ border-left: 1px solid var(--border);
539
+ z-index: 200;
540
+ display: flex;
541
+ flex-direction: column;
542
+ transform: translateX(100%);
543
+ transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
544
+ box-shadow: -4px 0 24px rgba(45,42,38,0.06);
545
+ }
546
+ .drawer.open { transform: translateX(0); }
547
+
548
+ .drawer-head {
549
+ display: flex;
550
+ align-items: center;
551
+ justify-content: space-between;
552
+ padding: 10px 16px;
553
+ border-bottom: 1px solid var(--border);
554
+ flex-shrink: 0;
555
+ }
556
+
557
+ .drawer-title {
558
+ font-size: 12px;
559
+ font-family: var(--mono);
560
+ font-weight: 500;
561
+ color: var(--text-secondary);
562
+ }
563
+
564
+ .drawer-head-actions {
565
+ display: flex;
566
+ align-items: center;
567
+ gap: 4px;
568
+ }
569
+
570
+ .drawer-nav-btn {
571
+ display: flex;
572
+ align-items: center;
573
+ justify-content: center;
574
+ width: 26px;
575
+ height: 26px;
576
+ background: none;
577
+ border: 1px solid transparent;
578
+ border-radius: var(--radius-sm);
579
+ color: var(--text-tertiary);
580
+ cursor: pointer;
581
+ transition: all var(--transition);
582
+ }
583
+ .drawer-nav-btn:hover { color: var(--text); background: var(--bg); border-color: var(--border); }
584
+
585
+ .drawer-close {
586
+ display: flex;
587
+ align-items: center;
588
+ justify-content: center;
589
+ width: 26px;
590
+ height: 26px;
591
+ background: none;
592
+ border: none;
593
+ border-radius: var(--radius-sm);
594
+ color: var(--text-tertiary);
595
+ cursor: pointer;
596
+ font-size: 18px;
597
+ transition: all var(--transition);
598
+ margin-left: 2px;
599
+ }
600
+ .drawer-close:hover { color: var(--text); background: var(--bg); }
601
+
602
+ .drawer-body {
603
+ display: flex;
604
+ flex-direction: column;
605
+ height: calc(100vh - 45px);
606
+ overflow: hidden;
607
+ }
608
+
609
+ .drawer-image-wrap {
610
+ flex-shrink: 0;
611
+ background: var(--bg);
612
+ display: flex;
613
+ align-items: center;
614
+ justify-content: center;
615
+ max-height: 50vh;
616
+ overflow: hidden;
617
+ border-bottom: 1px solid var(--border-light);
618
+ }
619
+
620
+ .drawer-image {
621
+ max-width: 100%;
622
+ max-height: 50vh;
623
+ object-fit: contain;
624
+ display: block;
625
+ cursor: zoom-in;
626
+ }
627
+
628
+ .drawer-content {
629
+ flex: 1;
630
+ overflow-y: auto;
631
+ padding: 16px;
632
+ display: flex;
633
+ flex-direction: column;
634
+ gap: 20px;
635
+ }
636
+
637
+ .drawer-section-label {
638
+ display: block;
639
+ font-size: 10px;
640
+ font-family: var(--mono);
641
+ font-weight: 500;
642
+ text-transform: uppercase;
643
+ letter-spacing: 0.5px;
644
+ color: var(--text-tertiary);
645
+ margin-bottom: 6px;
646
+ }
647
+
648
+ .drawer-prompt {
649
+ font-family: var(--serif);
650
+ font-size: 14.5px;
651
+ line-height: 1.6;
652
+ color: var(--text);
653
+ }
654
+
655
+ .drawer-meta {
656
+ display: flex;
657
+ flex-direction: column;
658
+ gap: 1px;
659
+ }
660
+
661
+ .drawer-meta-row {
662
+ display: flex;
663
+ gap: 10px;
664
+ font-size: 12px;
665
+ line-height: 1.7;
666
+ padding: 2px 0;
667
+ border-bottom: 1px solid var(--border-light);
668
+ }
669
+ .drawer-meta-row:last-child { border-bottom: none; }
670
+ .drawer-meta-key { color: var(--text-tertiary); font-family: var(--mono); font-size: 11px; min-width: 90px; flex-shrink: 0; }
671
+ .drawer-meta-val { color: var(--text-secondary); font-family: var(--mono); font-size: 11px; word-break: break-all; }
672
+
673
+ /* ── Sidebar ──────────────────────────────────────────────────────── */
674
+ .sidebar {
675
+ position: fixed;
676
+ left: 0; top: 0; bottom: 0;
677
+ width: 340px;
678
+ background: var(--surface);
679
+ border-right: 1px solid var(--border);
680
+ z-index: 200;
681
+ display: flex;
682
+ flex-direction: column;
683
+ transform: translateX(-100%);
684
+ transition: transform 0.22s ease;
685
+ }
686
+ .sidebar.open { transform: translateX(0); }
687
+
688
+ .backdrop {
689
+ position: fixed;
690
+ inset: 0;
691
+ background: rgba(45,42,38,0.18);
692
+ z-index: 199;
693
+ display: none;
694
+ backdrop-filter: blur(1px);
695
+ }
696
+ .backdrop.open { display: block; }
697
+
698
+ .sidebar-head {
699
+ display: flex;
700
+ align-items: center;
701
+ justify-content: space-between;
702
+ padding: 10px 14px;
703
+ border-bottom: 1px solid var(--border);
704
+ }
705
+
706
+ .sidebar-label {
707
+ font-size: 11.5px;
708
+ font-weight: 600;
709
+ color: var(--text-secondary);
710
+ }
711
+
712
+ .btn-icon {
713
+ display: flex;
714
+ align-items: center;
715
+ justify-content: center;
716
+ width: 26px;
717
+ height: 26px;
718
+ background: none;
719
+ border: 1px solid transparent;
720
+ border-radius: var(--radius-sm);
721
+ color: var(--text-tertiary);
722
+ cursor: pointer;
723
+ font-size: 18px;
724
+ }
725
+ .btn-icon:hover { color: var(--text); background: var(--bg); border-color: var(--border); }
726
+
727
+ .breadcrumb {
728
+ display: flex;
729
+ align-items: center;
730
+ gap: 2px;
731
+ padding: 6px 14px;
732
+ font-size: 11px;
733
+ font-family: var(--mono);
734
+ color: var(--text-secondary);
735
+ border-bottom: 1px solid var(--border-light);
736
+ overflow-x: auto;
737
+ white-space: nowrap;
738
+ flex-shrink: 0;
739
+ }
740
+
741
+ .breadcrumb-item { cursor: pointer; padding: 2px 4px; border-radius: 3px; }
742
+ .breadcrumb-item:hover { background: var(--bg); color: var(--text); }
743
+ .breadcrumb-sep { color: var(--text-tertiary); margin: 0 1px; }
744
+
745
+ .folder-list { flex: 1; overflow-y: auto; padding: 4px 0; }
746
+
747
+ .folder-entry {
748
+ display: flex;
749
+ align-items: center;
750
+ gap: 8px;
751
+ padding: 5px 14px;
752
+ cursor: pointer;
753
+ transition: background var(--transition);
754
+ }
755
+ .folder-entry:hover { background: var(--bg); }
756
+
757
+ .folder-entry .fe-icon { width: 16px; text-align: center; flex-shrink: 0; font-size: 13px; }
758
+ .folder-entry .fe-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12px; }
759
+ .folder-entry .fe-meta { font-size: 10px; font-family: var(--mono); color: var(--text-tertiary); flex-shrink: 0; }
760
+
761
+ .folder-entry.is-dir .fe-name { color: var(--text); }
762
+ .folder-entry.is-dataset .fe-name { color: var(--accent); font-weight: 500; }
763
+ .folder-entry.is-file .fe-name { color: var(--text-secondary); }
764
+ .folder-entry.is-dataset .fe-icon { color: var(--accent); }
765
+ .folder-entry.is-dir .fe-icon { color: var(--text-secondary); }
766
+ .folder-entry.is-file .fe-icon { color: var(--text-tertiary); }
767
+ .folder-entry.is-parent { color: var(--text-secondary); border-bottom: 1px solid var(--border-light); margin-bottom: 4px; }
768
+ .folder-entry.is-parent .fe-icon { color: var(--text-tertiary); }
769
+
770
+ /* ── Welcome ──────────────────────────────────────────────────────── */
771
+ .welcome {
772
+ display: flex;
773
+ justify-content: center;
774
+ align-items: center;
775
+ min-height: calc(100vh - 52px);
776
+ padding: 40px 20px;
777
+ }
778
+ .welcome-inner { text-align: center; }
779
+ .welcome-icon { color: var(--text-tertiary); margin-bottom: 16px; opacity: 0.35; }
780
+ .welcome-inner h2 { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
781
+ .welcome-inner p { font-size: 14px; color: var(--text-secondary); }
782
+ .welcome-inner code {
783
+ padding: 1px 5px;
784
+ background: var(--bg);
785
+ border: 1px solid var(--border);
786
+ border-radius: 3px;
787
+ font-family: var(--mono);
788
+ font-size: 12px;
789
+ color: var(--text-secondary);
790
+ }
791
+
792
+ /* ── Lightbox ─────────────────────────────────────────────────────── */
793
+ .lightbox {
794
+ display: none;
795
+ position: fixed;
796
+ inset: 0;
797
+ background: rgba(45,42,38,0.92);
798
+ z-index: 300;
799
+ justify-content: center;
800
+ align-items: center;
801
+ cursor: zoom-out;
802
+ backdrop-filter: blur(4px);
803
+ }
804
+ .lightbox.active { display: flex; }
805
+
806
+ .lightbox img {
807
+ max-width: 92vw;
808
+ max-height: 92vh;
809
+ object-fit: contain;
810
+ border-radius: var(--radius);
811
+ box-shadow: 0 12px 48px rgba(0,0,0,0.25);
812
+ }
813
+
814
+ .lb-close {
815
+ position: absolute;
816
+ top: 14px;
817
+ right: 14px;
818
+ width: 34px;
819
+ height: 34px;
820
+ background: rgba(255,255,255,0.1);
821
+ border: 1px solid rgba(255,255,255,0.15);
822
+ border-radius: 50%;
823
+ color: rgba(255,255,255,0.7);
824
+ font-size: 18px;
825
+ cursor: pointer;
826
+ display: flex;
827
+ align-items: center;
828
+ justify-content: center;
829
+ transition: all var(--transition);
830
+ backdrop-filter: blur(8px);
831
+ }
832
+ .lb-close:hover { background: rgba(255,255,255,0.18); color: #fff; }
833
+
834
+ /* ── Loading ──────────────────────────────────────────────────────── */
835
+ .loading {
836
+ position: fixed;
837
+ inset: 0;
838
+ background: rgba(247,244,238,0.6);
839
+ display: flex;
840
+ justify-content: center;
841
+ align-items: center;
842
+ z-index: 400;
843
+ backdrop-filter: blur(2px);
844
+ }
845
+
846
+ .spinner {
847
+ width: 24px;
848
+ height: 24px;
849
+ border: 2px solid var(--border);
850
+ border-top-color: var(--accent);
851
+ border-radius: 50%;
852
+ animation: spin 0.65s linear infinite;
853
+ }
854
+
855
+ @keyframes spin { to { transform: rotate(360deg); } }
856
+
857
+ /* ── Responsive ───────────────────────────────────────────────────── */
858
+ @media (max-width: 768px) {
859
+ .sidebar { width: 100%; }
860
+ .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 12px; }
861
+ .compare-grid { grid-template-columns: 1fr; }
862
+ .drawer { width: 100%; }
863
+ .toolbar { padding: 6px 12px; }
864
+ .gallery-toolbar { padding: 6px 12px; }
865
+ .gt-hint { display: none; }
866
+ #search-input { width: 120px; }
867
+ }
868
+
869
+ @media (prefers-reduced-motion: reduce) {
870
+ *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
871
+ }