Threadbourne commited on
Commit
2945e20
·
verified ·
1 Parent(s): d837325

Update after-hours.css

Browse files
Files changed (1) hide show
  1. after-hours.css +259 -245
after-hours.css CHANGED
@@ -1,30 +1,31 @@
1
- /* uglytool — After Hours · v4 (iteration draft, not deployed)
2
  *
3
  * Drop-in CSS for a Gradio Space. In your app:
4
- * with open("after-hours.css") as f:
5
- * css = f.read()
6
- * demo = gr.Blocks(css=css)
 
7
  *
8
- * What's new vs. v3 (the live version):
9
- * 1. Layered background — radial amber glow + vertical gradient, not flat.
10
- * 2. Generous radii — 18px / 12px / 8px system; cards feel like soft objects.
11
- * 3. Real shadow language — ambient + 1px inset rim. Cards levitate.
12
- * 4. Translucent card surfaces with backdrop-blur — glass on the gradient.
13
  * 5. Tabular numerals on numeric outputs.
14
- * 6. Letterspaced uppercase as a system across hierarchy (0.18 / 0.16 / 0.12).
15
- * 7. Tonal accent family — amber + amber-soft + amber-warm for editorial moments.
16
- * 8. Custom-styled select (inline-SVG arrow), refined range/checkbox.
17
- * 9. Callout/info card variant in amber-soft tint.
18
- * 10. Refined typography hierarchy — bigger titles, tuned line-height, italic-friendly body.
 
19
  *
20
  * Browser requirements: backdrop-filter (Chrome 76+, Safari 14+, Firefox 103+).
21
- * Older browsers gracefully fall back to opaque surfaces.
22
  */
23
 
24
- @import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&family=DM+Mono:wght@400;500&display=swap');
25
 
26
  /* ============================================================
27
- * Part 1 — Variables
28
  * ============================================================ */
29
 
30
  :root,
@@ -32,108 +33,111 @@
32
  .gradio-container,
33
  .gradio-container.dark,
34
  body.dark {
35
- /* Palette — extended tonal family */
36
- --ah-bg: #1a1917;
37
- --ah-bg-tint: #1f1d1a; /* top of vertical gradient */
38
- --ah-bg-raised: #222120;
39
- --ah-surface: rgba(36, 34, 32, 0.72); /* translucent — let bg show through */
40
- --ah-surface-solid:#2a2826; /* opaque fallback */
41
- --ah-border: rgba(255, 255, 255, 0.07);
42
- --ah-border-strong:rgba(255, 255, 255, 0.13);
43
- --ah-border-focus: rgba(193, 127, 58, 0.55);
44
-
45
- --ah-amber: #c17f3a;
46
- --ah-amber-warm: #a86c2e; /* deeper, for hover/active */
47
- --ah-amber-glow: #d8954a; /* lighter, for highlights */
48
- --ah-amber-soft: rgba(193, 127, 58, 0.10);
49
- --ah-amber-dim: rgba(193, 127, 58, 0.06);
50
- --ah-amber-rim: rgba(193, 127, 58, 0.22);
51
-
52
- --ah-text: #f0ece4;
53
- --ah-text-strong: #fdfbf6;
54
- --ah-muted: #8a8278;
55
- --ah-dim: #5a5650;
 
 
 
 
56
 
57
  /* Geometry */
58
- --ah-radius: 18px;
59
- --ah-radius-sm: 12px;
60
- --ah-radius-xs: 8px;
61
- --ah-radius-pill: 999px;
62
 
63
- /* Shadows — ambient + soft amber glow for accent moments */
64
- --ah-shadow: 0 24px 60px rgba(0, 0, 0, 0.35),
65
- 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
66
- --ah-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
67
- --ah-shadow-amber: 0 0 28px rgba(193, 127, 58, 0.18);
68
 
69
  /* Motion */
70
- --ah-transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
71
-
72
- /* Gradio CSS variables — the engine override hooks */
73
- --body-background-fill: var(--ah-bg);
74
- --background-fill-primary: var(--ah-bg-raised);
75
- --background-fill-secondary: var(--ah-surface-solid);
76
- --body-text-color: var(--ah-text);
77
- --body-text-color-subdued: var(--ah-muted);
78
- --color-accent: var(--ah-amber);
79
- --color-accent-soft: var(--ah-amber-soft);
80
- --border-color-primary: var(--ah-border);
81
- --border-color-accent: var(--ah-border-focus);
82
-
83
- --block-background-fill: var(--ah-surface);
84
- --block-border-color: var(--ah-border);
85
  --block-border-width: 1px;
86
- --block-radius: var(--ah-radius);
87
- --block-shadow: var(--ah-shadow);
88
 
89
  --block-title-background-fill: transparent;
90
  --block-title-border-color: transparent;
91
- --block-title-text-color: var(--ah-text);
92
- --block-title-text-size: 1.05rem;
93
  --block-title-text-weight: 700;
94
  --block-label-background-fill: transparent;
95
  --block-label-border-color: transparent;
96
- --block-label-text-color: var(--ah-amber);
97
- --block-label-text-size: 0.72rem;
98
- --block-label-text-weight: 500;
99
-
100
- --input-background-fill: var(--ah-surface-solid);
101
- --input-background-fill-focus: var(--ah-surface-solid);
102
- --input-border-color: var(--ah-border);
103
- --input-border-color-focus: var(--ah-border-focus);
104
- --input-text-size: 0.9rem;
105
- --input-radius: var(--ah-radius-sm);
106
-
107
- --button-primary-background-fill: var(--ah-amber);
108
- --button-primary-background-fill-hover: var(--ah-amber-warm);
109
- --button-primary-text-color: var(--ah-bg);
110
- --button-primary-text-color-hover: var(--ah-bg);
111
- --button-primary-border-color: var(--ah-amber);
112
- --button-secondary-background-fill: var(--ah-surface-solid);
113
- --button-secondary-background-fill-hover: #342f2a;
114
- --button-secondary-text-color: var(--ah-text);
115
- --button-secondary-text-color-hover: var(--ah-text-strong);
116
- --button-secondary-border-color: var(--ah-border-strong);
117
- --button-large-text-size: 0.92rem;
118
  --button-large-text-weight: 600;
119
- --button-large-radius: var(--ah-radius-sm);
120
 
121
- --slider-color: var(--ah-amber);
122
 
123
- --font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
124
  --font-mono: 'DM Mono', ui-monospace, monospace;
125
 
126
  --radius-xxs: 2px;
127
  --radius-xs: 4px;
128
- --radius-sm: var(--ah-radius-xs);
129
- --radius-md: var(--ah-radius-sm);
130
- --radius-lg: var(--ah-radius);
131
  }
