Threadbourne commited on
Commit
3c04a79
·
verified ·
1 Parent(s): a11cd7b

Create after-hours.css

Browse files
Files changed (1) hide show
  1. after-hours.css +615 -0
after-hours.css ADDED
@@ -0,0 +1,615 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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,
31
+ :root.dark,
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,
140
+ html body.dark,
141
+ html body .gradio-container,
142
+ html body .gradio-container.dark,
143
+ 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
+
156
+ html body .main .block-container,
157
+ html body .stApp [data-testid="stVerticalBlock"] {
158
+ background: transparent !important;
159
+ }
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,
167
+ html body .gradio-container h1, html body .gradio-container h2, html body .gradio-container h3,
168
+ html body .gradio-container h4, html body .gradio-container h5, html body .gradio-container h6,
169
+ html body .gradio-container h1 *, html body .gradio-container h2 *, html body .gradio-container h3 *,
170
+ html body .prose h1, html body .prose h2, html body .prose h3, html body .prose h4,
171
+ html body .prose h1 *, html body .prose h2 *, html body .prose h3 *,
172
+ html body .markdown h1, html body .markdown h2, html body .markdown h3,
173
+ html body .markdown h1 *, html body .markdown h2 *, html body .markdown h3 *,
174
+ html body .gr-markdown h1, html body .gr-markdown h2, html body .gr-markdown h3,
175
+ html body .gr-markdown h1 *, html body .gr-markdown h2 *, html body .gr-markdown h3 *,
176
+ html body .stApp h1, html body .stApp h2, html body .stApp h3,
177
+ html body [data-testid="stMarkdownContainer"] h1,
178
+ html body [data-testid="stMarkdownContainer"] h2,
179
+ 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-strong) !important;
187
+ -webkit-text-fill-color: var(--ah-text-strong) !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
+ }
198
+ html body h2, html body .gradio-container h2, html body .stApp h2 {
199
+ font-size: 1.5rem !important;
200
+ }
201
+ html body h3, html body .gradio-container h3, html body .stApp h3 {
202
+ font-size: 1.15rem !important;
203
+ letter-spacing: -0.01em !important;
204
+ }
205
+
206
+ html body em,
207
+ html body .gradio-container em,
208
+ html body .stApp em {
209
+ font-style: italic !important;
210
+ color: var(--ah-text) !important;
211
+ }
212
+
213
+ /* ============================================================
214
+ * Part 4 — Labels · LETTERSPACED UPPERCASE AS A SYSTEM
215
+ * Three tiers of letterspacing by hierarchy.
216
+ * ============================================================ */
217
+
218
+ html body .gradio-container .block-label,
219
+ html body .gradio-container .block-label *,
220
+ html body .gradio-container label,
221
+ html body .gradio-container label > *,
222
+ html body .gradio-container [class*="label-wrap"],
223
+ html body .gradio-container [class*="label-wrap"] *,
224
+ html body .gradio-container [data-testid*="label"],
225
+ html body .gradio-container .wrap > label,
226
+ html body .stApp label,
227
+ html body .stApp [data-testid="stWidgetLabel"],
228
+ html body .stApp [data-testid="stWidgetLabel"] > *,
229
+ html body .stApp [data-testid="stWidgetLabel"] p {
230
+ font-family: 'DM Mono', ui-monospace, monospace !important;
231
+ font-size: 0.7rem !important;
232
+ color: var(--ah-amber) !important;
233
+ letter-spacing: 0.16em !important;
234
+ text-transform: uppercase !important;
235
+ font-weight: 500 !important;
236
+ background: transparent !important;
237
+ }
238
+
239
+ /* Section eyebrows / kickers — even more letterspaced */
240
+ html body .gradio-container .ah-eyebrow,
241
+ html body .stApp .ah-eyebrow {
242
+ font-family: 'DM Mono', ui-monospace, monospace !important;
243
+ font-size: 0.68rem !important;
244
+ color: var(--ah-muted) !important;
245
+ letter-spacing: 0.2em !important;
246
+ text-transform: uppercase !important;
247
+ }
248
+
249
+ /* ============================================================
250
+ * Part 5 — Cards / blocks · TRANSLUCENT GLASS + SOFT GLOW
251
+ * The single most "premium" move after the layered bg.
252
+ * ============================================================ */
253
+
254
+ html body .gradio-container .block,
255
+ html body .gradio-container .gr-block,
256
+ html body .gradio-container .gr-padded,
257
+ html body .gradio-container .gr-form,
258
+ html body .gradio-container .gr-box,
259
+ html body .gradio-container .wrap,
260
+ html body .stApp [data-testid="stForm"],
261
+ html body .stApp [data-testid="stExpander"] {
262
+ background: var(--ah-surface) !important;
263
+ -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
264
+ backdrop-filter: blur(18px) saturate(140%) !important;
265
+ border: 1px solid var(--ah-border) !important;
266
+ border-radius: var(--ah-radius) !important;
267
+ box-shadow: var(--ah-shadow) !important;
268
+ padding: 22px !important;
269
+ transition: border-color var(--ah-transition), box-shadow var(--ah-transition) !important;
270
+ }
271
+
272
+ html body .gradio-container .block:hover,
273
+ html body .stApp [data-testid="stForm"]:hover {
274
+ border-color: var(--ah-border-strong) !important;
275
+ }
276
+
277
+ /* Nested inner blocks — slightly less prominent */
278
+ html body .gradio-container .block .block,
279
+ html body .gradio-container .block .gr-form {
280
+ background: rgba(36, 34, 32, 0.40) !important;
281
+ box-shadow: none !important;
282
+ padding: 16px !important;
283
+ }
284
+
285
+ /* ============================================================
286
+ * Part 6 — Inputs · refined borders, generous radii, amber focus glow
287
+ * ============================================================ */
288
+
289
+ html body .gradio-container input[type="text"],
290
+ html body .gradio-container input[type="number"],
291
+ html body .gradio-container input[type="email"],
292
+ html body .gradio-container input[type="password"],
293
+ html body .gradio-container input[type="search"],
294
+ html body .gradio-container textarea,
295
+ html body .gradio-container select,
296
+ html body .gradio-container .gr-textbox,
297
+ html body .gradio-container .gr-textbox textarea,
298
+ html body .gradio-container .gr-textbox input,
299
+ html body .stApp input[type="text"],
300
+ html body .stApp input[type="number"],
301
+ html body .stApp textarea,
302
+ html body .stApp [data-baseweb="select"] > div,
303
+ html body .stApp [data-baseweb="input"] {
304
+ background: var(--ah-surface-solid) !important;
305
+ border: 1px solid var(--ah-border-strong) !important;
306
+ border-radius: var(--ah-radius-sm) !important;
307
+ color: var(--ah-text) !important;
308
+ font-family: 'DM Mono', ui-monospace, monospace !important;
309
+ font-size: 0.9rem !important;
310
+ caret-color: var(--ah-amber) !important;
311
+ padding: 13px 16px !important;
312
+ transition: border-color var(--ah-transition), box-shadow var(--ah-transition) !important;
313
+ }
314
+
315
+ html body .gradio-container textarea,
316
+ html body .stApp textarea {
317
+ min-height: 130px !important;
318
+ line-height: 1.6 !important;
319
+ }
320
+
321
+ html body .gradio-container input:focus,
322
+ html body .gradio-container textarea:focus,
323
+ html body .gradio-container select:focus,
324
+ html body .stApp input:focus,
325
+ html body .stApp textarea:focus {
326
+ border-color: var(--ah-amber) !important;
327
+ outline: none !important;
328
+ box-shadow: 0 0 0 3px var(--ah-amber-soft),
329
+ 0 0 20px rgba(193, 127, 58, 0.10) !important;
330
+ }
331
+
332
+ html body .gradio-container ::placeholder,
333
+ html body .stApp ::placeholder {
334
+ color: var(--ah-dim) !important;
335
+ }
336
+
337
+ /* Custom select — inline SVG amber arrow */
338
+ html body .gradio-container select,
339
+ html body .gradio-container .gr-dropdown select {
340
+ appearance: none !important;
341
+ -webkit-appearance: none !important;
342
+ 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;
343
+ background-repeat: no-repeat !important;
344
+ background-position: right 14px center !important;
345
+ padding-right: 38px !important;
346
+ }
347
+
348
+ /* Numeric outputs — tabular nums for premium dashboard feel */
349
+ html body .gradio-container .gr-number input,
350
+ html body .gradio-container [class*="number"] input,
351
+ html body .gradio-container .output-number,
352
+ html body .gradio-container .metric,
353
+ html body .stApp [data-testid="stMetricValue"],
354
+ html body .stApp [data-testid="stNumberInput"] input {
355
+ font-variant-numeric: tabular-nums !important;
356
+ font-feature-settings: 'tnum' !important;
357
+ }
358
+
359
+ /* ============================================================
360
+ * Part 7 — Buttons · generous radii + amber-glow hover
361
+ * ============================================================ */
362
+
363
+ html body .gradio-container button,
364
+ html body .gradio-container .gr-button,
365
+ html body .gradio-container [class*="gr-button"],
366
+ html body .gradio-container button.primary,
367
+ html body .gradio-container .primary,
368
+ html body .stApp .stButton > button,
369
+ html body .stApp button[kind="primary"] {
370
+ background: var(--ah-amber) !important;
371
+ color: var(--ah-bg) !important;
372
+ font-family: 'Syne', ui-sans-serif, sans-serif !important;
373
+ font-weight: 600 !important;
374
+ font-size: 0.92rem !important;
375
+ letter-spacing: 0.02em !important;
376
+ border: none !important;
377
+ border-radius: var(--ah-radius-sm) !important;
378
+ padding: 13px 28px !important;
379
+ cursor: pointer !important;
380
+ box-shadow: 0 8px 22px rgba(193, 127, 58, 0.22),
381
+ 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
382
+ transition: transform 100ms ease,
383
+ box-shadow var(--ah-transition),
384
+ background var(--ah-transition) !important;
385
+ }
386
+
387
+ html body .gradio-container button:hover,
388
+ html body .gradio-container .gr-button:hover,
389
+ html body .stApp .stButton > button:hover {
390
+ background: var(--ah-amber-glow) !important;
391
+ color: var(--ah-bg) !important;
392
+ box-shadow: 0 12px 32px rgba(193, 127, 58, 0.32),
393
+ 0 0 0 1px rgba(255, 255, 255, 0.10) inset,
394
+ var(--ah-shadow-amber) !important;
395
+ }
396
+
397
+ html body .gradio-container button:active,
398
+ html body .stApp .stButton > button:active {
399
+ transform: scale(0.985) !important;
400
+ background: var(--ah-amber-warm) !important;
401
+ }
402
+
403
+ html body .gradio-container button.secondary,
404
+ html body .gradio-container .secondary,
405
+ html body .stApp button[kind="secondary"] {
406
+ background: var(--ah-surface-solid) !important;
407
+ color: var(--ah-text) !important;
408
+ border: 1px solid var(--ah-border-strong) !important;
409
+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
410
+ }
411
+
412
+ html body .gradio-container button.secondary:hover,
413
+ html body .stApp button[kind="secondary"]:hover {
414
+ background: #342f2a !important;
415
+ border-color: var(--ah-amber-rim) !important;
416
+ color: var(--ah-text-strong) !important;
417
+ }
418
+
419
+ /* ============================================================
420
+ * Part 8 — Sliders, checkboxes, radios · refined accents
421
+ * ============================================================ */
422
+
423
+ html body input[type="range"] {
424
+ accent-color: var(--ah-amber) !important;
425
+ height: 4px !important;
426
+ }
427
+ html body input[type="range"]::-webkit-slider-thumb {
428
+ background: var(--ah-amber) !important;
429
+ border: 2px solid var(--ah-bg) !important;
430
+ box-shadow: 0 0 0 1px rgba(193, 127, 58, 0.3),
431
+ 0 0 12px rgba(193, 127, 58, 0.25) !important;
432
+ width: 16px !important;
433
+ height: 16px !important;
434
+ }
435
+ html body input[type="range"]::-moz-range-thumb {
436
+ background: var(--ah-amber) !important;
437
+ border: 2px solid var(--ah-bg) !important;
438
+ width: 16px !important;
439
+ height: 16px !important;
440
+ }
441
+ html body input[type="checkbox"],
442
+ html body input[type="radio"] {
443
+ accent-color: var(--ah-amber) !important;
444
+ width: 15px !important;
445
+ height: 15px !important;
446
+ }
447
+
448
+ /* ============================================================
449
+ * Part 9 — File uploads
450
+ * ============================================================ */
451
+
452
+ html body .gradio-container .gr-file-upload,
453
+ html body .gradio-container input[type="file"],
454
+ html body .stApp [data-testid="stFileUploader"],
455
+ html body .stApp [data-testid="stFileUploaderDropzone"] {
456
+ background: var(--ah-amber-dim) !important;
457
+ border: 1px dashed var(--ah-amber-rim) !important;
458
+ border-radius: var(--ah-radius-sm) !important;
459
+ color: var(--ah-text) !important;
460
+ transition: background var(--ah-transition),
461
+ border-color var(--ah-transition) !important;
462
+ }
463
+ html body .gradio-container .gr-file-upload:hover,
464
+ html body .stApp [data-testid="stFileUploader"]:hover {
465
+ background: var(--ah-amber-soft) !important;
466
+ border-color: var(--ah-amber) !important;
467
+ }
468
+
469
+ html body input[type="file"]::file-selector-button {
470
+ background: var(--ah-amber-soft) !important;
471
+ color: var(--ah-amber) !important;
472
+ border: 1px solid var(--ah-amber-rim) !important;
473
+ border-radius: var(--ah-radius-xs) !important;
474
+ padding: 7px 14px !important;
475
+ margin-right: 14px !important;
476
+ font-family: 'DM Mono', ui-monospace, monospace !important;
477
+ font-size: 0.78rem !important;
478
+ letter-spacing: 0.06em !important;
479
+ cursor: pointer !important;
480
+ }
481
+
482
+ /* ============================================================
483
+ * Part 10 — Markdown, code, links
484
+ * ============================================================ */
485
+
486
+ html body .gradio-container .markdown,
487
+ html body .gradio-container .gr-markdown,
488
+ html body .gradio-container .prose,
489
+ html body .stApp [data-testid="stMarkdownContainer"] {
490
+ color: var(--ah-text) !important;
491
+ font-family: 'DM Sans', ui-sans-serif, sans-serif !important;
492
+ line-height: 1.65 !important;
493
+ }
494
+
495
+ html body .gradio-container a,
496
+ html body .stApp a {
497
+ color: var(--ah-amber) !important;
498
+ text-decoration: none !important;
499
+ border-bottom: 1px solid var(--ah-amber-rim) !important;
500
+ transition: border-color var(--ah-transition), color var(--ah-transition) !important;
501
+ }
502
+ html body .gradio-container a:hover,
503
+ html body .stApp a:hover {
504
+ color: var(--ah-amber-glow) !important;
505
+ border-bottom-color: var(--ah-amber) !important;
506
+ }
507
+
508
+ html body code,
509
+ html body .gradio-container code,
510
+ html body .stApp code {
511
+ background: var(--ah-amber-dim) !important;
512
+ color: var(--ah-amber) !important;
513
+ font-family: 'DM Mono', ui-monospace, monospace !important;
514
+ font-size: 0.86em !important;
515
+ padding: 2px 7px !important;
516
+ border-radius: var(--ah-radius-xs) !important;
517
+ border: 1px solid var(--ah-amber-rim) !important;
518
+ }
519
+
520
+ html body pre code,
521
+ html body .gradio-container pre code {
522
+ border: 1px solid var(--ah-border) !important;
523
+ background: rgba(0, 0, 0, 0.25) !important;
524
+ display: block !important;
525
+ padding: 14px 16px !important;
526
+ border-radius: var(--ah-radius-sm) !important;
527
+ line-height: 1.55 !important;
528
+ }
529
+
530
+ /* ============================================================
531
+ * Part 11 — Callout / interpretation card
532
+ * Use class .ah-callout on a div for editorial-voice prose blocks.
533
+ * Also targets Gradio's built-in Info/Warning patterns.
534
+ * ============================================================ */
535
+
536
+ html body .ah-callout,
537
+ html body .gradio-container .ah-callout,
538
+ html body .stApp .ah-callout,
539
+ html body .gradio-container [class*="info"]:not(button):not(input),
540
+ html body .stApp .stAlert {
541
+ background: var(--ah-amber-soft) !important;
542
+ border: 1px solid var(--ah-amber-rim) !important;
543
+ border-radius: var(--ah-radius-sm) !important;
544
+ padding: 14px 18px !important;
545
+ font-size: 0.9rem !important;
546
+ color: var(--ah-muted) !important;
547
+ line-height: 1.6 !important;
548
+ }
549
+
550
+ html body .ah-callout strong,
551
+ html body .gradio-container .ah-callout strong,
552
+ html body .stApp .ah-callout strong {
553
+ color: var(--ah-text) !important;
554
+ font-weight: 600 !important;
555
+ }
556
+
557
+ /* ============================================================
558
+ * Part 12 — Scrollbars + Streamlit chrome
559
+ * ============================================================ */
560
+
561
+ html body ::-webkit-scrollbar { width: 10px; height: 10px; }
562
+ html body ::-webkit-scrollbar-track {
563
+ background: transparent;
564
+ }
565
+ html body ::-webkit-scrollbar-thumb {
566
+ background: rgba(193, 127, 58, 0.25);
567
+ border-radius: var(--ah-radius-pill);
568
+ border: 2px solid transparent;
569
+ background-clip: padding-box;
570
+ }
571
+ html body ::-webkit-scrollbar-thumb:hover {
572
+ background: rgba(193, 127, 58, 0.45);
573
+ background-clip: padding-box;
574
+ border: 2px solid transparent;
575
+ }
576
+
577
+ html body .stApp header[data-testid="stHeader"] {
578
+ background: rgba(26, 25, 23, 0.72) !important;
579
+ -webkit-backdrop-filter: blur(14px) !important;
580
+ backdrop-filter: blur(14px) !important;
581
+ border-bottom: 1px solid var(--ah-border) !important;
582
+ }
583
+ html body .stApp [data-testid="stSidebar"] {
584
+ background: var(--ah-bg-raised) !important;
585
+ border-right: 1px solid var(--ah-border) !important;
586
+ }
587
+
588
+ /* ============================================================
589
+ * Part 13 — Misc polish
590
+ * ============================================================ */
591
+
592
+ html body hr,
593
+ html body .gradio-container hr,
594
+ html body .stApp hr {
595
+ border: none !important;
596
+ border-top: 1px solid var(--ah-border) !important;
597
+ margin: 24px 0 !important;
598
+ }
599
+
600
+ html body ::selection {
601
+ background: var(--ah-amber-soft);
602
+ color: var(--ah-text-strong);
603
+ }
604
+
605
+ /* Animate things appearing — subtle, not distracting */
606
+ @media (prefers-reduced-motion: no-preference) {
607
+ html body .gradio-container .block,
608
+ html body .stApp [data-testid="stForm"] {
609
+ animation: ah-fade-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
610
+ }
611
+ @keyframes ah-fade-in {
612
+ from { opacity: 0; transform: translateY(4px); }
613
+ to { opacity: 1; transform: translateY(0); }
614
+ }
615
+ }