File size: 13,689 Bytes
c1c9865
3226d99
 
 
d029f5c
 
 
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
db7550f
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d029f5c
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
db7550f
c1c9865
3226d99
d029f5c
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
3226d99
01e0cf8
3226d99
 
01e0cf8
 
 
 
c1c9865
 
01e0cf8
 
 
 
 
 
 
c1c9865
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1c9865
 
 
01e0cf8
 
 
 
 
 
 
 
c1c9865
01e0cf8
c1c9865
 
01e0cf8
 
 
 
 
 
 
 
c1c9865
 
01e0cf8
c1c9865
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
c1c9865
01e0cf8
c1c9865
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
c1c9865
01e0cf8
 
c1c9865
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1c9865
d029f5c
01e0cf8
 
 
 
 
 
db7550f
 
01e0cf8
d029f5c
01e0cf8
 
 
 
 
 
c1c9865
 
01e0cf8
d029f5c
01e0cf8
 
 
 
 
3226d99
01e0cf8
 
3226d99
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3226d99
01e0cf8
 
d029f5c
01e0cf8
 
 
 
 
 
c1c9865
 
01e0cf8
 
 
 
 
 
 
 
 
 
d029f5c
01e0cf8
 
d029f5c
01e0cf8
 
 
d029f5c
01e0cf8
d029f5c
01e0cf8
 
 
 
3226d99
01e0cf8
d029f5c
01e0cf8
 
d029f5c
 
01e0cf8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c1c9865
 
01e0cf8
 
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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
/* ═══════════════════════════════════════════════════════════
                TWOQUARKS - QuarksLab
   ═══════════════════════════════════════════════════════════
   ──── Precision systems for adaptive intelligence. ──── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* keep tokens but UI should be dark-glass first */
  --ultra-blue: #3B82F6;
  --ultra-blue-bright: #60A5FA;
  --ultra-blue-deep: #1E40AF;
  --ultra-blue-glow: rgba(39, 100, 180, 0.35);

  --bg-base: #000000;
  --bg-elev: rgba(10, 12, 18, 0.82);

  --fg-primary: #FFFFFF;
  --fg-secondary: rgba(255, 255, 255, 0.72);
  --fg-tertiary: rgba(255, 255, 255, 0.46);

  /* DARK GLASS SYSTEM */
  --surface-glass: rgba(0, 0, 0, 0.34);
  --surface-card: rgba(255, 255, 255, 0.045);
  --surface-card-hover: rgba(255, 255, 255, 0.075);
  --surface-input: rgba(255, 255, 255, 0.04);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);

  /* de-emphasize blue (still usable as accent) */
  --border-accent: rgba(180, 190, 200, 0.22);

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 22px rgba(140, 180, 255, 0.10);

  --z-base: 1;
  --z-canvas: 0;
}

html, body { height: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--fg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gradio-container {
  background: var(--bg-base) !important;
  color: var(--fg-primary) !important;
  max-width: 1050px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.gradio-container .prose,
.gradio-container .markdown {
  color: var(--fg-secondary) !important;
}

/* STARFIELD */
#quantumField {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-canvas);
  background: var(--bg-base);
  pointer-events: none;
}

#tq-app {
  position: relative;
  z-index: var(--z-base);
  padding-top: var(--space-md);
}

/* HERO */
.tq-hero {
  margin: var(--space-md) 0 var(--space-lg) 0;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.tq-hero__brand {
  font-weight: 750;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--fg-primary) 0%, rgba(210,220,235,0.85) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tq-hero__desc {
  margin-top: var(--space-sm);
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 70ch;
}

/* BASE PANELS / CARDS — force dark glass (no blue wash) */
.gradio-container .gr-panel,
.gradio-container [class*="gr-box"],
.gradio-container .gr-form,
.gradio-container .block,
.gradio-container .wrap {
  background: var(--surface-card) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-lg) !important;
  transition: transform var(--trans-base),
              box-shadow var(--trans-base),
              border-color var(--trans-base),
              background var(--trans-base) !important;
  box-shadow: 0 6px 22px rgba(0,0,0,0.22) !important;
}

.gradio-container .gr-panel:hover,
.gradio-container [class*="gr-box"]:hover,
.gradio-container .gr-form:hover {
  border-color: rgba(255,255,255,0.14) !important;
  background: var(--surface-card-hover) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.30) !important;
}

/* TITLES */
.tq-card-title {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
  margin-bottom: 0.35rem;
}

.tq-card-subtitle {
  color: var(--fg-tertiary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* TABS */
.gradio-container .gr-tab-nav {
  background: transparent !important;
  border: none !important;
  gap: var(--space-sm) !important;
  padding: 0 !important;
  margin-bottom: var(--space-lg) !important;
}

.gradio-container .gr-tab-nav button {
  padding: 0.55rem 0.95rem !important;
  font-size: 0.875rem !important;
  font-weight: 520 !important;
  color: var(--fg-primary) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-full) !important;
  opacity: 0.92 !important;
  transition: all var(--trans-base) !important;
}

.gradio-container .gr-tab-nav button:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255,255,255,0.20) !important;
}

.gradio-container .gr-tab-nav button.selected,
.gradio-container .gr-tab-nav button[aria-selected="true"] {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.26) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset !important;
  opacity: 1 !important;
}

