Threadbourne commited on
Commit
b63da11
·
verified ·
1 Parent(s): 14f009d

Upload custom.css

Browse files
Files changed (1) hide show
  1. custom.css +723 -0
custom.css ADDED
@@ -0,0 +1,723 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @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');
2
+
3
+ /* uglytool.dev — After Hours theme (v5)
4
+ * You bought this file. Modify whatever you want — tweak the amber,
5
+ * swap the font, remove the credit. It's yours now.
6
+ */
7
+ :root,
8
+ :root.dark,
9
+ .gradio-container,
10
+ .gradio-container.dark,
11
+ body.dark {
12
+ --ut-bg: #151412;
13
+ --ut-bg-deep: #0f0e0d;
14
+ --ut-bg-tint: #23201b;
15
+ --ut-panel: #25221e;
16
+ --ut-surface: rgba(35, 32, 28, 0.78);
17
+ --ut-surface-solid: #2b2721;
18
+ --ut-surface-hover: #342f2a;
19
+ --ut-surface-nested: rgba(36, 34, 32, 0.40);
20
+ --ut-border: rgba(255, 218, 159, 0.12);
21
+ --ut-border-strong: rgba(255, 218, 159, 0.24);
22
+
23
+ --ut-ink: #f3eee6;
24
+ --ut-ink-strong: #fdfbf6;
25
+ --ut-muted: #a79a8a;
26
+ --ut-dim: #6d655b;
27
+ --ut-on-accent: #14110e;
28
+ --ut-selection-ink: #fdfbf6;
29
+
30
+ --ut-accent: #c17f3a;
31
+ --ut-accent-bright: #f2b35f;
32
+ --ut-accent-deep: #8f5925;
33
+ --ut-accent-mid: #d8954a;
34
+ --ut-accent-soft: rgba(242, 179, 95, 0.12);
35
+ --ut-accent-dim: rgba(242, 179, 95, 0.06);
36
+ --ut-accent-rim: rgba(242, 179, 95, 0.28);
37
+
38
+ --ut-warm: #ffcf86;
39
+ --ut-warm-soft: rgba(255, 207, 134, 0.12);
40
+ --ut-warm-rim: rgba(255, 207, 134, 0.28);
41
+
42
+ --ut-cool: #80786e;
43
+ --ut-cool-soft: rgba(128, 120, 110, 0.16);
44
+ --ut-cool-rim: rgba(128, 120, 110, 0.34);
45
+
46
+ --ut-title-ink: var(--ut-accent-bright);
47
+ --ut-title-glow: 0 0 22px rgba(242, 179, 95, 0.20);
48
+
49
+ --ut-font-display: 'Syne', ui-sans-serif, sans-serif;
50
+ --ut-font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
51
+ --ut-font-mono: 'DM Mono', ui-monospace, monospace;
52
+
53
+ --ut-radius: 18px;
54
+ --ut-radius-sm: 12px;
55
+ --ut-radius-xs: 8px;
56
+ --ut-radius-pill: 999px;
57
+ --ut-transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
58
+
59
+ --ut-shadow: 0 28px 70px rgba(0, 0, 0, 0.42),
60
+ 0 1px 0 rgba(255, 218, 159, 0.07) inset,
61
+ 0 0 0 1px rgba(255, 218, 159, 0.035) inset;
62
+ --ut-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.30);
63
+ --ut-glow: 0 0 34px rgba(242, 179, 95, 0.20);
64
+
65
+ --ut-bg-layers: radial-gradient(ellipse 72% 46% at 78% -8%, rgba(242, 179, 95, 0.14), transparent 58%),
66
+ radial-gradient(ellipse 56% 40% at 8% 18%, rgba(255, 207, 134, 0.055), transparent 60%),
67
+ linear-gradient(180deg, var(--ut-bg-tint) 0%, var(--ut-bg) 56%, var(--ut-bg-deep) 100%);
68
+ --ut-nav-bg: rgba(15, 14, 13, 0.76);
69
+ --ut-card-sheen: linear-gradient(180deg, rgba(255, 218, 159, 0.035), transparent 48%);
70
+ --ut-bleed: linear-gradient(180deg, rgba(242, 179, 95, 0.09), rgba(242, 179, 95, 0) 48%),
71
+ repeating-linear-gradient(180deg, rgba(242, 179, 95, 0.045) 0 1px, transparent 1px 30px);
72
+ --ut-grid: linear-gradient(90deg, rgba(242, 179, 95, 0.035) 1px, transparent 1px),
73
+ linear-gradient(180deg, rgba(242, 179, 95, 0.025) 1px, transparent 1px);
74
+ --ut-grid-size: 72px 72px;
75
+ --ut-focus-glow: 0 0 20px rgba(242, 179, 95, 0.12);
76
+ --ut-btn-grad: linear-gradient(135deg, #c17f3a 0%, #f2b35f 100%);
77
+ --ut-btn-grad-hover:linear-gradient(135deg, #f2b35f 0%, #ffd493 100%);
78
+ --ut-btn-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
79
+ --ut-btn-shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(255, 255, 255, 0.20) inset;
80
+ --ut-thumb-glow: 0 0 12px rgba(128, 120, 110, 0.30);
81
+ --ut-arrow: 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='%23f2b35f'/%3E%3C/svg%3E");
82
+ --ut-scroll: rgba(242, 179, 95, 0.28);
83
+ --ut-scroll-hover: rgba(242, 179, 95, 0.48);
84
+ --ut-code-block-bg: rgba(0, 0, 0, 0.25);
85
+ }
86
+
87
+ /* ============================================================
88
+ * Gradio engine variables — map the framework's hooks to our tokens.
89
+ * ============================================================ */
90
+ :root,
91
+ :root.dark,
92
+ .gradio-container,
93
+ .gradio-container.dark,
94
+ body.dark {
95
+ --body-background-fill: var(--ut-bg);
96
+ --background-fill-primary: var(--ut-panel);
97
+ --background-fill-secondary: var(--ut-surface-solid);
98
+ --body-text-color: var(--ut-ink);
99
+ --body-text-color-subdued: var(--ut-muted);
100
+ --color-accent: var(--ut-accent);
101
+ --color-accent-soft: var(--ut-accent-soft);
102
+ --border-color-primary: var(--ut-border);
103
+ --border-color-accent: var(--ut-cool);
104
+
105
+ --block-background-fill: var(--ut-surface);
106
+ --block-border-color: var(--ut-border);
107
+ --block-border-width: 1px;
108
+ --block-radius: var(--ut-radius);
109
+ --block-shadow: var(--ut-shadow);
110
+
111
+ --block-title-background-fill: transparent;
112
+ --block-title-border-color: transparent;
113
+ --block-title-text-color: var(--ut-ink);
114
+ --block-title-text-size: 1.05rem;
115
+ --block-title-text-weight: 700;
116
+ --block-label-background-fill: transparent;
117
+ --block-label-border-color: transparent;
118
+ --block-label-text-color: var(--ut-accent-bright);
119
+ --block-label-text-size: 0.72rem;
120
+ --block-label-text-weight: 500;
121
+
122
+ --input-background-fill: var(--ut-surface-solid);
123
+ --input-background-fill-focus: var(--ut-surface-solid);
124
+ --input-border-color: var(--ut-border);
125
+ --input-border-color-focus: var(--ut-cool);
126
+ --input-text-size: 0.9rem;
127
+ --input-radius: var(--ut-radius-sm);
128
+
129
+ --button-primary-background-fill: var(--ut-accent);
130
+ --button-primary-background-fill-hover: var(--ut-accent-bright);
131
+ --button-primary-text-color: var(--ut-on-accent);
132
+ --button-primary-text-color-hover: var(--ut-on-accent);
133
+ --button-primary-border-color: var(--ut-accent);
134
+ --button-secondary-background-fill: var(--ut-surface-solid);
135
+ --button-secondary-background-fill-hover: var(--ut-surface-hover);
136
+ --button-secondary-text-color: var(--ut-ink);
137
+ --button-secondary-text-color-hover: var(--ut-ink-strong);
138
+ --button-secondary-border-color: var(--ut-border-strong);
139
+ --button-large-text-size: 0.92rem;
140
+ --button-large-text-weight: 600;
141
+ --button-large-radius: var(--ut-radius-sm);
142
+
143
+ --slider-color: var(--ut-cool);
144
+
145
+ --font: var(--ut-font-body);
146
+ --font-mono: var(--ut-font-mono);
147
+
148
+ --radius-xxs: 2px;
149
+ --radius-xs: 4px;
150
+ --radius-sm: var(--ut-radius-xs);
151
+ --radius-md: var(--ut-radius-sm);
152
+ --radius-lg: var(--ut-radius);
153
+ }
154
+
155
+ /* ============================================================
156
+ * Part 2 — Root containers · LAYERED BACKGROUND + decorations
157
+ * ============================================================ */
158
+
159
+ html body,
160
+ html body.dark,
161
+ html body .gradio-container,
162
+ html body .gradio-container.dark,
163
+ html body .stApp,
164
+ html body .stApp > div,
165
+ html body [data-testid="stAppViewContainer"] {
166
+ background: var(--ut-bg-layers) !important;
167
+ background-attachment: fixed !important;
168
+ color: var(--ut-ink) !important;
169
+ font-family: var(--ut-font-body) !important;
170
+ line-height: 1.6 !important;
171
+ }
172
+
173
+ /* Decorative light-bleed + faint engineering grid on the app shell */
174
+ html body .gradio-container::before,
175
+ html body .stApp::before {
176
+ content: "" !important;
177
+ position: fixed !important;
178
+ inset: 0 0 auto 0 !important;
179
+ height: 230px !important;
180
+ pointer-events: none !important;
181
+ z-index: 0 !important;
182
+ background: var(--ut-bleed) !important;
183
+ -webkit-mask-image: linear-gradient(180deg, black, transparent 88%) !important;
184
+ mask-image: linear-gradient(180deg, black, transparent 88%) !important;
185
+ opacity: 0.72 !important;
186
+ }
187
+ html body .gradio-container::after,
188
+ html body .stApp::after {
189
+ content: "" !important;
190
+ position: fixed !important;
191
+ inset: 0 !important;
192
+ pointer-events: none !important;
193
+ z-index: 0 !important;
194
+ background-image: var(--ut-grid) !important;
195
+ background-size: var(--ut-grid-size) !important;
196
+ -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%) !important;
197
+ mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%) !important;
198
+ opacity: 0.42 !important;
199
+ }
200
+
201
+ html body .main .block-container,
202
+ html body .stApp [data-testid="stVerticalBlock"] {
203
+ background: transparent !important;
204
+ position: relative !important;
205
+ z-index: 1 !important;
206
+ }
207
+
208
+ /* ============================================================
209
+ * Part 3 — Typography
210
+ * ============================================================ */
211
+
212
+ html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
213
+ html body .gradio-container h1, html body .gradio-container h2, html body .gradio-container h3,
214
+ html body .gradio-container h4, html body .gradio-container h5, html body .gradio-container h6,
215
+ html body .gradio-container h1 *, html body .gradio-container h2 *, html body .gradio-container h3 *,
216
+ html body .prose h1, html body .prose h2, html body .prose h3, html body .prose h4,
217
+ html body .prose h1 *, html body .prose h2 *, html body .prose h3 *,
218
+ html body .markdown h1, html body .markdown h2, html body .markdown h3,
219
+ html body .markdown h1 *, html body .markdown h2 *, html body .markdown h3 *,
220
+ html body .gr-markdown h1, html body .gr-markdown h2, html body .gr-markdown h3,
221
+ html body .gr-markdown h1 *, html body .gr-markdown h2 *, html body .gr-markdown h3 *,
222
+ html body .stApp h1, html body .stApp h2, html body .stApp h3,
223
+ html body [data-testid="stMarkdownContainer"] h1,
224
+ html body [data-testid="stMarkdownContainer"] h2,
225
+ html body [data-testid="stMarkdownContainer"] h3,
226
+ html body [data-testid="stMarkdownContainer"] h1 *,
227
+ html body [data-testid="stMarkdownContainer"] h2 *,
228
+ html body [data-testid="stMarkdownContainer"] h3 * {
229
+ font-family: var(--ut-font-display) !important;
230
+ font-weight: 700 !important;
231
+ letter-spacing: -0.02em !important;
232
+ color: var(--ut-ink) !important;
233
+ -webkit-text-fill-color: var(--ut-ink) !important;
234
+ background-image: none !important;
235
+ background-clip: unset !important;
236
+ -webkit-background-clip: unset !important;
237
+ line-height: 1.12 !important;
238
+ }
239
+
240
+ html body h1, html body .gradio-container h1, html body .stApp h1 {
241
+ font-size: 2.6rem !important;
242
+ line-height: 1.05 !important;
243
+ margin-bottom: 0.3em !important;
244
+ letter-spacing: -0.03em !important;
245
+ color: var(--ut-title-ink) !important;
246
+ -webkit-text-fill-color: var(--ut-title-ink) !important;
247
+ text-shadow: var(--ut-title-glow) !important;
248
+ }
249
+ html body h2, html body .gradio-container h2, html body .stApp h2 {
250
+ font-size: 1.5rem !important;
251
+ color: var(--ut-accent) !important;
252
+ -webkit-text-fill-color: var(--ut-accent) !important;
253
+ }
254
+ html body h3, html body .gradio-container h3, html body .stApp h3,
255
+ html body h4, html body .gradio-container h4, html body .stApp h4,
256
+ html body h3 *, html body .gradio-container h3 *, html body .stApp h3 *,
257
+ html body h4 *, html body .gradio-container h4 *, html body .stApp h4 *,
258
+ html body [data-testid="stMarkdownContainer"] h3,
259
+ html body [data-testid="stMarkdownContainer"] h3 *,
260
+ html body .gr-markdown h3, html body .gr-markdown h3 *,
261
+ html body .markdown h3, html body .markdown h3 * {
262
+ font-size: 1.1rem !important;
263
+ letter-spacing: -0.01em !important;
264
+ font-weight: 500 !important;
265
+ color: var(--ut-accent-deep) !important;
266
+ -webkit-text-fill-color: var(--ut-accent-deep) !important;
267
+ }
268
+
269
+ html body em,
270
+ html body .gradio-container em,
271
+ html body .stApp em {
272
+ font-style: italic !important;
273
+ color: var(--ut-ink) !important;
274
+ }
275
+
276
+ html body blockquote,
277
+ html body .gradio-container blockquote,
278
+ html body .stApp blockquote {
279
+ border-left: 2px solid var(--ut-accent-rim) !important;
280
+ padding-left: 16px !important;
281
+ color: var(--ut-muted) !important;
282
+ font-style: italic !important;
283
+ }
284
+
285
+ /* ============================================================
286
+ * Part 4 — Labels · LETTERSPACED UPPERCASE
287
+ * ============================================================ */
288
+
289
+ html body .gradio-container .block-label,
290
+ html body .gradio-container .block-label *,
291
+ html body .gradio-container label,
292
+ html body .gradio-container label > *,
293
+ html body .gradio-container [class*="label-wrap"],
294
+ html body .gradio-container [class*="label-wrap"] *,
295
+ html body .gradio-container [data-testid*="label"],
296
+ html body .gradio-container .wrap > label,
297
+ html body .stApp label,
298
+ html body .stApp [data-testid="stWidgetLabel"],
299
+ html body .stApp [data-testid="stWidgetLabel"] > *,
300
+ html body .stApp [data-testid="stWidgetLabel"] p {
301
+ font-family: var(--ut-font-mono) !important;
302
+ font-size: 0.78rem !important;
303
+ color: var(--ut-accent-bright) !important;
304
+ letter-spacing: 0.13em !important;
305
+ text-transform: uppercase !important;
306
+ font-weight: 600 !important;
307
+ background: transparent !important;
308
+ }
309
+
310
+ /* Section eyebrows / kickers — even more letterspaced */
311
+ html body .gradio-container .ut-eyebrow,
312
+ html body .stApp .ut-eyebrow {
313
+ font-family: var(--ut-font-mono) !important;
314
+ font-size: 0.68rem !important;
315
+ color: var(--ut-muted) !important;
316
+ letter-spacing: 0.2em !important;
317
+ text-transform: uppercase !important;
318
+ }
319
+
320
+ /* ============================================================
321
+ * Part 5 — Cards / blocks · TRANSLUCENT GLASS + SOFT GLOW
322
+ * ============================================================ */
323
+
324
+ html body .gradio-container .block,
325
+ html body .gradio-container .gr-block,
326
+ html body .gradio-container .gr-padded,
327
+ html body .gradio-container .gr-form,
328
+ html body .gradio-container .form,
329
+ html body .gradio-container .gr-box,
330
+ html body .stApp [data-testid="stForm"],
331
+ html body .stApp [data-testid="stExpander"] {
332
+ background: var(--ut-card-sheen), var(--ut-surface) !important;
333
+ -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
334
+ backdrop-filter: blur(18px) saturate(140%) !important;
335
+ border: 1px solid var(--ut-border) !important;
336
+ border-radius: var(--ut-radius) !important;
337
+ box-shadow: var(--ut-shadow) !important;
338
+ padding: 22px !important;
339
+ position: relative !important;
340
+ z-index: 1 !important;
341
+ transition: border-color var(--ut-transition), box-shadow var(--ut-transition) !important;
342
+ }
343
+
344
+ /* Top hairline accent on cards (matches the Path B wrapper) */
345
+ html body .gradio-container .block::before,
346
+ html body .gradio-container .form::before,
347
+ html body .stApp [data-testid="stForm"]::before {
348
+ content: "" !important;
349
+ position: absolute !important;
350
+ top: 0 !important; left: 0 !important; right: 0 !important;
351
+ height: 1px !important;
352
+ background: var(--ut-card-hairline) !important;
353
+ opacity: 0.66 !important;
354
+ pointer-events: none !important;
355
+ z-index: 2 !important;
356
+ }
357
+
358
+ html body .gradio-container .block:hover,
359
+ html body .gradio-container .form:hover,
360
+ html body .stApp [data-testid="stForm"]:hover {
361
+ border-color: var(--ut-border-strong) !important;
362
+ }
363
+
364
+ /* Layout wrappers + text blocks must NOT look like cards (kills the
365
+ russian-doll nesting: the page wrapper and markdown headings render flat) */
366
+ html body .gradio-container .wrap,
367
+ html body .gradio-container main.contain,
368
+ html body .gradio-container .block:has([data-testid="markdown-wrapper"]) {
369
+ background: transparent !important;
370
+ border: none !important;
371
+ box-shadow: none !important;
372
+ -webkit-backdrop-filter: none !important;
373
+ backdrop-filter: none !important;
374
+ padding: 0 !important;
375
+ }
376
+ html body .gradio-container .wrap::before,
377
+ html body .gradio-container main.contain::before,
378
+ html body .gradio-container .block:has([data-testid="markdown-wrapper"])::before {
379
+ display: none !important;
380
+ }
381
+
382
+ /* Inputs sitting directly inside a form-card shouldn't double-card */
383
+ html body .gradio-container .form .block {
384
+ background: transparent !important;
385
+ border: none !important;
386
+ box-shadow: none !important;
387
+ padding: 0 !important;
388
+ }
389
+ html body .gradio-container .form .block::before { display: none !important; }
390
+
391
+ /* Nested inner blocks — slightly less prominent */
392
+ html body .gradio-container .block .block:not(.form .block),
393
+ html body .gradio-container .block .gr-form {
394
+ background: var(--ut-surface-nested) !important;
395
+ box-shadow: none !important;
396
+ padding: 16px !important;
397
+ }
398
+
399
+ /* ============================================================
400
+ * Part 6 — Inputs · refined borders, generous radii, cool focus glow
401
+ * ============================================================ */
402
+
403
+ html body .gradio-container input[type="text"],
404
+ html body .gradio-container input[type="number"],
405
+ html body .gradio-container input[type="email"],
406
+ html body .gradio-container input[type="password"],
407
+ html body .gradio-container input[type="search"],
408
+ html body .gradio-container textarea,
409
+ html body .gradio-container select,
410
+ html body .gradio-container .gr-textbox,
411
+ html body .gradio-container .gr-textbox textarea,
412
+ html body .gradio-container .gr-textbox input,
413
+ html body .stApp input[type="text"],
414
+ html body .stApp input[type="number"],
415
+ html body .stApp textarea,
416
+ html body .stApp [data-baseweb="select"] > div,
417
+ html body .stApp [data-baseweb="input"] {
418
+ background: var(--ut-surface-solid) !important;
419
+ border: 1px solid var(--ut-border-strong) !important;
420
+ border-radius: var(--ut-radius-sm) !important;
421
+ color: var(--ut-ink) !important;
422
+ font-family: var(--ut-font-mono) !important;
423
+ font-size: 0.9rem !important;
424
+ caret-color: var(--ut-warm) !important;
425
+ padding: 13px 16px !important;
426
+ transition: border-color var(--ut-transition), box-shadow var(--ut-transition) !important;
427
+ }
428
+
429
+ html body .gradio-container textarea,
430
+ html body .stApp textarea {
431
+ min-height: 130px !important;
432
+ line-height: 1.6 !important;
433
+ }
434
+
435
+ html body .gradio-container input:focus,
436
+ html body .gradio-container textarea:focus,
437
+ html body .gradio-container select:focus,
438
+ html body .stApp input:focus,
439
+ html body .stApp textarea:focus {
440
+ border-color: var(--ut-cool) !important;
441
+ outline: none !important;
442
+ box-shadow: 0 0 0 3px var(--ut-accent-soft), var(--ut-focus-glow) !important;
443
+ }
444
+
445
+ html body .gradio-container ::placeholder,
446
+ html body .stApp ::placeholder {
447
+ color: var(--ut-dim) !important;
448
+ }
449
+
450
+ /* Custom select — inline SVG accent arrow */
451
+ html body .gradio-container select,
452
+ html body .gradio-container .gr-dropdown select {
453
+ appearance: none !important;
454
+ -webkit-appearance: none !important;
455
+ background-image: var(--ut-arrow) !important;
456
+ background-repeat: no-repeat !important;
457
+ background-position: right 14px center !important;
458
+ padding-right: 38px !important;
459
+ }
460
+
461
+ /* Numeric outputs — tabular nums */
462
+ html body .gradio-container .gr-number input,
463
+ html body .gradio-container [class*="number"] input,
464
+ html body .gradio-container .output-number,
465
+ html body .gradio-container .metric,
466
+ html body .stApp [data-testid="stMetricValue"],
467
+ html body .stApp [data-testid="stNumberInput"] input {
468
+ font-variant-numeric: tabular-nums !important;
469
+ font-feature-settings: 'tnum' !important;
470
+ }
471
+
472
+ /* ============================================================
473
+ * Part 7 — Buttons · gradient fill + glow hover
474
+ * ============================================================ */
475
+
476
+ html body .gradio-container button,
477
+ html body .gradio-container .gr-button,
478
+ html body .gradio-container [class*="gr-button"],
479
+ html body .gradio-container button.primary,
480
+ html body .gradio-container .primary,
481
+ html body .stApp .stButton > button,
482
+ html body .stApp button[kind="primary"] {
483
+ background: var(--ut-btn-grad) !important;
484
+ color: var(--ut-on-accent) !important;
485
+ font-family: var(--ut-font-display) !important;
486
+ font-weight: 600 !important;
487
+ font-size: 0.92rem !important;
488
+ letter-spacing: 0.02em !important;
489
+ border: none !important;
490
+ border-radius: var(--ut-radius-sm) !important;
491
+ padding: 13px 28px !important;
492
+ cursor: pointer !important;
493
+ box-shadow: var(--ut-btn-shadow) !important;
494
+ transition: transform 100ms ease,
495
+ box-shadow var(--ut-transition),
496
+ background var(--ut-transition) !important;
497
+ }
498
+
499
+ html body .gradio-container button:hover,
500
+ html body .gradio-container .gr-button:hover,
501
+ html body .stApp .stButton > button:hover {
502
+ background: var(--ut-btn-grad-hover) !important;
503
+ color: var(--ut-on-accent) !important;
504
+ box-shadow: var(--ut-btn-shadow-hover), var(--ut-glow) !important;
505
+ }
506
+
507
+ html body .gradio-container button:active,
508
+ html body .stApp .stButton > button:active {
509
+ transform: scale(0.985) !important;
510
+ background: var(--ut-accent-deep) !important;
511
+ }
512
+
513
+ html body .gradio-container button.secondary,
514
+ html body .gradio-container .secondary,
515
+ html body .stApp button[kind="secondary"] {
516
+ background: var(--ut-surface-solid) !important;
517
+ color: var(--ut-ink) !important;
518
+ border: 1px solid var(--ut-border-strong) !important;
519
+ box-shadow: var(--ut-shadow-sm) !important;
520
+ }
521
+
522
+ html body .gradio-container button.secondary:hover,
523
+ html body .stApp button[kind="secondary"]:hover {
524
+ background: var(--ut-surface-hover) !important;
525
+ border-color: var(--ut-accent-rim) !important;
526
+ color: var(--ut-ink-strong) !important;
527
+ }
528
+
529
+ /* ============================================================
530
+ * Part 8 — Sliders, checkboxes, radios · cool accent
531
+ * ============================================================ */
532
+
533
+ html body input[type="range"] {
534
+ accent-color: var(--ut-cool) !important;
535
+ height: 4px !important;
536
+ }
537
+ html body input[type="range"]::-webkit-slider-thumb {
538
+ background: var(--ut-cool) !important;
539
+ border: 2px solid var(--ut-bg) !important;
540
+ box-shadow: 0 0 0 1px var(--ut-cool-rim), var(--ut-thumb-glow) !important;
541
+ width: 16px !important;
542
+ height: 16px !important;
543
+ }
544
+ html body input[type="range"]::-moz-range-thumb {
545
+ background: var(--ut-cool) !important;
546
+ border: 2px solid var(--ut-bg) !important;
547
+ width: 16px !important;
548
+ height: 16px !important;
549
+ }
550
+ html body input[type="checkbox"],
551
+ html body input[type="radio"] {
552
+ accent-color: var(--ut-accent) !important;
553
+ width: 15px !important;
554
+ height: 15px !important;
555
+ }
556
+
557
+ /* ============================================================
558
+ * Part 9 — File uploads
559
+ * ============================================================ */
560
+
561
+ html body .gradio-container .gr-file-upload,
562
+ html body .gradio-container input[type="file"],
563
+ html body .stApp [data-testid="stFileUploader"],
564
+ html body .stApp [data-testid="stFileUploaderDropzone"] {
565
+ background: var(--ut-accent-dim) !important;
566
+ border: 1px dashed var(--ut-accent-rim) !important;
567
+ border-radius: var(--ut-radius-sm) !important;
568
+ color: var(--ut-ink) !important;
569
+ transition: background var(--ut-transition),
570
+ border-color var(--ut-transition) !important;
571
+ }
572
+ html body .gradio-container .gr-file-upload:hover,
573
+ html body .stApp [data-testid="stFileUploader"]:hover {
574
+ background: var(--ut-accent-soft) !important;
575
+ border-color: var(--ut-accent) !important;
576
+ }
577
+
578
+ html body input[type="file"]::file-selector-button {
579
+ background: var(--ut-accent-soft) !important;
580
+ color: var(--ut-accent) !important;
581
+ border: 1px solid var(--ut-accent-rim) !important;
582
+ border-radius: var(--ut-radius-xs) !important;
583
+ padding: 7px 14px !important;
584
+ margin-right: 14px !important;
585
+ font-family: var(--ut-font-mono) !important;
586
+ font-size: 0.78rem !important;
587
+ letter-spacing: 0.06em !important;
588
+ cursor: pointer !important;
589
+ }
590
+
591
+ /* ============================================================
592
+ * Part 10 — Markdown, code, links
593
+ * ============================================================ */
594
+
595
+ html body .gradio-container .markdown,
596
+ html body .gradio-container .gr-markdown,
597
+ html body .gradio-container .prose,
598
+ html body .stApp [data-testid="stMarkdownContainer"] {
599
+ color: var(--ut-ink) !important;
600
+ font-family: var(--ut-font-body) !important;
601
+ line-height: 1.65 !important;
602
+ }
603
+
604
+ html body .gradio-container a,
605
+ html body .stApp a {
606
+ color: var(--ut-accent) !important;
607
+ text-decoration: none !important;
608
+ border-bottom: 1px solid var(--ut-accent-rim) !important;
609
+ transition: border-color var(--ut-transition), color var(--ut-transition) !important;
610
+ }
611
+ html body .gradio-container a:hover,
612
+ html body .stApp a:hover {
613
+ color: var(--ut-accent-bright) !important;
614
+ border-bottom-color: var(--ut-accent) !important;
615
+ }
616
+
617
+ html body code,
618
+ html body .gradio-container code,
619
+ html body .stApp code {
620
+ background: var(--ut-accent-dim) !important;
621
+ color: var(--ut-accent) !important;
622
+ font-family: var(--ut-font-mono) !important;
623
+ font-size: 0.86em !important;
624
+ padding: 2px 7px !important;
625
+ border-radius: var(--ut-radius-xs) !important;
626
+ border: 1px solid var(--ut-accent-rim) !important;
627
+ }
628
+
629
+ html body pre code,
630
+ html body .gradio-container pre code {
631
+ border: 1px solid var(--ut-border) !important;
632
+ background: var(--ut-code-block-bg) !important;
633
+ display: block !important;
634
+ padding: 14px 16px !important;
635
+ border-radius: var(--ut-radius-sm) !important;
636
+ line-height: 1.55 !important;
637
+ }
638
+
639
+ /* ============================================================
640
+ * Part 11 — Callout / interpretation card
641
+ * Use class .ut-callout on a div for editorial-voice prose blocks.
642
+ * ============================================================ */
643
+
644
+ html body .ut-callout,
645
+ html body .gradio-container .ut-callout,
646
+ html body .stApp .ut-callout,
647
+ html body .gradio-container [class*="info"]:not(button):not(input),
648
+ html body .stApp .stAlert {
649
+ background: var(--ut-accent-soft) !important;
650
+ border: 1px solid var(--ut-accent-rim) !important;
651
+ border-radius: var(--ut-radius-sm) !important;
652
+ padding: 14px 18px !important;
653
+ font-size: 0.9rem !important;
654
+ color: var(--ut-muted) !important;
655
+ line-height: 1.6 !important;
656
+ }
657
+
658
+ html body .ut-callout strong,
659
+ html body .gradio-container .ut-callout strong,
660
+ html body .stApp .ut-callout strong {
661
+ color: var(--ut-ink) !important;
662
+ font-weight: 600 !important;
663
+ }
664
+
665
+ /* ============================================================
666
+ * Part 12 — Scrollbars + Streamlit chrome
667
+ * ============================================================ */
668
+
669
+ html body ::-webkit-scrollbar { width: 10px; height: 10px; }
670
+ html body ::-webkit-scrollbar-track {
671
+ background: transparent;
672
+ }
673
+ html body ::-webkit-scrollbar-thumb {
674
+ background: var(--ut-scroll);
675
+ border-radius: var(--ut-radius-pill);
676
+ border: 2px solid transparent;
677
+ background-clip: padding-box;
678
+ }
679
+ html body ::-webkit-scrollbar-thumb:hover {
680
+ background: var(--ut-scroll-hover);
681
+ background-clip: padding-box;
682
+ border: 2px solid transparent;
683
+ }
684
+
685
+ html body .stApp header[data-testid="stHeader"] {
686
+ background: var(--ut-nav-bg) !important;
687
+ -webkit-backdrop-filter: blur(14px) !important;
688
+ backdrop-filter: blur(14px) !important;
689
+ border-bottom: 1px solid var(--ut-border) !important;
690
+ }
691
+ html body .stApp [data-testid="stSidebar"] {
692
+ background: var(--ut-panel) !important;
693
+ border-right: 1px solid var(--ut-border) !important;
694
+ }
695
+
696
+ /* ============================================================
697
+ * Part 13 — Misc polish
698
+ * ============================================================ */
699
+
700
+ html body hr,
701
+ html body .gradio-container hr,
702
+ html body .stApp hr {
703
+ border: none !important;
704
+ border-top: 1px solid var(--ut-border) !important;
705
+ margin: 24px 0 !important;
706
+ }
707
+
708
+ html body ::selection {
709
+ background: var(--ut-accent-soft);
710
+ color: var(--ut-selection-ink);
711
+ }
712
+
713
+ /* Animate things appearing — subtle, not distracting */
714
+ @media (prefers-reduced-motion: no-preference) {
715
+ html body .gradio-container .block,
716
+ html body .stApp [data-testid="stForm"] {
717
+ animation: ut-fade-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
718
+ }
719
+ @keyframes ut-fade-in {
720
+ from { opacity: 0; transform: translateY(4px); }
721
+ to { opacity: 1; transform: translateY(0); }
722
+ }
723
+ }