132
 
133
  /* ============================================================
134
  * Part 2 — Root containers · LAYERED BACKGROUND
135
- * Top-right amber glow, faint bottom-left echo, vertical gradient.
136
- * This is the single biggest visual move. Cards now sit on light.
137
  * ============================================================ */
138
 
139
  html body,
@@ -144,12 +148,12 @@ html body .stApp,
144
  html body .stApp > div,
145
  html body [data-testid="stAppViewContainer"] {
146
  background:
147
- radial-gradient(ellipse 80% 60% at 90% 0%, rgba(193, 127, 58, 0.07), transparent 55%),
148
- radial-gradient(ellipse 60% 50% at 10% 100%, rgba(193, 127, 58, 0.04), transparent 60%),
149
- linear-gradient(180deg, var(--ah-bg-tint) 0%, var(--ah-bg) 70%) !important;
150
  background-attachment: fixed !important;
151
- color: var(--ah-text) !important;
152
- font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif !important;
153
  line-height: 1.6 !important;
154
  }
155
 
@@ -160,7 +164,7 @@ html body .stApp [data-testid="stVerticalBlock"] {
160
 
161
  /* ============================================================
162
  * Part 3 — Typography
163
- * Bigger titles. Tuned line-height. Italic-friendly body.
164
  * ============================================================ */
165
 
166
  html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
@@ -180,27 +184,27 @@ html body [data-testid="stMarkdownContainer"] h3,
180
  html body [data-testid="stMarkdownContainer"] h1 *,
181
  html body [data-testid="stMarkdownContainer"] h2 *,
182
  html body [data-testid="stMarkdownContainer"] h3 * {
183
- font-family: 'Syne', ui-sans-serif, sans-serif !important;
184
  font-weight: 700 !important;
185
  letter-spacing: -0.02em !important;
186
- color: var(--ah-text) !important;
187
- -webkit-text-fill-color: var(--ah-text) !important;
188
  background-image: none !important;
189
  background-clip: unset !important;
190
  -webkit-background-clip: unset !important;
191
- line-height: 1.12 !important;
192
  }
193
 
194
  html body h1, html body .gradio-container h1, html body .stApp h1 {
195
- font-size: 2.1rem !important;
196
  margin-bottom: 0.4em !important;
197
- color: var(--ah-amber-glow) !important;
198
- -webkit-text-fill-color: var(--ah-amber-glow) !important;
199
  }
200
  html body h2, html body .gradio-container h2, html body .stApp h2 {
201
- font-size: 1.5rem !important;
202
- color: var(--ah-amber) !important;
203
- -webkit-text-fill-color: var(--ah-amber) !important;
204
  }
205
  html body h3, html body .gradio-container h3, html body .stApp h3,
206
  html body h4, html body .gradio-container h4, html body .stApp h4,
@@ -210,23 +214,23 @@ html body [data-testid="stMarkdownContainer"] h3,
210
  html body [data-testid="stMarkdownContainer"] h3 *,
211
  html body .gr-markdown h3, html body .gr-markdown h3 *,
212
  html body .markdown h3, html body .markdown h3 * {
213
- font-size: 1.1rem !important;
214
  letter-spacing: -0.01em !important;
215
  font-weight: 500 !important;
216
- color: var(--ah-amber-warm) !important;
217
- -webkit-text-fill-color: var(--ah-amber-warm) !important;
 
218
  }
219
 
220
  html body em,
221
  html body .gradio-container em,
222
  html body .stApp em {
223
  font-style: italic !important;
224
- color: var(--ah-text) !important;
225
  }
226
 
227
  /* ============================================================
228
- * Part 4 — Labels · LETTERSPACED UPPERCASE AS A SYSTEM
229
- * Three tiers of letterspacing by hierarchy.
230
  * ============================================================ */
231
 
232
  html body .gradio-container .block-label,
@@ -243,26 +247,25 @@ html body .stApp [data-testid="stWidgetLabel"] > *,
243
  html body .stApp [data-testid="stWidgetLabel"] p {
244
  font-family: 'DM Mono', ui-monospace, monospace !important;
245
  font-size: 0.78rem !important;
246
- color: var(--ah-amber) !important;
247
  letter-spacing: 0.13em !important;
248
  text-transform: uppercase !important;
249
  font-weight: 600 !important;
250
  background: transparent !important;
251
  }
252
 
253
- /* Section eyebrows / kickers — even more letterspaced */
254
- html body .gradio-container .ah-eyebrow,
255
- html body .stApp .ah-eyebrow {
256
  font-family: 'DM Mono', ui-monospace, monospace !important;
257
- font-size: 0.68rem !important;
258
- color: var(--ah-muted) !important;
259
  letter-spacing: 0.2em !important;
260
  text-transform: uppercase !important;
 
261
  }
262
 
263
  /* ============================================================
264
- * Part 5 — Cards / blocks · TRANSLUCENT GLASS + SOFT GLOW
265
- * The single most "premium" move after the layered bg.
266
  * ============================================================ */
267
 
268
  html body .gradio-container .block,
@@ -273,31 +276,30 @@ html body .gradio-container .gr-box,
273
  html body .gradio-container .wrap,
274
  html body .stApp [data-testid="stForm"],
275
  html body .stApp [data-testid="stExpander"] {
276
- background: var(--ah-surface) !important;
277
- -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
278
- backdrop-filter: blur(18px) saturate(140%) !important;
279
- border: 1px solid var(--ah-border) !important;
280
- border-radius: var(--ah-radius) !important;
281
- box-shadow: var(--ah-shadow) !important;
282
- padding: 22px !important;
283
- transition: border-color var(--ah-transition), box-shadow var(--ah-transition) !important;
284
  }
285
 
286
  html body .gradio-container .block:hover,
287
  html body .stApp [data-testid="stForm"]:hover {
288
- border-color: var(--ah-border-strong) !important;
289
  }
290
 
291
- /* Nested inner blocks — slightly less prominent */
292
  html body .gradio-container .block .block,
293
  html body .gradio-container .block .gr-form {
294
- background: rgba(36, 34, 32, 0.40) !important;
295
  box-shadow: none !important;
296
- padding: 16px !important;
297
  }
298
 
299
  /* ============================================================
300
- * Part 6 — Inputs · refined borders, generous radii, amber focus glow
301
  * ============================================================ */
302
 
303
  html body .gradio-container input[type="text"],
@@ -315,21 +317,21 @@ html body .stApp input[type="number"],
315
  html body .stApp textarea,
316
  html body .stApp [data-baseweb="select"] > div,
317
  html body .stApp [data-baseweb="input"] {
318
- background: var(--ah-surface-solid) !important;
319
- border: 1px solid var(--ah-border-strong) !important;
320
- border-radius: var(--ah-radius-sm) !important;
321
- color: var(--ah-text) !important;
322
- font-family: 'DM Mono', ui-monospace, monospace !important;
323
- font-size: 0.9rem !important;
324
- caret-color: var(--ah-amber) !important;
325
  padding: 13px 16px !important;
326
- transition: border-color var(--ah-transition), box-shadow var(--ah-transition) !important;
327
  }
328
 
329
  html body .gradio-container textarea,
330
  html body .stApp textarea {
331
  min-height: 130px !important;
332
- line-height: 1.6 !important;
333
  }
334
 
335
  html body .gradio-container input:focus,
@@ -337,29 +339,28 @@ html body .gradio-container textarea:focus,
337
  html body .gradio-container select:focus,
338
  html body .stApp input:focus,
339
  html body .stApp textarea:focus {
340
- border-color: var(--ah-amber) !important;
341
  outline: none !important;
342
- box-shadow: 0 0 0 3px var(--ah-amber-soft),
343
- 0 0 20px rgba(193, 127, 58, 0.10) !important;
344
  }
345
 
346
  html body .gradio-container ::placeholder,
347
  html body .stApp ::placeholder {
348
- color: var(--ah-dim) !important;
 
349
  }
350
 
351
- /* Custom select — inline SVG amber arrow */
352
  html body .gradio-container select,
353
  html body .gradio-container .gr-dropdown select {
354
  appearance: none !important;
355
  -webkit-appearance: none !important;
356
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23c17f3a'/%3E%3C/svg%3E") !important;
357
  background-repeat: no-repeat !important;
358
  background-position: right 14px center !important;
359
  padding-right: 38px !important;
360
  }
361
 
362
- /* Numeric outputs — tabular nums for premium dashboard feel */
363
  html body .gradio-container .gr-number input,
364
  html body .gradio-container [class*="number"] input,
365
  html body .gradio-container .output-number,
@@ -368,10 +369,11 @@ html body .stApp [data-testid="stMetricValue"],
368
  html body .stApp [data-testid="stNumberInput"] input {
369
  font-variant-numeric: tabular-nums !important;
370
  font-feature-settings: 'tnum' !important;
 
371
  }
372
 
373
  /* ============================================================
374
- * Part 7 — Buttons · generous radii + amber-glow hover
375
  * ============================================================ */
376
 
377
  html body .gradio-container button,
@@ -381,80 +383,79 @@ html body .gradio-container button.primary,
381
  html body .gradio-container .primary,
382
  html body .stApp .stButton > button,
383
  html body .stApp button[kind="primary"] {
384
- background: var(--ah-amber) !important;
385
- color: var(--ah-bg) !important;
386
- font-family: 'Syne', ui-sans-serif, sans-serif !important;
387
- font-weight: 600 !important;
388
- font-size: 0.92rem !important;
389
- letter-spacing: 0.02em !important;
390
  border: none !important;
391
- border-radius: var(--ah-radius-sm) !important;
392
  padding: 13px 28px !important;
393
  cursor: pointer !important;
394
- box-shadow: 0 8px 22px rgba(193, 127, 58, 0.22),
395
- 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
396
  transition: transform 100ms ease,
397
- box-shadow var(--ah-transition),
398
- background var(--ah-transition) !important;
399
  }
400
 
401
  html body .gradio-container button:hover,
402
  html body .gradio-container .gr-button:hover,
403
  html body .stApp .stButton > button:hover {
404
- background: var(--ah-amber-glow) !important;
405
- color: var(--ah-bg) !important;
406
- box-shadow: 0 12px 32px rgba(193, 127, 58, 0.32),
407
- 0 0 0 1px rgba(255, 255, 255, 0.10) inset,
408
- var(--ah-shadow-amber) !important;
409
  }
410
 
411
  html body .gradio-container button:active,
412
  html body .stApp .stButton > button:active {
413
  transform: scale(0.985) !important;
414
- background: var(--ah-amber-warm) !important;
415
  }
416
 
417
  html body .gradio-container button.secondary,
418
  html body .gradio-container .secondary,
419
  html body .stApp button[kind="secondary"] {
420
- background: var(--ah-surface-solid) !important;
421
- color: var(--ah-text) !important;
422
- border: 1px solid var(--ah-border-strong) !important;
423
- box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
424
  }
425
 
426
  html body .gradio-container button.secondary:hover,
427
  html body .stApp button[kind="secondary"]:hover {
428
- background: #342f2a !important;
429
- border-color: var(--ah-amber-rim) !important;
430
- color: var(--ah-text-strong) !important;
431
  }
432
 
433
  /* ============================================================
434
- * Part 8 — Sliders, checkboxes, radios · refined accents
435
  * ============================================================ */
436
 
437
  html body input[type="range"] {
438
- accent-color: var(--ah-amber) !important;
439
  height: 4px !important;
440
  }
441
  html body input[type="range"]::-webkit-slider-thumb {
442
- background: var(--ah-amber) !important;
443
- border: 2px solid var(--ah-bg) !important;
444
- box-shadow: 0 0 0 1px rgba(193, 127, 58, 0.3),
445
- 0 0 12px rgba(193, 127, 58, 0.25) !important;
446
  width: 16px !important;
447
  height: 16px !important;
448
  }
449
  html body input[type="range"]::-moz-range-thumb {
450
- background: var(--ah-amber) !important;
451
- border: 2px solid var(--ah-bg) !important;
452
  width: 16px !important;
453
  height: 16px !important;
454
  }
455
  html body input[type="checkbox"],
456
  html body input[type="radio"] {
457
- accent-color: var(--ah-amber) !important;
458
  width: 15px !important;
459
  height: 15px !important;
460
  }
@@ -467,24 +468,24 @@ html body .gradio-container .gr-file-upload,
467
  html body .gradio-container input[type="file"],
468
  html body .stApp [data-testid="stFileUploader"],
469
  html body .stApp [data-testid="stFileUploaderDropzone"] {
470
- background: var(--ah-amber-dim) !important;
471
- border: 1px dashed var(--ah-amber-rim) !important;
472
- border-radius: var(--ah-radius-sm) !important;
473
- color: var(--ah-text) !important;
474
- transition: background var(--ah-transition),
475
- border-color var(--ah-transition) !important;
476
  }
477
  html body .gradio-container .gr-file-upload:hover,
478
  html body .stApp [data-testid="stFileUploader"]:hover {
479
- background: var(--ah-amber-soft) !important;
480
- border-color: var(--ah-amber) !important;
481
  }
482
 
483
  html body input[type="file"]::file-selector-button {
484
- background: var(--ah-amber-soft) !important;
485
- color: var(--ah-amber) !important;
486
- border: 1px solid var(--ah-amber-rim) !important;
487
- border-radius: var(--ah-radius-xs) !important;
488
  padding: 7px 14px !important;
489
  margin-right: 14px !important;
490
  font-family: 'DM Mono', ui-monospace, monospace !important;
@@ -494,77 +495,91 @@ html body input[type="file"]::file-selector-button {
494
  }
495
 
496
  /* ============================================================
497
- * Part 10 — Markdown, code, links
498
  * ============================================================ */
499
 
500
  html body .gradio-container .markdown,
501
  html body .gradio-container .gr-markdown,
502
  html body .gradio-container .prose,
503
  html body .stApp [data-testid="stMarkdownContainer"] {
504
- color: var(--ah-text) !important;
505
- font-family: 'DM Sans', ui-sans-serif, sans-serif !important;
506
- line-height: 1.65 !important;
 
507
  }
508
 
509
  html body .gradio-container a,
510
  html body .stApp a {
511
- color: var(--ah-amber) !important;
512
  text-decoration: none !important;
513
- border-bottom: 1px solid var(--ah-amber-rim) !important;
514
- transition: border-color var(--ah-transition), color var(--ah-transition) !important;
515
  }
516
  html body .gradio-container a:hover,
517
  html body .stApp a:hover {
518
- color: var(--ah-amber-glow) !important;
519
- border-bottom-color: var(--ah-amber) !important;
520
  }
521
 
522
  html body code,
523
  html body .gradio-container code,
524
  html body .stApp code {
525
- background: var(--ah-amber-dim) !important;
526
- color: var(--ah-amber) !important;
527
  font-family: 'DM Mono', ui-monospace, monospace !important;
528
  font-size: 0.86em !important;
529
  padding: 2px 7px !important;
530
- border-radius: var(--ah-radius-xs) !important;
531
- border: 1px solid var(--ah-amber-rim) !important;
532
  }
533
 
534
  html body pre code,
535
  html body .gradio-container pre code {
536
- border: 1px solid var(--ah-border) !important;
537
- background: rgba(0, 0, 0, 0.25) !important;
538
  display: block !important;
539
  padding: 14px 16px !important;
540
- border-radius: var(--ah-radius-sm) !important;
541
  line-height: 1.55 !important;
 
 
 
 
 
 
 
 
 
 
 
542
  }
543
 
544
  /* ============================================================
545
  * Part 11 — Callout / interpretation card
546
- * Use class .ah-callout on a div for editorial-voice prose blocks.
547
- * Also targets Gradio's built-in Info/Warning patterns.
548
  * ============================================================ */
549
 
550
- html body .ah-callout,
551
- html body .gradio-container .ah-callout,
552
- html body .stApp .ah-callout,
553
  html body .gradio-container [class*="info"]:not(button):not(input),
554
  html body .stApp .stAlert {
555
- background: var(--ah-amber-soft) !important;
556
- border: 1px solid var(--ah-amber-rim) !important;
557
- border-radius: var(--ah-radius-sm) !important;
558
  padding: 14px 18px !important;
559
- font-size: 0.9rem !important;
560
- color: var(--ah-muted) !important;
561
- line-height: 1.6 !important;
 
 
562
  }
563
 
564
- html body .ah-callout strong,
565
- html body .gradio-container .ah-callout strong,
566
- html body .stApp .ah-callout strong {
567
- color: var(--ah-text) !important;
 
568
  font-weight: 600 !important;
569
  }
570
 
@@ -577,26 +592,26 @@ html body ::-webkit-scrollbar-track {
577
  background: transparent;
578
  }
579
  html body ::-webkit-scrollbar-thumb {
580
- background: rgba(193, 127, 58, 0.25);
581
- border-radius: var(--ah-radius-pill);
582
  border: 2px solid transparent;
583
  background-clip: padding-box;
584
  }
585
  html body ::-webkit-scrollbar-thumb:hover {
586
- background: rgba(193, 127, 58, 0.45);
587
  background-clip: padding-box;
588
  border: 2px solid transparent;
589
  }
590
 
591
  html body .stApp header[data-testid="stHeader"] {
592
- background: rgba(26, 25, 23, 0.72) !important;
593
  -webkit-backdrop-filter: blur(14px) !important;
594
  backdrop-filter: blur(14px) !important;
595
- border-bottom: 1px solid var(--ah-border) !important;
596
  }
597
  html body .stApp [data-testid="stSidebar"] {
598
- background: var(--ah-bg-raised) !important;
599
- border-right: 1px solid var(--ah-border) !important;
600
  }
601
 
602
  /* ============================================================
@@ -607,22 +622,21 @@ html body hr,
607
  html body .gradio-container hr,
608
  html body .stApp hr {
609
  border: none !important;
610
- border-top: 1px solid var(--ah-border) !important;
611
  margin: 24px 0 !important;
612
  }
613
 
614
  html body ::selection {
615
- background: var(--ah-amber-soft);
616
- color: var(--ah-text-strong);
617
  }
618
 
619
- /* Animate things appearing — subtle, not distracting */
620
  @media (prefers-reduced-motion: no-preference) {
621
  html body .gradio-container .block,
622
  html body .stApp [data-testid="stForm"] {
623
- animation: ah-fade-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
624
  }
625
- @keyframes ah-fade-in {
626
  from { opacity: 0; transform: translateY(4px); }
627
  to { opacity: 1; transform: translateY(0); }
628
  }
 
1
+ /* uglytool — Vellum · v4 (iteration draft, not deployed)
2
  *
3
  * Drop-in CSS for a Gradio Space. In your app:
4
+ * with open("vellum.css") as f:
5
+ * custom_css = f.read()
6
+ * with gr.Blocks(css=custom_css) as app:
7
+ * ...
8
  *
9
+ * What's new vs. v1 (the live version):
10
+ * 1. Layered cream background — vertical gradient + clay radial top-right + taupe radial bottom-left.
11
+ * 2. Generous radii — 18px / 12px / 8px system.
12
+ * 3. Soft warm shadow — 24/60/8% over warm-dark; cards levitate.
13
+ * 4. Translucent surfaces with backdrop-blur — frosted-paper effect.
14
  * 5. Tabular numerals on numeric outputs.
15
+ * 6. Letterspaced uppercase labels at 0.78rem / weight 600 (legibility-tuned).
16
+ * 7. Tonal accent family — clay/clay-deep/clay-bright/clay-rim/clay-soft + taupe secondary.
17
+ * 8. Three-tier heading color hierarchy in the warm-earth family (clay → deeper clay → taupe).
18
+ * 9. Custom-styled select with inline-SVG clay arrow.
19
+ * 10. Refined typography — Playfair Display titles + Lora body with italic, DM Mono labels.
20
+ * 11. Editorial callout/interpretation card variant in clay-soft.
21
  *
22
  * Browser requirements: backdrop-filter (Chrome 76+, Safari 14+, Firefox 103+).
 
23
  */
24
 
25
+ @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,800;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Mono:wght@400;500&display=swap');
26
 
27
  /* ============================================================
28
+ * Part 1 — Variables · extended tonal family
29
  * ============================================================ */
30
 
31
  :root,
 
33
  .gradio-container,
34
  .gradio-container.dark,
35
  body.dark {
36
+ /* Palette — warm earth family */
37
+ --vl-paper: #f0ede6;
38
+ --vl-paper-tint: #f7f3eb; /* top of vertical gradient */
39
+ --vl-surface: rgba(255, 255, 255, 0.55); /* translucent — frosted paper */
40
+ --vl-surface-solid:#faf8f4;
41
+ --vl-surface-warm: #f4eee2; /* deeper cream for nested */
42
+ --vl-border: rgba(44, 36, 32, 0.12);
43
+ --vl-border-strong:rgba(44, 36, 32, 0.22);
44
+ --vl-border-soft: rgba(44, 36, 32, 0.06);
45
+ --vl-border-focus: rgba(122, 59, 59, 0.55);
46
+
47
+ --vl-clay: #7a3b3b; /* brand */
48
+ --vl-clay-deep: #5e2d2d; /* deeper, hover/active/h2 */
49
+ --vl-clay-bright: #9a4747; /* lighter, accents on highlights */
50
+ --vl-clay-soft: rgba(122, 59, 59, 0.10);
51
+ --vl-clay-dim: rgba(122, 59, 59, 0.06);
52
+ --vl-clay-rim: rgba(122, 59, 59, 0.22);
53
+
54
+ --vl-taupe: #8a775c; /* secondary warm — editorial subtitles */
55
+ --vl-taupe-soft: rgba(138, 119, 92, 0.12);
56
+
57
+ --vl-ink: #2c2420; /* warm dark text */
58
+ --vl-ink-strong: #1a1410;
59
+ --vl-muted: #6b5e58;
60
+ --vl-dim: #8a7e76;
61
 
62
  /* Geometry */
63
+ --vl-radius: 18px;
64
+ --vl-radius-sm: 12px;
65
+ --vl-radius-xs: 8px;
66
+ --vl-radius-pill: 999px;
67
 
68
+ /* Shadows — warm-dark, layered */
69
+ --vl-shadow: 0 24px 60px rgba(41, 35, 27, 0.08),
70
+ 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
71
+ --vl-shadow-sm: 0 8px 24px rgba(41, 35, 27, 0.06);
72
+ --vl-shadow-clay: 0 12px 32px rgba(122, 59, 59, 0.18);
73
 
74
  /* Motion */
75
+ --vl-transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
76
+
77
+ /* Gradio CSS variables — engine override hooks */
78
+ --body-background-fill: var(--vl-paper);
79
+ --background-fill-primary: var(--vl-surface-solid);
80
+ --background-fill-secondary: var(--vl-surface-warm);
81
+ --body-text-color: var(--vl-ink);
82
+ --body-text-color-subdued: var(--vl-muted);
83
+ --color-accent: var(--vl-clay);
84
+ --color-accent-soft: var(--vl-clay-soft);
85
+ --border-color-primary: var(--vl-border);
86
+ --border-color-accent: var(--vl-border-focus);
87
+
88
+ --block-background-fill: var(--vl-surface);
89
+ --block-border-color: var(--vl-border);
90
  --block-border-width: 1px;
91
+ --block-radius: var(--vl-radius);
92
+ --block-shadow: var(--vl-shadow);
93
 
94
  --block-title-background-fill: transparent;
95
  --block-title-border-color: transparent;
96
+ --block-title-text-color: var(--vl-clay);
97
+ --block-title-text-size: 1.1rem;
98
  --block-title-text-weight: 700;
99
  --block-label-background-fill: transparent;
100
  --block-label-border-color: transparent;
101
+ --block-label-text-color: var(--vl-clay);
102
+ --block-label-text-size: 0.78rem;
103
+ --block-label-text-weight: 600;
104
+
105
+ --input-background-fill: var(--vl-surface-solid);
106
+ --input-background-fill-focus: var(--vl-surface-solid);
107
+ --input-border-color: var(--vl-border-strong);
108
+ --input-border-color-focus: var(--vl-clay);
109
+ --input-text-size: 0.92rem;
110
+ --input-radius: var(--vl-radius-sm);
111
+
112
+ --button-primary-background-fill: var(--vl-clay);
113
+ --button-primary-background-fill-hover: var(--vl-clay-deep);
114
+ --button-primary-text-color: var(--vl-paper-tint);
115
+ --button-primary-text-color-hover: #ffffff;
116
+ --button-primary-border-color: var(--vl-clay);
117
+ --button-secondary-background-fill: var(--vl-surface-solid);
118
+ --button-secondary-background-fill-hover: var(--vl-surface-warm);
119
+ --button-secondary-text-color: var(--vl-ink);
120
+ --button-secondary-text-color-hover: var(--vl-clay);
121
+ --button-secondary-border-color: var(--vl-border-strong);
122
+ --button-large-text-size: 0.95rem;
123
  --button-large-text-weight: 600;
124
+ --button-large-radius: var(--vl-radius-sm);
125
 
126
+ --slider-color: var(--vl-clay);
127
 
128
+ --font: 'Lora', ui-serif, Georgia, serif;
129
  --font-mono: 'DM Mono', ui-monospace, monospace;
130
 
131
  --radius-xxs: 2px;
132
  --radius-xs: 4px;
133
+ --radius-sm: var(--vl-radius-xs);
134
+ --radius-md: var(--vl-radius-sm);
135
+ --radius-lg: var(--vl-radius);
136
  }
137
 
138
  /* ============================================================
139
  * Part 2 — Root containers · LAYERED BACKGROUND
140
+ * Vertical cream gradient + clay radial top-right + taupe bottom-left echo.
 
141
  * ============================================================ */
142
 
143
  html body,
 
148
  html body .stApp > div,
149
  html body [data-testid="stAppViewContainer"] {
150
  background:
151
+ radial-gradient(ellipse 80% 60% at 90% 0%, rgba(122, 59, 59, 0.07), transparent 55%),
152
+ radial-gradient(ellipse 60% 50% at 10% 100%, rgba(138, 119, 92, 0.10), transparent 60%),
153
+ linear-gradient(180deg, var(--vl-paper-tint) 0%, var(--vl-paper) 70%) !important;
154
  background-attachment: fixed !important;
155
+ color: var(--vl-ink) !important;
156
+ font-family: 'Lora', ui-serif, Georgia, serif !important;
157
  line-height: 1.6 !important;
158
  }
159
 
 
164
 
165
  /* ============================================================
166
  * Part 3 — Typography
167
+ * Playfair Display titles, three-tier clay/taupe hierarchy.
168
  * ============================================================ */
169
 
170
  html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
 
184
  html body [data-testid="stMarkdownContainer"] h1 *,
185
  html body [data-testid="stMarkdownContainer"] h2 *,
186
  html body [data-testid="stMarkdownContainer"] h3 * {
187
+ font-family: 'Playfair Display', ui-serif, Georgia, serif !important;
188
  font-weight: 700 !important;
189
  letter-spacing: -0.02em !important;
190
+ color: var(--vl-clay) !important;
191
+ -webkit-text-fill-color: var(--vl-clay) !important;
192
  background-image: none !important;
193
  background-clip: unset !important;
194
  -webkit-background-clip: unset !important;
195
+ line-height: 1.15 !important;
196
  }
197
 
198
  html body h1, html body .gradio-container h1, html body .stApp h1 {
199
+ font-size: 2.3rem !important;
200
  margin-bottom: 0.4em !important;
201
+ color: var(--vl-clay) !important;
202
+ -webkit-text-fill-color: var(--vl-clay) !important;
203
  }
204
  html body h2, html body .gradio-container h2, html body .stApp h2 {
205
+ font-size: 1.6rem !important;
206
+ color: var(--vl-clay-deep) !important;
207
+ -webkit-text-fill-color: var(--vl-clay-deep) !important;
208
  }
209
  html body h3, html body .gradio-container h3, html body .stApp h3,
210
  html body h4, html body .gradio-container h4, html body .stApp h4,
 
214
  html body [data-testid="stMarkdownContainer"] h3 *,
215
  html body .gr-markdown h3, html body .gr-markdown h3 *,
216
  html body .markdown h3, html body .markdown h3 * {
217
+ font-size: 1.15rem !important;
218
  letter-spacing: -0.01em !important;
219
  font-weight: 500 !important;
220
+ font-style: italic !important;
221
+ color: var(--vl-taupe) !important;
222
+ -webkit-text-fill-color: var(--vl-taupe) !important;
223
  }
224
 
225
  html body em,
226
  html body .gradio-container em,
227
  html body .stApp em {
228
  font-style: italic !important;
229
+ color: var(--vl-ink) !important;
230
  }
231
 
232
  /* ============================================================
233
+ * Part 4 — Labels · letterspaced uppercase, legibility-tuned
 
234
  * ============================================================ */
235
 
236
  html body .gradio-container .block-label,
 
247
  html body .stApp [data-testid="stWidgetLabel"] p {
248
  font-family: 'DM Mono', ui-monospace, monospace !important;
249
  font-size: 0.78rem !important;
250
+ color: var(--vl-clay) !important;
251
  letter-spacing: 0.13em !important;
252
  text-transform: uppercase !important;
253
  font-weight: 600 !important;
254
  background: transparent !important;
255
  }
256
 
257
+ html body .gradio-container .vl-eyebrow,
258
+ html body .stApp .vl-eyebrow {
 
259
  font-family: 'DM Mono', ui-monospace, monospace !important;
260
+ font-size: 0.7rem !important;
261
+ color: var(--vl-taupe) !important;
262
  letter-spacing: 0.2em !important;
263
  text-transform: uppercase !important;
264
+ font-weight: 500 !important;
265
  }
266
 
267
  /* ============================================================
268
+ * Part 5 — Cards / blocks · TRANSLUCENT FROSTED PAPER
 
269
  * ============================================================ */
270
 
271
  html body .gradio-container .block,
 
276
  html body .gradio-container .wrap,
277
  html body .stApp [data-testid="stForm"],
278
  html body .stApp [data-testid="stExpander"] {
279
+ background: var(--vl-surface) !important;
280
+ -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
281
+ backdrop-filter: blur(18px) saturate(120%) !important;
282
+ border: 1px solid var(--vl-border) !important;
283
+ border-radius: var(--vl-radius) !important;
284
+ box-shadow: var(--vl-shadow) !important;
285
+ padding: 24px !important;
286
+ transition: border-color var(--vl-transition), box-shadow var(--vl-transition) !important;
287
  }
288
 
289
  html body .gradio-container .block:hover,
290
  html body .stApp [data-testid="stForm"]:hover {
291
+ border-color: var(--vl-border-strong) !important;
292
  }
293
 
 
294
  html body .gradio-container .block .block,
295
  html body .gradio-container .block .gr-form {
296
+ background: rgba(255, 255, 255, 0.35) !important;
297
  box-shadow: none !important;
298
+ padding: 18px !important;
299
  }
300
 
301
  /* ============================================================
302
+ * Part 6 — Inputs · refined paper feel
303
  * ============================================================ */
304
 
305
  html body .gradio-container input[type="text"],
 
317
  html body .stApp textarea,
318
  html body .stApp [data-baseweb="select"] > div,
319
  html body .stApp [data-baseweb="input"] {
320
+ background: var(--vl-surface-solid) !important;
321
+ border: 1px solid var(--vl-border-strong) !important;
322
+ border-radius: var(--vl-radius-sm) !important;
323
+ color: var(--vl-ink) !important;
324
+ font-family: 'Lora', ui-serif, Georgia, serif !important;
325
+ font-size: 0.95rem !important;
326
+ caret-color: var(--vl-clay) !important;
327
  padding: 13px 16px !important;
328
+ transition: border-color var(--vl-transition), box-shadow var(--vl-transition) !important;
329
  }
330
 
331
  html body .gradio-container textarea,
332
  html body .stApp textarea {
333
  min-height: 130px !important;
334
+ line-height: 1.65 !important;
335
  }
336
 
337
  html body .gradio-container input:focus,
 
339
  html body .gradio-container select:focus,
340
  html body .stApp input:focus,
341
  html body .stApp textarea:focus {
342
+ border-color: var(--vl-clay) !important;
343
  outline: none !important;
344
+ box-shadow: 0 0 0 3px var(--vl-clay-soft),
345
+ 0 0 16px rgba(122, 59, 59, 0.10) !important;
346
  }
347
 
348
  html body .gradio-container ::placeholder,
349
  html body .stApp ::placeholder {
350
+ color: var(--vl-dim) !important;
351
+ font-style: italic !important;
352
  }
353
 
 
354
  html body .gradio-container select,
355
  html body .gradio-container .gr-dropdown select {
356
  appearance: none !important;
357
  -webkit-appearance: none !important;
358
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%237a3b3b'/%3E%3C/svg%3E") !important;
359
  background-repeat: no-repeat !important;
360
  background-position: right 14px center !important;
361
  padding-right: 38px !important;
362
  }
363
 
 
364
  html body .gradio-container .gr-number input,
365
  html body .gradio-container [class*="number"] input,
366
  html body .gradio-container .output-number,
 
369
  html body .stApp [data-testid="stNumberInput"] input {
370
  font-variant-numeric: tabular-nums !important;
371
  font-feature-settings: 'tnum' !important;
372
+ font-family: 'DM Mono', ui-monospace, monospace !important;
373
  }
374
 
375
  /* ============================================================
376
+ * Part 7 — Buttons · clay primary with soft warm shadow
377
  * ============================================================ */
378
 
379
  html body .gradio-container button,
 
383
  html body .gradio-container .primary,
384
  html body .stApp .stButton > button,
385
  html body .stApp button[kind="primary"] {
386
+ background: var(--vl-clay) !important;
387
+ color: var(--vl-paper-tint) !important;
388
+ font-family: 'Playfair Display', ui-serif, Georgia, serif !important;
389
+ font-weight: 500 !important;
390
+ font-size: 0.95rem !important;
391
+ letter-spacing: 0.01em !important;
392
  border: none !important;
393
+ border-radius: var(--vl-radius-sm) !important;
394
  padding: 13px 28px !important;
395
  cursor: pointer !important;
396
+ box-shadow: 0 6px 20px rgba(122, 59, 59, 0.20),
397
+ 0 0 0 1px rgba(255, 255, 255, 0.10) inset !important;
398
  transition: transform 100ms ease,
399
+ box-shadow var(--vl-transition),
400
+ background var(--vl-transition) !important;
401
  }
402
 
403
  html body .gradio-container button:hover,
404
  html body .gradio-container .gr-button:hover,
405
  html body .stApp .stButton > button:hover {
406
+ background: var(--vl-clay-deep) !important;
407
+ color: #ffffff !important;
408
+ box-shadow: 0 12px 28px rgba(122, 59, 59, 0.28),
409
+ 0 0 0 1px rgba(255, 255, 255, 0.14) inset !important;
 
410
  }
411
 
412
  html body .gradio-container button:active,
413
  html body .stApp .stButton > button:active {
414
  transform: scale(0.985) !important;
415
+ background: var(--vl-clay-deep) !important;
416
  }
417
 
418
  html body .gradio-container button.secondary,
419
  html body .gradio-container .secondary,
420
  html body .stApp button[kind="secondary"] {
421
+ background: var(--vl-surface-solid) !important;
422
+ color: var(--vl-ink) !important;
423
+ border: 1px solid var(--vl-border-strong) !important;
424
+ box-shadow: 0 4px 14px rgba(41, 35, 27, 0.08) !important;
425
  }
426
 
427
  html body .gradio-container button.secondary:hover,
428
  html body .stApp button[kind="secondary"]:hover {
429
+ background: var(--vl-surface-warm) !important;
430
+ border-color: var(--vl-clay-rim) !important;
431
+ color: var(--vl-clay) !important;
432
  }
433
 
434
  /* ============================================================
435
+ * Part 8 — Sliders, checkboxes, radios
436
  * ============================================================ */
437
 
438
  html body input[type="range"] {
439
+ accent-color: var(--vl-clay) !important;
440
  height: 4px !important;
441
  }
442
  html body input[type="range"]::-webkit-slider-thumb {
443
+ background: var(--vl-clay) !important;
444
+ border: 2px solid var(--vl-paper-tint) !important;
445
+ box-shadow: 0 0 0 1px rgba(122, 59, 59, 0.3),
446
+ 0 2px 8px rgba(122, 59, 59, 0.20) !important;
447
  width: 16px !important;
448
  height: 16px !important;
449
  }
450
  html body input[type="range"]::-moz-range-thumb {
451
+ background: var(--vl-clay) !important;
452
+ border: 2px solid var(--vl-paper-tint) !important;
453
  width: 16px !important;
454
  height: 16px !important;
455
  }
456
  html body input[type="checkbox"],
457
  html body input[type="radio"] {
458
+ accent-color: var(--vl-clay) !important;
459
  width: 15px !important;
460
  height: 15px !important;
461
  }
 
468
  html body .gradio-container input[type="file"],
469
  html body .stApp [data-testid="stFileUploader"],
470
  html body .stApp [data-testid="stFileUploaderDropzone"] {
471
+ background: var(--vl-clay-dim) !important;
472
+ border: 1px dashed var(--vl-clay-rim) !important;
473
+ border-radius: var(--vl-radius-sm) !important;
474
+ color: var(--vl-ink) !important;
475
+ transition: background var(--vl-transition),
476
+ border-color var(--vl-transition) !important;
477
  }
478
  html body .gradio-container .gr-file-upload:hover,
479
  html body .stApp [data-testid="stFileUploader"]:hover {
480
+ background: var(--vl-clay-soft) !important;
481
+ border-color: var(--vl-clay) !important;
482
  }
483
 
484
  html body input[type="file"]::file-selector-button {
485
+ background: var(--vl-clay-soft) !important;
486
+ color: var(--vl-clay) !important;
487
+ border: 1px solid var(--vl-clay-rim) !important;
488
+ border-radius: var(--vl-radius-xs) !important;
489
  padding: 7px 14px !important;
490
  margin-right: 14px !important;
491
  font-family: 'DM Mono', ui-monospace, monospace !important;
 
495
  }
496
 
497
  /* ============================================================
498
+ * Part 10 — Markdown, code, links · editorial body voice
499
  * ============================================================ */
500
 
501
  html body .gradio-container .markdown,
502
  html body .gradio-container .gr-markdown,
503
  html body .gradio-container .prose,
504
  html body .stApp [data-testid="stMarkdownContainer"] {
505
+ color: var(--vl-ink) !important;
506
+ font-family: 'Lora', ui-serif, Georgia, serif !important;
507
+ line-height: 1.7 !important;
508
+ font-size: 0.98rem !important;
509
  }
510
 
511
  html body .gradio-container a,
512
  html body .stApp a {
513
+ color: var(--vl-clay) !important;
514
  text-decoration: none !important;
515
+ border-bottom: 1px solid var(--vl-clay-rim) !important;
516
+ transition: border-color var(--vl-transition), color var(--vl-transition) !important;
517
  }
518
  html body .gradio-container a:hover,
519
  html body .stApp a:hover {
520
+ color: var(--vl-clay-deep) !important;
521
+ border-bottom-color: var(--vl-clay) !important;
522
  }
523
 
524
  html body code,
525
  html body .gradio-container code,
526
  html body .stApp code {
527
+ background: var(--vl-clay-dim) !important;
528
+ color: var(--vl-clay-deep) !important;
529
  font-family: 'DM Mono', ui-monospace, monospace !important;
530
  font-size: 0.86em !important;
531
  padding: 2px 7px !important;
532
+ border-radius: var(--vl-radius-xs) !important;
533
+ border: 1px solid var(--vl-clay-rim) !important;
534
  }
535
 
536
  html body pre code,
537
  html body .gradio-container pre code {
538
+ border: 1px solid var(--vl-border) !important;
539
+ background: var(--vl-surface-warm) !important;
540
  display: block !important;
541
  padding: 14px 16px !important;
542
+ border-radius: var(--vl-radius-sm) !important;
543
  line-height: 1.55 !important;
544
+ color: var(--vl-ink) !important;
545
+ }
546
+
547
+ html body blockquote,
548
+ html body .gradio-container blockquote,
549
+ html body .stApp blockquote {
550
+ border-left: 2px solid var(--vl-clay) !important;
551
+ padding-left: 18px !important;
552
+ font-style: italic !important;
553
+ color: var(--vl-muted) !important;
554
+ margin: 18px 0 !important;
555
  }
556
 
557
  /* ============================================================
558
  * Part 11 — Callout / interpretation card
559
+ * Use class .vl-callout on a div; auto-styles Gradio Info/Warning.
 
560
  * ============================================================ */
561
 
562
+ html body .vl-callout,
563
+ html body .gradio-container .vl-callout,
564
+ html body .stApp .vl-callout,
565
  html body .gradio-container [class*="info"]:not(button):not(input),
566
  html body .stApp .stAlert {
567
+ background: var(--vl-clay-soft) !important;
568
+ border: 1px solid var(--vl-clay-rim) !important;
569
+ border-radius: var(--vl-radius-sm) !important;
570
  padding: 14px 18px !important;
571
+ font-size: 0.95rem !important;
572
+ color: var(--vl-muted) !important;
573
+ font-family: 'Lora', ui-serif, Georgia, serif !important;
574
+ line-height: 1.65 !important;
575
+ font-style: italic !important;
576
  }
577
 
578
+ html body .vl-callout strong,
579
+ html body .gradio-container .vl-callout strong,
580
+ html body .stApp .vl-callout strong {
581
+ color: var(--vl-clay-deep) !important;
582
+ font-style: normal !important;
583
  font-weight: 600 !important;
584
  }
585
 
 
592
  background: transparent;
593
  }
594
  html body ::-webkit-scrollbar-thumb {
595
+ background: rgba(122, 59, 59, 0.20);
596
+ border-radius: var(--vl-radius-pill);
597
  border: 2px solid transparent;
598
  background-clip: padding-box;
599
  }
600
  html body ::-webkit-scrollbar-thumb:hover {
601
+ background: rgba(122, 59, 59, 0.40);
602
  background-clip: padding-box;
603
  border: 2px solid transparent;
604
  }
605
 
606
  html body .stApp header[data-testid="stHeader"] {
607
+ background: rgba(247, 243, 235, 0.72) !important;
608
  -webkit-backdrop-filter: blur(14px) !important;
609
  backdrop-filter: blur(14px) !important;
610
+ border-bottom: 1px solid var(--vl-border) !important;
611
  }
612
  html body .stApp [data-testid="stSidebar"] {
613
+ background: var(--vl-surface-warm) !important;
614
+ border-right: 1px solid var(--vl-border) !important;
615
  }
616
 
617
  /* ============================================================
 
622
  html body .gradio-container hr,
623
  html body .stApp hr {
624
  border: none !important;
625
+ border-top: 1px solid var(--vl-border) !important;
626
  margin: 24px 0 !important;
627
  }
628
 
629
  html body ::selection {
630
+ background: var(--vl-clay-soft);
631
+ color: var(--vl-clay-deep);
632
  }
633
 
 
634
  @media (prefers-reduced-motion: no-preference) {
635
  html body .gradio-container .block,
636
  html body .stApp [data-testid="stForm"] {
637
+ animation: vl-fade-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
638
  }
639
+ @keyframes vl-fade-in {
640
  from { opacity: 0; transform: translateY(4px); }
641
  to { opacity: 1; transform: translateY(0); }
642
  }