/* INPUTS */
.gradio-container input[type="text"],
.gradio-container input[type="number"],
.gradio-container textarea,
.gradio-container select {
  background: var(--surface-input) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: var(--radius-md) !important;
  color: var(--fg-primary) !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.95rem !important;
  transition: all var(--trans-base) !important;
}

.gradio-container input:focus,
.gradio-container textarea:focus,
.gradio-container select:focus {
  outline: none !important;
  border-color: rgba(255,255,255,0.28) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08) !important;
}

.gradio-container input[type="range"] {
  accent-color: rgba(210,220,235,0.75) !important;
}

/* BUTTONS — dark glass, subtle accent (not primary-blue) */
.gradio-container button:not(.gr-tab-nav button),
.gradio-container .gr-button {
  padding: 0.65rem 1.05rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: var(--fg-primary) !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: var(--radius-full) !important;
  cursor: pointer !important;
  transition: transform var(--trans-fast),
              box-shadow var(--trans-base),
              background var(--trans-base),
              border-color var(--trans-base) !important;
}

.gradio-container button:hover:not(.gr-tab-nav button),
.gradio-container .gr-button:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow: 0 0 18px rgba(0,0,0,0.20) !important;
}

.gradio-container button:active:not(.gr-tab-nav button),
.gradio-container .gr-button:active { transform: scale(0.985) !important; }

.gradio-container button:disabled,
.gradio-container .gr-button:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

/* Even if variant="primary" leaks, keep it dark */
.gradio-container button.primary,
.gradio-container .gr-button-primary {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.20) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important;
}

.gradio-container button.primary:hover,
.gradio-container .gr-button-primary:hover {
  filter: brightness(1.06) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22) !important;
}

/* IMAGES general */
.gradio-container img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* IMPORTANT: kill any leftover preview containers if some Gradio version still renders them */
#down_gallery .gr-gallery-preview,
#strange_gallery .gr-gallery-preview,
#down_gallery [data-testid="gallery-preview"],
#strange_gallery [data-testid="gallery-preview"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ===== Gallery (ONLY filmstrip) — NO [class*="gallery"] selectors ===== */
#down_gallery, #strange_gallery { margin-top: 12px !important; }

#down_gallery .gr-gallery,
#strange_gallery .gr-gallery {
  background: rgba(0,0,0,0.22) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px !important;
  overflow: hidden !important;
}

/* strip wrapper */
#down_gallery .gr-gallery > div,
#strange_gallery .gr-gallery > div {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 10px !important;
}

/* list */
#down_gallery [role="list"],
#strange_gallery [role="list"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  padding: 4px !important;
}

/* tile */
#down_gallery [role="listitem"],
#strange_gallery [role="listitem"] {
  flex: 0 0 220px !important;
  scroll-snap-align: start !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28) !important;
  transition: transform var(--trans-base), border-color var(--trans-base), box-shadow var(--trans-base) !important;
}

#down_gallery [role="listitem"]:hover,
#strange_gallery [role="listitem"]:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,0.36) !important;
}

/* image in tile */
#down_gallery [role="listitem"] img,
#strange_gallery [role="listitem"] img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  display: block !important;
  background: rgba(0,0,0,0.40) !important;
}

/* subtle top accent bar, but neutral */
#down_gallery [role="listitem"]::before,
#strange_gallery [role="listitem"]::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(0,0,0,0));
}

/* scrollbars inside strip */
#down_gallery .gr-gallery > div::-webkit-scrollbar,
#strange_gallery .gr-gallery > div::-webkit-scrollbar { height: 10px !important; }

#down_gallery .gr-gallery > div::-webkit-scrollbar-track,
#strange_gallery .gr-gallery > div::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03) !important;
  border-radius: 220px !important;
}

#down_gallery .gr-gallery > div::-webkit-scrollbar-thumb,
#strange_gallery .gr-gallery > div::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.10) !important;
  border-radius: 220px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

#down_gallery .gr-gallery > div::-webkit-scrollbar-thumb:hover,
#strange_gallery .gr-gallery > div::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.16) !important;
}

/* labels, descriptions */
.gradio-container label,
.gradio-container .gr-label {
  color: var(--fg-secondary) !important;
  font-size: 0.875rem !important;
  font-weight: 550 !important;
  margin-bottom: var(--space-xs) !important;
}

.gradio-container .gr-description,
.gradio-container .gr-info {
  color: var(--fg-tertiary) !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
}

/* code blocks */
.gradio-container pre,
.gradio-container code {
  font-family: var(--font-mono) !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.35rem 0.55rem !important;
  color: rgba(210,220,235,0.92) !important;
}

/* progress */
.gradio-container .gr-loading { color: rgba(210,220,235,0.80) !important; }
.gradio-container .progress-bar {
  background: rgba(210,220,235,0.60) !important;
  box-shadow: 0 0 12px rgba(210,220,235,0.10) !important;
}

/* global scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

@media (max-width: 768px) {
  :root { --space-lg: 1rem; --space-xl: 1.5rem; }
  .gradio-container { padding: var(--space-md); }
  .tq-hero { padding: var(--space-md) var(--space-lg); }
  .tq-hero__brand { font-size: 1.25rem; }
  #down_gallery [role="listitem"], #strange_gallery [role="listitem"] { flex-basis: 200px !important; }
  #down_gallery [role="listitem"] img, #strange_gallery [role="listitem"] img { height: 200px !important; }
}

/* kill Gradio footer */
footer, .gradio-container footer { display: none !important; }